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

org.knowm.xchange.okex.dto.trade.OkexTradeParams Maven / Gradle / Ivy

package org.knowm.xchange.okex.dto.trade;

import org.knowm.xchange.instrument.Instrument;
import org.knowm.xchange.service.trade.params.CancelOrderByIdParams;
import org.knowm.xchange.service.trade.params.CancelOrderByInstrument;

/** Author: Max Gao ([email protected]) Created: 10-06-2021 */
public class OkexTradeParams {
  public static class OkexCancelOrderParams
      implements CancelOrderByIdParams, CancelOrderByInstrument {
    public final Instrument instrument;
    public final String orderId;

    public OkexCancelOrderParams(Instrument instrument, String orderId) {
      this.instrument = instrument;
      this.orderId = orderId;
    }

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

    @Override
    public Instrument getInstrument() {
      return instrument;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy