View Javadoc
1   package org.oxerr.huobi.rest.dto.marketdata;
2   
3   import java.math.BigDecimal;
4   
5   import com.fasterxml.jackson.annotation.JsonProperty;
6   
7   /**
8    * Order book and TAS(Times and sales)
9    */
10  public class OrderBookTAS {
11  
12  	/**
13  	 * Sell 10.
14  	 */
15  	private final OrderBookObject[] sells;
16  
17  	/**
18  	 * Buy 10.
19  	 */
20  	private final OrderBookObject[] buys;
21  
22  	/**
23  	 * Times and sales.
24  	 */
25  	private final TradeObject[] trades;
26  
27  	/**
28  	 * Latest.
29  	 */
30  	private final BigDecimal pNew;
31  
32  	/**
33  	 * Percent change.
34  	 */
35  	private final BigDecimal level;
36  
37  	/**
38  	 * Volume.
39  	 */
40  	private final BigDecimal amount;
41  
42  	/**
43  	 * Total(RMB).
44  	 */
45  	private final BigDecimal total;
46  
47  	private final BigDecimal amp;
48  
49  	/**
50  	 * Open.
51  	 */
52  	private final BigDecimal pOpen;
53  
54  	/**
55  	 * High.
56  	 */
57  	private final BigDecimal pHigh;
58  
59  	/**
60  	 * Low.
61  	 */
62  	private final BigDecimal pLow;
63  
64  	/**
65  	 * Close.
66  	 */
67  	private final BigDecimal pLast;
68  
69  	/**
70  	 * Sell 5.
71  	 */
72  	private final TopObject[] topSell;
73  
74  	/**
75  	 * Buy 5.
76  	 */
77  	private final TopObject[] topBuy;
78  
79  	public OrderBookTAS(
80  			@JsonProperty("sells") final OrderBookObject[] sells,
81  			@JsonProperty("buys") final OrderBookObject[] buys,
82  			@JsonProperty("trades") final TradeObject[] trades,
83  			@JsonProperty("p_new") final BigDecimal pNew,
84  			@JsonProperty("level") final BigDecimal level,
85  			@JsonProperty("amount") final BigDecimal amount,
86  			@JsonProperty("total") final BigDecimal total,
87  			@JsonProperty("amp") final BigDecimal amp,
88  			@JsonProperty("p_open") final BigDecimal pOpen,
89  			@JsonProperty("p_high") final BigDecimal pHigh,
90  			@JsonProperty("p_low") final BigDecimal pLow,
91  			@JsonProperty("p_last") final BigDecimal pLast,
92  			@JsonProperty("top_sell") final TopObject[] topSell,
93  			@JsonProperty("top_buy") final TopObject[] topBuy){
94  		this.sells = sells;
95  		this.buys = buys;
96  		this.trades = trades;
97  		this.pNew = pNew;
98  		this.level = level;
99  		this.amount = amount;
100 		this.total = total;
101 		this.amp = amp;
102 		this.pOpen = pOpen;
103 		this.pHigh = pHigh;
104 		this.pLow = pLow;
105 		this.pLast = pLast;
106 		this.topSell = topSell;
107 		this.topBuy = topBuy;
108 	}
109 
110 	public OrderBookObject[] getSells() {
111 		return sells;
112 	}
113 
114 	public OrderBookObject[] getBuys() {
115 		return buys;
116 	}
117 
118 	public TradeObject[] getTrades() {
119 		return trades;
120 	}
121 
122 	public BigDecimal getPNew() {
123 		return pNew;
124 	}
125 
126 	public BigDecimal getLevel() {
127 		return level;
128 	}
129 
130 	public BigDecimal getAmount() {
131 		return amount;
132 	}
133 
134 	public BigDecimal getTotal() {
135 		return total;
136 	}
137 
138 	public BigDecimal getAmp() {
139 		return amp;
140 	}
141 
142 	public BigDecimal getPOpen() {
143 		return pOpen;
144 	}
145 
146 	public BigDecimal getPHigh() {
147 		return pHigh;
148 	}
149 
150 	public BigDecimal getPLow() {
151 		return pLow;
152 	}
153 
154 	public BigDecimal getPLast() {
155 		return pLast;
156 	}
157 
158 	public TopObject[] getTopSell() {
159 		return topSell;
160 	}
161 
162 	public TopObject[] getTopBuy() {
163 		return topBuy;
164 	}
165 
166 }