[Mod]在CryptoTrader中加入OKEX期货接口
This commit is contained in:
parent
68c9c09ac3
commit
5b2059c4de
@ -15,7 +15,7 @@ from vnpy.trader.vtEngine import MainEngine
|
|||||||
from vnpy.trader.uiQt import createQApp
|
from vnpy.trader.uiQt import createQApp
|
||||||
|
|
||||||
# 加载底层接口
|
# 加载底层接口
|
||||||
from vnpy.trader.gateway import (huobiGateway, okexGateway,
|
from vnpy.trader.gateway import (huobiGateway, okexGateway, okexFuturesGateway,
|
||||||
binanceGateway, bitfinexGateway,
|
binanceGateway, bitfinexGateway,
|
||||||
bitmexGateway, fcoinGateway,
|
bitmexGateway, fcoinGateway,
|
||||||
bigoneGateway, lbankGateway,
|
bigoneGateway, lbankGateway,
|
||||||
@ -40,6 +40,7 @@ def main():
|
|||||||
me = MainEngine(ee)
|
me = MainEngine(ee)
|
||||||
|
|
||||||
# 添加交易接口
|
# 添加交易接口
|
||||||
|
me.addGateway(okexFuturesGateway)
|
||||||
me.addGateway(ccxtGateway)
|
me.addGateway(ccxtGateway)
|
||||||
me.addGateway(coinbaseGateway)
|
me.addGateway(coinbaseGateway)
|
||||||
me.addGateway(lbankGateway)
|
me.addGateway(lbankGateway)
|
||||||
|
Loading…
Reference in New Issue
Block a user