593 浏览
0

能帮我看看是什么原因吗

Traceback (most recent call last):
File “c:/Users/koyzh/Pytorch/vscode/xxxxx.py”, line 188, in <module>
api = TqApi(TqSim(init_balance=1000000),auth=TqAuth(“*****”, “******”))
File “E:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py”, line 269, in __init__
self._setup_connection() # 初始化通讯连接
File “E:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py”, line 2016, in _setup_connection
quotes = self._fetch_symbol_info(os.getenv(“TQ_INS_URL”, “https://openmd.shinnytech.com/t/md/symbols/2020-09-15.json”))
File “E:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py”, line 2074, in _fetch_symbol_info
rsp.raise_for_status()
File “E:\ProgramData\Anaconda3\lib\site-packages\requests\models.py”, line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://openmd.shinnytech.com/t/md/symbols/2020-09-15.json
Task was destroyed but it is pending!
task: <Task pending coro=<TqApi._notify_watcher() running at E:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py:2425> cb=[TqApi._on_task_done()]>
Task was destroyed but it is pending!
task: <Task pending coro=<TqApi._windows_patch() running at E:\ProgramData\Anaconda3\lib\site-packages\tqsdk\api.py:2420> cb=[TqApi._on_task_done()]>
sys:1: RuntimeWarning: coroutine ‘TqApi._notify_watcher’ was never awaited
sys:1: RuntimeWarning: coroutine ‘TqApi._windows_patch’ was never awaited

bigharm 发表新评论 2023年2月22日

重启环境就好了。请忽略我的问题