diff --git a/vnpy/trader/app/ctaStrategy/ctaBacktesting.py b/vnpy/trader/app/ctaStrategy/ctaBacktesting.py index fc86d441..c6a2e881 100644 --- a/vnpy/trader/app/ctaStrategy/ctaBacktesting.py +++ b/vnpy/trader/app/ctaStrategy/ctaBacktesting.py @@ -892,6 +892,9 @@ class BacktestingEngine(object): self.tradeCount = 0 self.tradeDict.clear() + # 清空逐日统计相关 + self.dailyResultDict.clear() + #---------------------------------------------------------------------- def runOptimization(self, strategyClass, optimizationSetting): """优化参数""" diff --git a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py index 6aaa93c4..5011373f 100644 --- a/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py +++ b/vnpy/trader/gateway/bitmexGateway/bitmexGateway.py @@ -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)