VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 2
声望: 0

可以正常下载数据,但按更新数据会报错

Traceback (most recent call last):
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\ui\widget.py", line 384, in update_data
self.engine.download_bar_data(
File "C:\veighna_studio\lib\site-packages\vnpy_datamanager\engine.py", line 211, in download_bar_data
data: List[BarData] = self.datafeed.query_bar_history(req)
File "C:\veighna_studio\lib\site-packages\vnpy_rqdata\rqdata_datafeed.py", line 161, in query_bar_history
df: DataFrame = get_price(
File "C:\veighna_studio\lib\site-packages\rqdatac\decorators.py", line 150, in wrap
return func(*args, **kwargs)
File "C:\veighna_studio\lib\site-packages\rqdatac\services\get_price.py", line 83, in get_price
df = _get_price(
File "C:\veighna_studio\lib\site-packages\rqdatac\services\get_price.py", line 156, in _get_price
order_book_ids, stocks, funds, indexes, futures, futures888, spots, options, convertibles, repos = classify_order_book_ids(
File "C:\veighna_studio\lib\site-packages\rqdatac\services\get_price.py", line 276, in classify_order_book_ids
ins_list = ensure_instruments(order_book_ids, market=market)
File "C:\veighna_studio\lib\site-packages\rqdatac\validators.py", line 182, in ensure_instruments
raise ValueError("order_book_ids: at least one valid instrument expected, got none")
ValueError: order_book_ids: at least one valid instrument expected, got none

Member
avatar
加入于:
帖子: 1661
声望: 121

要先下载了至少一个合约数据,后续才能更新(去更新这些已经下载合约的历史行情)

Member
avatar
加入于:
帖子: 2
声望: 0

MTF wrote:

要先下载了至少一个合约数据,后续才能更新(去更新这些已经下载合约的历史行情)

有合约的,下了30多个1分钟合约了的

Member
avatar
加入于:
帖子: 5055
声望: 305

是用的最新版本吗?我这边试了没有报错的

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】