Welcome to PyAlpacaAPI Documentation

PyAlpacaAPI is a modern Python wrapper for the Alpaca Trading API that provides complete trading operations, market data access, and stock analysis tools with full type safety.

Features

  • 🔒 Full Type Safety: Complete type annotations with mypy strict mode

  • 📊 Trading Operations: Orders, positions, and account management

  • 📈 Market Data: Historical data, real-time quotes, and news

  • 🤖 Analysis Tools: Stock screeners, ML predictions, sentiment analysis

  • 🚀 High Performance: Built-in caching with LRU and Redis support

  • 📦 Batch Operations: Automatic batching for multi-symbol data fetching

  • 🔄 Feed Management: Automatic subscription detection and fallback

Indices and Tables