protected override void OnRspError(CLRDFITCErrorRtnField RspInfo) { if (ProgramTradeEvents.RspEventHandler.ContainsKey(RspSpiModules.RspError) && null != ProgramTradeEvents.RspEventHandler[RspSpiModules.RspError]) { TypedRspEventArgs <CLRDFITCErrorRtnField, object> evt = new TypedRspEventArgs <CLRDFITCErrorRtnField, object> { RequestID = RspInfo.requestID, ErrorID = RspInfo.nErrorID, Message = RspInfo.errorMsg, Data = RspInfo, Error = null, IsLast = true }; Parallel.ForEach(ProgramTradeEvents.RspEventHandler[RspSpiModules.RspError].GetInvocationList(), handler => { (handler as EventHandler <RspEventArgs>).BeginInvoke(this, evt, null, null); }); } }
protected override void OnRspQryTradeCode(CLRDFITCQryTradeCodeRtnField TradeCode, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspSubForQuoteRsp(CLRDFITCSpecificInstrumentField SpecificInstrument, CLRDFITCErrorRtnField RspInfo) { throw new NotImplementedException(); }
protected override void OnRspExtInsertOrder(CLRDFITCExtOrderRspDataField OrderRsp, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspCancelAllOrder(CLRDFITCCancelAllOrderRspField RspCancelAllOrderData, CLRDFITCErrorRtnField ErrorInfo) { if (ProgramTradeEvents.RspEventHandler.ContainsKey(RspSpiModules.CancelAll) && null != ProgramTradeEvents.RspEventHandler[RspSpiModules.CancelAll]) { TypedRspEventArgs <CLRDFITCCancelAllOrderRspField, CLRDFITCErrorRtnField> evt = new TypedRspEventArgs <CLRDFITCCancelAllOrderRspField, CLRDFITCErrorRtnField> { RequestID = RspCancelAllOrderData.lRequestID, ErrorID = ErrorInfo.nErrorID, Message = ErrorInfo.errorMsg, Data = RspCancelAllOrderData, Error = ErrorInfo, IsLast = true }; Parallel.ForEach(ProgramTradeEvents.RspEventHandler[RspSpiModules.CancelAll].GetInvocationList(), handler => { (handler as EventHandler <RspEventArgs>).BeginInvoke(this, evt, null, null); }); } }
protected override void OnRtnFromFutureToBankByFuture(CLRDFITCTransferRtnField RtnTransfer, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRtnErrorMsg(CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspResetPassword(CLRDFITCResetPwdRspField ResetPassword, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspQryForQuote(CLRDFITCQryForQuoteRtnField QryForQuoteData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQryExchangeRate(CLRDFITCExchangeRateField ExchangeRate, CLRDFITCErrorRtnField RspInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQryDepthMarketData(CLRDFITCDepthMarketDataField DepthMarketData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQryBill(CLRDFITCQryBillRtnField QryBill, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspFromBankToFutureByFuture(CLRDFITCTransferRspField RspTransfer, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspUnSubMarketData(CLRDFITCSpecificInstrumentField SpecificInstrument, CLRDFITCErrorRtnField RspInfo) { throw new NotImplementedException(); }
protected override void OnRspSubMarketData(CLRDFITCSpecificInstrumentField SpecificInstrument, CLRDFITCErrorRtnField RspInfo) { if (ProgramTradeEvents.RspEventHandler.ContainsKey(RspSpiModules.SubMarket) && null != ProgramTradeEvents.RspEventHandler[RspSpiModules.SubMarket]) { TypedRspEventArgs <CLRDFITCSpecificInstrumentField, CLRDFITCErrorRtnField> evt = new TypedRspEventArgs <CLRDFITCSpecificInstrumentField, CLRDFITCErrorRtnField> { RequestID = SpecificInstrument.lRequestID, ErrorID = RspInfo.nErrorID, Message = RspInfo.errorMsg, Data = SpecificInstrument, Error = RspInfo, IsLast = true }; Parallel.ForEach(ProgramTradeEvents.RspEventHandler[RspSpiModules.SubMarket].GetInvocationList(), handler => { (handler as EventHandler <RspEventArgs>).BeginInvoke(this, evt, null, null); }); } }
protected override void OnRspQryTransferSerial(CLRDFITCTransferSerialRspField TransferSerial, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQuoteInsert(CLRDFITCQuoteRspField RspQuote, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspQryMatchInfo(CLRDFITCMatchedRtnField MatchData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspUserLogout(CLRDFITCUserLogoutInfoRtnField RspUserLogout, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspQryPosition(CLRDFITCPositionInfoRtnField PositionInfo, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { if (ProgramTradeEvents.RspEventHandler.ContainsKey(RspSpiModules.QryPosition) && null != ProgramTradeEvents.RspEventHandler[RspSpiModules.QryPosition]) { TypedRspEventArgs <CLRDFITCPositionInfoRtnField, CLRDFITCErrorRtnField> evt = new TypedRspEventArgs <CLRDFITCPositionInfoRtnField, CLRDFITCErrorRtnField> { RequestID = PositionInfo.lRequestID, ErrorID = ErrorInfo.nErrorID, Message = ErrorInfo.errorMsg, Data = PositionInfo, Error = ErrorInfo, IsLast = bIsLast }; Parallel.ForEach(ProgramTradeEvents.RspEventHandler[RspSpiModules.QryPosition].GetInvocationList(), handler => { (handler as EventHandler <RspEventArgs>).BeginInvoke(this, evt, null, null); }); } }
protected override void OnRspArbitrageInstrument(CLRDFITCAbiInstrumentRtnField AbiInstrumentData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQryPositionDetail(CLRDFITCPositionDetailRtnField PositionDetail, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspBillConfirm(CLRDFITCBillConfirmRspField BillConfirm, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspQryPricesTrigger(CLRDFITCQryPricesTriggerField QryPricesTriggerRspData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspCustomerCapital(CLRDFITCCapitalInfoRtnField CapitalInfo, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspQryQuoteOrderInfo(CLRDFITCQuoteOrderRtnField QuoteOrderData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }
protected override void OnRspForQuote(CLRDFITCForQuoteRspField RspForQuoteData, CLRDFITCErrorRtnField ErrorInfo) { throw new NotImplementedException(); }
protected override void OnRspQrySpecifyInstrument(CLRDFITCInstrumentRtnField Instrument, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast) { throw new NotImplementedException(); }