Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法获取 A500指数 #500

Open
AStupidBear opened this issue Jan 12, 2025 · 0 comments
Open

无法获取 A500指数 #500

AStupidBear opened this issue Jan 12, 2025 · 0 comments

Comments

@AStupidBear
Copy link

In [6]: api.get_quote("SSE.000510")

---------------------------------------------------------------------------
TqTimeoutError                            Traceback (most recent call last)
Cell In[6], line 1
----> 1 api.get_quote("SSE.000510")

File ~/shared/dev/MarketDataBase/miniconda3/lib/python3.11/site-packages/tqsdk/api.py:431, in TqApi.get_quote(self, symbol)
    429 if symbol == "":
    430     raise Exception(f"get_quote 中请求合约代码不能为空字符串")
--> 431 return self.get_quote_list([symbol])[0]

File ~/shared/dev/MarketDataBase/miniconda3/lib/python3.11/site-packages/tqsdk/api.py:484, in TqApi.get_quote_list(self, symbols)
    482     while not quote_list._task.done():
    483         if not self.wait_update(deadline=deadline, _task=quote_list._task):
--> 484             raise TqTimeoutError(f"获取 {symbols} 的行情信息超时,请检查客户端及网络是否正常")
    485 return quote_list

TqTimeoutError: 获取 ['SSE.000510'] 的行情信息超时,请检查客户端及网络是否正常
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant