vnpy/examples/CtaBacktesting/loadCsv.py

15 lines
350 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')
loadMcCsv('rb0000_1min.csv', MINUTE_DB_NAME, 'rb0000')
2017-06-02 07:56:21 +00:00