Autonomous Alpaca Options Trading Desk

Created by team rebels on August 31, 2026
Options Alpha Agents

**Autonomous Alpaca Options Alpha Agent** is an autonomous AI-powered options trading system built for the Alpaca AI Trading Agents Hackathon. The project combines LLM-based market reasoning with deterministic risk controls to create a safer and more auditable trading-agent architecture. The agent continuously retrieves live market and options data from Alpaca and scans potential opportunities based on liquidity, volatility, momentum, and options quality. Selected opportunities are passed to an OpenRouter-powered AI strategy engine, which evaluates strategies including Long Calls, Long Puts, Bull Call Spreads, and Bear Put Spreads. Rather than allowing the LLM to directly execute trades, its recommendations are converted into structured JSON and validated using Zod. Every proposal then passes through deterministic risk gates covering AI confidence, maximum position risk, portfolio exposure, buying power, active position limits, and daily loss protection. Trades that fail any safety condition are automatically rejected. The system runs through an autonomous agent loop that handles market scanning, AI reasoning, validation, risk evaluation, execution, position monitoring, and decision logging. Alpaca MCP and CLI fallback support the integration and execution layer, while unique client order IDs help prevent duplicate orders. A React-based dashboard provides real-time visibility into agent status, opportunities, positions, risk decisions, and trading activity. SQLite maintains a persistent audit trail of market data, AI decisions, risk checks, and executions. **Tech Stack:** TypeScript, Node.js/Express, React, Vite, Tailwind CSS, SQLite, Alpaca Trading API, Alpaca MCP, OpenRouter, Docker, and GCP Cloud Run. The system is built and tested entirely in **Alpaca Paper Trading** with no real capital involved. It is an experimental hackathon project and not financial advice.

Category tags: