Interface Layer1ApiMboDataAdapter

All Superinterfaces:
Layer1ApiMboDataListener
All Known Subinterfaces:
Layer1ApiAdapter, OnlineValueCalculatorAdapter, StrategyUpdateGenerator

public interface Layer1ApiMboDataAdapter extends Layer1ApiMboDataListener
Provides default empty implementations
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onMboCancel(String alias, String orderId)
    An order left the book, whether canceled or fully executed.
    default void
    onMboReplace(String alias, String orderId, int price, int size)
    An existing order changed its price and/or size.
    default void
    onMboSend(String alias, String orderId, boolean isBid, int price, int size)
    A new order entered the book.
  • Method Details

    • onMboSend

      default void onMboSend(String alias, String orderId, boolean isBid, int price, int size)
      Description copied from interface: Layer1ApiMboDataListener
      A new order entered the book.
      Specified by:
      onMboSend in interface Layer1ApiMboDataListener
      Parameters:
      alias - instrument alias
      orderId - id of the order, unique within the instrument
      isBid - true for a bid, false for an ask
      price - price in ticks
      size - order size
    • onMboReplace

      default void onMboReplace(String alias, String orderId, int price, int size)
      Description copied from interface: Layer1ApiMboDataListener
      An existing order changed its price and/or size. The side never changes. Bookmap keeps the order's queue position only when the price is unchanged and the size decreased. Any other change moves the order to the back of the queue at the new price.
      Specified by:
      onMboReplace in interface Layer1ApiMboDataListener
      Parameters:
      alias - instrument alias
      orderId - id of an order previously reported by Layer1ApiMboDataListener.onMboSend(String, String, boolean, int, int)
      price - new price in ticks (may equal the old one)
      size - new size (may equal the old one)
    • onMboCancel

      default void onMboCancel(String alias, String orderId)
      Description copied from interface: Layer1ApiMboDataListener
      An order left the book, whether canceled or fully executed. No further events for this id will follow unless it is re-sent.
      Specified by:
      onMboCancel in interface Layer1ApiMboDataListener
      Parameters:
      alias - instrument alias
      orderId - id of the removed order