Merge branch 'dev' of https://github.com/vnpy/vnpy into dev
This commit is contained in:
commit
8af3355553
@ -892,6 +892,9 @@ class BacktestingEngine(object):
|
||||
self.tradeCount = 0
|
||||
self.tradeDict.clear()
|
||||
|
||||
# 清空逐日统计相关
|
||||
self.dailyResultDict.clear()
|
||||
|
||||
#----------------------------------------------------------------------
|
||||
def runOptimization(self, strategyClass, optimizationSetting):
|
||||
"""优化参数"""
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user