fix bug
This commit is contained in:
parent
122394917c
commit
890bd0bf6b
@ -120,7 +120,7 @@ class BacktestingEngine(object):
|
||||
#----------------------------------------------------------------------
|
||||
def loadHistoryData(self):
|
||||
"""载入历史数据"""
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
collection = self.dbClient[self.dbName][self.symbol]
|
||||
|
@ -33,7 +33,7 @@ class HistoryDataEngine(object):
|
||||
#----------------------------------------------------------------------
|
||||
def __init__(self):
|
||||
"""Constructor"""
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
self.datayesClient = DatayesClient()
|
||||
@ -322,7 +322,7 @@ def loadMcCsv(fileName, dbName, symbol):
|
||||
print u'开始读取CSV文件%s中的数据插入到%s的%s中' %(fileName, dbName, symbol)
|
||||
|
||||
# 锁定集合,并创建索引
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
client = pymongo.MongoClient(host, port)
|
||||
collection = client[dbName][symbol]
|
||||
|
@ -72,7 +72,7 @@ class BacktestEngineMultiTF(BacktestingEngine):
|
||||
"""载入历史数据"""
|
||||
"""load historical data"""
|
||||
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
collection = self.dbClient[self.dbName][self.symbol]
|
||||
|
@ -120,7 +120,7 @@ class BacktestingEngine(object):
|
||||
#----------------------------------------------------------------------
|
||||
def loadHistoryData(self):
|
||||
"""载入历史数据"""
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
collection = self.dbClient[self.dbName][self.symbol]
|
||||
|
@ -33,7 +33,7 @@ class HistoryDataEngine(object):
|
||||
#----------------------------------------------------------------------
|
||||
def __init__(self):
|
||||
"""Constructor"""
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
self.datayesClient = DatayesClient()
|
||||
@ -322,7 +322,7 @@ def loadMcCsv(fileName, dbName, symbol):
|
||||
print u'开始读取CSV文件%s中的数据插入到%s的%s中' %(fileName, dbName, symbol)
|
||||
|
||||
# 锁定集合,并创建索引
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
client = pymongo.MongoClient(host, port)
|
||||
collection = client[dbName][symbol]
|
||||
|
@ -72,7 +72,7 @@ class BacktestEngineMultiTF(BacktestingEngine):
|
||||
"""载入历史数据"""
|
||||
"""load historical data"""
|
||||
|
||||
host, port = loadMongoSetting()
|
||||
host, port, logging = loadMongoSetting()
|
||||
|
||||
self.dbClient = pymongo.MongoClient(host, port)
|
||||
collection = self.dbClient[self.dbName][self.symbol]
|
||||
|
Loading…
Reference in New Issue
Block a user