vn.py量化社区
By Traders, For Traders.
Member
加入于:
帖子: 3
声望: 0

我在CAT策略-课时04-历史回测一课中,在CAT回测界面中,下载数据老是报以下错误,请问要怎么解决呢?

23:50:38 初始化CTA回测引擎
23:50:38 策略文件加载完成
23:50:38 RQData数据接口初始化成功
23:50:43 ----------------------------------------
23:50:43 IF88.CFFEX-1m开始下载历史数据
23:51:05 数据下载失败,触发异常:
Traceback (most recent call last):
File "D:\vnstudio\lib\site-packages\peewee.py", line 3005, in execute_sql
cursor.execute(sql, params or ())
sqlite3.OperationalError: table dbbardata has no column named open_interest

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\vnstudio\lib\site-packages\vnpy\app\cta_backtester\engine.py", line 384, in run_downloading
database_manager.save_bar_data(data)
File "D:\vnstudio\lib\site-packages\vnpy\trader\database\database_sql.py", line 374, in save_bar_data
self.class_bar.save_all(ds)
File "D:\vnstudio\lib\site-packages\vnpy\trader\database\database_sql.py", line 149, in save_all
c).on_conflict_replace().execute()
File "D:\vnstudio\lib\site-packages\peewee.py", line 1812, in inner
return method(self, database, args, **kwargs)
File "D:\vnstudio\lib\site-packages\peewee.py", line 1883, in execute
return self._execute(database)
File "D:\vnstudio\lib\site-packages\peewee.py", line 2623, in _execute
return super(Insert, self)._execute(database)
File "D:\vnstudio\lib\site-packages\peewee.py", line 2360, in _execute
cursor = database.execute(self)
File "D:\vnstudio\lib\site-packages\peewee.py", line 3018, in execute
return self.execute_sql(sql, params, commit=commit)
File "D:\vnstudio\lib\site-packages\peewee.py", line 3012, in execute_sql
self.commit()
File "D:\vnstudio\lib\site-packages\peewee.py", line 2783, in exit
reraise(new_type, new_type(
exc_args), traceback)
File "D:\vnstudio\lib\site-packages\peewee.py", line 183, in reraise
raise value.with_traceback(tb)
File "D:\vnstudio\lib\site-packages\peewee.py", line 3005, in execute_sql
cursor.execute(sql, params or ())
peewee.OperationalError: table dbbardata has no column named open_interest

Administrator
avatar
加入于:
帖子: 4122
声望: 229

数据库有点老了,请删除C:\users\administrator.vntrader\database.db文件,然后重新运行就行

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