Skip to main content

Transport

  • Module path: alpaca_data::transport
  • Client type: internal-only module
  • docs.rs module: not linked; this is an internal-only generated page and the crate does not ship a public rustdoc module at this path.
  • Site rustdoc module: not linked; this is an internal-only generated page and the site does not publish a public rustdoc module at this path.
  • Public rustdoc entries: ObservedResponseMeta, TransportObserver
  • Scope: Internal architecture support only

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

Shared Types

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.

TransportObserver

  • 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.