package org.knowm.xchange.bitkonan.dto.marketdata; import java.math.BigDecimal; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author Piotr Ładyżyński */ public final class BitKonanTicker { private final BigDecimal ask; private final BigDecimal bid; private final BigDecimal last; private final BigDecimal low; private final BigDecimal high; private final BigDecimal volume; /** * Constructor * * @param ask * @param bid * @param last * @param low * @param high * @param volume */ public BitKonanTicker(@JsonProperty("ask") BigDecimal ask, @JsonProperty("bid") BigDecimal bid, @JsonProperty("last") BigDecimal last, @JsonProperty("low") BigDecimal low, @JsonProperty("high") BigDecimal high, @JsonProperty("volume") BigDecimal volume) { this.ask = ask; this.bid = bid; this.last = last; this.low = low; this.high = high; this.volume = volume; } public BigDecimal getAsk() { return ask; } public BigDecimal getBid() { return bid; } public BigDecimal getLast() { return last; } public BigDecimal getLow() { return low; } public BigDecimal getHigh() { return high; } public BigDecimal getVolume() { return volume; } @Override public String toString() { return "BitKonanTicker{" + "ask=" + ask + ", bid=" + bid + ", last=" + last + ", low=" + low + ", high=" + high + ", volume=" + volume + '}'; } }