
com.xeiam.xchange.hitbtc.dto.marketdata.HitbtcTrade 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 com.xeiam.xchange.hitbtc.dto.marketdata;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author kpysniak
*/
public class HitbtcTrade {
private final long date;
private final BigDecimal price;
private final BigDecimal amount;
private final String tid;
/**
* Constructor
*
* @param date
* @param price
* @param amount
* @param tid
*/
public HitbtcTrade(@JsonProperty("date") long date, @JsonProperty("price") BigDecimal price, @JsonProperty("amount") BigDecimal amount,
@JsonProperty("tid") String tid) {
this.date = date;
this.price = price;
this.amount = amount;
this.tid = tid;
}
public long getDate() {
return date;
}
public BigDecimal getPrice() {
return price;
}
public BigDecimal getAmount() {
return amount;
}
public String getTid() {
return tid;
}
@Override
public String toString() {
return "HitbtcTrade{" + "date=" + date + ", price=" + price + ", amount=" + amount + ", tid='" + tid + '\'' + '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy