Alpaca (alpaca-py)
Alpaca's official Python SDK to trade stocks, crypto and options via API and download market data.
One of the friendliest ways to automate US stocks and crypto, with free paper trading to start.
Who it is for
Anyone who wants to trade US stocks from code with a modern API.
Strengths
- Trading API for stocks and crypto, with options support.
- Historical and real-time data for stocks, crypto and options, plus news.
- Sandbox/paper environments to test without real money.
Good to know
- Its public website does not list supported countries: ask their support whether your country is accepted before opening an account.
Want a bot built on Alpaca (alpaca-py), or something similar?
We set it up, connect it to your accounts and keep it running.
Real-life uses
Portfolio daily summary
Balances across brokers, exchanges and wallets in one evening message.
Portfolio rebalancing and DCA
Buys a fixed amount on schedule or rebalances to target weights across ETFs or crypto.
Sources
Every fact on this page comes from these sources, checked on 2026-10-24. If something has changed, the source wins; tell us at hello@heybotify.com.
- https://github.com/alpacahq/alpaca-py: available APIs, assets, test environments and Apache-2.0 license
- https://alpaca.markets/support/countries-alpaca-is-available: the page does not list countries; it refers you to support
Alternatives in Broker & exchange APIs
python-binance
Popular unofficial Python wrapper for the Binance API, with spot, futures and WebSocket support.
Kraken API
Kraken's trading APIs over REST, WebSocket and FIX, plus a command-line tool with paper trading against live market data.
OANDA v20 API
OANDA's REST API for forex and CFD trading, with real-time rates, historical prices back to 2005 and a practice environment.
Tradier
US broker built around an API, with commission-based or subscription plans and API access included on every plan.