View Javadoc
1   package org.oxerr.okcoin.rest.dto;
2   
3   import java.math.BigDecimal;
4   import java.time.Instant;
5   
6   public class Candlestick extends BaseObject {
7   
8   	private static final long serialVersionUID = 2015020401L;
9   
10  	private final Instant timestamp;
11  
12  	private final BigDecimal open;
13  	private final BigDecimal high;
14  	private final BigDecimal low;
15  	private final BigDecimal close;
16  	private final BigDecimal volume;
17  
18  	public Candlestick(Instant timestamp,
19  		BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close,
20  		BigDecimal volume) {
21  		this.timestamp = timestamp;
22  		this.open = open;
23  		this.high = high;
24  		this.low = low;
25  		this.close = close;
26  		this.volume = volume;
27  	}
28  
29  	public Instant getTimestamp() {
30  		return timestamp;
31  	}
32  
33  	public BigDecimal getOpen() {
34  		return open;
35  	}
36  
37  	public BigDecimal getHigh() {
38  		return high;
39  	}
40  
41  	public BigDecimal getLow() {
42  		return low;
43  	}
44  
45  	public BigDecimal getClose() {
46  		return close;
47  	}
48  
49  	public BigDecimal getVolume() {
50  		return volume;
51  	}
52  
53  }