com.binance.api.client.domain.market.TickerPrice 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;
/**
* Wraps a symbol and its corresponding latest price.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class TickerPrice {
/**
* Ticker symbol.
*/
private String symbol;
/**
* Latest price.
*/
private String price;
public String getSymbol() {
return symbol;
}
public void setSymbol(String symbol) {
this.symbol = symbol;
}
public String getPrice() {
return price;
}
public void setPrice(String price) {
this.price = price;
}
@Override
public String toString() {
return new ToStringBuilder(this, BinanceApiConstants.TO_STRING_BUILDER_STYLE)
.append("symbol", symbol)
.append("price", price)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy