Merge branch 'dev' of https://github.com/vnpy/vnpy into dev

This commit is contained in:
vn.py 2018-09-30 19:26:06 +08:00
commit 8af3355553
2 changed files with 4 additions and 1 deletions

View File

@ -892,6 +892,9 @@ class BacktestingEngine(object):
self.tradeCount = 0
self.tradeDict.clear()
# 清空逐日统计相关
self.dailyResultDict.clear()
#----------------------------------------------------------------------
def runOptimization(self, strategyClass, optimizationSetting):
"""优化参数"""

View File

@ -528,7 +528,7 @@ class WebsocketApi(BitmexWebsocketApi):
contract.name = contract.vtSymbol
contract.productClass = PRODUCT_FUTURES
contract.priceTick = d['tickSize']
contract.size = d['multiplier']
contract.size = d['lotSize']
self.gateway.onContract(contract)