大神你好,我pycharm已经显示运行了,也显示开仓了。快期上登录代码写的账户和密码。上去发现没有持仓。请问是什么情况
TqKq的话可以在快期专业版,不然的话可以打印position和trade来看
https://doc.shinnytech.com/tqsdk/latest/reference/tqsdk.api.html?highlight=trade#tqsdk.api.TqApi.get_trade https://doc.shinnytech.com/tqsdk/latest/reference/tqsdk.api.html?highlight=position#tqsdk.api.TqApi.get_position
https://doc.shinnytech.com/tqsdk/latest/reference/tqsdk.api.html?highlight=trade#tqsdk.api.TqApi.get_trade
https://doc.shinnytech.com/tqsdk/latest/reference/tqsdk.api.html?highlight=position#tqsdk.api.TqApi.get_position