Example #1
0
 public void OnQuote(CTP.ThostFtdcDepthMarketDataField e)
 {
     if (e.InstrumentID == instrumentID)
     {
         lastQuote = e;
     }
 }
Example #2
0
 private void dataPrivoder_OnMarketDataReceived(object sender, CTP.ThostFtdcDepthMarketDataField e)
 {
     lock (subscription)
     {
         foreach (var item in subscription)
         {
             if (item.Value.Contains(e.InstrumentID))
             {
                 item.Key.OnQuote(e);
             }
         }
     }
 }