vnpy版本1.9.2
回测的时候把tb下的csv文件导入mongo一直显示No such file or directory: 'rb888_15min.csv。
文件名是没问题的,用loadCsv试了,也是一样的错。
请问要怎么处理?
代码:
from vnpy.trader.app.ctaStrategy.ctaHistoryData import loadTbCsv
if name == 'main':
loadMcCsv('rb888_15min.csv', 'VnTrader_15Min_DB', 'rb888')
报错:
IOError Traceback (most recent call last)
<ipython-input-17-d1383676aa80> in <module>()
1 from vnpy.trader.app.ctaStrategy.ctaHistoryData import loadTbCsv
2 if name == 'main':
----> 3 loadTbCsv('rb888_15min.csv', 'VnTrader_15Min_DB', 'rb888')
C:\Users\Administrator\Anaconda2\lib\site-packages\vnpy-1.9.2-py2.7.egg\vnpy\trader\app\ctaStrategy\ctaHistoryData.pyc in loadTbCsv(fileName, dbName, symbol)
118
119 # 读取数据和插入到数据库
--> 120 reader = csv.reader(file(fileName, 'r'))
121 for d in reader:
122 bar = VtBarData()
IOError: [Errno 2] No such file or directory: 'rb888_15min.csv'