[Mod]移除CryptoTrader对于操作系统的判断

This commit is contained in:
vn.py 2018-10-06 08:56:16 +08:00
parent 8a42c610bb
commit f0c56d42dd
2 changed files with 2 additions and 6 deletions

View File

@ -51,8 +51,8 @@ def downMinuteBarBySymbol(symbol, period, start, end):
"""下载某一合约的分钟线数据""" """下载某一合约的分钟线数据"""
startTime = time.time() startTime = time.time()
cl = db[symbol] # 集合 cl = db[symbol]
cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引 cl.ensure_index([('datetime', ASCENDING)], unique=True)
startDt = datetime.datetime.strptime(start, '%Y%m%d') startDt = datetime.datetime.strptime(start, '%Y%m%d')
endDt = datetime.datetime.strptime(end, '%Y%m%d') endDt = datetime.datetime.strptime(end, '%Y%m%d')

View File

@ -9,10 +9,6 @@ import sys
reload(sys) reload(sys)
sys.setdefaultencoding('utf8') sys.setdefaultencoding('utf8')
# 判断操作系统
import platform
system = platform.system()
# vn.trader模块 # vn.trader模块
from vnpy.event import EventEngine from vnpy.event import EventEngine
from vnpy.trader.vtEngine import MainEngine from vnpy.trader.vtEngine import MainEngine