using System; namespace Krs.Ats.IBNet { /// /// Real Time Bar Event Arguments /// [Serializable()] public class RealTimeBarEventArgs : EventArgs { private decimal close; private int count; private decimal high; private decimal low; private decimal open; private int requestId; private long time; private long volume; private double wap; /// /// Real Time Bar Event Arguments /// /// The ticker Id of the request to which this bar is responding. /// The date-time stamp of the start of the bar. /// The format is determined by the reqHistoricalData() formatDate parameter. /// Bar opening price. /// High price during the time covered by the bar. /// Low price during the time covered by the bar. /// Bar closing price. /// Volume during the time covered by the bar. /// Weighted average price during the time covered by the bar. /// When TRADES historical data is returned, represents the number of trades that occurred during the time period the bar covers. public RealTimeBarEventArgs(int requestId, long time, decimal open, decimal high, decimal low, decimal close, long volume, double wap, int count) { this.requestId = requestId; this.time = time; this.open = open; this.high = high; this.low = low; this.close = close; this.volume = volume; this.wap = wap; this.count = count; } /// /// Uninitialized Constructor for Serialization /// public RealTimeBarEventArgs() { } /// /// The ticker Id of the request to which this bar is responding. /// public int RequestId { get { return requestId; } set { requestId = value; } } /// /// The date-time stamp of the start of the bar. /// The format is determined by the reqHistoricalData() formatDate parameter. /// public long Time { get { return time; } set { time = value; } } /// /// Bar opening price. /// public decimal Open { get { return open; } set { open = value; } } /// /// High price during the time covered by the bar. /// public decimal High { get { return high; } set { high = value; } } /// /// Low price during the time covered by the bar. /// public decimal Low { get { return low; } set { low = value; } } /// /// Bar closing price. /// public decimal Close { get { return close; } set { close = value; } } /// /// Volume during the time covered by the bar. /// public long Volume { get { return volume; } set { volume = value; } } /// /// Weighted average price during the time covered by the bar. /// public double Wap { get { return wap; } set { wap = value; } } /// /// When TRADES historical data is returned, represents the number of trades that occurred during the time period the bar covers. /// public int Count { get { return count; } set { count = value; } } } }