Shared HTTP transport, endpoint routing, pagination, retry, and rate-limit infrastructure.
Shared Types
Endpoint
| Variant | Official Value |
|---|
NewsList | news.list |
OptionsBars | options.bars |
OptionsTrades | options.trades |
OptionsLatestQuotes | options.latest_quotes |
OptionsLatestTrades | options.latest_trades |
OptionsSnapshots | options.snapshots |
OptionsExchangeCodes | options.exchange_codes |
StocksBars | stocks.bars |
StocksAuctions | stocks.auctions |
StocksQuotes | stocks.quotes |
StocksTrades | stocks.trades |
StocksLatestBars | stocks.latest_bars |
StocksLatestQuotes | stocks.latest_quotes |
StocksLatestTrades | stocks.latest_trades |
StocksSnapshots | stocks.snapshots |
StocksExchangeCodes | stocks.exchange_codes |
CorporateActionsList | corporate_actions.list |
HttpClient
| Field | Official Word | Type | Notes |
|---|
endpoint_name | endpoint_name | &'static str | Stable endpoint name such as stocks.latest_bars. |
url | url | String | Fully resolved request URL. |
status | status | u16 | Final HTTP status code. |
request_id | request_id | Option<String> | Alpaca request identifier when the server returned one. |
attempt_count | attempt_count | u32 | Number of retry attempts that happened before this terminal response. |
elapsed | elapsed | Duration | Total elapsed request time across retries. |
ObserverHandle
RateLimiter
RetryConfig
RetryDecision
| Variant | Official Value |
|---|
DoNotRetry | DoNotRetry |
- Examples: -
- Tests:
tests/mock_transport_errors.rs
- Benchmarks:
benches/shared_core.rs
Coverage Notes
- The strict endpoint parity ledger for this module lives in API Coverage.
- Generated reference pages mirror the shipped Rust surface and do not claim unimplemented Alpaca endpoints as available.