using System; namespace Krs.Ats.IBNet { /// /// Update Market Depth Event Arguments /// [Serializable()] public class UpdateMarketDepthEventArgs : EventArgs { private MarketDepthOperation operation; private int position; private decimal price; private MarketDepthSide side; private int size; private int tickerId; /// /// Full Constructor /// /// The ticker Id that was specified previously in the call to reqMktDepth(). /// Specifies the row Id of this market depth entry. /// Identifies how this order should be applied to the market depth. /// Identifies the side of the book that this order belongs to. /// The order price. /// The order size. public UpdateMarketDepthEventArgs(int tickerId, int position, MarketDepthOperation operation, MarketDepthSide side, decimal price, int size) { this.tickerId = tickerId; this.size = size; this.price = price; this.side = side; this.operation = operation; this.position = position; } /// /// Uninitialized Constructor for Serialization /// public UpdateMarketDepthEventArgs() { } /// /// The ticker Id that was specified previously in the call to reqMktDepth(). /// public int TickerId { get { return tickerId; } set { tickerId = value; } } /// /// Specifies the row Id of this market depth entry. /// public int Position { get { return position; } set { position = value; } } /// /// Identifies how this order should be applied to the market depth. /// /// public MarketDepthOperation Operation { get { return operation; } set { operation = value; } } /// /// Identifies the side of the book that this order belongs to. /// /// public MarketDepthSide Side { get { return side; } set { side = value; } } /// /// The order price. /// public decimal Price { get { return price; } set { price = value; } } /// /// The order size. /// public int Size { get { return size; } set { size = value; } } } }