Class TickerDTO.TickerDTOBuilder
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.market.TickerDTO.TickerDTOBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TickerDTO.TickerDTOBuilder
ask(BigDecimal ask)
The ask price shown represents the lowest bid price.TickerDTO.TickerDTOBuilder
askSize(BigDecimal askSize)
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.TickerDTO.TickerDTOBuilder
bid(BigDecimal bid)
The bid price shown represents the highest bid price.TickerDTO.TickerDTOBuilder
bidSize(BigDecimal bidSize)
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.TickerDTO
build()
TickerDTO.TickerDTOBuilder
currencyPair(CurrencyPairDTO currencyPair)
Currency pair.TickerDTO.TickerDTOBuilder
high(BigDecimal high)
The day’s high price.TickerDTO.TickerDTOBuilder
last(BigDecimal last)
Last trade field is the price set during the last trade.TickerDTO.TickerDTOBuilder
low(BigDecimal low)
The day’s low price.TickerDTO.TickerDTOBuilder
open(BigDecimal open)
The opening price is the first trade price that was recorded during the day’s trading.TickerDTO.TickerDTOBuilder
quoteVolume(BigDecimal quoteVolume)
Quote volume.TickerDTO.TickerDTOBuilder
timestamp(ZonedDateTime timestamp)
Information timestamp.String
toString()
TickerDTO.TickerDTOBuilder
volume(BigDecimal volume)
Volume is the number of shares or contracts traded.TickerDTO.TickerDTOBuilder
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 Detail
-
currencyPair
public TickerDTO.TickerDTOBuilder currencyPair(CurrencyPairDTO currencyPair)
Currency pair.- Returns:
this
.
-
open
public TickerDTO.TickerDTOBuilder open(BigDecimal open)
The opening price is the first trade price that was recorded during the day’s trading.- Returns:
this
.
-
last
public TickerDTO.TickerDTOBuilder last(BigDecimal last)
Last trade field is the price set during the last trade.- Returns:
this
.
-
bid
public TickerDTO.TickerDTOBuilder bid(BigDecimal bid)
The bid price shown represents the highest bid price.- Returns:
this
.
-
ask
public TickerDTO.TickerDTOBuilder ask(BigDecimal ask)
The ask price shown represents the lowest bid price.- Returns:
this
.
-
high
public TickerDTO.TickerDTOBuilder high(BigDecimal high)
The day’s high price.- Returns:
this
.
-
low
public TickerDTO.TickerDTOBuilder low(BigDecimal low)
The day’s low price.- Returns:
this
.
-
vwap
public TickerDTO.TickerDTOBuilder 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).- Returns:
this
.
-
volume
public TickerDTO.TickerDTOBuilder volume(BigDecimal volume)
Volume is the number of shares or contracts traded.- Returns:
this
.
-
quoteVolume
public TickerDTO.TickerDTOBuilder quoteVolume(BigDecimal quoteVolume)
Quote volume.- Returns:
this
.
-
bidSize
public TickerDTO.TickerDTOBuilder bidSize(BigDecimal bidSize)
The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.- Returns:
this
.
-
askSize
public TickerDTO.TickerDTOBuilder askSize(BigDecimal askSize)
The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.- Returns:
this
.
-
timestamp
public TickerDTO.TickerDTOBuilder timestamp(ZonedDateTime timestamp)
Information timestamp.- Returns:
this
.
-
build
public TickerDTO build()
-
-