Exemplo n.º 1
0
 ///期货发起期货资金转银行应答
 public void OnRspFromFutureToBankByFuture(ThostFtdcReqTransferField pReqTransfer, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (!IsErrorRspInfo(pRspInfo))
     {
     }
 }
Exemplo n.º 2
0
 ///期货发起期货资金转银行错误回报
 public void OnErrRtnFutureToBankByFuture(ThostFtdcReqTransferField pReqTransfer, ThostFtdcRspInfoField pRspInfo)
 {
     if (!IsErrorRspInfo(pRspInfo))
     {
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 期货发起期货资金转银行应答
 /// </summary>
 /// <param name="pReqTransfer"></param>
 /// <param name="pRspInfo"></param>
 /// <param name="nRequestID"></param>
 /// <param name="bIsLast"></param>
 void OnRspFromFutureToBankByFuture(ThostFtdcReqTransferField pReqTransfer, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     DebugPrintFunc(new StackTrace());
     if (bIsLast && !IsErrorRspInfo(pRspInfo))
     {
         //期货发起查询银行余额请求
         ReqQueryBankAccountMoneyByFuture();
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 期货发起银行资金转期货应答
 /// </summary>
 /// <param name="pReqTransfer"></param>
 /// <param name="pRspInfo"></param>
 /// <param name="nRequestID"></param>
 /// <param name="bIsLast"></param>
 void OnRspFromBankToFutureByFuture(ThostFtdcReqTransferField pReqTransfer, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     DebugPrintFunc(new StackTrace());
     if (bIsLast && !IsErrorRspInfo(pRspInfo))
     {
         //期货发起期货资金转银行请求
         ReqFromFutureToBankByFuture();
     }
 }
Exemplo n.º 5
0
        /// <summary>
        /// 期货发起期货资金转银行请求
        /// </summary>
        void ReqFromFutureToBankByFuture()
        {
            ThostFtdcReqTransferField req = new ThostFtdcReqTransferField();
            req.AccountID = INVESTOR_ID;
            req.BankAccType = KSFT.EnumBankAccTypeType.SavingCard;
            req.BankID = "5";
            req.Password = "******";
            req.BankPassWord = PASSWORD;
            req.BankPwdFlag = KSFT.EnumPwdFlagType.BlankCheck;
            req.BankSecuAccType = KSFT.EnumBankAccTypeType.SavingCard;
            req.BrokerBranchID = BROKER_ID;
            req.BrokerID = BROKER_ID;
            req.BrokerIDByBank = BROKER_ID;
            req.CustomerName = INVESTOR_ID;
            req.CustType = KSFT.EnumCustTypeType.Institution;
            req.FeePayFlag = KSFT.EnumFeePayFlagType.SHA;
            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.TradeAmount = 200;
            req.TradeCode = "202002";
            req.TransferStatus = KSFT.EnumTransferStatusType.Normal;
            req.UserID = INVESTOR_ID;
            req.VerifyCertNoFlag = KSFT.EnumYesNoIndicatorType.No;

            int iResult = api.ReqFromFutureToBankByFuture(req, ++iRequestID);
            Console.WriteLine("--->>> 期货发起期货资金转银行请求:" + ((iResult == 0) ? "成功" : "失败"));
        }
Exemplo n.º 6
0
        /// <summary>
        /// 期货发起银行资金转期货请求
        /// </summary>
        void ReqFromBankToFutureByFuture()
        {
            ThostFtdcReqTransferField req = new ThostFtdcReqTransferField();
            req.AccountID = INVESTOR_ID;
            //银行帐号
            req.BankAccount = "800026";
            //银行帐号类型
            req.BankAccType = KSFT.EnumBankAccTypeType.SavingCard;
            //银行代码
            req.BankID = "5";
            //银行密码
            req.BankPassWord = "******";
            req.Password = "******";
            //期商代码
            req.BrokerID = BROKER_ID;
            //客户类型
            req.CustType = KSFT.EnumCustTypeType.Person;
            //证件类型
            req.IdCardType = KSFT.EnumIdCardTypeType.EID;
            //最后分片标志
            req.LastFragment = KSFT.EnumLastFragmentType.No;
            //请求编号
            req.RequestID = iRequestID;
            //期货资金密码核对标志
            req.SecuPwdFlag = KSFT.EnumPwdFlagType.EncryptCheck;
            //会话号
            req.SessionID = SESSION_ID;
            //转帐金额
            req.TradeAmount = 200;
            //业务功能码
            req.TradeCode = "202001";
            //转账交易状态
            req.TransferStatus = KSFT.EnumTransferStatusType.Normal;
            //验证客户证件号码标志
            req.VerifyCertNoFlag = KSFT.EnumYesNoIndicatorType.No;

            int iResult = api.ReqFromBankToFutureByFuture(req, ++iRequestID);
            Console.WriteLine("--->>> 期货发起银行资金转期货请求:" + ((iResult == 0) ? "成功" : "失败"));
        }