Alpaca Markets

Alpaca Markets

Commission-free brokerage API for programmatic stock trading. Used by Nate Herk to build a fully autonomous Claude Code cloud-routine trading agent named "Bull".

Key facts

  • Type: Trading brokerage API
  • Status: Active
  • Paper trading: $100K virtual account for testing without real funds
  • Live trading: real-money account via same API
  • MCP server available: yes — can be plugged directly into Claude Code
  • Key endpoints: market data, order placement (market, limit, stop), portfolio management, account status

What it does in this ecosystem

Alpaca + Perplexity API + Claude Code cloud routines = a five-routine autonomous trading system:

1. Pre-market: Perplexity API gathers news → identify 3 stocks, generate trading plan → write to today.md

2. Market open: read today.md, place trades via Alpaca, write executed orders to memory files

3. Midday: check positions, adjust stop-losses, write risk management decisions

4. End-of-day: journal performance, write lessons to journal.md

5. Friday: weekly review and strategy update

All five routines share memory via committed files in the same GitHub repo. [src-010]

[src-086] adds a real-money benchmark variant: Nate's OpenClaw trading bot "Bull" used Alpaca to manage a $10,000 account for 30 days, make buy/sell/stop decisions, and compare results against both Salmon's separate agent and the S&P 500 baseline. The experiment is useful as an Autonomous Trading Agents case study, not as evidence that unattended AI trading is safe or reliably profitable.

Related

Source references

  • [src-010] Nate Herk — Cloud agents & model releases cluster (2026-04-14 to 2026-04-17)
  • [src-086] Nate Herk — "I Gave OpenClaw $10,000 to Trade Stocks" (2026-04-09)

Robin Cartier perspective

This page is part of Robin Cartier's working AI knowledge graph: a practical research layer for production AI, recommendation systems, experimentation, GEO, and agentic web readiness.

The useful next step is to connect this concept back to applied product leadership and operating models.

Recommended next

Keep reading from this thread

From 491 indexed pages and articles.

  1. Wiki concept Autonomous Trading Agents AI agents given market data, brokerage access, strategy instructions, and recurring execution authority to research, trade, rebalance, and review Related by alpaca
  2. Wiki concept Stateless Agent Memory Pattern Design pattern for agents that run in ephemeral, stateless environments (such as Claude Code cloud routines). Related by trading
  3. Insight Generative Engine Optimization for AI Search A practical GEO guide for becoming visible in AI-generated answers through machine-scannable content, authority, schema, and monitoring Readers have engaged with this next