diff --git a/vnpy/trader/gateway/okexfGateway/okexfGateway.py b/vnpy/trader/gateway/okexfGateway/okexfGateway.py index ff87cd93..a81ad856 100644 --- a/vnpy/trader/gateway/okexfGateway/okexfGateway.py +++ b/vnpy/trader/gateway/okexfGateway/okexfGateway.py @@ -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']