org.knowm.xchange.poloniex.dto.trade.PoloniexDepositsWithdrawalsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-poloniex Show documentation
Show all versions of xchange-poloniex Show documentation
XChange implementation for the Poloniex Exchange
package org.knowm.xchange.poloniex.dto.trade;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import org.knowm.xchange.exceptions.ExchangeException;
public class PoloniexDepositsWithdrawalsResponse {
private final List adjustments;
private final List deposits;
private final List withdrawals;
@JsonCreator
public PoloniexDepositsWithdrawalsResponse(
@JsonProperty("error") String error,
@JsonProperty("adjustments") List adjustments,
@JsonProperty("deposits") List deposits,
@JsonProperty("withdrawals") List withdrawals) {
if (error != null) {
throw new ExchangeException(error);
}
this.adjustments = adjustments;
this.deposits = deposits;
this.withdrawals = withdrawals;
}
public List getAdjustments() {
return adjustments;
}
public List getDeposits() {
return deposits;
}
public List getWithdrawals() {
return withdrawals;
}
@Override
public String toString() {
return "PoloniexDepositsWithdrawalsResponse{"
+ "adjustments="
+ adjustments
+ ", deposits="
+ deposits
+ ", withdrawals="
+ withdrawals
+ '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy