Class TickerDTO.TickerDTOBuilder
java.lang.Object
tech.cassandre.trading.bot.dto.market.TickerDTO.TickerDTOBuilder
- Enclosing class:
- TickerDTO
-
Method Summary
Modifier and TypeMethodDescriptionask
(BigDecimal ask) The ask price shown represents the lowest bid price.askSize
(BigDecimal askSize) The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.bid
(BigDecimal bid) The bid price shown represents the highest bid price.bidSize
(BigDecimal bidSize) The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.build()
currencyPair
(CurrencyPairDTO currencyPair) Currency pair.high
(BigDecimal high) The day’s high price.last
(BigDecimal last) Last trade field is the price set during the last trade.low
(BigDecimal low) The day’s low price.open
(BigDecimal open) The opening price is the first trade price that was recorded during the day’s trading.quoteVolume
(BigDecimal quoteVolume) Quote volume.timestamp
(ZonedDateTime timestamp) Information timestamp.toString()
volume
(BigDecimal volume) Volume is the number of shares or contracts traded.vwap
(BigDecimal vwap) Volume-weighted average price (VWAP) is the ratio of the value traded to total volume traded over a particular time horizon (usually one day).
-
Method Details
-
currencyPair
Currency pair.- Returns:
this
.
-
open
The opening price is the first trade price that was recorded during the day’s trading.- Returns:
this
.
-
last
Last trade field is the price set during the last trade.- Returns:
this
.
-
bid
The bid price shown represents the highest bid price.- Returns:
this
.
-
ask
The ask price shown represents the lowest bid price.- Returns:
this
.
-
high
The day’s high price.- Returns:
this
.
-
low
The day’s low price.- Returns:
this
.
-
vwap
Volume-weighted average price (VWAP) is the ratio of the value traded to total volume traded over a particular time horizon (usually one day).- Returns:
this
.
-
volume
Volume is the number of shares or contracts traded.- Returns:
this
.
-
quoteVolume
Quote volume.- Returns:
this
.
-
bidSize
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.- Returns:
this
.
-
askSize
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.- Returns:
this
.
-
timestamp
Information timestamp.- Returns:
this
.
-
build
-
toString
-