com.binance.api.client.domain.market.BookTicker 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;
/**
* Represents the best price/qty on the order book for a given symbol.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class BookTicker {
/**
* Ticker symbol.
*/
private String symbol;
/**
* Bid price.
*/
private String bidPrice;
/**
* Bid quantity
*/
private String bidQty;
/**
* Ask price.
*/
private String askPrice;
/**
* Ask quantity.
*/
private String askQty;
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public String getBidPrice() {
return bidPrice;
}
public void setBidPrice(String bidPrice) {
this.bidPrice = bidPrice;
}
public String getBidQty() {
return bidQty;
}
public void setBidQty(String bidQty) {
this.bidQty = bidQty;
}
public String getAskPrice() {
return askPrice;
}
public void setAskPrice(String askPrice) {
this.askPrice = askPrice;
}
public String getAskQty() {
return askQty;
}
public void setAskQty(String askQty) {
this.askQty = askQty;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("symbol", symbol)
.append("bidPrice", bidPrice)
.append("bidQty", bidQty)
.append("askPrice", askPrice)
.append("askQty", askQty)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy