
com.xeiam.xchange.cointrader.dto.marketdata.CointraderTicker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-cointrader Show documentation
Show all versions of xchange-cointrader Show documentation
XChange implementation for the Cointrader Exchange
The newest version!
package com.xeiam.xchange.cointrader.dto.marketdata;
import java.math.BigDecimal;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xeiam.xchange.cointrader.Cointrader;
import com.xeiam.xchange.cointrader.dto.CointraderBaseResponse;
/**
* @author Matija Mazi
*/
public class CointraderTicker {
public final BigDecimal lastTradePrice;
public final BigDecimal bid;
public final BigDecimal offer;
public final BigDecimal high;
public final BigDecimal low;
public final BigDecimal average;
public final BigDecimal volume;
public CointraderTicker(@JsonProperty("lastTradePrice") BigDecimal lastTradePrice, @JsonProperty("bid") BigDecimal bid,
@JsonProperty("offer") BigDecimal offer, @JsonProperty("high") BigDecimal high, @JsonProperty("low") BigDecimal low,
@JsonProperty("average") BigDecimal average, @JsonProperty("volume") BigDecimal volume) {
this.lastTradePrice = lastTradePrice;
this.bid = bid;
this.offer = offer;
this.high = high;
this.low = low;
this.average = average;
this.volume = volume;
}
@Override
public String toString() {
return String.format("CointraderTicker{lastTradePrice=%s, bid=%s, offer=%s, high=%s, low=%s, average=%s, volume=%s}", lastTradePrice, bid, offer,
high, low, average, volume);
}
public static class Response extends CointraderBaseResponse
© 2015 - 2025 Weber Informatics LLC | Privacy Policy