
org.knowm.xchange.binance.dto.trade.BinanceOrder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-binance Show documentation
Show all versions of xchange-binance Show documentation
Development fork. Not for general use.
The newest version!
package org.knowm.xchange.binance.dto.trade;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
import javax.annotation.Nullable;
public final class BinanceOrder {
public final String symbol;
public final long orderId;
public final String clientOrderId;
public final BigDecimal price;
public final BigDecimal origQty;
public final BigDecimal executedQty;
public final BigDecimal cummulativeQuoteQty;
public final OrderStatus status;
public final TimeInForce timeInForce;
public final OrderType type;
public final OrderSide side;
public final BigDecimal stopPrice;
public final BigDecimal icebergQty;
public final long time;
public BinanceOrder(
@JsonProperty("symbol") String symbol,
@JsonProperty("orderId") long orderId,
@JsonProperty("clientOrderId") String clientOrderId,
@JsonProperty("price") BigDecimal price,
@JsonProperty("origQty") BigDecimal origQty,
@JsonProperty("executedQty") BigDecimal executedQty,
@JsonProperty("cummulativeQuoteQty") @Nullable BigDecimal cummulativeQuoteQty,
@JsonProperty("status") OrderStatus status,
@JsonProperty("timeInForce") TimeInForce timeInForce,
@JsonProperty("type") OrderType type,
@JsonProperty("side") OrderSide side,
@JsonProperty("stopPrice") BigDecimal stopPrice,
@JsonProperty("icebergQty") BigDecimal icebergQty,
@JsonProperty("time") long time) {
this.symbol = symbol;
this.orderId = orderId;
this.clientOrderId = clientOrderId;
this.price = price;
this.origQty = origQty;
this.executedQty = executedQty;
this.cummulativeQuoteQty = cummulativeQuoteQty;
this.status = status;
this.timeInForce = timeInForce;
this.type = type;
this.side = side;
this.stopPrice = stopPrice;
this.icebergQty = icebergQty;
this.time = time;
}
public Date getTime() {
return new Date(time);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy