返回列表 发布新帖

国金2.0.8.300版本配合xtquant_250807版本在xtdata.download_sector_data()会卡死。

21 0
发表于 3 小时前 | 显示全部楼层 阅读模式
应该如何办?




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)

            _TIME_.sleep(0.1)

    return status[4]




回复

您需要登录后才可以回帖 登录 | 立即注册

客服专线

400-080-8112

用思考的速度交易,用真诚的态度合作,我们是认真的!
  • 关注公众号
  • 添加微信客服
Copyright © 2001-2026 迅投QMT社区 版权所有 All Rights Reserved. 京ICP备2025122616号-3
关灯 快速发帖
扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表