All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.binance.api.client.domain.market.BookTicker Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
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