Class TickerDTO
java.lang.Object
tech.cassandre.trading.bot.dto.market.TickerDTO
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic TickerDTO.TickerDTOBuilder
builder()
boolean
getAsk()
The ask price shown represents the lowest bid price.The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.Returns base currency.getBid()
The bid price shown represents the highest bid price.The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.Currency pair.getHigh()
The day’s high price.getLast()
Last trade field is the price set during the last trade.getLow()
The day’s low price.getOpen()
The opening price is the first trade price that was recorded during the day’s trading.Returns quote currency.Quote volume.Getter timestamp.Volume is the number of shares or contracts traded.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()
toString()
-
Method Details
-
getBaseCurrency
Returns base currency.- Returns:
- base currency
-
getQuoteCurrency
Returns quote currency.- Returns:
- quote currency
-
getTimestamp
Getter timestamp.- Returns:
- timestamp
-
equals
-
hashCode
public int hashCode() -
builder
-
getCurrencyPair
Currency pair. -
getOpen
The opening price is the first trade price that was recorded during the day’s trading. -
getLast
Last trade field is the price set during the last trade. -
getBid
The bid price shown represents the highest bid price. -
getAsk
The ask price shown represents the lowest bid price. -
getHigh
The day’s high price. -
getLow
The day’s low price. -
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
Volume is the number of shares or contracts traded. -
getQuoteVolume
Quote volume. -
getBidSize
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price. -
getAskSize
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price. -
toString
-