com.xeiam.xchange.clevercoin.dto.marketdata.CleverCoinOrderBook Maven / Gradle / Ivy
package com.xeiam.xchange.clevercoin.dto.marketdata;
import java.math.BigDecimal;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Karsten Nilsen
*/
public class CleverCoinOrderBook {
private final Long timestamp;
private final List> bids;
private final List> asks;
/**
* Constructor
*
* @param timestamp
* @param bids
* @param asks
*/
public CleverCoinOrderBook(@JsonProperty("timestamp") Long timestamp, @JsonProperty("bids") List> bids,
@JsonProperty("asks") List> asks) {
this.bids = bids;
this.asks = asks;
this.timestamp = timestamp;
}
/**
* @return Timestamp in Unix milliseconds
*/
public Long getTimestamp() {
return timestamp;
}
/** (price, amount) */
public List> getBids() {
return bids;
}
/** (price, amount) */
public List> getAsks() {
return asks;
}
@Override
public String toString() {
return "CleverCoinOrderBook [timestamp=" + timestamp + ", bids=" + bids + ", asks=" + asks + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy