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