示例#1
0
 private void OnRtnOrder_callback(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder)
 {
     if (null != OnRtnOrder)
     {
         OnRtnOrder(this, new OnRtnOrderArgs(pTraderApi, ref pOrder));
     }
 }
示例#2
0
 private void OnRspQryOrder_callback(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (null != OnRspQryOrder)
     {
         OnRspQryOrder(this, new OnRspQryOrderArgs(pTraderApi, ref pOrder, ref pRspInfo, nRequestID, bIsLast));
     }
 }
示例#3
0
        public void CancelOrder(ref CThostFtdcOrderField pOrder)
        {
            if (null == m_pTdApi || IntPtr.Zero == m_pTdApi)
            {
                return;
            }

            TraderApi.TD_CancelOrder(m_pTdApi, ref pOrder);
        }
示例#4
0
 public static extern void TD_CancelOrder(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder);
示例#5
0
文件: EventArgs.cs 项目: kandsy/CTPZQ
 public OnRtnOrderArgs(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder)
 {
     this.pTraderApi = pTraderApi;
     this.pOrder = pOrder;
 }
示例#6
0
文件: EventArgs.cs 项目: kandsy/CTPZQ
 public OnRspQryOrderArgs(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     this.pTraderApi = pTraderApi;
     this.pOrder = pOrder;
     this.pRspInfo = pRspInfo;
     this.nRequestID = nRequestID;
     this.bIsLast = bIsLast;
 }