From 0fb4fdf4eff5a9212735f7d89359588f3fb635ae Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Mon, 18 Nov 2019 17:16:20 +1100 Subject: [PATCH] OKEX: Fix OKGroup GetFuturesContractInformationResponse json.Unmarshal issue (#379) * OKEX: Fix contract value json.Unmarshal issue * Add missing fields --- exchanges/okgroup/okgroup_types.go | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/exchanges/okgroup/okgroup_types.go b/exchanges/okgroup/okgroup_types.go index bf495f52..8cfbf904 100644 --- a/exchanges/okgroup/okgroup_types.go +++ b/exchanges/okgroup/okgroup_types.go @@ -666,14 +666,20 @@ type GetFuturesTransactionDetailsResponse struct { // GetFuturesContractInformationResponse individual contract details from GetFuturesContractInformation type GetFuturesContractInformationResponse struct { - ContractVal int64 `json:"contract_val,string"` - Delivery string `json:"delivery"` - InstrumentID string `json:"instrument_id"` - Listing string `json:"listing"` - QuoteCurrency string `json:"quote_currency"` - TickSize float64 `json:"tick_size,string"` - TradeIncrement int64 `json:"trade_increment,string"` - UnderlyingIndex string `json:"underlying_index"` + ContractValue float64 `json:"contract_val,string"` + Alias string `json:"alias"` + BaseCurrency string `json:"base_currency"` + SettlementCurrency string `json:"settlement_currency"` + ContractValueCurrency string `json:"contract_val_currency"` + Delivery string `json:"delivery"` + InstrumentID string `json:"instrument_id"` + Listing string `json:"listing"` + QuoteCurrency string `json:"quote_currency"` + IsInverse bool `json:"is_inverse,string"` + TickSize float64 `json:"tick_size,string"` + TradeIncrement int64 `json:"trade_increment,string"` + Underlying string `json:"underlying"` + UnderlyingIndex string `json:"underlying_index"` } // GetFuturesOrderBookRequest request data for GetFuturesOrderBook