org.knowm.xchange.coinegg.dto.trade.CoinEggTradeView Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-coinegg Show documentation
Show all versions of xchange-coinegg Show documentation
XChange implementation for the CoinEgg Exchange
The newest version!
package org.knowm.xchange.coinegg.dto.trade;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import org.knowm.xchange.coinegg.dto.marketdata.CoinEggTrade.Type;
public class CoinEggTradeView extends CoinEggTradeList {
private final String status;
public CoinEggTradeView(
@JsonProperty("id") int id,
@JsonProperty("datetime") String datetime,
@JsonProperty("type") Type type,
@JsonProperty("price") BigDecimal price,
@JsonProperty("amount_original") BigDecimal amountOriginal,
@JsonProperty("amount_outstanding") BigDecimal amountOutstanding,
@JsonProperty("status") String status) {
super(id, datetime, type, price, amountOriginal, amountOutstanding);
this.status = status;
}
public boolean isOpen() {
return status.toUpperCase().equals("OPEN");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy