View Javadoc
1   package org.oxerr.peatio.rest.dto;
2   
3   import com.fasterxml.jackson.annotation.JsonProperty;
4   
5   /**
6    * Order book shows orders on market.
7    */
8   public class OrderBook extends BaseObject {
9   
10  	private final Order[] asks;
11  	private final Order[] bids;
12  
13  	public OrderBook(
14  			@JsonProperty("asks") Order[] asks,
15  			@JsonProperty("bids") Order[] bids) {
16  		this.asks = asks;
17  		this.bids = bids;
18  	}
19  
20  	public Order[] getAsks() {
21  		return asks;
22  	}
23  
24  	public Order[] getBids() {
25  		return bids;
26  	}
27  
28  }