public static Symbol GetViewSymbol(this Core.Model.Symbol s) { if (s == null) { throw new ArgumentNullException(nameof(s)); } var symbol = new Symbol { Name = s.Name, Exchange = s.Exchange, NameDelimiter = s.NameDelimiter, ExchangeSymbol = s.ExchangeSymbol, NotionalMinimumValue = s.NotionalMinimumValue, BaseAsset = s.BaseAsset, Price = s.Price, Quantity = s.Quantity, QuoteAsset = s.QuoteAsset, Status = s.Status, IsIcebergAllowed = s.IsIcebergAllowed, OrderTypes = s.OrderTypes, SymbolStatistics = new SymbolStatistics { Symbol = s.ExchangeSymbol } }; if (s.SymbolStatistics != null) { symbol.UpdateStatistics(s.SymbolStatistics); } return(symbol); }
static Core.Model.Symbol f(Core.Model.Symbol s, Core.Model.SymbolStats ss) { s.SymbolStatistics = ss; return(s); };