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

org.knowm.xchange.cexio.dto.account.CexIOBalance Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.knowm.xchange.cexio.dto.account;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.text.MessageFormat;

/** Author: brox Since: 2/7/14 */
public class CexIOBalance {

  private final BigDecimal available;
  private final BigDecimal orders;
  private final BigDecimal bonus;

  /**
   * Constructor
   *
   * @param available Available balance
   * @param orders Balance in pending orders
   * @param bonus Referral program bonus
   */
  public CexIOBalance(
      @JsonProperty("available") BigDecimal available,
      @JsonProperty("orders") BigDecimal orders,
      @JsonProperty("bonus") BigDecimal bonus) {

    this.available = available;
    this.orders = orders;
    this.bonus = bonus;
  }

  public BigDecimal getAvailable() {

    return available;
  }

  public BigDecimal getOrders() {

    return orders;
  }

  public BigDecimal getBonus() {

    return bonus;
  }

  @Override
  public String toString() {

    return MessageFormat.format(
        "CexIOBalance[available={0}, orders={1}, bonus={2}]", available, orders, bonus);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy