Class CandleDTO

java.lang.Object
tech.cassandre.trading.bot.dto.market.CandleDTO

public final class CandleDTO extends Object
DTO representing a candle. A candle displays the high, low, open, and closing prices of a security for a specific period.
  • Method Details

    • getBaseCurrency

      public CurrencyDTO getBaseCurrency()
      Returns base currency.
      Returns:
      base currency
    • getQuoteCurrency

      public CurrencyDTO getQuoteCurrency()
      Returns quote currency.
      Returns:
      quote currency
    • getTimestamp

      public ZonedDateTime getTimestamp()
      Getter timestamp.
      Returns:
      timestamp
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • builder

      public static CandleDTO.CandleDTOBuilder builder()
    • getCurrencyPair

      public CurrencyPairDTO getCurrencyPair()
      Currency pair.
    • getOpen

      public BigDecimal getOpen()
      Opening price (first trade) in the bucket interval.
    • getHigh

      public BigDecimal getHigh()
      Highest price during the bucket interval.
    • getLow

      public BigDecimal getLow()
      Lowest price during the bucket interval.
    • getClose

      public BigDecimal getClose()
      Closing price (last trade) in the bucket interval.
    • getVolume

      public BigDecimal getVolume()
      Volume of trading activity during the bucket interval.
    • toString

      public String toString()
      Overrides:
      toString in class Object