1 package org.oxerr.huobi.websocket.dto.response.payload;
2
3 import java.math.BigDecimal;
4
5 import org.oxerr.huobi.websocket.dto.TradeDetail;
6 import org.oxerr.huobi.websocket.dto.response.historydata.ReqTradeDetailTopResponse;
7
8
9
10
11 public class ReqTradeDetailTopPayload extends AbstractPayload implements
12 TradeDetail {
13
14 private final String symbolId;
15 private final long[] tradeId;
16 private final BigDecimal[] price;
17 private final long[] time;
18 private final BigDecimal[] amount;
19 private final int[] direction;
20 private final Orders[] topAsks;
21 private final Orders[] topBids;
22
23
24
25
26
27
28
29
30
31
32
33
34
35 public ReqTradeDetailTopPayload(String symbolId, long[] tradeId,
36 BigDecimal[] price, long[] time, BigDecimal[] amount,
37 int[] direction, Orders[] topAsks, Orders[] topBids) {
38 super();
39 this.symbolId = symbolId;
40 this.tradeId = tradeId;
41 this.price = price;
42 this.time = time;
43 this.amount = amount;
44 this.direction = direction;
45 this.topAsks = topAsks;
46 this.topBids = topBids;
47 }
48
49 @Override
50 public String getSymbolId() {
51 return symbolId;
52 }
53
54 @Override
55 public long[] getTradeId() {
56 return tradeId;
57 }
58
59 @Override
60 public BigDecimal[] getPrice() {
61 return price;
62 }
63
64 @Override
65 public long[] getTime() {
66 return time;
67 }
68
69 @Override
70 public BigDecimal[] getAmount() {
71 return amount;
72 }
73
74 @Override
75 public int[] getDirection() {
76 return direction;
77 }
78
79 @Override
80 public Orders[] getTopAsks() {
81 return topAsks;
82 }
83
84 @Override
85 public Orders[] getTopBids() {
86 return topBids;
87 }
88
89 }