xtdata.download_sector_data()
Traceback (most recent call last):
File "Programs\Python\Python312\Lib\site-packages\xtquant\xtdata.py", line 2006, in download_history_data2
_TIME_.sleep(0.1)
File "Programs\Python\Python312\Lib\site-packages\spyder_kernels\console\shell.py", line 454, in spyderkernel_sigint_handler
raise KeyboardInterrupt
KeyboardInterrupt
具体应该卡死在这一行:
result = client.supply_history_data2(stock_list, spec_period, start_time, end_time, _BSON_.BSON.encode(param), on_progress)
if not result:
import time
try:
while not status[0] and client.is_connected(): _TIME_.sleep(0.1)
except:
if status[1] < status[2]:
client.stop_supply_history_data2()
_TRACEBACK_.print_exc()
if not client.is_connected():
raise Exception('行情服务连接断开')
if status[3]:
raise Exception('下载数据失败:' + status[3])
else:
while not status[0] and client.is_connected():
_TIME_.sleep(0.1)