1 package org.oxerr.peatio.rest.dto; 2 3 import java.math.BigDecimal; 4 5 import com.fasterxml.jackson.annotation.JsonProperty; 6 7 public class Ticker extends BaseObject { 8 9 private final BigDecimal buy; 10 private final BigDecimal sell; 11 private final BigDecimal low; 12 private final BigDecimal high; 13 private final BigDecimal last; 14 private final BigDecimal vol; 15 16 public Ticker( 17 @JsonProperty("buy") BigDecimal buy, 18 @JsonProperty("sell") BigDecimal sell, 19 @JsonProperty("low") BigDecimal low, 20 @JsonProperty("high") BigDecimal high, 21 @JsonProperty("last") BigDecimal last, 22 @JsonProperty("vol") BigDecimal vol) { 23 this.buy = buy; 24 this.sell = sell; 25 this.low = low; 26 this.high = high; 27 this.last = last; 28 this.vol = vol; 29 } 30 31 public BigDecimal getBuy() { 32 return buy; 33 } 34 35 public BigDecimal getSell() { 36 return sell; 37 } 38 39 public BigDecimal getLow() { 40 return low; 41 } 42 43 public BigDecimal getHigh() { 44 return high; 45 } 46 47 public BigDecimal getLast() { 48 return last; 49 } 50 51 public BigDecimal getVol() { 52 return vol; 53 } 54 55 }