예제 #1
0
 private void AjouteTrade(AnomalieTrade trade, List <AnomalieTrade> liste)
 {
     lock (liste)
     {
         liste.Add(trade);
     }
 }
예제 #2
0
 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);
     }
 }