Class CandleDTO.CandleDTOBuilder
java.lang.Object
tech.cassandre.trading.bot.dto.market.CandleDTO.CandleDTOBuilder
- Enclosing class:
- CandleDTO
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
close
(BigDecimal close) Closing price (last trade) in the bucket interval.currencyPair
(CurrencyPairDTO currencyPair) Currency pair.high
(BigDecimal high) Highest price during the bucket interval.low
(BigDecimal low) Lowest price during the bucket interval.open
(BigDecimal open) Opening price (first trade) in the bucket interval.timestamp
(ZonedDateTime timestamp) Bucket start time.toString()
volume
(BigDecimal volume) Volume of trading activity during the bucket interval.
-
Method Details
-
currencyPair
Currency pair.- Returns:
this
.
-
open
Opening price (first trade) in the bucket interval.- Returns:
this
.
-
high
Highest price during the bucket interval.- Returns:
this
.
-
low
Lowest price during the bucket interval.- Returns:
this
.
-
close
Closing price (last trade) in the bucket interval.- Returns:
this
.
-
volume
Volume of trading activity during the bucket interval.- Returns:
this
.
-
timestamp
Bucket start time.- Returns:
this
.
-
build
-
toString
-