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 TradeObject {
8
9 private final String time;
10 private final BigDecimal price;
11 private final BigDecimal amount;
12 private final String type;
13
14 public TradeObject(
15 @JsonProperty("time") final String time,
16 @JsonProperty("price") final BigDecimal price,
17 @JsonProperty("amount") final BigDecimal amount,
18 @JsonProperty("type") final String type) {
19 this.time = time;
20 this.price = price;
21 this.amount = amount;
22 this.type = type;
23 }
24
25 public String getTime() {
26 return time;
27 }
28
29 public BigDecimal getPrice() {
30 return price;
31 }
32
33 public BigDecimal getAmount() {
34 return amount;
35 }
36
37 public String getType() {
38 return type;
39 }
40
41 }