连接时给出信息如下:
2020-07-24 08:40:23,353 – INFO – 您可以访问 http://127.0.0.1:49524 查看策略绘制出的 K 线图形。
Task was destroyed but it is pending!
task: <Task pending coro=<TqApi._connect() running at C:\Users\Administrator\anaconda3\lib\site-packages\tqsdk\api.py:1594> wait_for=<Future pending cb=[shield.<locals>._outer_done_callback() at C:\Users\Administrator\anaconda3\lib\asyncio\tasks.py:820, <TaskWakeupMethWrapper object at 0x000001E47C605258>()]> cb=[TqApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending coro=<WebSocketCommonProtocol.close_connection() running at C:\Users\Administrator\anaconda3\lib\site-packages\websockets\protocol.py:1206> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x000001E47C605378>()]>>
接收数据超时,请检查客户端及网络是否正常
前面还有一行:
did not receive a valid HTTP response