Class MarketByOrderDepthDataAdapter

java.lang.Object
velox.api.layer1.simplified.MarketByOrderDepthDataAdapter
All Implemented Interfaces:
MarketByOrderDepthDataListener

public class MarketByOrderDepthDataAdapter extends Object implements MarketByOrderDepthDataListener
An adapter for MarketByOrderDepthDataListener with empty default methods implementations
  • Constructor Details

    • MarketByOrderDepthDataAdapter

      public MarketByOrderDepthDataAdapter()
  • Method Details

    • send

      public void send(String orderId, boolean isBid, int price, int size)
      Description copied from interface: MarketByOrderDepthDataListener
      Called when a new order was accepted by the exchange
      Specified by:
      send in interface MarketByOrderDepthDataListener
      Parameters:
      orderId - unique order id
      isBid - true if update describes a buy order
      price - limit price of the order in units of price levels
      size - the size of the order
    • replace

      public void replace(String orderId, int price, int size)
      Description copied from interface: MarketByOrderDepthDataListener
      Called when an existing order was modified
      Specified by:
      replace in interface MarketByOrderDepthDataListener
      Parameters:
      orderId - unique order id
      price - new limit price (can be the same as previous)
      size - new order size (can be the same as previous)
    • cancel

      public void cancel(String orderId)
      Description copied from interface: MarketByOrderDepthDataListener
      Called when an existing order was deleted
      Specified by:
      cancel in interface MarketByOrderDepthDataListener
      Parameters:
      orderId - unique order id