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

td.ReqQryClassifiedInstrument查询不到新品种 #29

Open
edwardsun opened this issue Dec 26, 2024 · 1 comment
Open

td.ReqQryClassifiedInstrument查询不到新品种 #29

edwardsun opened this issue Dec 26, 2024 · 1 comment

Comments

@edwardsun
Copy link

edwardsun commented Dec 26, 2024

您好,
请问td.ReqQryClassifiedInstrument为什么查询不到最新上市的品种?比如原木lg和多晶硅ps?

field = tdapi.CThostFtdcQryClassifiedInstrumentField()
field.InstrumentID = contract # 这里填lg,LG,ps,PS, 都找不到。最新的可以找到的品种是瓶片PR
field.ExchangeID = ''
field.TradingType = tdapi.THOST_FTDC_TD_ALL
field.ClassType = tdapi.THOST_FTDC_INS_FUTURE

td.ReqQryClassifiedInstrument(field, reqid)

@krenx1983
Copy link
Contributor

实盘还是什么环境?实盘应该不会有问题,simnow可能有时候没有及时上新品种

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