Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ibugfree authored and sunnycomes committed Feb 16, 2017
1 parent 1223949 commit 890bd0b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaBacktesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def setDatabase(self, dbName, symbol):
#----------------------------------------------------------------------
def loadHistoryData(self):
"""载入历史数据"""
host, port = loadMongoSetting()
host, port, logging = loadMongoSetting()

self.dbClient = pymongo.MongoClient(host, port)
collection = self.dbClient[self.dbName][self.symbol]
Expand Down
4 changes: 2 additions & 2 deletions vn.how/tick2trade/vn.trader_t2t/ctaAlgo/ctaHistoryData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def loadHistoryData(self):
"""载入历史数据"""
"""load historical data"""

host, port = loadMongoSetting()
host, port, logging = loadMongoSetting()

self.dbClient = pymongo.MongoClient(host, port)
collection = self.dbClient[self.dbName][self.symbol]
Expand Down
2 changes: 1 addition & 1 deletion vn.trader/ctaAlgo/ctaBacktesting.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def setDatabase(self, dbName, symbol):
#----------------------------------------------------------------------
def loadHistoryData(self):
"""载入历史数据"""
host, port = loadMongoSetting()
host, port, logging = loadMongoSetting()

self.dbClient = pymongo.MongoClient(host, port)
collection = self.dbClient[self.dbName][self.symbol]
Expand Down
4 changes: 2 additions & 2 deletions vn.trader/ctaAlgo/ctaHistoryData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def loadHistoryData(self):
"""载入历史数据"""
"""load historical data"""

host, port = loadMongoSetting()
host, port, logging = loadMongoSetting()

self.dbClient = pymongo.MongoClient(host, port)
collection = self.dbClient[self.dbName][self.symbol]
Expand Down

0 comments on commit 890bd0b

Please sign in to comment.