Пример #1
0
 /// <summary>
 ///请求查询投资者结算结果
 /// </summary>
 public int ReqQrySettlementInfo(ThostFtdcQrySettlementInfoField pQrySettlementInfo, int nRequestID)
 {
     return(Interop.TdReqQrySettlementInfo(Handle, pQrySettlementInfo, nRequestID));
 }
Пример #2
0
 /// <summary>
 /// 请求查询投资者结算结果
 /// </summary>
 void ReqQrySettlementInfo()
 {
     ThostFtdcQrySettlementInfoField req = new ThostFtdcQrySettlementInfoField();
     req.BrokerID = BROKER_ID;
     req.InvestorID = INVESTOR_ID;
     int iResult = api.ReqQrySettlementInfo(req, ++iRequestID);
     Console.WriteLine("--->>> 用户查询结算信息: " + ((iResult == 0) ? "成功" : "失败"));
 }
Пример #3
0
 public static extern int TdReqQrySettlementInfo(IntPtr pApi, ThostFtdcQrySettlementInfoField pQrySettlementInfo, int nRequestID);
Пример #4
0
 void trader_OnRspQrySettlementInfoConfirm(ThostFtdcSettlementInfoConfirmField pSettlementInfoConfirm, ThostFtdcRspInfoField pRspInfo, int nRequestID, bool bIsLast)
 {
     if (pSettlementInfoConfirm == null)
     {
         this.SetMsg("正在查询结算结果……");
         try
         {
             ThostFtdcQrySettlementInfoField field = new ThostFtdcQrySettlementInfoField();
             field.TradingDay = DateTime.Now.AddDays(-1).ToShortDateString();
             Thread.Sleep(1000);
             this.trader.ReqQrySettlementInfo(field, requestID++);
         }
         catch (Exception exp)
         {
             this.SetMsg("结算结果查询失败," + exp.Message);
         }
     }
     else
     {
         this.DoQryTradingAccount();
     }
 }