952 浏览
0

ls = api.query_quotes(ins_class=”CONT”)停留很长时间出错!

File “site-packages\tqsdk\api.py”, line 424, in get_quote
File “site-packages\tqsdk\api.py”, line 476, in get_quote_list
tqsdk.exceptions.TqTimeoutError: 获取 [‘KQ.m@INE.lu’] 的行情信息超时,请检查客户
端及网络是否正常
[8752] Failed to execute script MSApzqh
Task was destroyed but it is pending!
task: <Task pending name=’Task-1722′ coro=<TqDataFrame.async_update() running at
site-packages\tqsdk\objs_not_entity.py:196> wait_for=<Future pending cb=[<TaskW
akeupMethWrapper object at 0x00000000254DB730>()]> cb=[TqBaseApi._on_task_done()
]>
Task was destroyed but it is pending!
task: <Task pending name=’Task-1′ coro=<TqBaseApi._windows_patch() running at si
te-packages\tqsdk\baseApi.py:101> wait_for=<Future pending cb=[<TaskWakeupMethWr
apper object at 0x00000000254BB5B0>()]> cb=[TqBaseApi._on_task_done()]>
Task was destroyed but it is pending!

李思恒 已回答的问题 2022年3月11日
0

我这试了下没问题哈,行情也能获取到

李思恒 已回答的问题 2022年3月11日