Claim this agent
Agent DossierGITHUB OPENCLEWSafety 89/100

Xpersona Agent

ai-hedge-fund

An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. --- name: ai-hedge-fund description: An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. homepage: https://github.com/virattt/ai-hedge-fund metadata: { "openclaw": { "emoji": "๐Ÿ“ˆ", "requires": { "bins": ["python3", "pip3"] }, "install": [ { "id": "yfinance", "kind": "pip", "package": "yfi

OpenClaw ยท self-declared
Schema refs publishedTrust evidence available
git clone https://github.com/erongcao/ai-hedge-fund-skill.git

Overall rank

#42

Adoption

No public adoption signal

Trust

Unknown

Freshness

Feb 25, 2026

Freshness

Last checked Feb 25, 2026

Best For

Contract is available with explicit auth and schema references.

Not Ideal For

ai-hedge-fund is not ideal for teams that need stronger public trust telemetry, lower setup complexity, or more explicit contract coverage before production rollout.

Evidence Sources Checked

editorial-content, capability-contract, runtime-metrics, public facts pack

Overview

Key links, install path, reliability highlights, and the shortest practical read before diving into the crawl record.

Verifiededitorial-content

Overview

Executive Summary

An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. --- name: ai-hedge-fund description: An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. homepage: https://github.com/virattt/ai-hedge-fund metadata: { "openclaw": { "emoji": "๐Ÿ“ˆ", "requires": { "bins": ["python3", "pip3"] }, "install": [ { "id": "yfinance", "kind": "pip", "package": "yfi Published capability contract available. No trust telemetry is available yet. Last updated 4/15/2026.

No verified compatibility signals

Trust score

Unknown

Compatibility

OpenClaw

Freshness

Feb 25, 2026

Vendor

Virattt

Artifacts

0

Benchmarks

0

Last release

Unpublished

Install & run

Setup Snapshot

git clone https://github.com/erongcao/ai-hedge-fund-skill.git
  1. 1

    Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.

  2. 2

    Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Evidence & Timeline

Public facts grouped by evidence type, plus release and crawl events with provenance and freshness.

Verifiededitorial-content

Public facts

Evidence Ledger

Vendor (1)

Vendor

Virattt

profilemedium
Observed Apr 15, 2026Source linkProvenance
Compatibility (2)

Protocol compatibility

OpenClaw

contractmedium
Observed Feb 24, 2026Source linkProvenance

Auth modes

api_key

contracthigh
Observed Feb 24, 2026Source linkProvenance
Artifact (1)

Machine-readable schemas

OpenAPI or schema references published

contracthigh
Observed Feb 24, 2026Source linkProvenance
Security (1)

Handshake status

UNKNOWN

trustmedium
Observed unknownSource linkProvenance
Integration (1)

Crawlable docs

6 indexed pages on the official domain

search_documentmedium
Observed Apr 15, 2026Source linkProvenance

Artifacts & Docs

Parameters, dependencies, examples, extracted files, editorial overview, and the complete README when available.

Self-declaredGITHUB OPENCLEW

Captured outputs

Artifacts Archive

Extracted files

0

Examples

6

Snippets

0

Languages

typescript

Parameters

Executable Examples

bash

# Unified CLI - All features in one command
ai-hedge-fund analyze AAPL
ai-hedge-fund portfolio AAPL,MSFT,GOOGL --risk moderate
ai-hedge-fund backtest AAPL,MSFT --start 2023-01-01 --end 2024-01-01
ai-hedge-fund global analyze --ticker 0700.HK

# Or use individual commands
./ai-hedge-fund AAPL                    # Basic analysis
./ai-hedge-fund AAPL --detailed         # Detailed agent reasoning
./ai-hedge-fund AAPL --hot              # Include trending stocks
./ai-hedge-fund AAPL --rumor            # Include rumor scan
./ai-hedge-fund AAPL --hot --rumor      # Full intelligence

./portfolio-build AAPL,MSFT,GOOGL       # Portfolio construction
./backtester AAPL,MSFT --start 2023-01-01 --end 2024-01-01  # Backtest

# Market Intelligence
./scanner hot                           # Trending stocks & crypto
./scanner rumor                         # Market-wide rumor scan
./scanner rumor -t NVDA                 # Scan specific ticker
./scanner scan                          # Hot + Rumor combined

bash

# Add to ~/.openclaw/skills/ai-hedge-fund/.env
FINANCIAL_DATASETS_API_KEY=your_key  # Detailed financial metrics
ALPHA_VANTAGE_API_KEY=your_key       # Alternative data source

text

User Request
    โ”‚
    โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Data Fetcher   โ”‚ โ† Yahoo Finance / API
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ–ผ         โ–ผ        โ–ผ        โ–ผ        โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚Buffettโ”‚ โ”‚ Mungerโ”‚ โ”‚Graham โ”‚ โ”‚Burry  โ”‚ โ”‚Cathie โ”‚ โ† Parallel sub-agents
โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜
    โ”‚         โ”‚         โ”‚         โ”‚         โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  Risk Manager   โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚Portfolio Managerโ”‚ โ† Final recommendation
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

bash

# Standalone hot scanner
./scanner hot

# Include in stock analysis
./ai-hedge-fund TSLA --hot

text

๐Ÿ”ฅ HOT SCANNER - Trending Stocks & Crypto
Found 6 trending assets

๐Ÿ“ˆ STOCKS:
  ๐ŸŸข UBER    +3.18%
  ๐ŸŸข NVDA    +2.45%

๐Ÿช™ CRYPTO:
  ๐Ÿš€ ESP-USD    +46.91%
  ๐Ÿ“‰ OP-USD     -14.47%

bash

# Scan specific ticker
./scanner rumor -t TSLA

# Scan market-wide
./scanner rumor

# Include in analysis
./ai-hedge-fund NVDA --rumor

Editorial read

Docs & README

Docs source

GITHUB OPENCLEW

Editorial quality

ready

An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. --- name: ai-hedge-fund description: An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. homepage: https://github.com/virattt/ai-hedge-fund metadata: { "openclaw": { "emoji": "๐Ÿ“ˆ", "requires": { "bins": ["python3", "pip3"] }, "install": [ { "id": "yfinance", "kind": "pip", "package": "yfi

Full README

name: ai-hedge-fund description: An AI-powered hedge fund team that simulates legendary investors (Buffett, Munger, Graham, etc.) to analyze stocks and provide investment recommendations using multi-agent consensus. homepage: https://github.com/virattt/ai-hedge-fund metadata: { "openclaw": { "emoji": "๐Ÿ“ˆ", "requires": { "bins": ["python3", "pip3"] }, "install": [ { "id": "yfinance", "kind": "pip", "package": "yfinance", "bins": [], "label": "Install yfinance (Yahoo Finance)", }, { "id": "pandas", "kind": "pip", "package": "pandas", "bins": [], "label": "Install pandas", }, { "id": "numpy", "kind": "pip", "package": "numpy", "bins": [], "label": "Install numpy", }, ], }, }

AI Hedge Fund Skill

An AI-powered hedge fund team that simulates legendary investors to analyze stocks and provide investment recommendations.

Overview

This skill creates a team of AI agents, each embodying the investment philosophy of famous investors:

Classic Investment Agents (5)

  • Warren Buffett - Value investing, wonderful companies at fair prices
  • Ben Graham - Margin of safety, hidden gems
  • Technical Analyst - Chart patterns and indicators
  • Risk Manager - Risk metrics and position sizing
  • Cathie Wood - Innovation and disruption

Enhanced Analysis Agents (4) - NEW in v2.1

  • Earnings Analyst - EPS surprises, beat rates, earnings quality
  • Wall Street Consensus - Analyst ratings, price targets, upside
  • Macro Strategist - VIX, market regime, SPY/QQQ trends
  • Dividend Investor - Yield, payout safety, dividend growth

Total: 9 agents analyzing each stock for comprehensive coverage

Quick Start

# Unified CLI - All features in one command
ai-hedge-fund analyze AAPL
ai-hedge-fund portfolio AAPL,MSFT,GOOGL --risk moderate
ai-hedge-fund backtest AAPL,MSFT --start 2023-01-01 --end 2024-01-01
ai-hedge-fund global analyze --ticker 0700.HK

# Or use individual commands
./ai-hedge-fund AAPL                    # Basic analysis
./ai-hedge-fund AAPL --detailed         # Detailed agent reasoning
./ai-hedge-fund AAPL --hot              # Include trending stocks
./ai-hedge-fund AAPL --rumor            # Include rumor scan
./ai-hedge-fund AAPL --hot --rumor      # Full intelligence

./portfolio-build AAPL,MSFT,GOOGL       # Portfolio construction
./backtester AAPL,MSFT --start 2023-01-01 --end 2024-01-01  # Backtest

# Market Intelligence
./scanner hot                           # Trending stocks & crypto
./scanner rumor                         # Market-wide rumor scan
./scanner rumor -t NVDA                 # Scan specific ticker
./scanner scan                          # Hot + Rumor combined

Data Sources

Free Tier (No API Key Required)

  • Yahoo Finance - Real-time prices, basic financials (via yfinance)
  • AAPL, GOOGL, MSFT, NVDA, TSLA have extended free data

Optional API Keys (for enhanced data)

# Add to ~/.openclaw/skills/ai-hedge-fund/.env
FINANCIAL_DATASETS_API_KEY=your_key  # Detailed financial metrics
ALPHA_VANTAGE_API_KEY=your_key       # Alternative data source

Architecture

User Request
    โ”‚
    โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Data Fetcher   โ”‚ โ† Yahoo Finance / API
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
    โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ–ผ         โ–ผ        โ–ผ        โ–ผ        โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚Buffettโ”‚ โ”‚ Mungerโ”‚ โ”‚Graham โ”‚ โ”‚Burry  โ”‚ โ”‚Cathie โ”‚ โ† Parallel sub-agents
โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜
    โ”‚         โ”‚         โ”‚         โ”‚         โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  Risk Manager   โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚Portfolio Managerโ”‚ โ† Final recommendation
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Agent Details

Warren Buffett Agent

Philosophy: "It's far better to buy a wonderful company at a fair price than a fair company at a wonderful price."

Analysis Criteria:

  • Return on Equity (ROE) > 15%
  • Debt to Equity < 0.5
  • Operating Margin > 15%
  • Consistent earnings growth
  • Durable competitive moat
  • Margin of safety calculation

Signal: bullish/bearish/neutral with confidence (0-100)

Charlie Munger Agent

Philosophy: "The big money is not in the buying and selling, but in the waiting."

Analysis Criteria:

  • Mental model checklist
  • Rational capital allocation
  • Shareholder-friendly management
  • Circle of competence
  • Long-term thinking

Ben Graham Agent

Philosophy: "In the short run, the market is a voting machine but in the long run, it is a weighing machine."

Analysis Criteria:

  • Margin of safety (price < intrinsic value * 0.66)
  • P/E ratio < 15
  • P/B ratio < 1.5
  • Current ratio > 2
  • No earnings deficit in past 10 years

Technical Analyst

Analysis:

  • Moving averages (20, 50, 200 day)
  • RSI (Relative Strength Index)
  • MACD
  • Support/resistance levels
  • Volume analysis

Risk Manager

Metrics:

  • Volatility (standard deviation)
  • Beta vs S&P 500
  • Maximum drawdown
  • Sharpe ratio
  • Position size recommendations

Enhanced Analysis (NEW in v2.1)

Based on features learned from stock-analysis skill, we've added 4 new agents:

Earnings Analyst

Focus: Earnings surprises and quality

  • EPS surprise analysis (actual vs expected)
  • Historical beat rate (last 4 quarters)
  • Earnings growth trends
  • Example: "Beat by +5.2%, 3/4 quarters exceeded estimates"

Wall Street Consensus

Focus: Professional analyst opinions

  • Consensus rating (strong_buy/buy/hold/sell/strong_sell)
  • Number of covering analysts
  • Price target vs current price
  • Upside/downside potential
  • Example: "19 analysts, consensus HOLD, +1.2% upside to target"

Macro Strategist

Focus: Market environment context

  • VIX level (fear index)
  • Market regime (bull/bear/choppy)
  • SPY/QQQ 10-day trends
  • Risk-off/risk-on indicators
  • Example: "VIX 19.6 (elevated), choppy market, SPY flat"

Dividend Investor

Focus: Income and dividend safety

  • Dividend yield analysis
  • Payout ratio safety assessment
  • Dividend growth history

Market Intelligence (NEW in v2.2)

๐Ÿ”ฅ Hot Scanner

Find trending stocks and crypto before they hit mainstream

Data Sources:

  • CoinGecko Trending (top trending crypto)
  • Yahoo Finance Movers (gainers/losers/high volume)

Usage:

# Standalone hot scanner
./scanner hot

# Include in stock analysis
./ai-hedge-fund TSLA --hot

Output Example:

๐Ÿ”ฅ HOT SCANNER - Trending Stocks & Crypto
Found 6 trending assets

๐Ÿ“ˆ STOCKS:
  ๐ŸŸข UBER    +3.18%
  ๐ŸŸข NVDA    +2.45%

๐Ÿช™ CRYPTO:
  ๐Ÿš€ ESP-USD    +46.91%
  ๐Ÿ“‰ OP-USD     -14.47%

๐Ÿ”ฎ Rumor Scanner

Detect early signals, M&A rumors, and insider activity

Detection Types:

  • ๐Ÿค M&A: Merger, acquisition, takeover rumors
  • ๐Ÿ‘ค Insider: Insider buying/selling activity
  • โฌ†๏ธ Upgrade: Analyst upgrades, price target raises
  • โฌ‡๏ธ Downgrade: Analyst downgrades, target cuts
  • ๐Ÿ“Š Earnings: Earnings surprises, guidance changes
  • ๐Ÿค Partnership: New deals, collaborations

Confidence Levels:

  • ๐Ÿ”ด High: Reputable source (Reuters, Bloomberg, CNBC)
  • ๐ŸŸก Medium: Confirmed keywords ("announces", "SEC filing")
  • โšช Low: Early signals, unconfirmed

Usage:

# Scan specific ticker
./scanner rumor -t TSLA

# Scan market-wide
./scanner rumor

# Include in analysis
./ai-hedge-fund NVDA --rumor

Output Example:

๐Ÿ”ฎ RUMOR SCANNER - Early Signals
Detected rumors for 3 tickers

๐Ÿ“ฐ NVDA:
  ๐ŸŸก โฌ†๏ธ [UPGRADE] Goldman raises target to $850...
     Source: MarketWatch | Confidence: medium

๐Ÿ“ฐ TSLA:
  โšช ๐Ÿค [PARTNERSHIP] Rumored deal with...
     Source: Twitter | Confidence: low
  • Income rating (excellent/good/moderate/poor)
  • Example: "2.8% yield, safe payout at 45%, dividend aristocrat"

Usage Examples

Basic Analysis

# Single stock
result = ai_hedge_fund.analyze("AAPL")
# Returns: {"signal": "bullish", "confidence": 75, "reasoning": "..."}

# Multiple stocks
results = ai_hedge_fund.analyze(["AAPL", "MSFT", "GOOGL"])

Detailed Report

{
  "ticker": "AAPL",
  "analysis_date": "2025-02-18",
  "agents": {
    "warren_buffett": {
      "signal": "bullish",
      "confidence": 85,
      "reasoning": "Strong ROE of 160%, excellent brand moat, consistent dividend growth"
    },
    "charlie_munger": {
      "signal": "bullish",
      "confidence": 80,
      "reasoning": "Rational capital allocation via buybacks, strong pricing power"
    },
    "ben_graham": {
      "signal": "neutral",
      "confidence": 50,
      "reasoning": "High P/E of 28 exceeds margin of safety threshold"
    },
    "technical": {
      "signal": "bullish",
      "confidence": 70,
      "reasoning": "Price above 200-day MA, RSI at 55 indicates healthy momentum"
    },
    "risk_manager": {
      "signal": "neutral",
      "confidence": 60,
      "reasoning": "Beta 1.2 indicates market correlation, moderate volatility"
    }
  },
  "consensus": {
    "signal": "bullish",
    "confidence": 73,
    "agreement": "4/5 agents bullish",
    "key_risks": ["High valuation", "Market correlation"],
    "recommendation": "Consider position size of 5-8% max"
  }
}

Configuration

Environment Variables

# ~/.openclaw/skills/ai-hedge-fund/.env

# LLM Configuration (uses OpenClaw default if not set)
OPENAI_API_KEY=sk-...  # Optional, falls back to kimi-k2.5

# Data Sources
FINANCIAL_DATASETS_API_KEY=...  # Optional, enhances data quality
ALPHA_VANTAGE_API_KEY=...       # Optional, alternative source

# Analysis Settings
MAX_AGENTS=12           # Number of agents to run
PARALLEL_MODE=true      # Run agents in parallel
CACHE_DURATION=3600     # Cache data for 1 hour

Custom Agents

Add your own investment style by creating a new agent file:

# ~/.openclaw/skills/ai-hedge-fund/agents/custom_agent.py

from typing import Literal

class CustomAgentSignal(BaseModel):
    signal: Literal["bullish", "bearish", "neutral"]
    confidence: int = Field(description="Confidence 0-100")
    reasoning: str = Field(description="Reasoning for the decision")

def custom_agent(state: AgentState, ticker: str) -> CustomAgentSignal:
    """Your custom analysis logic"""
    # Fetch data
    data = fetch_financial_data(ticker)
    
    # Analyze
    score = analyze_custom_metrics(data)
    
    # Return signal
    return CustomAgentSignal(
        signal="bullish" if score > 70 else "neutral",
        confidence=score,
        reasoning="Your reasoning here"
    )

Limitations & Disclaimers

โš ๏ธ IMPORTANT: This tool is for educational and research purposes only.

  • Not investment advice: These are AI simulations, not professional financial advice
  • No guarantee: Past performance analyzed by AI does not predict future results
  • Data limitations: Free data sources may have delays or inaccuracies
  • Risk: Always consult a qualified financial advisor before making investment decisions

Technical Details

Multi-Agent Coordination

Uses OpenClaw's sessions_spawn to run agents in parallel:

// Parallel agent execution
const agentResults = await Promise.all(
  agents.map(agent => 
    sessions_spawn({
      task: `Analyze ${ticker} as ${agent.name}`,
      agentId: 'investment-analyst',
      timeoutSeconds: 60
    })
  )
);

Data Caching

  • Financial data cached for 1 hour to reduce API calls
  • Agent results cached for same ticker within 30 minutes

Error Handling

  • Graceful fallback if data source unavailable
  • Individual agent failures don't block other agents
  • Missing data reported in reasoning

Troubleshooting

"No data for ticker"

  • Check ticker symbol is correct (e.g., "BRK-B" not "BRK.B")
  • Try popular tickers first (AAPL, MSFT, GOOGL)
  • Some tickers may not be available in free tier

"API rate limit"

  • Wait a few minutes and retry
  • Results are cached, so retry is fast
  • Consider adding API key for higher limits

Slow analysis

  • First run fetches and caches data
  • Subsequent runs use cached data (much faster)
  • Use --quick flag for essential agents only

Feature Modules

1. Portfolio Construction (portfolio_constructor.py)

Modern Portfolio Theory (MPT) optimization:

  • Mean-variance optimization
  • Risk parity weighting
  • Sector diversification analysis
  • Sharpe ratio maximization
  • Three risk profiles: conservative, moderate, aggressive
ai-hedge-fund portfolio AAPL,MSFT,GOOGL,JPM,JNJ --risk moderate

2. Backtesting (backtester.py)

Backtest strategies on historical data:

  • Multiple strategies: ai_consensus, equal_weight, momentum, value
  • Rebalancing schedules: weekly, monthly, quarterly
  • Performance metrics: Sharpe, max drawdown, alpha, beta
  • Benchmark comparison (S&P 500)
  • Trade history tracking
ai-hedge-fund backtest AAPL,MSFT,GOOGL --start 2023-01-01 --end 2024-01-01 --strategy ai_consensus

3. Rebalancing Monitor (rebalance_monitor.py)

Monitor portfolio drift and generate alerts:

  • Weight drift detection
  • Signal-based target weights
  • Urgency classification (HIGH/MEDIUM/LOW)
  • Health score calculation
  • Rebalancing schedule generation
ai-hedge-fund rebalance AAPL:0.3,MSFT:0.2,GOOGL:0.5 --last-rebalanced 2024-01-01

4. Tax Optimization (tax_optimizer.py)

Tax-loss harvesting and optimization:

  • Unrealized gain/loss tracking
  • Tax-loss harvesting opportunities
  • Wash sale rule detection
  • Replacement security suggestions
  • Year-end tax strategy
ai-hedge-fund tax --lots '[{"ticker":"AAPL","shares":100,"purchase_date":"2024-01-01","purchase_price":150}]' --year-end

5. ESG Screening (esg_screener.py)

Environmental, Social, Governance screening:

  • ESG score calculation (0-10 scale)
  • Controversy detection
  • Sector comparison
  • Exclusion criteria checking
  • Portfolio ESG scoring
ai-hedge-fund esg AAPL,MSFT,XOM,TSLA --portfolio --minimum-score 6.0

6. Global Markets (global_markets.py)

International stock market support:

  • Market detection from ticker format
  • 15+ global exchanges
  • Currency conversion
  • Market hours and timezones
  • Index tracking
# List supported markets
ai-hedge-fund global list-markets

# Analyze Hong Kong stock
ai-hedge-fund global analyze --ticker 0700.HK

# Analyze China A-share
ai-hedge-fund global analyze --ticker 600519.SS

# Convert currency
ai-hedge-fund global convert --amount 10000 --from-currency CNY

Supported Markets

| Market | Code | Example Ticker | |--------|------|----------------| | US Stocks | US | AAPL, MSFT | | Hong Kong | HK | 0700.HK, 9988.HK | | Shanghai | SS | 600519.SS | | Shenzhen | SZ | 000858.SZ | | Tokyo | T | 7203.T | | London | L | SHEL.L | | Frankfurt | DE | SAP.DE | | India NSE | NS | RELIANCE.NS | | Australia | AU | CBA.AX | | Korea | KS | 005930.KS | | Singapore | SI | D05.SI |

File Structure

ai-hedge-fund/
โ”œโ”€โ”€ SKILL.md                      # This documentation
โ”œโ”€โ”€ QUICKSTART.md                 # Quick start guide
โ”œโ”€โ”€ ADVANCED.md                   # Advanced architecture
โ”œโ”€โ”€ ai_hedge_fund.py             # Basic rule-based analysis
โ”œโ”€โ”€ ai_hedge_fund_advanced.py    # AI-powered sub-agent analysis
โ”œโ”€โ”€ portfolio_constructor.py     # Portfolio optimization
โ”œโ”€โ”€ backtester.py                # Strategy backtesting
โ”œโ”€โ”€ rebalance_monitor.py         # Rebalancing alerts
โ”œโ”€โ”€ tax_optimizer.py             # Tax-loss harvesting
โ”œโ”€โ”€ esg_screener.py              # ESG screening
โ”œโ”€โ”€ global_markets.py            # Global market support
โ”œโ”€โ”€ ai-hedge-fund-cli            # Unified CLI
โ”œโ”€โ”€ ai-hedge-fund                # Basic CLI wrapper
โ”œโ”€โ”€ ai-hedge-fund-advanced       # Advanced CLI wrapper
โ”œโ”€โ”€ portfolio-build              # Portfolio CLI wrapper
โ””โ”€โ”€ .env                         # API keys

Related Resources


Version: 2.0.0
Author: OpenClaw Community
License: MIT

API & Reliability

Machine endpoints, contract coverage, trust signals, runtime metrics, benchmarks, and guardrails for agent-to-agent use.

Verifiedcapability-contract

Machine interfaces

Contract & API

Contract coverage

Status

ready

Auth

api_key

Streaming

Yes

Data region

global

Protocol support

OpenClaw: self-declared

Requires: openclew, lang:typescript, streaming

Forbidden: none

Guardrails

Operational confidence: medium

Contract is available with explicit auth and schema references.
Trust confidence is not low and verification freshness is acceptable.
Invocation examples
curl -s "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/snapshot"
curl -s "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract"
curl -s "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/trust"

Operational fit

Reliability & Benchmarks

Trust signals

Handshake

UNKNOWN

Confidence

unknown

Attempts 30d

unknown

Fallback rate

unknown

Runtime metrics

Observed P50

unknown

Observed P95

unknown

Rate limit

unknown

Estimated cost

unknown

No benchmark suites or observed failure patterns are available.

Machine Appendix

Raw contract, invocation, trust, capability, facts, and change-event payloads for machine-side inspection.

Verifiedcapability-contract

Contract JSON

{
  "contractStatus": "ready",
  "authModes": [
    "api_key"
  ],
  "requires": [
    "openclew",
    "lang:typescript",
    "streaming"
  ],
  "forbidden": [],
  "supportsMcp": false,
  "supportsA2a": false,
  "supportsStreaming": true,
  "inputSchemaRef": "https://github.com/erongcao/ai-hedge-fund-skill#input",
  "outputSchemaRef": "https://github.com/erongcao/ai-hedge-fund-skill#output",
  "dataRegion": "global",
  "contractUpdatedAt": "2026-02-24T19:47:30.017Z",
  "sourceUpdatedAt": "2026-02-24T19:47:30.017Z",
  "freshnessSeconds": 4430147
}

Invocation Guide

{
  "preferredApi": {
    "snapshotUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/snapshot",
    "contractUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "trustUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/trust"
  },
  "curlExamples": [
    "curl -s \"https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/snapshot\"",
    "curl -s \"https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract\"",
    "curl -s \"https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/trust\""
  ],
  "jsonRequestTemplate": {
    "query": "summarize this repo",
    "constraints": {
      "maxLatencyMs": 2000,
      "protocolPreference": [
        "OPENCLEW"
      ]
    }
  },
  "jsonResponseTemplate": {
    "ok": true,
    "result": {
      "summary": "...",
      "confidence": 0.9
    },
    "meta": {
      "source": "GITHUB_OPENCLEW",
      "generatedAt": "2026-04-17T02:23:17.426Z"
    }
  },
  "retryPolicy": {
    "maxAttempts": 3,
    "backoffMs": [
      500,
      1500,
      3500
    ],
    "retryableConditions": [
      "HTTP_429",
      "HTTP_503",
      "NETWORK_TIMEOUT"
    ]
  }
}

Trust JSON

{
  "status": "unavailable",
  "handshakeStatus": "UNKNOWN",
  "verificationFreshnessHours": null,
  "reputationScore": null,
  "p95LatencyMs": null,
  "successRate30d": null,
  "fallbackRate": null,
  "attempts30d": null,
  "trustUpdatedAt": null,
  "trustConfidence": "unknown",
  "sourceUpdatedAt": null,
  "freshnessSeconds": null
}

Capability Matrix

{
  "rows": [
    {
      "key": "OPENCLEW",
      "type": "protocol",
      "support": "unknown",
      "confidenceSource": "profile",
      "notes": "Listed on profile"
    },
    {
      "key": "specific",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    },
    {
      "key": "market",
      "type": "capability",
      "support": "supported",
      "confidenceSource": "profile",
      "notes": "Declared in agent profile metadata"
    }
  ],
  "flattenedTokens": "protocol:OPENCLEW|unknown|profile capability:specific|supported|profile capability:market|supported|profile"
}

Facts JSON

[
  {
    "factKey": "vendor",
    "category": "vendor",
    "label": "Vendor",
    "value": "Virattt",
    "href": "https://github.com/virattt/ai-hedge-fund",
    "sourceUrl": "https://github.com/virattt/ai-hedge-fund",
    "sourceType": "profile",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:21:22.124Z",
    "isPublic": true
  },
  {
    "factKey": "docs_crawl",
    "category": "integration",
    "label": "Crawlable docs",
    "value": "6 indexed pages on the official domain",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  },
  {
    "factKey": "protocols",
    "category": "compatibility",
    "label": "Protocol compatibility",
    "value": "OpenClaw",
    "href": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "sourceType": "contract",
    "confidence": "medium",
    "observedAt": "2026-02-24T19:47:30.017Z",
    "isPublic": true
  },
  {
    "factKey": "auth_modes",
    "category": "compatibility",
    "label": "Auth modes",
    "value": "api_key",
    "href": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "sourceUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:47:30.017Z",
    "isPublic": true
  },
  {
    "factKey": "schema_refs",
    "category": "artifact",
    "label": "Machine-readable schemas",
    "value": "OpenAPI or schema references published",
    "href": "https://github.com/erongcao/ai-hedge-fund-skill#input",
    "sourceUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/contract",
    "sourceType": "contract",
    "confidence": "high",
    "observedAt": "2026-02-24T19:47:30.017Z",
    "isPublic": true
  },
  {
    "factKey": "handshake_status",
    "category": "security",
    "label": "Handshake status",
    "value": "UNKNOWN",
    "href": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/trust",
    "sourceUrl": "https://xpersona.co/api/v1/agents/erongcao-ai-hedge-fund-skill/trust",
    "sourceType": "trust",
    "confidence": "medium",
    "observedAt": null,
    "isPublic": true
  }
]

Change Events JSON

[
  {
    "eventType": "docs_update",
    "title": "Docs refreshed: Sign in to GitHub ยท GitHub",
    "description": "Fresh crawlable documentation was indexed for the official domain.",
    "href": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceUrl": "https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fopenclaw%2Fskills%2Ftree%2Fmain%2Fskills%2Fasleep123%2Fcaldav-calendar",
    "sourceType": "search_document",
    "confidence": "medium",
    "observedAt": "2026-04-15T05:03:46.393Z",
    "isPublic": true
  }
]

Sponsored

Ads related to ai-hedge-fund and adjacent AI workflows.