Skip to main content

Transport

Shared HTTP transport, endpoint routing, pagination, retry, and rate-limit infrastructure.

Shared Types

Endpoint

VariantOfficial Value
NewsListnews.list
OptionsBarsoptions.bars
OptionsTradesoptions.trades
OptionsLatestQuotesoptions.latest_quotes
OptionsLatestTradesoptions.latest_trades
OptionsSnapshotsoptions.snapshots
OptionsExchangeCodesoptions.exchange_codes
StocksBarsstocks.bars
StocksAuctionsstocks.auctions
StocksQuotesstocks.quotes
StocksTradesstocks.trades
StocksLatestBarsstocks.latest_bars
StocksLatestQuotesstocks.latest_quotes
StocksLatestTradesstocks.latest_trades
StocksSnapshotsstocks.snapshots
StocksExchangeCodesstocks.exchange_codes
CorporateActionsListcorporate_actions.list

HttpClient

ObservedResponseMeta

FieldOfficial WordTypeNotes
endpoint_nameendpoint_name&'static strStable endpoint name such as stocks.latest_bars.
urlurlStringFully resolved request URL.
statusstatusu16Final HTTP status code.
request_idrequest_idOption<String>Alpaca request identifier when the server returned one.
attempt_countattempt_countu32Number of retry attempts that happened before this terminal response.
elapsedelapsedDurationTotal elapsed request time across retries.

ObserverHandle

RateLimiter

ResponseMeta

RetryConfig

RetryDecision

VariantOfficial Value
DoNotRetryDoNotRetry
  • 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.