Package markets.alpaca.client.ws
package markets.alpaca.client.ws
Handwritten WebSocket stream clients, listeners, subscriptions, and stream configuration.
This package covers Alpaca stock market data, crypto market data, news, and trading update
streams. WebSocket endpoints are not generated from the REST OpenAPI specs, so the stream clients
are handwritten and committed. Model records for stream payloads live in markets.alpaca.client.ws.model.
-
ClassDescriptionWebSocket client for the Alpaca real-time crypto pricing stream (
/v1beta3/crypto/us).WebSocket client for the Alpaca real-time news stream (/v1beta1/news).WebSocket client for the Alpaca real-time stock pricing stream (/v2/{source}).Result of a stream's first authentication attempt.Outcome categories for stream authentication.Selects between the Alpaca production and sandbox WebSocket endpoints.Reconnect policy for Alpaca WebSocket stream clients.Builder forAlpacaStreamReconnectPolicy.WebSocket client for the Alpaca real-time trading stream (/stream).Receives events from a crypto pricing WebSocket stream.Describes which crypto data channels and pairs to subscribe to (or unsubscribe from).Receives events from the real-time news WebSocket stream.Describes which symbols to subscribe to news for.Data source for the stock pricing stream.Receives events from a stock pricing WebSocket stream.Describes which stock data channels and symbols to subscribe to (or unsubscribe from).Selects between the Alpaca live and paper trading WebSocket endpoints.Receives events from the real-time trading WebSocket stream (/stream).The complete set of trading streams to subscribe to.