13:36:30 初始化CTA回测引擎
13:36:30 策略文件加载完成
13:36:30 RQData数据接口初始化成功
13:37:50 ----------------------------------------
13:37:50 IF1908.CFFEX-1m开始下载历史数据
13:37:51 数据下载失败,触发异常:
Traceback (most recent call last):
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 3158, in execute_sql
cursor.execute(sql, params or ())
sqlite3.IntegrityError: NOT NULL constraint failed: dbbardata.turnover
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\vnpy_ctabacktester\engine.py", line 404, in run_downloading
database_manager.save_bar_data(data)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\vnpy\database\sqlite\sqlite_database.py", line 156, in save_bar_data
DbBarData.insert_many(c).on_conflict_replace().execute()
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 1910, in inner
return method(self, database, args, **kwargs)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 1981, in execute
return self._execute(database)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 2759, in _execute
return super(Insert, self)._execute(database)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 2477, in _execute
cursor = database.execute(self)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 3171, in execute
return self.execute_sql(sql, params, commit=commit)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 3165, in execute_sql
self.commit()
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 2931, in exit
reraise(new_type, new_type(exc_value, exc_args), traceback)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 190, in reraise
raise value.with_traceback(tb)
File "C:\Users\pc\AppData\Local\Programs\GTJAQH vn.py Trader\pkgs\peewee.py", line 3158, in execute_sql
cursor.execute(sql, params or ())
peewee.IntegrityError: NOT NULL constraint failed: dbbardata.turnover