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