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);
         });
     }
 }
Exemple #2
0
 protected override void OnRspQryTradeCode(CLRDFITCQryTradeCodeRtnField TradeCode, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
 protected override void OnRspSubForQuoteRsp(CLRDFITCSpecificInstrumentField SpecificInstrument, CLRDFITCErrorRtnField RspInfo)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 protected override void OnRspExtInsertOrder(CLRDFITCExtOrderRspDataField OrderRsp, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #5
0
 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);
         });
     }
 }
Exemple #6
0
 protected override void OnRtnFromFutureToBankByFuture(CLRDFITCTransferRtnField RtnTransfer, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #7
0
 protected override void OnRtnErrorMsg(CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #8
0
 protected override void OnRspResetPassword(CLRDFITCResetPwdRspField ResetPassword, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #9
0
 protected override void OnRspQryForQuote(CLRDFITCQryForQuoteRtnField QryForQuoteData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #10
0
 protected override void OnRspQryExchangeRate(CLRDFITCExchangeRateField ExchangeRate, CLRDFITCErrorRtnField RspInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #11
0
 protected override void OnRspQryDepthMarketData(CLRDFITCDepthMarketDataField DepthMarketData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #12
0
 protected override void OnRspQryBill(CLRDFITCQryBillRtnField QryBill, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #13
0
 protected override void OnRspFromBankToFutureByFuture(CLRDFITCTransferRspField RspTransfer, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #14
0
 protected override void OnRspUnSubMarketData(CLRDFITCSpecificInstrumentField SpecificInstrument, CLRDFITCErrorRtnField RspInfo)
 {
     throw new NotImplementedException();
 }
Exemple #15
0
 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);
         });
     }
 }
Exemple #16
0
 protected override void OnRspQryTransferSerial(CLRDFITCTransferSerialRspField TransferSerial, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #17
0
 protected override void OnRspQuoteInsert(CLRDFITCQuoteRspField RspQuote, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #18
0
 protected override void OnRspQryMatchInfo(CLRDFITCMatchedRtnField MatchData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #19
0
 protected override void OnRspUserLogout(CLRDFITCUserLogoutInfoRtnField RspUserLogout, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #20
0
 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);
         });
     }
 }
Exemple #21
0
 protected override void OnRspArbitrageInstrument(CLRDFITCAbiInstrumentRtnField AbiInstrumentData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #22
0
 protected override void OnRspQryPositionDetail(CLRDFITCPositionDetailRtnField PositionDetail, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #23
0
 protected override void OnRspBillConfirm(CLRDFITCBillConfirmRspField BillConfirm, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #24
0
 protected override void OnRspQryPricesTrigger(CLRDFITCQryPricesTriggerField QryPricesTriggerRspData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #25
0
 protected override void OnRspCustomerCapital(CLRDFITCCapitalInfoRtnField CapitalInfo, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #26
0
 protected override void OnRspQryQuoteOrderInfo(CLRDFITCQuoteOrderRtnField QuoteOrderData, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }
Exemple #27
0
 protected override void OnRspForQuote(CLRDFITCForQuoteRspField RspForQuoteData, CLRDFITCErrorRtnField ErrorInfo)
 {
     throw new NotImplementedException();
 }
Exemple #28
0
 protected override void OnRspQrySpecifyInstrument(CLRDFITCInstrumentRtnField Instrument, CLRDFITCErrorRtnField ErrorInfo, bool bIsLast)
 {
     throw new NotImplementedException();
 }