Class MarketByOrderDepthDataAdapter

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

public class MarketByOrderDepthDataAdapter
extends java.lang.Object
implements MarketByOrderDepthDataListener
An adapter for MarketByOrderDepthDataListener with empty default methods implementations
  • Constructor Summary

    Constructors 
    Constructor Description
    MarketByOrderDepthDataAdapter()  
  • Method Summary

    Modifier and Type Method 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • send

      public void send​(java.lang.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​(java.lang.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​(java.lang.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