public CandleUpdateResult UpdateQuotingCandle(string assetPair, DateTime timestamp, double price, CandlePriceType priceType, CandleTimeInterval timeInterval)
 {
     // We can update LastTradePrice for only Trades candle below:
     return(Update(assetPair, timestamp, priceType, timeInterval,
                   createNewCandle: () => Candle.CreateQuotingCandle(assetPair, timestamp, price, priceType, timeInterval),
                   updateCandle: oldCandle => oldCandle.UpdateQuotingCandle(timestamp, price),
                   getLoggingContext: candle => new
     {
         assetPair = assetPair,
         timestamp = timestamp,
         price = price,
         priceType = priceType,
         timeInterval = timeInterval
     }));
 }