View Javadoc
1   package org.oxerr.chbtc.dto;
2   
3   import java.math.BigDecimal;
4   
5   import com.fasterxml.jackson.annotation.JsonProperty;
6   
7   public class Trade extends BaseObject {
8   
9   	private static final long serialVersionUID = 2014063001L;
10  
11  	/**
12  	 * Unix time, in seconds.
13  	 */
14  	private final String date;
15  
16  	private final BigDecimal price;
17  
18  	private final BigDecimal amount;
19  
20  	private final String tid;
21  
22  	/**
23  	 * buy/sell
24  	 */
25  	private final String type;
26  
27  	public Trade(
28  			@JsonProperty("date") final String date,
29  			@JsonProperty("price") final BigDecimal price,
30  			@JsonProperty("amount") final BigDecimal amount,
31  			@JsonProperty("tid") String tid,
32  			@JsonProperty("type") String type) {
33  		this.date = date;
34  		this.price = price;
35  		this.amount = amount;
36  		this.tid = tid;
37  		this.type = type;
38  	}
39  
40  	public String getDate() {
41  		return date;
42  	}
43  
44  	public BigDecimal getPrice() {
45  		return price;
46  	}
47  
48  	public BigDecimal getAmount() {
49  		return amount;
50  	}
51  
52  	public String getTid() {
53  		return tid;
54  	}
55  
56  	public String getType() {
57  		return type;
58  	}
59  
60  }