com.binance.api.client.domain.market.AggTrade 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 com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* An aggregated trade event for a symbol.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class AggTrade {
@JsonProperty("a")
private long aggregatedTradeId;
@JsonProperty("p")
private String price;
@JsonProperty("q")
private String quantity;
@JsonProperty("f")
private long firstBreakdownTradeId;
@JsonProperty("l")
private long lastBreakdownTradeId;
@JsonProperty("T")
private long tradeTime;
@JsonProperty("m")
private boolean isBuyerMaker;
public long getAggregatedTradeId() {
return aggregatedTradeId;
}
public void setAggregatedTradeId(long aggregatedTradeId) {
this.aggregatedTradeId = aggregatedTradeId;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
public String getQuantity() {
return quantity;
}
public void setQuantity(String quantity) {
this.quantity = quantity;
}
public long getFirstBreakdownTradeId() {
return firstBreakdownTradeId;
}
public void setFirstBreakdownTradeId(long firstBreakdownTradeId) {
this.firstBreakdownTradeId = firstBreakdownTradeId;
}
public long getLastBreakdownTradeId() {
return lastBreakdownTradeId;
}
public void setLastBreakdownTradeId(long lastBreakdownTradeId) {
this.lastBreakdownTradeId = lastBreakdownTradeId;
}
public long getTradeTime() {
return tradeTime;
}
public void setTradeTime(long tradeTime) {
this.tradeTime = tradeTime;
}
public boolean isBuyerMaker() {
return isBuyerMaker;
}
public void setBuyerMaker(boolean buyerMaker) {
isBuyerMaker = buyerMaker;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("aggregatedTradeId", aggregatedTradeId)
.append("price", price)
.append("quantity", quantity)
.append("firstBreakdownTradeId", firstBreakdownTradeId)
.append("lastBreakdownTradeId", lastBreakdownTradeId)
.append("tradeTime", tradeTime)
.append("isBuyerMaker", isBuyerMaker)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy