
com.xeiam.xchange.poloniex.dto.trade.PoloniexTradeResponse 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
The newest version!
package com.xeiam.xchange.poloniex.dto.trade;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xeiam.xchange.poloniex.dto.marketdata.PoloniexPublicTrade;
import si.mazi.rescu.ExceptionalReturnContentException;
public class PoloniexTradeResponse {
private final Integer orderNumber;
private final List resultingTrades = new ArrayList();
@JsonCreator
public PoloniexTradeResponse(@JsonProperty("orderNumber") Integer orderNumber,
@JsonProperty("resultingTrades") List resultingTrades) {
if (orderNumber == null) {
throw new ExceptionalReturnContentException("No trade data in response");
}
this.orderNumber = orderNumber;
if (resultingTrades != null) {
this.resultingTrades.addAll(resultingTrades);
}
}
public Integer getOrderNumber() {
return orderNumber;
}
public List getPoloniexPublicTrades() {
return resultingTrades;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy