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

Traceback (most recent call last):
File "g:\vnstudio\lib\site-packages\vnpy\app\csv_loader\ui\widget.py", line 124, in load_data
datetime_format
File "g:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 138, in load
datetime_format=datetime_format,
File "g:\vnstudio\lib\site-packages\vnpy\app\csv_loader\engine.py", line 106, in load_by_handle
database_manager.save_bar_data(bars)
File "g:\vnstudio\lib\site-packages\vnpy\trader\database\database_mongo.py", line 310, in save_bar_data
).update_one(upsert=True, updates)
File "g:\vnstudio\lib\site-packages\mongoengine\queryset\base.py", line 601, in update_one
update
File "g:\vnstudio\lib\site-packages\mongoengine\queryset\base.py", line 521, in update
update = transform.update(queryset._document, **update)
File "g:\vnstudio\lib\site-packages\mongoengine\queryset\transform.py", line 319, in update
value = field.prepare_query_value(op, value)
File "g:\vnstudio\lib\site-packages\mongoengine\fields.py", line 418, in prepare_query_value
return super(FloatField, self).prepare_query_value(op, float(value))
ValueError: could not convert string to float:

不知道问题出在哪 csv文件都是在按照表头写的

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

已发现问题 是csv数据文件有错 跟vnpy没关系

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