コード例 #1
0
 /// <summary>
 /// дать роботам котировки в работу
 /// </summary>
 public void OnQuotesReceived(string[] names, CandleDataBidAsk[] quotes, bool isHistoryQuotes)
 {
     if (context == null)
     {
         return;
     }
     try
     {
         context.OnQuotesReceived(names, quotes, isHistoryQuotes);
     }
     catch (Exception ex)
     {
         logNoFlood.LogMessageFormatCheckFlood(LogEntryType.Error, LogMsgQuoteRecvError,
                                               1000 * 60 * 5, "Ошибка в OnQuotesReceived (счет {0}): {1}",
                                               AccountId, ex);
     }
 }