I looked a the sample level II book and it looks very complex. I just want the 1st level sizes.
Many thanks
a sample I copied from the sample maket depth book
/// <summary>
/// Called on each incoming real time market depth event
/// </summary>
protected override void OnMarketDepth(MarketDepthEventArgs e)
{
List<LadderRow> rows = null;
// Checks to see if the Market Data is of the Ask type
if (e.MarketDataType == MarketDataType.Ask)
rows = askRows;
// Checks to see if the Market Data is of the Bid type
else if (e.MarketDataType == MarketDataType.Bid)
rows = bidRows;
if (rows == null)
return;
Comment