Package org.knowm.xchange.dto.marketdata
Class Ticker
- java.lang.Object
-
- org.knowm.xchange.dto.marketdata.Ticker
-
- All Implemented Interfaces:
Serializable
public final class Ticker extends Object implements Serializable
A class encapsulating the information a "Ticker" can contain. Some fields can be empty if not provided by the exchange.A ticker contains data representing the latest trade.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ticker.Builder
Builder to provide the following toTicker
: Provision of fluent chained construction interface
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BigDecimal
getAsk()
BigDecimal
getAskSize()
BigDecimal
getBid()
BigDecimal
getBidSize()
CurrencyPair
getCurrencyPair()
Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativeBigDecimal
getHigh()
Instrument
getInstrument()
BigDecimal
getLast()
BigDecimal
getLow()
BigDecimal
getOpen()
BigDecimal
getQuoteVolume()
Date
getTimestamp()
BigDecimal
getVolume()
BigDecimal
getVwap()
String
toString()
-
-
-
Method Detail
-
getInstrument
public Instrument getInstrument()
-
getCurrencyPair
@Deprecated public CurrencyPair getCurrencyPair()
Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativeuse
getInstrument()
instead
-
getOpen
public BigDecimal getOpen()
-
getLast
public BigDecimal getLast()
-
getBid
public BigDecimal getBid()
-
getAsk
public BigDecimal getAsk()
-
getHigh
public BigDecimal getHigh()
-
getLow
public BigDecimal getLow()
-
getVwap
public BigDecimal getVwap()
-
getVolume
public BigDecimal getVolume()
-
getQuoteVolume
public BigDecimal getQuoteVolume()
-
getTimestamp
public Date getTimestamp()
-
getBidSize
public BigDecimal getBidSize()
-
getAskSize
public BigDecimal getAskSize()
-
-