Record Class EODHistoricalDataResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODHistoricalDataResponse
- Record Components:
date- trading dateopen- open pricehigh- high pricelow- low priceclose- close priceadjustedClose- adjusted close pricevolume- traded volume
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODHistoricalDataResponse(String date, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal adjustedClose, BigDecimal volume)
extends Record
implements GenericIntegrationResponse
Raw EOD historical price bar.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODHistoricalDataResponse(String date, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal adjustedClose, BigDecimal volume) Creates an instance of aEODHistoricalDataResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadjustedCloserecord component.close()Returns the value of thecloserecord component.date()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.high()Returns the value of thehighrecord component.booleanisEmpty()Returns true when the price bar does not have a trading date.low()Returns the value of thelowrecord component.open()Returns the value of theopenrecord component.final StringtoString()Returns a string representation of this record class.volume()Returns the value of thevolumerecord component.
-
Constructor Details
-
EODHistoricalDataResponse
public EODHistoricalDataResponse(String date, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal adjustedClose, BigDecimal volume) Creates an instance of aEODHistoricalDataResponserecord class.- Parameters:
date- the value for thedaterecord componentopen- the value for theopenrecord componenthigh- the value for thehighrecord componentlow- the value for thelowrecord componentclose- the value for thecloserecord componentadjustedClose- the value for theadjustedCloserecord componentvolume- the value for thevolumerecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the price bar does not have a trading date.- Specified by:
isEmptyin interfaceGenericIntegrationResponse- Returns:
- boolean
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
date
-
open
-
high
-
low
-
close
-
adjustedClose
Returns the value of theadjustedCloserecord component.- Returns:
- the value of the
adjustedCloserecord component
-
volume
-