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

user_trader.ReqQryInstrument("",0) get error #41

Open
softbug123 opened this issue Aug 16, 2019 · 2 comments
Open

user_trader.ReqQryInstrument("",0) get error #41

softbug123 opened this issue Aug 16, 2019 · 2 comments

Comments

@softbug123
Copy link

File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\site-packages\ctpwrapper\Trader.py", line 279, in ReqQryInstrument
return super(TraderApiPy, self).ReqQryInstrument(pQryInstrument, nRequestID)
File "ctpwrapper\TraderApi.pyx", line 502, in ctpwrapper.TraderApi.TraderApiWrapper.ReqQryInstrument
TypeError: invalid type

how to solve it?

@softbug123
Copy link
Author

另外订购数据以后,没数据被回调。
a = md.SubscribeMarketData(["IF1912"])
请问怎么回事呢

@qytz
Copy link

qytz commented Dec 11, 2020

好像 README 里有一节说明:

sometimes quote the market futures data, but there is no trading data from the API stream, better just add time.sleep(2) func call after Init() method invoked, this could help to solve no data response issue.

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

2 participants