1 package org.oxerr.okcoin.rest.dto;
2
3 import java.math.BigDecimal;
4 import java.time.Instant;
5
6 public class IcebergOrder extends BaseObject {
7
8 private static final long serialVersionUID = 2015021501L;
9
10 private final long id;
11
12 private final Instant date;
13
14 private final Type side;
15
16
17
18
19 private final BigDecimal tradeValue;
20
21
22
23
24 private final BigDecimal singleAvg;
25
26
27
28
29 private final BigDecimal depthRange;
30
31
32
33
34 private final BigDecimal protectedPrice;
35
36 private final BigDecimal filled;
37
38 private final Status status;
39
40 public IcebergOrder(
41 long id,
42 Instant date, Type side, BigDecimal tradeValue,
43 BigDecimal singleAvg, BigDecimal depthRange,
44 BigDecimal protectedPrice, BigDecimal filled,
45 Status status) {
46 this.id = id;
47 this.date = date;
48 this.side = side;
49 this.tradeValue = tradeValue;
50 this.singleAvg = singleAvg;
51 this.depthRange = depthRange;
52 this.protectedPrice = protectedPrice;
53 this.filled = filled;
54 this.status = status;
55 }
56
57 public long getId() {
58 return id;
59 }
60
61 public Instant getDate() {
62 return date;
63 }
64
65 public Type getSide() {
66 return side;
67 }
68
69 public BigDecimal getTradeValue() {
70 return tradeValue;
71 }
72
73 public BigDecimal getSingleAvg() {
74 return singleAvg;
75 }
76
77 public BigDecimal getDepthRange() {
78 return depthRange;
79 }
80
81 public BigDecimal getProtectedPrice() {
82 return protectedPrice;
83 }
84
85 public BigDecimal getFilled() {
86 return filled;
87 }
88
89 public Status getStatus() {
90 return status;
91 }
92
93 }