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

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

There is a newer version: 5.2.1
Show newest version
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