public class MarketByOrderDepthDataAdapter extends java.lang.Object implements MarketByOrderDepthDataListener
MarketByOrderDepthDataListener with empty default
methods implementations| Constructor and Description |
|---|
MarketByOrderDepthDataAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(java.lang.String orderId)
Called when an existing order was deleted
|
void |
replace(java.lang.String orderId,
int price,
int size)
Called when an existing order was modified
|
void |
send(java.lang.String orderId,
boolean isBid,
int price,
int size)
Called when a new order was accepted by the exchange
|
public void send(java.lang.String orderId,
boolean isBid,
int price,
int size)
MarketByOrderDepthDataListenersend in interface MarketByOrderDepthDataListenerorderId - unique order idisBid - true if update describes a buy orderprice - limit price of the order in units of price levelssize - the size of the orderpublic void replace(java.lang.String orderId,
int price,
int size)
MarketByOrderDepthDataListenerreplace in interface MarketByOrderDepthDataListenerorderId - unique order idprice - new limit price (can be the same as previous)size - new order size (can be the same as previous)public void cancel(java.lang.String orderId)
MarketByOrderDepthDataListenercancel in interface MarketByOrderDepthDataListenerorderId - unique order id