1.14K 浏览
0

tra = api.get_trade()

api = TqApi(TqKq(),auth=TqAuth(“****”, “***”))

while True:
api.wait_update()
if api.is_changing(tra,”trade_date_time”):
print(tra.price,tra.volume)

程序成交,没有显示tra.price,tra.volume,请指教,谢谢!

李思恒 已回答的问题 2022年4月13日
0

不要写在api上面哈

李思恒 已回答的问题 2022年4月13日