From dfe0304f74b40d380eee0786d6095e90d605822e Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Sun, 10 Jun 2018 11:47:08 +0800 Subject: [PATCH] [Fix]Close #907 --- vnpy/trader/gateway/bitfinexGateway/bitfinexGateway.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vnpy/trader/gateway/bitfinexGateway/bitfinexGateway.py b/vnpy/trader/gateway/bitfinexGateway/bitfinexGateway.py index d51f1cbe..5aef41be 100644 --- a/vnpy/trader/gateway/bitfinexGateway/bitfinexGateway.py +++ b/vnpy/trader/gateway/bitfinexGateway/bitfinexGateway.py @@ -381,7 +381,7 @@ class GatewayApi(BitfinexApi): # BID bidPriceList = bid.keys() - bidPriceList.sort() + bidPriceList.sort(reverse=True) tick.bidPrice1 = bidPriceList[0] tick.bidPrice2 = bidPriceList[1] @@ -398,7 +398,6 @@ class GatewayApi(BitfinexApi): # ASK askPriceList = ask.keys() askPriceList.sort() - askPriceList.reverse() tick.askPrice1 = askPriceList[0] tick.askPrice2 = askPriceList[1]