mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 23:16:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user