-
Notifications
You must be signed in to change notification settings - Fork 187
Description
[2025-03-10 12:25:01,485] INFO in web_server: 获取股票 600036 的历史数据,市场: A, 起始日期: 20240310, 结束日期: 20250310
[2025-03-10 12:25:01,485] ERROR in web_server: 获取股票数据时出错: 获取股票数据失败: '600036'
[2025-03-10 12:25:01,486] ERROR in web_server: Traceback (most recent call last):
File "D:\StockAnal_Sys\stock_analyzer.py", line 88, in get_stock_data
df = ak.stock_zh_a_hist(
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\akshare\stock_feature\stock_hist_em.py", line 1049, in stock_zh_a_hist
"secid": f"{code_id_dict[symbol]}.{symbol}",
~~~~~~~~~~~~^^^^^^^^
KeyError: '600036'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\StockAnal_Sys\web_server.py", line 818, in get_stock_data
df = analyzer.get_stock_data(stock_code, market_type, start_date, end_date)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\StockAnal_Sys\stock_analyzer.py", line 141, in get_stock_data
raise Exception(f"获取股票数据失败: {e}")
Exception: 获取股票数据失败: '600036'