org.knowm.xchange.hitbtc.v2.dto.HitbtcOwnTrade Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-hitbtc Show documentation
Show all versions of xchange-hitbtc Show documentation
XChange implementation for Hitbtc exchange
The newest version!
package org.knowm.xchange.hitbtc.v2.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
public class HitbtcOwnTrade {
public final String symbol;
private final Long id;
private final String clientOrderId;
private final Long orderId;
private final HitbtcSide side;
private final BigDecimal quantity;
private final BigDecimal fee;
private final BigDecimal price;
private final Date timestamp;
public HitbtcOwnTrade(
@JsonProperty("id") Long id,
@JsonProperty("clientOrderId") String clientOrderId,
@JsonProperty("orderId") Long orderId,
@JsonProperty("symbol") String symbol,
@JsonProperty("side") HitbtcSide side,
@JsonProperty("quantity") BigDecimal quantity,
@JsonProperty("fee") BigDecimal fee,
@JsonProperty("price") BigDecimal price,
@JsonProperty("timestamp") Date timestamp) {
this.id = id;
this.clientOrderId = clientOrderId;
this.orderId = orderId;
this.symbol = symbol;
this.side = side;
this.quantity = quantity;
this.fee = fee;
this.price = price;
this.timestamp = timestamp;
}
public Long getId() {
return id;
}
public String getClientOrderId() {
return clientOrderId;
}
public Long getOrderId() {
return orderId;
}
public HitbtcSide getSide() {
return side;
}
public BigDecimal getQuantity() {
return quantity;
}
public BigDecimal getFee() {
return fee;
}
public BigDecimal getPrice() {
return price;
}
public Date getTimestamp() {
return timestamp;
}
@Override
public String toString() {
return "HitbtcOwnTrade{"
+ "id="
+ id
+ ", clientOrderId='"
+ clientOrderId
+ '\''
+ ", orderId="
+ orderId
+ ", side="
+ side
+ ", quantity="
+ quantity
+ ", fee="
+ fee
+ ", price="
+ price
+ ", timestamp="
+ timestamp
+ '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy