Package markets.alpaca.client.http
package markets.alpaca.client.http
OkHttp configuration and retry helpers used by Alpaca REST, WebSocket, and SSE clients.
The default client is shared and conservative. Add retry interceptors deliberately, especially around non-idempotent operations such as order placement, transfers, account creation, or other state-changing Broker and Trading API calls.
-
ClassDescriptionFactory for OkHttp client instances with Alpaca-recommended defaults.Describes one retry decision made by
AlpacaRetryInterceptor.OkHttp interceptor that retries idempotent REST responses according to anAlpacaRetryPolicy.Callback hooks for observingAlpacaRetryInterceptorretry behavior.Immutable configuration forAlpacaRetryInterceptor.Builder forAlpacaRetryPolicy.