package org.knowm.xchange.bitfinex.v2.dto.marketdata;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@JsonFormat(shape = JsonFormat.Shape.ARRAY)
@AllArgsConstructor
@NoArgsConstructor
@Getter
public class BitfinexTicker {

  private String symbol;
  private BigDecimal frr;
  private BigDecimal bid;
  private BigDecimal bidPeriod;
  private BigDecimal bidSize;
  private BigDecimal ask;
  private BigDecimal askPeriod;
  private BigDecimal askSize;
  private BigDecimal dailyChange;
  private BigDecimal dailyChangePerc;
  private BigDecimal lastPrice;
  private BigDecimal volume;
  private BigDecimal high;
  private BigDecimal low;
  private Object placeHolder0;
  private Object placeHolder1;
  private BigDecimal frrAmountAvailable;

  @Override
  public String toString() {
    return "BitfinexTicker{"
        + "symbol='"
        + symbol
        + '\''
        + ", frr="
        + frr
        + ", bid="
        + bid
        + ", bidPeriod="
        + bidPeriod
        + ", bidSize="
        + bidSize
        + ", askPeriod="
        + askPeriod
        + ", askSize="
        + askSize
        + ", dailyChange="
        + dailyChange
        + ", dailyChangePerc="
        + dailyChangePerc
        + ", lastPrice="
        + lastPrice
        + ", volume="
        + volume
        + ", high="
        + high
        + ", low="
        + low
        + ", placeHolder0="
        + placeHolder0
        + ", placeHolder1="
        + placeHolder1
        + ", frrAmountAvailable="
        + frrAmountAvailable
        + '}';
  }
}

package org.knowm.xchange.bitfinex.v2.dto.marketdata;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

@JsonFormat(shape = JsonFormat.Shape.ARRAY)
@AllArgsConstructor
@NoArgsConstructor
@Getter
@ToString
public class BitfinexTicker {

  private String symbol;
  private BigDecimal frr;
  private BigDecimal bid;
  private BigDecimal bidPeriod;
  private BigDecimal bidSize;
  private BigDecimal ask;
  private BigDecimal askPeriod;
  private BigDecimal askSize;
  private BigDecimal dailyChange;
  private BigDecimal dailyChangePerc;
  private BigDecimal lastPrice;
  private BigDecimal volume;
  private BigDecimal high;
  private BigDecimal low;
  private Object placeHolder0;
  private Object placeHolder1;
  private BigDecimal frrAmountAvailable;
}

use lombok ToString