[Fix] close #2037
This commit is contained in:
parent
38d090bed4
commit
69f9a21c3e
@ -18,7 +18,7 @@ from vnpy.gateway.bitmex import BitmexGateway
|
||||
# from vnpy.gateway.oes import OesGateway
|
||||
# from vnpy.gateway.okex import OkexGateway
|
||||
# from vnpy.gateway.huobi import HuobiGateway
|
||||
# from vnpy.gateway.bitfinex import BitfinexGateway
|
||||
from vnpy.gateway.bitfinex import BitfinexGateway
|
||||
# from vnpy.gateway.onetoken import OnetokenGateway
|
||||
from vnpy.gateway.okexf import OkexfGateway
|
||||
from vnpy.gateway.okexs import OkexsGateway
|
||||
@ -63,7 +63,7 @@ def main():
|
||||
# main_engine.add_gateway(OesGateway)
|
||||
# main_engine.add_gateway(OkexGateway)
|
||||
# main_engine.add_gateway(HuobiGateway)
|
||||
# main_engine.add_gateway(BitfinexGateway)
|
||||
main_engine.add_gateway(BitfinexGateway)
|
||||
# main_engine.add_gateway(OnetokenGateway)
|
||||
# main_engine.add_gateway(OkexfGateway)
|
||||
# main_engine.add_gateway(HbdmGateway)
|
||||
|
@ -558,7 +558,7 @@ class BitfinexWebsocketApi(WebsocketClient):
|
||||
|
||||
# ASK
|
||||
ask_keys = ask.keys()
|
||||
askPriceList = sorted(ask_keys, reverse=True)
|
||||
askPriceList = sorted(ask_keys)
|
||||
|
||||
tick.ask_price_1 = askPriceList[0]
|
||||
tick.ask_price_2 = askPriceList[1]
|
||||
|
Loading…
Reference in New Issue
Block a user