public FutureContract(FutureContract source) { this.Name = source.Name; this.Symbol = source.Symbol; this.TickValue = source.TickValue; this.TickSize = source.TickSize; this.Candlesticks = source.Candlesticks.Select(x => new Candlestick(x)).ToList(); }
public Candlestick(Candlestick source) { this.Timestamp = source.Timestamp; this.Open = source.Open; this.High = source.High; this.Low = source.Low; this.Close = source.Close; this.Volume = source.Volume; this.Interval = source.Interval; if (source.FutureContract != null) { this.FutureContract = new FutureContract(source.FutureContract); } }