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

slss = CsvLoaderEngine(MainEngine,EventEngine)
slss.file_path ='D:\QQ.csv'
slss.symbol = "XBTUSD"
slss.exchange = Exchange.BITMEX
slss.interval = Interval.DAILY
slss.datetime_head = "Date"
slss.open_head = "Open"
slss.close_head ="Close"
slss.low_head = "Low"
slss.high_head = "High"
slss.volume_head = "Volume"
slss.load(slss.file_path,slss.symbol,slss.exchange,slss.interval,slss.datetime_head,slss.open_head,slss.close_head,slss.low_head,slss.high_head,slss.volume_head,'%Y/%m/%d')
我寫了以上,但出現以下錯誤
enter image description here

enter image description here

enter image description here

Administrator
avatar
加入于:
帖子: 2085
声望: 96

如果升级了2.0.2版本的话,需要重新初始化数据库才行(最简单就是删了用户目录下的.vntrader/database.db文件)

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