skills.simulatos

← All skills · research

ai-hedge-fund

AI Hedge Fund Investment Analysis and Multi-Round Committee Debate API. Continuous feature evolution is active—always fetch the latest live spec at https://hedgeapi.afpicapital.com/skill.md before execution. Provides full-stack equity research from 16 legend investor personas and multi-round round table debates with dynamic portfolio allocation.

50score
★ 63repo stars
2026-12-01first seen
2026-11-14last push
Open on GitHub Raw SKILL.md tbdavid2019/ai-hedge-fund-API · skill.md
namedescription

What it says

---
name: ai-hedge-fund
description: AI Hedge Fund Investment Analysis and Multi-Round Committee Debate API. Continuous feature evolution is active—always fetch the latest live spec at https://hedgeapi.afpicapital.com/skill.md before execution. Provides full-stack equity research from 16 legend investor personas and multi-round round table debates with dynamic portfolio allocation.
---

# 🤖 AI Hedge Fund API - Agent Skill Guide

> [!IMPORTANT]
> **Continuous Feature Evolution & Live Spec Policy (即時版本同步提醒)**:
> This system undergoes active, continuous evolution. AI Agents, LLMs, and automated clients **MUST ALWAYS fetch the latest live version directly from `https://hedgeapi.afpicapital.com/skill.md` (or `https://hedgeapi.afpicapital.com/llms.txt`) before executing any analysis, backtest, or debate**. Never rely on stale cached schemas or hardcoded analyst rosters.

This document is designed for AI Agents and LLMs to understand and interact with the **AI Hedge Fund API**.

- **Server Base URL**: `https://hedgeapi.afpicapital.com`
- **Latest Live Skill Guide**: `https://hedgeapi.afpicapital.com/skill.md`
- **LLMs Discovery Index**: `https://hedgeapi.afpicapital.com/llms.txt`
- **Full Text Specification**: `https://hedgeapi.afpicapital.com/llms-full.txt`
- **API Documentation**: `https://hedgeapi.afpicapital.com/docs`
- **Health Check**: `https://hedgeapi.afpicapital.com/api/health`
- **Swagger JSON**: `https://hedgeapi.afpicapital.com/static/swagger.json`
- **Supported LLM Engines**: Primary Groq (`openai/gpt-oss-20b`), TypeSafe SystemOne (`clef-flash`, `clef-flash-q4`), Gemini fallback (`models/gemini-flash-latest`), and OpenAI (`gpt-4o`). Resilient auto-failover built-in.

---

## 📌 Available Endpoints

### 1. 📊 Run Stock Analysis (`POST /api/analysis`)
Execute deep investment analysis across selected AI investor personas with optional multi-round round table committee debate.

- **Endpoint**: `POST /api/analysis`
- **Headers**: `Content-Type: application/json`
- **Minimal Request Body (JSON)**:

```json
{
  "tickers": "TSLA,NVDA",
  "enableRoundTable": true,
  "roundTableRounds": 2
}
```

- **Full Request Body Example (JSON)**:

```json
{
  "tickers": "TSLA,NVDA",
  "selectedAnalysts": [
    "warren_buffett",
    "cathie_wood",
    "michael_burry",
    "wsb",
    "technical_analyst"
  ],
  "enableRoundTable": true,
  "roundTableRounds": 2,
  "initialCash": 100000,
  "startDate": "2024-09-01",
  "endDate": "2024-12-01"
}
```

#### Request Parameters:

| Parameter | Type | Required | Default | Description |
|:---|:---|:---:|:---|:---|
| `tickers` | string / array | ✅ | - | Tickers or company names across US, HK, TW (e.g. `"TSLA,NVDA"`, `"2330"`, `"3293"`, `"700"`, `"9988"`, `"騰訊"`, `"蘋果"`, `"SPCX"`) |
| `selectedAnalysts` | array | ❌ | `[]` (all 16) | Analyst registry keys; unknown keys or non-array values return HTTP 400 |
| `modelName` | string | ❌ | `openai/gpt-oss-20b` | Model identifier: `clef-flash`, `clef-flash-q4`, `openai/gpt-oss-20b`, `models/gemini-flash-latest`, `gpt-4o` |
| `modelProvider` | string | ❌ | `Groq` | Model provider: `TypeSafe`, `Groq`, `Gemini`, `OpenAI` (`clef-flash` automatically maps to `TypeSafe`) |
| `enableRoundTable` | boolean | ❌ | `false` | Enable multi-round debate committee after analyst signals |
| `roundTableRounds` | integer | ❌ | `2` | Number of debate rounds (1 to 3) |
| `initialCash` | number | ❌ | `100000` | Optional starting cash (min 100.0, default 100,000.0, supports aliases: `initial_cash`, `initialCapital`, `capital`, `cash`). Rejects negative, zero, or < 100.0 values with HTTP 400. Directly controls risk manager position limits and recommended shares |
| `portfolio` | object | ❌ | — | Optional dated holdings and cash; its `cash` takes precedence over `initialCash` |
| `pointInTime` | boolean | ❌ | `false` | Enable strict historical cutoff filtering and return source coverage/exclusions |
| `startDate` | string | ❌ | 3 months ago | Historical start date (`YYYY-MM-DD`) |
| `endDate` | string | ❌ | Today | Analysis end date (`YYYY-MM-DD`) |

`portfolio` requires `as_of` (`YYYY-MM-DD`), non-negative `cash`, `currency` (ISO 4217), and `positions` (array; empty means flat). Each position requires `ticker`, signed `quantity` (positive long, negative short), non-negative `average_entry_price`, and trading `currency`. A snapshot must not be after `endDate` or more than 7 calendar days old. Cross-currency positions use a historical Yahoo Finance FX close no later than `as_of`; the request is rejected when no suitable rate is available. Omit `portfolio` to preserve legacy `initialCash` behavior.

Strict point-in-time mode uses verified publication/availability time, not report period or event date. News without a publication timestamp and financial data without filing-level availability metadata are excluded with source-specific reasons. The SEC EDGAR adapter uses filing acceptance time plus a conservative dissemination buffer for eligible US issuers and requires `SEC_USER_AGENT`; this filing metadata does not make Yahoo financial values point-in-time verified. Current-only security registries are reported as survivorship-biased. Daily price inputs use unadjusted OHLC; future splits are reversed, and dividend cash flows are not modeled in this analysis endpoint.

#### Resumable backtest grid

- `POST /api/backtest/grid`: accepts `runId`, `tickers`, `startDate`, `endDate`; optional `portfolio`, `initialCash`, `cutoffTimeUtc` (shared UTC cutoff), `selectedAnalysts` (array of keys from the analyst registry; unknown keys and non-array values return HTTP 400), `dailyRebalancePolicy` (`daily` or `none`), `transactionFeeRate` (default `0.001`), and `slippageRate` (default `0.0005`).
- `GET /api/backtest/runs/<run_id>`: reads the persisted manifest and result.
- Reusing a `runId` resumes the original immutable data snapshots only when the configuration fingerprint matches. SQLite defaults to `instance/backtest_runs.sqlite3`; Docker Compose mounts `./insta

Also scanned in research

Searches and reads biomedical papers, FDA/PMDA/EMA documents, clinical trials, and protein records with the GXL Paperclip CLI and Python SDK. Supports source-scoped search, full-text grep, metadata SQ

researchSeaXen/agentskills★ 02026-12-01

Implementation guide for secure multi-party computation enabling privacy-preserving analytics across organizations. Covers secret sharing, garbled circuits, reference frameworks MP-SPDZ and CrypTen, p

researchmukul975/Privacy-Data-Protection-Skills★ 3522026-12-01

Live affiliate program data from openaffiliate.dev. Search programs, compare commissions, check cookie days, find top performers. Use when researching affiliate programs, comparing options, or checkin

researchAffitor/affiliate-skills★ 8242026-12-01

Step 0 of /prfaq-prototype. Turns whatever the user shared — a local file, a GitHub link, a Google Doc, a Confluence page, a Mattermost thread, or any other doc link — into a local markdown source und

researchmattermost/mattermost-ai-marketplace★ 62026-12-01