Skip to main content

alpaca-facade

alpaca-facade is the high-level convenience layer that composes the lower alpaca-rust crates into application-friendly adapters.

Main Types and Helpers

  • AlpacaData
  • AlpacaDataConfig
  • CacheStats
  • ResolvedOptionStratPositions
  • map_snapshot(...)
  • map_snapshots(...)
  • map_live_snapshots(...)
  • resolve_positions_from_optionstrat_url(...)

Typical Uses

  • Reuse alpaca-data::cache::CachedClient behind a richer option-aware facade
  • Enrich Alpaca option snapshots into alpaca-option core models
  • Keep application-specific singleton or scheduling logic outside the shared crate

For option chains, call alpaca-data directly through client.options().chain_all(...), then map snapshots with map_live_snapshots(...) if enriched alpaca-option models are needed.

Not Included

  • environment bootstrapping
  • application singletons
  • provider fallback orchestration
  • strategy logic or order workflows