[Mod]移除CryptoTrader对于操作系统的判断
This commit is contained in:
parent
8a42c610bb
commit
f0c56d42dd
@ -51,8 +51,8 @@ def downMinuteBarBySymbol(symbol, period, start, end):
|
||||
"""下载某一合约的分钟线数据"""
|
||||
startTime = time.time()
|
||||
|
||||
cl = db[symbol] # 集合
|
||||
cl.ensure_index([('datetime', ASCENDING)], unique=True) # 添加索引
|
||||
cl = db[symbol]
|
||||
cl.ensure_index([('datetime', ASCENDING)], unique=True)
|
||||
|
||||
startDt = datetime.datetime.strptime(start, '%Y%m%d')
|
||||
endDt = datetime.datetime.strptime(end, '%Y%m%d')
|
||||
|
@ -9,10 +9,6 @@ import sys
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf8')
|
||||
|
||||
# 判断操作系统
|
||||
import platform
|
||||
system = platform.system()
|
||||
|
||||
# vn.trader模块
|
||||
from vnpy.event import EventEngine
|
||||
from vnpy.trader.vtEngine import MainEngine
|
||||
|
Loading…
Reference in New Issue
Block a user