Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

穿透式API market没问题,Trader 初始化总是有问题 #20

Open
Wall-ee opened this issue Jul 30, 2019 · 1 comment
Open

穿透式API market没问题,Trader 初始化总是有问题 #20

Wall-ee opened this issue Jul 30, 2019 · 1 comment

Comments

@Wall-ee
Copy link

Wall-ee commented Jul 30, 2019

穿透式API market没问题,Trader 初始化总是有问题。
python37 win10 64位
编译成功
编码问题全部解决
v6.3.15_20190220 版本的api

采用 test_PyCTP脚本测试 market 可以联通和订阅行情 但是 trader 无法初始化
报告错误如下:

Traceback (most recent call last):
  File "D:/workspace/test_PyCTP.py", line 446, in OnRspUserLogin
    self.__OrderRef = int(self.__MaxOrderRef) # 初始化报单引用
ValueError: invalid literal for int() with base 10: b''

发现 是 int 时候有问题
但是加入了

  if  self.__MaxOrderRef == b'':
       self.__OrderRef = 0

还是无法初始化成功 请问如何解决啊
出现 : ctp 不合法登录

@Wall-ee
Copy link
Author

Wall-ee commented Aug 1, 2019

可能是simnow的问题,最近有时好有时坏,另外

Traderapi 会有一个 Traderapi 找不到 onRtnInstrumentStatus 的错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant