From 78846e28b14268ef7380107eec782f8fa1a595c1 Mon Sep 17 00:00:00 2001
From: lidp
Date: Sun, 18 Sep 2016 18:47:15 +0800
Subject: [PATCH] =?UTF-8?q?OK=E7=9A=84ask=E6=95=B0=E6=8D=AE=E4=B9=9F?=
=?UTF-8?q?=E6=98=AF=E4=BB=8E=E9=AB=98=E5=88=B0=E4=BD=8E=E7=9A=84,?=
=?UTF-8?q?=E6=89=80=E4=BB=A5=E8=AE=BF=E9=97=AE=E6=AC=A1=E5=BA=8F=E5=BA=94?=
=?UTF-8?q?=E8=AF=A5=E4=B8=8Ebid=E7=9B=B8=E5=8F=8D.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
vn.trader/okcoinGateway/okcoinGateway.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/vn.trader/okcoinGateway/okcoinGateway.py b/vn.trader/okcoinGateway/okcoinGateway.py
index ee1d86aa..876c8684 100644
--- a/vn.trader/okcoinGateway/okcoinGateway.py
+++ b/vn.trader/okcoinGateway/okcoinGateway.py
@@ -406,11 +406,11 @@ class Api(vnokcoin.OkCoinApi):
tick.bidPrice4, tick.bidVolume4 = rawData['bids'][3]
tick.bidPrice5, tick.bidVolume5 = rawData['bids'][4]
- tick.askPrice1, tick.askVolume1 = rawData['asks'][0]
- tick.askPrice2, tick.askVolume2 = rawData['asks'][1]
- tick.askPrice3, tick.askVolume3 = rawData['asks'][2]
- tick.askPrice4, tick.askVolume4 = rawData['asks'][3]
- tick.askPrice5, tick.askVolume5 = rawData['asks'][4]
+ tick.askPrice1, tick.askVolume1 = rawData['asks'][-1]
+ tick.askPrice2, tick.askVolume2 = rawData['asks'][-2]
+ tick.askPrice3, tick.askVolume3 = rawData['asks'][-3]
+ tick.askPrice4, tick.askVolume4 = rawData['asks'][-4]
+ tick.askPrice5, tick.askVolume5 = rawData['asks'][-5]
newtick = copy(tick)
self.gateway.onTick(newtick)