updateMktDepthL2()

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

Sub updateMktDepthL2(ByVal id As Integer, ByVal position As Integer, ByVal marketMaker As String, ByVal operation As Integer, ByVal side As Integer, ByVal price As Double, ByVal size As Integer)

Parameter

Description

id

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.