Receive Market Depth
EWrapper.updateMktDepth (
tickerId: int. Request identifier used to track data.
position: int. The order book’s row being updated
operation: int. Indicates a change in the row’s value.:
- 0 = insert (insert new price into the row)·
- 1 = update (update the existing order in the row)·
- 2 = delete (delete the existing order at the row).
side: int. 0 for ask, 1 for bid
price: double. The order’s price
size: decimal. The order’s size
)
Returns the order book. Used for direct routed requests only.
Python
Java
C++
C#
VB.NET
EWrapper.updateMktDepthL2 (
tickerId: int. Request identifier used to track data.
position: int. The order book’s row being updated.
marketMaker: String. The exchange holding the order if isSmartDepth is True, otherwise the MPID of the market maker.
operation: int. Indicates a change in the row’s value.:
- 0 = insert (insert new price into the row)·
- 1 = update (update the existing order in the row)·
- 2 = delete (delete the existing order at the row).
side: int. 0 for ask, 1 for bid
price: double. The order’s price
size: decimal. The order’s size
isSmartDepth: bool. Flag indicating if this is smart depth response (True) or the MPID of the market maker.
)
Returns the order book.

