Skip to main content

OrderBookMboUnsorted

Package: velox.api.layer1.layers.utils.mbo

Type: Class

Inheritance: java.lang.Object รขโ€ โ€™ OrderBookMboUnsorted

Descriptionโ€‹

Faster but less functional alternative to OrderBookMbo

Constructorsโ€‹

OrderBookMboUnsortedโ€‹

public OrderBookMboUnsorted()

OrderBookMboUnsortedโ€‹

public OrderBookMboUnsorted(OrderBookMboUnsorted other)

OrderBookMboUnsortedโ€‹

public OrderBookMboUnsorted(OrderBookMbo other)

Methodsโ€‹

sendDataToListenerโ€‹

public void sendDataToListener(String alias, Layer1ApiMboDataListener listener)

Note that unlike OrderBookMbo.sendDataToListener(String, Layer1ApiMboDataListener) this one is somewhat slow - it has to sort orders by levels first, which is done by constructing OrderBookMbo

sendโ€‹

public void send(String orderId, boolean isBid, int price, int size)

replaceโ€‹

public void replace(String orderId, int price, int size)

cancelโ€‹

public void cancel(String orderId)

getOrderโ€‹

public Order getOrder(String orderId)