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

com.xeiam.xchange.hitbtc.dto.account.HitbtcBalance Maven / Gradle / Ivy

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