com.kucoin.sdk.rest.response.TradeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kucoin-java-sdk Show documentation
Show all versions of kucoin-java-sdk Show documentation
Fixed fork of the official Kucoin SDK
The newest version!
/**
* Copyright 2019 Mek Global Limited.
*/
package com.kucoin.sdk.rest.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 TradeResponse {
private String symbol;
private String tradeId;
private String orderId;
private String counterOrderId;
private String side;
public String getSide() {
return this.side == null ? null : this.side.toLowerCase();
}
private String liquidity;
public String getLiquidity() {
return this.liquidity == null ? null : this.liquidity.toLowerCase();
}
private boolean forceTaker;
private BigDecimal price;
private BigDecimal size;
private BigDecimal funds;
private BigDecimal fee;
private BigDecimal feeRate;
private String feeCurrency;
private String domainId;
@JsonProperty("type")
private String orderType;
private String stop;
@JsonProperty("createdAt")
private Date tradeCreatedAt;
private String displayType;
}