This commit is contained in:
vn.py 2018-06-10 11:47:08 +08:00
parent 5fb1cafc0d
commit dfe0304f74

View File

@ -381,7 +381,7 @@ class GatewayApi(BitfinexApi):
# BID # BID
bidPriceList = bid.keys() bidPriceList = bid.keys()
bidPriceList.sort() bidPriceList.sort(reverse=True)
tick.bidPrice1 = bidPriceList[0] tick.bidPrice1 = bidPriceList[0]
tick.bidPrice2 = bidPriceList[1] tick.bidPrice2 = bidPriceList[1]
@ -398,7 +398,6 @@ class GatewayApi(BitfinexApi):
# ASK # ASK
askPriceList = ask.keys() askPriceList = ask.keys()
askPriceList.sort() askPriceList.sort()
askPriceList.reverse()
tick.askPrice1 = askPriceList[0] tick.askPrice1 = askPriceList[0]
tick.askPrice2 = askPriceList[1] tick.askPrice2 = askPriceList[1]