mahmoud20138/tradecraft/ai-trading-crew

Claude Code and agent skill by mahmoud20138/tradecraft

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

AI Trading Crew — 50-agent AutoGen system for US stock analysis. 8 specialized teams (Technical, Fundamental, Macro, Sentiment, Quant, Risk, Execution, Strategy) reporting to a Head Coach supervisor. Risk team has veto power. Devil's Advocate agent f

Install

npx vskill@latest install mahmoud20138/tradecraft/ai-trading-crew

SKILL.md

The same SKILL.md was published earlier as mahmoud20138/tradecraft/ai-trading-crew.

AI Trading Crew

USE FOR:

  • "50-agent trading crew simulation"
  • "AutoGen multi-agent stock analysis"
  • "devil's advocate + risk veto trading system"
  • "US stock consensus trading agent"
  • "multi-team agent debate for trading decisions"
  • "ChromaDB RAG for trading knowledge"

tags: [AutoGen, multi-agent, trading, US-stocks, Alpaca, Polygon, ChromaDB, RAG, risk-veto, paper-trading] kind: framework category: quant-ml-trading


What Is AI Trading Crew?

50-agent AutoGen system simulating a collaborative trading firm for US equities.

  • Repo: https://github.com/omer475/ai-trading-crew
  • Framework: AutoGen (Microsoft multi-agent)
  • LLM: OpenAI
  • Broker: Alpaca (paper trading)
  • Data: Polygon.io real-time market data
  • Memory: ChromaDB RAG knowledge base

Agent Architecture: 8 Teams + Head Coach

Head Coach (Supervisor)
↑ synthesis
┌──────────┬──────────┼──────────┬──────────┐
│ │ │ │ │
Technical Fundamental Macro Sentiment Quant
(7 agents) (7 agents) (6 agents) (6 agents) (6 agents)
│ │ │ │ │
└──────────┴──────────┼──────────┴──────────┘
│
Risk Management (5 agents) ← VETO POWER
│ approved?
Execution & Ops (5 agents)
Strategy & Special (8 agents)
│
Devil's Advocate ← contrarian challenge
│
Final Decision + Order

Team Responsibilities

TeamAgentsSpecialty
Technical Analysis7Chart patterns, indicators, price action
Fundamental Analysis7Earnings, P/E, balance sheet, moat
Macro & Economics6Fed policy, rates, sectors, macro
Sentiment & News6News NLP, social sentiment, analyst ratings
Quantitative6Statistical models, factor analysis, signals
Risk Management5VETO authority over all trades
Execution & Ops5Order routing, timing, slippage management
Strategy & Special8Special situations, M&A, catalysts

Trading Workflow

1. Input: python main.py --symbol AAPL
2. Teams debate internally via AutoGen GroupChat
→ Each team reaches internal consensus
3. Team leaders report to Head Coach
→ Cross-team synthesis
4. Risk Management review
→ Can VETO any trade (overrides Head Coach)
5. Devil's Advocate challenges recommendation
→ Forces bull/bear stress test
6. Head Coach final decision
7. Human approval gate (configurable)
8. Execution team submits order to Alpaca

Installation

bash
git clone https://github.com/omer475/ai-trading-crew
cd agents
pip install -r requirements.txt
cp .env.example .env

`.env` keys required:

bash
OPENAI_API_KEY="sk-..."
ALPACA_API_KEY="..."
ALPACA_SECRET_KEY="..."
POLYGON_API_KEY="..."

Usage

bash
# Full 50-agent analysis
python main.py --symbol AAPL
# Quick 5-agent test mode
python main.py --symbol NVDA --test
# Output: consensus decision + rationale + risk assessment + order

Key Design Patterns

AutoGen GroupChat per Team
python
# Each team runs internal debate
groupchat = autogen.GroupChat(
agents=[tech_agent_1, tech_agent_2, ..., tech_agent_7],
messages=[],
max_round=5
)
manager = autogen.GroupChatManager(groupchat=groupchat, llm_config=llm_config)
Risk Veto Pattern
python
class RiskManager(autogen.AssistantAgent):
def check_veto(self, proposal: dict) -> bool:
if proposal["position_size"] > self.max_risk:
return True # VETO
if proposal["volatility"] > self.vol_threshold:
return True # VETO
return False # Approved
ChromaDB RAG Knowledge Base
python
import chromadb
client = chromadb.Client()
collection = client.get_or_create_collection("trading_knowledge")
# Query before analysis
results = collection.query(
query_texts=["AAPL earnings history semiconductor cycle"],
n_results=5
)

Unique Features vs Other Trading Agent Frameworks

FeatureAI Trading CrewTradingAgentsAutoHedge
Agent count50 agents~8 agents~4 agents
Veto mechanismRisk team vetoRisk approvalRisk gate
Contrarian agentDevil's AdvocateBearish researcherNo
FrameworkAutoGenLangGraphSwarms
Knowledge baseChromaDB RAGNoneNone
MarketsUS stocks onlyUS stocksSolana crypto

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mahmoud20138/tradecraft/ai-trading-crew/badge)](https://verified-skill.com/skills/mahmoud20138/tradecraft/ai-trading-crew)

Something wrong with this skill or its page? Tell us.