Class CandleDTO
java.lang.Object
tech.cassandre.trading.bot.dto.market.CandleDTO
DTO representing a candle.
A candle displays the high, low, open, and closing prices of a security for a specific period.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CandleDTO.CandleDTOBuilder
builder()
boolean
Returns base currency.getClose()
Closing price (last trade) in the bucket interval.Currency pair.getHigh()
Highest price during the bucket interval.getLow()
Lowest price during the bucket interval.getOpen()
Opening price (first trade) in the bucket interval.Returns quote currency.Getter timestamp.Volume of trading activity during the bucket interval.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
Opening price (first trade) in the bucket interval. -
getHigh
Highest price during the bucket interval. -
getLow
Lowest price during the bucket interval. -
getClose
Closing price (last trade) in the bucket interval. -
getVolume
Volume of trading activity during the bucket interval. -
toString
-