[Mod]更新OKEX期货接口的持仓查询逻辑

This commit is contained in:
vn.py 2018-11-08 22:30:11 +08:00
parent 2b826154f9
commit 23d6399818

View File

@ -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']