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

org.knowm.xchange.okcoin.dto.account.OkCoinFunds Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.Map;

public class OkCoinFunds {

  private final Map free;
  private final Map freezed;
  private final Map borrow;

  public OkCoinFunds(
      @JsonProperty("free") final Map free,
      @JsonProperty("freezed") final Map freezed,
      @JsonProperty(value = "borrow", required = false) final Map borrow) {

    this.free = free;
    this.freezed = freezed;
    this.borrow = borrow == null ? Collections.emptyMap() : borrow;
  }

  public Map getFree() {

    return free;
  }

  public Map getFreezed() {

    return freezed;
  }

  public Map getBorrow() {

    return borrow;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy