updateMktDepth()

This method is called when the market depth changes.

void updateMktDepth(int tickerId, int position, 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.

operation

Identifies 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.