Interface DOMRow


public interface DOMRow
Represents a row in the Depth of Market (DOM) with a price and aggregate size.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the number of active limit orders at this price.
    Gets the list of active limit orders at this price (ordered by priority, first order is at the front of the queue).
    float
    Gets the price for this row.
    float
    Gets the size for this row.
    boolean
    Determines if this is an ask row or a bid row
  • Method Details

    • isAsk

      boolean isAsk()
      Determines if this is an ask row or a bid row
      Returns:
      true if this is an ask row
    • getPrice

      float getPrice()
      Gets the price for this row.
      Returns:
      price for this row
    • getSize

      float getSize()
      Gets the size for this row. For some instruments (such as crypto currencies) this can contain floating point values.
      Returns:
      size for this row
    • getOrderCount

      int getOrderCount()
      Gets the number of active limit orders at this price. Zero (0) will be returned if this feature is not supported by the broker.
      Returns:
      number of active orders at this price
    • getOrders

      List<DOMOrder> getOrders()
      Gets the list of active limit orders at this price (ordered by priority, first order is at the front of the queue). This is only available if your broker supports Market By Order.
      Returns:
      active limit orders (ordered by priority) for this price