org.knowm.xchange.gateio.dto.account.GateioFunds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-gateio Show documentation
Show all versions of xchange-gateio Show documentation
XChange implementation for the Gate.io Exchange
package org.knowm.xchange.gateio.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import org.knowm.xchange.gateio.dto.GateioBaseResponse;
public class GateioFunds extends GateioBaseResponse {
private final Map available;
private final Map locked;
/**
* Constructor
*
* @param theAvailable
* @param theLocked
*/
public GateioFunds(
@JsonProperty("available") Map theAvailable,
@JsonProperty("locked") Map theLocked,
@JsonProperty("result") boolean result,
@JsonProperty("message") final String message) {
super(result, message);
available = theAvailable == null ? new HashMap() : theAvailable;
locked = theLocked == null ? new HashMap() : theLocked;
}
public Map getAvailableFunds() {
return available;
}
public Map getLockedFunds() {
return locked;
}
@Override
public String toString() {
return "BTERAccountInfoReturn [availableFunds=" + available + ", lockedFunds=" + locked + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy