Class TickerDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.market.TickerDTO
-
public final class TickerDTO extends Object
DTO representing a stock ticker. A ticker is a report of the price of certain securities, updated continuously throughout the trading session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TickerDTO.TickerDTOBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TickerDTO.TickerDTOBuilder
builder()
boolean
equals(Object o)
BigDecimal
getAsk()
The ask price shown represents the lowest bid price.BigDecimal
getAskSize()
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.CurrencyDTO
getBaseCurrency()
Returns base currency.BigDecimal
getBid()
The bid price shown represents the highest bid price.BigDecimal
getBidSize()
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.CurrencyPairDTO
getCurrencyPair()
Currency pair.BigDecimal
getHigh()
The day’s high price.BigDecimal
getLast()
Last trade field is the price set during the last trade.BigDecimal
getLow()
The day’s low price.BigDecimal
getOpen()
The opening price is the first trade price that was recorded during the day’s trading.CurrencyDTO
getQuoteCurrency()
Returns quote currency.BigDecimal
getQuoteVolume()
Quote volume.ZonedDateTime
getTimestamp()
Getter timestamp.BigDecimal
getVolume()
Volume is the number of shares or contracts traded.BigDecimal
getVwap()
Volume-weighted average price (VWAP) is the ratio of the value traded to total volume traded over a particular time horizon (usually one day).int
hashCode()
String
toString()
-
-
-
Method Detail
-
getBaseCurrency
public CurrencyDTO getBaseCurrency()
Returns base currency.- Returns:
- base currency
-
getQuoteCurrency
public CurrencyDTO getQuoteCurrency()
Returns quote currency.- Returns:
- quote currency
-
getTimestamp
public ZonedDateTime getTimestamp()
Getter timestamp.- Returns:
- timestamp
-
builder
public static TickerDTO.TickerDTOBuilder builder()
-
getCurrencyPair
public CurrencyPairDTO getCurrencyPair()
Currency pair.
-
getOpen
public BigDecimal getOpen()
The opening price is the first trade price that was recorded during the day’s trading.
-
getLast
public BigDecimal getLast()
Last trade field is the price set during the last trade.
-
getBid
public BigDecimal getBid()
The bid price shown represents the highest bid price.
-
getAsk
public BigDecimal getAsk()
The ask price shown represents the lowest bid price.
-
getHigh
public BigDecimal getHigh()
The day’s high price.
-
getLow
public BigDecimal getLow()
The day’s low price.
-
getVwap
public BigDecimal getVwap()
Volume-weighted average price (VWAP) is the ratio of the value traded to total volume traded over a particular time horizon (usually one day).
-
getVolume
public BigDecimal getVolume()
Volume is the number of shares or contracts traded.
-
getQuoteVolume
public BigDecimal getQuoteVolume()
Quote volume.
-
getBidSize
public BigDecimal getBidSize()
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.
-
getAskSize
public BigDecimal getAskSize()
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.
-
-