Ejemplo n.º 1
0
 /// <summary>
 ///  请求查询成交:不填-查所有
 /// </summary>
 /// <param name="_exchangeID"></param>
 /// <param name="_timeStart"></param>
 /// <param name="_timeEnd"></param>
 /// <param name="_instrumentID"></param>
 /// <param name="_tradeID"></param>
 public int QryTrade(string _timeStart = null, string _timeEnd = null
     , string _instrumentID = null, string _exchangeID = null, string _tradeID = null)
 {
     CThostFtdcQryTradeField tmp = new CThostFtdcQryTradeField();
     tmp.BrokerID = this.BrokerID;
     tmp.InvestorID = this.InvestorID;
     tmp.ExchangeID = _exchangeID;
     tmp.TradeTimeStart = _timeStart;
     tmp.TradeTimeEnd = _timeEnd ;
     tmp.InstrumentID = _instrumentID;
     tmp.TradeID = _tradeID;
     return reqQryTrade(ref tmp);
 }
Ejemplo n.º 2
0
		static extern int reqQryTrade(ref CThostFtdcQryTradeField pQryTrade);
Ejemplo n.º 3
0
		/// <summary>
		///  请求查询成交:不填-查所有
		/// </summary>
		/// <param name="_exchangeID"></param>
		/// <param name="_timeStart"></param>
		/// <param name="_timeEnd"></param>
		/// <param name="_instrumentID"></param>
		/// <param name="_tradeID"></param>
		public int QryTrade(DateTime? _timeStart = null, DateTime? _timeEnd = null
			, string _instrumentID = null,string _exchangeID = null,  string _tradeID = null)
		{
			CThostFtdcQryTradeField tmp = new CThostFtdcQryTradeField();
			tmp.BrokerID = this.BrokerID;
			tmp.InvestorID = this.InvestorID;
			tmp.ExchangeID = _exchangeID;
			tmp.TradeTimeStart = _timeStart == null ? null : _timeStart.Value.ToString("HH:mm:ss");
			tmp.TradeTimeEnd = _timeEnd == null ? null : _timeEnd.Value.ToString("HH:mm:ss");
			tmp.InstrumentID = _instrumentID;
			tmp.TradeID = _tradeID;
			return reqQryTrade(ref tmp);
		}