View Javadoc
1   package org.oxerr.huobi.websocket.dto.response.payload;
2   
3   import java.math.BigDecimal;
4   
5   import org.oxerr.huobi.websocket.dto.response.historydata.ReqTimeLineResponse;
6   
7   /**
8    * Payload of {@link ReqTimeLineResponse}.
9    */
10  public class ReqTimeLinePayload extends AbstractPayload {
11  
12  	private final String symbolId;
13  	private final long[] time;
14  	private final BigDecimal[] priceLast;
15  	private final BigDecimal[] amount;
16  	private final BigDecimal[] volume;
17  	private final int[] count;
18  
19  	/**
20  	 * 历史分时
21  	 *
22  	 * @param symbolId 交易代码
23  	 * @param time 时间,秒数
24  	 * @param priceLast 收盘
25  	 * @param amount 成交量
26  	 * @param volume 成交额
27  	 * @param count 成交笔数
28  	 */
29  	public ReqTimeLinePayload(String symbolId, long[] time,
30  			BigDecimal[] priceLast, BigDecimal[] amount, BigDecimal[] volume,
31  			int[] count) {
32  		super();
33  		this.symbolId = symbolId;
34  		this.time = time;
35  		this.priceLast = priceLast;
36  		this.amount = amount;
37  		this.volume = volume;
38  		this.count = count;
39  	}
40  
41  	public String getSymbolId() {
42  		return symbolId;
43  	}
44  
45  	public long[] getTime() {
46  		return time;
47  	}
48  
49  	public BigDecimal[] getPriceLast() {
50  		return priceLast;
51  	}
52  
53  	public BigDecimal[] getAmount() {
54  		return amount;
55  	}
56  
57  	public BigDecimal[] getVolume() {
58  		return volume;
59  	}
60  
61  	public int[] getCount() {
62  		return count;
63  	}
64  
65  }