Skip to main content

Documentation

alpaca-data is a high-performance async Rust client for the Alpaca Market Data HTTP API. This site covers crate usage, endpoint coverage, repository layout, examples, and rustdoc links.

Start Here

  • Start with Getting Started for install, client construction, and the two-layer API model.
  • Use Authentication for current credential behavior and live-test environment setup.
  • Read Layers for the mirror-versus-convenience contract.
  • Browse Project Structure for the repository layout.
  • Use API Reference for module-level public API pages with rustdoc deep links.
  • Use API Coverage for the endpoint-to-method coverage table.
  • Use Examples for runnable entry points.
  • Use Release Checklist for release-readiness validation.

Root Entry Point

  • Crate: alpaca-data
  • Version: v0.10.3
  • Root client: alpaca_data::Client
  • Resource accessors: stocks(), options(), crypto(), news(), corporate_actions()
  • Documentation hosts:
    • Site: https://wmzhai.github.io/alpaca-data-rs/
    • docs.rs: https://docs.rs/alpaca-data
    • Repository: https://github.com/wmzhai/alpaca-data-rs

Resource Families

ResourceClientMirror MethodsConvenience MethodsExamplesTests
StocksStocksClient181626
OptionsOptionsClient8815
CryptoCryptoClient8616
NewsNewsClient1212
Corporate ActionsCorporateActionsClient1212

API Layers

  • Mirror layer methods preserve the official HTTP endpoint shape and field words.
  • Convenience helpers only add *_all and *_stream pagination flows.
  • Request and response field words use Alpaca's official API terms.
  • Public Rust naming stays idiomatic: modules lowercase, types PascalCase, methods and fields snake_case.

Documentation Generation

./tools/docs/generate-doc-site regenerates docs/reference/, docs/project-structure.md, docs/generated/, and website/sidebars.ts.

The published site lives at https://wmzhai.github.io/alpaca-data-rs/.