[Fix]change brokerid to str in CtpGateway
This commit is contained in:
parent
289bcfa13e
commit
0fa314faa8
@ -9,6 +9,7 @@ from vnpy.gateway.futu import FutuGateway
|
||||
from vnpy.gateway.ib import IbGateway
|
||||
from vnpy.gateway.ctp import CtpGateway
|
||||
from vnpy.gateway.tiger import TigerGateway
|
||||
from vnpy.gateway.oes import OesGateway
|
||||
|
||||
from vnpy.app.cta_strategy import CtaStrategyApp
|
||||
from vnpy.app.csv_loader import CsvLoaderApp
|
||||
@ -26,6 +27,7 @@ def main():
|
||||
main_engine.add_gateway(FutuGateway)
|
||||
main_engine.add_gateway(BitmexGateway)
|
||||
main_engine.add_gateway(TigerGateway)
|
||||
main_engine.add_gateway(OesGateway)
|
||||
|
||||
main_engine.add_app(CtaStrategyApp)
|
||||
main_engine.add_app(CsvLoaderApp)
|
||||
|
@ -127,7 +127,7 @@ class CtpGateway(BaseGateway):
|
||||
default_setting = {
|
||||
"用户名": "",
|
||||
"密码": "",
|
||||
"经纪商代码": 0,
|
||||
"经纪商代码": "",
|
||||
"交易服务器": "",
|
||||
"行情服务器": "",
|
||||
"产品名称": "",
|
||||
|
Loading…
Reference in New Issue
Block a user