private void AjouteTrade(AnomalieTrade trade, List <AnomalieTrade> liste) { lock (liste) { liste.Add(trade); } }
internal void ExecuteTrade(AnomalieTrade trade) { Console.Out.WriteLine("Mise à jour de " + DateTime.UtcNow.ToShortTimeString()); Console.Out.WriteLine(trade.ToString()); Console.Out.WriteLine(trade.GainFee); if (trade != null && trade.GainFee.Quantite > 0) { AjouteGain(trade.GainFee, gainsFee); AjouteTrade(trade, transactionsFee); trade.Execute(this); } }