package org.knowm.xchange.btctrade.dto.trade; import java.math.BigDecimal; import com.fasterxml.jackson.annotation.JsonProperty; public class BTCTradeOrder { private final String id; private final String datetime; private final String type; private final String coin; private final BigDecimal price; private final BigDecimal amountOriginal; private final BigDecimal amountOutstanding; private final String status; private final BTCTradeTrade[] trades; public BTCTradeOrder(@JsonProperty("id") String id, @JsonProperty("datetime") String datetime, @JsonProperty("type") String type, @JsonProperty("coin") String coin, @JsonProperty("price") BigDecimal price, @JsonProperty("amount_original") BigDecimal amountOriginal, @JsonProperty("amount_outstanding") BigDecimal amountOutstanding, @JsonProperty("status") String status, @JsonProperty("trades") BTCTradeTrade[] trades) { this.id = id; this.datetime = datetime; this.type = type; this.coin = coin; this.price = price; this.amountOriginal = amountOriginal; this.amountOutstanding = amountOutstanding; this.status = status; this.trades = trades; } public String getId() { return id; } public String getDatetime() { return datetime; } public String getType() { return type; } public String getCoin() { return coin; } public BigDecimal getPrice() { return price; } public BigDecimal getAmountOriginal() { return amountOriginal; } public BigDecimal getAmountOutstanding() { return amountOutstanding; } public String getStatus() { return status; } public BTCTradeTrade[] getTrades() { return trades; } }