Class OpenOrders

java.lang.Object
org.knowm.xchange.dto.trade.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 Details

    • 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 Details

    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object