[Mod]更新OKEX期货接口的持仓查询逻辑
This commit is contained in:
parent
2b826154f9
commit
23d6399818
@ -388,7 +388,7 @@ class OkexfRestApi(RestClient):
|
||||
#----------------------------------------------------------------------
|
||||
def onQueryPosition(self, data, request):
|
||||
""""""
|
||||
for d in data['holding']:
|
||||
for d in data['holding'][0]:
|
||||
longPosition = VtPositionData()
|
||||
longPosition.gatewayName = self.gatewayName
|
||||
longPosition.symbol = d['instrument_id']
|
||||
|
Loading…
Reference in New Issue
Block a user