Package markets.alpaca.client.broker.sse
The generated Broker OpenAPI client exposes SSE endpoints as blocking REST calls. This package
reuses the generated request builders for authentication, path, and query construction, then
opens them through the SDK's incremental OkHttp transport so applications can receive live Broker
events, await connection metadata, distinguish per-event decoding failures, opt into reconnects,
and close subscriptions explicitly. Gap replay uses each endpoint's documented since_id
or since_ulid request option. The rebalancer stream also accepts Last-Event-Id,
which the API uses as since_id. Rich default listener methods preserve legacy
failure/close callback shapes without duplicate delivery. The exposed OkHttp EventSource
is a request/cancel compatibility facade; new code should close the subscription directly.
- See Also:
-
ClassDescriptionStreaming wrapper for Broker Events SSE endpoints.Optional LocalDate-based filters for Broker SSE endpoints.Optional OffsetDateTime-based filters for Broker SSE endpoints.Receives lifecycle callbacks and typed events from a Broker Server-Sent Events stream.Optional OffsetDateTime filters plus an event/account identifier.Optional legacy LocalDate/numeric-ID/ULID filters plus an event/account identifier.Optional LocalDate, numeric ID, and ULID filters for legacy Broker SSE endpoints.Optional filters for Broker non-trading-activity SSE events.Optional filters for the Broker rebalancer SSE stream.Handle for a Broker SSE subscription.