Record Class EODIntradayDataResponse
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.sol.models.responses.eod.EODIntradayDataResponse
- Record Components:
datetime- timestamp field when returned as a single valuedate- split date field when requestedtime- split time field when requestedgmtoffset- GMT offset applied by the provideropen- open pricehigh- high pricelow- low priceclose- close pricevolume- traded volume
- All Implemented Interfaces:
GenericIntegrationResponse
public record EODIntradayDataResponse(String datetime, String date, String time, Integer gmtoffset, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal volume)
extends Record
implements GenericIntegrationResponse
Raw intraday price bar.
- Version:
- 1.0.12
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionEODIntradayDataResponse(String datetime, String date, String time, Integer gmtoffset, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal volume) Creates an instance of aEODIntradayDataResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionclose()Returns the value of thecloserecord component.date()Returns the value of thedaterecord component.datetime()Returns the value of thedatetimerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegmtoffsetrecord component.final inthashCode()Returns a hash code value for this object.high()Returns the value of thehighrecord component.booleanisEmpty()Returns true when the response does not contain any timestamp information.low()Returns the value of thelowrecord component.open()Returns the value of theopenrecord component.time()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.volume()Returns the value of thevolumerecord component.
-
Constructor Details
-
EODIntradayDataResponse
public EODIntradayDataResponse(String datetime, String date, String time, Integer gmtoffset, BigDecimal open, BigDecimal high, BigDecimal low, BigDecimal close, BigDecimal volume) Creates an instance of aEODIntradayDataResponserecord class.- Parameters:
datetime- the value for thedatetimerecord componentdate- the value for thedaterecord componenttime- the value for thetimerecord componentgmtoffset- the value for thegmtoffsetrecord componentopen- the value for theopenrecord componenthigh- the value for thehighrecord componentlow- the value for thelowrecord componentclose- the value for thecloserecord componentvolume- the value for thevolumerecord component
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns true when the response does not contain any timestamp information.- 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). -
datetime
-
date
-
time
-
gmtoffset
-
open
-
high
-
low
-
close
-
volume
-