Ejemplo n.º 1
0
 public OnRtnInstrumentStatusArgs(IntPtr pTraderApi, ref CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     this.pTraderApi = pTraderApi;
     this.pInstrumentStatus = pInstrumentStatus;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 private void OnRtnInstrumentStatus_callback(IntPtr pTraderApi, ref CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     if (null != OnRtnInstrumentStatus)
     {
         OnRtnInstrumentStatus(this, new OnRtnInstrumentStatusArgs(pTraderApi, ref pInstrumentStatus));
     }
 }
Ejemplo n.º 4
0
 public void FireOnRtnInstrumentStatus(CZQThostFtdcInstrumentStatusField pInstrumentStatus)
 {
     if (null != OnRtnInstrumentStatus)
     {
         OnRtnInstrumentStatus(pInstrumentStatus);
     }
 }