Record Class EODSearchResponse

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODSearchResponse
Record Components:
code - ticker symbol
exchange - exchange code
name - instrument name
type - asset type
country - exchange country
currency - trading currency
isin - ISIN when available
previousClose - previous close price
previousCloseDate - previous close date
isPrimary - whether the hit is the primary listing
All Implemented Interfaces:
GenericIntegrationResponse

public record EODSearchResponse(String code, String exchange, String name, String type, String country, String currency, String isin, BigDecimal previousClose, String previousCloseDate, Boolean isPrimary) extends Record implements GenericIntegrationResponse
Search result returned by the EOD search endpoint.
Version:
1.0.12
Author:
Stephen Prizio
  • Constructor Details

    • EODSearchResponse

      public EODSearchResponse(String code, String exchange, String name, String type, String country, String currency, String isin, BigDecimal previousClose, String previousCloseDate, Boolean isPrimary)
      Creates an instance of a EODSearchResponse record class.
      Parameters:
      code - the value for the code record component
      exchange - the value for the exchange record component
      name - the value for the name record component
      type - the value for the type record component
      country - the value for the country record component
      currency - the value for the currency record component
      isin - the value for the isin record component
      previousClose - the value for the previousClose record component
      previousCloseDate - the value for the previousCloseDate record component
      isPrimary - the value for the isPrimary record component
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Returns true when the provider did not return an instrument code.
      Specified by:
      isEmpty in interface GenericIntegrationResponse
      Returns:
      boolean
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • code

      public String code()
      Returns the value of the code record component.
      Returns:
      the value of the code record component
    • exchange

      public String exchange()
      Returns the value of the exchange record component.
      Returns:
      the value of the exchange record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • country

      public String country()
      Returns the value of the country record component.
      Returns:
      the value of the country record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • isin

      public String isin()
      Returns the value of the isin record component.
      Returns:
      the value of the isin record component
    • previousClose

      public BigDecimal previousClose()
      Returns the value of the previousClose record component.
      Returns:
      the value of the previousClose record component
    • previousCloseDate

      public String previousCloseDate()
      Returns the value of the previousCloseDate record component.
      Returns:
      the value of the previousCloseDate record component
    • isPrimary

      public Boolean isPrimary()
      Returns the value of the isPrimary record component.
      Returns:
      the value of the isPrimary record component