08-tooling

alpaca paper trading stack

2026-05-13·tooling·status: read-only-stack-stood-up·! medium
alpacatradingpaperpythonuv1passwordinvesting

Alpaca paper-trading stack — read-only layer (stood up 2026-05-13)

What's installed

Component Path Purpose
1Password wrapper ~/.claude/scripts/alpaca-env-paper.sh Pulls APCA_API_KEY_ID, APCA_API_SECRET_KEY, APCA_API_BASE_URL from 1Password "Ray Agent" vault, item "Alpaca Paper API Keys". Refuses to export non-paper URLs (safety guard).
Python venv ~/.claude/scripts/alpaca-venv/ UV-managed Python 3.12 venv with alpaca-py SDK installed. First UV-managed venv in the script collection (existing venvs use plain python3 -m venv).
Smoke test ~/.claude/scripts/alpaca-paper-smoke-test.py Read-only wiring check — pulls account, positions, orders, clock, AAPL quote. No writes. Refuses to run if base URL is not paper.

Run the smoke test

bash -c 'source ~/.claude/scripts/alpaca-env-paper.sh && \
         ~/.claude/scripts/alpaca-venv/bin/python ~/.claude/scripts/alpaca-paper-smoke-test.py'

Expected first-run output (matches 2026-05-13 21:02 ET fire):

Why these choices

What's NOT installed (deliberately)

Caveats observed in first smoke-test run

Cross-references

Next steps (queued, not started)

  1. Order wrapper + audit log + first-trade decision page — separate session, founder green-light required.
  2. Strategy spec — first paper-trading thesis to test. Likely a simple buy-and-hold benchmark vs a small mechanical rule, just to exercise the order pathway end-to-end.
  3. Lockfile for the alpaca-venv — once we know which dependencies stick, run uv pip freeze > requirements.txt (or migrate to uv lock style) so the env is reproducible.
  4. Migrate other venvs to UV — when we next touch asc-api-venv, finance-venv, graph-db-venv, switch them to UV. Not blocking; do at next-touch.