Open
Description
Currently the remoteInit for okx only loads the spot and swap products, I propose we add the futures products, so that functions like getOpenPostions will work when they do things key looks ups like this on futures positiions exchangeMetaData.getInstruments().get(adaptOkexInstrumentId(okexPosition.getInstrumentId())).getContractValue()
((OkexMarketDataServiceRaw) marketDataService)
.getOkexInstruments(SPOT, null, null)
.getData();
List<OkexInstrument> swap_instruments =
((OkexMarketDataServiceRaw) marketDataService)
.getOkexInstruments(SWAP, null, null)
.getData();
instruments.addAll(swap_instruments);
List<OkexInstrument> futures_instruments =
((OkexMarketDataServiceRaw) marketDataService)
.getOkexInstruments(FUTURES, null, null)
.getData();
instruments.addAll(futures_instruments);
Metadata
Metadata
Assignees
Labels
No labels
Activity