[Fix]change brokerid to str in CtpGateway

This commit is contained in:
vn.py 2019-03-25 16:31:15 +08:00
parent 289bcfa13e
commit 0fa314faa8
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -127,7 +127,7 @@ class CtpGateway(BaseGateway):
default_setting = {
"用户名": "",
"密码": "",
"经纪商代码": 0,
"经纪商代码": "",
"交易服务器": "",
"行情服务器": "",
"产品名称": "",