Class OpenOrders

  • All Implemented Interfaces:
    Serializable

    public final class OpenOrders
    extends Object
    implements Serializable
    DTO representing open orders

    Open orders are orders that you have placed with the exchange that have not yet been matched to a counter-party.

    See Also:
    Serialized Form
    • Constructor Detail

      • OpenOrders

        public OpenOrders​(List<LimitOrder> openOrders)
        Constructor
        Parameters:
        openOrders - The list of open orders
      • OpenOrders

        public OpenOrders​(List<LimitOrder> openOrders,
                          List<Order> hiddenOrders)
        Constructor
        Parameters:
        openOrders - The list of open orders
        hiddenOrders - The list of orders which are active but hidden from the order book.
    • Method Detail

      • getOpenOrders

        public List<LimitOrder> getOpenOrders()
        Returns:
        LimitOrders which are shown on the order book.
      • getAllOpenOrders

        public List<Order> getAllOpenOrders()
        Returns:
        All Orders which are shown on the order book.
      • getHiddenOrders

        public List<? extends Order> getHiddenOrders()
        Returns:
        Orders which are not shown on the order book, such as untriggered stop orders.