alpacahq

    alpacahq/alpaca-py

    The Official Python SDK for Alpaca API

    cryptography
    algorithmic-trading
    algotrading
    alpaca
    alpaca-api
    brokerage
    Python
    Apache-2.0
    1.6K stars
    427 forks
    1.6K GitHub watchers
    Updated Oct 28, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    1 release in the last 90 days, the latest 78 days ago, with 64 contributors on GitHub.

    Gained 13% fewer stars in the last 90 days than in the 90 days before.

    Use Cases & Benefits

    • Provides a Python SDK to interact with Alpaca's trading, market data, and brokerage APIs for stocks, crypto, and options.
    • Offers a comprehensive, object-oriented interface with data validation and multiple specialized clients for different asset classes.
    • Use for building algorithmic trading strategies with fast order execution and historical market data access.
    • Use for developing full brokerage applications including account management and investment app features via Broker API.
    • Use for retrieving and analyzing live and historical market data, news, and options data for quantitative finance projects.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    Apache 2.0

    Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    Alpaca-py provides an interface for interacting with the API products Alpaca offers. These API products are provided as various REST, WebSocket and SSE endpoints that allow you to do everything from streaming market data to creating your own investment apps.

    Learn more about the API products Alpaca offers at https://alpaca.markets.

    Alpaca-py has a supplementary documentation site which contains references for all clients, methods and models found in this codebase. The documentation also contains examples to get started with alpaca-py.

    You can find the documentation site here: https://alpaca.markets/sdks/python/getting_started.html

    You can also find the API Reference of Alpaca APIs: https://docs.alpaca.markets/reference

    Alpaca-py is supported on Python 3.8+. You can install Alpaca-py using pip.

    Run the following command in your terminal.

    Excerpt from the alpacahq/alpaca-py README on GitHub (Apache-2.0 license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Forks

    427+46

    Open issues

    65-44

    Compared with peers in Cryptography

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    alpacahq/alpaca-py compared with Cryptography repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    MHSanaei/3x-ui49.4K+52253134 days ago
    caddyserver/caddy78.8K+267601 day ago
    XTLS/Xray-core42.6K+213604 days ago
    rclone/rclone60.8K+2056427 days ago
    gchq/CyberChef36.2K—6339 days ago
    alpacahq/alpaca-py1.6K—5678 days ago
    Category median49.4K+24060—

    Discover Repositories

    Search across tracked repositories by name or description