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

com.xeiam.xchange.mercadobitcoin.dto.trade.OperationEntry Maven / Gradle / Ivy

The newest version!
package com.xeiam.xchange.mercadobitcoin.dto.trade;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author Felipe Micaroni Lalli
 */
public final class OperationEntry {

  private final BigDecimal volume;
  private final BigDecimal price;
  private final BigDecimal rate;
  private final Long created;

  public OperationEntry(@JsonProperty("volume") BigDecimal volume, @JsonProperty("price") BigDecimal price, @JsonProperty("rate") BigDecimal rate,
      @JsonProperty("created") Long created) {

    this.volume = volume;
    this.price = price;
    this.rate = rate;
    this.created = created;
  }

  public BigDecimal getVolume() {

    return volume;
  }

  public BigDecimal getPrice() {

    return price;
  }

  public BigDecimal getRate() {

    return rate;
  }

  public Long getCreated() {

    return created;
  }

  @Override
  public String toString() {

    return "OperationEntry [" + "volume=" + volume + ", price=" + price + ", rate=" + rate + ", created=" + created + ']';
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy