Class ImportedTicker

java.lang.Object
tech.cassandre.trading.bot.domain.ImportedTicker

@Entity public class ImportedTicker extends Object
Imported tickers (map "IMPORTED_TICKERS" table).
  • Constructor Details

    • ImportedTicker

      public ImportedTicker()
  • Method Details

    • getCurrencyPairDTO

      public CurrencyPairDTO getCurrencyPairDTO()
      Returns currency pair DTO.
      Returns:
      currency pair DTO
    • setCurrencyPair

      public void setCurrencyPair(String newCurrencyPair)
      Setter currencyPair.
      Parameters:
      newCurrencyPair - the currencyPair to set
    • equals

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

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • getUid

      public Long getUid()
      Technical ID.
    • getCurrencyPair

      public String getCurrencyPair()
      The currency-pair.
    • getOpen

      public BigDecimal getOpen()
      The opening price is the first trade price that was recorded during the day’s trading.
    • getLast

      public BigDecimal getLast()
      Last trade field is the price set during the last trade.
    • getBid

      public BigDecimal getBid()
      The bid price shown represents the highest bid price.
    • getAsk

      public BigDecimal getAsk()
      The ask price shown represents the lowest bid price.
    • getHigh

      public BigDecimal getHigh()
      The day’s high price.
    • getLow

      public BigDecimal getLow()
      The day’s low price.
    • getVwap

      public BigDecimal getVwap()
      Volume-weighted average price (VWAP) is the ratio of the value traded to total volume traded over a particular time horizon (usually one day).
    • getVolume

      public BigDecimal getVolume()
      Volume is the number of shares or contracts traded.
    • getQuoteVolume

      public BigDecimal getQuoteVolume()
      Quote volume.
    • getBidSize

      public BigDecimal getBidSize()
      The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.
    • getAskSize

      public BigDecimal getAskSize()
      The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.
    • getTimestamp

      public ZonedDateTime getTimestamp()
      Information timestamp.
    • setUid

      public void setUid(Long uid)
      Technical ID.
    • setOpen

      public void setOpen(BigDecimal open)
      The opening price is the first trade price that was recorded during the day’s trading.
    • setLast

      public void setLast(BigDecimal last)
      Last trade field is the price set during the last trade.
    • setBid

      public void setBid(BigDecimal bid)
      The bid price shown represents the highest bid price.
    • setAsk

      public void setAsk(BigDecimal ask)
      The ask price shown represents the lowest bid price.
    • setHigh

      public void setHigh(BigDecimal high)
      The day’s high price.
    • setLow

      public void setLow(BigDecimal low)
      The day’s low price.
    • setVwap

      public void setVwap(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).
    • setVolume

      public void setVolume(BigDecimal volume)
      Volume is the number of shares or contracts traded.
    • setQuoteVolume

      public void setQuoteVolume(BigDecimal quoteVolume)
      Quote volume.
    • setBidSize

      public void setBidSize(BigDecimal bidSize)
      The bid size represents the quantity of a security that investors are willing to purchase at a specified bid price.
    • setAskSize

      public void setAskSize(BigDecimal askSize)
      The ask size represents the quantity of a security that investors are willing to sell at a specified selling price.
    • setTimestamp

      public void setTimestamp(ZonedDateTime timestamp)
      Information timestamp.
    • toString

      public String toString()
      Overrides:
      toString in class Object