Alpaca Trading API

Alpaca is a commission-free stock and cryptocurrency trading API designed for developers and algorithmic traders. It supports market, limit, and stop orders, portfolio management, real-time market data streaming via WebSocket, and paper trading for strategy testing without real money.

Evaluated Mar 06, 2026 (0d ago) vcurrent
Homepage ↗ Repo ↗ Finance alpaca trading stocks crypto algorithmic-trading rest-api websocket sdk commission-free
⚙ Agent Friendliness
72
/ 100
Can an agent use this?
🔒 Security
86
/ 100
Is it safe for agents?
⚡ Reliability
86
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
85
Error Messages
82
Auth Simplicity
85
Rate Limits
80

🔒 Security

TLS Enforcement
100
Auth Strength
85
Scope Granularity
78
Dep. Hygiene
82
Secret Handling
82

API key + secret key pair. Paper trading sandbox. FINRA-regulated broker-dealer. SOC2. CRITICAL: Production API executes real trades. Always use paper trading until thoroughly tested and validated.

⚡ Reliability

Uptime/SLA
90
Version Stability
85
Breaking Changes
82
Error Recovery
85
AF Security Reliability

Best When

An agent needs to execute US equity or crypto trades programmatically, especially for algorithmic strategies or automated portfolio management.

Avoid When

Sub-millisecond execution latency is required, institutional-grade clearing is needed, or trading instruments beyond US stocks and crypto.

Use Cases

  • Building algorithmic trading bots and automated trading strategies
  • Paper trading for testing trading agents before going live
  • Portfolio rebalancing automation
  • Real-time market data ingestion and analysis
  • Options and crypto trading automation
  • Fractional share trading for micro-investment apps

Not For

  • Institutional or high-frequency trading (not built for sub-millisecond execution)
  • International users outside the US (primarily US-based brokerage)
  • Trading futures, forex, or commodities (equities and crypto only)

Interface

REST API
Yes
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: api_key
OAuth: No Scopes: No

API Key ID and API Secret Key pair, generated in the Alpaca dashboard. Separate key pairs for paper and live trading environments. Keys are per-account. No OAuth or fine-grained scopes — a key grants full account access. OAuth2 available for broker-dealer API (multi-account).

Pricing

Model: free
Free tier: Yes
Requires CC: No

The trading API itself has no subscription fee. Revenue comes from payment for order flow, crypto spreads, and premium market data. Paper trading is an excellent free sandbox for agent development.

Agent Metadata

Pagination
cursor
Idempotent
Partial
Retry Guidance
Documented

Known Gotchas

  • Paper and live trading environments use different base URLs and key pairs — easy to accidentally use live keys in testing
  • Market hours matter — orders submitted outside market hours behave differently (held, rejected, or extended-hours depending on flags)
  • Order fills are asynchronous — agents must poll order status or stream updates via WebSocket
  • Pattern Day Trader (PDT) rule applies — less than $25k account triggers restrictions on day trades
  • Fractional shares cannot be used with all order types
  • Crypto trading fees apply unlike equity trading — agents tracking P&L must account for spread
  • Free market data tier has 15-minute delay — real-time data requires a paid subscription
  • Rate limits (200 req/min) are easy to hit in tight agent loops — implement backoff

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Alpaca Trading API.

$99

Scores are editorial opinions as of 2026-03-06.

5175
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered