
info.bitrich.xchangestream.coinmate.dto.CoinmateWebSocketTrade Maven / Gradle / Ivy
The newest version!
package info.bitrich.xchangestream.coinmate.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import org.knowm.xchange.coinmate.dto.marketdata.CoinmateTransactionsEntry;
public class CoinmateWebSocketTrade {
private final long timestamp;
private final BigDecimal price;
private final BigDecimal amount;
public CoinmateWebSocketTrade(
@JsonProperty("date") long timestamp,
@JsonProperty("price") BigDecimal price,
@JsonProperty("amount") BigDecimal amount) {
this.timestamp = timestamp;
this.price = price;
this.amount = amount;
}
public CoinmateTransactionsEntry toTransactionEntry(String currencyPair) {
return new CoinmateTransactionsEntry(timestamp, null, price, amount, currencyPair);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy