org.knowm.xchange.bitfinex.v1.dto.trade.BitfinexCancelOrderRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-bitfinex Show documentation
Show all versions of xchange-bitfinex Show documentation
Development fork. Not for general use.
package org.knowm.xchange.bitfinex.v1.dto.trade;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRawValue;
public class BitfinexCancelOrderRequest {
@JsonProperty("request")
protected String request;
@JsonProperty("nonce")
protected String nonce;
@JsonProperty("order_id")
@JsonRawValue
private long orderId;
/**
* Constructor
*
* @param nonce
* @param orderId
*/
public BitfinexCancelOrderRequest(String nonce, long orderId) {
this.request = "/v1/order/cancel";
this.orderId = orderId;
this.nonce = nonce;
}
public String getOrderId() {
return String.valueOf(orderId);
}
}