Example #1
0
 public OnRtnInstrumentStatusArgs(IntPtr pTraderApi, ref CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     this.pTraderApi = pTraderApi;
     this.pInstrumentStatus = pInstrumentStatus;
 }
        private void OnRtnInstrumentStatus(IntPtr pTraderApi, ref CZQThostFtdcInstrumentStatusField pInstrumentStatus)
        {
            tdlog.Info("{0},{1},{2},{3}",
                pInstrumentStatus.ExchangeID, pInstrumentStatus.InstrumentID,
                pInstrumentStatus.InstrumentStatus, pInstrumentStatus.EnterReason);

            //ι€šηŸ₯单例
            CTPZQAPI.GetInstance().FireOnRtnInstrumentStatus(pInstrumentStatus);
        }
Example #3
0
 private void OnRtnInstrumentStatus_callback(IntPtr pTraderApi, ref CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     if (null != OnRtnInstrumentStatus)
     {
         OnRtnInstrumentStatus(this, new OnRtnInstrumentStatusArgs(pTraderApi, ref pInstrumentStatus));
     }
 }
Example #4
0
 public void FireOnRtnInstrumentStatus(CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     if (null != OnRtnInstrumentStatus)
     {
         OnRtnInstrumentStatus(pInstrumentStatus);
     }
 }