4.71K 浏览
0

取行情数据的时候设为“KQ.m@xxx.xx”的主连,请问能够直接下单吗?主连能否自动和当前主力合约直接建立映射关系?

ringo 已回答的问题 2019年11月27日
0

使用主连时,使用underlying_symbol即可

参考文档:https://doc.shinnytech.com/pysdk/latest/reference/tqsdk.objs.html?highlight=quote#tqsdk.objs.Quote.underlying_symbol

quote = api.get_quote("主连")
主力合约 = quote.underlying_symbol

wbcomet 发表新评论 2022年9月28日

链接打不开了,请问有新的链接吗?

请问一下次主力合约的代码是什么?感谢