All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.kucoin.dto.response.TradeResponse Maven / Gradle / Ivy

/** Copyright 2019 Mek Global Limited. */
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 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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy