exchanges: Use singular futures settlement currency (#2092)

* Change settlement to singular currency

* whoops.go

* bitmex fix

* minor updates

* 64 divided by 2

* whoops2.go

* ROBOT ROCK

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* ROCK ROCK ROCK ROCK ROBOT

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* shazNit

* currencies unmarshal and code use

* Update currency/currencies.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* Update exchanges/btse/btse_wrapper.go

Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>

* reuse comment for better clarity

* collapses entire thing

* shazLint

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Gareth Kirwan <gbjkirwan@gmail.com>
This commit is contained in:
Scott
2025-11-10 13:21:54 +11:00
committed by GitHub
parent 9441f33f42
commit 61d720b72f
19 changed files with 399 additions and 471 deletions

View File

@@ -30,13 +30,14 @@ type Contract struct {
Type ContractType
SettlementType ContractSettlementType
// Optional values if the exchange offers them
SettlementCurrencies currency.Currencies
MarginCurrency currency.Code
Multiplier float64
MaxLeverage float64
LatestRate fundingrate.Rate
FundingRateFloor decimal.Decimal
FundingRateCeiling decimal.Decimal
SettlementCurrency currency.Code
AdditionalSettlementCurrencies currency.Currencies
MarginCurrency currency.Code
Multiplier float64
MaxLeverage float64
LatestRate fundingrate.Rate
FundingRateFloor decimal.Decimal
FundingRateCeiling decimal.Decimal
}
// ContractSettlementType holds the various style of contracts offered by futures exchanges