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.marketdata.payload.MarketDetailPayload;
6   
7   /**
8    * Trades for {@link MarketDetailPayload} and {@link ReqMarketDetailPayload}.
9    */
10  public class Trades {
11  	private final BigDecimal[] price;
12  	private final long[] time;
13  	private final BigDecimal[] amount;
14  	private final int[] direction;
15  
16  	public Trades(BigDecimal[] price, long[] time, BigDecimal[] amount,
17  			int[] direction) {
18  		super();
19  		this.price = price;
20  		this.time = time;
21  		this.amount = amount;
22  		this.direction = direction;
23  	}
24  
25  	public BigDecimal[] getPrice() {
26  		return price;
27  	}
28  
29  	public long[] getTime() {
30  		return time;
31  	}
32  
33  	public BigDecimal[] getAmount() {
34  		return amount;
35  	}
36  
37  	public int[] getDirection() {
38  		return direction;
39  	}
40  
41  }