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
Modifier and Type Method Description boolean
equals(Object o)
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
getPercentageChange()
BigDecimal
getQuoteVolume()
Date
getTimestamp()
BigDecimal
getVolume()
BigDecimal
getVwap()
int
hashCode()
String
toString()
-
Method Details
-
getInstrument
-
getCurrencyPair
Deprecated.CurrencyPair is a subtype of Instrument - this method will throw an exception if the order was for a derivativeuse
getInstrument()
instead -
getOpen
-
getLast
-
getBid
-
getAsk
-
getHigh
-
getLow
-
getVwap
-
getVolume
-
getQuoteVolume
-
getTimestamp
-
getBidSize
-
getAskSize
-
getPercentageChange
-
toString
-
equals
-
hashCode
public int hashCode()
-