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

org.knowm.xchange.cobinhood.dto.account.CobinhoodCoinBalance Maven / Gradle / Ivy

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

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

public class CobinhoodCoinBalance {
  private final String currency;
  private final BigDecimal totalAmount;
  private final BigDecimal onOrderAmount;

  public CobinhoodCoinBalance(
      @JsonProperty("currency") String currency,
      @JsonProperty("total") BigDecimal totalAmount,
      @JsonProperty("on_order") BigDecimal onOrderAmount) {
    this.currency = currency;
    this.totalAmount = totalAmount;
    this.onOrderAmount = onOrderAmount;
  }

  public String getCurrency() {
    return currency;
  }

  public BigDecimal getTotalAmount() {
    return totalAmount;
  }

  public BigDecimal getOnOrderAmount() {
    return onOrderAmount;
  }

  @Override
  public String toString() {
    return "CobinhoodCoinBalance{"
        + "currency='"
        + currency
        + '\''
        + ", totalAmount="
        + totalAmount
        + ", onOrderAmount="
        + onOrderAmount
        + '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy