
com.xeiam.xchange.hitbtc.dto.account.HitbtcBalance 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.account;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
public class HitbtcBalance {
private final String currencyCode;
private final BigDecimal cash;
private final BigDecimal reserved;
public HitbtcBalance(@JsonProperty("currency_code") String currencyCode, @JsonProperty("cash") BigDecimal cash,
@JsonProperty("reserved") BigDecimal reserved) {
this.currencyCode = currencyCode;
this.cash = cash;
this.reserved = reserved;
}
public String getCurrencyCode() {
return currencyCode;
}
public BigDecimal getCash() {
return cash;
}
public BigDecimal getReserved() {
return reserved;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("HitbtcBalance [currencyCode=");
builder.append(currencyCode);
builder.append(", cash=");
builder.append(cash);
builder.append(", reserved=");
builder.append(reserved);
builder.append("]");
return builder.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy