
org.knowm.xchange.kucoin.dto.response.HistOrdersResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kucoin Show documentation
Show all versions of xchange-kucoin Show documentation
XChange implementation for the Kucoin Exchange
package org.knowm.xchange.kucoin.dto.response;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class HistOrdersResponse {
private String symbol;
private String side;
public String getSide() {
return this.side == null ? null : this.side.toLowerCase();
}
@JsonProperty("dealPrice")
private BigDecimal price;
// price * amount (i.e. volume of this trade in counter ccy)
@JsonProperty("dealValue")
private BigDecimal value;
private BigDecimal amount;
private BigDecimal fee;
@JsonProperty("createdAt")
private long createdAtSeconds;
public Date getTradeCreatedAt() {
return new Date(createdAtSeconds * 1000);
}
private String id;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy