Package markets.alpaca.client.data.sse
Record Class CorporateActionsSseRequest
java.lang.Object
java.lang.Record
markets.alpaca.client.data.sse.CorporateActionsSseRequest
public record CorporateActionsSseRequest(List<CorporateActionEventType> eventTypes, CorporateActionsSseRequest.Region region, OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId)
extends Record
Filters and history cursors for the Market Data corporate-actions SSE endpoint.
ID cursors are uppercase ULIDs. When AlpacaSseOptions.initialLastEventId() is configured, the transport
sends it in Last-Event-ID; the endpoint gives that header precedence over sinceId().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder for optional corporate-action event filters and cursors.static enumRegion filter accepted by the corporate-actions stream. -
Constructor Summary
ConstructorsConstructorDescriptionCorporateActionsSseRequest(List<CorporateActionEventType> eventTypes, CorporateActionsSseRequest.Region region, OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId) Creates an instance of aCorporateActionsSseRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventTypesrecord component.static CorporateActionsSseRequestfromEventId(String sinceId) Returns an unbounded request starting from an event ID.final inthashCode()Returns a hash code value for this object.static CorporateActionsSseRequestlive()Returns a live, unfiltered subscription request.region()Returns the value of theregionrecord component.since()Returns the value of thesincerecord component.sinceId()Returns the value of thesinceIdrecord component.static CorporateActionsSseRequestthroughEventId(String sinceId, String untilId) Returns a bounded request spanning two event IDs.final StringtoString()Returns a string representation of this record class.until()Returns the value of theuntilrecord component.untilId()Returns the value of theuntilIdrecord component.
-
Constructor Details
-
CorporateActionsSseRequest
public CorporateActionsSseRequest(List<CorporateActionEventType> eventTypes, CorporateActionsSseRequest.Region region, OffsetDateTime since, OffsetDateTime until, String sinceId, String untilId) Creates an instance of aCorporateActionsSseRequestrecord class.- Parameters:
eventTypes- the value for theeventTypesrecord componentregion- the value for theregionrecord componentsince- the value for thesincerecord componentuntil- the value for theuntilrecord componentsinceId- the value for thesinceIdrecord componentuntilId- the value for theuntilIdrecord component
-
-
Method Details
-
live
Returns a live, unfiltered subscription request. -
fromEventId
Returns an unbounded request starting from an event ID. -
throughEventId
Returns a bounded request spanning two event IDs. -
builder
-
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. -
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. -
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). -
eventTypes
Returns the value of theeventTypesrecord component.- Returns:
- the value of the
eventTypesrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-
since
Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-
until
Returns the value of theuntilrecord component.- Returns:
- the value of the
untilrecord component
-
sinceId
Returns the value of thesinceIdrecord component.- Returns:
- the value of the
sinceIdrecord component
-
untilId
Returns the value of theuntilIdrecord component.- Returns:
- the value of the
untilIdrecord component
-