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

org.knowm.xchange.therock.dto.TheRockCancelOrderParams Maven / Gradle / Ivy

There is a newer version: 5.2.0
Show newest version
package org.knowm.xchange.therock.dto;

import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.service.trade.params.CancelOrderByCurrencyPair;
import org.knowm.xchange.service.trade.params.CancelOrderByIdParams;

public class TheRockCancelOrderParams implements CancelOrderByIdParams, CancelOrderByCurrencyPair {
  public final CurrencyPair currencyPair;
  public final Long orderId;

  public TheRockCancelOrderParams(CurrencyPair currencyPair, Long orderId) {
    this.currencyPair = currencyPair;
    this.orderId = orderId;
  }

  @Override
  public CurrencyPair getCurrencyPair() {
    return currencyPair;
  }

  @Override
  public String getOrderId() {
    return orderId.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy