Class Quote

java.lang.Object
org.episteme.social.economics.money.Quote
All Implemented Interfaces:
Serializable

public final class Quote extends Object implements Serializable
Represents a market quote for a financial instrument.

A quote contains pricing information for a security including current price, volume, and price range data.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Quote

      public Quote(String symbol, String company, String market)
      Creates a new Quote with basic information.
      Parameters:
      symbol - the ticker symbol
      company - the company name
      market - the exchange market
      Throws:
      NullPointerException - if any argument is null
      IllegalArgumentException - if any string is empty
    • Quote

      public Quote(String symbol, String company, long volume, Money value, String market, Money openPrice, TimeCoordinate quoteTime)
      Creates a new Quote with full information.
      Parameters:
      symbol - the ticker symbol
      company - the company name
      volume - the trading volume
      value - the current price
      market - the exchange market
      openPrice - the opening price
      quoteTime - the time of the quote
  • Method Details

    • getSymbol

      public String getSymbol()
    • getCompany

      public String getCompany()
    • getVolume

      public long getVolume()
    • getValue

      public Money getValue()
    • getMarket

      public String getMarket()
    • getOpenPrice

      public Money getOpenPrice()
    • getHighPrice

      public Money getHighPrice()
    • getLowPrice

      public Money getLowPrice()
    • getPreviousClose

      public Money getPreviousClose()
    • getChange

      public Money getChange()
    • getQuoteTime

      public TimeCoordinate getQuoteTime()
    • getChangePercent

      public Real getChangePercent()
      Returns the price change as a percentage.
      Returns:
      the change percentage
    • setCompany

      public void setCompany(String company)
    • setVolume

      public void setVolume(long volume)
    • setValue

      public void setValue(Money value)
    • setOpenPrice

      public void setOpenPrice(Money openPrice)
    • setHighPrice

      public void setHighPrice(Money highPrice)
    • setLowPrice

      public void setLowPrice(Money lowPrice)
    • setPreviousClose

      public void setPreviousClose(Money previousClose)
    • setChange

      public void setChange(Money change)
    • setQuoteTime

      public void setQuoteTime(TimeCoordinate quoteTime)
    • update

      public void update(long volume, Money value, TimeCoordinate quoteTime)
      Updates the quote with new trading data.
      Parameters:
      volume - the new volume
      value - the new price
      quoteTime - the time of update
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object