This commit is contained in:
vn.py 2019-09-17 23:41:10 +08:00
parent 38d090bed4
commit 69f9a21c3e
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ from vnpy.gateway.bitmex import BitmexGateway
# from vnpy.gateway.oes import OesGateway # from vnpy.gateway.oes import OesGateway
# from vnpy.gateway.okex import OkexGateway # from vnpy.gateway.okex import OkexGateway
# from vnpy.gateway.huobi import HuobiGateway # 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.onetoken import OnetokenGateway
from vnpy.gateway.okexf import OkexfGateway from vnpy.gateway.okexf import OkexfGateway
from vnpy.gateway.okexs import OkexsGateway from vnpy.gateway.okexs import OkexsGateway
@ -63,7 +63,7 @@ def main():
# main_engine.add_gateway(OesGateway) # main_engine.add_gateway(OesGateway)
# main_engine.add_gateway(OkexGateway) # main_engine.add_gateway(OkexGateway)
# main_engine.add_gateway(HuobiGateway) # main_engine.add_gateway(HuobiGateway)
# main_engine.add_gateway(BitfinexGateway) main_engine.add_gateway(BitfinexGateway)
# main_engine.add_gateway(OnetokenGateway) # main_engine.add_gateway(OnetokenGateway)
# main_engine.add_gateway(OkexfGateway) # main_engine.add_gateway(OkexfGateway)
# main_engine.add_gateway(HbdmGateway) # main_engine.add_gateway(HbdmGateway)

View File

@ -558,7 +558,7 @@ class BitfinexWebsocketApi(WebsocketClient):
# ASK # ASK
ask_keys = ask.keys() ask_keys = ask.keys()
askPriceList = sorted(ask_keys, reverse=True) askPriceList = sorted(ask_keys)
tick.ask_price_1 = askPriceList[0] tick.ask_price_1 = askPriceList[0]
tick.ask_price_2 = askPriceList[1] tick.ask_price_2 = askPriceList[1]