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
- Site:
Resource Families
| Resource | Client | Mirror Methods | Convenience Methods | Examples | Tests |
|---|---|---|---|---|---|
| Stocks | StocksClient | 18 | 16 | 2 | 6 |
| Options | OptionsClient | 8 | 8 | 1 | 5 |
| Crypto | CryptoClient | 8 | 6 | 1 | 6 |
| News | NewsClient | 1 | 2 | 1 | 2 |
| Corporate Actions | CorporateActionsClient | 1 | 2 | 1 | 2 |
API Layers
- Mirror layer methods preserve the official HTTP endpoint shape and field words.
- Convenience helpers only add
*_alland*_streampagination flows. - Request and response field words use Alpaca's official API terms.
- Public Rust naming stays idiomatic: modules lowercase, types
PascalCase, methods and fieldssnake_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/.