public void AddOrUpdateAlgorithmTrade(ITrade trade) { ITrade algorithmTrade = _trades.FirstOrDefault(t => t.id == trade.id); if (algorithmTrade == null) { _trades.Add(trade); } else { algorithmTrade.InjectWith(trade); } }
public void AddOrUpdateAlgorithmTrade(ITrade trade) { ITrade algorithmTrade = _trades.FirstOrDefault(t => t.id == trade.id); if (algorithmTrade == null) { _trades.Add(trade); } else { algorithmTrade.InjectWith(trade); } }