From 23d639981843cd2aa6381c3ee8ef8483d53a3010 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Thu, 8 Nov 2018 22:30:11 +0800 Subject: [PATCH] =?UTF-8?q?[Mod]=E6=9B=B4=E6=96=B0OKEX=E6=9C=9F=E8=B4=A7?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=9A=84=E6=8C=81=E4=BB=93=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/gateway/okexfGateway/okexfGateway.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']