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