All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.exx.dto.params.EXXOpenOrdersParams Maven / Gradle / Ivy

There is a newer version: 4.3.17.1
Show newest version
package org.knowm.xchange.exx.dto.params;

import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.trade.LimitOrder;
import org.knowm.xchange.service.trade.params.orders.OpenOrdersParams;

public class EXXOpenOrdersParams implements OpenOrdersParams {
  private CurrencyPair currencyPair;
  private String type = "buy";
  private int pageIndex = 1;

  /** No args constructor for use in serialization */
  public EXXOpenOrdersParams() {}

  /**
   * @param type
   * @param pageIndex
   * @param currency
   */
  public EXXOpenOrdersParams(CurrencyPair currencyPair, String type, int pageIndex) {
    super();
    this.currencyPair = currencyPair;
    this.type = type;
    this.pageIndex = pageIndex;
  }

  public boolean accept(LimitOrder order) {
    return false;
  }

  public CurrencyPair getCurrencyPair() {
    return currencyPair;
  }

  public void setCurrencyPair(CurrencyPair currencyPair) {
    this.currencyPair = currencyPair;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public int getPageIndex() {
    return pageIndex;
  }

  public void setPageIndex(int pageIndex) {
    this.pageIndex = pageIndex;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy