An agentic trading system for personal use that can invest on behalf of the user in user-approved markets and tickers.
Build a full end-to-end trading workflow where an autonomous agent can:
- Understand user investment preferences and constraints.
- Restrict execution to an explicit allowlist of markets and tickers.
- Generate and execute investment decisions on the user's behalf.
- Keep an auditable decision and execution trail for every trade.
This repository is the starting point for implementing:
- Market scope control: only configured markets are tradable.
- Ticker scope control: only configured tickers are tradable.
- Agentic execution: autonomous decision + order execution loop.
- Personal-use safety rails: position limits, risk checks, and logging.
Recommended multi-agent layout:
- Orchestrator agent: coordinates agent workflow and produces final trade intents.
- Market specialist agent: analyzes allowed markets and macro/market-structure signals.
- Ticker specialist agent: analyzes allowed tickers and ranks opportunities.
- Business analyst agent: gathers business context (including website/news crawling with robots.txt compliance and rate limits) and produces structured qualitative signals.
- Risk agent: validates limits (position sizing, exposure, drawdown) and blocks non-compliant intents.
- Ordering agent: converts approved intents into broker orders and manages lifecycle events (submit/cancel/replace).
- Audit/logging agent: stores full decision traces and execution records.
Use least-privilege permissions per agent:
- Business analyst agent: Read on web/external data sources with zero external-write permissions; Write only to internal research artifacts.
- Market specialist agent: Read market data; Write market-scoring outputs.
- Ticker specialist agent: Read ticker fundamentals/price data; Write ticker rankings and signal outputs.
- Risk agent: Read portfolio, limits, and proposed orders; Write risk decisions (approve/reject/resize).
- Ordering agent: Read approved intents + account/execution state; Write broker order actions only.
- Orchestrator agent: Read/Write internal workflow state; no direct broker-write permissions.
- Audit/logging agent: Read all internal decision artifacts; Write immutable audit trails.
Product discovery starts through the structured User Feedback Issue Form and
is managed by the compiled GitHub Agentic Workflows in
.github/workflows/product-discovery.lock.yml and
.github/workflows/product-refinement.lock.yml.
- Create a User Feedback issue.
- The
user-feedbacklabel starts the workflow automatically. - The workflow coordinates the Product Owner, Business Analyst, and Tech Lead custom agents.
- The agents create a draft Product Request labeled
needs-human-review. - Humans add clarifications as comments on the Product Request, then post
/refineto have the agents revise the existing request from those comments. - Humans approve product scope, business rules, and technical feasibility before implementation planning starts.
Bug issues remain outside this automatic product-discovery path. Agent
definitions live in .github/agents/ and their reusable methods live in
.github/skills/. Product Requests are created only by the workflow; no public
Product Request form or blank Issue entry is available.
- sr software engineer: designs, implements, reviews, tests, and maintains
production-grade software. Technology expertise is supplied through reusable
skills, currently
python-engineering.