/// <summary> ///期货发起查询银行余额请求 /// </summary> public int ReqQueryBankAccountMoneyByFuture(ThostFtdcReqQueryAccountField pReqQueryAccount, int nRequestID) { return(Interop.TdReqQueryBankAccountMoneyByFuture(Handle, pReqQueryAccount, nRequestID)); }
public static extern int TdReqQueryBankAccountMoneyByFuture(IntPtr pApi, ThostFtdcReqQueryAccountField pReqQueryAccount, int nRequestID);
///期货发起查询银行余额应答 public void OnRspQueryBankAccountMoneyByFuture(ThostFtdcReqQueryAccountField pReqQueryAccount, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast) { if (!IsErrorRspInfo(pRspInfo)) { } }
///期货发起查询银行余额错误回报 public void OnErrRtnQueryBankBalanceByFuture(ThostFtdcReqQueryAccountField pReqQueryAccount, ThostFtdcRspInfoField pRspInfo) { if (!IsErrorRspInfo(pRspInfo)) { } }
/// <summary> /// 期货发起查询银行余额应答 /// </summary> /// <param name="pReqQueryAccount"></param> /// <param name="pRspInfo"></param> /// <param name="nRequestID"></param> /// <param name="bIsLast"></param> void OnRspQueryBankAccountMoneyByFuture(ThostFtdcReqQueryAccountField pReqQueryAccount, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast) { DebugPrintFunc(new StackTrace()); if (bIsLast && !IsErrorRspInfo(pRspInfo)) { //保单录入请求 ReqOrderInsert(); } }
/// <summary> /// 期货发起查询银行余额请求 /// </summary> void ReqQueryBankAccountMoneyByFuture() { ThostFtdcReqQueryAccountField req = new ThostFtdcReqQueryAccountField(); req.AccountID = INVESTOR_ID; req.BankAccType = KSFT.EnumBankAccTypeType.SavingCard; req.BankID = "5"; req.Password = "******"; req.BankPassWord = "******"; req.BankPwdFlag = KSFT.EnumPwdFlagType.BlankCheck; req.BankSecuAccType = KSFT.EnumBankAccTypeType.SavingCard; req.BrokerBranchID = BROKER_ID; req.BrokerID = BROKER_ID; req.BrokerIDByBank = BROKER_ID; req.CustType = KSFT.EnumCustTypeType.Institution; req.IdCardType = KSFT.EnumIdCardTypeType.EID; req.LastFragment = KSFT.EnumLastFragmentType.No; req.OperNo = BROKER_ID; req.Password = PASSWORD; req.RequestID = iRequestID; req.SecuPwdFlag = KSFT.EnumPwdFlagType.BlankCheck; req.SessionID = SESSION_ID; req.TradeCode = "204002"; req.UserID = BROKER_ID; req.VerifyCertNoFlag = KSFT.EnumYesNoIndicatorType.No; int iResult = api.ReqQueryBankAccountMoneyByFuture(req, ++iRequestID); Console.WriteLine("--->>> 期货发起查询银行余额请求:" + ((iResult == 0) ? "成功" : "失败")); }