vnpy/examples/runCtaBacktesting/loadCsv.py

14 lines
291 B
Python
Raw Normal View History

2017-06-02 07:56:21 +00:00
# encoding: UTF-8
"""
导入MC导出的CSV历史数据到MongoDB中
"""
from vnpy.trader.app.ctaStrategy.ctaBase import MINUTE_DB_NAME
from vnpy.trader.app.ctaStrategy.ctaHistoryData import loadMcCsv
if __name__ == '__main__':
loadMcCsv('IF0000_1min.csv', MINUTE_DB_NAME, 'IF0000')