private void OnRtnTrade_callback(IntPtr pTraderApi, ref CThostFtdcTradeField pTrade) { if (null != OnRtnTrade) { OnRtnTrade(this, new OnRtnTradeArgs(pTraderApi, ref pTrade)); } }
public OnRtnTradeArgs(IntPtr pTraderApi, ref CThostFtdcTradeField pTrade) { this.pTraderApi = pTraderApi; this.pTrade = pTrade; }
private void OnRspQryTrade_callback(IntPtr pTraderApi, ref CThostFtdcTradeField pTrade, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast) { if (null != OnRspQryTrade) { OnRspQryTrade(this, new OnRspQryTradeArgs(pTraderApi, ref pTrade, ref pRspInfo, nRequestID, bIsLast)); } }
public OnRspQryTradeArgs(IntPtr pTraderApi, ref CThostFtdcTradeField pTrade, ref CThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast) { this.pTraderApi = pTraderApi; this.pTrade = pTrade; this.pRspInfo = pRspInfo; this.nRequestID = nRequestID; this.bIsLast = bIsLast; }