Launch offer20% off your first custom bot, for our first 1,000 clients. Free 30-minute consultation included.−20% · LAUNCH20 See packs →
Heybotify
Broker & exchange APIs

Alpaca (alpaca-py)

Alpaca's official Python SDK to trade stocks, crypto and options via API and download market data.

alpacahq/alpaca-py★ 1,567 stars last commit 2026-10-23
Our take

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.

Get a free quote

Real-life uses

Portfolio daily summary

Balances across brokers, exchanges and wallets in one evening message.

📊 Total €24,310 (+0.8% today). Crypto 31%, stocks 54%, cash 15%.
from €99 €79Order this bot

Portfolio rebalancing and DCA

Buys a fixed amount on schedule or rebalances to target weights across ETFs or crypto.

🔁 Monthly DCA done: €200 split across 3 ETFs.
from €490 €392Order this bot

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.

  1. https://github.com/alpacahq/alpaca-py: available APIs, assets, test environments and Apache-2.0 license
  2. https://alpaca.markets/support/countries-alpaca-is-available: the page does not list countries; it refers you to support

Alternatives in Broker & exchange APIs