using System;
namespace Krs.Ats.IBNet
{
///
/// Update Market Depth L2 Event Arguments
///
[Serializable()]
public class UpdateMarketDepthL2EventArgs : EventArgs
{
private string marketMaker;
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 .
/// Specifies the row id of this market depth entry.
/// Specifies the exchange hosting this order.
/// Identifies the 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 UpdateMarketDepthL2EventArgs(int tickerId, int position, string marketMaker, MarketDepthOperation operation,
MarketDepthSide side, decimal price, int size)
{
this.tickerId = tickerId;
this.size = size;
this.price = price;
this.side = side;
this.operation = operation;
this.marketMaker = marketMaker;
this.position = position;
}
///
/// Uninitialized Constructor for Serialization
///
public UpdateMarketDepthL2EventArgs()
{
}
///
/// The ticker Id that was specified previously in the call to .
///
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; }
}
///
/// Specifies the exchange hosting this order.
///
public string MarketMaker
{
get { return marketMaker; }
set { marketMaker = value; }
}
///
/// Identifies the 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; }
}
}
}