public TradeProxy(Trade[] trades, AggregationKey key) { Key = key; Value = trades.Select(t => t.Value).Sum(); Ticker = key.Value; }
public bool Equals(AggregationKey other) { return(Type == other.Type && string.Equals(Value, other.Value)); }
public TradeProxy(Trade trade, AggregationKey key) { Key = key; Ticker = key.Value; Value = trade.Value; }