Example #1
0
 public void Sell(SellOptions options)
 {
     lock (SyncRoot)
     {
         if (CanSell(options, out string message))
         {
             tradingTimedTask.InitiateSell(options);
         }
         else
         {
             loggingService.Debug(message);
         }
     }
 }
Example #2
0
 public void Sell(SellOptions options)
 {
     lock (syncRoot)
     {
         PauseTasks();
         try
         {
             if (CanSell(options, out string message))
             {
                 tradingTimedTask.InitiateSell(options);
             }
             else
             {
                 loggingService.Debug(message);
             }
         }
         finally
         {
             ContinueTasks();
         }
     }
 }