
com.xeiam.xchange.kraken.dto.marketdata.KrakenSpread Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kraken Show documentation
Show all versions of xchange-kraken Show documentation
XChange implementation for the Kraken Exchange
package com.xeiam.xchange.kraken.dto.marketdata;
import java.math.BigDecimal;
public class KrakenSpread {
private final long time;
private final BigDecimal bid;
private final BigDecimal ask;
public KrakenSpread(long time, BigDecimal bid, BigDecimal ask) {
this.time = time;
this.bid = bid;
this.ask = ask;
}
public long getTime() {
return time;
}
public BigDecimal getBid() {
return bid;
}
public BigDecimal getAsk() {
return ask;
}
@Override
public String toString() {
return "KrakenSpread [time=" + time + ", bid=" + bid + ", ask=" + ask + "]";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy