com.binance.api.client.domain.market.OrderBook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of binance-api-client Show documentation
Show all versions of binance-api-client Show documentation
Java implementation for Binance API
package com.binance.api.client.domain.market;
import com.binance.api.client.constant.BinanceApiConstants;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.util.List;
/**
* Order book of a symbol in Binance.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderBook {
/**
* Last update id of this order book.
*/
private long lastUpdateId;
/**
* List of bids (price/qty).
*/
private List bids;
/**
* List of asks (price/qty).
*/
private List asks;
public long getLastUpdateId() {
return lastUpdateId;
}
public void setLastUpdateId(long lastUpdateId) {
this.lastUpdateId = lastUpdateId;
}
public List getBids() {
return bids;
}
public void setBids(List bids) {
this.bids = bids;
}
public List getAsks() {
return asks;
}
public void setAsks(List asks) {
this.asks = asks;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("lastUpdateId", lastUpdateId)
.append("bids", bids)
.append("asks", asks)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy