Alpaca Markets API

Commission-free US equity and crypto brokerage API with paper trading, real-time market data streaming, and broker API for building trading products on top of Alpaca's regulated clearing infrastructure.

Evaluated Mar 06, 2026 (0d ago) vv2
Homepage ↗ Repo ↗ Other alpaca stocks equities trading brokerage commission-free paper-trading rest websocket finra sec
⚙ Agent Friendliness
61
/ 100
Can an agent use this?
🔒 Security
87
/ 100
Is it safe for agents?
⚡ Reliability
83
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

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

🔒 Security

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

API keys are single-permission (full account access); no per-action scoping. OAuth2 Broker API allows delegated access with user consent. SIPC insurance covers brokerage accounts. Paper trading keys have no financial risk.

⚡ Reliability

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

Best When

Your agent needs a developer-friendly, commission-free US equity brokerage with a paper trading environment for safe iteration before live execution.

Avoid When

You need options chains, international markets, or institutional-grade execution algorithms.

Use Cases

  • Build and backtest equity trading algorithms in paper trading mode before going live with identical API calls
  • Execute fractional share orders for portfolio rebalancing agents that need precise dollar-based allocation
  • Stream real-time trade and quote data via WebSocket for price signal agents without paying for a separate market data subscription
  • Manage multi-account portfolios through the Broker API for fintech apps serving end-user investors
  • Implement automated tax-loss harvesting by querying positions and placing replacement trades within wash-sale windows

Not For

  • Options or futures trading — Alpaca only supports equities and crypto spot
  • International stocks or forex — US-listed securities only
  • Institutional prime brokerage with DMA, dark pool, or algorithmic execution routing requirements

Interface

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

Authentication

Methods: api_key oauth2
OAuth: Yes Scopes: Yes

API key ID + secret for direct account access; OAuth2 for Broker API apps acting on behalf of end users. Paper and live trading use separate key pairs — switching environments requires swapping credentials.

Pricing

Model: freemium
Free tier: Yes
Requires CC: No

Trading is commission-free. Market data is tiered — free IEX feed is delayed/limited vs paid SIP consolidated tape. Funded brokerage account required for live trading.

Agent Metadata

Pagination
token
Idempotent
Partial
Retry Guidance
Documented

Known Gotchas

  • Paper and live environments use different base URLs and separate API key pairs — accidentally submitting live orders to paper env (or vice versa) is a common agent misconfiguration
  • Market hours enforcement: orders placed outside regular hours require extended_hours: true or they queue silently until open, causing unexpected execution timing
  • Fractional shares have minimum order sizes ($1 notional or 0.001 shares) that differ from whole-share lot size rules — agents must check asset fractionability before order construction
  • Position quantity after a partial fill updates immediately but buying power updates may lag by 1-2 seconds — agents polling account state rapidly may see stale values
  • WebSocket data stream uses a different authentication handshake than REST — auth message must be sent as the first frame after connection or the stream delivers no data without error

Alternatives

Full Evaluation Report

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

$99

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

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