Skip to main content

Crate alpaca_data

Crate alpaca_data 

Source
Expand description

Async Rust client for the Alpaca Market Data HTTP API.

The crate follows a mirror layer plus thin convenience layer design: resource methods track the official Alpaca HTTP API closely, while stable helpers such as pagination aggregators remain opt-in.

Environment variables:

  • ALPACA_DATA_API_KEY
  • ALPACA_DATA_SECRET_KEY
use alpaca_data::Client;

let client = Client::builder().credentials_from_env()?.build()?;
let _stocks = client.stocks();

See the workspace docs site at https://wmzhai.github.io/alpaca-rust/.

Modules§

cache
corporate_actions
news
options
stocks

Structs§

Client
ClientBuilder

Enums§

Error

Constants§

DATA_API_KEY_ENV
DATA_SECRET_KEY_ENV

Functions§

display_stock_symbol
options_underlying_symbol