diff --git a/examples/CryptoTrader/run.py b/examples/CryptoTrader/run.py index 240b8272..8acad184 100644 --- a/examples/CryptoTrader/run.py +++ b/examples/CryptoTrader/run.py @@ -15,7 +15,7 @@ from vnpy.trader.vtEngine import MainEngine from vnpy.trader.uiQt import createQApp # 加载底层接口 -from vnpy.trader.gateway import (huobiGateway, okexGateway, +from vnpy.trader.gateway import (huobiGateway, okexGateway, okexFuturesGateway, binanceGateway, bitfinexGateway, bitmexGateway, fcoinGateway, bigoneGateway, lbankGateway, @@ -40,6 +40,7 @@ def main(): me = MainEngine(ee) # 添加交易接口 + me.addGateway(okexFuturesGateway) me.addGateway(ccxtGateway) me.addGateway(coinbaseGateway) me.addGateway(lbankGateway) diff --git a/vnpy/trader/gateway/okexFuturesGateway/OkexFuturesApi.py b/vnpy/trader/gateway/okexFuturesGateway/OkexFuturesApi.py deleted file mode 100644 index 8b137891..00000000 --- a/vnpy/trader/gateway/okexFuturesGateway/OkexFuturesApi.py +++ /dev/null @@ -1 +0,0 @@ -