Interface OpenOrdersParams

All Known Subinterfaces:
BitcoindeOrderbookOrdersParams, OpenOrdersParamCurrencyPair, OpenOrdersParamInstrument, OpenOrdersParamLimit, OpenOrdersParamMultiCurrencyPair, OpenOrdersParamMultiInstrument, OpenOrdersParamOffset
All Known Implementing Classes:
BankeraTradeService.BankeraOpenOrderParams, BitcoindeOpenOrdersParams, BithumbOpenOrdersParam, CobinhoodOpenOrdersParams, CoinfloorOpenOrdersParams, CoinmateOpenOrdersParams, DefaultOpenOrdersParam, DefaultOpenOrdersParamCurrencyPair, DefaultOpenOrdersParamInstrument, DefaultOpenOrdersParamMultiCurrencyPair, DefaultOpenOrdersParamMultiInstrument, EXXOpenOrdersParams, ItBitOpenOrdersParams, TheRockOpenOrdersParams

public interface OpenOrdersParams
Root interface for all interfaces used as a parameter type for TradeService.getOpenOrders(OpenOrdersParams). Each exchange should have its own class implementing at least one from following available interfaces: When suitable exchange params definition can extend from default classes, eg. DefaultOpenOrdersParamCurrencyPair.
  • Method Summary

    Modifier and Type Method Description
    default boolean accept​(Order order)
    Added later, this method allows the filter to also to apply to stop orders, at a small cost.
    boolean accept​(LimitOrder order)
    Checks if passed order is suitable for open orders params.
  • Method Details

    • accept

      boolean accept​(LimitOrder order)
      Checks if passed order is suitable for open orders params. May be used for XChange side orders filtering
      Parameters:
      order - The order to filter.
      Returns:
      true if order is ok
    • accept

      default boolean accept​(Order order)
      Added later, this method allows the filter to also to apply to stop orders, at a small cost. It should be explicitly implemented for better performance.
      Parameters:
      order - The order to filter.
      Returns:
      true if order is ok.