private void OnRtnOrder_callback(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder) { if (null != OnRtnOrder) { OnRtnOrder(this, new OnRtnOrderArgs(pTraderApi, ref pOrder)); } }
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)); } }
public void CancelOrder(ref CThostFtdcOrderField pOrder) { if (null == m_pTdApi || IntPtr.Zero == m_pTdApi) { return; } TraderApi.TD_CancelOrder(m_pTdApi, ref pOrder); }
public static extern void TD_CancelOrder(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder);
public OnRtnOrderArgs(IntPtr pTraderApi, ref CThostFtdcOrderField pOrder) { this.pTraderApi = pTraderApi; this.pOrder = pOrder; }
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; }