Automate a paper portfolio with weekday research

They used Claude Code to watch a stock list, prepare paper trades, and keep a written trail on a fixed schedule.

Done with Claude Code· Advanced

What they did
They built a Claude Code workflow around Alpaca by adding a CLAUDE.md guide, a watchlist.json file, and Python utilities for data checks and order submission. The system was split into three weekday tasks: a market scan in the morning, an execution step shortly after, and a journal entry at the end of the day. In each pass, the agent checked whether the market was open, pulled recent bars and news, sent limit orders, and wrote a Markdown summary.
How it went
This was a how-to guide, so it did not include actual trading outcomes. It also pointed out that paper trading can overstate results because real orders can move, lag, or fill unevenly, and that the agent carries out a defined approach instead of guessing market direction.
Tips
A smaller watchlist helps keep inference costs down, and limiting tool use also helps. Treat paper trading as practice for the process, not as a promise of live performance.

Try it yourself with Claude Code

Create a Claude Code agent for my Alpaca paper-trading setup. Use [env file or secret location] for API keys, [watchlist file] for tickers, and [rules file] for the agent’s operating instructions. On weekdays at [morning time], verify market status, gather recent bars and news for each ticker, and draft a short note plus a proposed limit order for each one. Before any order is placed, stop and wait for my approval, showing the exact order details. If I approve, send paper-only orders, then save a Markdown journal to [folder or file]. Also run a separate weekday routine at [execution time] and a final one at [end-of-day time]. Never trade live, and end after one full morning cycle is complete.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.