updateMktDepthL2()

This method is called when the Level II market depth changes.

void updateMktDepthL2(int tickerId, int position, String marketMaker, int operation, int side, double price, int size)

Parameter

Description

tickerId

The ticker Id that was specified previously in the call to reqMktDepth()

position

Specifies the row id of this market depth entry.

marketMaker

Specifies the exchange hosting this order.

operation

 identifies the how this order should be applied to the market depth. Valid values are:·

·          0 = insert (insert this new order into the row identified by 'position')·

·          1 = update (update the existing order in the row identified by 'position')·

·          2 = delete (delete the existing order at the row identified by 'position')

side

Identifies the side of the book that this order belongs to. Valid values are:

·          0 = ask

·          1 = bid

price

The order price.

size

The order size.