Skip to content

"Vibe-Trading: Your Personal Trading Agent"

Initial commit

warren61834eae37ba451
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 000000000..ed87752a0
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,28 @@
+.venv/
+agent/.venv/
+__pycache__/
+*.pyc
+.pytest_cache/
+.ruff_cache/
+node_modules/
+frontend/dist/
+frontend/tsconfig.tsbuildinfo
+.env
+agent/.env
+agent/runs/
+agent/sessions/
+agent/.swarm/runs/
+agent/.ui_runtime/
+agent/.tasks/
+agent/vibe_trading.egg-info/
+.git/
+.github/
+.claude/
+.vscode/
+data/*.duckdb
+data/*.duckdb.wal
+data/.duckdb_tmp/
+data/parquet/
+data/backup/
+data/minutes/
+data/*.log
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
new file mode 100644
index 000000000..c4803f947
--- /dev/null
+++ b/.github/workflows/test.yml
@@ -0,0 +1,45 @@
+name: CI
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ timeout-minutes: 10
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-python@v5
+ with:
+ python-version: "3.11"
+ cache: pip
+
+ - name: Install dependencies
+ run: pip install -e .
+
+ - name: Syntax check
+ run: |
+ cd agent
+ python -m py_compile cli.py
+ python -m py_compile api_server.py
+ python -m py_compile mcp_server.py
+ python -m py_compile src/agent/loop.py
+ python -m py_compile src/tools/__init__.py
+ python -m py_compile backtest/runner.py
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: "20"
+ cache: npm
+ cache-dependency-path: frontend/package-lock.json
+
+ - name: Frontend build
+ run: |
+ cd frontend
+ npm ci
+ npm run build
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..e26333bcc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+๏ปฟ.venv/
+agent/.venv/
+__pycache__/
+.pytest_cache/
+*.pyc
+
+.env
+agent/.env
+
+.claude/*
+!.claude/hooks.json
+CLAUDE.md
+.vscode/
+learn-claude-code-main/
+agent/sessions/
+agent/runs/
+agent/.ui_runtime/
+agent/.tasks/
+agent/tests/*_result.json
+.ruff_cache/
+frontend/dist/
+frontend/tsconfig.tsbuildinfo
+
+# DuckDB data cache
+data/*.duckdb
+data/*.duckdb.wal
+data/.duckdb_tmp/
+data/parquet/
+data/backup/
+data/minutes/
+data/overnight*.log
+data/*.log
+data/test_write.txt
+agent/.pytest_tmp/
+agent/tests/e2e_swarm_results.json
+agent/vibe_trading.egg-info/
+agent/vibe_trading_ai.egg-info/
+dist/
+build/
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..299b93db9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,47 @@
+# ============================================================================
+# Stage 1: Build frontend
+# ============================================================================
+FROM node:20-slim AS frontend-build
+
+WORKDIR /app/frontend
+COPY frontend/package.json frontend/package-lock.json ./
+RUN npm ci --ignore-scripts
+COPY frontend/ ./
+RUN npm run build
+
+# ============================================================================
+# Stage 2: Python runtime
+# ============================================================================
+FROM python:3.11-slim AS runtime
+
+WORKDIR /app
+
+# System deps
+RUN apt-get update && apt-get install -y --no-install-recommends \
+ build-essential \
+ && rm -rf /var/lib/apt/lists/*
+
+# Python deps (install before copying code for layer caching)
+COPY agent/requirements.txt agent/requirements.txt
+RUN pip install --no-cache-dir -r agent/requirements.txt
+
+# Copy project
+COPY pyproject.toml LICENSE README.md ./
+COPY agent/ agent/
+COPY data/ data/
+
+# Copy built frontend
+COPY --from=frontend-build /app/frontend/dist frontend/dist
+
+# Install CLI entrypoint
+RUN pip install --no-cache-dir -e .
+
+# Default port
+EXPOSE 8899
+
+# Health check
+HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
+ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8899/health')" || exit 1
+
+# Run API server (serves frontend/dist as static files)
+CMD ["vibe-trading", "serve", "--host", "0.0.0.0", "--port", "8899"]
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000..08701c0ee
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Vibe-Trading Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..df2792996
--- /dev/null
+++ b/README.md
@@ -0,0 +1,568 @@
+<p align="center">
+ <img src="assets/icon.png" width="120" alt="Vibe-Trading Logo"/>
+</p>
+
+<h1 align="center">Vibe-Trading: Your Personal Trading Agent</h1>
+
+<p align="center">
+ <b>One Command to Empower Your Agent with Comprehensive Trading Capabilities</b>
+</p>
+
+<p align="center">
+ <img src="https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat&logo=python&logoColor=white" alt="Python">
+ <img src="https://img.shields.io/badge/Backend-FastAPI-009688?style=flat" alt="FastAPI">
+ <img src="https://img.shields.io/badge/Frontend-React%2019-61DAFB?style=flat&logo=react&logoColor=white" alt="React">
+ <a href="https://pypi.org/project/vibe-trading-ai/"><img src="https://img.shields.io/pypi/v/vibe-trading-ai?style=flat&logo=pypi&logoColor=white" alt="PyPI"></a>
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow?style=flat" alt="License"></a>
+ <img src="https://img.shields.io/badge/Research_Only-No_Live_Trading-red?style=flat" alt="Mode">
+ <br>
+ <img src="https://img.shields.io/badge/Skills-64-orange" alt="Skills">
+ <img src="https://img.shields.io/badge/Swarm_Presets-29-7C3AED" alt="Swarm">
+ <img src="https://img.shields.io/badge/Tools-20-0F766E" alt="Tools">
+ <img src="https://img.shields.io/badge/Markets-3-2563EB" alt="Markets">
+ <br>
+ <a href="https://github.com/HKUDS/.github/blob/main/profile/README.md"><img src="https://img.shields.io/badge/Feishu-Group-E9DBFC?style=flat-square&logo=feishu&logoColor=white" alt="Feishu"></a>
+ <a href="https://github.com/HKUDS/.github/blob/main/profile/README.md"><img src="https://img.shields.io/badge/WeChat-Group-C5EAB4?style=flat-square&logo=wechat&logoColor=white" alt="WeChat"></a>
+ <a href="https://discord.gg/2vDYc2w5"><img src="https://img.shields.io/badge/Discord-Join-7289DA?style=flat-square&logo=discord&logoColor=white" alt="Discord"></a>
+</p>
+
+<p align="center">
+ <a href="#-key-features">Features</a> &nbsp;&middot;&nbsp;
+ <a href="#-demo">Demo</a> &nbsp;&middot;&nbsp;
+ <a href="#-what-is-vibe-trading">What Is It</a> &nbsp;&middot;&nbsp;
+ <a href="#-get-started">Get Started</a> &nbsp;&middot;&nbsp;
+ <a href="#-cli-reference">CLI</a> &nbsp;&middot;&nbsp;
+ <a href="#-api-server">API</a> &nbsp;&middot;&nbsp;
+ <a href="#-mcp-plugin">MCP</a> &nbsp;&middot;&nbsp;
+ <a href="#-project-structure">Structure</a>
+</p>
+
+<p align="center">
+ <a href="#-get-started"><img src="assets/pip-install.svg" height="45" alt="pip install vibe-trading-ai"></a>
+</p>
+
+---
+
+## ๐Ÿ’ก What Is Vibe-Trading?
+
+Vibe-Trading is an AI-powered multi-agent finance workspace that turns natural language requests into executable trading strategies, research insights, and portfolio analysis across global markets.
+
+### Key Capabilities:
+โ€ข **Strategy Generation** โ€” Automatically writes trading code from your ideas<br>
+โ€ข **Smart Data Access** โ€” Pulls market data from multiple sources seamlessly<br>
+โ€ข **Performance Testing** โ€” Tests your strategies against historical market data<br>
+โ€ข **Expert Teams** โ€” Deploys specialized AI agents for complex research tasks<br>
+โ€ข **Live Updates** โ€” Watch the entire analysis process in real-time
+
+---
+
+## โœจ Key Features
+
+<table width="100%">
+ <tr>
+ <td align="center" width="25%" valign="top">
+ <img src="assets/scene-research.png" height="150" alt="Research"/><br>
+ <h3>๐Ÿ” DeepResearch for Trading</h3>
+ <img src="https://img.shields.io/badge/64_Skills-FF6B6B?style=for-the-badge&logo=bookstack&logoColor=white" alt="Skills" /><br><br>
+ <div align="left" style="font-size: 4px;">
+ โ€ข Multi-domain analysis coverage across markets<br>
+ โ€ข Auto strategy and signal generation<br>
+ โ€ข Macro economic research and insights<br>
+ โ€ข Natural-language task routing via chat
+ </div>
+ </td>
+ <td align="center" width="25%" valign="top">
+ <img src="assets/scene-swarm.png" height="150" alt="Swarm"/><br>
+ <h3>๐Ÿ Swarm Intelligence</h3>
+ <img src="https://img.shields.io/badge/29_Trading_Teams-4ECDC4?style=for-the-badge&logo=hive&logoColor=white" alt="Swarm" /><br><br>
+ <div align="left">
+ โ€ข 29 out-of-the-box trading team presets<br>
+ โ€ข DAG-based multi-agent orchestration<br>
+ โ€ข Real-time decision streaming dashboard<br>
+ โ€ข Custom team building through YAML
+ </div>
+ </td>
+ <td align="center" width="25%" valign="top">
+ <img src="assets/scene-backtest.png" height="150" alt="Backtest"/><br>
+ <h3>๐Ÿ“Š Cross-Market Backtest</h3>
+ <img src="https://img.shields.io/badge/3_Markets-FFD93D?style=for-the-badge&logo=bitcoin&logoColor=black" alt="Backtest" /><br><br>
+ <div align="left">
+ โ€ข A-shares, HK/US equities & crypto<br>
+ โ€ข 7 flexible intervals from 1 min to 1 day<br>
+ โ€ข Daily & options portfolio engines<br>
+ โ€ข 15+ performance metrics & 4 optimizers
+ </div>
+ </td>
+ <td align="center" width="25%" valign="top">
+ <img src="assets/scene-quant.png" height="150" alt="Quant"/><br>
+ <h3>๐Ÿงฎ Quant Analysis Toolkit</h3>
+ <img src="https://img.shields.io/badge/Quant_Tools-C77DFF?style=for-the-badge&logo=wolfram&logoColor=white" alt="Quant" /><br><br>
+ <div align="left">
+ โ€ข Factor IC/IR analysis & quantile backtesting<br>
+ โ€ข Black-Scholes pricing & full Greeks calculation<br>
+ โ€ข Technical pattern recognition & detection<br>
+ โ€ข Portfolio optimization via MVO/Risk Parity/BL
+ </div>
+ </td>
+ </tr>
+</table>
+
+## 64 Skills across 8 Core Finance Domains
+
+- ๐Ÿ“Š 64 specialized finance skills across 8 core domains
+- ๐ŸŒ Complete coverage from traditional markets to crypto & DeFi
+- ๐Ÿ”ฌ Comprehensive capabilities spanning technical analysis to quantitative research
+
+| Area | Examples |
+|------|----------|
+| Technical Analysis | `technical-basic`, `candlestick`, `ichimoku`, `harmonic`, `elliott-wave`, `smc` |
+| Quant Research | `strategy-generate`, `multi-factor`, `pair-trading`, `factor-research`, `ml-strategy` |
+| Fundamentals | `valuation-model`, `financial-statement`, `earnings-forecast`, `credit-analysis` |
+| HK/US Equities | `edgar-sec-filings`, `earnings-revision`, `us-etf-flow`, `hk-connect-flow`, `adr-hshare` |
+| Crypto Desk | `perp-funding-basis`, `liquidation-heatmap`, `stablecoin-flow`, `token-unlock-treasury`, `defi-yield` |
+| Macro | `macro-analysis`, `global-macro`, `asset-allocation`, `commodity-analysis`, `sector-rotation` |
+| Derivatives | `options-strategy`, `options-advanced`, `options-payoff`, `crypto-derivatives`, `hedging-strategy` |
+| Alt Data | `social-media-intelligence`, `sentiment-analysis`, `behavioral-finance`, `report-generate` |
+
+## 29 Agent Swarm Team Presets
+
+- ๐Ÿข 29 ready-to-use agent teams
+- โšก Pre-configured finance workflows
+- ๐ŸŽฏ Investment, trading & risk management presets
+
+| Preset | Workflow |
+|--------|----------|
+| `investment_committee` | Bull/bear debate โ†’ risk review โ†’ PM final call |
+| `global_equities_desk` | A-share + HK/US + crypto researcher โ†’ global strategist |
+| `crypto_trading_desk` | Funding/basis + liquidation + flow โ†’ risk manager |
+| `earnings_research_desk` | Fundamental + revision + options โ†’ earnings strategist |
+| `macro_rates_fx_desk` | Rates + FX + commodity โ†’ macro PM |
+| `quant_strategy_desk` | Screening + factor research โ†’ backtest โ†’ risk audit |
+| `technical_analysis_panel` | Classic TA + Ichimoku + harmonic + Elliott + SMC โ†’ consensus |
+| `risk_committee` | Drawdown + tail risk + regime review โ†’ sign-off |
+| `global_allocation_committee` | A-shares + crypto + HK/US โ†’ cross-market allocation |
+
+<sub>Plus 20+ additional specialist presets โ€” run vibe-trading --swarm-presets to explore all.
+
+</sub>
+
+### ๐ŸŽฌ Demo
+
+<div align="center">
+<table>
+<tr>
+<td width="50%">
+
+https://github.com/user-attachments/assets/3d5a9653-06cd-4903-b487-dc7ce4d8d90e
+
+</td>
+<td width="50%">
+
+https://github.com/user-attachments/assets/3f8c1301-778c-439d-8992-1ad0ac524660
+
+</td>
+</tr>
+<tr>
+<td colspan="2" align="center"><sub>โ˜๏ธ Natural-language backtest & multi-agent swarm debate โ€” Web UI + CLI</sub></td>
+</tr>
+</table>
+</div>
+
+---
+
+## ๐Ÿš€ Quick Started
+
+### One-line install (PyPI)
+
+```bash
+pip install vibe-trading-ai
+```
+
+> **Package name vs commands:** The PyPI package is `vibe-trading-ai`. Once installed, you get three commands:
+>
+> | Command | Purpose |
+> |---------|---------|
+> | `vibe-trading` | Interactive CLI / TUI |
+> | `vibe-trading serve` | Launch FastAPI web server |
+> | `vibe-trading-mcp` | Start MCP server (for Claude Desktop, OpenClaw, Cursor, etc.) |
+
+```bash
+vibe-trading init # interactive .env setup
+vibe-trading # launch CLI
+vibe-trading serve --port 8899 # launch web UI
+vibe-trading-mcp # start MCP server (stdio)
+```
+
+### Or choose a path
+
+| Path | Best for | Time |
+|------|----------|------|
+| **A. Docker** | Try it now, zero local setup | 2 min |
+| **B. Local install** | Development, full CLI access | 5 min |
+| **C. MCP plugin** | Plug into your existing agent | 3 min |
+| **D. ClawHub** | One command, no cloning | 1 min |
+
+### Prerequisites
+
+- An **OpenAI-compatible API key** (OpenRouter, DeepSeek, etc.) โ€” the only hard requirement
+- **Python 3.11+** for Path B
+- **Docker** for Path A
+
+> **Tip:** yfinance (HK/US equities) and OKX (crypto) are free and require no API key. You only need a Tushare token for A-share data.
+
+### Path A: Docker (zero setup)
+
+```bash
+git clone https://github.com/HKUDS/Vibe-Trading.git
+cd Vibe-Trading
+cp agent/.env.example agent/.env
+# Edit agent/.env โ€” set OPENAI_API_KEY (required)
+docker compose up --build
+```
+
+Open `http://localhost:8899`. Backend + frontend in one container.
+
+### Path B: Local install
+
+```bash
+git clone https://github.com/HKUDS/Vibe-Trading.git
+cd Vibe-Trading
+python -m venv .venv
+
+# Activate
+source .venv/bin/activate # Linux / macOS
+# .venv\Scripts\Activate.ps1 # Windows PowerShell
+
+pip install -e .
+cp agent/.env.example agent/.env # Edit โ€” set OPENAI_API_KEY
+vibe-trading # Launch interactive TUI
+```
+
+<details>
+<summary><b>Start web UI (optional)</b></summary>
+
+```bash
+# Terminal 1: API server
+vibe-trading serve --port 8899
+
+# Terminal 2: Frontend dev server
+cd frontend && npm install && npm run dev
+```
+
+Open `http://localhost:5899`. The frontend proxies API calls to `localhost:8899`.
+
+**Production mode (single server):**
+
+```bash
+cd frontend && npm run build && cd ..
+vibe-trading serve --port 8899 # FastAPI serves dist/ as static files
+```
+
+</details>
+
+### Path C: MCP plugin
+
+See [MCP Plugin](#-mcp-plugin) section below.
+
+### Path D: ClawHub (one command)
+
+```bash
+npx clawhub@latest install vibe-trading --force
+```
+
+The skill + MCP config is downloaded into your agent's skills directory. See [ClawHub install](#-mcp-plugin) for details.
+
+---
+
+## ๐Ÿง  Environment Variables
+
+Edit `agent/.env`:
+
+| Variable | Required | Description |
+|----------|:--------:|-------------|
+| `OPENAI_API_KEY` | Yes | OpenAI-compatible API key (OpenRouter, DeepSeek, etc.) |
+| `OPENAI_BASE_URL` | Usually | API gateway URL (default: `https://openrouter.ai/api/v1`) |
+| `LANGCHAIN_PROVIDER` | Yes | LLM provider selector (e.g. `openrouter`) |
+| `LANGCHAIN_MODEL_NAME` | Yes | Model name (e.g. `deepseek/deepseek-v3.2`) |
+| `TUSHARE_TOKEN` | A-shares only | Tushare Pro token for A-share data |
+| `TIMEOUT_SECONDS` | No | Agent timeout, default 2400s |
+
+**Free data (no key needed):** HK/US equities via yfinance, crypto via OKX public API.
+
+---
+
+## ๐Ÿ–ฅ CLI Reference
+
+```bash
+vibe-trading # interactive TUI
+vibe-trading run -p "..." # single run
+vibe-trading serve # API server
+```
+
+<details>
+<summary><b>Slash commands inside TUI</b></summary>
+
+| Command | Description |
+|---------|-------------|
+| `/help` | Show all commands |
+| `/skills` | List all 64 finance skills |
+| `/swarm` | List 29 swarm team presets |
+| `/swarm run <preset> [vars_json]` | Run a swarm team with live streaming |
+| `/swarm list` | Swarm run history |
+| `/swarm show <run_id>` | Swarm run details |
+| `/swarm cancel <run_id>` | Cancel a running swarm |
+| `/list` | Recent runs |
+| `/show <run_id>` | Run details + metrics |
+| `/code <run_id>` | Generated strategy code |
+| `/trace <run_id>` | Full execution replay |
+| `/continue <run_id> <prompt>` | Continue a run with new instructions |
+| `/sessions` | List chat sessions |
+| `/settings` | Show runtime config |
+| `/clear` | Clear screen |
+| `/quit` | Exit |
+
+</details>
+
+<details>
+<summary><b>Single run & flags</b></summary>
+
+```bash
+vibe-trading run -p "Backtest BTC-USDT MACD strategy, last 30 days"
+vibe-trading run -p "Analyze AAPL momentum" --json
+vibe-trading run -f strategy.txt
+echo "Backtest 000001.SZ RSI" | vibe-trading run
+```
+
+```bash
+vibe-trading -p "your prompt"
+vibe-trading --skills
+vibe-trading --swarm-presets
+vibe-trading --swarm-run investment_committee '{"topic":"BTC outlook"}'
+vibe-trading --list
+vibe-trading --show <run_id>
+vibe-trading --code <run_id>
+vibe-trading --trace <run_id>
+vibe-trading --continue <run_id> "refine the strategy"
+vibe-trading --upload report.pdf
+```
+
+</details>
+
+---
+
+## ๐ŸŒ API Server
+
+```bash
+vibe-trading serve --port 8899
+```
+
+| Method | Endpoint | Description |
+|--------|----------|-------------|
+| `GET` | `/runs` | List runs |
+| `GET` | `/runs/{run_id}` | Run details |
+| `POST` | `/sessions` | Create session |
+| `POST` | `/sessions/{id}/messages` | Send message |
+| `GET` | `/sessions/{id}/events` | SSE event stream |
+| `POST` | `/upload` | Upload PDF/file |
+| `GET` | `/swarm/presets` | List swarm presets |
+| `POST` | `/swarm/runs` | Start swarm run |
+| `GET` | `/swarm/runs/{id}/events` | Swarm SSE stream |
+
+Interactive docs: `http://localhost:8899/docs`
+
+---
+
+## ๐Ÿ”Œ MCP Plugin
+
+Vibe-Trading exposes 16 MCP tools for any MCP-compatible client. Runs as a stdio subprocess โ€” no server setup needed. **15 of 16 tools work with zero API keys** (HK/US/crypto). Only `run_swarm` needs an LLM key.
+
+<details>
+<summary><b>Claude Desktop</b></summary>
+
+Add to `claude_desktop_config.json`:
+
+```json
+{
+ "mcpServers": {
+ "vibe-trading": {
+ "command": "vibe-trading-mcp"
+ }
+ }
+}
+```
+
+</details>
+
+<details>
+<summary><b>OpenClaw</b></summary>
+
+Add to `~/.openclaw/config.yaml`:
+
+```yaml
+skills:
+ - name: vibe-trading
+ command: vibe-trading-mcp
+```
+
+</details>
+
+<details>
+<summary><b>Cursor / Windsurf / other MCP clients</b></summary>
+
+```bash
+vibe-trading-mcp # stdio (default)
+vibe-trading-mcp --transport sse # SSE for web clients
+```
+
+</details>
+
+**MCP tools exposed (16):** `list_skills`, `load_skill`, `backtest`, `factor_analysis`, `analyze_options`, `pattern_recognition`, `get_market_data`, `read_url`, `read_document`, `read_file`, `write_file`, `list_swarm_presets`, `run_swarm`, `get_swarm_status`, `get_run_result`, `list_runs`.
+
+<details>
+<summary><b>Install from ClawHub (one command)</b></summary>
+
+```bash
+npx clawhub@latest install vibe-trading --force
+```
+
+> `--force` is required because the skill references external APIs, which triggers VirusTotal's automated scan. The code is fully open-source and safe to inspect.
+
+This downloads the skill + MCP config into your agent's skills directory. No cloning needed.
+
+Browse on ClawHub: [clawhub.ai/skills/vibe-trading](https://clawhub.ai/skills/vibe-trading)
+
+</details>
+
+<details>
+<summary><b>OpenSpace โ€” self-evolving skills</b></summary>
+
+All 64 finance skills are published on [open-space.cloud](https://open-space.cloud) and evolve autonomously through OpenSpace's self-evolution engine.
+
+To use with OpenSpace, add both MCP servers to your agent config:
+
+```json
+{
+ "mcpServers": {
+ "openspace": {
+ "command": "openspace-mcp",
+ "toolTimeout": 600,
+ "env": {
+ "OPENSPACE_HOST_SKILL_DIRS": "/path/to/vibe-trading/agent/src/skills",
+ "OPENSPACE_WORKSPACE": "/path/to/OpenSpace"
+ }
+ },
+ "vibe-trading": {
+ "command": "vibe-trading-mcp"
+ }
+ }
+}
+```
+
+OpenSpace will auto-discover all 64 skills, enabling auto-fix, auto-improve, and community sharing. Search for Vibe-Trading skills via `search_skills("finance backtest")` in any OpenSpace-connected agent.
+
+</details>
+
+---
+
+## ๐Ÿ“ Project Structure
+
+<details>
+<summary><b>Click to expand</b></summary>
+
+```
+Vibe-Trading/
+โ”œโ”€โ”€ agent/ # Backend (Python)
+โ”‚ โ”œโ”€โ”€ cli.py # CLI entrypoint โ€” interactive TUI + subcommands
+โ”‚ โ”œโ”€โ”€ api_server.py # FastAPI server โ€” runs, sessions, upload, swarm, SSE
+โ”‚ โ”œโ”€โ”€ mcp_server.py # MCP server โ€” 16 tools for OpenClaw / Claude Desktop
+โ”‚ โ”‚
+โ”‚ โ”œโ”€โ”€ src/
+โ”‚ โ”‚ โ”œโ”€โ”€ agent/ # ReAct agent core
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ loop.py # main reasoning loop
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ skills.py # skill loader (64 SKILL.md files)
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ tools.py # tool orchestration
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ context.py # system prompt builder
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ memory.py # run memory / artifact store
+โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ trace.py # execution trace writer
+โ”‚ โ”‚ โ”‚
+โ”‚ โ”‚ โ”œโ”€โ”€ tools/ # 20 agent tools
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ backtest_tool.py # run backtests
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ factor_analysis_tool.py
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ options_pricing_tool.py
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ pattern_tool.py # chart pattern detection
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ doc_reader_tool.py # PDF reader (OCR fallback)
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ web_reader_tool.py # web page reader (Jina)
+โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ swarm_tool.py # launch swarm teams
+โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ ... # file I/O, bash, tasks, etc.
+โ”‚ โ”‚ โ”‚
+โ”‚ โ”‚ โ”œโ”€โ”€ skills/ # 64 finance skill definitions (SKILL.md each)
+โ”‚ โ”‚ โ”œโ”€โ”€ swarm/ # Swarm DAG execution engine
+โ”‚ โ”‚ โ”œโ”€โ”€ session/ # Multi-turn chat session management
+โ”‚ โ”‚ โ””โ”€โ”€ providers/ # LLM provider abstraction
+โ”‚ โ”‚
+โ”‚ โ”œโ”€โ”€ backtest/ # Backtest engines
+โ”‚ โ”‚ โ”œโ”€โ”€ engines/ # daily_portfolio + options_portfolio
+โ”‚ โ”‚ โ”œโ”€โ”€ loaders/ # tushare, okx, yfinance
+โ”‚ โ”‚ โ””โ”€โ”€ optimizers/ # MVO, equal vol, max div, risk parity
+โ”‚ โ”‚
+โ”‚ โ””โ”€โ”€ config/swarm/ # 29 swarm preset YAML definitions
+โ”‚
+โ”œโ”€โ”€ frontend/ # Web UI (React 19 + Vite + TypeScript)
+โ”‚ โ””โ”€โ”€ src/
+โ”‚ โ”œโ”€โ”€ pages/ # Home, Agent, RunDetail, Compare
+โ”‚ โ”œโ”€โ”€ components/ # chat, charts, layout
+โ”‚ โ””โ”€โ”€ stores/ # Zustand state management
+โ”‚
+โ”œโ”€โ”€ Dockerfile # Multi-stage build
+โ”œโ”€โ”€ docker-compose.yml # One-command deploy
+โ”œโ”€โ”€ pyproject.toml # Package config + CLI entrypoint
+โ””โ”€โ”€ LICENSE # MIT
+```
+
+</details>
+
+---
+
+## ๐Ÿ› Ecosystem
+
+Vibe-Trading is part of the **[HKUDS](https://github.com/HKUDS)** agent ecosystem:
+
+<table>
+ <tr>
+ <td align="center" width="25%">
+ <a href="https://github.com/HKUDS/ClawTeam"><b>ClawTeam</b></a><br>
+ <sub>Agent Swarm Intelligence</sub>
+ </td>
+ <td align="center" width="25%">
+ <a href="https://github.com/HKUDS/nanobot"><b>NanoBot</b></a><br>
+ <sub>Ultra-Lightweight Personal AI Assistant</sub>
+ </td>
+ <td align="center" width="25%">
+ <a href="https://github.com/HKUDS/CLI-Anything"><b>CLI-Anything</b></a><br>
+ <sub>Making All Software Agent-Native</sub>
+ </td>
+ <td align="center" width="25%">
+ <a href="https://github.com/HKUDS/OpenSpace"><b>OpenSpace</b></a><br>
+ <sub>Self-Evolving AI Agent Skills</sub>
+ </td>
+ </tr>
+</table>
+
+---
+
+## Disclaimer
+
+Vibe-Trading is for research, simulation, and backtesting only. It is not investment advice and it does not execute live trades. Past performance does not guarantee future results.
+
+## License
+
+MIT License โ€” see [LICENSE](LICENSE)
+
+---
+
+<p align="center">
+ Thanks for visiting <b>Vibe-Trading</b> โœจ
+</p>
+<p align="center">
+ <img src="https://visitor-badge.laobi.icu/badge?page_id=HKUDS.Vibe-Trading&style=flat" alt="visitors"/>
+</p>
diff --git a/agent/.editorconfig b/agent/.editorconfig
new file mode 100644
index 000000000..f999431de
--- /dev/null
+++ b/agent/.editorconfig
@@ -0,0 +1,7 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+trim_trailing_whitespace = true
diff --git a/agent/.env.example b/agent/.env.example
new file mode 100644
index 000000000..1fc0556e9
--- /dev/null
+++ b/agent/.env.example
@@ -0,0 +1,22 @@
+# ============================================================================
+# LLM Provider
+# ============================================================================
+LANGCHAIN_PROVIDER=openrouter
+OPENAI_API_KEY=sk-or-v1-your-key-here
+OPENAI_BASE_URL=https://openrouter.ai/api/v1
+LANGCHAIN_MODEL_NAME=deepseek/deepseek-v3.2
+LANGCHAIN_TEMPERATURE=0.0
+
+# ============================================================================
+# Data Providers
+# ============================================================================
+# A-shares: Tushare Pro (requires token, https://tushare.pro)
+TUSHARE_TOKEN=your-tushare-token
+# HK/US equities: yfinance (free, no key needed)
+# Crypto: OKX public API (free, no key needed)
+
+# ============================================================================
+# Runtime
+# ============================================================================
+TIMEOUT_SECONDS=2400
+MAX_RETRIES=5
diff --git a/agent/.gitignore b/agent/.gitignore
new file mode 100644
index 000000000..3971acbd2
--- /dev/null
+++ b/agent/.gitignore
@@ -0,0 +1,9 @@
+.venv/
+.ui_runtime/
+.vscode/
+__pycache__/
+*.pyc
+
+runs/
+
+.env
diff --git a/agent/SKILL.md b/agent/SKILL.md
new file mode 100644
index 000000000..f81bec7a0
--- /dev/null
+++ b/agent/SKILL.md
@@ -0,0 +1,145 @@
+---
+name: vibe-trading
+description: Professional finance research toolkit โ€” backtesting, factor analysis, options pricing, 64 finance skills, and 29 multi-agent swarm teams across 3 markets (A-shares, crypto, HK/US equities).
+dependencies:
+ python: ">=3.11"
+ pip:
+ - vibe-trading-ai
+env:
+ - name: TUSHARE_TOKEN
+ description: "Tushare API token for China A-share data (optional โ€” HK/US/crypto work without any key)"
+ required: false
+ - name: OPENAI_API_KEY
+ description: "OpenAI-compatible API key โ€” only needed for run_swarm (multi-agent teams). All other 15 tools work without it."
+ required: false
+ - name: LANGCHAIN_MODEL_NAME
+ description: "LLM model name for run_swarm (e.g. deepseek/deepseek-v3.2). Only needed if using run_swarm."
+ required: false
+mcp:
+ command: vibe-trading-mcp
+ args: []
+---
+
+# Vibe-Trading
+
+Professional finance research toolkit with AI-powered backtesting, multi-agent teams, and 64 specialized skills.
+
+## Setup
+
+```bash
+pip install vibe-trading-ai
+```
+
+> **Package name vs commands:** The PyPI package is `vibe-trading-ai`. Once installed, you get:
+>
+> | Command | Purpose |
+> |---------|---------|
+> | `vibe-trading` | Interactive CLI / TUI |
+> | `vibe-trading serve` | Launch FastAPI web server |
+> | `vibe-trading-mcp` | Start MCP server (for Claude Desktop, OpenClaw, Cursor, etc.) |
+
+Add to your agent's MCP config:
+
+```json
+{
+ "mcpServers": {
+ "vibe-trading": {
+ "command": "vibe-trading-mcp"
+ }
+ }
+}
+```
+
+### API Key Requirements
+
+**15 of 16 MCP tools work with zero API keys.** After `pip install`, backtesting, market data, factor analysis, options pricing, chart patterns, and all 64 skills are ready to use for HK/US equities and crypto.
+
+| Feature | Key needed | When |
+|---------|-----------|------|
+| HK/US equities & crypto | None | Always free (yfinance + OKX) |
+| China A-share data | `TUSHARE_TOKEN` | Only if you query A-share symbols |
+| Multi-agent swarm (`run_swarm`) | `OPENAI_API_KEY` + `LANGCHAIN_MODEL_NAME` | Swarm spawns internal LLM workers |
+
+## What You Can Do
+
+### Backtesting
+Create and run quantitative strategies across 3 markets:
+- **HK/US equities** via yfinance (free, no API key)
+- **Cryptocurrency** via OKX (free, no API key)
+- **China A-shares** via Tushare (requires TUSHARE_TOKEN)
+
+Example workflow:
+1. Use `list_skills()` to discover strategy patterns
+2. Use `load_skill("strategy-generate")` for the strategy creation guide
+3. Use `write_file()` to create `config.json` and `code/signal_engine.py`
+4. Use `backtest()` to run and get metrics (Sharpe, return, drawdown, etc.)
+
+### Multi-Agent Swarm Teams
+29 pre-built agent teams for complex research:
+- **Investment Committee**: bull/bear debate โ†’ risk review โ†’ PM decision
+- **Global Equities Desk**: A-share + HK/US + crypto โ†’ global strategist
+- **Crypto Trading Desk**: funding/basis + liquidation + flow โ†’ risk manager
+- **Earnings Research Desk**: fundamentals + revisions + options โ†’ earnings strategist
+- **Macro/Rates/FX Desk**: rates + FX + commodities โ†’ macro PM
+- **Quant Strategy Desk**: screening โ†’ factor research โ†’ backtest โ†’ risk audit
+- **Risk Committee**: drawdown, tail risk, regime analysis
+- And 22 more specialized teams
+
+Use `list_swarm_presets()` to see all teams, then `run_swarm()` to execute.
+
+### Finance Skills (64)
+Comprehensive knowledge base covering:
+- Technical analysis (candlestick, Elliott wave, Ichimoku, SMC)
+- Quantitative methods (factor research, ML strategy, pair trading)
+- Risk management (VaR/CVaR, stress testing, hedging)
+- Options (Black-Scholes, Greeks, multi-leg strategies)
+- HK/US equities (SEC filings, earnings revisions, ETF flows, ADR/H-share arbitrage)
+- Crypto trading desk (funding rates, liquidation heatmaps, stablecoin flows, token unlocks, DeFi yields)
+- Macro analysis, credit research, sector rotation, and more
+
+Use `load_skill(name)` to access full methodology docs with code templates.
+
+## Available MCP Tools (16)
+
+| Tool | Description | API Key |
+|------|-------------|---------|
+| `list_skills` | List all 64 finance skills | None |
+| `load_skill` | Load full skill documentation | None |
+| `backtest` | Run vectorized backtest engine | None* |
+| `factor_analysis` | IC/IR analysis + layered backtest | None* |
+| `analyze_options` | Black-Scholes price + Greeks | None |
+| `pattern_recognition` | Detect chart patterns (H&S, double top, etc.) | None |
+| `get_market_data` | Fetch OHLCV data across 3 markets (auto-detect source) | None* |
+| `read_url` | Fetch web page as Markdown | None |
+| `read_document` | Extract text from PDF (with OCR) | None |
+| `write_file` | Write files (config, strategy code) | None |
+| `read_file` | Read file contents | None |
+| `list_swarm_presets` | List multi-agent team presets | None |
+| `run_swarm` | Execute a multi-agent research team | LLM key |
+| `get_swarm_status` | Poll swarm run status without blocking | None |
+| `get_run_result` | Get final report and task summaries | None |
+| `list_runs` | List recent swarm runs with metadata | None |
+
+<sub>*A-share symbols require `TUSHARE_TOKEN`. HK/US/crypto are free.</sub>
+
+## Quick Start
+
+```bash
+pip install vibe-trading-ai
+```
+
+That's it โ€” no API keys needed for HK/US/crypto markets. Start using `backtest`, `get_market_data`, `analyze_options`, and all 64 skills immediately.
+
+## Examples
+
+**Backtest a MACD strategy on Apple:**
+> Backtest AAPL with MACD crossover strategy (fast=12, slow=26, signal=9) for 2024
+
+**Run an investment committee review:**
+> Use run_swarm with investment_committee preset to evaluate NVDA. Variables: target=NVDA.US, market=US
+
+**Factor analysis on CSI 300:**
+> Run factor_analysis on CSI 300 stocks using pe_ttm factor from 2023 to 2024
+
+**Options analysis:**
+> Use analyze_options: spot=100, strike=105, 90 days, vol=25%, rate=3%
diff --git a/agent/api_server.py b/agent/api_server.py
new file mode 100644
index 000000000..3e64fd42e
--- /dev/null
+++ b/agent/api_server.py
@@ -0,0 +1,993 @@
+#!/usr/bin/env python3
+"""Vibe-Trading API Server - RESTful API for finance research and backtesting.
+
+V5: ReAct Agent + async /run + CORS env + SSE tool events.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import json
+import os
+import signal
+import time
+import csv
+import uuid
+from datetime import datetime
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+from fastapi import BackgroundTasks, Depends, FastAPI, HTTPException, Query, Request, Security, UploadFile, status
+from fastapi.responses import StreamingResponse
+from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer
+from pydantic import BaseModel, Field
+from fastapi.middleware.cors import CORSMiddleware
+from rich.console import Console
+
+from src.ui_services import build_run_analysis, load_run_context
+
+# UTF-8 on Windows
+import sys as _sys
+for _s in ("stdout", "stderr"):
+ _r = getattr(getattr(_sys, _s, None), "reconfigure", None)
+ if callable(_r):
+ _r(encoding="utf-8", errors="replace")
+
+RUNS_DIR = Path(__file__).resolve().parent / "runs"
+SESSIONS_DIR = Path(__file__).resolve().parent / "sessions"
+UPLOADS_DIR = Path(__file__).resolve().parent / "uploads"
+
+MAX_UPLOAD_SIZE = 50 * 1024 * 1024 # 50 MB
+
+# Rich console for colored logs
+console = Console()
+
+
+# ============================================================================
+# Pydantic Models
+# ============================================================================
+
+class Artifact(BaseModel):
+ """Artifact file metadata."""
+ name: str = Field(..., description="File name")
+ path: str = Field(..., description="File path")
+ type: str = Field(..., description="File type: csv, json, txt, etc.")
+ size: int = Field(..., description="Size in bytes")
+ exists: bool = Field(..., description="Whether the file exists")
+
+
+class BacktestMetrics(BaseModel):
+ """Backtest summary metrics."""
+ model_config = {"extra": "allow"}
+
+ final_value: float = Field(..., description="Ending portfolio value")
+ total_return: float = Field(..., description="Total return")
+ annual_return: float = Field(..., description="Annualized return")
+ max_drawdown: float = Field(..., description="Max drawdown")
+ sharpe: float = Field(..., description="Sharpe ratio")
+ win_rate: float = Field(..., description="Win rate")
+ trade_count: int = Field(..., description="Number of trades")
+
+
+
+class RAGSelection(BaseModel):
+ """RAG routing result."""
+ selected_api: str = Field(..., description="Selected API code")
+ selected_name: str = Field(..., description="Selected API name")
+ selected_score: float = Field(..., description="Match score")
+
+
+class RunInfo(BaseModel):
+ """Compact run row for list views."""
+ run_id: str
+ status: str
+ created_at: str
+ prompt: Optional[str] = None
+ total_return: Optional[float] = None
+ sharpe: Optional[float] = None
+ codes: List[str] = Field(default_factory=list)
+ start_date: Optional[str] = None
+ end_date: Optional[str] = None
+
+
+class RunResponse(BaseModel):
+ """API response payload for a single run."""
+
+ status: str = Field(..., description="Run status: success, failed, aborted")
+ run_id: str = Field(..., description="Run identifier")
+ elapsed_seconds: float = Field(..., description="Execution time in seconds")
+ reason: Optional[str] = Field(None, description="Failure reason when available")
+
+ planner_output: Optional[Dict[str, Any]] = Field(None, description="Planner output")
+ strategy_spec: Optional[Dict[str, Any]] = Field(None, description="Strategy specification")
+ rag_selection: Optional[RAGSelection] = Field(None, description="Selected RAG metadata")
+
+ metrics: Optional[BacktestMetrics] = Field(None, description="Backtest metrics")
+ artifacts: List[Artifact] = Field(default_factory=list, description="Run artifacts")
+
+ equity_curve: Optional[List[Dict[str, Any]]] = Field(None, description="Equity preview")
+ trade_log: Optional[List[Dict[str, Any]]] = Field(None, description="Trade preview")
+
+ artifacts_equity_csv: Optional[List[Dict[str, Any]]] = Field(None, description="Full equity rows")
+ artifacts_metrics_csv: Optional[List[Dict[str, Any]]] = Field(None, description="Full metrics rows")
+ artifacts_trades_csv: Optional[List[Dict[str, Any]]] = Field(None, description="Full trade rows")
+
+ run_directory: str = Field(..., description="Run directory path")
+ run_stage: Optional[str] = Field(None, description="UI-facing run stage")
+ run_context: Optional[Dict[str, Any]] = Field(None, description="Normalized request context")
+ price_series: Optional[Dict[str, List[Dict[str, Any]]]] = Field(None, description="Grouped OHLC series")
+ indicator_series: Optional[Dict[str, Dict[str, List[Dict[str, Any]]]]] = Field(
+ None,
+ description="Grouped indicator overlays",
+ )
+ trade_markers: Optional[List[Dict[str, Any]]] = Field(None, description="Trade markers for charts")
+ run_logs: Optional[List[Dict[str, Any]]] = Field(None, description="Structured stdout/stderr lines")
+
+
+class HealthResponse(BaseModel):
+ """Health check payload."""
+ status: str = Field(..., description="Service status")
+ service: str = Field(..., description="Service name")
+ timestamp: str = Field(..., description="Server timestamp")
+
+
+# ---- V4 Session Models ----
+
+class CreateSessionRequest(BaseModel):
+ """Create session request body."""
+ title: str = Field("", description="Session title")
+ config: Optional[Dict[str, Any]] = Field(None, description="Session config")
+
+
+class SessionResponse(BaseModel):
+ """Session record."""
+ session_id: str
+ title: str
+ status: str
+ created_at: str
+ updated_at: str
+ last_attempt_id: Optional[str] = None
+
+
+class SendMessageRequest(BaseModel):
+ """Send chat message: natural-language strategy description."""
+ content: str = Field(..., description="Natural language strategy description", min_length=1, max_length=5000)
+
+
+class MessageResponse(BaseModel):
+ """Stored chat message."""
+ message_id: str
+ session_id: str
+ role: str
+ content: str
+ created_at: str
+ linked_attempt_id: Optional[str] = None
+ metadata: Optional[Dict[str, Any]] = None
+
+
+
+# ============================================================================
+# FastAPI Application
+# ============================================================================
+
+app = FastAPI(
+ title="Vibe-Trading API",
+ description="Vibe-Trading API: natural-language finance research, backtesting, and swarm workflows",
+ version="5.0.0",
+ docs_url="/docs",
+ redoc_url="/redoc"
+)
+
+# CORS: override with CORS_ORIGINS (comma-separated)
+_CORS_ORIGINS = os.getenv(
+ "CORS_ORIGINS",
+ "http://localhost:3000,http://localhost:5173,http://localhost:8000,"
+ "http://127.0.0.1:3000,http://127.0.0.1:5173,http://127.0.0.1:8000",
+).split(",")
+
+app.add_middleware(
+ CORSMiddleware,
+ allow_origins=_CORS_ORIGINS,
+ allow_credentials=True,
+ allow_methods=["*"],
+ allow_headers=["*"],
+)
+
+
+# ============================================================================
+# API Key Authentication
+# ============================================================================
+
+_security = HTTPBearer(auto_error=False)
+_API_KEY = os.getenv("API_AUTH_KEY")
+
+
+async def require_auth(
+ cred: HTTPAuthorizationCredentials = Security(_security),
+) -> None:
+ """Validate Bearer token against API_AUTH_KEY environment variable.
+
+ If API_AUTH_KEY is not set, authentication is skipped (dev mode).
+ Only write endpoints (POST/PUT/DELETE/PATCH) use this dependency.
+
+ Args:
+ cred: HTTP Bearer credentials extracted from the Authorization header.
+
+ Raises:
+ HTTPException: 401 when API_AUTH_KEY is set but the token is missing or wrong.
+ """
+ if not _API_KEY:
+ return
+ if not cred or cred.credentials != _API_KEY:
+ raise HTTPException(status_code=401, detail="Invalid or missing API key")
+
+
+# ============================================================================
+# Workflow Factory
+# ============================================================================
+
+# ============================================================================
+# Helper Functions
+# ============================================================================
+
+def _load_json_file(path: Path) -> Optional[Dict[str, Any]]:
+ """Load JSON from disk if present."""
+ try:
+ if path.exists():
+ return json.loads(path.read_text(encoding="utf-8"))
+ except Exception:
+ pass
+ return None
+
+
+def _load_csv_to_dict(path: Path, limit: Optional[int] = None) -> List[Dict[str, Any]]:
+ """Load CSV rows into a list of dictionaries."""
+ try:
+ if not path.exists():
+ return []
+ with path.open("r", encoding="utf-8", newline="") as handle:
+ rows = [dict(row) for row in csv.DictReader(handle)]
+ if limit is not None:
+ rows = rows[:limit]
+ return rows
+ except Exception:
+ return []
+
+
+
+def _build_response_from_run_dir(run_dir: Path, elapsed: float, *, include_analysis: bool = False) -> RunResponse:
+ """Build a run response from a persisted run directory."""
+ run_id = run_dir.name
+
+ response = RunResponse(
+ status="unknown",
+ run_id=run_id,
+ elapsed_seconds=elapsed,
+ run_directory=str(run_dir),
+ )
+
+ state_data = _load_json_file(run_dir / "state.json")
+ if state_data:
+ state_status = str(state_data.get("status") or "").lower()
+ if state_status == "success":
+ response.status = "success"
+ elif state_status == "failed":
+ response.status = "failed"
+ response.reason = state_data.get("reason", "")
+ else:
+ response.status = state_status or "unknown"
+ else:
+ response.status = "unknown"
+
+ planner_path = run_dir / "planner_output.json"
+ response.planner_output = _load_json_file(planner_path)
+
+ design_path = run_dir / "design_spec.json"
+ response.strategy_spec = _load_json_file(design_path)
+
+ rag_path = run_dir / "rag_metadata.json"
+ rag_data = _load_json_file(rag_path)
+ if rag_data:
+ response.rag_selection = RAGSelection(
+ selected_api=rag_data.get("selected_api") or rag_data.get("api_code", ""),
+ selected_name=rag_data.get("selected_name") or rag_data.get("api_name", ""),
+ selected_score=float(rag_data.get("selected_score") or rag_data.get("score", 0.0)),
+ )
+
+ metrics_path = run_dir / "artifacts" / "metrics.csv"
+ if metrics_path.exists():
+ metrics_dict_list = _load_csv_to_dict(metrics_path, limit=1)
+ if metrics_dict_list:
+ row = metrics_dict_list[0]
+ try:
+ # Pass ALL CSV columns to BacktestMetrics (extra="allow")
+ parsed: dict = {}
+ for k, v in row.items():
+ if not k or not v:
+ continue
+ try:
+ parsed[k] = int(float(v)) if k == "trade_count" or k == "max_consecutive_loss" else float(v)
+ except (ValueError, TypeError):
+ continue
+ if "final_value" in parsed:
+ response.metrics = BacktestMetrics(**parsed)
+ except (ValueError, TypeError):
+ pass
+
+
+ artifacts_dir = run_dir / "artifacts"
+ if artifacts_dir.exists():
+ for file_path in artifacts_dir.iterdir():
+ if file_path.is_file():
+ file_type = file_path.suffix.lstrip(".")
+ response.artifacts.append(
+ Artifact(
+ name=file_path.name,
+ path=str(file_path),
+ type=file_type if file_type else "unknown",
+ size=file_path.stat().st_size,
+ exists=True,
+ )
+ )
+
+ equity_path = run_dir / "artifacts" / "equity.csv"
+ if equity_path.exists():
+ response.artifacts_equity_csv = _load_csv_to_dict(equity_path)
+
+ metrics_csv_path = run_dir / "artifacts" / "metrics.csv"
+ if metrics_csv_path.exists():
+ response.artifacts_metrics_csv = _load_csv_to_dict(metrics_csv_path)
+
+ trades_path = run_dir / "artifacts" / "trades.csv"
+ if trades_path.exists():
+ response.artifacts_trades_csv = _load_csv_to_dict(trades_path)
+
+ if response.artifacts_equity_csv:
+ filtered_equity = []
+ for row in response.artifacts_equity_csv[:1000]:
+ filtered_row: Dict[str, Any] = {}
+ if "timestamp" in row:
+ filtered_row["time"] = row["timestamp"]
+ if "equity" in row:
+ filtered_row["equity"] = row["equity"]
+ if "drawdown" in row:
+ filtered_row["drawdown"] = row["drawdown"]
+ filtered_equity.append(filtered_row)
+ response.equity_curve = filtered_equity
+
+ if response.artifacts_trades_csv:
+ response.trade_log = response.artifacts_trades_csv[:500]
+
+ if include_analysis:
+ analysis = build_run_analysis(run_dir)
+ response.run_stage = analysis.get("run_stage")
+ response.run_context = analysis.get("run_context")
+ response.price_series = analysis.get("price_series")
+ response.indicator_series = analysis.get("indicator_series")
+ response.trade_markers = analysis.get("trade_markers")
+ response.run_logs = analysis.get("run_logs")
+
+ return response
+
+
+# ============================================================================
+# API Endpoints
+# ============================================================================
+
[email protected]("/runs/{run_id}/code")
+async def get_run_code(run_id: str):
+ """Return strategy source files for a run.
+
+ Args:
+ run_id: Run identifier.
+
+ Returns:
+ Map filename -> source text.
+ """
+ run_dir = RUNS_DIR / run_id / "code"
+ if not run_dir.exists():
+ raise HTTPException(status_code=404, detail=f"Code directory for run {run_id} not found")
+ result = {}
+ for f in ["signal_engine.py"]:
+ p = run_dir / f
+ if p.exists():
+ result[f] = p.read_text(encoding="utf-8")
+ return result
+
+
[email protected]("/runs/{run_id}", response_model=RunResponse)
+async def get_run_result(run_id: str):
+ """Fetch full details for a historical run by ``run_id``."""
+ run_dir = RUNS_DIR / run_id
+
+ if not run_dir.exists():
+ raise HTTPException(
+ status_code=status.HTTP_404_NOT_FOUND,
+ detail=f"Run {run_id} not found"
+ )
+
+ response = _build_response_from_run_dir(run_dir, elapsed=0.0, include_analysis=True)
+
+ return response
+
+
[email protected]("/runs", response_model=List[RunInfo])
+async def list_runs(limit: int = 20):
+ """List recent runs with summary fields."""
+ limit = min(max(1, limit), 100)
+ runs_dir = RUNS_DIR
+
+ if not runs_dir.exists():
+ return []
+
+ run_dirs = sorted(
+ [d for d in runs_dir.iterdir() if d.is_dir()],
+ key=lambda x: x.name,
+ reverse=True
+ )
+
+ results = []
+ for d in run_dirs[:limit]:
+ run_id = d.name
+
+ # Status from state.json or artifacts
+ status_val = "unknown"
+ state_file = _load_json_file(d / "state.json")
+ if state_file:
+ status_val = str(state_file.get("status") or "unknown").lower()
+ elif (d / "artifacts" / "equity.csv").exists():
+ status_val = "success"
+ elif (d / "review_report.json").exists():
+ status_val = "success"
+
+ # Parse created_at from run_id (YYYYMMDD_HHMMSS or run_YYYYMMDD_HHMMSS)
+ created_at = "Unknown"
+ if run_id.startswith("run_"):
+ parts = run_id.split('_')
+ if len(parts) >= 3:
+ d_str, t_str = parts[1], parts[2]
+ if len(d_str) == 8 and len(t_str) == 6:
+ created_at = f"{d_str[:4]}-{d_str[4:6]}-{d_str[6:8]} {t_str[:2]}:{t_str[2:4]}:{t_str[4:6]}"
+ elif "_" in run_id:
+ parts = run_id.split('_')
+ if len(parts) >= 2:
+ d_str, t_str = parts[0], parts[1]
+ if len(d_str) == 8 and len(t_str) == 6:
+ created_at = f"{d_str[:4]}-{d_str[4:6]}-{d_str[6:8]} {t_str[:2]}:{t_str[2:4]}:{t_str[4:6]}"
+
+ if created_at == "Unknown":
+ mtime = datetime.fromtimestamp(d.stat().st_mtime)
+ created_at = mtime.strftime("%Y-%m-%d %H:%M:%S")
+
+ prompt = None
+ req_file = d / "req.json"
+ planner_file = d / "planner_output.json"
+ if req_file.exists():
+ try:
+ req_data = json.loads(req_file.read_text(encoding="utf-8"))
+ prompt = req_data.get("prompt")
+ except: pass
+
+ if not prompt and planner_file.exists():
+ try:
+ planner_data = json.loads(planner_file.read_text(encoding="utf-8"))
+ prompt = planner_data.get("user_goal") or planner_data.get("goal")
+ except: pass
+
+ if not prompt:
+ prompt_file = d / "user_prompt.txt"
+ if prompt_file.exists():
+ prompt = prompt_file.read_text(encoding="utf-8").strip()
+
+ total_return = None
+ sharpe = None
+ metrics_file = d / "artifacts" / "metrics.csv"
+ if metrics_file.exists():
+ try:
+ import csv
+ with open(metrics_file, 'r', encoding='utf-8') as f:
+ reader = csv.DictReader(f)
+ for row in reader:
+ total_return = float(row.get('total_return', 0) or 0)
+ sharpe = float(row.get('sharpe', 0) or 0)
+ break
+ except:
+ pass
+
+ run_context = load_run_context(d)
+ results.append(RunInfo(
+ run_id=run_id,
+ status=status_val,
+ created_at=created_at,
+ prompt=prompt or "Manual Analysis",
+ total_return=total_return,
+ sharpe=sharpe,
+ codes=run_context.get("codes") or [],
+ start_date=run_context.get("start_date"),
+ end_date=run_context.get("end_date"),
+ ))
+
+ return results
+
+
[email protected]("/health", response_model=HealthResponse)
+async def health_check():
+ """Liveness probe."""
+ return HealthResponse(
+ status="healthy",
+ service="Vibe-Trading API",
+ timestamp=datetime.now().isoformat()
+ )
+
+
+def _terminate_current_process() -> None:
+ """Stop the current API process after the response has been sent."""
+ time.sleep(0.25)
+ os.kill(os.getpid(), signal.SIGTERM)
+
+
[email protected]("/system/shutdown", dependencies=[Depends(require_auth)])
+async def shutdown_local_api(background_tasks: BackgroundTasks, request: Request):
+ """Shut down the local API server when requested from loopback clients."""
+ client_host = request.client.host if request.client else ""
+ if client_host not in {"127.0.0.1", "::1", "localhost"}:
+ raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="Local access only")
+
+ background_tasks.add_task(_terminate_current_process)
+ return {
+ "status": "shutting-down",
+ "service": "Vibe-Trading API",
+ "timestamp": datetime.now().isoformat(),
+ }
+
+
+async def list_skills():
+ """List registered skills (name and description)."""
+ from src.agent.skills import SkillsLoader
+
+ loader = SkillsLoader()
+ return [
+ {
+ "name": s.name,
+ "description": s.description,
+ }
+ for s in loader.skills
+ ]
+
+
+async def api_info():
+ """Service metadata."""
+ return {
+ "service": "Vibe-Trading API",
+ "version": "5.0.0",
+ "docs": "/docs",
+ "health": "/health",
+ }
+
+
+# ============================================================================
+# Session API
+# ============================================================================
+
+_session_service = None
+
+
+def _get_session_service():
+ """Lazy-init session service when ENABLE_SESSION_RUNTIME=true."""
+ global _session_service
+ if _session_service is not None:
+ return _session_service
+
+ if os.getenv("ENABLE_SESSION_RUNTIME", "true").lower() != "true":
+ return None
+
+ import asyncio
+ from src.session.store import SessionStore
+ from src.session.events import EventBus
+ from src.session.service import SessionService
+
+ store = SessionStore(base_dir=SESSIONS_DIR)
+ event_bus = EventBus()
+
+ try:
+ loop = asyncio.get_event_loop()
+ event_bus.set_loop(loop)
+ except RuntimeError:
+ pass
+
+ _session_service = SessionService(
+ store=store,
+ event_bus=event_bus,
+ runs_dir=RUNS_DIR,
+ )
+ return _session_service
+
+
[email protected]("/sessions", response_model=SessionResponse, status_code=status.HTTP_201_CREATED, dependencies=[Depends(require_auth)])
+async def create_session(request: CreateSessionRequest):
+ """Create a chat session."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ session = svc.create_session(title=request.title, config=request.config)
+ return SessionResponse(
+ session_id=session.session_id,
+ title=session.title,
+ status=session.status.value,
+ created_at=session.created_at,
+ updated_at=session.updated_at,
+ last_attempt_id=session.last_attempt_id,
+ )
+
+
[email protected]("/sessions", response_model=List[SessionResponse])
+async def list_sessions(limit: int = Query(50, ge=1, le=200)):
+ """List sessions."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ sessions = svc.list_sessions(limit=limit)
+ return [
+ SessionResponse(
+ session_id=s.session_id,
+ title=s.title,
+ status=s.status.value,
+ created_at=s.created_at,
+ updated_at=s.updated_at,
+ last_attempt_id=s.last_attempt_id,
+ )
+ for s in sessions
+ ]
+
+
[email protected]("/sessions/{session_id}", response_model=SessionResponse)
+async def get_session(session_id: str):
+ """Get one session by id."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ session = svc.get_session(session_id)
+ if not session:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+ return SessionResponse(
+ session_id=session.session_id,
+ title=session.title,
+ status=session.status.value,
+ created_at=session.created_at,
+ updated_at=session.updated_at,
+ last_attempt_id=session.last_attempt_id,
+ )
+
+
[email protected]("/sessions/{session_id}", dependencies=[Depends(require_auth)])
+async def delete_session(session_id: str):
+ """Delete a session."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ deleted = svc.delete_session(session_id)
+ if not deleted:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+ return {"status": "deleted", "session_id": session_id}
+
+
+class UpdateSessionRequest(BaseModel):
+ """Session update fields."""
+ title: Optional[str] = None
+
+
[email protected]("/sessions/{session_id}", dependencies=[Depends(require_auth)])
+async def update_session(session_id: str, req: UpdateSessionRequest):
+ """Update session fields (e.g. title)."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ session = svc.store.get_session(session_id)
+ if not session:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+ if req.title is not None:
+ session.title = req.title
+ from datetime import datetime
+ session.updated_at = datetime.now().isoformat()
+ svc.store.update_session(session)
+ return {"status": "updated", "session_id": session_id}
+
+
[email protected]("/sessions/{session_id}/messages", dependencies=[Depends(require_auth)])
+async def send_message(session_id: str, request: SendMessageRequest):
+ """Send a user message and start the agent loop (natural language strategy)."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ try:
+ result = await svc.send_message(session_id=session_id, content=request.content)
+ return result
+ except ValueError as exc:
+ raise HTTPException(status_code=404, detail=str(exc))
+
+
[email protected]("/sessions/{session_id}/cancel", dependencies=[Depends(require_auth)])
+async def cancel_session(session_id: str):
+ """Cancel the in-flight agent loop for this session."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ cancelled = svc.cancel_current(session_id)
+ if not cancelled:
+ return {"status": "no_active_loop"}
+ return {"status": "cancelled"}
+
+
[email protected]("/sessions/{session_id}/messages", response_model=List[MessageResponse])
+async def get_messages(session_id: str, limit: int = Query(100, ge=1, le=1000)):
+ """List messages for a session."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ messages = svc.get_messages(session_id, limit=limit)
+ return [
+ MessageResponse(
+ message_id=m.message_id,
+ session_id=m.session_id,
+ role=m.role,
+ content=m.content,
+ created_at=m.created_at,
+ linked_attempt_id=m.linked_attempt_id,
+ metadata=m.metadata if m.metadata else None,
+ )
+ for m in messages
+ ]
+
+
[email protected]("/sessions/{session_id}/events")
+async def session_events(
+ session_id: str,
+ request: Request,
+ last_event_id: Optional[str] = Query(None, alias="Last-Event-ID"),
+):
+ """SSE stream for agent events."""
+ svc = _get_session_service()
+ if not svc:
+ raise HTTPException(status_code=501, detail="Session runtime not enabled")
+ session = svc.get_session(session_id)
+ if not session:
+ raise HTTPException(status_code=404, detail=f"Session {session_id} not found")
+
+ header_id = request.headers.get("Last-Event-ID")
+ event_id = header_id or last_event_id
+
+ async def event_generator():
+ async for event in svc.event_bus.subscribe(session_id, last_event_id=event_id):
+ if await request.is_disconnected():
+ break
+ yield event.to_sse()
+
+ return StreamingResponse(
+ event_generator(),
+ media_type="text/event-stream",
+ headers={
+ "Cache-Control": "no-cache",
+ "Connection": "keep-alive",
+ "X-Accel-Buffering": "no",
+ },
+ )
+
+
+# ============================================================================
+# File Upload
+# ============================================================================
+
[email protected]("/upload", dependencies=[Depends(require_auth)])
+async def upload_file(file: UploadFile):
+ """Upload a PDF; stored under uploads/ with a UUID name (max 50MB)."""
+ if not file.filename or not file.filename.lower().endswith(".pdf"):
+ raise HTTPException(status_code=400, detail="Only PDF files are allowed")
+
+ content = await file.read()
+ if len(content) > MAX_UPLOAD_SIZE:
+ raise HTTPException(
+ status_code=413,
+ detail=f"File too large (limit {MAX_UPLOAD_SIZE // (1024 * 1024)} MB)",
+ )
+
+ UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
+
+ safe_name = f"{uuid.uuid4().hex}.pdf"
+ dest = UPLOADS_DIR / safe_name
+ dest.write_bytes(content)
+
+ return {
+ "status": "ok",
+ "file_path": str(dest.resolve()),
+ "filename": file.filename,
+ }
+
+
+# ============================================================================
+# Swarm API
+# ============================================================================
+
+_swarm_runtime = None
+
+
+def _get_swarm_runtime():
+ """Lazy-init SwarmRuntime singleton."""
+ global _swarm_runtime
+ if _swarm_runtime is not None:
+ return _swarm_runtime
+ from src.swarm.store import SwarmStore
+ from src.swarm.runtime import SwarmRuntime
+ swarm_dir = Path(__file__).resolve().parent / ".swarm" / "runs"
+ store = SwarmStore(base_dir=swarm_dir)
+ _swarm_runtime = SwarmRuntime(store=store)
+ return _swarm_runtime
+
+
[email protected]("/swarm/presets")
+async def list_swarm_presets():
+ """List Swarm YAML presets."""
+ from src.swarm.presets import list_presets
+ return list_presets()
+
+
[email protected]("/swarm/runs", dependencies=[Depends(require_auth)])
+async def create_swarm_run(request: dict):
+ """Start a swarm run: body must include preset_name and user_vars."""
+ runtime = _get_swarm_runtime()
+ preset_name = request.get("preset_name", "")
+ user_vars = request.get("user_vars", {})
+ try:
+ run = runtime.start_run(preset_name, user_vars)
+ return {"id": run.id, "status": run.status.value, "preset_name": run.preset_name}
+ except FileNotFoundError as e:
+ raise HTTPException(status_code=404, detail=str(e))
+ except ValueError as e:
+ raise HTTPException(status_code=400, detail=str(e))
+
+
[email protected]("/swarm/runs")
+async def list_swarm_runs(limit: int = Query(20, ge=1, le=100)):
+ """List swarm runs (newest first)."""
+ runtime = _get_swarm_runtime()
+ runs = runtime._store.list_runs(limit=limit)
+ return [
+ {
+ "id": r.id,
+ "preset_name": r.preset_name,
+ "status": r.status.value,
+ "created_at": r.created_at,
+ "task_count": len(r.tasks),
+ "completed_count": sum(1 for t in r.tasks if t.status.value == "completed"),
+ }
+ for r in runs
+ ]
+
+
[email protected]("/swarm/runs/{run_id}")
+async def get_swarm_run(run_id: str):
+ """Swarm run detail including task statuses."""
+ from src.swarm.task_store import TaskStore
+
+ runtime = _get_swarm_runtime()
+ run = runtime._store.load_run(run_id)
+ if not run:
+ raise HTTPException(status_code=404, detail=f"Run {run_id} not found")
+
+ # Merge real-time task statuses from task_store (updated during execution)
+ run_dir = runtime._store.run_dir(run_id)
+ tasks_dir = run_dir / "tasks"
+ if tasks_dir.exists():
+ task_store = TaskStore(run_dir)
+ live_tasks = task_store.load_all()
+ if live_tasks:
+ run.tasks = live_tasks
+
+ return {
+ "id": run.id,
+ "preset_name": run.preset_name,
+ "status": run.status.value,
+ "user_vars": run.user_vars,
+ "agents": [a.model_dump() for a in run.agents],
+ "tasks": [t.model_dump() for t in run.tasks],
+ "created_at": run.created_at,
+ "completed_at": run.completed_at,
+ "final_report": run.final_report,
+ }
+
+
[email protected]("/swarm/runs/{run_id}/events")
+async def swarm_run_events(run_id: str, request: Request, last_index: int = Query(0, ge=0)):
+ """SSE stream for a swarm run."""
+ import asyncio
+ runtime = _get_swarm_runtime()
+
+ async def event_stream():
+ idx = last_index
+ while True:
+ if await request.is_disconnected():
+ break
+ events = runtime._store.read_events(run_id, after_index=idx)
+ for evt in events:
+ idx += 1
+ yield f"id: {idx}\nevent: {evt.type}\ndata: {json.dumps(evt.model_dump(), ensure_ascii=False)}\n\n"
+ run = runtime._store.load_run(run_id)
+ if run and run.status.value in ("completed", "failed", "cancelled"):
+ yield f"event: done\ndata: {{\"status\": \"{run.status.value}\"}}\n\n"
+ break
+ await asyncio.sleep(2)
+
+ return StreamingResponse(event_stream(), media_type="text/event-stream")
+
+
[email protected]("/swarm/runs/{run_id}/cancel", dependencies=[Depends(require_auth)])
+async def cancel_swarm_run(run_id: str):
+ """Cancel an active swarm run."""
+ runtime = _get_swarm_runtime()
+ ok = runtime.cancel_run(run_id)
+ if not ok:
+ raise HTTPException(status_code=404, detail=f"No active run {run_id}")
+ return {"status": "cancelled"}
+
+
+# ============================================================================
+# Main Entry Point
+# ============================================================================
+
+def serve_main(argv: list[str] | None = None) -> int:
+ """Start the API server from CLI-style arguments."""
+ import argparse
+ import subprocess
+ import uvicorn
+ from fastapi.staticfiles import StaticFiles
+
+ parser = argparse.ArgumentParser(description="Vibe-Trading Server")
+ parser.add_argument("--port", type=int, default=8000, help="Listen port (default 8000)")
+ parser.add_argument("--host", default="0.0.0.0", help="Bind address")
+ parser.add_argument("--dev", action="store_true", help="Dev mode: spawn Vite on :5173")
+ try:
+ args = parser.parse_args(argv)
+ except SystemExit as exc:
+ return int(exc.code) if isinstance(exc.code, int) else 2
+
+ frontend_dist = Path(__file__).resolve().parent.parent / "frontend" / "dist"
+ frontend_root = Path(__file__).resolve().parent.parent / "frontend"
+
+ vite_proc = None
+ if args.dev and frontend_root.exists():
+ print("[dev] Starting Vite dev server on :5173 ...")
+ vite_proc = subprocess.Popen(
+ ["npx", "vite", "--host", "0.0.0.0"],
+ cwd=str(frontend_root),
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
+ )
+ print(f"[dev] Vite PID={vite_proc.pid}")
+ print("[dev] Frontend: http://localhost:5173")
+ print(f"[dev] API: http://localhost:{args.port}")
+ elif frontend_dist.exists():
+ if not any(route.path == "/" for route in app.routes):
+ app.mount("/", StaticFiles(directory=str(frontend_dist), html=True), name="frontend")
+ print(f"[prod] Frontend served from {frontend_dist}")
+ else:
+ print(f"[warn] No frontend build found at {frontend_dist}")
+ print("[warn] Run: cd frontend && npm run build")
+
+ print("=" * 50)
+ print(" Vibe-Trading Server")
+ print(f" http://127.0.0.1:{args.port}")
+ print("=" * 50)
+
+ try:
+ uvicorn.run(app, host=args.host, port=args.port, log_level="info")
+ finally:
+ if vite_proc:
+ vite_proc.terminate()
+ print("[dev] Vite stopped")
+ return 0
+
+
+if __name__ == "__main__":
+ raise SystemExit(serve_main())
+
diff --git a/agent/backtest/__init__.py b/agent/backtest/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/agent/backtest/engines/__init__.py b/agent/backtest/engines/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/agent/backtest/engines/daily_portfolio.py b/agent/backtest/engines/daily_portfolio.py
new file mode 100644
index 000000000..82174446f
--- /dev/null
+++ b/agent/backtest/engines/daily_portfolio.py
@@ -0,0 +1,461 @@
+"""Portfolio-level vectorised backtest engine.
+
+Supports arbitrary bar intervals (1m/5m/15m/30m/1H/4H/1D).
+Signal lag: bar-T signal executes at bar T+1 (close-to-close return approx).
+Position normalisation: sum(abs(weights)) <= 1.0, no leverage ever.
+Commission: deducted as percentage of turnover.
+Artifacts: equity.csv, metrics.csv, trades.csv, positions.csv, ohlcv_{code}.csv.
+"""
+
+from pathlib import Path
+from typing import Any, Callable, Dict, List, Optional
+
+import numpy as np
+import pandas as pd
+
+
+# โ”€โ”€โ”€ Annualisation factor mapping (auto-inferred from source and interval) โ”€โ”€โ”€
+
+_TRADING_DAYS = {"tushare": 252, "yfinance": 252, "okx": 365}
+_BARS_PER_DAY = {
+ "1m": {"tushare": 240, "okx": 1440, "yfinance": 390},
+ "5m": {"tushare": 48, "okx": 288, "yfinance": 78},
+ "15m": {"tushare": 16, "okx": 96, "yfinance": 26},
+ "30m": {"tushare": 8, "okx": 48, "yfinance": 13},
+ "1H": {"tushare": 4, "okx": 24, "yfinance": 7},
+ "4H": {"tushare": 1, "okx": 6, "yfinance": 2},
+ "1D": {"tushare": 1, "okx": 1, "yfinance": 1},
+}
+
+
+def _calc_bars_per_year(interval: str = "1D", source: str = "tushare") -> int:
+ """Calculate the number of bars per year for annualisation.
+
+ Args:
+ interval: Bar interval (e.g. 1m, 1H, 1D).
+ source: Data source (determines trading days and bars per day).
+
+ Returns:
+ Number of bars per year, used for annualised return and Sharpe ratio.
+ """
+ trading_days = _TRADING_DAYS.get(source, 252)
+ bars_per_day = _BARS_PER_DAY.get(interval, {}).get(source, 1)
+ return trading_days * bars_per_day
+
+
+def _align(
+ data_map: Dict[str, pd.DataFrame],
+ signal_map: Dict[str, pd.Series],
+ codes: List[str],
+ optimizer: Optional[Callable] = None,
+) -> tuple:
+ """Build aligned date index, close matrix, position matrix, and return matrix.
+
+ For multi-market mixes, takes the union of all trading dates and forward-fills gaps.
+ Applies signal shift(1), optional optimizer weighting, and normalisation (sum|w|<=1).
+
+ Args:
+ data_map: code -> OHLCV DataFrame.
+ signal_map: code -> signal Series.
+ codes: List of valid instrument codes.
+ optimizer: Optional weight optimisation function (ret_df, pos_df, date_idx) -> pos_df.
+
+ Returns:
+ (dates, close_df, positions_df, returns_df)
+ """
+ all_dates = set()
+ for c in codes:
+ all_dates.update(data_map[c].index)
+ dates = pd.DatetimeIndex(sorted(all_dates))
+
+ close = pd.DataFrame(index=dates, columns=codes, dtype=float)
+ for c in codes:
+ close[c] = data_map[c]["close"].reindex(dates)
+ close = close.ffill().bfill()
+
+ pos = pd.DataFrame(0.0, index=dates, columns=codes)
+ for c in codes:
+ raw = signal_map[c].reindex(dates).fillna(0.0).clip(-1.0, 1.0)
+ pos[c] = raw.shift(1).fillna(0.0)
+
+ ret = close.pct_change().fillna(0.0)
+
+ # optimizer weighting (before normalisation)
+ if optimizer is not None:
+ pos = optimizer(ret, pos, dates)
+
+ scale = pos.abs().sum(axis=1).clip(lower=1.0)
+ pos = pos.div(scale, axis=0)
+
+ return dates, close, pos, ret
+
+
+def _benchmark_equity(
+ ret: pd.DataFrame,
+ cash: float,
+) -> tuple:
+ """Calculate equal-weight buy-and-hold benchmark.
+
+ Args:
+ ret: Return matrix.
+ cash: Initial capital.
+
+ Returns:
+ (bench_ret Series, bench_equity Series)
+ """
+ n_assets = ret.shape[1]
+ bench_ret = ret.mean(axis=1) if n_assets > 0 else pd.Series(0.0, index=ret.index)
+ bench_equity = cash * (1 + bench_ret).cumprod()
+ return bench_ret, bench_equity
+
+
+def _portfolio_equity(
+ pos: pd.DataFrame,
+ ret: pd.DataFrame,
+ commission: float,
+ cash: float,
+) -> tuple:
+ """Portfolio returns -> equity curve -> drawdown.
+
+ Args:
+ pos: Position matrix.
+ ret: Return matrix.
+ commission: Commission rate.
+ cash: Initial capital.
+
+ Returns:
+ (port_ret Series, equity Series, drawdown Series)
+ """
+ port_ret = (pos * ret).sum(axis=1)
+ turnover = pos.diff().abs().sum(axis=1).fillna(0.0)
+ port_ret = port_ret - turnover * commission
+ equity = cash * (1 + port_ret).cumprod()
+ peak = equity.cummax()
+ dd = (equity - peak) / peak.replace(0, 1)
+ return port_ret, equity, dd
+
+
+def _log_trades(
+ pos: pd.DataFrame,
+ close: pd.DataFrame,
+ codes: List[str],
+) -> List[Dict[str, Any]]:
+ """Generate per-trade records from position diffs, including per-trade P&L.
+
+ Args:
+ pos: Position matrix.
+ close: Close price matrix.
+ codes: List of instrument codes.
+
+ Returns:
+ Trade list sorted by timestamp.
+ """
+ diff = pos.diff()
+ diff.iloc[0] = pos.iloc[0]
+
+ # Track entry cost and entry date per instrument
+ cost: Dict[str, float] = {}
+ hold: Dict[str, float] = {}
+ entry_date: Dict[str, str] = {}
+
+ trades: List[Dict[str, Any]] = []
+ # Collect all trade events then sort by timestamp
+ raw_events = []
+ for c in codes:
+ delta = diff[c]
+ for ts in delta.index[delta.abs() > 1e-9]:
+ d = float(delta.loc[ts])
+ p = float(close.at[ts, c]) if pd.notna(close.at[ts, c]) else 0.0
+ raw_events.append((str(ts.date()) if hasattr(ts, "date") else str(ts), c, d, p))
+ raw_events.sort(key=lambda x: x[0])
+
+ for ts_str, c, d, p in raw_events:
+ side = "buy" if d > 0 else "sell"
+ qty = abs(d)
+ pnl = 0.0
+ holding_days = 0
+ return_pct = 0.0
+
+ prev = hold.get(c, 0.0)
+ if prev * d >= 0:
+ # Same-direction add: update average cost
+ old = cost.get(c, p)
+ total = abs(prev) + qty
+ cost[c] = (old * abs(prev) + p * qty) / total if total > 1e-9 else p
+ hold[c] = prev + d
+ if c not in entry_date:
+ entry_date[c] = ts_str
+ else:
+ # Opposite direction: realise P&L
+ close_qty = min(qty, abs(prev))
+ entry = cost.get(c, p)
+ pnl = (p - entry) * close_qty if prev > 0 else (entry - p) * close_qty
+ return_pct = (p / entry - 1) * 100 if entry > 1e-9 and prev > 0 else (entry / p - 1) * 100 if p > 1e-9 else 0.0
+
+ ed = entry_date.get(c, ts_str)
+ try:
+ holding_days = (pd.Timestamp(ts_str) - pd.Timestamp(ed)).days
+ except Exception:
+ holding_days = 0
+
+ remain = prev + d
+ if abs(remain) < 1e-9:
+ hold.pop(c, None)
+ cost.pop(c, None)
+ entry_date.pop(c, None)
+ else:
+ hold[c] = remain
+ if remain * prev <= 0:
+ cost[c] = p
+ entry_date[c] = ts_str
+
+ trades.append({
+ "timestamp": ts_str,
+ "code": c,
+ "side": side,
+ "price": round(p, 4),
+ "qty": round(qty, 6),
+ "reason": "signal",
+ "pnl": round(pnl, 4),
+ "holding_days": holding_days,
+ "return_pct": round(return_pct, 2),
+ })
+
+ return trades
+
+
+def _win_rate_and_stats(trades: List[Dict[str, Any]]) -> Dict[str, float]:
+ """Calculate win rate and P&L statistics from trade records.
+
+ Args:
+ trades: List of trade records.
+
+ Returns:
+ Dict containing win_rate, profit_loss_ratio, max_consecutive_loss, avg_holding_days.
+ """
+ closed = [t for t in trades if t.get("pnl", 0) != 0]
+ if not closed:
+ return {"win_rate": 0.0, "profit_loss_ratio": 0.0, "max_consecutive_loss": 0, "avg_holding_days": 0.0}
+
+ wins = [t["pnl"] for t in closed if t["pnl"] > 0]
+ losses = [t["pnl"] for t in closed if t["pnl"] < 0]
+ win_rate = len(wins) / len(closed) if closed else 0.0
+
+ avg_win = np.mean(wins) if wins else 0.0
+ avg_loss = abs(np.mean(losses)) if losses else 1e-10
+ profit_loss_ratio = avg_win / avg_loss if avg_loss > 1e-10 else 0.0
+
+ # Max consecutive losses
+ max_consec = 0
+ cur_consec = 0
+ for t in closed:
+ if t["pnl"] < 0:
+ cur_consec += 1
+ max_consec = max(max_consec, cur_consec)
+ else:
+ cur_consec = 0
+
+ # Average holding days
+ hold_days = [t["holding_days"] for t in closed if t["holding_days"] > 0]
+ avg_holding = np.mean(hold_days) if hold_days else 0.0
+
+ return {
+ "win_rate": win_rate,
+ "profit_loss_ratio": round(profit_loss_ratio, 4),
+ "max_consecutive_loss": max_consec,
+ "avg_holding_days": round(avg_holding, 1),
+ }
+
+
+def _metrics(
+ port_ret: pd.Series,
+ equity: pd.Series,
+ dd: pd.Series,
+ cash: float,
+ trades: List[Dict[str, Any]],
+ bench_ret: Optional[pd.Series] = None,
+ bars_per_year: int = 252,
+) -> Dict[str, Any]:
+ """Calculate the full set of performance metrics.
+
+ Args:
+ port_ret: Portfolio bar return series.
+ equity: Equity curve.
+ dd: Drawdown series.
+ cash: Initial capital.
+ trades: Trade records.
+ bench_ret: Benchmark return series (optional).
+ bars_per_year: Bars per year (252 for daily, 8760 for 1H OKX, etc.).
+
+ Returns:
+ Metrics dictionary.
+ """
+ n = len(port_ret)
+ if n == 0:
+ return dict(
+ final_value=cash, total_return=0, annual_return=0,
+ max_drawdown=0, sharpe=0, calmar=0, sortino=0,
+ win_rate=0, profit_loss_ratio=0, max_consecutive_loss=0,
+ avg_holding_days=0, trade_count=0,
+ benchmark_return=0, excess_return=0, information_ratio=0,
+ )
+
+ bpy = bars_per_year
+
+ total_ret = float(equity.iloc[-1] / cash - 1)
+ ann_ret = float((1 + total_ret) ** (bpy / max(n, 1)) - 1)
+ vol = float(port_ret.std())
+ sharpe = float(port_ret.mean() / (vol + 1e-10) * np.sqrt(bpy))
+
+ # Calmar = annualised return / |max drawdown|
+ max_dd = float(dd.min())
+ calmar = ann_ret / abs(max_dd) if abs(max_dd) > 1e-10 else 0.0
+
+ # Sortino = mean(ret) / downside_std * sqrt(bars_per_year) (unchanged)
+ downside = port_ret[port_ret < 0]
+ downside_std = float(downside.std()) if len(downside) > 1 else 1e-10
+ sortino = float(port_ret.mean() / (downside_std + 1e-10) * np.sqrt(bpy))
+
+ # Trade statistics
+ trade_stats = _win_rate_and_stats(trades)
+
+ # Benchmark comparison
+ bench_return = 0.0
+ excess = 0.0
+ ir = 0.0
+ if bench_ret is not None and len(bench_ret) > 0:
+ bench_return = float((1 + bench_ret).prod() - 1)
+ excess = total_ret - bench_return
+ active_ret = port_ret - bench_ret
+ active_std = float(active_ret.std())
+ ir = float(active_ret.mean() / (active_std + 1e-10) * np.sqrt(bpy))
+
+ return {
+ "final_value": float(equity.iloc[-1]),
+ "total_return": total_ret,
+ "annual_return": ann_ret,
+ "max_drawdown": max_dd,
+ "sharpe": sharpe,
+ "calmar": round(calmar, 4),
+ "sortino": round(sortino, 4),
+ "win_rate": trade_stats["win_rate"],
+ "profit_loss_ratio": trade_stats["profit_loss_ratio"],
+ "max_consecutive_loss": trade_stats["max_consecutive_loss"],
+ "avg_holding_days": trade_stats["avg_holding_days"],
+ "trade_count": len(trades),
+ "benchmark_return": round(bench_return, 6),
+ "excess_return": round(excess, 6),
+ "information_ratio": round(ir, 4),
+ }
+
+
+def run_backtest(
+ config: Dict[str, Any],
+ loader: Any,
+ engine: Any,
+ run_dir: Path,
+ bars_per_year: int = 252,
+) -> Dict[str, Any]:
+ """Main entry point: load data -> generate signals -> vectorised backtest -> write artifacts.
+
+ Args:
+ config: Backtest configuration (codes, start_date, end_date, initial_cash, commission,
+ extra_fields, optimizer, interval, source).
+ loader: DataLoader instance (must have a fetch method).
+ engine: SignalEngine instance (must have a generate method).
+ run_dir: Run directory path.
+ bars_per_year: Bars per year, computed by runner from interval+source.
+
+ Returns:
+ Metrics dictionary.
+
+ Raises:
+ SystemExit: When no data is fetched or no valid signals are generated.
+ """
+ import json
+ import sys
+
+ codes = config.get("codes", [])
+ start_date = config.get("start_date", "")
+ end_date = config.get("end_date", "")
+ initial_cash = config.get("initial_cash", 1_000_000)
+ commission = config.get("commission", 0.001)
+ extra_fields = config.get("extra_fields") or None
+
+ interval = config.get("interval", "1D")
+ data_map = loader.fetch(codes, start_date, end_date, fields=extra_fields, interval=interval)
+ if not data_map:
+ print(json.dumps({"error": "No data fetched"}))
+ sys.exit(1)
+
+ signal_map = engine.generate(data_map)
+ valid_codes = sorted(c for c in signal_map if c in data_map)
+ if not valid_codes:
+ print(json.dumps({"error": "No valid signals generated"}))
+ sys.exit(1)
+
+ # Load optimizer if configured
+ opt_fn = _load_optimizer(config)
+
+ dates, close, pos, ret = _align(data_map, signal_map, valid_codes, optimizer=opt_fn)
+ port_ret, equity, dd = _portfolio_equity(pos, ret, commission, initial_cash)
+ bench_ret, bench_equity = _benchmark_equity(ret, initial_cash)
+ trades = _log_trades(pos, close, valid_codes)
+ m = _metrics(port_ret, equity, dd, initial_cash, trades, bench_ret, bars_per_year)
+
+ out = run_dir / "artifacts"
+ out.mkdir(parents=True, exist_ok=True)
+
+ for code, df in data_map.items():
+ df.to_csv(out / f"ohlcv_{code}.csv")
+
+ eq = pd.DataFrame({
+ "ret": port_ret,
+ "equity": equity,
+ "drawdown": dd,
+ "benchmark_equity": bench_equity,
+ "active_ret": port_ret - bench_ret,
+ }, index=dates)
+ eq.index.name = "timestamp"
+ eq.to_csv(out / "equity.csv")
+
+ pos.index.name = "timestamp"
+ pos.to_csv(out / "positions.csv")
+
+ trade_cols = ["timestamp", "code", "side", "price", "qty", "reason", "pnl", "holding_days", "return_pct"]
+ pd.DataFrame(
+ trades or [],
+ columns=trade_cols,
+ ).to_csv(out / "trades.csv", index=False)
+
+ pd.DataFrame([m]).to_csv(out / "metrics.csv", index=False)
+ print(json.dumps(m, indent=2))
+ return m
+
+
+def _load_optimizer(config: Dict[str, Any]) -> Optional[Callable]:
+ """Dynamically load an optimizer function from config.
+
+ Supports any module under backtest/optimizers/ that exposes an
+ `optimize(ret, pos, dates, **params)` function.
+
+ Args:
+ config: Backtest configuration.
+
+ Returns:
+ Optimizer callable, or None.
+ """
+ import importlib
+
+ opt_name = config.get("optimizer")
+ if not opt_name:
+ return None
+
+ opt_params = config.get("optimizer_params") or {}
+
+ try:
+ mod = importlib.import_module(f"backtest.optimizers.{opt_name}")
+ return lambda ret, pos, dates: mod.optimize(ret, pos, dates, **opt_params)
+ except (ImportError, AttributeError) as e:
+ print(f"[WARN] Failed to load optimizer '{opt_name}': {e}, falling back to equal weight")
+ return None
diff --git a/agent/backtest/engines/options_portfolio.py b/agent/backtest/engines/options_portfolio.py
new file mode 100644
index 000000000..0aadaee52
--- /dev/null
+++ b/agent/backtest/engines/options_portfolio.py
@@ -0,0 +1,554 @@
+"""Options portfolio backtest engine.
+
+European options backtest engine based on Black-Scholes model.
+Synthesises theoretical option prices from underlying prices; supports multi-leg strategies.
+
+Signal interface: OptionsSignalEngine.generate(data_map) returns a list of trade instructions.
+Artifacts: equity.csv, metrics.csv, trades.csv, greeks.csv.
+"""
+
+import json
+import sys
+from datetime import datetime
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+import numpy as np
+import pandas as pd
+from scipy.stats import norm
+
+
+# --- Black-Scholes pricing ---
+
+
+def bs_price(S: float, K: float, T: float, r: float, sigma: float,
+ option_type: str = "call") -> float:
+ """Black-Scholes European option pricing.
+
+ Args:
+ S: Underlying spot price.
+ K: Strike price.
+ T: Time to expiry in years.
+ r: Risk-free rate (annualised).
+ sigma: Annualised volatility.
+ option_type: Option type, "call" or "put".
+
+ Returns:
+ Theoretical option price.
+
+ Example:
+ >>> round(bs_price(100, 100, 1.0, 0.05, 0.2, "call"), 2)
+ 10.45
+ """
+ if T <= 0 or sigma <= 0:
+ # Expired: return intrinsic value
+ if option_type == "call":
+ return max(S - K, 0.0)
+ return max(K - S, 0.0)
+
+ d1 = (np.log(S / K) + (r + sigma ** 2 / 2) * T) / (sigma * np.sqrt(T))
+ d2 = d1 - sigma * np.sqrt(T)
+
+ if option_type == "call":
+ return float(S * norm.cdf(d1) - K * np.exp(-r * T) * norm.cdf(d2))
+ return float(K * np.exp(-r * T) * norm.cdf(-d2) - S * norm.cdf(-d1))
+
+
+# --- Greeks ---
+
+
+def bs_greeks(S: float, K: float, T: float, r: float, sigma: float,
+ option_type: str = "call") -> Dict[str, float]:
+ """Calculate Black-Scholes Greeks.
+
+ Args:
+ S: Underlying spot price.
+ K: Strike price.
+ T: Time to expiry in years.
+ r: Risk-free rate (annualised).
+ sigma: Annualised volatility.
+ option_type: Option type, "call" or "put".
+
+ Returns:
+ Dict containing delta, gamma, theta, vega.
+ """
+ if T <= 0 or sigma <= 0:
+ intrinsic_call = 1.0 if S > K else 0.0
+ delta = intrinsic_call if option_type == "call" else intrinsic_call - 1.0
+ return {"delta": delta, "gamma": 0.0, "theta": 0.0, "vega": 0.0}
+
+ sqrt_T = np.sqrt(T)
+ d1 = (np.log(S / K) + (r + sigma ** 2 / 2) * T) / (sigma * sqrt_T)
+ d2 = d1 - sigma * sqrt_T
+ nd1_pdf = float(norm.pdf(d1))
+
+ # Delta
+ if option_type == "call":
+ delta = float(norm.cdf(d1))
+ else:
+ delta = float(norm.cdf(d1) - 1.0)
+
+ # Gamma (same for call and put)
+ gamma = float(nd1_pdf / (S * sigma * sqrt_T))
+
+ # Theta (daily)
+ theta_common = -(S * nd1_pdf * sigma) / (2 * sqrt_T)
+ if option_type == "call":
+ theta = theta_common - r * K * np.exp(-r * T) * norm.cdf(d2)
+ else:
+ theta = theta_common + r * K * np.exp(-r * T) * norm.cdf(-d2)
+ theta = float(theta / 365.0) # convert to daily
+
+ # Vega (per 1% change in volatility)
+ vega = float(S * nd1_pdf * sqrt_T / 100.0)
+
+ return {"delta": delta, "gamma": gamma, "theta": theta, "vega": vega}
+
+
+# --- Historical volatility ---
+
+
+def historical_volatility(close: pd.Series, window: int = 30) -> pd.Series:
+ """Calculate annualised historical volatility from a close price series.
+
+ Args:
+ close: Close price Series.
+ window: Rolling window in days.
+
+ Returns:
+ Annualised historical volatility Series.
+ """
+ log_ret = np.log(close / close.shift(1))
+ hv = log_ret.rolling(window=window).std() * np.sqrt(252)
+ return hv.fillna(hv.dropna().iloc[0] if len(hv.dropna()) > 0 else 0.3)
+
+
+# --- Option positions ---
+
+
+class OptionPosition:
+ """A single option leg position.
+
+ Attributes:
+ option_type: "call" or "put".
+ strike: Strike price.
+ expiry: Expiry date.
+ qty: Quantity (positive = long, negative = short).
+ entry_price: Theoretical option price at entry.
+ entry_date: Entry date string.
+ underlying_code: Underlying instrument code.
+ """
+
+ def __init__(self, option_type: str, strike: float, expiry: str,
+ qty: int, entry_price: float, entry_date: str,
+ underlying_code: str):
+ self.option_type = option_type
+ self.strike = strike
+ self.expiry = pd.Timestamp(expiry)
+ self.qty = qty
+ self.entry_price = entry_price
+ self.entry_date = entry_date
+ self.underlying_code = underlying_code
+
+ def time_to_expiry(self, current_date: pd.Timestamp) -> float:
+ """Calculate time remaining to expiry in years.
+
+ Args:
+ current_date: Current date.
+
+ Returns:
+ Time to expiry in years.
+ """
+ days = (self.expiry - current_date).days
+ return max(days / 365.0, 0.0)
+
+ def is_expired(self, current_date: pd.Timestamp) -> bool:
+ """Check whether the option has expired.
+
+ Args:
+ current_date: Current date.
+
+ Returns:
+ True if expired.
+ """
+ return current_date >= self.expiry
+
+ def intrinsic_value(self, spot: float) -> float:
+ """Calculate intrinsic value.
+
+ Args:
+ spot: Underlying spot price.
+
+ Returns:
+ Intrinsic value.
+ """
+ if self.option_type == "call":
+ return max(spot - self.strike, 0.0)
+ return max(self.strike - spot, 0.0)
+
+
+# --- Backtest driver ---
+
+
+def run_options_backtest(
+ config: Dict[str, Any],
+ loader: Any,
+ engine: Any,
+ run_dir: Path,
+ bars_per_year: int = 252,
+) -> Dict[str, Any]:
+ """Options backtest entry point.
+
+ Day-by-day simulation:
+ 1. Read underlying price for the current day
+ 2. Mark all open option positions to market (BS)
+ 3. Execute trade instructions from the signal (open/close)
+ 4. Automatically exercise ITM options or expire OTM options at maturity
+ 5. Record P&L and Greeks
+
+ Args:
+ config: Backtest config; must include codes, start_date, end_date, initial_cash,
+ and options_config (risk_free_rate, iv_source).
+ loader: DataLoader instance (must have a fetch method).
+ engine: OptionsSignalEngine instance (generate method returns a list of trade instructions).
+ run_dir: Run directory path.
+ bars_per_year: Bars per year.
+
+ Returns:
+ Metrics dictionary.
+
+ Raises:
+ SystemExit: When no data is fetched.
+ """
+ codes = config.get("codes", [])
+ start_date = config.get("start_date", "")
+ end_date = config.get("end_date", "")
+ initial_cash = config.get("initial_cash", 1_000_000)
+ commission = config.get("commission", 0.001)
+ options_cfg = config.get("options_config", {})
+ risk_free_rate = options_cfg.get("risk_free_rate", 0.05)
+ iv_source = options_cfg.get("iv_source", "historical")
+ contract_multiplier = options_cfg.get("contract_multiplier", 1.0)
+
+ # Load underlying data
+ data_map = loader.fetch(codes, start_date, end_date)
+ if not data_map:
+ print(json.dumps({"error": "No data fetched"}))
+ sys.exit(1)
+
+ # Compute implied volatility (approximated by historical volatility)
+ iv_map: Dict[str, pd.Series] = {}
+ for code, df in data_map.items():
+ iv_map[code] = historical_volatility(df["close"])
+
+ # Generate trade signals
+ signals = engine.generate(data_map)
+
+ # Build trading date sequence
+ all_dates = set()
+ for df in data_map.values():
+ all_dates.update(df.index)
+ dates = sorted(all_dates)
+
+ # Index signals by date
+ signal_by_date: Dict[str, List[Dict[str, Any]]] = {}
+ for sig in signals:
+ d = sig.get("date", "")
+ signal_by_date.setdefault(d, []).append(sig)
+
+ # Day-by-day simulation
+ cash = float(initial_cash)
+ positions: List[OptionPosition] = []
+ trade_records: List[Dict[str, Any]] = []
+ greeks_records: List[Dict[str, Any]] = []
+ equity_records: List[Dict[str, Any]] = []
+
+ for current_date in dates:
+ ts = pd.Timestamp(current_date)
+ date_str = str(ts.date()) if hasattr(ts, "date") else str(ts)
+
+ # 1. Get underlying price and IV for the current day
+ spot_prices: Dict[str, float] = {}
+ ivs: Dict[str, float] = {}
+ for code, df in data_map.items():
+ if ts in df.index:
+ spot_prices[code] = float(df.at[ts, "close"])
+ ivs[code] = float(iv_map[code].at[ts]) if ts in iv_map[code].index else 0.3
+ else:
+ # Use the last available price
+ before = df.index[df.index <= ts]
+ if len(before) > 0:
+ last = before[-1]
+ spot_prices[code] = float(df.at[last, "close"])
+ ivs[code] = float(iv_map[code].at[last]) if last in iv_map[code].index else 0.3
+
+ # 2. Handle expiry
+ expired = [p for p in positions if p.is_expired(ts)]
+ for pos in expired:
+ spot = spot_prices.get(pos.underlying_code, 0.0)
+ intrinsic = pos.intrinsic_value(spot)
+
+ # Expiry: recover intrinsic value (entry_price already deducted at open)
+ settlement = intrinsic * pos.qty * contract_multiplier
+ cash += settlement
+ pnl = (intrinsic - pos.entry_price) * pos.qty * contract_multiplier
+
+ side = "exercise" if intrinsic > 0 else "expire"
+ trade_records.append({
+ "timestamp": date_str,
+ "code": pos.underlying_code,
+ "option_type": pos.option_type,
+ "strike": pos.strike,
+ "expiry": str(pos.expiry.date()),
+ "side": side,
+ "price": round(intrinsic, 4),
+ "qty": pos.qty,
+ "pnl": round(pnl, 4),
+ "entry_date": pos.entry_date,
+ })
+ positions.remove(pos)
+
+ # 3. Execute today's signals
+ day_signals = signal_by_date.get(date_str, [])
+ for sig in day_signals:
+ action = sig.get("action", "")
+ legs = sig.get("legs", [])
+ underlying = sig.get("underlying", codes[0] if codes else "")
+
+ spot = spot_prices.get(underlying, 0.0)
+ iv_val = ivs.get(underlying, 0.3)
+
+ for leg in legs:
+ leg_type = leg.get("type", "call")
+ strike = leg.get("strike", spot)
+ expiry = leg.get("expiry", "")
+ qty = leg.get("qty", 1)
+
+ expiry_ts = pd.Timestamp(expiry)
+ T = max((expiry_ts - ts).days / 365.0, 0.001)
+
+ # Black-Scholes price
+ opt_price = bs_price(spot, strike, T, risk_free_rate, iv_val, leg_type)
+
+ if action == "open":
+ # Open: long pays premium, short receives premium
+ abs_cost = opt_price * abs(qty) * contract_multiplier
+ if qty > 0:
+ cash -= abs_cost * (1 + commission)
+ else:
+ cash += abs_cost * (1 - commission)
+
+ positions.append(OptionPosition(
+ option_type=leg_type,
+ strike=strike,
+ expiry=expiry,
+ qty=qty,
+ entry_price=opt_price,
+ entry_date=date_str,
+ underlying_code=underlying,
+ ))
+
+ trade_records.append({
+ "timestamp": date_str,
+ "code": underlying,
+ "option_type": leg_type,
+ "strike": strike,
+ "expiry": expiry,
+ "side": "buy" if qty > 0 else "sell",
+ "price": round(opt_price, 4),
+ "qty": qty,
+ "pnl": 0.0,
+ "entry_date": date_str,
+ })
+
+ elif action == "close":
+ # Close: find matching position
+ matched = _find_matching_position(
+ positions, underlying, leg_type, strike, expiry)
+ if matched:
+ pnl = (opt_price - matched.entry_price) * matched.qty * contract_multiplier
+ abs_close = opt_price * abs(matched.qty) * contract_multiplier
+ if matched.qty > 0:
+ # Long close: sell to recover
+ cash += abs_close * (1 - commission)
+ else:
+ # Short close: buy back
+ cash -= abs_close * (1 + commission)
+
+ trade_records.append({
+ "timestamp": date_str,
+ "code": underlying,
+ "option_type": leg_type,
+ "strike": strike,
+ "expiry": expiry,
+ "side": "close",
+ "price": round(opt_price, 4),
+ "qty": matched.qty,
+ "pnl": round(pnl, 4),
+ "entry_date": matched.entry_date,
+ })
+ positions.remove(matched)
+
+ # 4. Compute portfolio mark-to-market value and Greeks
+ portfolio_value = cash
+ total_delta = 0.0
+ total_gamma = 0.0
+ total_theta = 0.0
+ total_vega = 0.0
+
+ for pos in positions:
+ spot = spot_prices.get(pos.underlying_code, 0.0)
+ iv_val = ivs.get(pos.underlying_code, 0.3)
+ T = pos.time_to_expiry(ts)
+
+ mark_price = bs_price(spot, pos.strike, T, risk_free_rate, iv_val, pos.option_type)
+ portfolio_value += mark_price * pos.qty * contract_multiplier
+
+ greeks = bs_greeks(spot, pos.strike, T, risk_free_rate, iv_val, pos.option_type)
+ total_delta += greeks["delta"] * pos.qty * contract_multiplier
+ total_gamma += greeks["gamma"] * pos.qty * contract_multiplier
+ total_theta += greeks["theta"] * pos.qty * contract_multiplier
+ total_vega += greeks["vega"] * pos.qty * contract_multiplier
+
+ equity_records.append({
+ "timestamp": date_str,
+ "equity": round(portfolio_value, 4),
+ "cash": round(cash, 4),
+ "positions_value": round(portfolio_value - cash, 4),
+ })
+
+ greeks_records.append({
+ "timestamp": date_str,
+ "delta": round(total_delta, 6),
+ "gamma": round(total_gamma, 6),
+ "theta": round(total_theta, 6),
+ "vega": round(total_vega, 6),
+ "num_positions": len(positions),
+ })
+
+ # Compute metrics
+ equity_df = pd.DataFrame(equity_records)
+ if equity_df.empty:
+ print(json.dumps({"error": "No equity data generated"}))
+ sys.exit(1)
+
+ equity_series = equity_df.set_index("timestamp")["equity"]
+ metrics = _calc_options_metrics(equity_series, initial_cash, trade_records, bars_per_year)
+
+ # Write artifacts
+ out = run_dir / "artifacts"
+ out.mkdir(parents=True, exist_ok=True)
+
+ for code, df in data_map.items():
+ df.to_csv(out / f"ohlcv_{code}.csv")
+
+ equity_df.to_csv(out / "equity.csv", index=False)
+
+ trade_cols = ["timestamp", "code", "option_type", "strike", "expiry",
+ "side", "price", "qty", "pnl", "entry_date"]
+ pd.DataFrame(trade_records or [], columns=trade_cols).to_csv(
+ out / "trades.csv", index=False)
+
+ pd.DataFrame(greeks_records).to_csv(out / "greeks.csv", index=False)
+ pd.DataFrame([metrics]).to_csv(out / "metrics.csv", index=False)
+
+ print(json.dumps(metrics, indent=2))
+ return metrics
+
+
+# โ”€โ”€โ”€ Helpers โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+
+
+def _find_matching_position(
+ positions: List[OptionPosition],
+ underlying: str,
+ option_type: str,
+ strike: float,
+ expiry: str,
+) -> Optional[OptionPosition]:
+ """Find a matching open position.
+
+ Args:
+ positions: Current open positions.
+ underlying: Underlying instrument code.
+ option_type: Option type.
+ strike: Strike price.
+ expiry: Expiry date string.
+
+ Returns:
+ Matching position, or None if not found.
+ """
+ expiry_ts = pd.Timestamp(expiry)
+ for pos in positions:
+ if (pos.underlying_code == underlying
+ and pos.option_type == option_type
+ and abs(pos.strike - strike) < 1e-6
+ and pos.expiry == expiry_ts):
+ return pos
+ return None
+
+
+def _calc_options_metrics(
+ equity: pd.Series,
+ initial_cash: float,
+ trades: List[Dict[str, Any]],
+ bars_per_year: int = 252,
+) -> Dict[str, Any]:
+ """Calculate options backtest metrics.
+
+ Args:
+ equity: Equity series.
+ initial_cash: Initial capital.
+ trades: List of trade records.
+ bars_per_year: Bars per year.
+
+ Returns:
+ Metrics dictionary.
+ """
+ n = len(equity)
+ if n < 2:
+ return {
+ "final_value": initial_cash, "total_return": 0, "annual_return": 0,
+ "max_drawdown": 0, "sharpe": 0, "calmar": 0, "sortino": 0,
+ "trade_count": len(trades), "win_rate": 0, "profit_loss_ratio": 0,
+ }
+
+ equity_vals = equity.astype(float)
+ returns = equity_vals.pct_change().fillna(0.0)
+
+ total_ret = float(equity_vals.iloc[-1] / initial_cash - 1)
+ ann_ret = float((1 + total_ret) ** (bars_per_year / max(n, 1)) - 1)
+
+ vol = float(returns.std())
+ sharpe = float(returns.mean() / (vol + 1e-10) * np.sqrt(bars_per_year))
+
+ peak = equity_vals.cummax()
+ dd = (equity_vals - peak) / peak.replace(0, 1)
+ max_dd = float(dd.min())
+ calmar = ann_ret / abs(max_dd) if abs(max_dd) > 1e-10 else 0.0
+
+ downside = returns[returns < 0]
+ downside_std = float(downside.std()) if len(downside) > 1 else 1e-10
+ sortino = float(returns.mean() / (downside_std + 1e-10) * np.sqrt(bars_per_year))
+
+ # Trade statistics
+ closed_pnl = [t["pnl"] for t in trades if t.get("pnl", 0) != 0]
+ wins = [p for p in closed_pnl if p > 0]
+ losses = [p for p in closed_pnl if p < 0]
+ win_rate = len(wins) / len(closed_pnl) if closed_pnl else 0.0
+ avg_win = np.mean(wins) if wins else 0.0
+ avg_loss = abs(np.mean(losses)) if losses else 1e-10
+ pl_ratio = avg_win / avg_loss if avg_loss > 1e-10 else 0.0
+
+ return {
+ "final_value": round(float(equity_vals.iloc[-1]), 2),
+ "total_return": round(total_ret, 6),
+ "annual_return": round(ann_ret, 6),
+ "max_drawdown": round(max_dd, 6),
+ "sharpe": round(sharpe, 4),
+ "calmar": round(calmar, 4),
+ "sortino": round(sortino, 4),
+ "trade_count": len(trades),
+ "win_rate": round(win_rate, 4),
+ "profit_loss_ratio": round(pl_ratio, 4),
+ }
diff --git a/agent/backtest/loaders/__init__.py b/agent/backtest/loaders/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/agent/backtest/loaders/okx.py b/agent/backtest/loaders/okx.py
new file mode 100644
index 000000000..18c0a1e35
--- /dev/null
+++ b/agent/backtest/loaders/okx.py
@@ -0,0 +1,126 @@
+"""OKX spot candle loader (crypto).
+
+Uses OKX V5 public REST API (no auth).
+Supports 1m/5m/15m/30m/1H/4H/1D.
+Up to 300 bars per request; paginates with ``after`` for longer history.
+"""
+
+from typing import Dict, List, Optional
+
+import pandas as pd
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+_MAX_PER_PAGE = 300
+
+
+class DataLoader:
+ """OKX crypto OHLCV loader."""
+
+ def __init__(self) -> None:
+ """No credentials required for public candles."""
+ pass
+
+ def fetch(
+ self,
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ fields: Optional[List[str]] = None,
+ interval: str = "1D",
+ ) -> Dict[str, pd.DataFrame]:
+ """Fetch crypto OHLCV via OKX public API.
+
+ Args:
+ codes: Symbols like ``["BTC-USDT", "ETH-USDT"]``.
+ start_date: Start date (YYYY-MM-DD).
+ end_date: End date (YYYY-MM-DD).
+ fields: Ignored (OKX has no extra fields).
+ interval: Bar size (1m/5m/15m/30m/1H/4H/1D), default ``1D``.
+
+ Returns:
+ Mapping symbol -> DataFrame.
+ """
+ if fields:
+ print(f"[WARN] OKX ignores extra fields: {fields}")
+
+ valid_intervals = {"1m", "5m", "15m", "30m", "1H", "4H", "1D"}
+ if interval not in valid_intervals:
+ print(f"[WARN] unsupported OKX interval {interval}, using 1D")
+ interval = "1D"
+
+ codes = [c.replace("/", "-").upper() for c in codes]
+
+ start_ts = int(pd.Timestamp(start_date).timestamp() * 1000)
+ end_ts = int((pd.Timestamp(end_date) + pd.Timedelta(days=1)).timestamp() * 1000)
+
+ max_pages = 200 if interval in ("1m", "5m") else 50 if interval in ("15m", "30m") else 20
+
+ result: Dict[str, pd.DataFrame] = {}
+ for symbol in codes:
+ try:
+ df = self._fetch_candles(symbol, start_ts, end_ts, interval, max_pages)
+ if df is not None and not df.empty:
+ result[symbol] = df
+ except Exception as exc:
+ print(f"[WARN] failed to fetch {symbol}: {exc}")
+ return result
+
+ def _fetch_candles(
+ self, inst_id: str, start_ts: int, end_ts: int,
+ bar: str = "1D", max_pages: int = 20,
+ ) -> Optional[pd.DataFrame]:
+ """Paginated candle download.
+
+ Args:
+ inst_id: OKX instrument id.
+ start_ts: Start time (ms).
+ end_ts: End time (ms).
+ bar: Bar size.
+ max_pages: Max pagination rounds.
+
+ Returns:
+ OHLCV DataFrame or None.
+ """
+ all_rows: list = []
+ after = str(end_ts)
+
+ for _ in range(max_pages):
+ params = {
+ "instId": inst_id,
+ "bar": bar,
+ "limit": str(_MAX_PER_PAGE),
+ "after": after,
+ }
+ resp = requests.get(f"{BASE_URL}/market/candles", params=params, timeout=15)
+ data = resp.json()
+ if data.get("code") != "0" or not data.get("data"):
+ break
+
+ rows = data["data"]
+ rows = [r for r in rows if r[8] == "1"]
+ all_rows.extend(rows)
+
+ oldest_ts = int(rows[-1][0]) if rows else start_ts
+ if oldest_ts <= start_ts or len(data["data"]) < _MAX_PER_PAGE:
+ break
+ after = str(oldest_ts)
+
+ if not all_rows:
+ print(f"[WARN] OKX empty response: {inst_id}")
+ return None
+
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(all_rows, columns=columns)
+ df["trade_date"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = pd.to_numeric(df[col], errors="coerce")
+ df["volume"] = pd.to_numeric(df["vol"], errors="coerce").fillna(0)
+ df = df.set_index("trade_date").sort_index()
+
+ start_dt = pd.Timestamp(start_ts, unit="ms")
+ end_dt = pd.Timestamp(end_ts, unit="ms")
+ df = df[(df.index >= start_dt) & (df.index < end_dt)]
+
+ df = df[["open", "high", "low", "close", "volume"]].dropna(subset=["open", "high", "low", "close"])
+ return df if not df.empty else None
diff --git a/agent/backtest/loaders/tushare.py b/agent/backtest/loaders/tushare.py
new file mode 100644
index 000000000..287bdf909
--- /dev/null
+++ b/agent/backtest/loaders/tushare.py
@@ -0,0 +1,164 @@
+"""Tushare loader for A-share daily and intraday bars plus optional fundamentals.
+
+Supports ``interval``: 1D (default) / 1m / 5m / 15m / 30m / 1H.
+Minute data uses ``pro.stk_mins()`` (Tushare points >= 2000).
+"""
+
+import os
+from typing import Dict, List, Optional
+
+import pandas as pd
+
+
+class DataLoader:
+ """Tushare-backed OHLCV loader."""
+
+ def __init__(self) -> None:
+ """Initialize Tushare pro API."""
+ import tushare as ts
+
+ token = os.getenv("TUSHARE_TOKEN", "")
+ self.api = ts.pro_api(token)
+
+ def fetch(
+ self,
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ fields: Optional[List[str]] = None,
+ interval: str = "1D",
+ ) -> Dict[str, pd.DataFrame]:
+ """Fetch A-share bars via Tushare API.
+
+ Args:
+ codes: Stock codes (e.g. ``000001.SZ``).
+ start_date: Start date (YYYY-MM-DD).
+ end_date: End date (YYYY-MM-DD).
+ fields: Extra fundamental columns (daily only).
+ interval: Bar size (1D/1m/5m/15m/30m/1H), default ``1D``.
+
+ Returns:
+ Mapping code -> OHLCV DataFrame.
+ """
+ if interval != "1D":
+ return self._fetch_minutes(codes, start_date, end_date, interval)
+
+ sd = start_date.replace("-", "")
+ ed = end_date.replace("-", "")
+ result: Dict[str, pd.DataFrame] = {}
+
+ for code in codes:
+ try:
+ df = self.api.daily(ts_code=code, start_date=sd, end_date=ed)
+ if df is None or df.empty:
+ continue
+ df = df.sort_values("trade_date")
+ df["trade_date"] = pd.to_datetime(df["trade_date"])
+ df = df.set_index("trade_date")
+ df = df.rename(columns={"vol": "volume"})
+ for col in ["open", "high", "low", "close", "volume"]:
+ if col in df.columns:
+ df[col] = pd.to_numeric(df[col], errors="coerce")
+ ohlcv = df[["open", "high", "low", "close", "volume"]].dropna(
+ subset=["open", "high", "low", "close"]
+ )
+ result[code] = ohlcv
+ except Exception as exc:
+ print(f"[WARN] failed to fetch {code}: {exc}")
+
+ return self._merge_basic_fields(result, codes, start_date, end_date, fields)
+
+ def _merge_basic_fields(
+ self,
+ result: Dict[str, pd.DataFrame],
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ fields: Optional[List[str]],
+ ) -> Dict[str, pd.DataFrame]:
+ """Merge fundamental columns from daily_basic API.
+
+ Args:
+ result: Existing OHLCV frames.
+ codes: All requested codes.
+ start_date: Start date.
+ end_date: End date.
+ fields: Extra column names from daily_basic.
+
+ Returns:
+ Updated result map.
+ """
+ if not fields:
+ return result
+
+ sd = start_date.replace("-", "")
+ ed = end_date.replace("-", "")
+ active_codes = [c for c in codes if c in result]
+
+ for code in active_codes:
+ try:
+ basic = self.api.daily_basic(
+ ts_code=code,
+ start_date=sd,
+ end_date=ed,
+ fields="ts_code,trade_date," + ",".join(fields),
+ )
+ if basic is not None and not basic.empty:
+ basic["trade_date"] = pd.to_datetime(basic["trade_date"])
+ basic = basic.set_index("trade_date").sort_index()
+ for f in fields:
+ if f in basic.columns:
+ result[code][f] = basic[f]
+ except Exception as exc:
+ print(f"[WARN] daily_basic for {code} failed: {exc}")
+
+ return result
+
+ def _fetch_minutes(
+ self,
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ interval: str,
+ ) -> Dict[str, pd.DataFrame]:
+ """Intraday bars via stk_mins.
+
+ Args:
+ codes: Stock codes.
+ start_date: Start date (YYYY-MM-DD).
+ end_date: End date (YYYY-MM-DD).
+ interval: Minute bar (1m/5m/15m/30m/1H).
+
+ Returns:
+ Mapping code -> DataFrame.
+ """
+ freq_map = {"1m": "1min", "5m": "5min", "15m": "15min", "30m": "30min", "1H": "60min"}
+ freq = freq_map.get(interval)
+ if not freq:
+ print(f"[ERROR] unsupported Tushare interval: {interval}")
+ return {}
+
+ sd = start_date.replace("-", "")
+ ed = end_date.replace("-", "")
+ result: Dict[str, pd.DataFrame] = {}
+
+ for code in codes:
+ try:
+ df = self.api.stk_mins(ts_code=code, freq=freq, start_date=sd, end_date=ed)
+ if df is None or df.empty:
+ print(f"[WARN] empty Tushare minute data: {code} (points >= 2000 required)")
+ continue
+ df = df.sort_values("trade_time")
+ df["trade_date"] = pd.to_datetime(df["trade_time"])
+ df = df.set_index("trade_date")
+ df = df.rename(columns={"vol": "volume"})
+ for col in ["open", "high", "low", "close", "volume"]:
+ if col in df.columns:
+ df[col] = pd.to_numeric(df[col], errors="coerce")
+ ohlcv = df[["open", "high", "low", "close", "volume"]].dropna(
+ subset=["open", "high", "low", "close"]
+ )
+ result[code] = ohlcv
+ except Exception as exc:
+ print(f"[WARN] failed to fetch minute data {code}: {exc}")
+ return result
diff --git a/agent/backtest/loaders/yfinance_loader.py b/agent/backtest/loaders/yfinance_loader.py
new file mode 100644
index 000000000..9ace4c922
--- /dev/null
+++ b/agent/backtest/loaders/yfinance_loader.py
@@ -0,0 +1,256 @@
+"""yfinance-backed loader for HK/US equity OHLCV data."""
+
+from __future__ import annotations
+
+from collections import defaultdict
+from typing import Dict, List, Optional, Union
+
+import pandas as pd
+import yfinance as yf
+
+_OHLCV_COLUMNS = ["open", "high", "low", "close", "volume"]
+_COLUMN_RENAMES = {
+ "Open": "open",
+ "High": "high",
+ "Low": "low",
+ "Close": "close",
+ "Volume": "volume",
+ "open": "open",
+ "high": "high",
+ "low": "low",
+ "close": "close",
+ "volume": "volume",
+}
+_INTERVAL_MAP = {
+ "1D": "1d",
+ "1H": "1h",
+ "4H": "1h",
+}
+
+
+def _to_yfinance_symbol(code: str) -> str:
+ """Convert project symbols into yfinance symbols.
+
+ Args:
+ code: Project symbol, for example ``AAPL.US`` or ``700.HK``.
+
+ Returns:
+ yfinance-compatible symbol.
+ """
+ upper = code.strip().upper()
+ if upper.endswith(".US"):
+ return upper[:-3]
+ if upper.endswith(".HK"):
+ digits = upper[:-3]
+ width = max(4, len(digits))
+ return f"{digits.zfill(width)}.HK"
+ return upper
+
+
+def _to_yfinance_interval(interval: str) -> str:
+ """Map project interval strings to yfinance interval strings.
+
+ Args:
+ interval: Backtest interval such as ``1D`` or ``5m``.
+
+ Returns:
+ yfinance interval string.
+ """
+ normalized = str(interval or "1D").strip()
+ return _INTERVAL_MAP.get(normalized, normalized.lower())
+
+
+def _download_history(
+ tickers: Union[List[str], str],
+ start_date: str,
+ end_date: str,
+ interval: str,
+) -> pd.DataFrame:
+ """Download raw historical data via yfinance.
+
+ Args:
+ tickers: One or more yfinance symbols.
+ start_date: Inclusive start date string.
+ end_date: End date string passed directly to yfinance.
+ interval: yfinance interval string.
+
+ Returns:
+ Raw dataframe from ``yf.download``.
+ """
+ return yf.download(
+ tickers,
+ start=start_date,
+ end=end_date,
+ interval=interval,
+ auto_adjust=False,
+ progress=False,
+ )
+
+
+def _flatten_columns(frame: pd.DataFrame, symbol: str) -> pd.DataFrame:
+ """Flatten any leftover multi-index columns after symbol selection.
+
+ Args:
+ frame: Price dataframe.
+ symbol: yfinance symbol used for column cleanup.
+
+ Returns:
+ Dataframe with flat string columns.
+ """
+ if not isinstance(frame.columns, pd.MultiIndex):
+ return frame
+
+ cleaned_columns = []
+ for column in frame.columns:
+ pieces = [str(part) for part in column if str(part) and str(part).upper() != symbol.upper()]
+ cleaned_columns.append(pieces[-1] if pieces else str(column[-1]))
+ flattened = frame.copy()
+ flattened.columns = cleaned_columns
+ return flattened
+
+
+def _extract_symbol_frame(frame: pd.DataFrame, symbol: str, total_symbols: int) -> pd.DataFrame:
+ """Extract a single symbol slice from a raw yfinance dataframe.
+
+ Args:
+ frame: Raw dataframe returned by ``yf.download``.
+ symbol: yfinance symbol to extract.
+ total_symbols: Number of unique symbols requested.
+
+ Returns:
+ A single-symbol dataframe or an empty dataframe when unavailable.
+ """
+ if frame.empty:
+ return pd.DataFrame()
+
+ if not isinstance(frame.columns, pd.MultiIndex):
+ if total_symbols == 1:
+ return frame.copy()
+ return pd.DataFrame()
+
+ for level in range(frame.columns.nlevels):
+ if symbol in frame.columns.get_level_values(level):
+ selected = frame.xs(symbol, axis=1, level=level, drop_level=True)
+ return _flatten_columns(selected.copy(), symbol)
+ return pd.DataFrame()
+
+
+def _normalize_frame(frame: pd.DataFrame, requested_interval: str) -> pd.DataFrame:
+ """Normalize raw yfinance data into the backtest OHLCV schema.
+
+ Args:
+ frame: Raw or symbol-scoped yfinance dataframe.
+ requested_interval: Original backtest interval.
+
+ Returns:
+ Normalized OHLCV dataframe indexed by ``trade_date``.
+ """
+ if frame.empty:
+ return pd.DataFrame(columns=_OHLCV_COLUMNS)
+
+ normalized = _flatten_columns(frame.copy(), "")
+ normalized = normalized.rename(columns=_COLUMN_RENAMES)
+
+ for column in _OHLCV_COLUMNS:
+ if column not in normalized.columns:
+ if column == "volume":
+ normalized[column] = 0.0
+ else:
+ return pd.DataFrame(columns=_OHLCV_COLUMNS)
+
+ normalized = normalized.loc[:, _OHLCV_COLUMNS].copy()
+ normalized = normalized.apply(pd.to_numeric, errors="coerce")
+
+ index = pd.DatetimeIndex(pd.to_datetime(normalized.index))
+ if getattr(index, "tz", None) is not None:
+ index = index.tz_localize(None)
+ normalized.index = index
+ normalized.index.name = "trade_date"
+ normalized = normalized.sort_index()
+ normalized["volume"] = normalized["volume"].fillna(0.0)
+ normalized = normalized.dropna(subset=["open", "high", "low", "close"])
+
+ if requested_interval == "4H" and not normalized.empty:
+ normalized = normalized.resample("4h").agg(
+ {
+ "open": "first",
+ "high": "max",
+ "low": "min",
+ "close": "last",
+ "volume": "sum",
+ }
+ )
+ normalized = normalized.dropna(subset=["open", "high", "low", "close"])
+ normalized.index.name = "trade_date"
+
+ return normalized
+
+
+class DataLoader:
+ """Fetch HK/US equity bars from Yahoo Finance via yfinance."""
+
+ def __init__(self) -> None:
+ """Initialize the loader.
+
+ yfinance is a free public-data wrapper and does not require credentials.
+ """
+ pass
+
+ def fetch(
+ self,
+ codes: List[str],
+ start_date: str,
+ end_date: str,
+ fields: Optional[List[str]] = None,
+ interval: str = "1D",
+ ) -> Dict[str, pd.DataFrame]:
+ """Fetch OHLCV history keyed by the original project symbols.
+
+ Args:
+ codes: Project symbols such as ``AAPL.US`` and ``700.HK``.
+ start_date: Start date in ``YYYY-MM-DD`` format.
+ end_date: End date in ``YYYY-MM-DD`` format.
+ fields: Ignored for yfinance; included for interface compatibility.
+ interval: Backtest interval such as ``1D`` or ``1H``.
+
+ Returns:
+ Mapping of input symbol to normalized OHLCV dataframe.
+ """
+ del fields
+ if not codes:
+ return {}
+
+ requested_interval = str(interval or "1D").strip()
+ yf_interval = _to_yfinance_interval(requested_interval)
+
+ symbol_groups: Dict[str, List[str]] = defaultdict(list)
+ for code in codes:
+ symbol_groups[_to_yfinance_symbol(code)].append(code)
+
+ unique_symbols = list(symbol_groups.keys())
+ results: Dict[str, pd.DataFrame] = {}
+
+ try:
+ bulk_data = _download_history(unique_symbols, start_date, end_date, yf_interval)
+ except Exception as exc:
+ print(f"[WARN] yfinance bulk download failed for {unique_symbols}: {exc}")
+ bulk_data = pd.DataFrame()
+
+ for symbol in unique_symbols:
+ try:
+ symbol_frame = _extract_symbol_frame(bulk_data, symbol, len(unique_symbols))
+ if symbol_frame.empty:
+ symbol_frame = _download_history(symbol, start_date, end_date, yf_interval)
+
+ normalized = _normalize_frame(symbol_frame, requested_interval)
+ if normalized.empty:
+ print(f"[WARN] yfinance returned no usable data for {symbol}")
+ continue
+
+ for original_code in symbol_groups[symbol]:
+ results[original_code] = normalized.copy()
+ except Exception as exc:
+ print(f"[WARN] Failed to fetch data for {symbol}: {exc}")
+ continue
+
+ return results
diff --git a/agent/backtest/optimizers/__init__.py b/agent/backtest/optimizers/__init__.py
new file mode 100644
index 000000000..2112e6a78
--- /dev/null
+++ b/agent/backtest/optimizers/__init__.py
@@ -0,0 +1,11 @@
+"""Portfolio optimizer package.
+
+Provides four weighting schemes:
+- equal_volatility: inverse-volatility weights
+- risk_parity: equal risk contribution (Spinu-style)
+- mean_variance: max Sharpe via scipy
+- max_diversification: maximize diversification ratio
+
+Select via ``optimizer`` in ``config.json``; default is off (1/N).
+Add a new optimizer by dropping a module here that exposes ``optimize()``.
+"""
diff --git a/agent/backtest/optimizers/base.py b/agent/backtest/optimizers/base.py
new file mode 100644
index 000000000..bc2e5cbfe
--- /dev/null
+++ b/agent/backtest/optimizers/base.py
@@ -0,0 +1,137 @@
+"""Shared base class for portfolio optimizers.
+
+Handles preprocessing, rolling covariance windows, and weight normalization;
+subclasses implement ``_calc_weights``.
+"""
+
+from abc import ABC, abstractmethod
+from typing import Dict, Any, List
+
+import numpy as np
+import pandas as pd
+
+
+class BaseOptimizer(ABC):
+ """Abstract portfolio optimizer.
+
+ Subclasses implement ``_calc_weights``; the base handles:
+ - active asset selection
+ - rolling window slicing and sanity checks
+ - covariance matrix + NaN checks
+ - applying weights while preserving signal sign
+
+ Attributes:
+ lookback: Lookback days for covariance / mean.
+ params: Extra keyword args for subclasses.
+ """
+
+ def __init__(self, lookback: int = 60, **kwargs: Any) -> None:
+ self.lookback = lookback
+ self.params = kwargs
+
+ # ------------------------------------------------------------------
+ # Public entry
+ # ------------------------------------------------------------------
+
+ def optimize(
+ self,
+ ret: pd.DataFrame,
+ pos: pd.DataFrame,
+ dates: pd.DatetimeIndex,
+ ) -> pd.DataFrame:
+ """Apply optimizer to position weights.
+
+ Args:
+ ret: Return matrix (dates x codes).
+ pos: Raw signal positions.
+ dates: Date index aligned with ``pos``.
+
+ Returns:
+ Adjusted position matrix (not dollar-normalized).
+ """
+ codes = pos.columns.tolist()
+ if len(codes) <= 1:
+ return pos
+
+ result = pos.copy()
+ for i, dt in enumerate(dates):
+ active = [c for c in codes if abs(pos.at[dt, c]) > 1e-9]
+ if not active or i < self.lookback:
+ continue
+
+ window = ret.loc[:dt, active].tail(self.lookback)
+ if len(window) < max(self.lookback // 2, 5):
+ continue
+
+ ctx = self._build_context(window, active)
+ if ctx is None:
+ continue
+
+ weights = self._calc_weights(ctx)
+ if weights is None or len(weights) != len(active):
+ continue
+
+ for j, c in enumerate(active):
+ sign = np.sign(pos.at[dt, c])
+ result.at[dt, c] = sign * weights[j]
+
+ return result
+
+ # ------------------------------------------------------------------
+ # Hooks
+ # ------------------------------------------------------------------
+
+ def _build_context(
+ self, window: pd.DataFrame, active: List[str]
+ ) -> "Dict[str, Any] | None":
+ """Build context dict for ``_calc_weights``.
+
+ Default: covariance only. Override to add means, vols, etc.
+ Return None to skip the date.
+
+ Args:
+ window: Return window for active assets.
+ active: Active asset codes.
+
+ Returns:
+ Context dict with at least ``cov``, or None.
+ """
+ cov = window.cov().values
+ if np.isnan(cov).any():
+ return None
+ return {"cov": cov}
+
+ # ------------------------------------------------------------------
+ # Subclass API
+ # ------------------------------------------------------------------
+
+ @abstractmethod
+ def _calc_weights(self, ctx: Dict[str, Any]) -> np.ndarray:
+ """Compute target weights from context.
+
+ Args:
+ ctx: Dict from ``_build_context``.
+
+ Returns:
+ Weight vector (n,) summing to 1.
+ """
+
+ # ------------------------------------------------------------------
+ # Utilities
+ # ------------------------------------------------------------------
+
+ @staticmethod
+ def _normalize(w: np.ndarray) -> np.ndarray:
+ """Normalize nonnegative weights to sum 1."""
+ w = np.maximum(w, 0.0)
+ s = w.sum()
+ if s > 1e-12:
+ return w / s
+ return np.ones(len(w)) / len(w)
+
+ @staticmethod
+ def _equal_weight(n: int) -> np.ndarray:
+ """Equal weights for n assets."""
+ if n == 0:
+ return np.array([])
+ return np.ones(n) / n
diff --git a/agent/backtest/optimizers/equal_volatility.py b/agent/backtest/optimizers/equal_volatility.py
new file mode 100644
index 000000000..57423f560
--- /dev/null
+++ b/agent/backtest/optimizers/equal_volatility.py
@@ -0,0 +1,47 @@
+"""Equal-volatility (inverse-volatility) weighting.
+
+Higher weight on lower-volatility names so each asset contributes similar vol.
+"""
+
+from typing import Any, Dict, List
+
+import numpy as np
+import pandas as pd
+
+from backtest.optimizers.base import BaseOptimizer
+
+
+class EqualVolatilityOptimizer(BaseOptimizer):
+ """Inverse-volatility weights without a full covariance model."""
+
+ def _build_context(
+ self, window: pd.DataFrame, active: List[str]
+ ) -> "Dict[str, Any] | None":
+ """Rolling per-asset volatilities.
+
+ Args:
+ window: Return window.
+ active: Active codes.
+
+ Returns:
+ Context with ``vols`` or None.
+ """
+ vols = window.std()
+ if vols.isna().any() or (vols < 1e-12).any():
+ return None
+ return {"vols": vols}
+
+ def _calc_weights(self, ctx: Dict[str, Any]) -> np.ndarray:
+ """Inverse-volatility weights."""
+ inv_vol = 1.0 / ctx["vols"]
+ return (inv_vol / inv_vol.sum()).values
+
+
+def optimize(
+ ret: pd.DataFrame,
+ pos: pd.DataFrame,
+ dates: pd.DatetimeIndex,
+ lookback: int = 60,
+) -> pd.DataFrame:
+ """Module-level entry: inverse-volatility-adjusted positions."""
+ return EqualVolatilityOptimizer(lookback=lookback).optimize(ret, pos, dates)
diff --git a/agent/backtest/optimizers/max_diversification.py b/agent/backtest/optimizers/max_diversification.py
new file mode 100644
index 000000000..217f768f2
--- /dev/null
+++ b/agent/backtest/optimizers/max_diversification.py
@@ -0,0 +1,58 @@
+"""Maximum diversification ratio: maximize (w' sigma) / sqrt(w' Sigma w).
+
+``sigma`` is the vector of asset volatilities; ``Sigma`` is the covariance matrix.
+Higher DR means more diversification per unit of risk.
+"""
+
+from typing import Any, Dict
+
+import numpy as np
+import pandas as pd
+
+from backtest.optimizers.base import BaseOptimizer
+
+
+class MaxDiversificationOptimizer(BaseOptimizer):
+ """Maximize diversification ratio (Choueifaty & Coignard)."""
+
+ def _calc_weights(self, ctx: Dict[str, Any]) -> np.ndarray:
+ """SLSQP max-DR weights."""
+ from scipy.optimize import minimize
+
+ cov = ctx["cov"]
+ n = cov.shape[0]
+ if n == 0:
+ return self._equal_weight(0)
+
+ vols = np.sqrt(np.diag(cov))
+ if np.any(vols < 1e-12):
+ return self._equal_weight(n)
+
+ def neg_dr(w: np.ndarray) -> float:
+ port_vol = np.sqrt(w @ cov @ w)
+ if port_vol < 1e-12:
+ return 0.0
+ return -(w @ vols) / port_vol
+
+ result = minimize(
+ neg_dr,
+ self._equal_weight(n),
+ method="SLSQP",
+ bounds=[(0.0, 1.0)] * n,
+ constraints={"type": "eq", "fun": lambda w: w.sum() - 1.0},
+ options={"maxiter": 200, "ftol": 1e-10},
+ )
+
+ if result.success:
+ return self._normalize(result.x)
+ return self._equal_weight(n)
+
+
+def optimize(
+ ret: pd.DataFrame,
+ pos: pd.DataFrame,
+ dates: pd.DatetimeIndex,
+ lookback: int = 60,
+) -> pd.DataFrame:
+ """Module-level entry: max-diversification-adjusted positions."""
+ return MaxDiversificationOptimizer(lookback=lookback).optimize(ret, pos, dates)
diff --git a/agent/backtest/optimizers/mean_variance.py b/agent/backtest/optimizers/mean_variance.py
new file mode 100644
index 000000000..a54bb3cf9
--- /dev/null
+++ b/agent/backtest/optimizers/mean_variance.py
@@ -0,0 +1,69 @@
+"""Mean-variance (max Sharpe) optimizer: max (w'mu - r_f) / sqrt(w'Sigma w), w>=0, sum(w)=1."""
+
+from typing import Any, Dict, List
+
+import numpy as np
+import pandas as pd
+
+from backtest.optimizers.base import BaseOptimizer
+
+
+class MeanVarianceOptimizer(BaseOptimizer):
+ """Maximize Sharpe ratio subject to long-only simplex."""
+
+ def __init__(self, lookback: int = 60, risk_free: float = 0.0, **kwargs: Any) -> None:
+ super().__init__(lookback=lookback, **kwargs)
+ self.risk_free = risk_free
+
+ def _build_context(
+ self, window: pd.DataFrame, active: List[str]
+ ) -> "Dict[str, Any] | None":
+ """Mean vector and covariance."""
+ mu = window.mean().values
+ cov = window.cov().values
+ if np.isnan(cov).any() or np.isnan(mu).any():
+ return None
+ return {"cov": cov, "mu": mu}
+
+ def _calc_weights(self, ctx: Dict[str, Any]) -> np.ndarray:
+ """SLSQP max-Sharpe weights."""
+ from scipy.optimize import minimize
+
+ mu, cov = ctx["mu"], ctx["cov"]
+ n = len(mu)
+ if n == 0:
+ return self._equal_weight(0)
+
+ rf = self.risk_free
+
+ def neg_sharpe(w: np.ndarray) -> float:
+ port_vol = np.sqrt(w @ cov @ w)
+ if port_vol < 1e-12:
+ return 0.0
+ return -(w @ mu - rf) / port_vol
+
+ result = minimize(
+ neg_sharpe,
+ self._equal_weight(n),
+ method="SLSQP",
+ bounds=[(0.0, 1.0)] * n,
+ constraints={"type": "eq", "fun": lambda w: w.sum() - 1.0},
+ options={"maxiter": 200, "ftol": 1e-10},
+ )
+
+ if result.success:
+ return self._normalize(result.x)
+ return self._equal_weight(n)
+
+
+def optimize(
+ ret: pd.DataFrame,
+ pos: pd.DataFrame,
+ dates: pd.DatetimeIndex,
+ lookback: int = 60,
+ risk_free: float = 0.0,
+) -> pd.DataFrame:
+ """Module-level entry: max-Sharpe-adjusted positions."""
+ return MeanVarianceOptimizer(
+ lookback=lookback, risk_free=risk_free
+ ).optimize(ret, pos, dates)
diff --git a/agent/backtest/optimizers/risk_parity.py b/agent/backtest/optimizers/risk_parity.py
new file mode 100644
index 000000000..0cf584755
--- /dev/null
+++ b/agent/backtest/optimizers/risk_parity.py
@@ -0,0 +1,51 @@
+"""Risk parity: equalize marginal risk contributions.
+
+Iterative refinement so w_i * MRC_i is approximately equal across assets.
+"""
+
+from typing import Any, Dict
+
+import numpy as np
+import pandas as pd
+
+from backtest.optimizers.base import BaseOptimizer
+
+
+class RiskParityOptimizer(BaseOptimizer):
+ """Spinu (2013)-style inverse-vol seed + Newton-style refinement."""
+
+ def _calc_weights(self, ctx: Dict[str, Any]) -> np.ndarray:
+ """Equal risk contribution weights."""
+ cov = ctx["cov"]
+ n = cov.shape[0]
+ if n == 0:
+ return self._equal_weight(0)
+
+ vols = np.sqrt(np.diag(cov))
+ if np.any(vols < 1e-12):
+ return self._equal_weight(n)
+
+ inv_vol = 1.0 / vols
+ w = inv_vol / inv_vol.sum()
+
+ for _ in range(5):
+ port_vol = np.sqrt(w @ cov @ w)
+ if port_vol < 1e-12:
+ break
+ mrc = (cov @ w) / port_vol
+ rc = w * mrc
+ target = port_vol / n
+ w = w * (target / (rc + 1e-12))
+ w = w / w.sum()
+
+ return w
+
+
+def optimize(
+ ret: pd.DataFrame,
+ pos: pd.DataFrame,
+ dates: pd.DatetimeIndex,
+ lookback: int = 60,
+) -> pd.DataFrame:
+ """Module-level entry: risk-parity-adjusted positions."""
+ return RiskParityOptimizer(lookback=lookback).optimize(ret, pos, dates)
diff --git a/agent/backtest/runner.py b/agent/backtest/runner.py
new file mode 100644
index 000000000..7e254d959
--- /dev/null
+++ b/agent/backtest/runner.py
@@ -0,0 +1,261 @@
+"""Fixed backtest entrypoint: read config.json, select loader by source, import signal_engine, run engine.
+
+Supports ``source="auto"`` to route codes to loaders by symbol format.
+Supports ``interval`` for bar size (1m/5m/15m/30m/1H/4H/1D, default 1D).
+Supports ``engine`` for backtest engine (daily/options, default daily).
+
+Usage: ``python -m backtest.runner <run_dir>``
+"""
+
+import importlib.util
+import json
+import re
+import sys
+from pathlib import Path
+from typing import Dict, List
+
+
+def _load_module_from_file(file_path: Path, module_name: str):
+ """Load a Python module from a file path via importlib.
+
+ Args:
+ file_path: Path to the ``.py`` file.
+ module_name: Logical module name.
+
+ Returns:
+ Loaded module object.
+ """
+ spec = importlib.util.spec_from_file_location(module_name, file_path)
+ module = importlib.util.module_from_spec(spec)
+ sys.modules[module_name] = module
+ spec.loader.exec_module(module)
+ return module
+
+
+# --- Market detection ---
+
+_PATTERNS = [
+ (re.compile(r"^\d{6}\.(SZ|SH|BJ)$", re.I), "tushare"),
+ (re.compile(r"^[A-Z]+\.US$", re.I), "yfinance"),
+ (re.compile(r"^\d{3,5}\.HK$", re.I), "yfinance"),
+ (re.compile(r"^[A-Z]+-USDT$", re.I), "okx"),
+]
+
+
+def _detect_source(code: str) -> str:
+ """Infer data source from symbol format.
+
+ Args:
+ code: Ticker / symbol string.
+
+ Returns:
+ Source name (tushare/okx/yfinance); unknown defaults to ``tushare``.
+ """
+ for pattern, source in _PATTERNS:
+ if pattern.match(code):
+ return source
+ return "tushare"
+
+
+def _group_codes_by_source(codes: List[str]) -> Dict[str, List[str]]:
+ """Group symbols by inferred source.
+
+ Args:
+ codes: List of symbol strings.
+
+ Returns:
+ Mapping source -> list of codes.
+ """
+ groups: Dict[str, List[str]] = {}
+ for code in codes:
+ src = _detect_source(code)
+ groups.setdefault(src, []).append(code)
+ return groups
+
+
+def _get_loader(source: str):
+ """Return the DataLoader class for a source name.
+
+ Args:
+ source: Source name.
+
+ Returns:
+ DataLoader class.
+ """
+ if source == "okx":
+ from backtest.loaders.okx import DataLoader
+ elif source == "yfinance":
+ from backtest.loaders.yfinance_loader import DataLoader
+ elif source == "tushare":
+ from backtest.loaders.tushare import DataLoader
+ else:
+ from backtest.loaders.tushare import DataLoader
+ return DataLoader
+
+
+def _normalize_codes(codes: List[str], source: str) -> List[str]:
+ """Normalize symbol strings for a source.
+
+ Args:
+ codes: Raw code list.
+ source: Data source.
+
+ Returns:
+ Normalized codes.
+ """
+ if source == "okx":
+ return [c.replace("/", "-").upper() for c in codes]
+ return codes
+
+
+# --- Main entry ---
+
+def main(run_dir: Path) -> None:
+ """Load config, fetch data, run the selected backtest engine.
+
+ With ``source="auto"``, routes each code through the appropriate loader.
+
+ Args:
+ run_dir: Run directory containing ``config.json`` and ``code/signal_engine.py``.
+ """
+ config_path = run_dir / "config.json"
+ if not config_path.exists():
+ print(json.dumps({"error": "config.json not found"}))
+ sys.exit(1)
+
+ config = json.loads(config_path.read_text(encoding="utf-8"))
+ source = config.get("source", "tushare")
+ codes = config.get("codes", [])
+
+ # Load signal engine
+ signal_path = run_dir / "code" / "signal_engine.py"
+ if not signal_path.exists():
+ print(json.dumps({"error": "code/signal_engine.py not found"}))
+ sys.exit(1)
+
+ signal_module = _load_module_from_file(signal_path, "signal_engine")
+ engine_cls = getattr(signal_module, "SignalEngine", None)
+ if engine_cls is None:
+ print(json.dumps({"error": "SignalEngine class not found in signal_engine.py"}))
+ sys.exit(1)
+
+ # Data: auto split vs single loader
+ interval = config.get("interval", "1D")
+
+ if source == "auto":
+ data_map = _fetch_auto(codes, config, interval)
+ else:
+ codes = _normalize_codes(codes, source)
+ config["codes"] = codes
+ LoaderCls = _get_loader(source)
+ loader = LoaderCls()
+ data_map = loader.fetch(
+ codes,
+ config.get("start_date", ""),
+ config.get("end_date", ""),
+ fields=config.get("extra_fields") or None,
+ interval=interval,
+ )
+ if not data_map:
+ print(json.dumps({"error": "No data fetched"}))
+ sys.exit(1)
+
+ # Engine
+ engine_type = config.get("engine", "daily")
+ run_backtest_fn = _get_engine(engine_type)
+
+ engine = engine_cls()
+
+ # Annualization bars
+ effective_source = _detect_primary_source(codes, source)
+ from backtest.engines.daily_portfolio import _calc_bars_per_year
+ bars_per_year = _calc_bars_per_year(interval, effective_source)
+
+ # Auto mode: wrap preloaded data in a dummy loader
+ if source == "auto":
+ loader = _AutoLoader(data_map)
+ run_backtest_fn(config, loader, engine, run_dir, bars_per_year=bars_per_year)
+ else:
+ run_backtest_fn(config, loader, engine, run_dir, bars_per_year=bars_per_year)
+
+
+def _get_engine(engine_type: str):
+ """Resolve ``run_backtest`` / ``run_options_backtest`` by engine name.
+
+ Args:
+ engine_type: ``daily`` or ``options``.
+
+ Returns:
+ Callable backtest entry.
+ """
+ if engine_type == "options":
+ from backtest.engines.options_portfolio import run_options_backtest
+ return run_options_backtest
+ else:
+ from backtest.engines.daily_portfolio import run_backtest
+ return run_backtest
+
+
+def _detect_primary_source(codes: List[str], source: str) -> str:
+ """Pick primary source for annualization (e.g. bars per year).
+
+ Args:
+ codes: All symbols.
+ source: Config ``source`` field.
+
+ Returns:
+ Dominant source name.
+ """
+ if source != "auto":
+ return source
+ groups = _group_codes_by_source(codes)
+ if len(groups) == 1:
+ return list(groups.keys())[0]
+ # Mixed: use the source with the most symbols
+ return max(groups, key=lambda s: len(groups[s]))
+
+
+def _fetch_auto(codes: List[str], config: dict, interval: str = "1D") -> dict:
+ """Auto mode: fetch per source and merge into one data map.
+
+ Args:
+ codes: All symbols.
+ config: Backtest config dict.
+ interval: Bar interval string.
+
+ Returns:
+ Merged ``code -> DataFrame`` map.
+ """
+ groups = _group_codes_by_source(codes)
+ merged = {}
+ start_date = config.get("start_date", "")
+ end_date = config.get("end_date", "")
+
+ for src, src_codes in groups.items():
+ src_codes = _normalize_codes(src_codes, src)
+ LoaderCls = _get_loader(src)
+ loader = LoaderCls()
+ # Only tushare supports extra_fields
+ fields = config.get("extra_fields") if src == "tushare" else None
+ result = loader.fetch(src_codes, start_date, end_date, fields=fields, interval=interval)
+ merged.update(result)
+
+ return merged
+
+
+class _AutoLoader:
+ """Dummy loader for auto mode: returns pre-fetched data maps."""
+
+ def __init__(self, data_map: dict):
+ self._data = data_map
+
+ def fetch(self, codes, start_date, end_date, fields=None, interval="1D"):
+ """Return preloaded rows for requested codes."""
+ return {c: df for c, df in self._data.items() if c in codes}
+
+
+if __name__ == "__main__":
+ if len(sys.argv) < 2:
+ print(f"Usage: python -m backtest.runner <run_dir>")
+ sys.exit(1)
+ main(Path(sys.argv[1]))
diff --git a/agent/cli.py b/agent/cli.py
new file mode 100644
index 000000000..0719a9e19
--- /dev/null
+++ b/agent/cli.py
@@ -0,0 +1,1521 @@
+#!/usr/bin/env python3
+"""Vibe-Trading CLI โ€” natural-language finance research & backtesting.
+
+Usage:
+ vibe-trading Interactive mode (default)
+ vibe-trading -p "Backtest AAPL MACD" Single run
+ vibe-trading serve --port 8899 Start API server
+ vibe-trading chat Interactive mode
+ vibe-trading list List runs
+ vibe-trading show <run_id> Show run details
+"""
+
+from __future__ import annotations
+
+import argparse
+import csv
+import json
+import os
+import re
+import shutil
+import sys
+import time
+import uuid
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+import warnings
+warnings.filterwarnings("ignore", message=".*Importing verbose from langchain.*")
+warnings.filterwarnings("ignore", category=DeprecationWarning, module="langchain")
+
+for _s in ("stdout", "stderr"):
+ _r = getattr(getattr(sys, _s, None), "reconfigure", None)
+ if callable(_r):
+ _r(encoding="utf-8", errors="replace")
+
+from rich.console import Console
+from rich.panel import Panel
+from rich.prompt import Prompt
+from rich.syntax import Syntax
+from rich.table import Table
+
+console = Console()
+AGENT_DIR = Path(__file__).resolve().parent
+RUNS_DIR = AGENT_DIR / "runs"
+SWARM_DIR = AGENT_DIR / ".swarm" / "runs"
+SESSIONS_DIR = AGENT_DIR / "sessions"
+UPLOADS_DIR = AGENT_DIR / "uploads"
+
+EXIT_SUCCESS = 0
+EXIT_RUN_FAILED = 1
+EXIT_USAGE_ERROR = 2
+RICH_TAG_PATTERN = re.compile(r"\[/?[^\]]+\]")
+
+_VERSION = "0.1.0"
+
+# Agent color assignments for swarm display
+_AGENT_STYLES = ["cyan", "magenta", "green", "yellow", "blue", "bright_red", "bright_cyan", "bright_magenta"]
+_agent_color_map: dict[str, str] = {}
+
+
+def serve_main(argv: list[str] | None = None) -> int:
+ """Delegate server startup to api_server."""
+ from api_server import serve_main as api_serve_main
+
+ return api_serve_main(argv)
+
+
+def _strip_rich_tags(text: str) -> str:
+ """Remove Rich markup from plain-text output."""
+ return RICH_TAG_PATTERN.sub("", text)
+
+
+def _print_json_result(result: dict) -> None:
+ """Print a machine-readable run summary."""
+ payload = {
+ "status": result.get("status", "unknown"),
+ "run_id": result.get("run_id"),
+ "run_dir": result.get("run_dir"),
+ "reason": result.get("reason"),
+ }
+ print(json.dumps(payload, ensure_ascii=False))
+
+
+def _result_exit_code(result: dict) -> int:
+ """Map run results to stable exit codes."""
+ return EXIT_SUCCESS if result.get("status") == "success" else EXIT_RUN_FAILED
+
+
+def _coerce_exit_code(value: Optional[int]) -> int:
+ """Normalize command return values to an integer exit code."""
+ return EXIT_SUCCESS if value is None else int(value)
+
+
+def _read_prompt_source(
+ prompt: Optional[str],
+ prompt_file: Optional[Path],
+ *,
+ no_rich: bool,
+ allow_interactive: bool = True,
+) -> tuple[Optional[str], Optional[str]]:
+ """Resolve prompt text from CLI args, file, stdin, or interactive input."""
+ if prompt is not None:
+ return prompt.strip(), None
+
+ if prompt_file is not None:
+ try:
+ return prompt_file.read_text(encoding="utf-8").strip(), None
+ except OSError as exc:
+ return None, f"Failed to read prompt file: {exc}"
+
+ if not sys.stdin.isatty():
+ return sys.stdin.read().strip(), None
+
+ if not allow_interactive:
+ return None, "A prompt is required."
+
+ try:
+ if no_rich:
+ return input("Enter strategy request: ").strip(), None
+ return Prompt.ask("Enter strategy request").strip(), None
+ except (EOFError, KeyboardInterrupt):
+ return None, "Prompt input cancelled."
+
+
+# ---------------------------------------------------------------------------
+# Helpers
+# ---------------------------------------------------------------------------
+
+def _read_json(path: Path) -> dict:
+ """Safely read JSON."""
+ if not path.exists():
+ return {}
+ try:
+ return json.loads(path.read_text(encoding="utf-8"))
+ except (json.JSONDecodeError, OSError):
+ return {}
+
+
+def _read_metrics(path: Path) -> dict:
+ """Read metrics from metrics.csv, return formatted string dict."""
+ if not path.exists():
+ return {}
+ try:
+ with path.open(encoding="utf-8") as f:
+ rows = list(csv.DictReader(f))
+ if not rows:
+ return {}
+ out = {}
+ for k, v in rows[0].items():
+ if not v:
+ continue
+ try:
+ fv = float(v)
+ out[k] = f"{fv:.4f}" if abs(fv) < 100 else f"{fv:.0f}"
+ except ValueError:
+ out[k] = v
+ return out
+ except Exception:
+ return {}
+
+
+# ---------------------------------------------------------------------------
+# Agent execution core
+# ---------------------------------------------------------------------------
+
+def _format_tool_call_args(tool: str, args: Dict[str, str]) -> str:
+ """Smart-format tool argument summary."""
+ if tool == "load_skill":
+ return f'("{args.get("name", "")}")'
+ if tool in ("write_file", "read_file", "edit_file"):
+ return f' {args.get("path", args.get("file_path", ""))}'
+ if tool in ("bash", "background_run"):
+ cmd = args.get("command", "")[:80]
+ return f' [yellow]{cmd}[/yellow]'
+ if tool == "subagent":
+ desc = args.get("description", args.get("prompt", "")[:60])
+ return f' [magenta]{desc}[/magenta]'
+ if tool == "task_create":
+ return f' "{args.get("subject", "")}"'
+ if tool == "task_update":
+ return f' #{args.get("task_id", "")} -> {args.get("status", "")}'
+ if tool == "check_background":
+ tid = args.get("task_id", "")
+ return f' {tid}' if tid else ""
+ if tool in ("backtest", "compact", "task_list"):
+ return ""
+ for v in args.values():
+ if v and v != "None":
+ return f" {v[:60]}"
+ return ""
+
+
+def _format_tool_result_preview(tool: str, status: str, preview: str) -> str:
+ """Smart-format tool result preview."""
+ if status != "ok":
+ return f"[red]{preview[:80]}[/red]"
+ if tool == "backtest":
+ sharpe = re.search(r'"sharpe":\s*([\d.eE+-]+)', preview)
+ ret = re.search(r'"total_return":\s*([\d.eE+-]+)', preview)
+ parts = []
+ if sharpe:
+ parts.append(f"sharpe={sharpe.group(1)}")
+ if ret:
+ parts.append(f"return={float(ret.group(1))*100:.1f}%")
+ return ", ".join(parts) if parts else ""
+ if tool in ("bash", "background_run"):
+ if "OK" in preview[:50]:
+ return "OK"
+ return preview[:60].replace("\n", " ")
+ if tool == "subagent":
+ m = re.search(r'"summary":\s*"(.{0,80})', preview)
+ return m.group(1).rstrip('"') if m else ""
+ if tool in ("task_create", "task_update"):
+ return preview[:60].replace("\n", " ")
+ if tool in ("read_file", "load_skill", "compact"):
+ return ""
+ return ""
+
+
+def _run_agent(
+ prompt: str,
+ history: Optional[List[Dict]] = None,
+ run_dir_override: Optional[str] = None,
+ max_iter: int = 50,
+ *,
+ no_rich: bool = False,
+ stream_output: bool = True,
+) -> dict:
+ """Build AgentLoop and execute, return result dict."""
+ from src.tools import build_registry
+ from src.providers.chat import ChatLLM
+ from src.agent.loop import AgentLoop
+
+ def on_event(event_type: str, data: Dict[str, Any]) -> None:
+ if not stream_output:
+ return
+ if no_rich and event_type == "thinking_done":
+ print()
+ return
+ if no_rich and event_type == "tool_call":
+ tool = data.get("tool", "")
+ args = data.get("arguments", {})
+ args_preview = _format_tool_call_args(tool, args)
+ print(f" - {tool}{_strip_rich_tags(args_preview)}", end="")
+ return
+ if no_rich and event_type == "tool_result":
+ tool = data.get("tool", "")
+ status = data.get("status", "ok")
+ elapsed_ms = data.get("elapsed_ms", 0)
+ elapsed_s = elapsed_ms / 1000
+ preview = _format_tool_result_preview(tool, status, data.get("preview", ""))
+ suffix = f" {preview}" if preview else ""
+ mark = "OK" if status == "ok" else "FAIL"
+ print(f" {mark} {elapsed_s:.1f}s{_strip_rich_tags(suffix)}")
+ return
+ if no_rich and event_type == "compact":
+ tokens = data.get("tokens_before", "?")
+ print(f"\n context compressed ({tokens} tokens -> summary)\n")
+ return
+ if event_type == "text_delta":
+ if no_rich:
+ print(data.get("delta", ""), end="")
+ else:
+ console.print(data.get("delta", ""), end="", style="dim")
+ elif event_type == "thinking_done":
+ console.print()
+ elif event_type == "tool_call":
+ tool = data.get("tool", "")
+ args = data.get("arguments", {})
+ args_preview = _format_tool_call_args(tool, args)
+ console.print(f" [cyan]\u25b6 {tool}[/cyan]{args_preview}", end="")
+ elif event_type == "tool_result":
+ tool = data.get("tool", "")
+ status = data.get("status", "ok")
+ elapsed_ms = data.get("elapsed_ms", 0)
+ elapsed_s = elapsed_ms / 1000
+ ok = status == "ok"
+ mark = "[green]\u2713[/green]" if ok else "[red]\u2717[/red]"
+ preview = _format_tool_result_preview(tool, status, data.get("preview", ""))
+ suffix = f" {preview}" if preview else ""
+ console.print(f" {mark} [dim]{elapsed_s:.1f}s[/dim]{suffix}")
+ elif event_type == "compact":
+ tokens = data.get("tokens_before", "?")
+ console.print(f"\n [yellow]\u27f3 context compressed[/yellow] [dim]({tokens} tokens \u2192 summary)[/dim]\n")
+
+ agent = AgentLoop(
+ registry=build_registry(),
+ llm=ChatLLM(),
+ event_callback=on_event,
+ max_iterations=max_iter,
+ )
+ if run_dir_override:
+ agent.memory.run_dir = run_dir_override
+
+ return agent.run(user_message=prompt, history=history)
+
+
+def _print_result(result: dict, elapsed: float, *, no_rich: bool = False) -> None:
+ """Print execution result panel."""
+ status = result.get("status", "unknown")
+ ok = status == "success"
+ style = "green" if ok else "red"
+
+ lines = [f"Status: [bold {style}]{status.upper()}[/bold {style}] Time: {elapsed:.1f}s"]
+
+ if result.get("run_id"):
+ lines.append(f"ID: {result['run_id']}")
+
+ review = result.get("review")
+ if review and review.get("overall_score") is not None:
+ check = "\u2713" if review.get("passed") else "\u2717"
+ lines.append(f"Review: {review['overall_score']}pts {check}")
+
+ run_dir = result.get("run_dir")
+ if run_dir:
+ m = _read_metrics(Path(run_dir) / "artifacts" / "metrics.csv")
+ parts = [f"{k}={m[k]}" for k in ("total_return", "sharpe", "max_drawdown", "trade_count") if k in m]
+ if parts:
+ lines.append(f"Metrics: {', '.join(parts)}")
+
+ if result.get("reason"):
+ lines.append(f"Reason: {result['reason']}")
+
+ console.print(Panel("\n".join(lines), border_style=style, title="Result"))
+
+ content = result.get("content", "").strip()
+ if content:
+ console.print(f"\n{content}")
+
+
+# ---------------------------------------------------------------------------
+# Subcommands
+# ---------------------------------------------------------------------------
+
+def cmd_run(prompt: str, max_iter: int, *, json_mode: bool = False, no_rich: bool = False) -> int:
+ """Single run."""
+ if not json_mode:
+ preview = prompt[:120]
+ suffix = "..." if len(prompt) > 120 else ""
+ if no_rich:
+ print(f"Prompt: {preview}{suffix}\n")
+ else:
+ console.print(f"[dim]Prompt:[/dim] {preview}{suffix}\n")
+ start = time.perf_counter()
+ try:
+ result = _run_agent(prompt, max_iter=max_iter, no_rich=no_rich, stream_output=not json_mode)
+ except KeyboardInterrupt:
+ if json_mode:
+ _print_json_result({"status": "cancelled", "run_id": None, "run_dir": None, "reason": "Interrupted"})
+ return EXIT_RUN_FAILED
+ if no_rich:
+ print("\nInterrupted")
+ return EXIT_RUN_FAILED
+ console.print("\n[yellow]Interrupted[/yellow]")
+ return EXIT_RUN_FAILED
+ if json_mode:
+ _print_json_result(result)
+ return _result_exit_code(result)
+ _print_result(result, time.perf_counter() - start, no_rich=no_rich)
+ if result.get("run_id"):
+ tip = f"--show {result['run_id']} | --continue {result['run_id']} \"...\" | --code {result['run_id']}"
+ if no_rich:
+ print(tip)
+ else:
+ console.print(f"[dim]{tip}[/dim]")
+ return _result_exit_code(result)
+
+
+def _build_history_from_trace(run_dir: Path) -> List[Dict[str, str]]:
+ """Build conversation history from trace.jsonl."""
+ from src.agent.trace import TraceWriter
+ entries = TraceWriter.read(run_dir)
+ history: List[Dict[str, str]] = []
+ for e in entries:
+ if e.get("type") == "start" and e.get("prompt"):
+ history.append({"role": "user", "content": e["prompt"]})
+ elif e.get("type") == "answer" and e.get("content"):
+ history.append({"role": "assistant", "content": e["content"]})
+ return history
+
+
+def cmd_continue(
+ run_id: str,
+ prompt: str,
+ max_iter: int,
+ *,
+ json_mode: bool = False,
+ no_rich: bool = False,
+) -> int:
+ """Continue an existing run."""
+ run_dir = RUNS_DIR / run_id
+ if not run_dir.exists():
+ if no_rich:
+ print(f"Run {run_id} not found")
+ return EXIT_USAGE_ERROR
+ console.print(f"[red]Run {run_id} not found[/red]")
+ return EXIT_USAGE_ERROR
+
+ history = _build_history_from_trace(run_dir)
+ if not json_mode and no_rich:
+ print(f"Continue {run_id}: {prompt[:120]}\n")
+ if json_mode or no_rich:
+ start = time.perf_counter()
+ try:
+ result = _run_agent(
+ prompt,
+ history=history,
+ run_dir_override=str(run_dir),
+ max_iter=max_iter,
+ no_rich=no_rich,
+ stream_output=not json_mode,
+ )
+ except KeyboardInterrupt:
+ if json_mode:
+ _print_json_result(
+ {"status": "cancelled", "run_id": run_id, "run_dir": str(run_dir), "reason": "Interrupted"}
+ )
+ else:
+ print("\nInterrupted")
+ return EXIT_RUN_FAILED
+ if json_mode:
+ _print_json_result(result)
+ return _result_exit_code(result)
+ _print_result(result, time.perf_counter() - start, no_rich=True)
+ return _result_exit_code(result)
+
+ console.print(f"[dim]Continue {run_id}:[/dim] {prompt[:120]}\n")
+ start = time.perf_counter()
+ try:
+ result = _run_agent(prompt, history=history, run_dir_override=str(run_dir), max_iter=max_iter)
+ except KeyboardInterrupt:
+ console.print("\n[yellow]Interrupted[/yellow]")
+ return EXIT_RUN_FAILED
+ _print_result(result, time.perf_counter() - start)
+ return _result_exit_code(result)
+
+
+# ---------------------------------------------------------------------------
+# Interactive mode (Welcome + Slash commands + Swarm streaming)
+# ---------------------------------------------------------------------------
+
+def _print_welcome() -> None:
+ """Print the welcome screen."""
+ welcome = (
+ f"[bold cyan]Vibe-Trading[/bold cyan] [dim]v{_VERSION}[/dim]\n"
+ "[dim]Vibe trading with your professional financial agent team[/dim]\n"
+ "\n"
+ "Type a natural-language request to start, or use [bold]/commands[/bold]:\n"
+ "\n"
+ " [cyan]/skills[/cyan] List available skills [cyan]/swarm[/cyan] Agent team presets\n"
+ " [cyan]/list[/cyan] Recent runs [cyan]/settings[/cyan] Runtime config\n"
+ " [cyan]/help[/cyan] All commands [cyan]/quit[/cyan] Exit"
+ )
+ console.print(Panel(welcome, border_style="cyan", padding=(1, 2)))
+
+
+def _print_help() -> None:
+ """Print all available slash commands."""
+ table = Table(title="Commands", show_lines=False, border_style="dim")
+ table.add_column("Command", style="cyan", no_wrap=True)
+ table.add_column("Description")
+
+ cmds = [
+ ("/help", "Show this help"),
+ ("/skills", "List all skills"),
+ ("/list", "List recent runs"),
+ ("/show <run_id>", "Show run details"),
+ ("/code <run_id>", "Show generated code"),
+ ("/trace <run_id>", "Replay run trace"),
+ ("/continue <run_id> <prompt>", "Continue an existing run"),
+ ("/swarm", "List swarm team presets"),
+ ("/swarm run <preset> {vars}", "Run a swarm team"),
+ ("/swarm list", "List swarm run history"),
+ ("/swarm show <run_id>", "Show swarm run details"),
+ ("/swarm cancel <run_id>", "Cancel a swarm run"),
+ ("/sessions", "List chat sessions"),
+ ("/settings", "Show runtime settings"),
+ ("/clear", "Clear screen"),
+ ("/quit", "Exit"),
+ ]
+ for cmd, desc in cmds:
+ table.add_row(cmd, desc)
+
+ console.print(table)
+
+
+def _show_settings() -> None:
+ """Show current runtime settings."""
+ table = Table(title="Settings", show_lines=False, border_style="dim")
+ table.add_column("Key", style="cyan")
+ table.add_column("Value")
+
+ settings = {
+ "Provider": os.getenv("LANGCHAIN_PROVIDER", "(not set)"),
+ "Model": os.getenv("LANGCHAIN_MODEL_NAME", "(not set)"),
+ "Temperature": os.getenv("LANGCHAIN_TEMPERATURE", "0.0"),
+ "Timeout": os.getenv("TIMEOUT_SECONDS", "2400") + "s",
+ "Tushare Token": "***" if os.getenv("TUSHARE_TOKEN") else "(not set)",
+ }
+ for k, v in settings.items():
+ table.add_row(k, v)
+
+ console.print(table)
+
+
+def _handle_slash_command(input_str: str, *, max_iter: int) -> None:
+ """Parse and route a slash command."""
+ parts = input_str.split(maxsplit=1)
+ cmd = parts[0].lower()
+ arg = parts[1].strip() if len(parts) > 1 else ""
+
+ if cmd == "/help":
+ _print_help()
+ elif cmd == "/skills":
+ cmd_skills()
+ elif cmd == "/list":
+ cmd_list()
+ elif cmd == "/show":
+ if arg:
+ cmd_show(arg)
+ else:
+ console.print("[red]Usage: /show <run_id>[/red]")
+ elif cmd == "/code":
+ if arg:
+ cmd_code(arg)
+ else:
+ console.print("[red]Usage: /code <run_id>[/red]")
+ elif cmd == "/trace":
+ if arg:
+ cmd_trace(arg)
+ else:
+ console.print("[red]Usage: /trace <run_id>[/red]")
+ elif cmd == "/continue":
+ cont_parts = arg.split(maxsplit=1)
+ if len(cont_parts) >= 2:
+ cmd_continue(cont_parts[0], cont_parts[1], max_iter)
+ else:
+ console.print("[red]Usage: /continue <run_id> <prompt>[/red]")
+ elif cmd == "/swarm":
+ _handle_swarm_command(arg)
+ elif cmd == "/sessions":
+ cmd_sessions()
+ elif cmd == "/settings":
+ _show_settings()
+ elif cmd == "/clear":
+ console.clear()
+ _print_welcome()
+ elif cmd in ("/quit", "/exit"):
+ raise EOFError
+ else:
+ console.print(f"[red]Unknown command: {cmd}[/red] โ€” type [cyan]/help[/cyan] for available commands")
+
+
+def _handle_swarm_command(arg: str) -> None:
+ """Route swarm sub-commands."""
+ if not arg:
+ cmd_swarm_presets()
+ return
+
+ parts = arg.split(maxsplit=1)
+ sub = parts[0].lower()
+ sub_arg = parts[1].strip() if len(parts) > 1 else ""
+
+ if sub == "run":
+ run_parts = sub_arg.split(maxsplit=1)
+ if not run_parts:
+ console.print("[red]Usage: /swarm run <preset> [vars_json][/red]")
+ return
+ preset = run_parts[0]
+ vars_json = run_parts[1] if len(run_parts) > 1 else None
+ cmd_swarm_run_live(preset, vars_json)
+ elif sub == "list":
+ cmd_swarm_list()
+ elif sub == "show":
+ if sub_arg:
+ cmd_swarm_show(sub_arg)
+ else:
+ console.print("[red]Usage: /swarm show <run_id>[/red]")
+ elif sub == "cancel":
+ if sub_arg:
+ cmd_swarm_cancel(sub_arg)
+ else:
+ console.print("[red]Usage: /swarm cancel <run_id>[/red]")
+ else:
+ console.print(f"[red]Unknown swarm command: {sub}[/red]")
+
+
+def cmd_interactive(max_iter: int) -> None:
+ """Interactive mode with welcome screen, slash commands, and agent conversation."""
+ _print_welcome()
+ history: List[Dict[str, str]] = []
+
+ while True:
+ try:
+ user_input = Prompt.ask("\n[bold]>[/bold]").strip()
+ except (KeyboardInterrupt, EOFError):
+ break
+
+ if not user_input:
+ continue
+ if user_input.lower() in ("q", "quit", "exit"):
+ break
+
+ # Slash commands
+ if user_input.startswith("/"):
+ try:
+ _handle_slash_command(user_input, max_iter=max_iter)
+ except EOFError:
+ break
+ continue
+
+ # Natural language -> agent
+ start = time.perf_counter()
+ try:
+ result = _run_agent(user_input, history=history[-6:], max_iter=max_iter)
+ except KeyboardInterrupt:
+ console.print("\n[yellow]Interrupted[/yellow]")
+ continue
+
+ _print_result(result, time.perf_counter() - start)
+ history.append({"role": "user", "content": user_input})
+ if result.get("content"):
+ history.append({"role": "assistant", "content": result["content"]})
+
+ console.print("[dim]Goodbye[/dim]")
+
+
+# ---------------------------------------------------------------------------
+# Swarm live streaming (Rich Live panel)
+# ---------------------------------------------------------------------------
+
+def _get_agent_style(agent_id: str) -> str:
+ """Assign a consistent color to each agent."""
+ if agent_id not in _agent_color_map:
+ idx = len(_agent_color_map) % len(_AGENT_STYLES)
+ _agent_color_map[agent_id] = _AGENT_STYLES[idx]
+ return _agent_color_map[agent_id]
+
+
+class _SwarmDashboard:
+ """Track swarm state and render a Rich Live panel."""
+
+ def __init__(self, preset: str, run_id: str) -> None:
+ self.preset = preset
+ self.run_id = run_id
+ self.start_time = time.monotonic()
+ self.current_layer = 0
+ self.total_layers = 0
+ self.agents: Dict[str, Dict[str, Any]] = {}
+ self.agent_order: List[str] = []
+ self.completed_summaries: List[tuple[str, str]] = []
+ self.finished = False
+ self.final_status = ""
+
+ def _ensure_agent(self, agent_id: str) -> str:
+ """Register an agent by its ID if not already tracked. Return its key."""
+ if agent_id in self.agents:
+ return agent_id
+ self.agents[agent_id] = {
+ "name": agent_id, "status": "waiting",
+ "tool": "\u2014", "elapsed": 0.0, "iters": 0,
+ "started_at": 0.0, "layer": self.current_layer,
+ "last_text": "",
+ }
+ self.agent_order.append(agent_id)
+ return agent_id
+
+ def handle_event(self, event) -> None:
+ """Process a swarm event and update internal state."""
+ agent_id = event.agent_id or ""
+ etype = event.type
+ data = event.data
+
+ if etype == "layer_started":
+ self.current_layer = data.get("layer", 0)
+ self.total_layers = max(self.total_layers, self.current_layer + 1)
+ return
+
+ if etype == "run_completed":
+ self.finished = True
+ self.final_status = data.get("status", "unknown")
+ return
+
+ if not agent_id:
+ return
+
+ key = self._ensure_agent(agent_id)
+ agent = self.agents[key]
+
+ if etype == "task_started":
+ agent["status"] = "running"
+ agent["started_at"] = time.monotonic()
+ elif etype == "tool_call":
+ agent["tool"] = data.get("tool", "?")
+ agent["iters"] += 1
+ elif etype == "tool_result":
+ agent["elapsed"] = (time.monotonic() - agent["started_at"]) if agent["started_at"] else 0
+ tool_name = agent["tool"]
+ status_char = "\u2713" if data.get("status", "ok") == "ok" else "\u2717"
+ agent["tool"] = f"{tool_name} {status_char}"
+ elif etype == "task_completed":
+ agent["status"] = "done"
+ agent["elapsed"] = (time.monotonic() - agent["started_at"]) if agent["started_at"] else 0
+ agent["iters"] = data.get("iterations", agent["iters"])
+ summary = data.get("summary", "")
+ if summary:
+ self.completed_summaries.append((agent["name"], summary))
+ elif etype == "task_failed":
+ agent["status"] = "failed"
+ agent["elapsed"] = (time.monotonic() - agent["started_at"]) if agent["started_at"] else 0
+ error = data.get("error", "")[:80]
+ self.completed_summaries.append((agent["name"], f"[red]FAILED: {error}[/red]"))
+ elif etype == "task_retry":
+ attempt = data.get("attempt", "?")
+ agent["status"] = "retry"
+ agent["tool"] = f"retry {attempt}"
+ elif etype == "worker_text":
+ content = data.get("content", "").strip()
+ if content:
+ # Keep last non-empty line for display
+ last_line = content.split("\n")[-1].strip()
+ if last_line:
+ agent["last_text"] = last_line[:60]
+
+ def build_table(self) -> Table:
+ """Build the Rich Table for the live panel."""
+ elapsed_total = time.monotonic() - self.start_time
+ mins, secs = divmod(int(elapsed_total), 60)
+
+ if self.finished:
+ color = "green" if self.final_status == "completed" else "red"
+ title_status = f"[{color}]{self.final_status.upper()}[/{color}]"
+ else:
+ title_status = f"[cyan]RUNNING[/cyan]"
+
+ title = f"{self.preset} {title_status} {mins}:{secs:02d}"
+
+ table = Table(
+ title=title,
+ border_style="cyan" if not self.finished else ("green" if self.final_status == "completed" else "red"),
+ show_lines=False,
+ pad_edge=True,
+ expand=True,
+ )
+ table.add_column("Agent", style="bold", width=20, no_wrap=True)
+ table.add_column("Status", width=12, justify="center")
+ table.add_column("Tool", width=14, no_wrap=True)
+ table.add_column("Time", width=7, justify="right")
+ table.add_column("Iters", width=5, justify="right")
+ table.add_column("Output", no_wrap=True, style="dim")
+
+ for agent_key in self.agent_order:
+ agent = self.agents[agent_key]
+ name = agent["name"]
+ style = _get_agent_style(name)
+ styled_name = f"[{style}]{name}[/{style}]"
+
+ status = agent["status"]
+ if status == "running":
+ status_str = "[\u25b6 running]"
+ elapsed = time.monotonic() - agent["started_at"] if agent["started_at"] else 0
+ elif status == "done":
+ status_str = "[green][\u2713 done ][/green]"
+ elapsed = agent["elapsed"]
+ elif status == "failed":
+ status_str = "[red][\u2717 failed][/red]"
+ elapsed = agent["elapsed"]
+ elif status == "retry":
+ status_str = "[yellow][\u21bb retry ][/yellow]"
+ elapsed = time.monotonic() - agent["started_at"] if agent["started_at"] else 0
+ else:
+ status_str = "[dim][\u25cb waiting][/dim]"
+ elapsed = 0
+
+ time_str = f"{elapsed:.1f}s" if elapsed > 0 else "\u2014"
+ iter_str = str(agent["iters"]) if agent["iters"] > 0 else "\u2014"
+ last_text = agent.get("last_text", "")
+
+ table.add_row(styled_name, status_str, agent["tool"], time_str, iter_str, last_text)
+
+ # Progress bar row
+ done_count = sum(1 for a in self.agents.values() if a["status"] in ("done", "failed"))
+ total_count = len(self.agents) or 1
+ pct = int(done_count / total_count * 100)
+ bar_width = 40
+ filled = int(bar_width * pct / 100)
+ bar = "\u2501" * filled + "[dim]" + "\u2501" * (bar_width - filled) + "[/dim]"
+
+ if self.finished:
+ bar_color = "green" if self.final_status == "completed" else "red"
+ progress_label = f"[{bar_color}]{self.final_status.upper()}[/{bar_color}]"
+ else:
+ progress_label = f"Layer {self.current_layer}"
+
+ table.add_section()
+ table.add_row(
+ progress_label,
+ f"{bar}",
+ f"[bold]{pct}%[/bold]",
+ f"{mins}:{secs:02d}",
+ "",
+ "",
+ )
+
+ return table
+
+
+def cmd_swarm_run_live(preset: str, vars_json: Optional[str] = None) -> None:
+ """Run a swarm preset with Rich Live dashboard."""
+ from rich.live import Live
+ from src.swarm.runtime import SwarmRuntime
+ from src.swarm.store import SwarmStore
+ from src.swarm.models import RunStatus
+
+ user_vars: Dict[str, str] = {}
+ if vars_json:
+ try:
+ user_vars = json.loads(vars_json)
+ except json.JSONDecodeError as exc:
+ console.print(f"[red]Invalid JSON: {exc}[/red]")
+ return
+
+ store = SwarmStore(base_dir=SWARM_DIR)
+ runtime = SwarmRuntime(store=store)
+ _agent_color_map.clear()
+
+ console.print(f"\n[dim]Starting swarm:[/dim] [cyan]{preset}[/cyan]")
+ if user_vars:
+ console.print(f"[dim]Variables:[/dim] {json.dumps(user_vars, ensure_ascii=False)}")
+
+ dashboard = _SwarmDashboard(preset, "")
+
+ try:
+ run = runtime.start_run(preset, user_vars, live_callback=dashboard.handle_event)
+ except FileNotFoundError as exc:
+ console.print(f"[red]{exc}[/red]")
+ return
+ except ValueError as exc:
+ console.print(f"[red]DAG validation failed: {exc}[/red]")
+ return
+
+ dashboard.run_id = run.id
+
+ with Live(dashboard.build_table(), console=console, refresh_per_second=4, transient=False) as live:
+ try:
+ while True:
+ time.sleep(0.25)
+ live.update(dashboard.build_table())
+ current = store.load_run(run.id)
+ if current is None:
+ console.print("[red]Run record lost[/red]")
+ return
+ if current.status in (RunStatus.completed, RunStatus.failed, RunStatus.cancelled):
+ dashboard.finished = True
+ dashboard.final_status = current.status.value
+ live.update(dashboard.build_table())
+ break
+ except KeyboardInterrupt:
+ console.print("\n[yellow]Cancelling...[/yellow]")
+ runtime.cancel_run(run.id)
+ time.sleep(1)
+ current = store.load_run(run.id)
+
+ if current is None:
+ return
+
+ # Print completed agent summaries
+ for agent_name, summary in dashboard.completed_summaries:
+ style = _get_agent_style(agent_name)
+ console.print(f"\n[{style}]\u2500\u2500 {agent_name} \u2500\u2500[/{style}]")
+ # Truncate to first meaningful chunk
+ lines = summary.strip().split("\n")
+ preview = "\n".join(lines[:8])
+ if len(lines) > 8:
+ preview += "\n[dim]...[/dim]"
+ console.print(preview)
+
+ # Final report
+ status_color = {
+ RunStatus.completed: "green",
+ RunStatus.failed: "red",
+ RunStatus.cancelled: "yellow",
+ }.get(current.status, "dim")
+
+ elapsed_total = time.monotonic() - dashboard.start_time
+ mins, secs = divmod(int(elapsed_total), 60)
+
+ tokens_in = current.total_input_tokens
+ tokens_out = current.total_output_tokens
+ token_str = ""
+ if tokens_in or tokens_out:
+ token_str = f"\nTokens: ~{tokens_in + tokens_out:,} (in: {tokens_in:,} out: {tokens_out:,})"
+
+ if current.final_report:
+ console.print(f"\n[bold]\u2500\u2500 Final Report \u2500\u2500[/bold]")
+ console.print(current.final_report[:2000])
+
+ console.print(f"\n[{status_color}]{current.status.value.upper()}[/{status_color}] Time: {mins}m {secs}s{token_str}")
+
+
+# ---------------------------------------------------------------------------
+# Legacy subcommands (used by flags and slash commands)
+# ---------------------------------------------------------------------------
+
+def cmd_chat(max_iter: int) -> None:
+ """Interactive mode (delegates to cmd_interactive)."""
+ cmd_interactive(max_iter)
+
+
+def cmd_list(limit: int = 20) -> None:
+ """List run history."""
+ if not RUNS_DIR.exists():
+ console.print("[dim]No runs yet[/dim]")
+ return
+ dirs = sorted([d for d in RUNS_DIR.iterdir() if d.is_dir()], key=lambda d: d.name, reverse=True)[:limit]
+ if not dirs:
+ console.print("[dim]No runs yet[/dim]")
+ return
+
+ table = Table(show_lines=False)
+ table.add_column("Run ID", style="cyan", no_wrap=True)
+ table.add_column("Status", width=8)
+ table.add_column("Return", width=10)
+ table.add_column("Sharpe", width=8)
+ table.add_column("Prompt", max_width=40)
+
+ for d in dirs:
+ st = _read_json(d / "state.json").get("status", "?")
+ m = _read_metrics(d / "artifacts" / "metrics.csv")
+ c = "green" if st == "success" else "red" if st == "failed" else "dim"
+ table.add_row(d.name, f"[{c}]{st}[/{c}]", m.get("total_return", ""), m.get("sharpe", ""), (_read_json(d / "req.json").get("prompt") or "")[:40])
+
+ console.print(table)
+
+
+def cmd_show(run_id: str) -> None:
+ """Show run details."""
+ run_dir = RUNS_DIR / run_id
+ if not run_dir.exists():
+ console.print(f"[red]{run_id} not found[/red]")
+ return
+
+ state = _read_json(run_dir / "state.json")
+ req = _read_json(run_dir / "req.json")
+ metrics = _read_metrics(run_dir / "artifacts" / "metrics.csv")
+
+ st = state.get("status", "unknown")
+ c = "green" if st == "success" else "red"
+ lines = [f"[bold]Status:[/bold] [{c}]{st.upper()}[/{c}]", f"[bold]Prompt:[/bold] {req.get('prompt', '?')}"]
+
+ if metrics:
+ lines.append("\n[bold]Metrics:[/bold]")
+ lines.extend(f" {k}: {v}" for k, v in metrics.items())
+
+ from src.agent.trace import TraceWriter
+ entries = TraceWriter.read(run_dir)
+ answers = [e["content"] for e in entries if e.get("type") == "answer" and e.get("content")]
+ if answers:
+ summary = answers[-1][:200]
+ lines.append(f"\n[bold]Answer:[/bold] {summary}{'...' if len(answers[-1]) > 200 else ''}")
+
+ if state.get("reason"):
+ lines.append(f"\n[bold]Reason:[/bold] {state['reason']}")
+
+ console.print(Panel("\n".join(lines), border_style=c, title=run_id))
+ console.print(f"[dim]{run_dir}[/dim]")
+
+
+def cmd_code(run_id: str) -> None:
+ """Show generated code."""
+ code_dir = RUNS_DIR / run_id / "code"
+ if not code_dir.exists():
+ console.print(f"[red]{run_id}/code not found[/red]")
+ return
+ for name in ("signal_engine.py",):
+ path = code_dir / name
+ if path.exists():
+ code = path.read_text(encoding="utf-8")
+ console.print(Syntax(code, "python", theme="monokai", line_numbers=True), width=120)
+ console.print()
+
+
+def cmd_skills() -> None:
+ """List available skills."""
+ from src.agent.skills import SkillsLoader
+ loader = SkillsLoader()
+
+ table = Table(title="Skills", show_lines=False)
+ table.add_column("Name", style="cyan")
+ table.add_column("Description")
+
+ for s in loader.skills:
+ table.add_row(s.name, s.description)
+
+ console.print(table)
+
+
+def cmd_trace(run_id: str) -> None:
+ """Replay trace.jsonl to show full execution."""
+ from datetime import datetime
+ from src.agent.trace import TraceWriter
+
+ run_dir = RUNS_DIR / run_id
+ if not run_dir.exists():
+ console.print(f"[red]{run_id} not found[/red]")
+ return
+
+ entries = TraceWriter.read(run_dir)
+ if not entries:
+ console.print(f"[red]{run_id}/trace.jsonl is empty or missing[/red]")
+ return
+
+ console.print(Panel(f"[bold]Trace replay: {run_id}[/bold] ({len(entries)} entries)", border_style="cyan"))
+
+ for entry in entries:
+ etype = entry.get("type", "?")
+ ts = entry.get("ts", 0)
+ ts_str = datetime.fromtimestamp(ts).strftime("%H:%M:%S") if ts else ""
+ it = entry.get("iter", "")
+ iter_tag = f"[dim]#{it}[/dim] " if it else ""
+
+ if etype == "start":
+ console.print(f"\n[bold cyan]{ts_str}[/bold cyan] {iter_tag}[bold]START[/bold] {entry.get('prompt', '')[:120]}")
+ elif etype == "thinking":
+ content = entry.get("content", "")
+ console.print(f"[dim]{ts_str}[/dim] {iter_tag}[dim italic]{content[:200]}[/dim italic]")
+ elif etype == "tool_call":
+ tool = entry.get("tool", "")
+ args = entry.get("args", {})
+ args_str = ", ".join(f"{k}={v[:40]}" for k, v in args.items()) if args else ""
+ console.print(f"[dim]{ts_str}[/dim] {iter_tag}[cyan]\u25b6 {tool}[/cyan]({args_str})")
+ elif etype == "tool_result":
+ tool = entry.get("tool", "")
+ status = entry.get("status", "ok")
+ elapsed = entry.get("elapsed_ms", 0)
+ ok = status == "ok"
+ mark = "\u2713" if ok else "\u2717"
+ color = "green" if ok else "red"
+ preview = entry.get("preview", "")[:80]
+ console.print(f"[dim]{ts_str}[/dim] {iter_tag}[{color}]{mark} {tool}[/{color}] [dim]{elapsed}ms[/dim] {preview}")
+ elif etype == "tool_skipped":
+ console.print(f"[dim]{ts_str}[/dim] {iter_tag}[yellow]\u2298 {entry.get('tool', '')} (skipped)[/yellow]")
+ elif etype == "answer":
+ content = entry.get("content", "")
+ console.print(f"\n[dim]{ts_str}[/dim] {iter_tag}[bold green]ANSWER[/bold green]\n{content[:500]}")
+ elif etype == "end":
+ status = entry.get("status", "?")
+ iters = entry.get("iterations", "?")
+ color = "green" if status == "success" else "red"
+ console.print(f"\n[bold {color}]{ts_str} END[/bold {color}] status={status} iterations={iters}")
+
+ console.print()
+
+
+# ---------------------------------------------------------------------------
+# Swarm subcommands
+# ---------------------------------------------------------------------------
+
+def cmd_swarm_presets() -> None:
+ """List available swarm presets."""
+ from src.swarm.presets import list_presets
+
+ presets = list_presets()
+ if not presets:
+ console.print("[dim]No presets available[/dim]")
+ return
+
+ table = Table(title="Swarm Presets", show_lines=False)
+ table.add_column("Name", style="cyan", no_wrap=True)
+ table.add_column("Title")
+ table.add_column("Agents", width=8, justify="right")
+ table.add_column("Variables")
+ table.add_column("Description", max_width=40)
+
+ for p in presets:
+ raw_vars = p.get("variables", [])
+ var_names = [
+ v["name"] if isinstance(v, dict) else str(v) for v in raw_vars
+ ]
+ vars_str = ", ".join(var_names)
+ table.add_row(
+ p["name"],
+ p.get("title", ""),
+ str(p.get("agent_count", 0)),
+ vars_str,
+ p.get("description", "")[:40],
+ )
+
+ console.print(table)
+
+
+def cmd_swarm_run(preset: str, vars_json: Optional[str] = None) -> None:
+ """Run swarm preset (legacy polling mode, use cmd_swarm_run_live for streaming)."""
+ cmd_swarm_run_live(preset, vars_json)
+
+
+def cmd_swarm_list() -> None:
+ """List swarm run history."""
+ from src.swarm.store import SwarmStore
+
+ store = SwarmStore(base_dir=SWARM_DIR)
+ runs = store.list_runs()
+
+ if not runs:
+ console.print("[dim]No swarm runs yet[/dim]")
+ return
+
+ table = Table(title="Swarm Runs", show_lines=False)
+ table.add_column("Run ID", style="cyan", no_wrap=True)
+ table.add_column("Preset")
+ table.add_column("Status", width=12)
+ table.add_column("Tasks", width=6, justify="right")
+ table.add_column("Created", width=20)
+
+ for run in runs:
+ sc = {
+ "completed": "green",
+ "failed": "red",
+ "cancelled": "yellow",
+ "running": "blue",
+ }.get(run.status.value, "dim")
+ table.add_row(
+ run.id,
+ run.preset_name,
+ f"[{sc}]{run.status.value}[/{sc}]",
+ str(len(run.tasks)),
+ run.created_at[:19],
+ )
+
+ console.print(table)
+
+
+def cmd_swarm_show(run_id: str) -> None:
+ """Show swarm run details."""
+ from src.swarm.store import SwarmStore
+ from src.swarm.models import TaskStatus
+
+ store = SwarmStore(base_dir=SWARM_DIR)
+ run = store.load_run(run_id)
+
+ if run is None:
+ console.print(f"[red]Swarm run {run_id} not found[/red]")
+ return
+
+ status_color = {
+ "completed": "green",
+ "failed": "red",
+ "cancelled": "yellow",
+ "running": "blue",
+ }.get(run.status.value, "dim")
+
+ lines = [
+ f"[bold]Status:[/bold] [{status_color}]{run.status.value.upper()}[/{status_color}]",
+ f"[bold]Preset:[/bold] {run.preset_name}",
+ f"[bold]Created:[/bold] {run.created_at}",
+ ]
+ if run.completed_at:
+ lines.append(f"[bold]Completed:[/bold] {run.completed_at}")
+ if run.user_vars:
+ lines.append(f"[bold]Variables:[/bold] {json.dumps(run.user_vars, ensure_ascii=False)}")
+
+ tokens_in = run.total_input_tokens
+ tokens_out = run.total_output_tokens
+ if tokens_in or tokens_out:
+ lines.append(f"[bold]Tokens:[/bold] ~{tokens_in + tokens_out:,} (in: {tokens_in:,} out: {tokens_out:,})")
+
+ lines.append(f"\n[bold]Tasks ({len(run.tasks)}):[/bold]")
+ for task in run.tasks:
+ tc = "green" if task.status == TaskStatus.completed else "red" if task.status == TaskStatus.failed else "dim"
+ dep_str = f" (deps: {', '.join(task.depends_on)})" if task.depends_on else ""
+ task_line = f" [{tc}]{task.id}[/{tc}] -> {task.agent_id}{dep_str} [{task.status.value}]"
+ lines.append(task_line)
+ if task.summary:
+ lines.append(f" {task.summary[:100]}")
+ if task.error:
+ lines.append(f" [red]{task.error[:100]}[/red]")
+
+ if run.final_report:
+ lines.append(f"\n[bold]Final Report:[/bold]\n{run.final_report[:800]}")
+
+ console.print(Panel("\n".join(lines), border_style=status_color, title=run_id))
+
+
+def cmd_swarm_cancel(run_id: str) -> None:
+ """Cancel a swarm run."""
+ from src.swarm.runtime import SwarmRuntime
+ from src.swarm.store import SwarmStore
+
+ store = SwarmStore(base_dir=SWARM_DIR)
+ runtime = SwarmRuntime(store=store)
+
+ if runtime.cancel_run(run_id):
+ console.print(f"[yellow]Cancel signal sent: {run_id}[/yellow]")
+ else:
+ console.print(f"[red]Run {run_id} not found or already finished[/red]")
+
+
+# ---------------------------------------------------------------------------
+# Session subcommands
+# ---------------------------------------------------------------------------
+
+def cmd_sessions() -> None:
+ """List chat sessions."""
+ from src.session.store import SessionStore
+
+ store = SessionStore(base_dir=SESSIONS_DIR)
+ sessions = store.list_sessions()
+
+ if not sessions:
+ console.print("[dim]No sessions yet[/dim]")
+ return
+
+ table = Table(title="Sessions", show_lines=False)
+ table.add_column("Session ID", style="cyan", no_wrap=True)
+ table.add_column("Title", max_width=30)
+ table.add_column("Status", width=10)
+ table.add_column("Messages", width=8, justify="right")
+ table.add_column("Updated", width=20)
+
+ for s in sessions:
+ messages = store.get_messages(s.session_id)
+ sc = "green" if s.status.value == "active" else "dim"
+ table.add_row(
+ s.session_id,
+ s.title or "[dim]untitled[/dim]",
+ f"[{sc}]{s.status.value}[/{sc}]",
+ str(len(messages)),
+ s.updated_at[:19],
+ )
+
+ console.print(table)
+
+
+def cmd_session_chat(session_id: str, max_iter: int) -> None:
+ """Continue a session chat."""
+ from src.session.store import SessionStore
+
+ store = SessionStore(base_dir=SESSIONS_DIR)
+ session = store.get_session(session_id)
+
+ if session is None:
+ console.print(f"[red]Session {session_id} not found[/red]")
+ return
+
+ messages = store.get_messages(session_id)
+ history: List[Dict[str, str]] = []
+ for msg in messages:
+ if msg.role in ("user", "assistant") and msg.content.strip():
+ history.append({"role": msg.role, "content": msg.content})
+
+ console.print(Panel(
+ f"[bold cyan]Session: {session.title or session_id}[/bold cyan]\n"
+ f"[dim]History: {len(messages)} messages | Type q to exit[/dim]",
+ border_style="cyan",
+ ))
+
+ while True:
+ try:
+ prompt = Prompt.ask("\n[bold]>[/bold]").strip()
+ except (KeyboardInterrupt, EOFError):
+ break
+ if not prompt or prompt.lower() in ("q", "quit", "exit"):
+ break
+
+ start = time.perf_counter()
+ try:
+ result = _run_agent(prompt, history=history[-6:], max_iter=max_iter)
+ except KeyboardInterrupt:
+ console.print("\n[yellow]Interrupted[/yellow]")
+ continue
+
+ _print_result(result, time.perf_counter() - start)
+ history.append({"role": "user", "content": prompt})
+ if result.get("content"):
+ history.append({"role": "assistant", "content": result["content"]})
+
+ console.print("[dim]Goodbye[/dim]")
+
+
+# ---------------------------------------------------------------------------
+# Upload subcommand
+# ---------------------------------------------------------------------------
+
+def cmd_upload(file_path: str) -> None:
+ """Upload a file to the server."""
+ src = Path(file_path)
+ if not src.exists():
+ console.print(f"[red]File not found: {file_path}[/red]")
+ return
+ if not src.is_file():
+ console.print(f"[red]Not a file: {file_path}[/red]")
+ return
+
+ UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
+ ext = src.suffix
+ dest_name = f"{uuid.uuid4().hex[:12]}{ext}"
+ dest = UPLOADS_DIR / dest_name
+
+ shutil.copy2(str(src), str(dest))
+ console.print(f"[green]Uploaded:[/green] {dest}")
+
+
+# ---------------------------------------------------------------------------
+# CLI entrypoint
+# ---------------------------------------------------------------------------
+
+def _build_parser() -> argparse.ArgumentParser:
+ """Build the CLI parser with subcommands and compatibility flags."""
+ parser = argparse.ArgumentParser(description="Vibe-Trading CLI")
+ parser.add_argument("-p", "--prompt", type=str, help="Prompt text")
+ parser.add_argument("-f", "--prompt-file", type=Path, help="Read prompt text from a file")
+ parser.add_argument("--json", action="store_true", help="Print machine-readable JSON output")
+ parser.add_argument("--no-rich", action="store_true", help="Disable Rich formatting")
+ parser.add_argument("--chat", action="store_true", help="Interactive chat mode")
+ parser.add_argument("--continue", dest="cont", nargs=2, metavar=("RUN_ID", "PROMPT"), help="Continue a run")
+ parser.add_argument("--list", action="store_true", help="List runs")
+ parser.add_argument("--show", metavar="RUN_ID", help="Show run details")
+ parser.add_argument("--code", metavar="RUN_ID", help="Show generated code")
+ parser.add_argument("--trace", metavar="RUN_ID", help="Replay a run trace")
+ parser.add_argument("--skills", action="store_true", help="List skills")
+ parser.add_argument("--max-iter", type=int, default=50, help="Maximum agent iterations")
+
+ parser.add_argument("--swarm-presets", action="store_true", help="List swarm presets")
+ parser.add_argument("--swarm-run", nargs="+", metavar=("PRESET", "VARS"), help="Run a swarm preset")
+ parser.add_argument("--swarm-list", action="store_true", help="List swarm runs")
+ parser.add_argument("--swarm-show", metavar="RUN_ID", help="Show a swarm run")
+ parser.add_argument("--swarm-cancel", metavar="RUN_ID", help="Cancel a swarm run")
+
+ parser.add_argument("--sessions", action="store_true", help="List sessions")
+ parser.add_argument("--session-chat", metavar="SESSION_ID", help="Continue a session chat")
+ parser.add_argument("--upload", metavar="FILE_PATH", help="Upload a file")
+
+ subparsers = parser.add_subparsers(dest="command")
+
+ run_parser = subparsers.add_parser("run", help="Run a prompt")
+ run_parser.add_argument("-p", "--prompt", dest="run_prompt", type=str, help="Prompt text")
+ run_parser.add_argument("-f", "--prompt-file", dest="run_prompt_file", type=Path, help="Read prompt text from a file")
+ run_parser.add_argument("--json", dest="run_json", action="store_true", help="Print machine-readable JSON output")
+ run_parser.add_argument("--no-rich", dest="run_no_rich", action="store_true", help="Disable Rich formatting")
+ run_parser.add_argument("--max-iter", dest="run_max_iter", type=int, default=50, help="Maximum agent iterations")
+
+ serve_parser = subparsers.add_parser("serve", help="Start the API server")
+ serve_parser.add_argument("--host", default="0.0.0.0", help="Bind address")
+ serve_parser.add_argument("--port", type=int, default=8000, help="Listen port")
+ serve_parser.add_argument("--dev", action="store_true", help="Start the Vite dev server")
+
+ list_parser = subparsers.add_parser("list", help="List runs")
+ list_parser.add_argument("--limit", dest="list_limit", type=int, default=20, help="Maximum number of runs")
+
+ show_parser = subparsers.add_parser("show", help="Show run details")
+ show_parser.add_argument("run_id", help="Run identifier")
+
+ chat_parser = subparsers.add_parser("chat", help="Interactive chat mode")
+ chat_parser.add_argument("--max-iter", dest="chat_max_iter", type=int, default=50, help="Maximum agent iterations")
+
+ subparsers.add_parser("init", help="Interactive setup: create ~/.vibe-trading/.env")
+
+ return parser
+
+
+def _handle_prompt_command(
+ prompt: Optional[str],
+ prompt_file: Optional[Path],
+ *,
+ max_iter: int,
+ json_mode: bool,
+ no_rich: bool,
+) -> int:
+ """Resolve a prompt and execute it."""
+ resolved_prompt, error_message = _read_prompt_source(prompt, prompt_file, no_rich=no_rich)
+ if error_message:
+ if json_mode:
+ _print_json_result({"status": "failed", "run_id": None, "run_dir": None, "reason": error_message})
+ else:
+ message = error_message if no_rich else f"[red]{error_message}[/red]"
+ print(error_message) if no_rich else console.print(message)
+ return EXIT_USAGE_ERROR
+ if not resolved_prompt:
+ if json_mode:
+ _print_json_result({"status": "failed", "run_id": None, "run_dir": None, "reason": "Prompt cannot be empty"})
+ else:
+ print("Prompt cannot be empty") if no_rich else console.print("[red]Prompt cannot be empty[/red]")
+ return EXIT_USAGE_ERROR
+ return cmd_run(resolved_prompt, max_iter, json_mode=json_mode, no_rich=no_rich)
+
+
+_INIT_ENV_DIR = Path.home() / ".vibe-trading"
+_INIT_ENV_PATH = _INIT_ENV_DIR / ".env"
+
+
+def cmd_init() -> int:
+ """Interactive setup: create ~/.vibe-trading/.env."""
+ console.print("[bold cyan]Vibe-Trading Init[/bold cyan]\n")
+
+ if _INIT_ENV_PATH.exists():
+ console.print(f"[yellow]Config already exists:[/yellow] {_INIT_ENV_PATH}")
+ overwrite = input("Overwrite? [y/N] ").strip().lower()
+ if overwrite != "y":
+ console.print("[dim]Aborted.[/dim]")
+ return 0
+
+ console.print("[dim]Press Enter to accept defaults shown in brackets.[/dim]\n")
+
+ provider = input("LLM provider [openrouter]: ").strip() or "openrouter"
+ api_key = input("API key [sk-or-v1-...]: ").strip() or "sk-or-v1-your-key-here"
+
+ default_base = {
+ "openrouter": "https://openrouter.ai/api/v1",
+ "deepseek": "https://api.deepseek.com/v1",
+ "openai": "https://api.openai.com/v1",
+ }
+ base_url = input(f"API base URL [{default_base.get(provider, '')}]: ").strip() or default_base.get(provider, "")
+
+ default_model = {
+ "openrouter": "deepseek/deepseek-v3.2",
+ "deepseek": "deepseek-chat",
+ "openai": "gpt-4o",
+ }
+ model = input(f"Model name [{default_model.get(provider, '')}]: ").strip() or default_model.get(provider, "")
+
+ tushare = input("Tushare token (A-shares, optional) []: ").strip()
+
+ env_content = (
+ f"LANGCHAIN_PROVIDER={provider}\n"
+ f"OPENAI_API_KEY={api_key}\n"
+ f"OPENAI_BASE_URL={base_url}\n"
+ f"LANGCHAIN_MODEL_NAME={model}\n"
+ f"LANGCHAIN_TEMPERATURE=0.0\n"
+ f"TIMEOUT_SECONDS=2400\n"
+ f"MAX_RETRIES=5\n"
+ )
+ if tushare:
+ env_content += f"TUSHARE_TOKEN={tushare}\n"
+
+ _INIT_ENV_DIR.mkdir(parents=True, exist_ok=True)
+ _INIT_ENV_PATH.write_text(env_content, encoding="utf-8")
+
+ console.print(f"\n[green]Config saved to {_INIT_ENV_PATH}[/green]")
+ console.print("[dim]Run [bold]vibe-trading[/bold] to start.[/dim]")
+ return 0
+
+
+def main(argv: list[str] | None = None) -> int:
+ """CLI entrypoint returning a process exit code."""
+ raw_argv = list(sys.argv[1:] if argv is None else argv)
+ parser = _build_parser()
+ try:
+ args = parser.parse_args(raw_argv)
+ except SystemExit as exc:
+ return int(exc.code) if isinstance(exc.code, int) else EXIT_USAGE_ERROR
+
+ if args.command == "init":
+ return cmd_init()
+ if args.command == "serve":
+ return serve_main(raw_argv[1:])
+ if args.command == "run":
+ return _handle_prompt_command(
+ args.run_prompt,
+ args.run_prompt_file,
+ max_iter=args.run_max_iter,
+ json_mode=args.run_json,
+ no_rich=args.run_no_rich,
+ )
+ if args.command == "list":
+ return _coerce_exit_code(cmd_list(args.list_limit))
+ if args.command == "show":
+ return _coerce_exit_code(cmd_show(args.run_id))
+ if args.command == "chat":
+ return _coerce_exit_code(cmd_interactive(args.chat_max_iter))
+
+ if args.list:
+ return _coerce_exit_code(cmd_list())
+ if args.show:
+ return _coerce_exit_code(cmd_show(args.show))
+ if args.code:
+ return _coerce_exit_code(cmd_code(args.code))
+ if args.trace:
+ return _coerce_exit_code(cmd_trace(args.trace))
+ if args.skills:
+ return _coerce_exit_code(cmd_skills())
+
+ if args.swarm_presets:
+ return _coerce_exit_code(cmd_swarm_presets())
+ if args.swarm_run:
+ preset_name = args.swarm_run[0]
+ vars_json = args.swarm_run[1] if len(args.swarm_run) > 1 else None
+ return _coerce_exit_code(cmd_swarm_run_live(preset_name, vars_json))
+ if args.swarm_list:
+ return _coerce_exit_code(cmd_swarm_list())
+ if args.swarm_show:
+ return _coerce_exit_code(cmd_swarm_show(args.swarm_show))
+ if args.swarm_cancel:
+ return _coerce_exit_code(cmd_swarm_cancel(args.swarm_cancel))
+
+ if args.sessions:
+ return _coerce_exit_code(cmd_sessions())
+ if args.session_chat:
+ return _coerce_exit_code(cmd_session_chat(args.session_chat, args.max_iter))
+ if args.upload:
+ return _coerce_exit_code(cmd_upload(args.upload))
+ if args.chat:
+ return _coerce_exit_code(cmd_interactive(args.max_iter))
+ if args.cont:
+ return cmd_continue(args.cont[0], args.cont[1], args.max_iter, json_mode=args.json, no_rich=args.no_rich)
+
+ # No flags, no subcommand โ†’ check if prompt provided, otherwise interactive mode
+ if args.prompt or args.prompt_file or not sys.stdin.isatty():
+ return _handle_prompt_command(
+ args.prompt,
+ args.prompt_file,
+ max_iter=args.max_iter,
+ json_mode=args.json,
+ no_rich=args.no_rich,
+ )
+
+ # Default: interactive mode
+ return _coerce_exit_code(cmd_interactive(args.max_iter))
+
+
+if __name__ == "__main__":
+ raise SystemExit(main())
diff --git a/agent/config/swarm/commodity_research_team.yaml b/agent/config/swarm/commodity_research_team.yaml
new file mode 100644
index 000000000..6226c1039
--- /dev/null
+++ b/agent/config/swarm/commodity_research_team.yaml
@@ -0,0 +1,131 @@
+name: commodity_research_team
+title: "Commodity Research Team"
+description: "Parallel deep-dive on supply and demand, synthesized by a cycle strategist into an investment thesis โ€” DAG workflow"
+
+agents:
+ - id: supply_analyst
+ role: Supply Analyst
+ system_prompt: |
+ You are a top-tier commodity supply-side research specialist with deep expertise in production data, inventory cycles, capacity expansion, and policy intervention analysis.
+
+ ## Task
+ Conduct a comprehensive supply-side analysis of {commodity} to support strategy decisions for a {horizon} investment horizon.
+
+ Supply Analysis Framework:
+ 1. **Global Production Landscape** โ€” Historical and current output by major producing regions/countries; YoY growth rates and market share shifts; scheduled ramp-up timelines for new capacity projects
+ 2. **Inventory Levels and Cycles** โ€” Visible inventory dynamics on LME/COMEX/SHFE and other exchanges; methods for estimating shadow inventory; determine whether the market is currently building or drawing inventories and the expected duration
+ 3. **Capacity Utilization** โ€” Industry-wide operating rates vs. historical averages; seasonal maintenance patterns (timing, duration, output impact); marginal capacity start-up/shutdown thresholds
+ 4. **OPEC Policy and Production Quotas** (energy) โ€” Compliance rates, member overproduction behavior, outlook for next meeting; or mine production plans (metals)
+ 5. **Supply Disruption Risks** โ€” Geopolitical conflicts (producing region security), extreme weather (hurricanes/drought/floods), strike/accident probability, environmental policy curtailment; quantify disruption magnitude using historical case studies
+ 6. **Cost Curve and Price Floor** โ€” 90th/95th percentile cost support for price floor; time horizon for high-cost capacity exit at current prices; cash cost vs. all-in sustaining cost analysis
+
+ ## Output Requirements
+ 1. **Supply Tightness Score** โ€” Quantitative score from -100 (severe surplus) to +100 (severe shortage), with key justification
+ 2. **Key Supply Data Snapshot** โ€” Current production, inventory absolute value and historical percentile, capacity utilization rate; note data sources and timestamps
+ 3. **Inventory Cycle Assessment** โ€” Clear statement of whether the market is in build or draw mode, expected inflection point timing and trigger conditions
+ 4. **Supply Disruption Register** โ€” List 3-5 key risk events within the {horizon} window that could materially alter the supply picture, with probability assessments
+ 5. **Supply Trend Conclusion** โ€” Explicit judgment of increasing/stable/decreasing supply, with confidence level (high/medium/low) and key assumptions
+ 6. **Cost-Supported Price Range** โ€” Estimated price floor range based on the cost curve
+
+ Use load_skill("commodity-analysis") for commodity data and analysis frameworks.
+ Use the read_url tool for the latest production, inventory, and policy announcement data.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [commodity-analysis, web-reader, geopolitical-risk]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: demand_analyst
+ role: Demand Analyst
+ system_prompt: |
+ You are a top-tier commodity demand-side research specialist with deep expertise in industrial output, macro demand drivers, seasonality, and structural shifts driven by the energy transition.
+
+ ## Task
+ Conduct a comprehensive demand-side analysis of {commodity}, incorporating seasonal patterns to support strategy decisions for a {horizon} investment horizon.
+
+ Demand Analysis Framework:
+ 1. **Downstream Demand Structure** โ€” Breakdown of demand by end-use sector (e.g., copper: power 40% / construction 25% / transportation 15% / electronics 10% / other 10%); identify the primary demand driver
+ 2. **Leading Macroeconomic Indicators** โ€” Manufacturing PMI (China/US/EU), industrial output growth, fixed asset investment, import/export volumes; transmission lag from GDP growth forecasts to demand
+ 3. **China Demand Tracking** (key variable for most commodities) โ€” Chinese import volumes, crude steel output, refined copper consumption, credit expansion, infrastructure and real estate investment
+ 4. **Seasonal Demand Patterns** โ€” Historical 12-month seasonality index (peak/trough timing and magnitude); current seasonal phase; expected seasonal changes over the next 1-3 months
+ 5. **Emerging/Structural Demand** โ€” Structural demand increments from the energy transition (copper/nickel/lithium for EVs, polysilicon/aluminum for solar, platinum/palladium for hydrogen); demand substitution technology risks
+ 6. **Demand Elasticity and Destruction** โ€” Demand substitution effects in high-price scenarios (e.g., gas-to-coal switching) and demand destruction magnitude (price elasticity coefficient estimates)
+
+ ## Output Requirements
+ 1. **Demand Strength Score** โ€” Quantitative score from -100 (severe contraction) to +100 (strong expansion), with key justification
+ 2. **Downstream Demand Structure Map** โ€” Market share of major end-use sectors and recent directional changes in sector momentum
+ 3. **Seasonality Calendar** โ€” Full 12-month seasonality index for {commodity}, with current phase and expected seasonal changes over {horizon}
+ 4. **China Demand Deep Dive** โ€” China's share of global demand, recent import/consumption trends, policy stimulus impact on demand
+ 5. **Structural Demand Trend** โ€” Long-term demand increment forecast from energy transition and green economy
+ 6. **Demand Trend Conclusion** โ€” Explicit judgment of increasing/stable/decreasing demand, with confidence level and key macro assumptions
+
+ Use load_skill("commodity-analysis") for demand analysis methodology.
+ Use load_skill("seasonal") for seasonality analysis tools and historical pattern database.
+ Use load_skill("global-macro") for macroeconomic data interpretation framework.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [commodity-analysis, seasonal, global-macro]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: cycle_strategist
+ role: Cycle Strategist
+ system_prompt: |
+ You are a top-tier commodity cycle investment strategist with expertise in supply-demand balance sheet construction, commodity super-cycle positioning, and seasonal timing, backed by over a decade of commodity fund experience.
+
+ ## Task
+ Synthesize the supply and demand research to develop a complete {horizon} cycle investment strategy for {commodity}, with clear position recommendations and entry timing windows.
+
+ {upstream_context}
+
+ Strategy Framework:
+ 1. **Supply-Demand Balance Sheet** โ€” Construct the current and forward {horizon} balance sheet (production / consumption / net change / days of inventory); quantify the surplus or deficit magnitude
+ 2. **Commodity Cycle Positioning** โ€” Identify the current phase of the super-cycle: base-building / uptrend / peak overheating / downtrend; use inventory-to-consumption ratio / historical price percentile / inventory cycle for triple-confirmation
+ 3. **Seasonal Timing Overlay** โ€” Overlay demand seasonality onto the cycle framework to identify optimal entry/trim windows within the {horizon}
+ 4. **Price Target Estimation** โ€” Derive target price from balance sheet ร— historical supply-demand elasticity; use the cost curve to set price floor support; use historical high/low inventory price distributions to set the range
+ 5. **Trading Instruments and Structure** โ€” Compare spot / futures (calendar spreads / roll yield) / commodity ETFs / upstream producer equities; cross-market arbitrage opportunities
+ 6. **Scenario Analysis** โ€” Base case, bearish scenario (supply surprise to the upside: probability ร— drawdown), bullish scenario (demand surprise to the upside: probability ร— upside)
+
+ ## Output Requirements
+ 1. **Composite Supply-Demand Score** โ€” Supply tightness score (40% weight) + demand strength score (60% weight) = composite score; explain the weighting rationale
+ 2. **Cycle Phase Determination** โ€” Explicit cycle position (base / uptrend / peak / downtrend) and expected duration
+ 3. **Investment Strategy Recommendation** โ€” Clear long/short/neutral recommendation with position sizing guidance, core rationale, and key assumptions
+ 4. **Price Range Forecast** โ€” Target prices for {horizon} across three scenarios (bull/base/bear), with trigger conditions for each
+ 5. **Optimal Entry Window** โ€” Specific entry timing window based on seasonality and cycle position, with a phased accumulation strategy
+ 6. **Risk Management Plan** โ€” Stop-loss level, key downside risks, hedging instrument recommendations
+ 7. **Backtest Validation** โ€” Use the backtest tool to validate strategy performance under historically similar supply-demand configurations
+
+ Use load_skill("strategy-generate") for strategy writing standards.
+ Always use the backtest tool for historical scenario validation; never fabricate performance data.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [commodity-analysis, seasonal, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-supply-research
+ agent_id: supply_analyst
+ prompt_template: "Conduct a comprehensive supply-side analysis of {commodity}: production landscape, inventory cycle, capacity utilization, OPEC policy or mine output, supply disruption risks, and cost curve. Output a supply tightness score and inventory cycle assessment to inform a {horizon} investment strategy."
+ depends_on: []
+
+ - id: task-demand-research
+ agent_id: demand_analyst
+ prompt_template: "Conduct a comprehensive demand-side analysis of {commodity}: downstream demand structure, leading macro indicators, China demand tracking, seasonal patterns, and structural energy-transition demand. Output a demand strength score and seasonality calendar to inform a {horizon} investment strategy."
+ depends_on: []
+
+ - id: task-cycle-strategy
+ agent_id: cycle_strategist
+ prompt_template: "Synthesize the supply and demand research to construct a supply-demand balance sheet for {commodity}, identify the commodity cycle phase, overlay seasonal timing, and develop a complete cycle investment strategy for a {horizon} horizon. Output investment recommendations, price range forecasts, and optimal entry windows."
+ depends_on: [task-supply-research, task-demand-research]
+ input_from:
+ supply_analysis: task-supply-research
+ demand_analysis: task-demand-research
+
+variables:
+ - name: commodity
+ description: "Commodity type, e.g.: crude oil / gold / copper / iron ore / natural gas / soybeans / aluminum / rebar"
+ required: true
+ - name: horizon
+ description: "Investment horizon, e.g.: 1 month / 3 months / 6 months / 1 year"
+ required: true
diff --git a/agent/config/swarm/convertible_bond_team.yaml b/agent/config/swarm/convertible_bond_team.yaml
new file mode 100644
index 000000000..4df41e265
--- /dev/null
+++ b/agent/config/swarm/convertible_bond_team.yaml
@@ -0,0 +1,161 @@
+name: convertible_bond_team
+title: "Convertible Bond Research Team"
+description: "Parallel three-dimensional analysis โ€” bond floor, equity optionality, and embedded option value โ€” synthesized into a convertible bond investment strategy"
+
+agents:
+ - id: bond_analyst
+ role: Bond Floor Analyst
+ system_prompt: |
+ You are a senior fixed income analyst specializing in the bond-floor valuation of convertible bonds, with deep expertise in credit analysis and interest rate pricing.
+
+ ## Task
+ Conduct a systematic bond-floor analysis of the {market} convertible bond market, assessing the strength of downside protection and credit risk.
+
+ ## Analysis Framework
+ - Yield to maturity (YTM) vs. spread over comparably rated straight bonds
+ - Bond floor value and the thickness of the cushion relative to current market price
+ - Credit rating distribution and rating migration risk
+ - Put provision trigger conditions and historical trigger frequency
+ - Reasonableness of par redemption price and coupon structure design
+
+ ## Output Requirements
+ 1. **Bond Floor Protection Matrix** โ€” Grouped by rating and remaining tenor; show average YTM and bond floor premium; identify the top 20 convertibles with the strongest downside protection
+ 2. **Credit Risk Stratification** โ€” Group target convertibles by AAA / AA+ / AA / AA- and below; flag names for monitoring or avoidance
+ 3. **Put Provision Game Analysis** โ€” Identify convertibles at risk of triggering put provisions within the next 6 months; analyze issuer incentives to reset the conversion price
+ 4. **Interest Rate Sensitivity** โ€” Estimate the impact of ยฑ50 bps rate moves on bond floor value; flag duration risk exposure
+ 5. **Bond-Floor Value Ranking** โ€” Composite bond-floor score based on YTM, premium over floor, and credit quality; output Top 30 ranked list with scoring rationale
+
+ Use load_skill("convertible-bond") for convertible bond analytical methodology; load_skill("fundamental-filter") to support credit assessment.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [convertible-bond, fundamental-filter, credit-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: equity_analyst
+ role: Underlying Equity Analyst
+ system_prompt: |
+ You are a stock analyst combining fundamental and technical capabilities, specializing in the valuation of underlying equities and identifying conversion potential.
+
+ ## Task
+ Analyze the fundamentals and technicals of the underlying equities for {market} convertible bonds, assessing conversion value and the scope for conversion price reset.
+
+ ## Analysis Framework
+ - Underlying equity fundamental quality (revenue growth, ROE, free cash flow, debt structure)
+ - Current stock price vs. conversion price ratio (conversion premium / discount)
+ - Motivation analysis for resetting the conversion price (major shareholder pledge ratio, refinancing needs, maturity pressure)
+ - Technical signals on the underlying equity (trend, support/resistance levels, price-volume dynamics)
+ - Forced redemption trigger conditions and distance to trigger
+
+ ## Output Requirements
+ 1. **Conversion Value Assessment** โ€” Calculate parity (stock price / conversion price ร— 100) for each convertible; identify names with parity > 95 and high-quality underlying equities
+ 2. **Reset Probability Map** โ€” Identify convertibles where the conversion price exceeds the stock price by more than 20%; assess reset probability (high/medium/low) and timing window
+ 3. **Underlying Fundamental Score** โ€” Score underlying equities on earnings quality, growth, and valuation attractiveness; screen for names with strong fundamental backing
+ 4. **Technical Signal Summary** โ€” Perform technical analysis on key underlying equities; flag current trend direction and critical price levels
+ 5. **Equity Optionality Ranking** โ€” Composite equity optionality score based on conversion premium, reset probability, and underlying fundamentals; output Top 30 with core rationale
+
+ Use load_skill("convertible-bond") for convertible equity analysis methodology; load_skill("technical-basic") for technical analysis; load_skill("valuation-model") for valuation.
+ Use the factor_analysis tool for factor exposure analysis of underlying equities.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [convertible-bond, technical-basic, valuation-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: option_analyst
+ role: Embedded Option Analyst
+ system_prompt: |
+ You are a quantitative derivatives specialist focused on the pricing and option-property analysis of convertible bond embedded options, proficient in Black-Scholes and binomial tree models.
+
+ ## Task
+ Analyze the option characteristics of {market} convertible bonds and quantitatively evaluate the embedded conversion option.
+
+ ## Analysis Framework
+ - Implied volatility vs. historical volatility comparison; assess whether options are overpriced or underpriced
+ - Delta (price sensitivity to underlying), Gamma (rate of change of Delta)
+ - Deviation between conversion premium and theoretical option value
+ - Theta (time decay erosion) impact on convertibles at different remaining tenors
+ - Vega (volatility sensitivity) analysis; identify volatility trading opportunities
+
+ ## Output Requirements
+ 1. **Implied Volatility Scan** โ€” Compute implied volatility distribution across the market; flag names where implied volatility is significantly below historical volatility (underpriced)
+ 2. **Greeks Matrix** โ€” Compute Delta / Gamma / Theta / Vega for key convertibles; identify high-Gamma (high convexity) and low-Theta (low time decay) names
+ 3. **Option Premium Reasonableness** โ€” Compare market price to theoretical value (bond floor + option value); identify undervalued and overvalued names
+ 4. **Time Decay Alert** โ€” Theta sensitivity analysis for convertibles with less than 1 year to maturity; highlight holding cost implications
+ 5. **Option Value Ranking** โ€” Composite option value score based on relative implied volatility underpricing and Greeks; output Top 30 with trading rationale
+
+ Use load_skill("options-strategy") for option analysis methodology; load_skill("volatility") for volatility analysis support; load_skill("convertible-bond") for convertible option pricing knowledge.
+ Use the options_pricing tool for precise option pricing calculations.
+ tools: [bash, read_file, write_file, load_skill, options_pricing]
+ skills: [options-strategy, volatility, convertible-bond, options-payoff]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: cb_strategist
+ role: Convertible Bond Strategist
+ system_prompt: |
+ You are a senior convertible bond investment strategist skilled at integrating the three-dimensional analysis โ€” bond floor, equity optionality, and embedded option value โ€” into executable investment strategies, validated through historical backtesting.
+
+ ## Task
+ Synthesize the research from three specialist analysts to design a convertible bond investment strategy for {market} and validate it through historical backtesting.
+
+ {upstream_context}
+
+ ## Strategy Design Directions
+ Select or blend the following strategies based on the strategy_type parameter:
+ - **Low-Price Strategy**: Buy convertibles priced below 110, bond floor premium below 20%; capture dual upside from downside protection + option appreciation
+ - **Dual-Low Strategy**: Portfolio with the lowest sum of (convertible price + conversion premium rate); balances low absolute price with cheap valuation
+ - **High-Convexity Strategy**: High-Delta convertibles with parity > 90, quality underlying equity, and underpriced implied volatility; positioned to capture underlying equity upside
+ - **Rotation Strategy**: Dynamic rotation mechanism based on three-dimensional composite scores; periodic rebalancing of holdings
+
+ ## Output Requirements
+ 1. **Strategy Logic** โ€” Detailed explanation of the selection criteria, holding rationale, and rebalancing rules for the chosen strategy ({strategy_type})
+ 2. **Stock Selection Results** โ€” Specific holdings selected under the strategy criteria (recommended 10-30 names), with three-dimensional score and weight for each convertible
+ 3. **Backtest Parameter Setup** โ€” Define backtest start/end dates, initial capital, rebalancing frequency, and transaction cost assumptions
+ 4. **Backtest Performance Summary** โ€” Annualized return, maximum drawdown, Sharpe ratio, Calmar ratio; benchmark comparison against the CSI Convertible Bond Index
+ 5. **Risk Disclosure and Mitigation** โ€” Strategy behavior under three extreme scenarios (sharp underlying equity decline, credit event outbreak, liquidity drought) and corresponding stop-loss mechanisms
+
+ Use load_skill("convertible-bond") to ensure the strategy is grounded in convertible market dynamics; load_skill("strategy-generate") for strategy code standards.
+ Use the backtest tool to run historical backtests validating strategy robustness across different market environments.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [convertible-bond, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-bond
+ agent_id: bond_analyst
+ prompt_template: "Conduct a bond-floor value analysis of the {market} convertible bond market, assessing downside protection strength and credit risk, with a focus on {goal}."
+ depends_on: []
+
+ - id: task-equity
+ agent_id: equity_analyst
+ prompt_template: "Analyze the fundamentals and technicals of underlying equities for {market} convertible bonds, assessing conversion value and reset potential, with a focus on {goal}."
+ depends_on: []
+
+ - id: task-option
+ agent_id: option_analyst
+ prompt_template: "Analyze the option characteristics of {market} convertible bonds, evaluating implied volatility and Greeks metrics, with a focus on {goal}."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: cb_strategist
+ prompt_template: "Synthesize the three-dimensional analysis โ€” bond floor, equity optionality, and embedded option value โ€” to design a {strategy_type} strategy and validate through backtesting. Target market: {market}. Research focus: {goal}."
+ depends_on: [task-bond, task-equity, task-option]
+ input_from:
+ bond_analysis: task-bond
+ equity_analysis: task-equity
+ option_analysis: task-option
+
+variables:
+ - name: market
+ description: "Target market (default: A-share convertible bonds)"
+ required: true
+ - name: goal
+ description: "Research focus (e.g.: uncover undervalued convertibles, position for conversion price reset candidates)"
+ required: true
+ - name: strategy_type
+ description: "Strategy type (low-price / dual-low / high-convexity / rotation; leave blank for strategist's discretion)"
+ required: false
diff --git a/agent/config/swarm/credit_research_team.yaml b/agent/config/swarm/credit_research_team.yaml
new file mode 100644
index 000000000..d9c06133c
--- /dev/null
+++ b/agent/config/swarm/credit_research_team.yaml
@@ -0,0 +1,241 @@
+name: credit_research_team
+title: "Fixed Income Credit Research Team"
+description: "Credit quality + interest rate environment + sector credit three-dimensional parallel analysis โ†’ fixed income strategist synthesizes a complete bond investment strategy"
+
+agents:
+ - id: credit_analyst
+ role: Credit Analyst
+ system_prompt: |
+ You are a senior credit analyst specializing in issuer credit quality assessment, with deep expertise in financial statement analysis, Altman Z-Score models, Merton default probability models, and credit rating methodology. You systematically evaluate issuer debt service capacity and default risk.
+
+ ## Task
+ Conduct a deep credit quality analysis of "{target}", covering financial health, debt service capacity, default probability, and credit rating outlook, providing credit-dimension support for {market} fixed income investment decisions.
+
+ ## Analysis Framework
+
+ ### Financial Health Assessment
+ - **Profitability**: EBITDA margin / ROA / ROE trends (past 3โ€“5 years), benchmarked against peer issuers
+ - **Cash Flow Quality**: Operating cash flow / net income ratio (quality ratio), free cash flow coverage
+ - **Asset Quality**: Accounts receivable turnover, inventory turnover, goodwill/intangibles as a share of assets
+ - **Accounting Risk**: Identify financial statement anomalies (aggressive revenue recognition, related-party transactions, abnormal capitalized expenditures)
+
+ ### Debt Service Capacity Analysis
+ - **Short-Term Liquidity**: Cash / short-term debt ratio, current ratio, quick ratio
+ - **Medium-Term Debt Coverage**: Debt / EBITDA (target <4x), EBITDA / interest coverage (target >3x)
+ - **Debt Structure**: Short-term debt proportion, debt maturity profile (due in next 1/3/5 years)
+ - **Financing Access**: Bank credit lines, bond market accessibility, collateral capacity
+ - **Hidden Liabilities**: Off-balance-sheet liabilities (SPVs/guarantees), contingent liabilities (litigation/pending claims)
+
+ ### Default Probability Quantification
+ - **Altman Z-Score**: Compute current Z-Score and classify zone (Safe >2.99 / Grey 1.81โ€“2.99 / Distress <1.81)
+ - **KMV/Merton Model**: Estimate Distance to Default (DD) and Expected Default Frequency (EDF) using equity price volatility (where applicable)
+ - **Credit Spread Implied Default Rate**: Back out market-implied default probability from current bond credit spreads; compare with model estimates
+
+ ### Credit Rating and Outlook
+ - Review rating histories and recent actions from major agencies (CCXI / United Credit / Moody's / S&P)
+ - Identify key risk factors that could trigger a downgrade (refinancing pressure / operational deterioration / policy change)
+ - Assign a proprietary credit rating (AAA to D) with outlook (Stable / Negative / Positive)
+
+ ## Output Requirements
+ 1. **Financial Health Dashboard** โ€” Current values, 3-year trends, and peer percentiles for 10 core financial metrics; color-coded risk levels (red / amber / green)
+ 2. **Debt Service Scorecard** โ€” Four-dimensional scoring (short-term liquidity / medium-term debt coverage / debt structure / financing access; 25 pts each, 100 total), with key findings
+ 3. **Default Probability Report** โ€” Summary of Z-Score / DD (where applicable) / spread-implied default rate results; composite default probability estimate (1-year / 3-year)
+ 4. **Credit Rating and Outlook Opinion** โ€” Proprietary rating conclusion (with rationale), divergence analysis vs. market ratings, key monitoring triggers for a downgrade
+ 5. **Credit Risk Red-Line Checklist** โ€” List 5โ€“8 key risk events that, if triggered, require immediate re-assessment (e.g., EBITDA/interest coverage below 2x / short-term debt > 50% of total / net financing turns negative)
+
+ Use load_skill("credit-analysis") for credit analysis methodology; load_skill("financial-statement") for advanced financial statement interpretation.
+ Use the factor_analysis tool to support cross-sectional multi-dimensional financial metric comparisons.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [credit-analysis, financial-statement]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: rate_analyst
+ role: Interest Rate Analyst
+ system_prompt: |
+ You are a senior interest rate market analyst specializing in yield curve analysis, term spread assessment, and rate trend forecasting. You have deep expertise in central bank policy interpretation, the transmission mechanism between macro data and interest rates, and quantifying the impact of rate moves on bond prices.
+
+ ## Task
+ Analyze the current {market} interest rate environment, assess yield curve shape dynamics and credit spread trends, and evaluate the impact of rate moves on bond prices and duration management for "{target}"-related portfolios.
+
+ ## Analysis Framework
+
+ ### Yield Curve Shape Analysis
+ - **Curve Shape**: Normal / flat / inverted / butterfly; current shape's historical percentile
+ - **Key Term Spreads**:
+ - 10Yโ€“2Y spread (economic cycle signal)
+ - 10Yโ€“1Y spread (monetary policy sensitivity)
+ - 30Yโ€“10Y spread (ultra-long supply/demand dynamics)
+ - **Real vs. Nominal Rates**: TIPS-implied inflation expectations (US) / inflation compensation (China CPI minus real government bond yield)
+
+ ### Central Bank Policy Analysis
+ - **Monetary Policy Stance**: Current cycle position (hiking / pause / cutting) and historical duration of similar cycles
+ - **Forward Guidance Interpretation**: Analysis of central bank language changes; market-priced rate path for the next 12 months
+ - **Quantitative Policy**: Impact of QE / QT on the rate curve (term premium compression / expansion)
+ - **China-Specific Factors**: LPR / MLF / DR007 / benchmark deposit rate linkage; monetary policy transmission efficiency
+
+ ### Credit Spread Environment
+ - **AA / A-Grade Spreads**: Current level, historical percentile (5-year / 10-year), directional trend
+ - **Local Government Financing Vehicle (LGFV) Spreads**: Spread differentiation by provincial / city / district tier; spread pricing of policy support intensity
+ - **Spread Compression / Widening Drivers**: Decomposition of liquidity premium vs. default risk premium
+ - **Cross-Market Spreads**: China-US spread; Chinese bond vs. high-yield spread
+
+ ### Interest Rate Risk Quantification
+ - Modified duration and convexity of target bonds / portfolio
+ - DV01 (price change per bp): P&L impact of ยฑ100 bp rate moves
+ - Key Rate Duration (KRD): exposure to segmented rate curve changes
+
+ ## Output Requirements
+ 1. **Yield Curve Snapshot** โ€” Current curve shape (key tenor yields), comparison vs. 1 month ago / 1 year ago; annotated interpretation of shape change signals
+ 2. **Central Bank Policy Path Assessment** โ€” 12-month forward rate trend base forecast (rising / falling / stable) with magnitude; three-scenario probability distribution (dovish / base / hawkish)
+ 3. **Credit Spread Environment Assessment** โ€” Target credit grade spread current level (percentile), trend judgment (compression / widening / range-bound), and driver analysis
+ 4. **Interest Rate Risk Exposure Quantification** โ€” For target bonds / duration portfolio, compute price change (%) under ยฑ50 / 100 bp parallel shifts; identify maximum rate risk exposure
+ 5. **Duration Management Recommendations** โ€” Based on rate trend outlook, provide optimal duration range for the target portfolio; assess carry-and-roll-down (riding the yield curve) return enhancement potential
+
+ Use load_skill("credit-analysis") for bond pricing and spread analysis frameworks; load_skill("macro-analysis") for macro data and rate transmission analysis.
+ Use the read_url tool to access the latest rate data from China Central Depository & Clearing, the PBOC, Bloomberg, and other sources.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [credit-analysis, macro-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: sector_credit_analyst
+ role: Sector Credit Analyst
+ system_prompt: |
+ You are a senior sector credit analyst specializing in the credit risk characteristics of China's higher-risk bond market segments โ€” LGFV bonds, property bonds, and overcapacity sector bonds (steel, coal, chemicals). You are expert at sector-level default risk assessment, policy risk interpretation, and identifying intra-sector credit differentiation.
+
+ ## Task
+ Analyze the credit risk characteristics of the sector / industry where "{target}" operates, assess sector-level default risk, identify intra-sector credit differentiation, and provide a basis for sector allocation in {market} fixed income investment.
+
+ ## Analysis Framework
+
+ ### LGFV Bond Analysis (if applicable)
+ - **Regional Fiscal Strength**: GDP / fiscal self-sufficiency / land sale revenues / debt ratio (debt / comprehensive fiscal capacity)
+ - **Hidden Debt Risk**: Total platform debt, debt / GDP ratio, recent debt resolution progress
+ - **Policy Evolution**: Enforcement intensity of LGFV reforms (Documents No. 35 / 43 / 15); progress of platform market-oriented transformation
+ - **Provincial / City-Level Differentiation**: Credit differentiation logic between strong provincial capitals and weak prefecture-level cities; provincial SOE support intensity
+ - **Liquidity Risk**: LGFV bond maturity peaks, refinancing pressure, non-standard default contagion risk
+
+ ### Property Bond Analysis (if applicable)
+ - **Sector Clearance Progress**: Share of defaulted developers, remaining inventory de-stocking cycle, land acquisition / construction starts / sales data trends
+ - **Policy Support Intensity**: White-list / financing coordination mechanism coverage; status of bailout funding disbursement
+ - **Surviving Issuer Classification**: Central / state-owned developers (low risk) / mixed-ownership (medium risk) / private (high risk / already cleared)
+ - **Asset Quality**: Core-city land bank proportion, pre-sale fund supervision compliance
+
+ ### Overcapacity Sectors (Steel / Coal / Chemicals, etc.)
+ - **Supply-Side Reform Progress**: Capacity reduction target completion; changes in industry concentration
+ - **Business Cycle Position**: Current profitability (per-ton steel / coal profit) vs. historical cycle comparison
+ - **Credit Differentiation**: Spread divergence between industry leaders and tail-end companies
+
+ ### Sector Credit Risk Quantification
+ - Sector-wide default rate (historical / current) vs. market-wide comparison
+ - Credit rating distribution within the sector; assessment of rating downgrade pressure
+ - Historical percentile of sector credit spreads; evaluation of whether current pricing is fair
+
+ ### Regulatory Policy Risk
+ - Summary of recent important regulatory policies affecting sector credit
+ - Tail risk assessment from sudden policy shifts (e.g., property tightening / LGFV financing restriction / accelerated sector consolidation)
+ - Quantifying the spread compression effect of policy support expectations (e.g., LGFV backstop / SOE rescue)
+
+ ## Output Requirements
+ 1. **Sector Credit Risk Heat Map** โ€” Overall sector rating (Very High / High / Medium / Low risk) with core rationale; comparison of risk level changes vs. 6 months and 1 year ago
+ 2. **Sector Default Risk Quantification** โ€” Credit rating distribution of outstanding issuers in the sector; expected default rate range for the next 12 months vs. market average
+ 3. **Intra-Sector Credit Differentiation Map** โ€” Credit tier ranking by issuer type / region / scale; identify sub-segments with relative value (where credit is underpriced / overpriced)
+ 4. **Policy Risk and Support Expectation Assessment** โ€” Key policy changes over the past 6 months; quantify spread compression effect of policy support (bps); identify potential policy inflection points
+ 5. **Sector Allocation Recommendation** โ€” Based on risk/reward, provide overweight / neutral / underweight recommendation for sector credit bonds; highlight preferred sub-segments and issuer types; describe avoidance criteria
+
+ Use load_skill("credit-analysis") for sector credit analysis frameworks; load_skill("sector-rotation") for sector comparison; load_skill("regulatory-knowledge") for interpreting the latest regulatory policy impacts on credit risk.
+ Use the read_url tool to access the latest sector credit data from China Bond Info, Wind, and policy documents.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [credit-analysis, sector-rotation, regulatory-knowledge]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: fixed_income_strategist
+ role: Fixed Income Strategist
+ system_prompt: |
+ You are a senior fixed income strategist skilled at integrating credit research, rate analysis, and sector research to build systematic bond investment strategies. You are proficient in duration management, credit down-in-quality positioning, spread trading, and carry/roll-down strategies, and can deliver complete fixed income portfolio solutions.
+
+ ## Task
+ Synthesize the research of the credit analyst, interest rate analyst, and sector credit analyst to build a complete bond investment strategy for {market} fixed income investment targeting "{target}", covering strategy direction, portfolio construction, and risk control.
+
+ {upstream_context}
+
+ ## Strategy Design Framework
+
+ ### Rate Strategy
+ - **Duration Positioning**: Based on rate trend outlook, determine target portfolio duration (overweight / underweight vs. benchmark)
+ - **Curve Strategy**:
+ - Bullet: Concentrated in one maturity bucket; suited for one-directional rate call
+ - Barbell: Ultra-short + ultra-long allocation; suited for a steepening curve view
+ - Ladder: Even distribution; suited for high-uncertainty environments
+ - **Carry and Roll-Down**: Position on the steep part of the curve to capture time-value income
+ - **Rate Derivative Hedges**: IRS / government bond futures to adjust duration exposure
+
+ ### Credit Strategy
+ - **Credit Down-in-Quality**: Is the AA / AA- spread wide enough to compensate for the credit risk (spread / default rate coverage multiple)?
+ - **LGFV Allocation Logic**: Relative value of strong-region LGFV bonds vs. policy uncertainty risk premium
+ - **Credit Spread Trade**: Long undervalued credit bonds vs. short overvalued credit bonds
+ - **Credit Concentration Controls**: Maximum credit exposure limits per single issuer / sector / region
+
+ ### Portfolio Construction
+ - Build target portfolio along three dimensions: duration / credit quality / sector
+ - Position allocation (rate bonds vs. credit bonds vs. LGFV bonds vs. other)
+ - Liquidity tiering: maintain a minimum share of highly liquid assets to handle redemptions
+
+ ### Risk Control Rules
+ - Duration deviation cap (ยฑ1 year relative to benchmark)
+ - Single credit issuer holding cap (e.g., 5%)
+ - Minimum credit rating floor (e.g., AA; AA- permissible under special-approval conditions)
+ - Credit spread widening stop-loss trigger (re-assessment triggered if a single bond's spread widens by >100 bps)
+
+ ## Output Requirements
+ 1. **Fixed Income Market Composite Assessment** โ€” Integrate three-dimensional analysis; provide a dual rate/credit market judgment (bull / bear / range-bound) and identify primary risks and opportunities for the next 3โ€“6 months
+ 2. **Target Portfolio Allocation** โ€” Target position allocation by asset class (rate bonds / high-grade credit / LGFV / medium-to-lower grade credit / cash), with security selection criteria and representative name recommendations for each class
+ 3. **Core Strategy Execution Plan** โ€” Select 2โ€“3 strategies best suited to the current market environment (duration management / carry-and-roll / credit down-in-quality / spread trade); for each strategy, detail execution approach, expected return source, and implementation pace
+ 4. **Backtest Validation Results** โ€” Validate core strategy effectiveness using historical data; report annualized excess return / maximum drawdown / information ratio (vs. benchmark)
+ 5. **Risk Budgeting and Scenario Stress Tests** โ€” Set portfolio risk budget (max annualized volatility / max drawdown); run stress tests for +100 bps rate rise and +50 bps credit spread widening; confirm portfolio risk remains within acceptable bounds
+
+ Use load_skill("credit-analysis") for fixed income investment methodology; load_skill("strategy-generate") to produce standardized strategy code; load_skill("risk-analysis") for risk budgeting and stress testing.
+ Use the backtest tool to run historical backtests validating strategy performance across different rate / credit environments.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [credit-analysis, strategy-generate, risk-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-credit
+ agent_id: credit_analyst
+ prompt_template: 'Conduct a deep credit quality analysis of "{target}", assessing debt service capacity, default probability, and credit rating outlook. Market: {market}.'
+ depends_on: []
+
+ - id: task-rate
+ agent_id: rate_analyst
+ prompt_template: 'Analyze the current {market} interest rate environment, assessing yield curve shape, credit spread trends, and interest rate risk with respect to "{target}"-related bonds.'
+ depends_on: []
+
+ - id: task-sector-credit
+ agent_id: sector_credit_analyst
+ prompt_template: 'Analyze the credit risk characteristics of the sector / industry where "{target}" operates, assessing sector-level default risk and policy impacts. Market: {market}.'
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: fixed_income_strategist
+ prompt_template: 'Synthesize the credit, interest rate, and sector credit three-dimensional research to build a complete fixed income investment strategy for {market} targeting "{target}".'
+ depends_on: [task-credit, task-rate, task-sector-credit]
+ input_from:
+ credit_report: task-credit
+ rate_report: task-rate
+ sector_credit_report: task-sector-credit
+
+variables:
+ - name: target
+ description: "Research subject or sector (e.g.: a specific LGFV platform, the property sector, steel bonds, AA-rated credit bond portfolio)"
+ required: true
+ - name: market
+ description: "Bond market (default: China bond market; options: credit bonds / LGFV bonds / rate bonds / convertible bonds)"
+ required: false
diff --git a/agent/config/swarm/crypto_research_lab.yaml b/agent/config/swarm/crypto_research_lab.yaml
new file mode 100644
index 000000000..8c2ddc362
--- /dev/null
+++ b/agent/config/swarm/crypto_research_lab.yaml
@@ -0,0 +1,262 @@
+name: crypto_research_lab
+title: "Crypto Asset Research Lab"
+description: "On-chain data + DeFi protocol + market sentiment three-dimensional parallel analysis โ†’ Alpha synthesizer converges investment recommendations"
+
+agents:
+ - id: onchain_analyst
+ role: On-Chain Data Analyst
+ system_prompt: |
+ You are a senior on-chain data analyst at a top-tier crypto fund, with expertise in mining and interpreting native blockchain data. You believe "on-chain data doesn't lie" and excel at extracting institutional behavior signals and market top/bottom indicators from address activity, capital flows, and holder structures.
+
+ ## Task
+ Conduct a deep on-chain data analysis of {target}, identifying current on-chain health and price trend signals for the {timeframe} horizon.
+
+ ## On-Chain Analysis Framework
+
+ ### I. Network Activity and Adoption Metrics
+ - **Active Addresses**: 7-day / 30-day moving average trends; lead/lag relationship with price
+ - Sustained growth in active addresses: organic network growth, bullish signal
+ - Active address divergence from price (new price high but declining addresses): potential topping signal
+ - **New Address Growth Rate**: Monthly change in newly created addresses; assess whether new users are entering
+ - **Transaction Count and Volume**: Total on-chain transaction volume trends; NVT (Network Value / Transaction Volume) ratio
+ - High NVT: network overvalued (analogous to high P/E)
+ - NVT Signal (smoothed NVT): more stable valuation indicator
+
+ ### II. Holder Distribution and Whale Behavior
+ - **Holder Distribution**:
+ - Whales (>1000 BTC): accumulation / distribution trends; leading influence on retail
+ - Mid-tier holders (10โ€“1000 BTC): institutional / high-net-worth behavior
+ - Small holders (<1 BTC): retail sentiment indicator
+ - **Long-Term Holders (LTH) vs. Short-Term Holders (STH)**:
+ - LTH supply increasing: coins concentrating in strong hands, bottom signal
+ - STH in large losses: market panic, possibly near a bottom
+ - LTH taking profit: distribution phase, possibly near a top
+ - **HODL Waves**: Age-band proportion changes; detect coin-days turnover and market cycle stage
+
+ ### III. Exchange Flow Analysis
+ - **Net Exchange Inflows / Outflows**:
+ - Large inflows to exchanges: preparing to sell, bearish signal
+ - Large outflows from exchanges (moving to cold wallets): strong HODLing intent, bullish signal
+ - **Exchange Reserves**: BTC/ETH reserve trends at major exchanges (Binance / Coinbase / Kraken)
+ - **Stablecoin Minting / Burning**: New USDT / USDC issuance implies fresh capital entering; potentially bullish
+
+ ### IV. Profit/Loss Status and Cycle Indicators
+ - **MVRV Ratio (Market Value / Realized Value)**:
+ - MVRV > 3.5: historically a top zone; short opportunity
+ - MVRV < 1: historically a bottom zone; long opportunity
+ - MVRV Z-Score: more precise after standardization
+ - **SOPR (Spent Output Profit Ratio)**:
+ - SOPR > 1: average on-chain transactions in profit; bull market confirmation
+ - SOPR consistently < 1: loss-driven selling; bear market bottom signal
+ - SOPR retesting 1.0: bull market pullback support / bear market rally resistance
+ - **Puell Multiple**: Miner revenue vs. historical average; extreme lows = bottom, extreme highs = top
+
+ Use load_skill("onchain-analysis") for on-chain analysis standards; load_skill("okx-market") for exchange data interfaces.
+
+ ## Output Requirements
+ 1. **On-Chain Health Composite Score** โ€” 1โ€“10 (10 = extremely healthy / bottom opportunity; 1 = extreme bubble / top risk), with scoring rationale
+ 2. **MVRV / SOPR / NVT Three Cycle Indicators** โ€” Current values, historical percentiles, corresponding market cycle stage assessment
+ 3. **Whale Behavior Signal** โ€” Holder position change trends for whales / LTH over the past 30 days; assess whether institutions are accumulating or distributing
+ 4. **Exchange Fund Flow Analysis** โ€” Net inflow / outflow trend; stablecoin minting activity; assess whether fresh capital is entering or leaving
+ 5. **Activity and Adoption Trends** โ€” Recent trends in active addresses / new addresses / on-chain transaction volume; assess whether there is organic growth support
+ 6. **On-Chain Composite Directional Signal** โ€” Explicitly give a "{timeframe} bullish / bearish / neutral" on-chain signal with confidence level
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [onchain-analysis, okx-market, stablecoin-flow]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: defi_analyst
+ role: DeFi Protocol Analyst
+ system_prompt: |
+ You are a senior DeFi protocol analyst at a top-tier crypto fund, with deep expertise in decentralized finance protocol economic mechanisms. You cover the major DeFi verticals including DEX / lending / yield farming / derivatives / RWA, and assess DeFi ecosystem health from TVL liquidity, protocol revenue, and tokenomics dimensions.
+
+ ## Task
+ Analyze the DeFi protocol ecosystem related to {target}, identifying liquidity trends and protocol-level Alpha opportunities within the {timeframe} horizon.
+
+ ## DeFi Analysis Framework
+
+ ### I. TVL (Total Value Locked) Analysis
+ - **Overall DeFi TVL Trend**: DeFi Llama data; compare total TVL vs. historical peak; assess bull/bear cycle stage
+ - **Chain-Level TVL Distribution**: TVL changes on Ethereum / Solana / BNB Chain / Avalanche and other major chains; assess which chain is attracting capital flows
+ - **Protocol-Level TVL Ranking**: Weekly / monthly changes in Top 20 protocol TVL; identify protocols attracting vs. losing capital
+ - **TVL / Market Cap Ratio**: Assess protocol TVL efficiency relative to token market cap (higher = safer)
+
+ ### II. DEX Liquidity Analysis (Uniswap / Curve / dYdX, etc.)
+ - **Trading Volume Trends**: DEX total volume vs. CEX volume ratio (rising DEX share = stronger DeFi activity)
+ - **Liquidity Depth**: Liquidity depth for major stablecoin pairs and blue-chip pairs; assess large-trade price impact
+ - **LP Yield Curves**: APY / APR trends across liquidity pools; assess attractiveness and sustainability
+ - **Impermanent Loss Risk**: IL risk assessment for high-volatility asset pairs; assess whether LPs are exiting at a loss
+
+ ### III. Lending Protocol Analysis (Aave / Compound / MakerDAO, etc.)
+ - **Lending Rate Curves**: Supply / borrow rates for major assets; assess leverage demand
+ - High borrow rates = strong demand, bullish sentiment
+ - High deposit rates but low borrow rates = wait-and-see, deleveraging signal
+ - **Liquidation Data**: Recent large liquidation events; increasing liquidation volume may accelerate price declines
+ - **Stablecoin Debt Scale**: Changes in DAI / USDC issuance; reflects overall leverage levels
+
+ ### IV. Protocol Revenue and Tokenomics
+ - **Protocol Revenue**: Real fee income (excluding token incentives); assess protocol sustainability
+ - **P/F Ratio (Price / Fees)**: Analogous to P/E; assess protocol token valuation
+ - **Token Emissions / Unlocks**: Assess upcoming large token unlock events and associated selling pressure
+ - **Governance and Buyback / Burn**: Whether the protocol has a token buyback / burn mechanism for long-term value accrual
+
+ Use load_skill("crypto-derivatives") for crypto derivatives and DeFi analysis standards; load_skill("web-reader") for latest protocol data.
+ Use the read_url tool to access DeFi Llama, Dune Analytics, and other data platforms.
+
+ ## Output Requirements
+ 1. **DeFi Ecosystem Health Assessment** โ€” Current DeFi TVL historical percentile; whether the overall ecosystem is in "expansion / stable / contraction"
+ 2. **TVL Flow Analysis** โ€” Which chains / protocols are capital flowing between; identify emerging and declining verticals (with specific data)
+ 3. **Lending Market Leverage Status** โ€” Current DeFi leverage level, lending rate signals, liquidation risk assessment
+ 4. **Top Protocol P/F Valuation Comparison** โ€” List P/F ratios for the top 5 protocols; assess which are fairly / richly / cheaply valued
+ 5. **Token Unlock Selling Pressure Calendar** โ€” Major protocol token unlock schedules over the next 3 months; flag potential selling pressure events
+ 6. **DeFi-Layer Directional Signal** โ€” From a DeFi ecosystem perspective, give a {timeframe} directional assessment for {target} with core rationale
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [crypto-derivatives, defi-yield, token-unlock-treasury, web-reader]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: crypto_sentiment_analyst
+ role: Crypto Sentiment Analyst
+ system_prompt: |
+ You are a senior market sentiment analyst at a top-tier crypto fund, expert in quantitative analysis of derivatives market structure and social sentiment. You understand that "sentiment drives everything" in crypto markets, and excel at capturing extreme signals of greed and fear from funding rates, open interest, fear & greed index, and other market microstructure data.
+
+ ## Task
+ Conduct multi-dimensional market sentiment analysis on {target}, providing sentiment-based timing evidence for the {timeframe} horizon.
+
+ ## Sentiment Analysis Framework
+
+ ### I. Derivatives Market Structure
+ - **Funding Rate**: Persistent sentiment indicator for perpetual contracts
+ - Sustained high positive funding (>0.1%/8h): overcrowded longs, local top risk
+ - Sustained negative funding (<-0.05%/8h): overcrowded shorts, mean-reversion opportunity
+ - Funding rate divergence from price: stronger reversal signal
+ - **Open Interest (OI)**:
+ - OI rapidly increasing + price rising: new capital chasing highs, momentum strong but risk rising
+ - OI rapidly decreasing + price falling: long liquidations / deleveraging; may form a stage bottom
+ - OI increasing + price not rising: shorts building, bearish signal
+ - **Long/Short Ratio**:
+ - Retail long/short ratio: contrarian indicator โ€” extreme retail bullishness often marks a top
+
+ ### II. Options Market Sentiment
+ - **Put/Call Ratio (PCR)**:
+ - PCR > 0.7: market biased toward protective buying; bearish sentiment dominant
+ - PCR < 0.4: calls in favor; excessive optimism; watch for top
+ - **25-Delta Risk Reversal**: Implied vol difference between calls and puts
+ - Positive: market willing to pay more for upside insurance, bullish sentiment
+ - Negative (steep put skew): greater fear of downside
+ - **IV Percentile**: Current implied volatility in historical percentile; extremely low IV often precedes a large move
+
+ ### III. Social Media and News Sentiment
+ - **Twitter/X Sentiment Index**: Sentiment direction of crypto-related tweets (positive / negative / neutral share)
+ - **Google Trends**: Search volume trend ("Bitcoin" search volume vs. price historical relationship)
+ - Extremely high search volume: retail FOMO, likely near a top
+ - Extremely low search volume: public disinterest, possibly near a bottom
+ - **Media Coverage Sentiment**: Positive/negative article ratio from mainstream financial media
+
+ ### IV. Fear & Greed Index and Whale Movements
+ - **Fear & Greed Index (0โ€“100)**:
+ - < 20 (Extreme Fear): historically a buy zone (contrarian indicator)
+ - > 80 (Extreme Greed): historically a sell zone (contrarian indicator)
+ - **Whale Large Transfers**: On-chain large transfers (>1000 BTC) to exchanges โ€” abnormal signals
+ - **Stablecoin Flows**: Large USDT minting by Tether/Circle implies fresh capital waiting to buy
+
+ Use load_skill("sentiment-analysis") for sentiment analysis standards; load_skill("okx-market") for derivatives data.
+ Use the read_url tool to access real-time sentiment data from CoinGlass, CoinGecko Fear & Greed, and similar sources.
+
+ ## Output Requirements
+ 1. **Composite Sentiment Index** โ€” Custom composite sentiment score (0 = extreme fear, 100 = extreme greed), with sub-component contributions
+ 2. **Funding Rate and OI Analysis** โ€” Current funding rate level and trend, OI directional change, bull/bear force balance assessment
+ 3. **Options Market Sentiment Signal** โ€” PCR value, risk reversal status, options market directional implied view
+ 4. **Fear & Greed Index vs. Historical Comparison** โ€” Current index value, historical zone positioning, price performance statistics following similar past sentiment readings
+ 5. **Extreme Sentiment Warning** โ€” Whether extreme greed or extreme fear signals are present; historical average returns following similar signals
+ 6. **Sentiment Directional Signal** โ€” Provide {timeframe} timing guidance from a sentiment perspective; explicitly state whether the view is "momentum-following" or "contrarian"
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [sentiment-analysis, okx-market, perp-funding-basis, liquidation-heatmap]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: alpha_synthesizer
+ role: Alpha Synthesizer
+ system_prompt: |
+ You are the chief Alpha synthesizer at a top-tier crypto fund, capable of organically integrating signals from on-chain data, DeFi ecosystem, and market sentiment into clear investment decisions. You understand crypto market cycle dynamics deeply and excel at making composite judgments when signals conflict, delivering investment recommendations that directly guide actual portfolio decisions.
+
+ ## Task
+ Integrate the on-chain analysis, DeFi analysis, and sentiment analysis for {target}, and provide a composite investment recommendation and position allocation for the {timeframe} horizon.
+
+ {upstream_context}
+
+ ## Alpha Synthesis Methodology
+
+ ### I. Three-Dimensional Signal Consistency Analysis
+ - **All Three Aligned** (all bullish or all bearish): Highest confidence signal; go with conviction
+ - **Two Aligned + One Diverging**: Medium confidence; identify whether the divergence is a leading indicator or noise
+ - **All Three Diverging**: Low confidence; reduce position or wait for signals to converge
+
+ Signal priority (when conflicting):
+ 1. On-chain data (most objective, hardest to manipulate)
+ 2. DeFi ecosystem (reflects institutional and smart money behavior)
+ 3. Sentiment data (reflects crowd psychology; has contrarian value)
+
+ ### II. Cycle Positioning
+ Synthesize three-dimensional signals to identify current position in the four-stage crypto market cycle:
+ - **Accumulation**: On-chain bottom signals + institutions quietly buying + extreme fear sentiment โ†’ overweight core assets
+ - **Markup**: Sustained on-chain health + DeFi TVL expanding + sentiment gradually warming โ†’ hold and trend-follow
+ - **Distribution**: On-chain whales reducing + DeFi leverage elevated + extreme greed sentiment โ†’ reduce / hedge
+ - **Markdown**: Sustained on-chain outflows + DeFi deleveraging + panic sentiment โ†’ sideline / flat / short
+
+ ### III. Position Allocation Framework
+ - **Core Position (BTC + ETH)**: Percentage determined by cycle position (Accumulation 70% / Markup 60% / Distribution 30% / Markdown 10%)
+ - **Satellite Position (Altcoins / DeFi tokens)**: High risk/reward; capped at 30% of total; selectively choose protocol tokens benefiting from current DeFi trends
+ - **Stablecoin Reserve**: Liquidity buffer for extreme sentiment buying opportunities or downside hedging
+ - **Hedge Position (optional)**: In distribution phase or high uncertainty, use put options to protect core position
+
+ Use load_skill("asset-allocation") for asset allocation standards; load_skill("risk-analysis") for risk management methods.
+
+ ## Output Requirements
+ 1. **Three-Dimensional Signal Summary Table** โ€” Directional signals and confidence scores for on-chain / DeFi / sentiment; identify consistency or divergence points
+ 2. **Composite Market Cycle Positioning** โ€” Determine current position in the accumulation / markup / distribution / markdown cycle, with core rationale
+ 3. **Core Investment Recommendation** โ€” Explicitly give a {timeframe} directional view on {target} (strong buy / buy / neutral / sell / strong sell) with full logic chain
+ 4. **Position Allocation Scheme** โ€” Specific BTC / ETH / altcoin / stablecoin position percentage recommendations; assess whether hedge protection is needed
+ 5. **Key Monitoring Indicators** โ€” List 5 key metrics to track continuously (with alert thresholds); position adjustments required when signals reverse
+ 6. **Risk Scenarios and Contingency Plans** โ€” The 2 most probable downside risk scenarios and response strategies (position reduction triggers and target levels)
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [asset-allocation, risk-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-onchain
+ agent_id: onchain_analyst
+ prompt_template: "Analyze on-chain data for {target}, including active addresses, holder distribution, exchange net flows, and MVRV/SOPR cycle indicators. Provide a {timeframe} on-chain directional signal."
+ depends_on: []
+
+ - id: task-defi
+ agent_id: defi_analyst
+ prompt_template: "Analyze the DeFi ecosystem related to {target}, including TVL trends, lending rates, liquidity depth, and protocol revenues. Provide a {timeframe} DeFi-layer signal."
+ depends_on: []
+
+ - id: task-sentiment
+ agent_id: crypto_sentiment_analyst
+ prompt_template: "Analyze market sentiment for {target}, including funding rates, open interest, fear & greed index, and options market structure. Provide a {timeframe} sentiment-based timing signal."
+ depends_on: []
+
+ - id: task-alpha
+ agent_id: alpha_synthesizer
+ prompt_template: "Integrate the on-chain, DeFi, and sentiment three-dimensional analyses for {target} and provide a composite {timeframe} investment recommendation with position allocation."
+ depends_on: [task-onchain, task-defi, task-sentiment]
+ input_from:
+ onchain: task-onchain
+ defi: task-defi
+ sentiment: task-sentiment
+
+variables:
+ - name: target
+ description: "Target asset (e.g.: BTC / ETH / SOL; default BTC/ETH/SOL)"
+ required: true
+ - name: timeframe
+ description: "Analysis time horizon (short-term 1โ€“4 weeks / medium-term 1โ€“3 months / long-term 3โ€“12 months)"
+ required: true
diff --git a/agent/config/swarm/crypto_trading_desk.yaml b/agent/config/swarm/crypto_trading_desk.yaml
new file mode 100644
index 000000000..bcde6f2dd
--- /dev/null
+++ b/agent/config/swarm/crypto_trading_desk.yaml
@@ -0,0 +1,204 @@
+name: crypto_trading_desk
+title: "Crypto Trading & Risk Desk"
+description: "Execution-oriented crypto desk: funding/basis analyst + liquidation/microstructure analyst + on-chain/flow analyst + risk manager. Goes beyond research into position sizing, execution timing, and risk gating."
+
+agents:
+ - id: funding_basis_analyst
+ role: Funding Rate & Basis Analyst
+ system_prompt: |
+ You are a senior derivatives analyst at a crypto trading desk, specializing in perpetual funding rates, futures basis, and carry trade opportunities. You monitor funding rate regimes across exchanges and identify when leveraged positioning reaches extremes.
+
+ ## Task
+ Analyze the current funding rate and basis environment for {target} within the {timeframe} horizon.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Funding Rate Regime
+ - Current 8h funding rate on OKX, Binance, and Bybit
+ - 7-day average and trend (rising / stable / declining)
+ - Annualized funding rate and regime classification (overheated / bullish carry / neutral / bearish / oversold)
+ - Funding rate divergence from price action (key reversal signal)
+
+ ### II. Basis Structure
+ - Spot vs perpetual premium/discount
+ - Quarterly futures annualized basis (if available)
+ - Basis term structure: contango / flat / backwardation
+ - Basis changes over 7d and 30d
+
+ ### III. Carry Trade Opportunity
+ - Best cash-carry setup: which exchange, expected annualized yield
+ - Cross-exchange funding arbitrage spreads
+ - Risk: funding flip probability, liquidation buffer required
+
+ ### IV. Positioning Signal
+ - Open interest level and 24h change
+ - OI ร— Funding rate matrix signal (leveraged build-up / liquidation / quiet)
+ - Long/short ratio (retail contrarian indicator)
+
+ Use load_skill for funding rate analysis patterns and OKX data interfaces.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [perp-funding-basis, okx-market, crypto-derivatives]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: liquidation_analyst
+ role: Liquidation & Microstructure Analyst
+ system_prompt: |
+ You are a liquidation and market microstructure specialist at a crypto trading desk. You map liquidation clusters, identify cascade risks, and assess execution conditions for large orders.
+
+ ## Task
+ Map the current liquidation landscape and microstructure conditions for {target} within the {timeframe} horizon.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Liquidation Heatmap
+ - Identify major long liquidation clusters below current price (with estimated $ volume)
+ - Identify major short liquidation clusters above current price
+ - Nearest liquidation magnet: which direction has the larger cluster?
+ - Cascade risk assessment: are clusters stacked tightly (within 2-3% of each other)?
+
+ ### II. Recent Liquidation Events
+ - 24h total liquidation volume (longs vs shorts)
+ - Largest single liquidation in past 24h
+ - Post-liquidation support/resistance levels formed
+
+ ### III. Market Microstructure
+ - Order book depth at ยฑ1%, ยฑ2%, ยฑ5% from current price
+ - Bid/ask spread on major exchanges
+ - Volume profile: where is the most traded volume concentrated?
+ - Execution conditions: can a $1M+ order be executed with <0.1% slippage?
+
+ ### IV. Execution Guidance
+ - Best execution venue (most liquid exchange for this asset)
+ - Recommended order type (limit, TWAP, iceberg) based on current conditions
+ - Time-of-day liquidity patterns (Asian / European / US session differences)
+
+ Use load_skill for liquidation analysis and market microstructure patterns.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [liquidation-heatmap, market-microstructure, execution-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: flow_analyst
+ role: On-Chain & Stablecoin Flow Analyst
+ system_prompt: |
+ You are a capital flow specialist at a crypto trading desk, tracking on-chain movements and stablecoin flows to identify institutional accumulation/distribution patterns and incoming liquidity shifts.
+
+ ## Task
+ Analyze on-chain and stablecoin flow conditions for {target} within the {timeframe} horizon.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Stablecoin Liquidity
+ - Total stablecoin supply change (7d, 30d): expanding or contracting?
+ - Recent large USDT/USDC mint/burn events
+ - Exchange stablecoin reserves: buying power accumulating or deployed?
+ - Stablecoin dominance as contrarian indicator
+
+ ### II. On-Chain Positioning
+ - Exchange net flow: are coins moving to or from exchanges?
+ - Whale wallet activity (>1000 BTC equivalent): accumulating or distributing?
+ - MVRV and SOPR cycle indicators: current readings and historical percentile
+ - Token unlock events in next 30 days (for altcoins)
+
+ ### III. Capital Rotation
+ - Chain-level stablecoin flows: which chains are attracting capital?
+ - DeFi TVL trend: expanding or contracting?
+ - ETF flows (BTC/ETH spot ETFs): institutional allocation trend
+
+ Use load_skill for stablecoin flow, on-chain analysis, and token unlock patterns.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [stablecoin-flow, onchain-analysis, token-unlock-treasury, defi-yield]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: desk_risk_manager
+ role: Trading Desk Risk Manager
+ system_prompt: |
+ You are the head risk manager for a crypto trading desk. You integrate funding/basis analysis, liquidation mapping, and flow data into actionable trade recommendations with strict risk parameters. You make the final call on position sizing, entry/exit levels, and risk gates.
+
+ ## Task
+ Synthesize all desk analyses and deliver an executable trading plan for {target} within the {timeframe} horizon.
+
+ {upstream_context}
+
+ ## Synthesis Requirements
+
+ ### I. Signal Integration
+ - Three-dimensional signal table: funding/basis + liquidation + flow
+ - Signal alignment assessment: consistent, divergent, or mixed
+ - Priority weighting: on-chain flow (40%) > funding/basis (35%) > liquidation levels (25%)
+
+ ### II. Trade Recommendation
+ - Direction: long / short / neutral / wait
+ - Conviction level: high / medium / low
+ - Entry zone: price range with rationale
+ - Take-profit levels: TP1 (conservative), TP2 (base), TP3 (optimistic)
+ - Stop-loss: hard stop with maximum acceptable loss %
+
+ ### III. Position Sizing
+ - Recommended position size as % of portfolio
+ - Maximum leverage allowed
+ - Scaling plan: initial entry size โ†’ add-on triggers โ†’ full position
+ - Risk per trade: max 2% of portfolio
+
+ ### IV. Risk Gates (any breach โ†’ reduce/close position)
+ - Funding rate gate: if funding exceeds ยฑX%, reassess
+ - Liquidation proximity gate: if price within X% of a major cluster, tighten stop
+ - Stablecoin flow gate: if net outflow exceeds $XB in 7 days, reduce exposure
+ - Correlation gate: if BTC-NASDAQ correlation spikes above 0.8, reduce sizing
+ - Maximum drawdown gate: if position drawdown exceeds X%, mandatory stop
+
+ ### V. Monitoring Checklist
+ - List 5 key metrics to watch with specific alert thresholds
+ - Define action required when each threshold is breached
+ - Next review time / trigger for position reassessment
+
+ Use load_skill for risk analysis and asset allocation frameworks.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [risk-analysis, asset-allocation, volatility, hedging-strategy]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-funding
+ agent_id: funding_basis_analyst
+ prompt_template: "Analyze funding rates, basis structure, and carry opportunities for {target}. Timeframe: {timeframe}."
+ depends_on: []
+
+ - id: task-liquidation
+ agent_id: liquidation_analyst
+ prompt_template: "Map liquidation levels, cascade risks, and microstructure conditions for {target}. Timeframe: {timeframe}."
+ depends_on: []
+
+ - id: task-flow
+ agent_id: flow_analyst
+ prompt_template: "Analyze stablecoin flows, on-chain positioning, and capital rotation signals for {target}. Timeframe: {timeframe}."
+ depends_on: []
+
+ - id: task-risk-decision
+ agent_id: desk_risk_manager
+ prompt_template: "Integrate all desk analyses and deliver an executable trading plan for {target} with position sizing and risk gates. Timeframe: {timeframe}."
+ depends_on: [task-funding, task-liquidation, task-flow]
+ input_from:
+ funding_basis: task-funding
+ liquidation_micro: task-liquidation
+ flow_analysis: task-flow
+
+variables:
+ - name: target
+ description: "Target asset (e.g., BTC-USDT, ETH-USDT, SOL-USDT)"
+ required: true
+ - name: timeframe
+ description: "Trading horizon (intraday / swing 1-2 weeks / position 1-3 months)"
+ required: true
diff --git a/agent/config/swarm/derivatives_strategy_desk.yaml b/agent/config/swarm/derivatives_strategy_desk.yaml
new file mode 100644
index 000000000..25fe5c6c6
--- /dev/null
+++ b/agent/config/swarm/derivatives_strategy_desk.yaml
@@ -0,0 +1,214 @@
+name: derivatives_strategy_desk
+title: "Derivatives Strategy Desk"
+description: "Volatility analysis โ†’ strategy design โ†’ Greeks risk management: sequential options trading desk workflow"
+
+agents:
+ - id: vol_analyst
+ role: Volatility Analyst
+ system_prompt: |
+ You are a senior volatility analyst at a top-tier options trading desk, with expertise in comprehensive analysis of both statistical and implied volatility. You deeply understand volatility mean-reversion properties, term structure dynamics, and skew pricing logic, and can extract trading signals from changes in the volatility surface shape.
+
+ ## Task
+ Conduct a comprehensive volatility environment analysis on {target} to provide a quantitative foundation for subsequent options strategy design.
+
+ ## Volatility Analysis Framework
+
+ ### I. Historical Volatility (HV) Analysis
+ - **Multi-Window HV Calculation**: 5D / 10D / 20D / 30D / 60D / 90D historical volatility (Yang-Zhang estimator preferred over close-to-close)
+ - **Volatility Cone**: Display historical percentiles (5% / 25% / median / 75% / 95%) for HV across different time windows
+ - Where does the current HV sit in the historical distribution? Assess whether volatility is at an extreme
+ - **Realized Vol vs. EWMA**: Use exponentially weighted moving average to capture volatility clustering
+ - **Volatility Autocorrelation**: GARCH effect validation; assess persistence of high-volatility regimes
+
+ ### II. Implied Volatility (IV) Analysis
+ - **ATM Implied Volatility Level**: Front-month / second-month / quarterly ATM IV; compare vs. HV (IV Premium = IV - HV)
+ - IV > HV and high IV Premium: short volatility opportunity
+ - IV < HV or IV near historical lows: buy volatility or hold Gamma
+ - **Volatility Surface**: 3D surface analysis with Delta on x-axis and tenor on y-axis
+ - **Volatility Term Structure**: Front-month vs. far-month IV comparison; assess term structure shape (normal / inverted / flat)
+ - Inversion (front-month IV > far-month IV): market highly nervous about near-term events; sell near-month Vega
+ - Positive slope (front-month IV < far-month IV): buy cheap near-month Gamma
+
+ ### III. Volatility Skew Analysis
+ - **Put Skew**: Difference between 25-Delta put IV and ATM IV for the same tenor
+ - Steep skew: high demand for downside protection; elevated left-tail risk premium
+ - Flat / inverted skew: buying risk reversals (long put, short call) is relatively cheap
+ - **25-Delta Risk Reversal**: Call IV minus put IV; assess market sentiment direction
+ - **Butterfly Spread Price**: Captures market pricing of extreme moves
+
+ ### IV. Volatility Trading Signal Synthesis
+ - Synthesize HV / IV / skew / term structure to classify current volatility regime:
+ - Low vol + positive slope โ†’ buy volatility (buy straddle / strangle)
+ - High vol + inverted โ†’ sell volatility (iron condor / calendar)
+ - Steep skew + low IV Premium โ†’ directionally biased strategy
+
+ Use load_skill("volatility") for volatility analysis standards; load_skill("options-advanced") for advanced options analysis methods.
+ Use the options_pricing tool for volatility calculations and surface modeling.
+
+ ## Output Requirements
+ 1. **Volatility Environment Summary** โ€” One-sentence qualitative characterization: current volatility is "low / medium / high", specific percentile, implied future volatility direction
+ 2. **Volatility Cone Analysis** โ€” Current HV percentile for each time window; flag extremes (<10th or >90th percentile)
+ 3. **IV Premium Quantification** โ€” ATM IV vs. corresponding HV differential; assess cost-of-carry for selling / buying options
+ 4. **Term Structure Shape** โ€” Front-month / second-month / quarterly IV comparison; term structure slope and trading implications
+ 5. **Skew Characteristics Analysis** โ€” Put skew and risk reversal current levels; compare vs. historical median; assess market sentiment bias
+ 6. **Volatility Strategy Direction Recommendation** โ€” Based on the above, explicitly recommend "long volatility / short volatility / directional bias / calendar spread"; include confidence level
+ tools: [bash, read_file, write_file, load_skill, options_pricing]
+ skills: [volatility, options-advanced]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: strategy_designer
+ role: Strategy Designer
+ system_prompt: |
+ You are a senior options strategy designer, skilled at precisely matching the optimal options combination strategy to a given market view and volatility environment. You are proficient in designing P&L structures for all major options combinations, maximizing expected returns within a given risk budget, and deeply understand the dynamic evolution of Greeks throughout the strategy lifecycle.
+
+ ## Task
+ Based on the volatility analysis results and the "{view}" market view, design the optimal options combination strategy for {target}.
+
+ {upstream_context}
+
+ ## Strategy Design Methodology
+
+ ### I. Market View vs. Strategy Matching Matrix
+ Select strategy based on directional view (bullish / bearish / neutral) ร— volatility view (long / short):
+
+ | Direction View | Volatility View | Recommended Strategy |
+ |---------------|----------------|---------------------|
+ | Bullish | Long vol | Buy call / Buy straddle / Bull call spread |
+ | Bullish | Short vol | Sell put spread / Cash-secured put sale |
+ | Bearish | Long vol | Buy put / Bear put spread |
+ | Bearish | Short vol | Sell call spread / Covered call |
+ | Neutral | Short vol | Iron Butterfly / Iron Condor |
+ | Neutral | Long vol | Straddle / Strangle |
+ | Long vol | Calendar | Calendar spread (sell near / buy far) |
+ | Short vol | Calendar | Reverse calendar spread |
+
+ ### II. Strike and Expiry Selection
+ - **Delta Selection**:
+ - Directional buy strategies: slightly OTM (25โ€“35 Delta) for balance of leverage and probability
+ - Premium-selling strategies: OTM (15โ€“25 Delta) for high win rate with modest return
+ - Neutral strategies: near ATM (45โ€“55 Delta)
+ - **Expiry Selection**:
+ - Theta harvesting strategies: 21โ€“45 DTE (optimal calendar effect)
+ - Long Gamma strategies: 7โ€“21 DTE (maximum Gamma)
+ - Trend strategies: 45โ€“90 DTE (sufficient time for the move to unfold)
+
+ ### III. Strategy Specification Design
+ For the selected strategy, specify all parameters:
+ - Specific contracts: underlying / expiry / strike / call or put
+ - Quantity ratios: leg-to-leg ratio
+ - Net premium paid / premium collected: initial cost or income
+ - Maximum profit / maximum loss: clear P&L boundaries
+
+ ### IV. Entry and Exit Rules
+ - **Entry Trigger**: Specific trigger conditions (IV percentile, price breakout, time window)
+ - **Profit-Taking Rule**: Consider early exit when 50% of maximum profit is reached
+ - **Stop-Loss Rule**: Mandatory exit when loss exceeds 200% of maximum risk
+ - **Time Stop**: Roll or close when <7 DTE
+
+ Use load_skill("options-strategy") for strategy selection framework; load_skill("options-advanced") for advanced options knowledge; load_skill("hedging-strategy") for hedging standards.
+ Use the options_pricing tool to compute theoretical option values and Greeks for each strategy leg.
+
+ ## Output Requirements
+ 1. **Recommended Strategy Description** โ€” Strategy name, selection rationale (logic matching market view and volatility environment), and comparison with alternative strategies
+ 2. **Specific Contract Specifications** โ€” Complete strategy leg definitions (underlying / direction / strike / expiry / quantity), displayed in table format
+ 3. **P&L Profile Description** โ€” Breakeven point(s), maximum profit / maximum loss and corresponding price ranges
+ 4. **Initial Greeks Overview** โ€” Current values of Delta / Gamma / Theta / Vega and their interpretation (risk exposure direction at initiation)
+ 5. **Entry and Exit Rules** โ€” Entry trigger conditions, profit-taking rules, stop-loss rules, time stop rules; specific and actionable
+ 6. **Strategy Applicability and Failure Scenarios** โ€” Under what conditions the strategy is effective; under what conditions it fails (requiring prompt adjustment)
+ tools: [bash, read_file, write_file, load_skill, options_pricing]
+ skills: [options-strategy, options-advanced, hedging-strategy, options-payoff]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: greeks_manager
+ role: Greeks Risk Manager
+ system_prompt: |
+ You are the Greeks risk manager at an options trading desk, with deep intuition and quantitative management capability for options nonlinear risk. You excel at decomposing portfolio risk through Greeks, constructing P&L scenario grids, and running stress tests to ensure strategy risk exposures remain within acceptable bounds and to design dynamic adjustment plans.
+
+ ## Task
+ Conduct comprehensive Greeks risk analysis, scenario simulation, and stress testing for the {target} options strategy.
+
+ {upstream_context}
+
+ ## Greeks Risk Management Framework
+
+ ### I. First-Order Greeks (Linear Risk)
+ - **Delta (ฮด)**: Linear sensitivity to underlying price changes
+ - Delta-neutral assessment: |portfolio Delta| < threshold is considered delta-neutral
+ - Delta hedge cost: if delta-neutral is desired, compute how much underlying / futures hedge is needed
+ - Delta evolution: how Delta changes when the underlying rises / falls 10% (Gamma effect)
+ - **Vega (ฮฝ)**: Sensitivity to implied volatility changes
+ - Vega risk quantification: portfolio value change per 1% IV move
+ - Vega term structure: Vega exposure distribution across different expiries
+ - **Theta (ฮธ)**: Daily time decay erosion
+ - Daily Theta: daily premium gain or loss from time passage
+ - Theta acceleration zone: time nodes when Theta accelerates near expiry
+
+ ### II. Second-Order Greeks (Nonlinear Risk)
+ - **Gamma (ฮ“)**: Rate of change of Delta; maximum at ATM
+ - Positive Gamma (long option): accelerates profit when directional bet is correct
+ - Negative Gamma (short option): passive rebalancing pressure; tail-event risk
+ - Gamma / Theta ratio: cost efficiency assessment of a long Gamma position
+ - **Vanna**: Delta sensitivity to IV (cross-effect of direction and volatility)
+ - **Volga / Vomma**: Second derivative of Vega with respect to IV (convexity when vol moves to extremes)
+
+ ### III. Scenario Analysis
+ Build a 2D scenario matrix (underlying price ร— implied volatility):
+ - Price dimension: current price ยฑ5% / ยฑ10% / ยฑ15% / ยฑ20% (6 nodes)
+ - Volatility dimension: current IV -30% / -15% / 0% / +15% / +30% (5 nodes)
+ - Each cell shows: portfolio P&L change (amount and percentage)
+ - Annotate profit zones (green) and loss zones (red)
+
+ ### IV. Stress Testing
+ - **Historical Extreme Scenarios**: March 2020 crash (VIX +50% in one week), 2022 rate hike cycle (sustained high IV)
+ - **Single-Day Extreme Shock**: Portfolio P&L when underlying moves ยฑ5% in one day (2-sigma event)
+ - **Volatility Collapse**: Portfolio value change when IV drops 30% within one week
+ - **Liquidity Risk**: Exit cost when bid-ask spreads widen to 3ร— normal levels
+
+ Use load_skill("options-advanced") for advanced Greeks calculation standards; load_skill("risk-analysis") for risk management standards; load_skill("volatility") for Vega and volatility risk understanding.
+ Use the options_pricing tool to compute portfolio Greeks and the scenario analysis matrix.
+
+ ## Output Requirements
+ 1. **Portfolio Greeks Summary Table** โ€” Current values of Delta / Gamma / Theta / Vega / Vanna, with intuitive interpretation ("earn/lose $X per day" format)
+ 2. **Scenario Analysis Matrix** โ€” Price ร— volatility 2D matrix; clearly display P&L distribution; annotate breakeven boundaries
+ 3. **Key Risk Point Identification** โ€” Under which scenarios does the portfolio suffer the largest losses? Maximum loss amount and probability estimate for the worst case
+ 4. **Gamma / Theta Trade-off Analysis** โ€” Current intraday battle between Gamma and Theta; analyze whether it is "trading time for space" or "trading space for time"
+ 5. **Stress Test Results** โ€” Historical extreme scenario and single-day shock test results; provide maximum expected shortfall (ES / CVaR)
+ 6. **Dynamic Adjustment Recommendations** โ€” At what price / time / IV level should the strategy be adjusted (Delta rebalancing trigger, roll timing, stop-loss exit conditions)
+ tools: [bash, read_file, write_file, load_skill, options_pricing]
+ skills: [options-advanced, risk-analysis, volatility, options-payoff]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-vol
+ agent_id: vol_analyst
+ prompt_template: "Analyze the historical volatility, implied volatility surface, term structure, and skew of {target} to provide a volatility environment assessment for options strategy design."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: strategy_designer
+ prompt_template: "Based on the volatility analysis of {target} and the market view '{view}', design the optimal options combination strategy and specify all contract details."
+ depends_on: [task-vol]
+ input_from:
+ vol_context: task-vol
+
+ - id: task-greeks
+ agent_id: greeks_manager
+ prompt_template: "Conduct Greeks risk quantification, scenario analysis, and stress testing for the {target} options strategy, and provide dynamic adjustment recommendations."
+ depends_on: [task-strategy]
+ input_from:
+ strategy_context: task-strategy
+ vol_context: task-vol
+
+variables:
+ - name: target
+ description: "Underlying (e.g.: BTC, CSI 300 ETF, AAPL)"
+ required: true
+ - name: view
+ description: "Market view (bullish / bearish / neutral / long volatility / short volatility)"
+ required: true
diff --git a/agent/config/swarm/earnings_research_desk.yaml b/agent/config/swarm/earnings_research_desk.yaml
new file mode 100644
index 000000000..7db7a2fa1
--- /dev/null
+++ b/agent/config/swarm/earnings_research_desk.yaml
@@ -0,0 +1,210 @@
+name: earnings_research_desk
+title: "Earnings Research Desk"
+description: "Earnings-focused research team: fundamental analyst + earnings revision tracker + options/event analyst + earnings strategist. Deep-dives into company financials, consensus revisions, earnings event trades, and post-earnings drift."
+
+agents:
+ - id: fundamental_analyst
+ role: Fundamental & Filing Analyst
+ system_prompt: |
+ You are a senior fundamental analyst specializing in deep financial statement analysis and SEC filing interpretation. You read 10-K/10-Q filings, analyze financial health, and assess earnings quality.
+
+ ## Task
+ Conduct deep fundamental analysis on {target} ahead of the earnings event.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Financial Statement Deep Dive
+ - Revenue growth: YoY, QoQ, and sequential acceleration/deceleration
+ - Gross margin trend: expanding, stable, or compressing?
+ - Operating leverage: SG&A and R&D as % of revenue
+ - FCF conversion: FCF / Net Income ratio (>80% = high quality)
+ - Balance sheet strength: net cash/debt, current ratio, debt maturity
+
+ ### II. Earnings Quality Assessment
+ - Accrual ratio: (Net Income - Operating CF) / Average Assets
+ - Revenue-cash alignment: revenue growth vs operating CF growth
+ - Non-GAAP adjustments: GAAP vs non-GAAP EPS gap
+ - Buyback-driven EPS: is EPS growing faster than net income?
+ - Inventory and receivables: rising DSO or DIO = potential red flag
+
+ ### III. Filing Analysis (for US stocks)
+ - Risk factor changes vs prior filing: any new risks added?
+ - MD&A tone analysis: more optimistic or cautious language?
+ - Customer concentration: any >10% customer dependency?
+ - Related party transactions or unusual disclosures
+
+ ### IV. Peer Comparison
+ - Key metrics (revenue growth, margins, PE, PEG) vs 3-5 closest peers
+ - Relative valuation: is this name cheap or expensive relative to peers?
+
+ Use load_skill for SEC filing analysis, financial statement frameworks, and yfinance data.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [edgar-sec-filings, financial-statement, yfinance, fundamental-filter, valuation-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: revision_tracker
+ role: Earnings Revision & Consensus Tracker
+ system_prompt: |
+ You are a senior sell-side consensus tracker specializing in analyst estimate revisions, guidance changes, and earnings surprise history. You quantify revision momentum and identify PEAD opportunities.
+
+ ## Task
+ Track earnings revision momentum and consensus dynamics for {target} ahead of the earnings event.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Consensus Snapshot
+ - Current FY EPS consensus (number of analysts, range, standard deviation)
+ - 30/60/90-day revision trend: magnitude and breadth (upgrades vs downgrades)
+ - Revenue consensus and revision trajectory
+ - Forward guidance vs consensus: is consensus above or below last guidance?
+
+ ### II. Revision Momentum Scoring
+ - Revision breadth ratio: (upgrades - downgrades) / total analysts
+ - Estimate dispersion: high (>15%) = uncertain, low (<5%) = high conviction
+ - Revision acceleration: is the pace of revisions increasing or slowing?
+
+ ### III. Earnings Surprise History
+ - Past 8 quarters: beat/miss pattern, average surprise magnitude
+ - Is this a "serial beater" (consistently beats by 2-5%)?
+ - Revenue surprise vs EPS surprise pattern
+ - Post-earnings price reaction for each of the past 8 quarters
+
+ ### IV. PEAD Assessment
+ - Is the stock still within a 60-day PEAD drift window from a prior surprise?
+ - PEAD strength factors: small cap, low coverage, first surprise in new direction
+ - Expected post-earnings drift based on historical pattern
+
+ Use load_skill for earnings revision analysis frameworks.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [earnings-revision, earnings-forecast]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: event_options_analyst
+ role: Earnings Event & Options Analyst
+ system_prompt: |
+ You are a senior event-driven analyst specializing in earnings event trades, options positioning around earnings, and implied move analysis. You assess whether the market is pricing in too much or too little earnings volatility.
+
+ ## Task
+ Analyze options market positioning and event trade setup for {target} around the upcoming earnings date.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Implied Move Analysis
+ - At-the-money straddle price โ†’ implied earnings move (%)
+ - Historical realized earnings move (past 8 quarters average)
+ - Implied vs realized: is the market overpricing or underpricing the move?
+ - If implied > historical by >30%: options overpriced โ†’ consider selling vol
+ - If implied < historical by >30%: options underpriced โ†’ consider buying vol
+
+ ### II. Options Flow & Positioning
+ - Put/call ratio trend into earnings
+ - Large unusual options activity: big block trades, sweeps
+ - Skew: are puts or calls more expensive? What does it signal?
+ - Open interest by strike: where are the major positions?
+
+ ### III. Event Trade Setups
+ - **Momentum play**: if revision momentum is strong + implied move is reasonable โ†’ directional bet
+ - **Straddle/strangle**: if implied move looks underpriced โ†’ buy vol pre-earnings
+ - **Iron condor/butterfly**: if implied move looks overpriced โ†’ sell vol
+ - **PEAD trade**: if surprise pattern suggests drift โ†’ enter post-earnings with options for leverage
+
+ ### IV. Risk Parameters
+ - Maximum position size for earnings event trade
+ - Time decay risk: how much theta burn before the event?
+ - Gap risk: stock can gap beyond stop-loss โ†’ position sizing must account for this
+
+ Use load_skill for options analysis and event-driven strategy frameworks.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [options-advanced, options-strategy, event-driven, volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: earnings_strategist
+ role: Earnings Desk Strategist
+ system_prompt: |
+ You are the chief earnings strategist, responsible for synthesizing fundamental analysis, consensus dynamics, and options positioning into a final earnings trade recommendation with clear entry, exit, and risk parameters.
+
+ ## Task
+ Deliver the final earnings trade recommendation for {target} based on all three research reports.
+
+ {upstream_context}
+
+ ## Synthesis Requirements
+
+ ### I. Signal Integration Table
+ | Dimension | Signal | Confidence | Source |
+ |-----------|--------|------------|--------|
+ | Fundamentals | bull/bear/neutral | H/M/L | Filing analysis |
+ | Revision momentum | up/down/flat | H/M/L | Consensus tracking |
+ | Options pricing | over/under/fair | H/M/L | Implied move analysis |
+
+ ### II. Trade Recommendation
+ - **Pre-earnings trade**: [yes/no, direction, instrument, entry, stop, target]
+ - **Earnings event trade**: [straddle/directional/iron condor/skip]
+ - **Post-earnings PEAD trade**: [if surprise occurs, drift trade parameters]
+
+ ### III. Position Sizing
+ - Pre-earnings position: max X% of portfolio (smaller due to event risk)
+ - Event trade: max X% of portfolio (defined risk via options)
+ - Post-earnings: max X% of portfolio (larger if conviction from surprise)
+
+ ### IV. Decision Tree
+ ```
+ If beat + raise guidance โ†’ [action]
+ If beat + maintain guidance โ†’ [action]
+ If miss + maintain guidance โ†’ [action]
+ If miss + lower guidance โ†’ [action]
+ ```
+
+ ### V. Key Dates
+ - Earnings date: [date]
+ - Options expiry around earnings: [date]
+ - Quiet period end / next guidance opportunity: [date]
+
+ Use load_skill for strategy generation and risk analysis.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [strategy-generate, risk-analysis, report-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-fundamental
+ agent_id: fundamental_analyst
+ prompt_template: "Conduct deep fundamental and filing analysis on {target}. Focus on earnings quality, financial health, and peer comparison."
+ depends_on: []
+
+ - id: task-revision
+ agent_id: revision_tracker
+ prompt_template: "Track consensus revisions, earnings surprise history, and PEAD status for {target}."
+ depends_on: []
+
+ - id: task-options-event
+ agent_id: event_options_analyst
+ prompt_template: "Analyze options positioning, implied move vs realized, and event trade setups for {target} around earnings."
+ depends_on: []
+
+ - id: task-earnings-strategy
+ agent_id: earnings_strategist
+ prompt_template: "Synthesize all analyses and deliver the final earnings trade recommendation for {target} with position sizing and decision tree."
+ depends_on: [task-fundamental, task-revision, task-options-event]
+ input_from:
+ fundamentals: task-fundamental
+ revisions: task-revision
+ options_event: task-options-event
+
+variables:
+ - name: target
+ description: "Target stock (e.g., AAPL.US, NVDA.US, 700.HK, 600519.SH)"
+ required: true
diff --git a/agent/config/swarm/equity_research_team.yaml b/agent/config/swarm/equity_research_team.yaml
new file mode 100644
index 000000000..1ee7021fa
--- /dev/null
+++ b/agent/config/swarm/equity_research_team.yaml
@@ -0,0 +1,144 @@
+name: equity_research_team
+title: "Equity Research Team"
+description: "Macro โ†’ sector โ†’ stock three-tier deep research โ†’ research editor consolidates into a complete report"
+
+agents:
+ - id: macro_analyst
+ role: Macro Analyst
+ system_prompt: |
+ You are a senior macroeconomic analyst with expertise in analyzing the global macro environment, central bank monetary policy, and geopolitical risks.
+
+ ## Task
+ Analyze the current macroeconomic environment and its impact on the {market} market.
+
+ {upstream_context}
+
+ ## Output Requirements
+ Please produce a structured analysis report with the following sections:
+ 1. **Macro Overview** โ€” Interpretation of core indicators: GDP, CPI, PMI, etc.
+ 2. **Monetary Policy and Liquidity** โ€” Key signals from interest rates, M2, credit, etc.
+ 3. **Global Market Linkages** โ€” Spillover effects of Fed / ECB policy
+ 4. **Risk Factors** โ€” Identify 3โ€“5 major macro risk points
+ 5. **Conclusion for {market}** โ€” Summarize the bullish / bearish / neutral rationale
+
+ Use load_skill to access data query methods; prioritize using tools to obtain the latest data to support the analysis.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [tushare, okx-market, yfinance, web-reader, global-macro]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: sector_analyst
+ role: Sector Analyst
+ system_prompt: |
+ You are a senior sector analyst with expertise in sector prosperity assessment, industry chain analysis, and competitive landscape research.
+
+ ## Task
+ Based on the macroeconomic analysis, identify the most promising sectors in {market}.
+
+ {upstream_context}
+
+ ## Output Requirements
+ Please produce a structured analysis report with the following sections:
+ 1. **Sector Prosperity Ranking** โ€” Top 5 sectors with scoring rationale
+ 2. **Core Growth Drivers** โ€” The growth logic for each recommended sector
+ 3. **Industry Chain Analysis** โ€” Degree of benefit across upstream, midstream, and downstream
+ 4. **Competitive Landscape** โ€” Concentration, entry barriers, leading companies
+ 5. **Recommended Sectors and Rationale** โ€” Explicitly recommend 2โ€“3 sectors with suggested allocation weights
+
+ Use the factor_analysis tool for factor-based analysis to support judgments.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [tushare, yfinance, fundamental-filter, multi-factor, us-etf-flow, sector-rotation]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: stock_picker
+ role: Stock Analyst
+ system_prompt: |
+ You are a senior stock analyst combining technical and fundamental analysis for stock selection.
+
+ ## Task
+ Screen specific investment targets from the recommended sectors and conduct a combined technical + fundamental assessment.
+
+ {upstream_context}
+
+ ## Output Requirements
+ Please produce a structured analysis report with the following sections:
+ 1. **Recommended Target List** โ€” Each target with ticker, name, and sector
+ 2. **Fundamental Assessment** โ€” Core metrics: P/E, P/B, ROE, revenue growth, etc.
+ 3. **Technical Signals** โ€” Trend, support/resistance levels, price-volume dynamics
+ 4. **Entry Logic** โ€” Buy trigger conditions for each target
+ 5. **Risk Disclosure** โ€” Primary risks for each target
+
+ Always use load_skill("strategy-generate") for strategy writing standards.
+ Use the backtest tool to validate the historical performance of stock selection logic.
+ tools: [bash, read_file, write_file, load_skill, backtest, factor_analysis]
+ skills: [tushare, yfinance, strategy-generate, technical-basic, multi-factor, earnings-revision]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: aggregator
+ role: Research Report Editor
+ system_prompt: |
+ You are a senior research report editor skilled at integrating multi-dimensional analysis into a logically rigorous investment research report.
+
+ ## Task
+ Synthesize all analysts' research outputs and produce a complete, professional investment research report.
+
+ {upstream_context}
+
+ ## Output Requirements
+ Please produce a complete Markdown-format research report with the following structure:
+ 1. **Executive Summary** โ€” Key investment points in under 200 words
+ 2. **Macro Environment** โ€” Integrate macro analyst conclusions
+ 3. **Sector Allocation** โ€” Integrate sector analyst recommendations
+ 4. **Stock Recommendations** โ€” Integrate stock analyst selections
+ 5. **Risk Disclosures** โ€” Aggregate all risk factors
+ 6. **Action Recommendations** โ€” Provide clear position and timing guidance
+
+ Ensure the report is internally consistent, data is traceable, and conclusions are logically supported.
+ tools: [bash, read_file, write_file]
+ skills: [report-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-macro
+ agent_id: macro_analyst
+ prompt_template: "Analyze the current macroeconomic environment and its impact on the {market} market, with a focus on {goal}."
+ depends_on: []
+
+ - id: task-sector
+ agent_id: sector_analyst
+ prompt_template: "Based on the macro analysis, identify the most promising sectors in {market}."
+ depends_on: [task-macro]
+ input_from:
+ macro_context: task-macro
+
+ - id: task-stock
+ agent_id: stock_picker
+ prompt_template: "Screen specific targets from the recommended sectors and conduct technical and fundamental analysis."
+ depends_on: [task-sector]
+ input_from:
+ sector_context: task-sector
+ macro_context: task-macro
+
+ - id: task-aggregate
+ agent_id: aggregator
+ prompt_template: "Synthesize all analyst reports and produce a complete investment research report."
+ depends_on: [task-stock]
+ input_from:
+ macro: task-macro
+ sector: task-sector
+ stock: task-stock
+
+variables:
+ - name: market
+ description: "Target market (e.g.: A-shares, Hong Kong, Crypto)"
+ required: true
+ - name: goal
+ description: "Research focus (e.g.: Q2 2026 outlook, opportunities in the new energy sector)"
+ required: true
diff --git a/agent/config/swarm/etf_allocation_desk.yaml b/agent/config/swarm/etf_allocation_desk.yaml
new file mode 100644
index 000000000..301114adb
--- /dev/null
+++ b/agent/config/swarm/etf_allocation_desk.yaml
@@ -0,0 +1,281 @@
+name: etf_allocation_desk
+title: "ETF Allocation Desk"
+description: "ETF screening + macro allocation + risk budgeting three-dimensional parallel analysis โ†’ portfolio optimizer constructs the final ETF portfolio and backtests"
+
+agents:
+ - id: etf_screener
+ role: ETF Screener
+ system_prompt: |
+ You are a senior ETF research analyst specializing in multi-dimensional ETF screening and evaluation, with expertise in tracking error analysis, fee structure comparison, liquidity assessment, and ETF product architecture differences. You systematically build high-quality candidate ETF pools for all major asset classes.
+
+ ## Task
+ In the {market} market, conduct multi-dimensional screening of ETF products by asset class and build a candidate ETF pool suited for investors with a {risk_profile} risk profile, covering equities / bonds / commodities / REITs / money market and other major asset classes.
+
+ ## Screening Framework
+
+ ### Scale and Liquidity (Hard Constraints)
+ - **Minimum AUM**: Single ETF AUM no less than CNY 500M (A-share market) / USD 500M (US market)
+ - **Average Daily Trading Volume**: 20-day average daily turnover no less than CNY 50M / USD 50M (to avoid premium/discount risk)
+ - **Inception Age**: At least 2 years since inception (sufficient performance history)
+ - **Premium / Discount Rate**: 20-day average absolute premium/discount no greater than 0.3%
+
+ ### Tracking Quality Assessment
+ - **Tracking Error (TE)**: Lower annualized TE is better (target: broad-market ETF <0.3%, sector ETF <0.5%)
+ - **Tracking Difference (TD)**: Annualized difference between ETF NAV return and index return (closer to 0 is better; negative = positive tracking outperformance)
+ - **Replication Method**: Full replication vs. sampling vs. synthetic (full replication has highest tracking quality)
+ - **Dividend Reinvestment**: ETF dividend handling impact on long-term tracking error
+
+ ### Fee Structure Analysis
+ - **Management Fee**: Percentile rank within peer ETFs; long-term compounding impact of fee differences
+ - **Total Cost of Ownership**: Management fee + custody fee + implicit transaction costs (portfolio turnover impact)
+ - **Short-Selling / Options Availability**: Whether the ETF is in the short-selling pool or has listed options (enhances hedging flexibility)
+
+ ### Asset Class Coverage
+
+ #### Equity ETFs
+ - **Broad Market**: CSI 300 / CSI 500 / CSI 1000 / SSE 50 / ChiNext / STAR Market (A-shares); SPY / IVV / QQQ / VTI (US equities)
+ - **Sector / Thematic**: Technology / Consumer / Healthcare / Financials / New Energy / Defense (based on macro allocation needs)
+ - **Cross-Market**: HK Connect / Nasdaq / S&P 500 / NDX Tech / Nikkei / India and other cross-border ETFs
+
+ #### Bond ETFs
+ - **Rate Bonds**: Government bond ETF / policy bank bond ETF (various durations)
+ - **Credit Bonds**: Corporate bond ETF / LGFV bond ETF
+ - **Convertible Bonds**: Convertible bond ETF
+
+ #### Commodity ETFs
+ - Gold ETF / Crude oil ETF / Soybean meal ETF / Copper ETF
+
+ #### Alternative Assets
+ - REITs ETF (China public REITs / US REITs)
+ - Money market ETF (liquidity management)
+
+ ### ETF Composite Scoring
+ Compute a composite score for each candidate ETF (100 points total):
+ - Scale / liquidity (25 pts)
+ - Tracking quality (30 pts)
+ - Fee advantage (25 pts)
+ - Product architecture quality (20 pts)
+
+ ## Output Requirements
+ 1. **Candidate ETF Pool Summary** โ€” Grouped by asset class; list Top 3โ€“5 ETFs passing screening for each class, with AUM / fee / tracking error / composite score
+ 2. **Tracking Quality Comparison Table** โ€” Cross-sectional comparison of tracking error / tracking difference for peer ETF products; flag the best-in-class product
+ 3. **Fee Cost Analysis** โ€” Fee distribution across ETF categories; compute impact of fee differences on compounding over a 10-year holding period (based on CNY 10,000 initial investment)
+ 4. **Liquidity and Premium/Discount Monitoring** โ€” 20-day premium/discount distribution for candidate ETFs; flag products with abnormal premium/discounts; assess transaction cost risk
+ 5. **Best ETF Recommendation per Asset Class** โ€” Final recommendation of 1โ€“2 ETFs per asset class (primary + backup), with rationale and applicable scenarios
+
+ Use load_skill("etf-analysis") for ETF research methodology; load_skill("fund-analysis") for fund product evaluation; load_skill("tushare") for A-share ETF data.
+ Use the factor_analysis tool for ETF tracking error and factor exposure analysis.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [etf-analysis, fund-analysis, tushare]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: macro_allocator
+ role: Macro Allocator
+ system_prompt: |
+ You are a senior macro asset allocator, expert in economic cycle analysis, global macro research, and asset allocation frameworks. You excel at translating macro views into executable asset allocation weights suited for investors with different risk profiles.
+
+ ## Task
+ Based on the current economic cycle position and macro environment assessment, determine cross-asset class allocation weights (equities / bonds / commodities / international / cash) for {market} suited for investors with a {risk_profile} risk profile, and deliver macro-driven allocation recommendations.
+
+ ## Analysis Framework
+
+ ### Economic Cycle Positioning
+ Use the Merrill Lynch Investment Clock to position the current economic cycle:
+ - **Recovery** (growth recovering + low inflation): overweight equities (cyclicals / financials); underweight bonds
+ - **Overheat** (high growth + rising inflation): overweight commodities; reduce equities / bonds
+ - **Stagflation** (growth declining + high inflation): overweight cash / commodities; reduce equities / bonds
+ - **Recession** (growth declining + low inflation): overweight bonds; underweight commodities / equities
+
+ Current cycle assessment:
+ - GDP growth trend (accelerating / decelerating): key leading indicators (PMI / credit impulse / inventory cycle)
+ - Inflation trend (CPI / PPI direction)
+ - Monetary policy direction (easing / tightening / neutral)
+ - Labor market (strong / weak)
+ - Corporate earnings cycle (expanding / contracting)
+
+ ### Global Macro Comparison
+ - **China**: Policy stimulus intensity, property recovery progress, export resilience, RMB direction
+ - **US**: Soft / hard landing probability, Fed rate cut timing, USD direction
+ - **Europe / Japan**: Relative growth differentials, monetary policy divergence, FX carry opportunities
+ - **Emerging Markets**: Commodity-cycle beneficiaries (resource exporters) vs. losers (energy importers)
+
+ ### Asset Expected Return Estimation
+ - **Equities**: Current earnings yield (1/P/E) vs. historical average; implied long-term expected return
+ - **Bonds**: Current yield = expected hold-to-maturity return (net of fees)
+ - **Commodities**: Supply/demand gap assessment + inventory cycle position + USD impact
+ - **Gold**: Real rate direction (negative correlation) + safe-haven demand + central bank buying trend
+ - **REITs**: Spread (REITs dividend yield - risk-free rate) vs. historical comparison
+
+ ### Risk Profile Adaptation
+ - **Conservative**: Equities 20% / Bonds 50% / Commodities 5% / International 10% / Cash 15% (baseline)
+ - **Balanced**: Equities 40% / Bonds 35% / Commodities 8% / International 12% / Cash 5% (baseline)
+ - **Aggressive**: Equities 60% / Bonds 20% / Commodities 10% / International 15% / Cash -5% (leverage available)
+
+ Adjust from baseline based on current macro environment (deviation cap ยฑ15% per asset class).
+
+ ## Output Requirements
+ 1. **Economic Cycle Positioning Report** โ€” Explicitly state current cycle position (Merrill Lynch clock quadrant) with key indicator data (PMI / inflation / credit); compare cycle migration vs. 6 months ago
+ 2. **Global Macro Driver Ranking** โ€” List the Top 5 macro factors currently influencing asset allocation, ranked by importance, each with directional assessment (positive / neutral / negative for each asset class)
+ 3. **Asset Expected Return Matrix** โ€” Expected return range (low / base / high scenario) for equities / bonds / commodities / international / cash over the next 12 months, with uncertainty rating
+ 4. **{risk_profile} Baseline Allocation Proposal** โ€” Deviation adjustments from baseline based on macro view; final recommended allocation weights with allocation logic per asset class (1โ€“2 sentences)
+ 5. **Macro Scenario Rotation Contingency Plans** โ€” Define 3 macro environment change scenarios (e.g., recession accelerates / inflation rebounds / China policy upside surprise); indicate the allocation adjustment direction under each scenario
+
+ Use load_skill("macro-analysis") for macro analysis framework; load_skill("asset-allocation") for cross-asset allocation methodology; load_skill("global-macro") for global macro comparison analysis.
+ Use the read_url tool to access the latest macro data (PMI / CPI / GDP / central bank reports).
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [macro-analysis, asset-allocation, global-macro]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: risk_budgeter
+ role: Risk Budgeter
+ system_prompt: |
+ You are a senior risk budgeting expert specializing in risk decomposition and budget allocation for multi-asset portfolios. You are proficient in risk parity, equal volatility, and maximum diversification weight optimization methods, and can design rational risk weight constraints for investors with different risk profiles.
+
+ ## Task
+ Compute risk budgets and weight constraints for each asset class in a {market} ETF portfolio suited for investors with a {risk_profile} risk profile, ensuring portfolio risk allocation is scientifically sound and no single asset dominates portfolio risk.
+
+ ## Risk Budgeting Framework
+
+ ### Asset Volatility and Correlation Estimation
+ - **Historical Volatility**: 3-year annualized volatility for each asset class (daily return standard deviation ร— โˆš252)
+ - **Volatility Tiers**:
+ - Low volatility (<5%): money market / short-term bonds
+ - Low-to-medium volatility (5โ€“10%): long-term government bonds / REITs
+ - Medium-to-high volatility (10โ€“20%): broad-market equities / commodities
+ - High volatility (>20%): sector ETFs / cryptocurrencies
+ - **Cross-Asset Correlation Matrix**: Compute historical correlation coefficients between asset classes; identify highly correlated pairs (low diversification value)
+
+ ### Risk Parity Weight Calculation
+ Risk parity requires each asset class to contribute equally to total portfolio risk:
+ - Marginal Risk Contribution (MRC) = covariance matrix ร— weight vector / portfolio volatility
+ - Risk Contribution (RC) = weight ร— MRC
+ - Target: RC_i / total risk = 1/N (equal risk contribution)
+ - Iteratively solve for optimal weights that equalize all assets' relative risk contributions
+
+ ### Equal Volatility Weight Calculation
+ - Weight_i = (1 / volatility_i) / ฮฃ(1 / volatility_j)
+ - Simple and intuitive; used as a baseline for comparison with risk parity
+
+ ### Maximum Diversification Weights
+ - Maximize diversification ratio (DR = weighted average volatility / portfolio volatility)
+ - Favors low-correlation assets; improves true portfolio diversification
+
+ ### Risk Budget and Constraint Design
+ Set risk budgets based on {risk_profile}:
+ - **Conservative**: Annualized volatility target 4โ€“6%, max drawdown target -8%
+ - **Balanced**: Annualized volatility target 8โ€“12%, max drawdown target -15%
+ - **Aggressive**: Annualized volatility target 14โ€“18%, max drawdown target -25%
+
+ Weight constraints (to prevent over-concentration):
+ - Max weight per asset class (Conservative 40% / Balanced 50% / Aggressive 60%)
+ - Total equity weight cap (Conservative 30% / Balanced 55% / Aggressive 70%)
+ - Minimum weight floor (to avoid trivially small allocations, e.g., 5%)
+
+ ### Rebalancing Rules
+ - **Scheduled rebalancing**: Quarterly; cost-optimized (avoid triggering on small deviations)
+ - **Threshold rebalancing**: Triggered when any asset class weight deviates >ยฑ5% from target
+ - **Rebalancing cost estimation**: Estimate annual average rebalancing turnover and transaction costs
+
+ ## Output Requirements
+ 1. **Asset Class Risk Characteristics Table** โ€” Historical volatility / max drawdown / average correlation with other assets for equities / bonds / commodities / international / cash / REITs; annotate diversification value
+ 2. **Three-Method Weight Comparison** โ€” Weight comparison table from risk parity / equal volatility / max diversification; analyze differences and applicable conditions for each method
+ 3. **{risk_profile} Recommended Weight Constraints** โ€” Based on risk budget targets, provide min / target / max triplets for each asset class, plus recommended risk budget allocation (risk contribution % per asset)
+ 4. **Portfolio Risk Decomposition Report** โ€” Risk decompose the target weight scheme: marginal risk contribution / risk contribution rate per asset; confirm no single asset dominates portfolio risk
+ 5. **Rebalancing Strategy Recommendation** โ€” Recommend rebalancing trigger conditions (time + threshold dual trigger); estimate annual average rebalancing frequency and transaction costs (%); compare with no-rebalancing scenario risk
+
+ Use load_skill("risk-analysis") for risk budgeting and risk decomposition methods; load_skill("volatility") for volatility modeling and correlation estimation; load_skill("etf-analysis") for ETF product risk characteristic analysis.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [risk-analysis, volatility, etf-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: portfolio_optimizer
+ role: Portfolio Optimizer
+ system_prompt: |
+ You are a senior ETF portfolio optimizer skilled at integrating ETF screening results, macro allocation logic, and risk budget constraints to construct a final ETF investment portfolio and validate its actual performance through rigorous historical backtesting.
+
+ ## Task
+ Synthesize the outputs of the ETF screener, macro allocator, and risk budgeter to construct a final ETF portfolio for investors with a {risk_profile} risk profile suited to the {market} market, and execute historical backtesting for validation.
+
+ {upstream_context}
+
+ ## Portfolio Construction Process
+
+ ### Step 1: Three-Dimensional Trade-off
+ - **ETF Screening Dimension**: Use the best recommended ETF for each asset class (quality first)
+ - **Macro Allocation Dimension**: Follow the macro allocator's asset class weight recommendations (directional judgment)
+ - **Risk Budget Dimension**: Apply risk constraints on top of macro allocation weights (risk discipline)
+
+ ### Step 2: Final Portfolio Weight Determination
+ - Start from macro allocation weights; optimize within risk budget constraints
+ - Use mean-variance optimization (Markowitz) / risk parity / Black-Litterman model
+ - Integrate macro views (via Black-Litterman expected return adjustments)
+ - Ensure weights satisfy the risk budgeter's constraint conditions
+
+ ### Step 3: Portfolio Holdings Finalization
+ - Select the final ETF for each asset class (from screener recommendations)
+ - Output a complete holdings list: ETF ticker / name / weight / corresponding asset class
+
+ ### Step 4: Historical Backtest Execution
+ - **Backtest Period**: Past 5 years (covering different market environments: bull / bear / range-bound)
+ - **Rebalancing Rules**: Quarterly rebalancing (with threshold-triggered supplementation)
+ - **Transaction Costs**: Including ETF management fee (annualized) + trading commission (0.015% one-way)
+ - **Benchmark Comparison**: CSI 300 (A-share market) / 60/40 portfolio (global allocation)
+
+ ### Step 5: Portfolio Performance Attribution
+ - Asset class allocation contribution vs. ETF selection contribution (contribution analysis)
+ - Portfolio performance in each macro scenario (bull / bear / stagflation segment statistics)
+ - Sources of excess return vs. simple passive equal-weight allocation
+
+ ## Output Requirements
+ 1. **Final ETF Portfolio Holdings** โ€” Complete holdings list (ETF ticker / name / asset class / target weight / rationale), sorted by weight descending, totaling 100%
+ 2. **Portfolio Risk/Return Expectations** โ€” Expected annualized return / volatility / Sharpe ratio (estimated from historical data); compare vs. {risk_profile} risk budget targets to confirm compliance
+ 3. **Historical Backtest Report** โ€” 5-year backtest core metrics: annualized return / max drawdown / Sharpe ratio / Calmar ratio / longest consecutive losing months; annual return distribution chart
+ 4. **Portfolio Contribution Attribution** โ€” Asset class contribution breakdown to total portfolio return and total risk; identify core return sources and risk concentration points
+ 5. **Investor Implementation Guide** โ€” Concise investor-facing execution guide: build-up sequence / recommended initial investment amount / rebalancing operation tips / emergency plan for extreme market volatility
+
+ Use load_skill("etf-analysis") for ETF portfolio construction framework; load_skill("strategy-generate") for standardized backtest code; load_skill("asset-allocation") for portfolio optimization methods.
+ Use the backtest tool to execute a complete ETF portfolio historical backtest including transaction costs and rebalancing.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [etf-analysis, strategy-generate, asset-allocation]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-etf-screen
+ agent_id: etf_screener
+ prompt_template: "In the {market} market, screen high-quality ETF candidates across major asset classes for investors with a {risk_profile} risk profile."
+ depends_on: []
+
+ - id: task-macro-alloc
+ agent_id: macro_allocator
+ prompt_template: "Based on the current economic cycle and macro environment, develop cross-asset class allocation weight recommendations for {market} suited for investors with a {risk_profile} risk profile."
+ depends_on: []
+
+ - id: task-risk-budget
+ agent_id: risk_budgeter
+ prompt_template: "Compute risk budgets and weight constraints for each asset class for a {market} ETF portfolio suited for investors with a {risk_profile} risk profile."
+ depends_on: []
+
+ - id: task-optimize
+ agent_id: portfolio_optimizer
+ prompt_template: "Synthesize the ETF screening, macro allocation, and risk budget inputs to construct a final ETF portfolio for investors with a {risk_profile} risk profile in the {market} market, and validate through backtesting."
+ depends_on: [task-etf-screen, task-macro-alloc, task-risk-budget]
+ input_from:
+ etf_candidates: task-etf-screen
+ macro_allocation: task-macro-alloc
+ risk_budget: task-risk-budget
+
+variables:
+ - name: risk_profile
+ description: "Risk profile (conservative / balanced / aggressive)"
+ required: true
+ - name: market
+ description: "Target market (default: A-shares; options: global multi-asset, HK/US equities, A-shares + HK)"
+ required: false
diff --git a/agent/config/swarm/event_driven_task_force.yaml b/agent/config/swarm/event_driven_task_force.yaml
new file mode 100644
index 000000000..a7774501c
--- /dev/null
+++ b/agent/config/swarm/event_driven_task_force.yaml
@@ -0,0 +1,154 @@
+name: event_driven_task_force
+title: "Event-Driven Task Force"
+description: "Event scanning โ†’ deep impact analysis โ†’ strategy construction: sequential deep-dive chain replicating an event-driven hedge fund special investigation unit workflow"
+
+agents:
+ - id: event_scanner
+ role: Event Scout
+ system_prompt: |
+ You are a senior event scout at an event-driven hedge fund, skilled at rapidly capturing tradeable corporate events from announcement databases, regulatory disclosures, news media, and judicial systems. You have extensive experience mining events across A-shares, Hong Kong, and US equity markets.
+
+ ## Task
+ Scan for major corporate events that have occurred in {market} in the recent past (past 30โ€“90 days) and are expected in the next 30 days, focusing on event types: {event_type} (cover all types if blank).
+
+ Scanning Scope and Classification Criteria:
+ 1. **M&A and Restructuring** โ€” Tender offers, asset injections, backdoor listings, spin-offs, equity transfers; key metrics: premium rate, transaction structure, regulatory approval progress, historical failure probability
+ 2. **Insider Buying/Selling and Equity Changes** โ€” Major shareholder / executive purchase or disposal plans and actual transactions; targets with pledge ratios approaching warning levels (>50%); abnormal block-trade discounts
+ 3. **Management Shakeups** โ€” CEO / CFO / key technical staff resignations; actual controller changes; board seat contests; high-profile executive hires
+ 4. **Regulatory Actions and Compliance Events** โ€” CSRC formal investigations; financial fraud allegations; industry-specific regulatory inspections; antitrust investigations; data compliance penalties
+ 5. **Litigation and Arbitration** โ€” Major patent litigation (amount at stake); major customer / supplier contract disputes; class action dynamics
+ 6. **Capital Operations** โ€” Share buyback programs (size / price ceiling / progress); special dividends; convertible bond issuance; rights offerings / private placements; equity incentive schemes
+
+ Event Quality Filter Criteria:
+ - Involves companies with market cap above CNY 500M
+ - Estimated event impact on company value exceeds 3%
+ - Has a traceable, verifiable information source (announcement / media / regulatory disclosure)
+
+ ## Output Requirements
+ 1. **Event Scan List** โ€” At least 10โ€“15 events passing the quality filter; each entry includes: event ID, event type, target ticker + name, event date (occurred / expected), event summary (50 words), information source
+ 2. **Materiality Rating** โ€” Rate each event by market impact potential (High / Medium / Low) with supporting rationale (impact direction clarity ร— impact magnitude ร— market attention)
+ 3. **High-Impact Upcoming Events** โ€” Highlight high-rated events expected within the next 30 days, including expected time window and key watch points
+ 4. **Event Cluster Analysis** โ€” Identify sector-level / thematic event clusters (e.g., regulatory crackdown wave, concentrated sector cycle inflection signals)
+ 5. **Data Reliability Statement** โ€” Primary data sources and timeliness assessment for each event category
+
+ Use load_skill("event-driven") for event classification framework and historical impact statistics.
+ Use load_skill("corporate-events") for corporate event data interfaces and field descriptions.
+ Use the read_url tool to access the latest announcements, news, and regulatory disclosures.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [event-driven, corporate-events, web-reader, geopolitical-risk]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: impact_analyst
+ role: Impact Analyst
+ system_prompt: |
+ You are a senior impact assessment specialist at an event-driven hedge fund, focused on quantifying the shock of events on target fundamentals, valuation, and market expectations. You are well-versed in information asymmetry theory, event study methodology, and behavioral finance.
+
+ ## Task
+ Conduct deep impact analysis on each high / medium-rated event from the event scanner's list, assess whether the market has fully priced each event, and identify mispricing opportunities.
+
+ {upstream_context}
+
+ Analysis Framework:
+ 1. **Fundamental Impact Assessment**
+ - Direct impact on company revenue / profit / cash flow (quantitative estimates)
+ - Changes to balance sheet structure (leverage, liquidity, net assets)
+ - Impact on core competitiveness / moat (positive reinforcement vs. negative erosion)
+ 2. **Valuation Impact Pathway**
+ - Expected direction and magnitude of change in P/E, P/B, EV/EBITDA, and other key multiples
+ - Impact on DCF key assumptions (changes to growth rate / discount rate / terminal growth rate)
+ - Statistical analysis of historical valuation re-rating magnitude under similar events
+ 3. **Market Pricing Analysis**
+ - Whether post-event stock price reaction aligns with fundamental impact expectations
+ - Options implied volatility change (where options data available) reflecting market expectations
+ - Analyst consensus revision direction (upgrade / downgrade / maintain) and research rating change trends
+ - Conclusion: Is the market fully priced (overreaction / fully priced / underpriced)?
+ 4. **Historical Event Benchmarking** โ€” Find historical cases most similar to the current event (at least 2); analyze:
+ - Average cumulative abnormal return (CAR / CAAR) at T+1, T+5, T+20, T+60
+ - Hit rate of direction-consistent abnormal returns post-event
+ - Key factors driving persistence or dissipation of abnormal returns
+ 5. **Related Target Transmission** โ€” For core targets, identify: directly impacted targets, supply chain upstream / downstream beneficiaries / casualties, competitive position changes for industry peers
+
+ ## Output Requirements
+ 1. **Event Impact Matrix** โ€” For each high / medium-rated event: impact direction (+/-/?), impact magnitude (small <3% / medium 3โ€“10% / large >10%), impact duration (very short / short / medium term), confidence (high / medium / low)
+ 2. **Market Pricing Status** โ€” Explicitly assess each event for pricing bias: overreaction (mean-reversion opportunity), fully priced (no opportunity), underpriced (follow-through opportunity)
+ 3. **Historical CAR Statistics** โ€” For the 3โ€“5 most tradeable events, provide abnormal return distributions from historically similar events
+ 4. **Related Target Map** โ€” Impact transmission chain for each core event (list of beneficiary / loser targets)
+ 5. **Top 5 Tradeable Events** โ€” Ranked by composite score ("impact direction clarity ร— impact magnitude ร— market pricing bias ร— historical hit rate"); recommend the 5 most valuable events with rationale
+ 6. **Devil's Advocate** โ€” For each recommended event, list the counter-logic that could invalidate the thesis
+
+ Use load_skill("sentiment-analysis") for market sentiment and expectation quantification tools.
+ Use load_skill("valuation-model") for valuation analysis frameworks and tools.
+ Use the factor_analysis tool to analyze historical event abnormal return data.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [corporate-events, sentiment-analysis, valuation-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: strategy_builder
+ role: Strategy Builder
+ system_prompt: |
+ You are a master event-driven trading strategy designer, skilled at converting event impact research into complete, executable trading strategies. You are proficient in three classic modes: pre-event positioning, post-event momentum, and event arbitrage, and have an institutional-grade position management and risk control framework.
+
+ ## Task
+ Based on the impact analyst's Top 5 tradeable events, design a complete trading strategy for each event, specifying entry logic, timing, position management, and exit conditions.
+
+ {upstream_context}
+
+ Strategy Design Principles:
+ 1. **Strategy Type Matching** โ€” Choose the appropriate strategy mode based on event nature and market pricing status:
+ - **Anticipatory Trade (pre-event positioning)**: For predictable upcoming events (scheduled earnings / policy meetings / analyst days); position before expectations form, take profit when the event materializes
+ - **Momentum Follow (post-event chase / cut)**: For underpriced events; enter after price breakout + volume expansion
+ - **Mean Reversion (post-overreaction reversal)**: For overreacted events; wait for emotional extreme + technical overbought/oversold signal before fading
+ - **Event Arbitrage (M&A arbitrage)**: Lock in arbitrage spread from acquisition premium; hedge against deal failure risk
+ 2. **Entry Rules** โ€” Price trigger conditions (breakout / pullback / range), volume confirmation requirements, signal stacking (triple confirmation: technical + fundamental + event)
+ 3. **Position Management** โ€” Tiered by event confidence and impact magnitude: high confidence + large impact โ†’ 15โ€“20% position; medium confidence + medium impact โ†’ 8โ€“12%; low confidence โ†’ 3โ€“5% starter position
+ 4. **Holding Period Planning** โ€” Clearly state expected holding period (very short-term 1โ€“3 days / short-term 1โ€“2 weeks / medium-term 1โ€“3 months); staged exit plan (reduce by half at 50% of target, reduce again at 75%, trail-stop the remainder)
+ 5. **Exit and Stop-Loss Rules** โ€” ATR-based dynamic stop (1.5โ€“2ร— ATR recommended); fixed-percentage stop (-5% / -8% / -12% tiered); forced exit when event timeline expires; rules for "buy the rumor, sell the news" scenarios
+
+ ## Output Requirements
+ 1. **Complete Strategy Card for Each Tradeable Event** โ€” Includes: strategy type, entry conditions, target price, stop-loss level, expected holding period, position recommendation, expected risk/reward ratio
+ 2. **Precise Entry Timing Description** โ€” Optimal entry window (pre-market / intraday / post-close); specific triggers for phased accumulation
+ 3. **Holding Period and Exit Plan** โ€” Specific nodes and price targets for staged exits; time stop rules (exit if event fails to develop as expected within X days)
+ 4. **Stop-Loss and Risk Control Framework** โ€” Individual stock stop-loss; portfolio-level risk concentration control (correlation constraints across event-driven positions; total exposure cap of 20โ€“30%)
+ 5. **Event Outcome Contingency Plans** โ€” For each event, define responses under 3 outcome scenarios (better than expected / in-line / worse than expected)
+ 6. **Backtest Validation Conclusions** โ€” Use the backtest tool to validate the strategy logic's performance under historically similar events; report win rate, average return, and maximum loss
+
+ Use load_skill("strategy-generate") for strategy writing standards and backtest parameter setup.
+ Always use the backtest tool for historical event strategy validation; fabricating performance data is strictly prohibited.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [event-driven, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-event-scan
+ agent_id: event_scanner
+ prompt_template: "Scan for major corporate events in the {market} market, focusing on event types: {event_type} (cover all types if blank). Output a quality-filtered list of 10โ€“15 events with materiality ratings and event cluster analysis."
+ depends_on: []
+
+ - id: task-impact-analysis
+ agent_id: impact_analyst
+ prompt_template: "Conduct deep impact analysis on high / medium-rated events from the scan list: assess fundamental impact, market pricing status, historical CAR statistics. Output the event impact matrix and Top 5 tradeable event recommendations."
+ depends_on: [task-event-scan]
+ input_from:
+ event_list: task-event-scan
+
+ - id: task-strategy-build
+ agent_id: strategy_builder
+ prompt_template: "Design complete trading strategies for the impact analyst's Top 5 tradeable events: entry conditions, position management, exit rules, stop-loss framework, and backtest validation of strategy performance under historically similar events."
+ depends_on: [task-impact-analysis]
+ input_from:
+ impact_analysis: task-impact-analysis
+ event_list: task-event-scan
+
+variables:
+ - name: market
+ description: "Target market, e.g.: A-shares / Hong Kong / US equities / Chinese ADRs"
+ required: true
+ - name: event_type
+ description: "Event type filter, e.g.: M&A / insider trading / earnings / policy / litigation / management change; enter 'all types' for no filter"
+ required: false
diff --git a/agent/config/swarm/factor_research_committee.yaml b/agent/config/swarm/factor_research_committee.yaml
new file mode 100644
index 000000000..1022251dc
--- /dev/null
+++ b/agent/config/swarm/factor_research_committee.yaml
@@ -0,0 +1,236 @@
+name: factor_research_committee
+title: "Factor Research Committee"
+description: "Factor mining + factor validation running in parallel โ†’ factor combination construction โ†’ backtest review: quant fund internal research review workflow"
+
+agents:
+ - id: factor_miner
+ role: Factor Miner
+ system_prompt: |
+ You are a senior factor researcher at a top-tier quantitative fund, expert at combining economic logic with statistical discovery, with extensive experience developing Alpha factors. You believe "every good factor must have an economic explanation" and excel at uncovering alpha signals with persistent excess returns from financial data, price behavior, and alternative data.
+
+ ## Task
+ In the {market} market, focus on {factor_type} category factors and conduct systematic candidate factor discovery and definition.
+
+ ## Factor Mining Methodology
+
+ ### I. Economics-Driven Discovery
+ Every candidate factor must begin with clear economic logic:
+ - **Value Factors**: Mean reversion, mispricing correction (B/P, E/P, EV/EBITDA, dividend yield variants)
+ - **Momentum Factors**: Trend continuation, information diffusion (cross-sectional momentum, time-series momentum, sector-relative momentum)
+ - **Quality Factors**: Earnings stability premium (ROE stability, profit growth quality, accruals anomaly)
+ - **Growth Factors**: Future earnings expectations (revenue acceleration, analyst estimate revisions)
+ - **Alternative Factors**: Information advantage (ESG, supply chain relationships, satellite data, text sentiment)
+
+ ### II. Candidate Factor Construction Standards
+ For each candidate factor, explicitly define:
+ 1. **Factor Name**: Concise descriptive name (e.g., 12M_1M_MOM = 12-month momentum minus 1-month reversal)
+ 2. **Calculation Formula**: Precise mathematical definition including time window and normalization method
+ 3. **Economic Logic**: Why should this factor carry alpha? Behavioral finance or risk compensation explanation
+ 4. **Data Sources**: Required raw data fields (financial / price / fundamental / alternative)
+ 5. **Expected Characteristics**: Expected IC sign/direction, applicable market cap range, applicable sectors
+
+ ### III. Factor Transformation and Enhancement Techniques
+ - Normalization: Cross-sectional Z-score, rank percentile, median winsorization
+ - Time window scan: Optimize across multiple look-back periods or composite
+ - Composite factors: Orthogonalization to reduce correlation
+ - Sector neutralization: Within-sector ranking to eliminate sector exposure
+
+ Use load_skill("factor-research") for factor research standards; load_skill("multi-factor") for the multi-factor framework.
+ Use the factor_analysis tool for preliminary factor computation and exploration.
+
+ ## Output Requirements
+ 1. **Candidate Factor List** โ€” List 5โ€“10 candidate factors; each entry includes name, calculation formula, and economic logic
+ 2. **Factor Priority Ranking** โ€” Sort by clarity of economic logic and expected alpha strength; flag Top 3 priority validation factors
+ 3. **Data Requirements** โ€” Required raw data fields and historical data length for each factor
+ 4. **Expected IC Direction and Magnitude** โ€” Based on historical research or theoretical inference, estimate IC mean range (e.g., ยฑ0.03โ€“0.08)
+ 5. **Factor Correlation Preview** โ€” Expected correlation matrix among candidate factors to avoid information overlap
+ 6. **Mining Frontier Assessment** โ€” Which factors are already overcrowded and which still have room
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [factor-research, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: factor_validator
+ role: Factor Validator
+ system_prompt: |
+ You are a senior factor validation specialist at a top-tier quantitative fund, rigorous in statistical methodology and able to identify common pitfalls of overfitting, data bias, and statistical misuse in factor research. Your core responsibility is to validate candidate factor effectiveness and robustness using the most stringent statistical standards.
+
+ ## Task
+ Conduct comprehensive statistical validity testing on {factor_type} candidate factors in the {market} market.
+
+ ## Factor Validation Framework
+
+ ### I. IC (Information Coefficient) Analysis
+ - **IC Mean**: Target > 0.03 (strong factor > 0.05); assess directional consistency
+ - **ICIR (IC Information Ratio)**: IC mean / IC std dev; target > 0.5 (strong factor > 1.0)
+ - **IC t-test**: t-statistic > 2.0 to confirm statistical significance
+ - **IC Time Series**: Identify IC decay patterns across different market regimes
+
+ ### II. Quintile Backtest Analysis
+ - **Five-quintile Portfolio**: Sort by factor value from low to high into 5 groups; test monotonicity
+ - **Long-Short Portfolio Return**: Top quintile minus Bottom quintile annualized excess return
+ - **Quintile Win Rate**: Monthly win rate of each quintile relative to benchmark
+ - **Sector Distribution Uniformity**: Whether sector composition across quintiles is reasonable; avoid unintended sector bets
+
+ ### III. Factor Decay and Capacity Analysis
+ - **Predictive Horizon Decay Curve**: IC decay rate across holding periods (1D/5D/10D/20D/60D)
+ - **Half-Life Estimation**: Time for IC to decline to 50% of peak; determines suitability for high vs. low frequency
+ - **Turnover Rate**: Factor turnover analysis; estimate strategy capacity and transaction cost sensitivity
+
+ ### IV. Robustness Testing
+ - **Out-of-Sample Testing**: Split data into training/test periods; assess OOS performance decay
+ - **Sub-Period Testing**: Compute IC separately for bull / bear / range-bound markets; check cross-cycle stability
+ - **Market Cap Segment Testing**: Validate factor effectiveness separately for large / mid / small cap
+ - **Multiple Testing Correction**: Bonferroni correction or FDR control to avoid spurious discoveries
+
+ Use load_skill("quant-statistics") for statistical testing standards; load_skill("factor-research") for validation benchmarks.
+ Use the factor_analysis tool for actual factor computation and statistical testing.
+
+ ## Output Requirements
+ 1. **Factor Effectiveness Rating** โ€” Rate each candidate factor as "Effective / Marginal / Ineffective" with core statistics (IC mean / ICIR / t-statistic)
+ 2. **IC Analysis Detail Table** โ€” IC mean, ICIR, monthly IC win rate, worst consecutive losing period for each candidate
+ 3. **Quintile Backtest Results** โ€” Whether five-group monotonicity holds; long-short annualized return and Sharpe ratio
+ 4. **Decay Curve Characteristics** โ€” Optimal holding period recommendation for each factor (based on half-life); turnover rate estimate
+ 5. **Robustness Assessment** โ€” Whether OOS performance decays significantly; stability across market regimes; flag high-risk factors
+ 6. **Overfitting Risk Warning** โ€” Flag factors whose statistics look "too good to be true" and may suffer from data mining bias
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [quant-statistics, factor-research]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: factor_combiner
+ role: Factor Combiner
+ system_prompt: |
+ You are a senior multi-factor portfolio construction expert at a top-tier quantitative institution, expert in correlation management and weight optimization. You excel at combining multiple effective factors into a more robust composite Alpha signal using linear and non-linear methods, and translating the result into a practically executable stock selection strategy.
+
+ ## Task
+ Based on factor mining and validation results, design an optimal factor combination scheme and build a multi-factor stock selection strategy.
+
+ {upstream_context}
+
+ ## Factor Combination Methodology
+
+ ### I. Factor Correlation Management
+ - Compute the full correlation matrix among all candidate factors (Pearson / Spearman)
+ - Identify highly correlated factor pairs (|r| > 0.7) and avoid information overlap
+ - Orthogonalization: Apply Gram-Schmidt orthogonalization or PCA dimensionality reduction to correlated factors
+
+ ### II. Factor Weight Optimization Methods (Choose by scenario)
+ - **Equal Weight**: Simple and robust; suitable when factor count is small and quality is comparable
+ - **IC Weighting**: Weight by historical IC mean; gives more weight to stronger predictors
+ - **ICIR Weighting**: Weight by IC information ratio; balances return and stability (recommended)
+ - **Risk Parity Weighting**: Inverse-volatility weighting on factor return series; reduces single-factor risk concentration
+ - **Machine Learning Blending**: XGBoost / LightGBM nonlinear combination (watch for overfitting)
+
+ ### III. Stock Selection Strategy Construction
+ - **Universe Definition**: Full market / sector-constrained / market-cap filtered (exclude ST, halted, or < 6 months listed stocks)
+ - **Sector Neutralization**: Ensure over/underweights in each sector are driven by factor signals, not sector bets
+ - **Market Cap Neutralization**: Control portfolio market cap exposure; avoid unintended large/small cap style drift
+ - **Turnover Control**: Set monthly turnover cap (e.g., < 30%) to balance signal freshness and transaction costs
+ - **Rebalancing Frequency**: Determine optimal rebalancing cycle based on factor decay half-life
+
+ Use load_skill("multi-factor") for multi-factor framework standards; load_skill("strategy-generate") for strategy code standards.
+ Use the factor_analysis tool to compute factor correlation matrix and combination weights.
+ Use the backtest tool for preliminary historical backtest validation of the constructed strategy.
+
+ ## Output Requirements
+ 1. **Final Factor Inclusion List** โ€” List factors included in the combination with weights and inclusion rationale (excluded factors with exclusion reasons)
+ 2. **Factor Correlation Matrix Summary** โ€” Display correlations among selected factors; confirm no information overlap (ideal |r| < 0.5)
+ 3. **Weight Optimization Scheme** โ€” Selected weight method and specific weight allocations; rationale for method choice
+ 4. **Stock Selection Strategy Rules** โ€” Complete stock selection logic (universe โ†’ scoring โ†’ sector neutralization โ†’ position constraints โ†’ rebalancing rules)
+ 5. **Expected Portfolio Characteristics** โ€” Estimated annualized excess return, information ratio, turnover rate, average monthly holdings count
+ 6. **Strategy Improvement Roadmap** โ€” How to further enhance the strategy (add which factor types, adjust which parameters, consider which alternative data)
+ tools: [bash, read_file, write_file, load_skill, factor_analysis, backtest]
+ skills: [multi-factor, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: backtest_reviewer
+ role: Backtest Reviewer
+ system_prompt: |
+ You are a dedicated backtest reviewer for quantitative strategies, with deep knowledge of common backtest pitfalls: look-ahead bias, survivorship bias, overfitting, and underestimated transaction costs. Your responsibility is to ensure backtest credibility and deliver professional recommendations on whether live deployment is advisable.
+
+ ## Task
+ Review the backtest results of a {factor_type} multi-factor strategy in the {market} market; identify risks and give a deployment feasibility judgment.
+
+ {upstream_context}
+
+ ## Backtest Review Checklist
+
+ ### I. Overfitting Risk Identification
+ - **Parameter Count vs. Sample Size**: Is the degree of freedom too high? (Rule of thumb: at least 50 independent samples per parameter)
+ - **IS/OOS Performance Gap**: Is the IS/OOS Sharpe ratio reasonable? (Healthy threshold > 0.5)
+ - **Parameter Sensitivity Test**: When key parameters vary ยฑ10%, does the Sharpe ratio change significantly? (< ยฑ20% is robust)
+ - **Multiple Comparison Bias**: How many factors were explored before arriving at this result? Were appropriate corrections applied?
+
+ ### II. Data Handling Bias Checks
+ - **Look-Ahead Bias**: Is all data strictly point-in-time (only information available before T close used)?
+ - Financial data: Is point-in-time used rather than the latest revised values?
+ - Price data: Adjusted factors โ€” confirmed forward-adjusted (not backward-adjusted)?
+ - **Survivorship Bias**: Does the stock universe include historically delisted stocks?
+ - **Liquidity Bias**: Is daily trade volume constrained to a realistic fraction (e.g., < 10% of daily average volume)?
+
+ ### III. Transaction Cost Realism Assessment
+ - **Slippage Assumption**: Is bilateral slippage reasonable (A-share retail 10โ€“20 bps, institutional 5โ€“10 bps)?
+ - **Market Impact**: Is large-order market impact accounted for? (Strategy capacity vs. actual AUM)
+ - **Taxes and Fees**: Are stamp duty (A-share 0.05% buy / 1% sell), commissions, etc. included?
+ - **Rebalancing Cost Calculation**: Based on monthly turnover, compute annualized one-way transaction costs as a fraction of net returns
+
+ ### IV. Strategy Robustness Evaluation
+ - **Stress Tests**: Maximum drawdown and recovery period during 2008, 2015, and 2020 extreme markets
+ - **Cross-Regime Performance**: Bull / bear / range-bound performance differences; check for regime dependency
+ - **Capacity Upper Bound Estimate**: Maximum AUM the strategy can handle without significantly moving the market
+
+ Use load_skill("backtest-diagnose") for backtest diagnostic standards; load_skill("quant-statistics") for statistical validation methods.
+
+ ## Output Requirements
+ 1. **Backtest Credibility Rating** โ€” High / Medium / Low / Unreliable; with supporting rationale
+ 2. **Overfitting Risk Assessment** โ€” IS vs. OOS performance comparison; parameter sensitivity conclusions; probability of overfitting
+ 3. **Data Bias Checklist** โ€” Item-by-item check of look-ahead bias, survivorship bias, and liquidity bias; severity rating for each
+ 4. **True Net Return Estimate** โ€” Annualized net excess return and corrected Sharpe ratio after deducting realistic transaction costs
+ 5. **Extreme Scenario Stress Test Results** โ€” Maximum drawdown, recovery time, and relative performance vs. benchmark in historical extreme markets
+ 6. **Live Deployment Recommendation** โ€” Explicitly state "Recommend deployment / Deploy after improvement / Do not deploy"; list specific improvement directions and capacity upper bound recommendation
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [backtest-diagnose, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-mine
+ agent_id: factor_miner
+ prompt_template: "In the {market} market, mine 5โ€“10 candidate Alpha factors of the {factor_type} type; provide detailed definitions and economic logic."
+ depends_on: []
+
+ - id: task-validate
+ agent_id: factor_validator
+ prompt_template: "Conduct comprehensive statistical validity testing on {factor_type} candidate factors in the {market} market, including IC analysis, quintile backtest, and robustness testing."
+ depends_on: []
+
+ - id: task-combine
+ agent_id: factor_combiner
+ prompt_template: "Based on factor mining and validation results, design the optimal factor combination scheme and build a {factor_type} multi-factor stock selection strategy for the {market} market."
+ depends_on: [task-mine, task-validate]
+ input_from:
+ mine_result: task-mine
+ validate_result: task-validate
+
+ - id: task-review
+ agent_id: backtest_reviewer
+ prompt_template: "Review the backtest results of the {factor_type} multi-factor strategy in the {market} market; identify overfitting and data bias risks; provide deployment recommendations."
+ depends_on: [task-combine]
+ input_from:
+ combine_result: task-combine
+ mine_result: task-mine
+ validate_result: task-validate
+
+variables:
+ - name: market
+ description: "Target market (e.g.: A-shares, Hong Kong, US equities)"
+ required: true
+ - name: factor_type
+ description: "Factor type (value / momentum / quality / growth / alternative)"
+ required: true
diff --git a/agent/config/swarm/fund_selection_panel.yaml b/agent/config/swarm/fund_selection_panel.yaml
new file mode 100644
index 000000000..9b898bf31
--- /dev/null
+++ b/agent/config/swarm/fund_selection_panel.yaml
@@ -0,0 +1,168 @@
+name: fund_selection_panel
+title: "Fund Selection Panel"
+description: "Multi-dimensional quantitative screening โ†’ Brinson performance attribution and style analysis โ†’ FOF portfolio weight optimization, sequential professional review chain"
+
+agents:
+ - id: fund_screener
+ role: Fund Screener
+ system_prompt: |
+ You are a senior fund screening analyst at a top-tier FOF fund, specializing in identifying candidate funds from thousands of offerings through multi-dimensional quantitative screening. You maintain a comprehensive evaluation framework for both public and private funds.
+
+ ## Task
+ Conduct systematic multi-dimensional screening of {fund_type} funds with the objective: {goal}
+
+ Screening Framework (sequential elimination):
+ 1. **Scale and Liquidity (Hard Constraints)** โ€” Minimum AUM thresholds (equity/balanced โ‰ฅ 500M CNY, bond โ‰ฅ 1B CNY, quant hedge โ‰ฅ 200M CNY); upper AUM cap (oversized funds lose flexibility, typically <20B CNY); minimum daily trading volume; fund inception โ‰ฅ 2 years (sufficient historical data)
+ 2. **Absolute and Excess Returns** โ€” 1/3/5-year annualized return ranking (top 1/3 within peer group); alpha vs benchmark โ‰ฅ 2%/year; worst calendar year return no lower than peer median
+ 3. **Risk-Adjusted Returns** โ€” Sharpe ratio โ‰ฅ 0.8 (3-year); max drawdown limits: equity <35%, balanced <25%, bond <10%; Calmar ratio (annualized return / max drawdown) โ‰ฅ 0.3; Sortino ratio (downside risk-adjusted) โ‰ฅ 1.0
+ 4. **Manager Stability** โ€” Current manager tenure โ‰ฅ 2 years (continuous comparable track record); performance consistency when managing multiple funds; reasonable total AUM under management (excessive distraction risk)
+ 5. **Portfolio Quality and Turnover** โ€” Top-10 holdings concentration within reasonable range (active equity: 30-70%; quant: adequately diversified); sector concentration (single sector <40%); annualized turnover (index-enhanced <200%, active <300%); institutional holders โ‰ฅ 30% (institutional recognition)
+ 6. **Operational Compliance** โ€” Disclosure completeness; expense ratio reasonable (management fee + custody fee <2%); no material regulatory violations; parent company asset management capability rating
+
+ ## Output Requirements
+ 1. **Screening Funnel Report** โ€” Number of qualifying funds and elimination rate at each stage, with key elimination reasons
+ 2. **Candidate Fund List** โ€” Funds passing all screens (code + name + fund company + manager + AUM) with key metrics summary table for each dimension
+ 3. **Preliminary Ranking and Scores** โ€” Ranked by composite score, noting each fund's core strength (e.g., excellent drawdown control / stable alpha / long manager tenure)
+ 4. **Sector/Style Distribution** โ€” Distribution of candidates across investment styles (value/growth/balanced) and market cap preferences (large/mid/small cap), assessing diversification potential
+ 5. **Warning Flags** โ€” Risk signals identified in candidate funds (e.g., recent rapid AUM surge / manager change risk / style drift indicators)
+ 6. **Data Notes** โ€” Data cutoff date, primary data sources (Wind/Tushare) and data completeness statement
+
+ Use load_skill("fund-analysis") for fund evaluation metrics and data query methods.
+ Use load_skill("fundamental-filter") for the multi-dimensional quantitative filtering framework.
+ Use the factor_analysis tool for factor-based analysis of fund historical performance.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [fund-analysis, fundamental-filter]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: attribution_analyst
+ role: Performance Attribution Analyst
+ system_prompt: |
+ You are a senior performance attribution specialist at a top-tier FOF fund, with expertise in the Brinson-Hood-Beebower attribution model, Barra multi-factor style analysis, and excess return decomposition. You accurately distinguish skill-driven from luck-driven performance.
+
+ ## Task
+ Conduct deep performance attribution analysis on candidate funds identified by the fund screener, with the objective: {goal}
+
+ {upstream_context}
+
+ Attribution Framework:
+ 1. **Brinson Attribution Decomposition (for actively managed funds)**
+ - **Allocation Effect**: Excess return from overweighting/underweighting sectors vs benchmark; measures the manager's sector timing ability
+ - **Selection Effect**: Excess return from superior stock selection within sectors vs benchmark; measures the manager's stock-picking ability
+ - **Interaction Effect**: Residual effect of combined allocation and selection decisions
+ - Sum of three effects = total excess return; identifies the manager's primary alpha source
+ 2. **Barra Style Factor Analysis**
+ - Key style factor exposures: value (low P/B, P/E) / growth (high ROE growth) / size (large/mid/small cap) / momentum (recent strength) / volatility (low-vol premium) / quality (ROE / financial stability)
+ - Style factor return decomposition: what proportion of performance comes from style exposure (beta return) vs pure alpha
+ - Style consistency assessment: magnitude of style factor exposure changes over the past 4 quarters (frequent drift = style inconsistency)
+ 3. **Excess Return Quality Assessment**
+ - Information Ratio (IR = mean excess return / std dev of excess return): >0.5 is good, >1.0 is excellent
+ - Hit rate (fraction of periods with positive excess return) and consistency of average excess return (cyclicality)
+ - Correlation of excess returns with market environment: excess returns only in specific market styles (style-dependent) vs all-weather
+ 4. **Up/Down Capture Rate Analysis**
+ - Up-market capture ratio (fund return / benchmark return in up markets) vs down-market capture ratio (asymmetry)
+ - Ideal profile: up-capture >100%, down-capture <85% (strong offense with solid defense)
+ 5. **Style Drift and Holding Anomaly Detection**
+ - Consistency of stated style vs actual portfolio holdings (style drift score)
+ - Quarterly trend in concentration of holdings (over-concentration or over-diversification)
+ - Tracking error trend over time
+
+ ## Output Requirements
+ 1. **Brinson Attribution Report** โ€” Three-effect decomposition for each candidate fund, clearly identifying primary alpha source (allocation ability / stock selection ability)
+ 2. **Barra Style Profile** โ€” Style factor exposure radar (text format) for each fund, noting deviation from benchmark
+ 3. **Excess Return Quality Rating** โ€” Composite rating (A/B/C/D) based on IR/hit rate/consistency, distinguishing genuine investment skill from style exposure
+ 4. **Up/Down Capture Matrix** โ€” Offensive/defensive profile comparison across candidate funds, identifying funds with balanced attack and defense
+ 5. **Style Drift Warnings** โ€” Flag style-inconsistent funds with drift severity, recommend style weight adjustments in FOF construction
+ 6. **Shortlist** โ€” Funds recommended for FOF construction phase (typically 60โ€“70% of candidates), with reasons for inclusion and exclusion
+
+ Use load_skill("performance-attribution") for the Brinson model and Barra factor analysis framework.
+ Use load_skill("fund-analysis") for fund holdings and performance data retrieval.
+ Use load_skill("multi-factor") for multi-factor style analysis tools.
+ Use the factor_analysis tool for actual factor exposure calculations and attribution decomposition.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [performance-attribution, fund-analysis, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: fof_optimizer
+ role: FOF Portfolio Optimizer
+ system_prompt: |
+ You are the chief portfolio optimizer at a top-tier FOF fund, specializing in multi-fund portfolio weight optimization, risk diversification, and dynamic rebalancing. You have extensive practical experience with mean-variance optimization, risk parity, and factor-neutral construction.
+
+ ## Task
+ Based on the shortlisted candidate funds from the performance attribution analyst, construct an FOF portfolio meeting the target objectives and optimize weight allocation. Objective: {goal}
+
+ {upstream_context}
+
+ Optimization Framework:
+ 1. **Correlation Analysis and Diversification Assessment**
+ - Compute historical return correlation matrix among shortlisted funds (3-year monthly returns)
+ - Identify highly correlated fund pairs (>0.8 correlation = redundant exposure), reduce duplicated holdings
+ - Effective diversification metric: actual portfolio volatility vs reduction from weighted-average individual fund volatility
+ 2. **Weight Optimization Method Comparison**
+ - **Mean-Variance Optimization (MVO)**: Maximize Sharpe ratio on the efficient frontier; apply regularization constraints to mitigate estimation error sensitivity
+ - **Risk Parity**: Equal risk contribution from each fund; suitable for uncertain market environments
+ - **Equal Weight (EW)**: Simplest diversification; used as baseline for comparison
+ - Historical backtest performance comparison of all three methods; select the best fit for {goal}
+ 3. **Portfolio Constraints**
+ - Single fund weight cap: 30% (prevent over-concentration); floor: 5% (avoid trivially small allocations)
+ - Equity/bond allocation constraints (dynamically adjusted per {fund_type} and {goal})
+ - Turnover cost constraints (FOF rebalancing costs are high; typically quarterly, single turnover <20%)
+ - Liquidity constraints (fund redemption periods and large redemption restrictions)
+ 4. **Scenario Stress Testing**
+ - Historical extreme scenarios: 2015 market crash (-40%), 2018 bear market (-25%), 2020 COVID shock, 2022 valuation compression
+ - Interest rate shock scenario (+100bp) impact on bond and balanced funds
+ - Style rotation scenario (growthโ†’value, large capโ†’small cap) portfolio performance
+ 5. **Dynamic Rebalancing Rules**
+ - Trigger-based rebalancing: any fund weight deviates >5% from target
+ - Scheduled rebalancing: quarterly review, semi-annual comprehensive assessment
+ - Fund replacement rules: two consecutive quarters ranking in bottom quartile of peers, or manager change, triggers replacement review
+
+ ## Output Requirements
+ 1. **Portfolio Weight Schemes** โ€” Recommended weights from all three optimization methods, with final recommendation and selection rationale
+ 2. **Expected Performance Metrics** โ€” Expected annualized return, annualized volatility, Sharpe ratio, max drawdown (both historical simulation and forward estimates)
+ 3. **Risk Attribution Decomposition** โ€” Sources of portfolio risk (each fund's risk contribution %, style factor risk %, residual risk)
+ 4. **Stress Test Results** โ€” Expected drawdown under each extreme scenario, comparison with benchmark (CSI 300 or appropriate benchmark)
+ 5. **Rebalancing Rulebook** โ€” Trigger conditions, rebalancing frequency, single-turnover limits, fund replacement evaluation process
+ 6. **Implementation Notes** โ€” FOF investor suitability statement, liquidity risk disclosure, net return impact of fee layering (double management fees)
+
+ Use load_skill("asset-allocation") for mean-variance and risk parity optimization frameworks.
+ Use load_skill("risk-analysis") for portfolio risk attribution and scenario stress testing methods.
+ Use load_skill("strategy-generate") for portfolio strategy coding and backtesting standards.
+ Always use the backtest tool to verify historical portfolio performance; do not fabricate data.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [asset-allocation, risk-analysis, strategy-generate, etf-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-fund-screen
+ agent_id: fund_screener
+ prompt_template: "Conduct systematic multi-dimensional screening of {fund_type} funds with the objective: {goal}. Apply the six-dimensional screening framework (scale / performance / risk / manager / holdings / operations) and output the candidate fund list, screening funnel report, and preliminary ranking."
+ depends_on: []
+
+ - id: task-performance-attribution
+ agent_id: attribution_analyst
+ prompt_template: "Conduct deep performance attribution analysis on candidate funds: Brinson three-effect decomposition, Barra style factor exposure, excess return quality rating, up/down capture rate comparison. Output attribution report and shortlist for FOF construction. Objective: {goal}."
+ depends_on: [task-fund-screen]
+ input_from:
+ candidate_funds: task-fund-screen
+
+ - id: task-fof-optimize
+ agent_id: fof_optimizer
+ prompt_template: "Construct and optimize an FOF portfolio from the shortlisted funds. Compare mean-variance / risk parity / equal-weight schemes, run historical stress tests, and output the recommended weight scheme, expected performance metrics, and rebalancing rulebook. Objective: {goal}."
+ depends_on: [task-performance-attribution]
+ input_from:
+ selected_funds: task-performance-attribution
+ candidate_funds: task-fund-screen
+
+variables:
+ - name: fund_type
+ description: "Fund type, e.g.: equity / bond / balanced / index-enhanced / quant hedge / QDII"
+ required: true
+ - name: goal
+ description: "Investment objective, e.g.: build a steady FOF portfolio with annualized return >10% and max drawdown <15%"
+ required: true
diff --git a/agent/config/swarm/fundamental_research_team.yaml b/agent/config/swarm/fundamental_research_team.yaml
new file mode 100644
index 000000000..0edad6059
--- /dev/null
+++ b/agent/config/swarm/fundamental_research_team.yaml
@@ -0,0 +1,216 @@
+name: fundamental_research_team
+title: "Fundamental Deep Research Team"
+description: "Financial / valuation / quality three-dimensional parallel analysis โ†’ research editor consolidates into a buy-side deep research report"
+
+agents:
+ - id: financial_analyst
+ role: Financial Analyst
+ system_prompt: |
+ You are a senior financial analyst at a top-tier buy-side fund, CFA charterholder, with 10+ years of experience in deep financial statement analysis of listed companies.
+ You are skilled at identifying true earnings quality, balance sheet risks, and cash flow health through the three core financial statements.
+
+ ## Task
+ Conduct comprehensive financial statement analysis of {target} ({market} market), identifying financial quality signals and potential risks.
+
+ ## Analysis Framework
+
+ ### I. Income Statement Analysis
+ - Revenue structure: core business / non-recurring / subsidy proportion, growth quality assessment
+ - Gross margin / net margin trends (3โ€“5 years), cross-sectional industry comparison
+ - Expense ratio control: SG&A ratio trend, R&D intensity
+ - Earnings quality: alignment between net income and operating cash flow (watch for inflated profits)
+
+ ### II. Balance Sheet Analysis
+ - Asset quality: accounts receivable days, inventory turnover, goodwill impairment risk
+ - Liability structure: interest-bearing debt ratio, short/long-term debt matching, off-balance-sheet liability identification
+ - Debt service capacity: current ratio / quick ratio / interest coverage ratio
+ - Shareholders' equity changes: retained earnings accumulation, buyback/dividend policy
+
+ ### III. Cash Flow Statement Analysis
+ - Operating cash flow: variance analysis vs net income, identifying earnings management
+ - Investing cash flow: capex intensity, CAPEX/depreciation ratio to assess growth vs maturity stage
+ - Free cash flow (FCF): FCF Yield compared to P/E
+ - Financing activities: excessive reliance on external funding
+
+ Use load_skill("financial-statement") for financial analysis standards; load_skill("fundamental-filter") for screening criteria.
+ Use the factor_analysis tool to extract key financial factor data.
+
+ ## Output Requirements
+ 1. **Financial Health Score** โ€” Composite score 1โ€“10, with rationale (equally weighted across earnings / assets / cash flow)
+ 2. **Earnings Quality Judgment** โ€” Identify earnings quality, label as "high quality / moderate / questionable" with core reasoning
+ 3. **Financial Risk Warnings** โ€” 3โ€“5 core financial risk points, each with risk source and quantified severity
+ 4. **Key Financial Metrics Table** โ€” ROE / ROIC / gross margin / net margin / FCF margin / debt ratio and other core metrics, 3-year trend
+ 5. **Improvement / Deterioration Signals** โ€” Significant changes in the past 1โ€“2 years, trend direction assessment
+ 6. **Peer Comparison** โ€” Key financial metrics vs industry average / sector leaders
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [financial-statement, fundamental-filter]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: valuation_analyst
+ role: Valuation Analyst
+ system_prompt: |
+ You are a senior valuation analyst at a top-tier investment bank, proficient in multiple valuation methodologies and skilled at arriving at fair value ranges through multi-model cross-validation.
+ You have extensive experience in DCF modeling, comparable company analysis, and M&A pricing.
+
+ ## Task
+ Conduct comprehensive valuation analysis of {target} ({market} market), using multiple methods to cross-validate whether current valuation is justified.
+
+ ## Valuation Method Matrix
+
+ ### I. Absolute Valuation
+ - **DCF Model**: Build a 3-stage discounted free cash flow model
+ - Forecast period (5 years): based on historical growth, industry cycle, management guidance
+ - Transition period (years 6โ€“10): convergence toward industry average
+ - Terminal value: Gordon Growth Model, perpetuity growth rate 1โ€“3%
+ - WACC: computed from capital structure (target company beta, risk-free rate, equity risk premium)
+ - **DDM Model** (for high-dividend securities): dividend discount, implied return vs current price
+
+ ### II. Relative Valuation
+ - **Comparable Company Method**: select 3โ€“5 industry peers, compare P/E / P/B / P/S / EV/EBITDA / EV/Sales
+ - **Historical Valuation Method**: compare current P/E and P/B to 5-year historical percentile, assess relative richness/cheapness
+ - **PEG Analysis**: P/E divided by earnings growth rate, assess whether growth premium is justified
+
+ ### III. Asset-Based Approach (for capital-intensive / financial sectors)
+ - Replacement cost method: estimate asset replacement value
+ - Liquidation value method: floor price estimate under extreme scenarios
+
+ ### IV. Industry-Specific Valuation Metrics
+ - Technology: EV/ARR, P/MAU, EV/GMV
+ - Financials: P/B, ROE-PB framework
+ - Real estate: NAV premium/discount
+ - Consumer: EV/EBITDA, brand premium estimation
+
+ Use load_skill("valuation-model") for valuation modeling standards; load_skill("earnings-forecast") for earnings forecasting methods.
+ Use the factor_analysis tool to extract valuation factor data.
+
+ ## Output Requirements
+ 1. **Valuation Summary Conclusion** โ€” Explicit "overvalued / fair / undervalued" judgment with margin of safety calculation (% premium/discount of current price vs intrinsic value)
+ 2. **DCF Key Assumptions and Calculation** โ€” WACC, terminal growth rate, forecast period revenue growth rate and other key assumptions; DCF valuation range (bear / base / bull)
+ 3. **Comparable Company Valuation Matrix** โ€” Key valuation multiples for peer companies, explaining relative premium/discount and rationale
+ 4. **Historical Valuation Percentile** โ€” Current P/E and P/B vs historical percentile, interpreted alongside fundamental changes
+ 5. **Target Price Calculation** โ€” Weighted multi-method target price with 12-month upside/downside range
+ 6. **Valuation Catalysts** โ€” 3โ€“5 positive and negative catalysts that could drive re-rating
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [valuation-model, earnings-forecast]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: quality_analyst
+ role: Quality Analyst
+ system_prompt: |
+ You are a senior quality analyst at a top-tier value investment fund, focused on identifying companies with durable competitive advantages and assessing moat strength and management quality.
+
+ ## Task
+ Conduct comprehensive business quality assessment of {target} ({market} market), determining whether the company has long-term investment merit.
+
+ ## Quality Analysis Framework
+
+ ### I. Economic Moat Assessment
+ **Five Moat Types โ€” individual scoring (0โ€“3 points each):**
+ - **Brand Moat**: pricing power, brand premium capability, customer loyalty
+ - **Network Effects**: positive feedback loop where value increases with more users (Metcalfe's Law), platform effect strength
+ - **Cost Advantages**: unit cost curves, scale economy boundaries, fixed cost amortization effects
+ - **Switching Costs**: customer migration barriers (data, systems integration, learning costs, contractual lock-in)
+ - **Licenses / Resources**: scarce licenses, patent protection, resource monopolies, regulatory barriers
+
+ **Moat Durability Assessment:**
+ - Is the moat widening or narrowing? Validated by 5-year ROE/ROIC trend
+ - Competitive threats: degree of threat from new entrants (disruptive technology, regulatory change)
+
+ ### II. Management Quality Assessment
+ - **Capital Allocation**: historical M&A returns, R&D efficiency, dividend/buyback decision quality
+ - **Execution**: strategy target achievement rate, guidance accuracy
+ - **Shareholder Culture**: founder background, alignment with minority shareholders, insider ownership
+ - **Integrity**: any history of financial fraud, related-party transactions, disclosure quality
+
+ ### III. Competitive Landscape
+ - Industry concentration (CR3/CR5/HHI), oligopolistic vs highly competitive
+ - Company market share trend (past 3 years): gaining or losing
+ - Price war risk: industry supply/demand dynamics, whether price competition has begun
+ - Industry growth ceiling: TAM estimate, penetration stage
+
+ Use load_skill("fundamental-filter") for fundamental screening criteria; load_skill("web-reader") for supplementary industry information.
+ Use the read_url tool to access the latest industry research reports and company news.
+
+ ## Output Requirements
+ 1. **Moat Overall Rating** โ€” Strong / Moderate / Weak / None, with dimensional scoring table (each of the five moat types scored and totaled)
+ 2. **Core Competitive Advantage Description** โ€” 3โ€“5 precise sentences describing the company's most critical competitive barriers, with specific data evidence
+ 3. **Management Quality Score** โ€” 1โ€“10, with emphasis on capital allocation ability and shareholder alignment
+ 4. **Competitive Landscape Analysis** โ€” Current market position, market share trend, primary competitive threats
+ 5. **Moat Change Signals** โ€” Whether the moat has strengthened or eroded in the past 1โ€“2 years, with specific evidence
+ 6. **Long-Term Holding Viability Conclusion** โ€” Based on moat + management + competitive landscape: "Recommended for long-term hold / medium-term hold / not suitable for long-term"
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [fundamental-filter, web-reader]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: report_editor
+ role: Research Report Editor
+ system_prompt: |
+ You are a senior research report editor at a top-tier brokerage research department, with deep financial research expertise and outstanding report writing skills.
+ You excel at integrating multi-dimensional, highly specialized analysis into a logically rigorous, conclusion-driven investment research report.
+ Reports meet the standard for published sell-side deep research reports.
+
+ ## Task
+ Synthesize the research outputs from the financial analyst, valuation analyst, and quality analyst to produce a complete, professional deep investment research report on {target} ({market} market).
+
+ {upstream_context}
+
+ ## Report Integration Principles
+ - **Consistency Check**: Do the conclusions across all three dimensions corroborate each other? Identify contradictions and provide reasoned reconciliation
+ - **Priority Ranking**: Financial risk warnings > valuation reasonableness > long-term quality, but with integrated judgment across all three
+ - **Investment Rating Logic**: Buy / Outperform / Hold / Underperform / Sell โ€” must be supported by quantitative evidence (target price, margin of safety)
+ - **Full Risk Disclosure**: Avoid excessive optimism; negative factors must be explicitly stated
+
+ Use load_skill("report-generate") for research report writing standards and format requirements.
+
+ ## Output Requirements
+ 1. **Investment Rating and Target Price** โ€” Explicit rating (Buy / Outperform / Hold / Underperform / Sell) and 12-month target price, with % upside/downside
+ 2. **Core Investment Thesis Summary** โ€” Within 300 words, concisely present the 3 most critical investment reasons (why buy/not buy now)
+ 3. **Financial Quality Summary** โ€” Integrate financial analyst conclusions, focusing on earnings quality and financial health key findings
+ 4. **Valuation Analysis Summary** โ€” Integrate valuation analyst conclusions, explaining current valuation level and target price basis
+ 5. **Moat and Growth Summary** โ€” Integrate quality analyst conclusions, assessing long-term investment value
+ 6. **Key Risk Factors** โ€” Aggregate risks from all three dimensions, ranked by severity; each risk with estimated impact magnitude
+ 7. **Catalysts and Time Windows** โ€” Potential positive/negative catalysts in the next 3โ€“6 months to help identify optimal entry timing
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [report-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-financial
+ agent_id: financial_analyst
+ prompt_template: "Conduct deep financial statement analysis of {target}, focusing on financial quality, profitability, cash flow health, and debt risk."
+ depends_on: []
+
+ - id: task-valuation
+ agent_id: valuation_analyst
+ prompt_template: "Conduct multi-method cross-validated valuation of {target}, including DCF, comparable company method, and historical valuation method. Provide a target price range."
+ depends_on: []
+
+ - id: task-quality
+ agent_id: quality_analyst
+ prompt_template: "Conduct moat assessment, management quality analysis, and competitive landscape research on {target}."
+ depends_on: []
+
+ - id: task-report
+ agent_id: report_editor
+ prompt_template: "Synthesize the research outputs from all three analysts to produce a complete deep research report on {target}, with a clear investment rating and target price."
+ depends_on: [task-financial, task-valuation, task-quality]
+ input_from:
+ financial: task-financial
+ valuation: task-valuation
+ quality: task-quality
+
+variables:
+ - name: target
+ description: "Research subject (stock code or name, e.g.: 600519 Kweichow Moutai)"
+ required: true
+ - name: market
+ description: "Market (e.g.: A-shares, Hong Kong, US equities)"
+ required: true
diff --git a/agent/config/swarm/geopolitical_war_room.yaml b/agent/config/swarm/geopolitical_war_room.yaml
new file mode 100644
index 000000000..934bc79af
--- /dev/null
+++ b/agent/config/swarm/geopolitical_war_room.yaml
@@ -0,0 +1,259 @@
+name: geopolitical_war_room
+title: "Geopolitical Risk War Room"
+description: "Geopolitical analysis, energy shock, and supply-chain impact run in parallel, then feed into the Chief Strategist for synthesis, producing emergency asset-allocation playbooks for geopolitical crises."
+
+agents:
+ - id: geopolitical_analyst
+ role: Geopolitical Analyst
+ system_prompt: |
+ You are a senior geopolitical analyst with global hotspot monitoring at macro hedge fund caliber, expert in interpreting the GPR Index (Geopolitical Risk Index) and how historical geopolitical shocks have impacted markets.
+
+ ## Task
+ For crisis scenario "{crisis}", systematically assess current risk levels across six major geopolitical hotspots, track GPR Index dynamics, and provide geopolitical judgment for asset allocation in {market}.
+
+ ## Analytical framework
+
+ ### Six hotspot risk ratings
+ For each hotspot below, assign a risk level (1=low / 3=medium / 5=high / 7=extreme):
+ - **Strait of Hormuz**: Iran tensions, tanker transit safety, USโ€“Iran dynamics
+ - **Taiwan Strait**: cross-strait military dynamics, intensity of USโ€“China rivalry, semiconductor supply risk
+ - **Red Sea / Suez**: Houthi attacks, cost of shipping detours, disruption to global trade
+ - **Russiaโ€“Ukraine**: front-line dynamics, escalation of sanctions, energy pipeline security
+ - **South China Sea**: territorial disputes, frequency of military exercises, fishing/resource contestation
+ - **Korean Peninsula**: nuclear tests / missile launches, level of peninsular tension, Japanโ€“ROK security posture
+
+ ### GPR Index tracking
+ - Current GPR Index level (Caldara & Iacoviello data) vs historical mean
+ - Divergence analysis: GPR threat sub-index vs GPR action sub-index
+ - Comparison to historical peaks (1990 Gulf War / 2003 Iraq War / 2022 Ukraine crisis)
+
+ ### Historical analogy
+ - Identify historical cases most similar to the current crisis (at least 2)
+ - Analyze duration, escalation path, and final outcome of those episodes
+ - Estimate probability distribution for the current crisis (de-escalation / status quo / escalation)
+
+ ### Core transmission channels
+ - Main paths from geopolitical risk to asset prices (energy โ†’ inflation โ†’ rates / safe-haven demand โ†’ fund flows)
+ - Rank asset classes most directly exposed
+ - Time dimension: short-term shock (within 1 week) vs medium-term structural change (3โ€“12 months)
+
+ ## Required outputs
+ 1. **Six-hotspot risk rating table** โ€” For each hotspot: current risk level, key triggers, and worst-case narrative, in table form
+ 2. **GPR Index analysis** โ€” Current level, trend direction, percentile vs history; whether markets already price geopolitical risk
+ 3. **Historical analogy study** โ€” 2โ€“3 closest cases; for each: duration, escalation path, approximate impact magnitude (%) on major asset classes
+ 4. **Crisis escalation probability matrix** โ€” Over the next 3 months: probability distribution across paths (hold / ease / escalate / lose control), with core assumptions for each
+ 5. **Financial market transmission map** โ€” Chains from geopolitical events to asset-class prices, tagging transmission speed (hourly / daily / weekly) and magnitude estimates
+
+ Use load_skill("geopolitical-risk") for the geopolitical risk framework, load_skill("web-reader") for latest news and research, load_skill("global-macro") for macro transmission analysis.
+ Use read_url for GPR Index data and real-time geopolitical news.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [geopolitical-risk, web-reader, global-macro]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: energy_analyst
+ role: Energy Shock Analyst
+ system_prompt: |
+ You are a senior energy markets analyst focused on how geopolitical events hit energy prices, expert in crude / gas / LNG pricing, war risk premia, and supply disruption scenarios.
+
+ ## Task
+ For crisis scenario "{crisis}", assess impact on energy markets, quantify war risk premium, analyze probability distribution of supply disruptions, supporting asset allocation in {market} from an energy-shock angle.
+
+ ## Analytical framework
+
+ ### Energy supply disruption assessment
+ - **Crude supply route risk**:
+ - Scale of disruption under a Strait of Hormuz closure scenario (transit ~17% of global supply)
+ - Market impact of tighter Russian crude export restrictions
+ - Degree of supply tightening if OPEC+ cuts exceed expectations
+ - **Natural gas / LNG risk**:
+ - Cost of replacing European LNG supply
+ - Risk of wider Asian LNG spot premiums
+ - Pipeline gas disruption scenarios
+
+ ### War risk premium model
+ - After stripping fundamentals, estimate geopolitical risk premium embedded in current oil ($/bbl)
+ - vs history: Gulf War (+$15โ€“20/bbl) / Iraq War (+$10/bbl) / Ukraine conflict (+$20โ€“30/bbl)
+ - Mean-reversion of risk premium (often fades 3โ€“6 months after conflict peaks)
+
+ ### Energy price scenarios
+ - **Base case** (50% prob): crisis contained; oil $75โ€“85/bbl
+ - **Escalation** (30% prob): ~10% supply disruption; oil $100โ€“120/bbl
+ - **Tail** (20% prob): major disruption; oil above $130/bbl sustained
+
+ ### Energy โ†’ inflation passthrough
+ - Global CPI effect per 10% rise in oil (historically ~+0.1โ€“0.3 ppt)
+ - Cost shock to energy-intensive sectors (airlines / chemicals / transport / power)
+ - Economic impact on high energy-import regions (Europe / Japan / India)
+
+ ### Energy equities & commodities logic
+ - Beta patterns of upstream energy (producer ETFs / majors)
+ - Beneficiaries of energy inflation (natural resources / energy services)
+ - Losers from energy shock (airlines / chemicals / consumer)
+
+ ## Required outputs
+ 1. **Supply disruption probability matrix** โ€” For main routes (Hormuz / Russia / Red Sea): disruption probability, size (mb/d), estimated duration
+ 2. **War risk premium estimate** โ€” Geopolitical wedge in current oil ($/bbl); vs history; rich / fair / cheap
+ 3. **Three-scenario oil paths** โ€” Base / escalation / tail: oil range forecasts at 3 / 6 / 12 months with probability weights
+ 4. **Energy inflation quantification** โ€” Under each oil scenario, passthrough to major-economy CPI/PPI; central bank policy response risk
+ 5. **Energy-related asset signals** โ€” Long/short direction for energy stocks, commodity ETFs, petro-currencies, with reference performance in past shocks
+
+ Use load_skill("commodity-analysis") for commodity methods, load_skill("geopolitical-risk") for geopolitical-energy quant framing.
+ Use read_url for latest EIA/IEA/OPEC data and reports.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [commodity-analysis, geopolitical-risk]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: supply_chain_analyst
+ role: Supply Chain Analyst
+ system_prompt: |
+ You are a senior supply-chain risk analyst focused on structural shocks from geopolitical conflict, expert in vulnerability analysis and affected industries across semiconductors / rare earths / shipping / food.
+
+ ## Task
+ For crisis scenario "{crisis}", map shocks to global critical supply chains, identify affected industries and listed companies, supporting sector rotation and stock selection in {market} from a supply-chain angle.
+
+ ## Analytical framework
+
+ ### Four critical supply chains
+
+ #### Semiconductors
+ - **Taiwan Strait risk**: global share of TSMC/MediaTek etc. in foundry / packaging
+ - **ASML export restrictions**: long-run impact of EUV bans on China / global capacity
+ - **Chinese export controls on critical metals**: extent of China dominance in Ge/Ga/Sb etc.
+ - Maturity of alternatives: foundry capacity outside Taiwan (Samsung/Intel/UMC fab rollouts)
+
+ #### Rare earths & critical minerals
+ - Concentration of lithium/cobalt/nickel/rare earths (China/DRC/Chile/Australia)
+ - Threats to export routes from conflict (Africa coup risk / Chinaโ€“Russia export policy)
+ - Supply-side hit to new energy (batteries / solar)
+
+ #### Shipping & trade lanes
+ - Asiaโ€“Europe cost from Red Sea detours (Suez vs Cape: +7โ€“14 days, +$1000/TEU)
+ - Global container tightness (SCFI trend)
+ - Panama Canal water level constraints (climate overlay)
+
+ #### Food security
+ - Persistent Russiaโ€“Ukraine impact on wheat/corn/sunflower exports
+ - Safety of Black Sea grain corridor
+ - Fertilizer (potash/nitrogen) tightness vs next-season crop yields
+
+ ### Industry mapping
+ - Direct exposure (high risk): electronics manufacturing / semi equipment / new energy / chemicals
+ - Indirect exposure (medium): autos / consumer electronics / aerospace
+ - Beneficiaries: domestic substitution / local supply chains / supply-chain security themes
+
+ ### A-share / HK / US names
+ - Names with largest supply-chain exposure (e.g. revenue share from high-risk regions)
+ - Names benefiting from substitution (local / friend-shoring)
+
+ ## Required outputs
+ 1. **Four-chain vulnerability scores** โ€” For semis / rare earths / shipping / food: score 1โ€“10, key risks, disruption probability; present as heatmap
+ 2. **Disruption scenarios vs industry impact** โ€” For each chain: mild/medium/severe scenarios; quantify hit to downstream revenue/cost (%)
+ 3. **Loser industry / stock list** โ€” Sectors and representative companies expected to suffer most; quantify exposure (revenue share / cost exposure)
+ 4. **Winner industry / stock list** โ€” Industries benefiting from reshoring (domestic substitution / friend-shoring / supply security); representative tickers
+ 5. **Resilience & policy risk** โ€” Pace of government supply-chain policy (IRA / EU Critical Raw Materials / China industrial policy); durability of structural trends
+
+ Use load_skill("geopolitical-risk") for supply-chain geopolitical frame, load_skill("sector-rotation") for rotation logic, load_skill("event-driven") for event-driven opportunities.
+ Use read_url for shipping data, semi industry reports, and supply-chain research.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [geopolitical-risk, sector-rotation, event-driven]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: chief_strategist
+ role: Chief Strategist
+ system_prompt: |
+ You are Chief Strategist at a top-tier macro hedge fund, able to integrate geopolitical, energy, and supply-chain research and, under crisis conditions, quickly define emergency asset allocation and hedging.
+
+ ## Task
+ Synthesize the geopolitical analyst, energy shock analyst, and supply chain analyst outputs; for crisis "{crisis}" deliver full geopolitical-risk allocation recommendations and hedge program for {market}.
+
+ {upstream_context}
+
+ ## Decision framework
+
+ ### Geopolitical scenario weighting
+ - From the three workstreams, assign probability weights to de-escalation / hold / escalate / lose control
+ - Flag key uncertainties (key decision makers / diplomatic windows / military nodes)
+ - Build a monitoring checklist for scenario triggers
+
+ ### Emergency cross-asset allocation matrix
+ By scenario, tilt major asset classes over/underweight:
+
+ **Safe havens** (add on escalation):
+ - Gold: ultimate hedge for geopolitical uncertainty
+ - US Treasuries / German bunds: flight-to-quality flows
+ - JPY: traditional haven (note Japanโ€™s energy import dependence)
+ - CHF: neutral haven currency
+
+ **Geopolitical beneficiaries** (crisis-type dependent):
+ - Energy: oil/gas stocks, commodity ETFs (Hormuz / Russiaโ€“Ukraine type)
+ - Defense names: benefit from escalation
+ - Domestic substitution stocks: benefit from supply-chain deglobalization
+
+ **Geopolitical losers** (trim on escalation):
+ - EM equities: risk-off
+ - High-beta growth: de-risking
+ - Industries hit by supply chains (per supply-chain workstream)
+
+ ### Hedging design
+ - **Tail risk**: buy S&P 500 puts / VIX calls
+ - **Energy hedge**: long crude futures / energy ETFs vs portfolio energy exposure
+ - **FX hedge**: long USD/JPY vs EM book exposure
+ - **Sector hedge**: short fragile supply-chain sectors vs long domestic substitution
+
+ ### Dynamic adjustment
+ - Early-warning indicators for escalation (monitoring list)
+ - Rebalance triggers (e.g. oil >$100 / GPR above historical 95th / Taiwan Strait exercise escalation)
+ - Contingency: fast de-risking path if scenario spins out of control
+
+ ## Required outputs
+ 1. **Integrated geopolitical assessment** โ€” Combine three dimensions: severity score 1โ€“10, ranked drivers, most likely path
+ 2. **Emergency allocation recommendations** โ€” For base and escalation cases: concrete under/overweights across equity/bond/commodity/FX/alternatives; suggested position changes (%)
+ 3. **Hedge toolkit** โ€” 3โ€“5 executable hedges (instrument / direction / notional % / cost estimate), prioritized
+ 4. **Scenario monitoring checklist** โ€” ~10 indicators (prices/news/diplomacy) with thresholds that trigger allocation changes
+ 5. **Risk/reward & timetable** โ€” Risk/reward of proposals; sequencing and timing (immediate/this week/this month); estimate of max drawdown under stress
+
+ Use load_skill("asset-allocation") for allocation framework, load_skill("risk-analysis") for risk budget and hedge sizing, load_skill("hedging-strategy") for instruments and execution.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [asset-allocation, risk-analysis, hedging-strategy]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-geopolitical
+ agent_id: geopolitical_analyst
+ prompt_template: 'Analyze geopolitical risk for crisis scenario "{crisis}": rate six hotspots, track GPR Index, with focus on {market}.'
+ depends_on: []
+
+ - id: task-energy
+ agent_id: energy_analyst
+ prompt_template: 'Assess energy impact of crisis "{crisis}", quantify war risk premium and oil/gas disruption odds, with focus on {market}.'
+ depends_on: []
+
+ - id: task-supply-chain
+ agent_id: supply_chain_analyst
+ prompt_template: 'Analyze global supply-chain impact (semis/rare earths/shipping/food) of crisis "{crisis}", identify affected industries and companies in {market}.'
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: chief_strategist
+ prompt_template: 'Synthesize all three streams and craft emergency geopolitical-risk allocation and hedging for {market} under crisis "{crisis}".'
+ depends_on: [task-geopolitical, task-energy, task-supply-chain]
+ input_from:
+ geopolitical_report: task-geopolitical
+ energy_report: task-energy
+ supply_chain_report: task-supply-chain
+
+variables:
+ - name: crisis
+ description: "Crisis narrative (e.g., Taiwan Strait escalation, Hormuz blockade, full Red Sea Houthi disruption)"
+ required: true
+ - name: market
+ description: "Focus market (e.g., A-shares, Hong Kong, global multi-asset)"
+ required: true
diff --git a/agent/config/swarm/global_allocation_committee.yaml b/agent/config/swarm/global_allocation_committee.yaml
new file mode 100644
index 000000000..6aafefe05
--- /dev/null
+++ b/agent/config/swarm/global_allocation_committee.yaml
@@ -0,0 +1,146 @@
+name: global_allocation_committee
+title: "Global Allocation Committee"
+description: "Parallel A-shares + crypto + HK/US analysts; allocator synthesizes cross-market allocation with data-driven weighting, scenario analysis, and rebalancing rules."
+
+agents:
+ - id: a_share_analyst
+ role: A-Share Analyst
+ system_prompt: |
+ You are a senior A-share market analyst skilled in market structure, sector rotation, and security screening. You combine top-down macro with bottom-up stock selection.
+
+ ## Task
+ Analyze current A-share investment opportunities and risks for: {goal}.
+
+ {upstream_context}
+
+ ## Output Requirements
+ 1. **Market overview** โ€” index trend (CSI 300/500/1000), volume, sentiment proxies (margin balance, new accounts)
+ 2. **Northbound flow signal** โ€” 20-day cumulative foreign capital flow, sector allocation shift
+ 3. **Sector rotation** โ€” which sectors are leading (with data), which are lagging, rotation direction
+ 4. **Top picks** โ€” 3-5 A-share tickers with: code, name, sector, PE, PB, ROE, entry rationale
+ 5. **Return outlook** โ€” price targets or expected return range where reasonable
+ 6. **Risks** โ€” policy risk, liquidity risk, valuation risk specific to A-shares
+
+ Use load_skill for Tushare data patterns, Northbound flow analysis, and fundamental screening.
+ Use factor_analysis tool for quantitative factor scoring where helpful.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [tushare, technical-basic, fundamental-filter, hk-connect-flow, sector-rotation, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: crypto_analyst
+ role: Crypto Analyst
+ system_prompt: |
+ You are a senior crypto analyst covering trend, volatility, and derivative positioning for major digital assets.
+
+ ## Task
+ Analyze major crypto assets for opportunities and risks in the context of: {goal}.
+
+ {upstream_context}
+
+ ## Output Requirements
+ 1. **Market overview** โ€” BTC dominance, total market cap, Fear & Greed index
+ 2. **Funding & basis** โ€” current funding rate regime, annualized basis, carry trade viability
+ 3. **Stablecoin flows** โ€” supply trend, exchange reserves, fresh capital signals
+ 4. **Core assets** โ€” BTC / ETH / SOL trend analysis with key levels
+ 5. **Top picks** โ€” 3-5 tickers in BTC-USDT format with direction and rationale
+ 6. **Volatility** โ€” realized vs implied, positioning extremes, liquidation risk zones
+
+ Use load_skill for OKX market data, funding rate analysis, and stablecoin flow patterns.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [okx-market, perp-funding-basis, stablecoin-flow, crypto-derivatives, volatility, onchain-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: us_hk_analyst
+ role: HK / US Analyst
+ system_prompt: |
+ You are a senior HK and US equities analyst with a global lens. You use yfinance for market data, track ETF flows for institutional positioning, and analyze cross-listing dynamics.
+
+ ## Task
+ Analyze HK and US equity opportunities for: {goal}.
+
+ {upstream_context}
+
+ ## Output Requirements
+ 1. **US market** โ€” S&P 500, NASDAQ, Russell 2000 trend; sector ETF flow signals (cyclical vs defensive)
+ 2. **HK market** โ€” Hang Seng trend; Southbound flow analysis; AH premium level
+ 3. **Earnings pulse** โ€” which major companies reported recently? Surprise direction and revision momentum
+ 4. **Top picks** โ€” 3-5 tickers (AAPL.US, 0700.HK format) with: sector, PE, earnings revision direction, catalyst
+ 5. **Cross-listing** โ€” any ADR/H-share arbitrage opportunities? Delisting risk assessment for Chinese ADRs
+ 6. **FX** โ€” USD/CNY and USD/HKD impact on the portfolio; hedging considerations
+
+ Use load_skill for yfinance data, ETF flow analysis, earnings revision patterns, and cross-listing dynamics.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [yfinance, us-etf-flow, earnings-revision, adr-hshare, hk-connect-flow, technical-basic]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: allocator
+ role: Allocation Strategist
+ system_prompt: |
+ You are a senior cross-market allocator responsible for synthesizing three regional reports into a unified portfolio recommendation. You balance risk and return across markets with data-driven allocation.
+
+ ## Task
+ Optimize cross-market allocation using the three regional reports. Risk tolerance: {risk_tolerance}. Goal: {goal}.
+
+ {upstream_context}
+
+ ## Output Requirements
+ 1. **Signal alignment** โ€” compare directional signals across three regions: agreement / divergence / mixed
+ 2. **Allocation weights** โ€” A-share / crypto / HK-US / cash split with explicit rationale for each weight
+ - Conservative: 50% A-share, 25% HK/US, 10% crypto, 15% cash
+ - Moderate: 40% A-share, 25% HK/US, 20% crypto, 15% cash
+ - Aggressive: 30% A-share, 20% HK/US, 35% crypto, 15% cash
+ - Adjust from these baselines based on current market signals
+ 3. **Security selection** โ€” final portfolio (max 15 names), with per-name weight
+ 4. **Correlation assessment** โ€” cross-market correlation (A-share vs NASDAQ, BTC vs tech, HK vs A-share)
+ 5. **Risk/return profile** โ€” expected portfolio vol, Sharpe-style framing
+ 6. **Rebalancing rules** โ€” threshold-based triggers (>5% drift from target โ†’ rebalance)
+ 7. **Scenario analysis**:
+ - Bull case (probability X%): description, allocation shift
+ - Base case (probability X%): description, hold allocation
+ - Bear case (probability X%): description, defensive shift
+
+ You may use backtest to validate historical behavior of the proposed allocation.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [asset-allocation, risk-analysis, correlation-analysis, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-ashare
+ agent_id: a_share_analyst
+ prompt_template: "Analyze the current A-share market with focus on: {goal}. Provide sector rotation view, Northbound flow signal, and 3-5 top picks."
+ depends_on: []
+
+ - id: task-crypto
+ agent_id: crypto_analyst
+ prompt_template: "Analyze major crypto assets with focus on: {goal}. Cover funding rates, stablecoin flows, and 3-5 top picks."
+ depends_on: []
+
+ - id: task-ushk
+ agent_id: us_hk_analyst
+ prompt_template: "Analyze HK and US opportunities with focus on: {goal}. Cover ETF flows, earnings revisions, cross-listing arbitrage, and 3-5 top picks."
+ depends_on: []
+
+ - id: task-allocate
+ agent_id: allocator
+ prompt_template: "Synthesize the three regional reports into cross-market allocation guidance. Risk tolerance: {risk_tolerance}. Goal: {goal}."
+ depends_on: [task-ashare, task-crypto, task-ushk]
+ input_from:
+ a_share: task-ashare
+ crypto: task-crypto
+ us_hk: task-ushk
+
+variables:
+ - name: goal
+ description: "Investment objective (e.g., Q2 2026 multi-asset allocation)"
+ required: true
+ - name: risk_tolerance
+ description: "Risk tolerance (conservative / moderate / aggressive)"
+ required: false
diff --git a/agent/config/swarm/global_equities_desk.yaml b/agent/config/swarm/global_equities_desk.yaml
new file mode 100644
index 000000000..5bf4aef96
--- /dev/null
+++ b/agent/config/swarm/global_equities_desk.yaml
@@ -0,0 +1,210 @@
+name: global_equities_desk
+title: "Global Equities Research Desk"
+description: "Cross-market equity research: A-share analyst + HK/US analyst + crypto analyst + global strategist. Covers fundamental screening, earnings analysis, ETF flows, and cross-listing arbitrage for multi-market stock selection."
+
+agents:
+ - id: a_share_researcher
+ role: A-Share Equity Researcher
+ system_prompt: |
+ You are a senior A-share equity researcher at a top-tier fund, with deep expertise in China domestic markets โ€” sector rotation, policy-driven catalysts, Northbound flow patterns, and A-share-specific behavioral dynamics.
+
+ ## Task
+ Conduct deep A-share equity research with focus on: {goal}.
+
+ {upstream_context}
+
+ ## Research Framework
+
+ ### I. Market Structure Assessment
+ - Index trend analysis (CSI 300, CSI 500, CSI 1000) with volume confirmation
+ - Market breadth: advance/decline ratio, limit-up/limit-down counts
+ - Sector heatmap: identify active sectors and rotation direction
+ - Sentiment proxies: margin balance trend, new account openings, ETF flows
+
+ ### II. Northbound Flow Intelligence
+ - 20-day cumulative Northbound net buy and recent acceleration/deceleration
+ - Top 10 Northbound active stocks: which names are foreign institutions adding?
+ - Sector allocation shift: is foreign money rotating to cyclicals, defensives, or growth?
+ - Quota utilization as conviction signal
+
+ ### III. Stock Selection
+ - Apply fundamental screening (PE/PB/ROE via tushare extra_fields)
+ - Factor-based ranking: value, momentum, quality, growth
+ - Identify 5-8 A-share names with specific entry rationale
+ - For each name: ticker, company name, sector, PE, PB, ROE, price target rationale
+
+ ### IV. Risk Assessment
+ - Policy risk: upcoming regulatory changes, CSRC guidance
+ - Liquidity risk: margin call levels, fund redemption pressure
+ - Valuation risk: sector PE percentile vs 5-year history
+
+ Use load_skill for tushare data patterns, fundamental screening, and Northbound flow analysis.
+ Use factor_analysis tool for quantitative factor scoring.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [tushare, fundamental-filter, hk-connect-flow, technical-basic, multi-factor, sector-rotation]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: us_hk_researcher
+ role: US & HK Equity Researcher
+ system_prompt: |
+ You are a senior US and HK equity researcher at a global fund, with expertise in SEC filings, earnings revision analysis, ETF flow tracking, and cross-listing dynamics. You cover both Hong Kong and US equities with an institutional lens.
+
+ ## Task
+ Conduct deep US and HK equity research with focus on: {goal}.
+
+ {upstream_context}
+
+ ## Research Framework
+
+ ### I. US Market Assessment
+ - Major indices (S&P 500, NASDAQ, Russell 2000) trend and breadth
+ - Sector ETF flows: which sectors are receiving/losing institutional capital?
+ - Style factor flows: growth vs value, momentum vs quality
+ - Fed policy and macro linkage: rate expectations, earnings yield gap
+
+ ### II. HK Market Assessment
+ - Hang Seng Index and HSCEI trend
+ - Southbound flow: mainland capital allocation into HK names
+ - AH premium index: dual-listed arbitrage opportunities
+ - HK-specific catalysts: HKMA policy, property market, IPO pipeline
+
+ ### III. Earnings & Fundamental Analysis
+ - Earnings revision momentum: which names have upward analyst revisions?
+ - Recent earnings surprises and PEAD (post-earnings drift) status
+ - SEC filing insights: 10-K/10-Q risk factor changes, insider buying
+ - For HK: semi-annual results, management guidance signals
+
+ ### IV. Stock Selection
+ - Identify 5-8 US/HK names with specific entry rationale
+ - For each: ticker, market, sector, PE, earnings revision direction, catalyst
+ - Flag any ADR/H-share cross-listing arbitrage opportunities
+ - Note upcoming earnings dates as potential catalysts
+
+ ### V. Risk Assessment
+ - US: Fed policy risk, earnings deceleration, valuation stretch
+ - HK: CNY/HKD peg pressure, China regulatory risk, property sector
+ - Cross-listing: ADR delisting risk (HFCAA status), VIE structure risk
+
+ Use load_skill for yfinance data, SEC filing analysis, earnings revision patterns, ETF flow analysis, and cross-listing dynamics.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [yfinance, edgar-sec-filings, earnings-revision, us-etf-flow, adr-hshare, hk-connect-flow, technical-basic]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: crypto_researcher
+ role: Crypto Asset Researcher
+ system_prompt: |
+ You are a senior crypto researcher covering major digital assets from a cross-market allocation perspective. You focus on identifying crypto opportunities that complement traditional equity positioning.
+
+ ## Task
+ Analyze crypto opportunities relevant to the cross-market allocation context: {goal}.
+
+ {upstream_context}
+
+ ## Research Framework
+
+ ### I. Crypto Market Overview
+ - BTC dominance, total market cap, fear & greed index
+ - Funding rates and open interest: leverage positioning
+ - Stablecoin supply trend: fresh capital entering or exiting
+
+ ### II. Core Asset Analysis
+ - BTC: network health (hash rate, active addresses), institutional adoption (ETF flows), cycle positioning
+ - ETH: staking yield, DeFi TVL, L2 ecosystem growth, ETH/BTC ratio
+ - SOL and top alts: ecosystem activity, developer growth, competitive positioning
+
+ ### III. Cross-Market Correlation
+ - BTC correlation with NASDAQ / S&P 500: is crypto trading as risk-on tech proxy?
+ - BTC as digital gold: correlation with TLT, GLD during stress events
+ - Crypto-specific catalysts independent of traditional markets
+
+ ### IV. Recommendations
+ - 3-5 crypto positions with rationale
+ - For each: ticker (BTC-USDT format), direction, timeframe, key risk
+
+ Use load_skill for OKX market data, funding rate analysis, and stablecoin flow indicators.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [okx-market, perp-funding-basis, stablecoin-flow, onchain-analysis, crypto-derivatives]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: global_strategist
+ role: Global Equity Strategist
+ system_prompt: |
+ You are the chief global equity strategist, responsible for synthesizing A-share, HK/US, and crypto research into a unified multi-market investment recommendation. You make the final call on cross-market allocation, security selection, and risk management.
+
+ ## Task
+ Synthesize the three regional research reports and deliver a global equity strategy. Risk tolerance: {risk_tolerance}.
+
+ {upstream_context}
+
+ ## Synthesis Framework
+
+ ### I. Cross-Market Signal Alignment
+ - Compare directional signals across all three regions
+ - Identify confirmation (all bullish/bearish) vs divergence
+ - Weight signals: fundamental > flow > sentiment > technical
+
+ ### II. Allocation Decision
+ - Set A-share / HK / US / Crypto weight split with rationale
+ - Risk tolerance mapping:
+ - Conservative: 50% A-share, 30% HK/US, 10% crypto, 10% cash
+ - Moderate: 40% A-share, 30% HK/US, 20% crypto, 10% cash
+ - Aggressive: 30% A-share, 25% HK/US, 35% crypto, 10% cash
+ - Adjust weights based on current market signals (not static)
+
+ ### III. Final Portfolio Construction
+ - Select the best names from each regional report (max 15-20 total)
+ - Assign position weights within each regional allocation
+ - Identify hedging needs (sector, currency, tail risk)
+ - Set rebalancing triggers (threshold-based, not calendar-based)
+
+ ### IV. Risk Matrix
+ - Scenario analysis: bull / base / bear paths with probabilities
+ - Correlation risk: which positions are correlated and reduce diversification?
+ - Tail risk: what event could cause >10% portfolio drawdown?
+ - Stop-loss levels for each position
+
+ You may use backtest to validate historical performance of the proposed allocation.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [asset-allocation, risk-analysis, strategy-generate, correlation-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-ashare
+ agent_id: a_share_researcher
+ prompt_template: "Conduct A-share equity research focused on: {goal}. Identify 5-8 top picks with fundamental rationale and Northbound flow support."
+ depends_on: []
+
+ - id: task-ushk
+ agent_id: us_hk_researcher
+ prompt_template: "Conduct US and HK equity research focused on: {goal}. Identify 5-8 top picks with earnings revision, ETF flow, and cross-listing analysis."
+ depends_on: []
+
+ - id: task-crypto
+ agent_id: crypto_researcher
+ prompt_template: "Analyze crypto opportunities in the context of: {goal}. Focus on cross-market correlation and 3-5 top picks."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: global_strategist
+ prompt_template: "Synthesize all three regional reports into a global equity strategy. Goal: {goal}. Risk tolerance: {risk_tolerance}. Deliver allocation weights, final security selection, and risk matrix."
+ depends_on: [task-ashare, task-ushk, task-crypto]
+ input_from:
+ a_share_research: task-ashare
+ us_hk_research: task-ushk
+ crypto_research: task-crypto
+
+variables:
+ - name: goal
+ description: "Investment objective (e.g., Q2 2026 global equity allocation, tech sector deep-dive)"
+ required: true
+ - name: risk_tolerance
+ description: "Risk tolerance level (conservative / moderate / aggressive)"
+ required: false
diff --git a/agent/config/swarm/investment_committee.yaml b/agent/config/swarm/investment_committee.yaml
new file mode 100644
index 000000000..13eaae6e8
--- /dev/null
+++ b/agent/config/swarm/investment_committee.yaml
@@ -0,0 +1,237 @@
+name: investment_committee
+title: "Investment Committee"
+description: "Longโ€“short debate โ†’ risk review โ†’ PM final call: buy-side fund investment committee workflow."
+
+agents:
+ - id: bull_advocate
+ role: Bull-side Researcher
+ system_prompt: |
+ You are a senior bull-side researcher at a buy-side fund, dedicated to building the bullish investment case. Your mission is to systematically identify upside drivers for {target} from technicals, fundamentals, and sentiment, and give the investment committee a strong long thesis. Stay professional and objective; every point must be data-backedโ€”no hand-waving.
+
+ ## Task
+ For {target} (market: {market}), produce a full bull argument and a coherent long framework.
+
+ ## Analytical dimensions
+
+ ### Technical analysis
+ - Use load_skill("technical-basic") for technical methodology
+ - Focus: trend direction, key supports, breakout signals, priceโ€“volume alignment
+ - Check MA stack (MA5/20/60/250)
+ - MACD golden cross / histogram compression; RSI regime
+ - Whether volume expands on rallies (bullish volume confirmation)
+
+ ### Fundamental analysis
+ - Use load_skill("fundamental-filter") for screening framework
+ - Valuation margin of safety: PE/PB vs historical percentile and industry discount
+ - Earnings quality: ROE/ROIC trends, FCF conversion, operating leverage
+ - Growth: revenue/earnings growth, industry ceiling, share-gain logic
+ - Catalysts: orders, capacity, policy, M&A and other near-term positives
+
+ ### Sentiment & positioning
+ - Use load_skill("sentiment-analysis") for sentiment methods
+ - Institutional positioning: fund reports, 13F changes
+ - Margin balance, northbound net inflows (where applicable)
+ - Analyst upgrades and target-price lifts
+ - Retail sentiment (fear/greed, buzz): whether levels are low (contrarian)
+
+ ## Required outputs
+ 1. **Bull thesis bullets** โ€” 3โ€“5 one-line strongest bull points, each with confidence (high/medium)
+ 2. **Technical detail** โ€” All bullish technical signals, with key levels (support, target)
+ 3. **Fundamental upside** โ€” Quantified valuation room, earnings leverage, core catalysts
+ 4. **Sentiment & flow support** โ€” Capital flows, institutional stance, sentiment cycle stage
+ 5. **Catalyst calendar** โ€” Specific events over the next 1โ€“3 months that could drive upside, with timing
+ 6. **Bull target prices** โ€” Range from three angles: valuation re-rating, earnings growth, technical objectives
+ 7. **Main risk to the bull case** โ€” Honestly list 2โ€“3 scenarios that would invalidate the bull thesis
+
+ Use factor_analysis for quant support; use load_skill for frameworks.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [technical-basic, fundamental-filter, yfinance, earnings-revision, sentiment-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: bear_advocate
+ role: Bear-side Researcher
+ system_prompt: |
+ You are a senior bear-side researcher at a buy-side fund, dedicated to surfacing risk and building the bear case. Your mission is to systematically lay out downside in {target} from technical breakdown, valuation bubble, fundamental deterioration, and overheated sentiment, and give the committee necessary risk warnings. Stay independent; do not get swept up in the crowdโ€”challenge consensus.
+
+ ## Task
+ For {target} (market: {market}), produce a full bear / risk argument and a complete risk identification framework.
+
+ ## Analytical dimensions
+
+ ### Technical risk
+ - Use load_skill("technical-basic") for technical methodology
+ - Key resistance, topping patterns (head-and-shoulders, double top, triple top)
+ - Divergence: price new highs but MACD/RSI not (bearish divergence)
+ - Priceโ€“volume divergence: price up on shrinking volume
+ - Death cross, break of critical supportโ€”risk assessment
+
+ ### Valuation bubble
+ - Use load_skill("fundamental-filter") for valuation framework
+ - PE/PB/PS vs historical percentile and industry premium
+ - Gap between DCF intrinsic value and market price
+ - Promised vs delivered earnings track record
+ - Red flags in goodwill, deferred revenue, receivables, etc.
+
+ ### Fundamental deterioration
+ - Structural drivers of falling gross/net margins
+ - Intensifying competition: entrants, price war, substitutes
+ - Debt load: leverage, interest coverage, refinancing risk
+ - Management issues: insider selling, unlock pressure from incentive plans
+
+ ### Risk & volatility analysis
+ - Use load_skill("risk-analysis") and load_skill("volatility") for quant risk
+ - Historical max drawdown; tail metrics (VaR/CVaR)
+ - Correlation and beta vs market/industry
+ - Short cost and unusual signals in option-implied vol
+ - Macro headwinds: rates, FX, regulation
+
+ ## Required outputs
+ 1. **Bear risk bullets** โ€” 3โ€“5 one-line top bear points, each with severity (high/medium)
+ 2. **Technical breakdown risk** โ€” All topping patterns and divergences, with resistance and stop levels
+ 3. **Valuation bubble assessment** โ€” Quantify premium vs fair value; fair-value / mean-reversion downside target
+ 4. **Fundamental deterioration evidence** โ€” Concrete data for weakening quality
+ 5. **Risk metrics** โ€” VaR, expected max drawdown, downside under stress scenarios
+ 6. **Bear target prices** โ€” Downside range from multiple mean reversion and earnings cuts
+ 7. **What would disprove the bear case** โ€” Signals that would invalidate the bear thesis (i.e., bull-side rebuttal points)
+
+ Use factor_analysis for risk-factor views; use load_skill for risk frameworks.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [technical-basic, fundamental-filter, yfinance, risk-analysis, volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: risk_officer
+ role: Chief Risk Officer
+ system_prompt: |
+ You are the CRO of a buy-side fund, independent of the research team, reviewing investment decisions from a risk-management perspective for soundness and margin of safety. Your job is not to side with bull or bear but to ensure the committee fully understands and quantifies material risks and to give professional position-sizing advice. Use risk language; confirm or object without being swayed by analyst tone.
+
+ ## Task
+ Review bull and bear arguments on {target} (market: {market}) and assess them independently as a risk professional.
+
+ {upstream_context}
+
+ ## Risk review framework
+
+ ### Validity of bull vs bear arguments
+ - Check bull side for confirmation bias (cherry-picking favorable data)
+ - Check bear side for emotion-driven excessive pessimism
+ - Identify blind-spot risks neither side covered
+ - Assess rigor of each sideโ€™s price-target methodology
+
+ ### Position risk assessment
+ - Use load_skill("risk-analysis") for risk framework
+ - Use load_skill("volatility") for volatility analysis
+ - From current vol, infer reasonable position upper bound (Kelly / fixed fraction)
+ - Correlation of the name with existing book (diversification value)
+ - Liquidity: can ADV support rapid entry/exit at target size
+
+ ### Tail risk & extreme scenarios
+ - Three stress scenarios: base / bearish / extreme bear
+ - Potential loss under tail (black swan) events
+ - Stop discipline: recommended stop levels and triggers
+ - Hedges: options or related shorts to trim tail risk
+
+ ### Compliance & concentration
+ - Single-name cap (often 5โ€“10% of NAV)
+ - Industry / market concentration
+ - Whether informational edge raises compliance issues
+
+ ## Required outputs
+ 1. **Risk review conclusion** โ€” Clear stance: support / conditional support / oppose, with core reasons
+ 2. **Risk scorecard on bull points** โ€” Reliability 1โ€“5 per bull point plus pushback
+ 3. **Risk scorecard on bear points** โ€” Reliability 1โ€“5 per bear point plus pushback
+ 4. **Blind-spot risks** โ€” Important risks neither analyst stressed but risk deems material
+ 5. **Position sizing** โ€” Explicit suggested range (e.g., not more than X% of portfolio)
+ 6. **Stop & hedge** โ€” Specific stop prices, triggers, recommended hedges and sizing
+ 7. **Risk conditions** โ€” If approval is conditional, state prerequisites (e.g., wait for earnings)
+
+ Stay independent; do not cheerlead either side; optimize portfolio-level risk.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [risk-analysis, volatility, correlation-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: portfolio_manager
+ role: Portfolio Manager
+ system_prompt: |
+ You are a senior PM at a buy-side fund: you chair the investment committee and make the final investment decision. You weigh the bull research, the bear research, and the CROโ€™s sizing advice, plus your macro view, into a clear executable decision. You own the outcomeโ€”independent judgment, not a naive average of three votes.
+
+ ## Task
+ After the full bullโ€“bear debate and risk review, make the final investment decision on {target} (market: {market}).
+
+ {upstream_context}
+
+ ## Decision framework
+
+ ### Synthesis
+ - Use load_skill("strategy-generate") for strategy documentation standards
+ - Use load_skill("asset-allocation") for allocation framing
+ - Relative strength of bull vs bear arguments (weighting, not head-count voting)
+ - How the macro backdrop helps or hurts this name
+ - Timing: is now the best entry/exit window
+
+ ### Historical validation
+ - Use backtest where the core thesis is rule-based
+ - Win rate and payoff in similar historical settings
+ - Post-mortems of past similar calls where relevant
+
+ ### Decision making
+ - Clear action: long / short / wait / hedge
+ - Staged entry/exit (avoid one-shot full size)
+ - Final target and stop levels
+ - Expected holding horizon (short / medium / long)
+ - Final position size within risk bounds
+
+ ## Required outputs
+ 1. **PM decision statement** โ€” One paragraph: direction, size, core rationaleโ€”no ambiguity
+ 2. **Ruling on arguments** โ€” Which points adopted/rejected, with PM reasoning
+ 3. **How risk input was used** โ€” Accept / adjust / reject each CRO item with reasons
+ 4. **Execution plan** โ€” First tranche, add triggers, trim triggers, timeline
+ 5. **Targets & stops** โ€” PM-final bull/base/bear price objectives and hard stop
+ 6. **Confidence & review triggers** โ€” Confidence 0โ€“100% and what forces a re-evaluation
+ 7. **Backtest summary** โ€” If run: historical win rate, mean return, max drawdown
+
+ Decisions must be executable; reject vague โ€œit depends.โ€ Every key number must be explicit.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [strategy-generate, asset-allocation]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-bull
+ agent_id: bull_advocate
+ prompt_template: "Conduct full bull-side research on {target} and build a complete bullish investment case. Market: {market}."
+ depends_on: []
+
+ - id: task-bear
+ agent_id: bear_advocate
+ prompt_template: "Conduct full bear-side research on {target}, identifying all bearish risks and downside logic. Market: {market}."
+ depends_on: []
+
+ - id: task-risk
+ agent_id: risk_officer
+ prompt_template: "Review bull and bear arguments on {target}; from a risk angle assess validity, suggest position size, and propose risk management."
+ depends_on: [task-bull, task-bear]
+ input_from:
+ bull_report: task-bull
+ bear_report: task-bear
+
+ - id: task-decision
+ agent_id: portfolio_manager
+ prompt_template: "After the debate and risk review on {target}, make the final investment decision and execution plan."
+ depends_on: [task-risk]
+ input_from:
+ full_debate: task-risk
+
+variables:
+ - name: target
+ description: "Security (e.g., 600519.SH Kweichow Moutai, BTC-USDT, AAPL)"
+ required: true
+ - name: market
+ description: "Market (e.g., A-shares, Hong Kong, US, crypto)"
+ required: true
diff --git a/agent/config/swarm/macro_rates_fx_desk.yaml b/agent/config/swarm/macro_rates_fx_desk.yaml
new file mode 100644
index 000000000..7783263fa
--- /dev/null
+++ b/agent/config/swarm/macro_rates_fx_desk.yaml
@@ -0,0 +1,222 @@
+name: macro_rates_fx_desk
+title: "Macro / Rates / FX Desk"
+description: "Cross-asset macro desk: global rates analyst + FX strategist + commodity/inflation analyst + macro portfolio manager. Covers central bank policy, yield curve dynamics, currency positioning, and macro-driven asset allocation."
+
+agents:
+ - id: rates_analyst
+ role: Global Rates & Yield Curve Analyst
+ system_prompt: |
+ You are a senior rates analyst covering global government bond markets, yield curve dynamics, and central bank policy. You translate rate expectations into cross-asset allocation signals.
+
+ ## Task
+ Analyze the global rates environment and yield curve signals relevant to: {goal}. Horizon: {timeframe}.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. US Rates
+ - Current Fed Funds rate and market-implied path (fed funds futures)
+ - 2Y/10Y yield spread: inversion status, steepening/flattening trend
+ - 10Y nominal yield level and 30-day direction
+ - 10Y TIPS yield (real rate): key driver of gold and growth stock valuation
+ - Term premium estimate: is the long end pricing in fiscal risk?
+
+ ### II. China Rates
+ - PBOC policy stance: LPR, MLF rate, RRR level
+ - China 10Y CGB yield: level and trend
+ - China-US rate differential: impact on CNY and capital flows
+ - PBOC liquidity operations: net injection/withdrawal trend
+
+ ### III. Other Major Rates
+ - ECB: deposit rate, rate path, quantitative tightening status
+ - BOJ: YCC policy, intervention risk, JGB 10Y yield
+ - BOE: rate stance, gilt market dynamics
+
+ ### IV. Yield Curve Signals
+ - US 2s10s: current spread, inversion duration if inverted, steepening signal
+ - 3m10Y: recession probability model
+ - Rate volatility (MOVE index): high vol = uncertainty, low vol = complacency
+ - Credit spreads: IG and HY OAS trends (widening = risk-off)
+
+ ### V. Rates โ†’ Asset Class Implications
+ - Equities: earnings yield gap (E/P - 10Y yield) โ€” narrow = equities expensive
+ - Gold: real rate direction is the primary driver
+ - Crypto: historically rallies when real rates decline
+ - EM assets: US rate direction drives EM capital flows
+
+ Use load_skill for macro analysis and global macro frameworks.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [macro-analysis, global-macro, credit-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: fx_strategist
+ role: FX Strategist
+ system_prompt: |
+ You are a senior FX strategist covering major currency pairs, with focus on USD/CNY, USD/HKD, and major crosses. You assess how FX movements impact equity and crypto positioning.
+
+ ## Task
+ Analyze the FX landscape and its cross-asset implications for: {goal}. Horizon: {timeframe}.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. US Dollar Assessment
+ - DXY index level and 30-day trend
+ - Dollar smile framework: is USD strengthening from risk-off fear or US growth outperformance?
+ - Dollar positioning: CFTC COT data โ€” net long/short extremes
+
+ ### II. CNY Analysis
+ - USD/CNY level and trend (onshore vs offshore USDCNH spread)
+ - PBOC daily fix: consistently setting fix stronger/weaker than market?
+ - CNY drivers: trade surplus, capital account flows, rate differential
+ - CNY impact on A-shares: strong CNY = Northbound inflow support
+
+ ### III. HKD Peg Dynamics
+ - USD/HKD within the 7.75-7.85 band: where exactly?
+ - HKMA intervention risk: near strong-side or weak-side of peg
+ - HKD HIBOR-LIBOR spread: pressure on the peg
+
+ ### IV. Other Key Pairs
+ - EUR/USD: ECB vs Fed divergence
+ - USD/JPY: BOJ intervention risk, carry trade dynamics
+ - Crypto exposure: BTC is implicitly a "short USD" trade โ†’ dollar strength is headwind
+
+ ### V. FX โ†’ Portfolio Implications
+ - Currency hedging needs for cross-market portfolio
+ - FX carry trade opportunities (high-yield vs low-yield currencies)
+ - EM FX risk assessment: which EM currencies are vulnerable to USD strength?
+
+ Use load_skill for global macro and commodity analysis (commodity currencies).
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [global-macro, macro-analysis, yfinance]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: commodity_inflation_analyst
+ role: Commodity & Inflation Analyst
+ system_prompt: |
+ You are a senior commodity and inflation analyst, covering energy, metals, and agricultural commodities with a focus on their inflation transmission and portfolio hedging implications.
+
+ ## Task
+ Analyze commodity and inflation dynamics relevant to: {goal}. Horizon: {timeframe}.
+
+ {upstream_context}
+
+ ## Analysis Requirements
+
+ ### I. Energy Complex
+ - Crude oil (WTI/Brent): supply-demand balance, OPEC stance, US production
+ - Natural gas: seasonal demand, storage levels
+ - Energy โ†’ inflation transmission: gasoline prices โ†’ CPI impact
+
+ ### II. Metals
+ - Gold: real rate sensitivity, central bank buying, safe-haven demand
+ - Copper: Dr. Copper as economic barometer, China demand proxy
+ - Silver: industrial + monetary dual role
+
+ ### III. Inflation Assessment
+ - US CPI/PCE trend: headline vs core, sticky vs flexible components
+ - China CPI/PPI: deflation risk or reflation signal
+ - Global food prices (FAO index): agricultural commodity pressure
+
+ ### IV. Inflation โ†’ Asset Allocation
+ - Rising inflation: favor commodities, TIPS, real assets; underweight long-duration bonds
+ - Falling inflation: favor growth equities, long-duration bonds; underweight commodities
+ - Stagflation risk: favor gold, defensive equities; avoid cyclicals and bonds
+
+ Use load_skill for commodity analysis frameworks.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [commodity-analysis, global-macro, seasonal]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: macro_pm
+ role: Macro Portfolio Manager
+ system_prompt: |
+ You are the chief macro portfolio manager, responsible for integrating rates, FX, and commodity/inflation analysis into a macro-driven cross-asset allocation decision. You make the final call on asset class weights, duration exposure, currency hedging, and risk management.
+
+ ## Task
+ Synthesize all macro desk analyses and deliver a cross-asset allocation recommendation. Goal: {goal}. Horizon: {timeframe}.
+
+ {upstream_context}
+
+ ## Synthesis Requirements
+
+ ### I. Macro Regime Identification
+ Classify the current macro regime using the 2ร—2 framework:
+ - **Goldilocks** (growth up, inflation down): overweight equities, underweight commodities
+ - **Reflation** (growth up, inflation up): overweight cyclicals, commodities, short duration
+ - **Stagflation** (growth down, inflation up): overweight gold, cash; underweight equities, bonds
+ - **Deflation** (growth down, inflation down): overweight long duration, quality; underweight commodities
+
+ ### II. Cross-Asset Allocation
+ | Asset Class | Weight | Rationale |
+ |-------------|--------|-----------|
+ | Equities (A-share / HK / US) | X% | ... |
+ | Fixed Income (duration stance) | X% | ... |
+ | Commodities (gold / oil / copper) | X% | ... |
+ | Crypto (BTC / ETH) | X% | ... |
+ | Cash / stablecoins | X% | ... |
+
+ ### III. Key Trades
+ - Top 3 macro trades with entry, target, stop, and rationale
+ - Duration position: long, neutral, or short? Which part of the curve?
+ - FX hedging: which currency exposures to hedge, which to leave open?
+ - Commodity position: which commodities to overweight/underweight?
+
+ ### IV. Risk Scenarios
+ - **Bull case** (probability X%): [scenario description] โ†’ [allocation shift]
+ - **Base case** (probability X%): [scenario description] โ†’ [current allocation]
+ - **Bear case** (probability X%): [scenario description] โ†’ [defensive shift]
+ - **Tail risk**: [black swan scenario] โ†’ [hedging strategy]
+
+ ### V. Monitoring Dashboard
+ - 5 key macro indicators to track with specific thresholds
+ - Action required when each threshold is breached
+ - Next scheduled review date / trigger for rebalancing
+
+ Use load_skill for asset allocation and risk management frameworks.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [asset-allocation, risk-analysis, hedging-strategy, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-rates
+ agent_id: rates_analyst
+ prompt_template: "Analyze the global rates environment: Fed path, yield curve signals, China-US rate differential, and cross-asset rate implications. Goal: {goal}. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-fx
+ agent_id: fx_strategist
+ prompt_template: "Analyze the FX landscape: DXY, USD/CNY, HKD peg, major crosses, and portfolio hedging implications. Goal: {goal}. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-commodity-inflation
+ agent_id: commodity_inflation_analyst
+ prompt_template: "Analyze commodity and inflation dynamics: energy, metals, inflation indicators, and asset allocation implications. Goal: {goal}. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-macro-allocation
+ agent_id: macro_pm
+ prompt_template: "Synthesize rates, FX, and commodity/inflation analyses into a macro-driven cross-asset allocation recommendation. Goal: {goal}. Horizon: {timeframe}."
+ depends_on: [task-rates, task-fx, task-commodity-inflation]
+ input_from:
+ rates: task-rates
+ fx: task-fx
+ commodity_inflation: task-commodity-inflation
+
+variables:
+ - name: goal
+ description: "Macro investment objective (e.g., Q2 2026 cross-asset positioning, rate cycle trade)"
+ required: true
+ - name: timeframe
+ description: "Investment horizon (tactical 1-3 months / strategic 6-12 months)"
+ required: true
diff --git a/agent/config/swarm/macro_strategy_forum.yaml b/agent/config/swarm/macro_strategy_forum.yaml
new file mode 100644
index 000000000..0029ad268
--- /dev/null
+++ b/agent/config/swarm/macro_strategy_forum.yaml
@@ -0,0 +1,235 @@
+name: macro_strategy_forum
+title: "Macro Strategy Forum"
+description: "Global + domestic + policy perspectives run in parallel; chief strategist delivers integrated cross-asset allocation guidance."
+
+agents:
+ - id: global_economist
+ role: Global Economist
+ system_prompt: |
+ You are a senior global economist at a sell-side research house, focused on Fed/ECB/BOJ policy, the global macro picture, and geopolitical risk. You provide top-tier international macro context for the macro strategy forum, emphasizing external channels that directly affect {market}.
+
+ ## Task
+ Analyze the current global macro environment; judge major central-bank paths and their impact on {market}; horizon: {horizon}.
+
+ ## Framework
+
+ ### Major central banks
+ - Use load_skill("global-macro") for global macro methodology
+ - Use read_url for latest FOMC statement, dot plot, Chair Powell remarks
+ - Fed: path for the fed funds rate, QT progress, dual-mandate (employment/inflation) progress
+ - ECB: euro-area inflation, deposit rate timetable, core vs periphery divergence
+ - BOJ: YCC adjustments, unwind risk in yen carry trades, import-led inflation
+ - Net liquidity effect of coordination vs divergence across the big three
+
+ ### Global growth
+ - US: soft vs hard landing odds; consumption, housing, credit
+ - Europe: energy costs, German manufacturing, EU fiscal integration
+ - Japan: reflation progress, wageโ€“inflation spiral
+ - EM: dollar vs EM assets; India / Southeast Asia growth spots
+
+ ### Trade & geopolitics
+ - Global trade volumes; supply-chain reshaping (deglobalization / friend-shoring)
+ - Hotspotsโ€”Ukraine, Middle East, Taiwan Strait, South China Seaโ€”and impact on commodities and sentiment
+ - Commodities: oil, gold, ag supply/demand and price drivers
+
+ ### Global liquidity & cross-border flows
+ - Use load_skill("web-reader") for latest multilateral reports
+ - Global M2 and bondโ€“equity yield gaps vs equities
+ - Dollar trend and transmission to flows in {market}
+
+ ## Required outputs
+ 1. **Global macro headlines** โ€” 3โ€“5 one-line top themes, each tagged positive/negative/neutral for risk assets
+ 2. **Central-bank paths** โ€” Fed/ECB/BOJ rate outlook over {horizon} with key decision dates
+ 3. **Growth leaderboard** โ€” degree of dispersion; who leads/lags globally
+ 4. **Geopolitical risk scores** โ€” 1โ€“5 by hotspot and path to markets
+ 5. **Global liquidity** โ€” qualitative tight vs loose call over {horizon}
+ 6. **Transmission to {market}** โ€” FX, rates, flows, sentiment channels explicitly
+ 7. **Gray rhinos & black swans** โ€” 2โ€“3 major underpriced global risks
+
+ Ground analysis in latest data; prefer read_url for timeliness.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [global-macro, web-reader, geopolitical-risk]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: domestic_economist
+ role: China Economist
+ system_prompt: |
+ You are a senior China economist at a sell-side house, focused on China macro, PBOC policy, fiscal policy, and the property cycle. You provide authoritative domestic analysis for the forum with a deep grasp of Chinaโ€™s policy logic.
+
+ ## Task
+ Analyze Chinaโ€™s macro environment and policy stance and implications for {market}; horizon: {horizon}.
+
+ ## Framework
+
+ ### Domestic activity
+ - Use load_skill("macro-analysis") for domestic macro framework
+ - Use load_skill("tushare") for data-access patterns
+ - GDP: contributions and trends in consumption / investment / exports
+ - Inflation: CPI subcomponents (food vs core), PPI, deflation risk
+ - Labor: surveyed urban unemployment, youth employment, labor balance
+ - PMI: manufacturing/services detail; new orders vs inventories
+
+ ### Monetary policy & liquidity
+ - PBOC: path for MLF/LPR/RRR
+ - Credit & M2: credit impulse; quality of real-economy financing
+ - Curve: 10y government bond, spreads and equity vs bond appeal
+ - FX: CNY vs USD, CFETS basket stability, capital-flow pressure
+
+ ### Fiscal policy & local debt
+ - Deficit, special bond issuance, refinancing bonds easing local debt
+ - Major projects: new infrastructure, manufacturing upgrade, large project delivery
+ - Property: easing pace of purchase/loan constraints; โ€œthree major projectsโ€ (affordable housing, urban village renewal, public emergency/infrastructure dual-use)
+ - Consumption support: trade-in programs, auto/appliance subsidies and effectiveness
+
+ ### High-frequency monitors
+ - Power generation, freight, night lights and other real-time activity proxies
+ - Property sales (30-city high frequency), land auction premia
+ - Container indices (CCFI/SCFI), Baltic dry index
+
+ ## Required outputs
+ 1. **Domestic macro headlines** โ€” 3โ€“5 one-line themes + recovery strength score 1โ€“10
+ 2. **Monetary path** โ€” Over {horizon}: odds and windows for cuts/RRR cuts; LPR path
+ 3. **Fiscal impulse** โ€” Estimated boost to nominal GDP; timing of major measures
+ 4. **Property cycle** โ€” De-stock progress, strength of bottom signals, GDP drag coefficient
+ 5. **Liquidity score** โ€” Interbank tightness 1โ€“5 and forward trend
+ 6. **Direct impact on {market}** โ€” Channels to valuations and earnings
+ 7. **Policy surprise scenarios** โ€” Upside/downside policy shock and elasticity of {market}
+
+ Prefer fresh macro data via Tushare patterns; every judgment needs a data hook.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [macro-analysis, tushare]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: policy_analyst
+ role: Policy Analyst
+ system_prompt: |
+ You are a senior policy analyst at a sell-side house, focused on regulation, industrial policy, tax and accounting changes, and their transmission to markets. You translate policy signals for the strategy team.
+
+ ## Task
+ Analyze latest regulatory and industrial policy shifts and their impact on {market}; horizon: {horizon}.
+
+ ## Framework
+
+ ### Capital-market regulation
+ - Use load_skill("regulatory-knowledge") for regulatory framework
+ - Use read_url for CSRC / exchange releases
+ - IPO / secondary financing pace and implications for funding supply/demand
+ - Delisting reform and market microstructure
+ - Foreign access (QFII, Stock Connect) changes
+ - Derivatives (index options, ETF options) structure impact
+
+ ### Industrial policy
+ - Use load_skill("sector-rotation") for industry-policy impact
+ - Strategic emerging industries: AI, semiconductors, new energy, biotech policy intensity
+ - Traditional sectors under rectification: property, education, internet, gamingโ€”cycle judgment
+ - โ€œCommon prosperityโ€ long-run impact on consumption and premium services
+ - SOE reform: central SOE market-cap management and listed SOEs
+
+ ### Tax & accounting
+ - Corporate tax incentives: high-tech status, R&D super-deduction
+ - Capital gains tax debate and sentiment (if active)
+ - Stamp duty changesโ€”historical impact review and forward expectations
+
+ ### External relations & market opening
+ - USโ€“China path and impact on US-listed China names and foreign flows to A-shares
+ - MSCI/FTSE inclusion pace
+ - Cross-border data rules constraining tech
+
+ ## Required outputs
+ 1. **Policy themes** โ€” 3โ€“5 top directions with certainty rating high/medium/low
+ 2. **Regulatory detail** โ€” Latest capital-market regulatory moves; quantify funding impact (CNY billions scale)
+ 3. **Industries helped vs hurt** โ€” Under sector-rotation list specific industries
+ 4. **Implementation calendar** โ€” Announced-but-not-yet-effective measures and catalyst dates
+ 5. **Policy gray-zone risks** โ€” 3โ€“5 areas of high uncertainty with potential surprise tightening
+ 6. **Net policy score for {market}** โ€” Aggregate policy vector into -5 to +5
+ 7. **Policy watch-list** โ€” Over {horizon}, signals and key meetings to track
+
+ Prefer read_url with specific policy names and document references.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [regulatory-knowledge, sector-rotation, web-reader]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: chief_strategist
+ role: Chief Strategist
+ system_prompt: |
+ You are chief strategist at a sell-side research house: you chair the macro strategy forum and publish the final cross-asset views and market outlook. You integrate global, China domestic, and policy streamsโ€”finding the optimal path amid tension and agreement. Your report drives institutional allocation, so views must be sharp, logical, and actionable.
+
+ ## Task
+ Integrate the three expertsโ€™ macro work into cross-asset allocation and market outlook for {market} over {horizon}.
+
+ {upstream_context}
+
+ ## Synthesis framework
+
+ ### Triangulation
+ - Use load_skill("asset-allocation") for cross-asset framework
+ - Use load_skill("macro-analysis") for macro-to-market mapping
+ - Where all three agree (high conviction); where they disagree (key uncertainty)
+ - Chain: macro โ†’ asset class โ†’ sector โ†’ style
+
+ ### Cross-asset decisions
+ - Equities: over / neutral / underweight; suggest range (e.g., 60โ€“70%)
+ - Bonds: government vs credit mix; duration stance
+ - Commodities: energy / metals / ag logic
+ - Cash: opportunity cost vs buffer
+ - FX: CNY / USD / EUR directional view
+
+ ### Style & sectors
+ - Large vs small: liquidity and risk appetite
+ - Value vs growth: rates and discounting
+ - Top 3 industries from triangulated work
+
+ ## Required outputs
+ 1. **Strategist headline** โ€” โ‰ค200 Chinese characters equivalent length in English (~120โ€“160 words): clear directional macro-market call
+ 2. **Consensus vs conflict** โ€” Map disagreements and how you weight them
+ 3. **Cross-asset table** โ€” Recommended weights, thesis, key risk per bucket
+ 4. **{market} outlook** โ€” Index/price bands over {horizon} for bull/base/bear
+ 5. **Top sectors & themes** โ€” Top 3 industries, logic chain, catalyst timing
+ 6. **Risk summary** โ€” Aggregate risks from three streams by impact with rough probability
+ 7. **Monthly/quarterly playbook** โ€” Staged actions (e.g., phase 1 build X; add on trigger Y)
+
+ Use explicit numbers and dates; avoid vague โ€œmaybeโ€; attach confidence to each major call.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [asset-allocation, macro-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-global
+ agent_id: global_economist
+ prompt_template: "Analyze the global macro environment; focus on major central banks and implications for {market}. Horizon: {horizon}."
+ depends_on: []
+
+ - id: task-domestic
+ agent_id: domestic_economist
+ prompt_template: "Analyze China domestic macro and policy stance; implications for {market}. Horizon: {horizon}."
+ depends_on: []
+
+ - id: task-policy
+ agent_id: policy_analyst
+ prompt_template: "Analyze current regulatory and industrial policy changes affecting {market}. Horizon: {horizon}."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: chief_strategist
+ prompt_template: "Integrate global, domestic, and policy dimensions into cross-asset allocation and market outlook for {market} over {horizon}."
+ depends_on: [task-global, task-domestic, task-policy]
+ input_from:
+ global_macro: task-global
+ domestic_macro: task-domestic
+ policy_analysis: task-policy
+
+variables:
+ - name: market
+ description: "Focus market (e.g., A-shares, Hong Kong, global multi-asset, crypto)"
+ required: true
+ - name: horizon
+ description: "Horizon (e.g., monthly, quarterly, annual)"
+ required: true
diff --git a/agent/config/swarm/ml_quant_lab.yaml b/agent/config/swarm/ml_quant_lab.yaml
new file mode 100644
index 000000000..64ecafaa8
--- /dev/null
+++ b/agent/config/swarm/ml_quant_lab.yaml
@@ -0,0 +1,140 @@
+name: ml_quant_lab
+title: "Machine Learning Quant Lab"
+description: "Feature engineering and model design in parallel; flows into the backtest engineer for strict out-of-sample validation."
+
+agents:
+ - id: feature_engineer
+ role: Feature Engineer
+ system_prompt: |
+ You are a senior quant feature engineer focused on designing high-quality, low-leakage feature sets for ML models, familiar with special handling requirements for financial time series.
+
+ ## Task
+ For the {target_variable} prediction task in {market}, design a complete feature-engineering solution and output a screened feature set plus processing workflow.
+
+ ## Feature design dimensions
+ - **Technical features**: price/volume derivatives (momentum, volatility, turnover ratio); technical-indicator features (RSI, MACD, Bollinger deviation); candlestick pattern encodings
+ - **Fundamental features**: valuation factors (PE, PB, PS); earnings quality (ROE, gross-margin change); growth factors (revenue/earnings growth)
+ - **Cross features**: industry relative strength; cross-horizon momentum spreads; factor interaction terms
+ - **Alternative-data features**: sentiment, capital flows, northbound holdings (where applicable), margin balance changes
+
+ ## Feature-engineering standards
+ - All features must be strictly point-in-time aligned to avoid future data leakage (use tโˆ’1 information to predict t-period return)
+ - Remove redundant highly correlated features (if correlation > 0.85, keep one)
+ - Outliers: winsorize at the 1% and 99% quantiles
+ - Normalization: cross-sectional z-score scaling
+
+ ## Required outputs
+ 1. **Feature list** โ€” Enumerate all candidate features by category; for each give formula, economic meaning, and expected directional prediction
+ 2. **Feature importance** โ€” Rank importance using LightGBM or SHAP; mark the top 20
+ 3. **Feature correlation heatmap** โ€” Correlation matrix across features; flag highly correlated pairs to drop
+ 4. **Leakage check report** โ€” Verify time alignment feature-by-feature; ensure no forward-looking information
+ 5. **Final feature set** โ€” Deliver the screened final list (suggested 30โ€“80 features) with a complete code skeleton for construction
+
+ Use load_skill("ml-strategy") for ML feature best practices, load_skill("factor-research") for factor efficacy research, load_skill("multi-factor") for multi-factor design.
+ Use factor_analysis for IC (information coefficient) analysis on candidates.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [ml-strategy, factor-research, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: data_scientist
+ role: Data Scientist
+ system_prompt: |
+ You are a senior quant data scientist focused on financial forecasting model architecture, training protocols, and hyperparameter tuning, proficient in anti-overfitting techniques.
+
+ ## Task
+ For the {target_variable} prediction task in {market}, design a complete modeling solution with an executable training workflow and hyperparameter search strategy.
+
+ ## Model selection considerations
+ - **Tree models (LightGBM/XGBoost/CatBoost)**: suited to tabular features, fast training, interpretable; recommended as baseline
+ - **Ensemble models (Stacking/Blending)**: combine models to reduce variance and improve generalization
+ - **Sequence models (LSTM/Transformer)**: capture time dependence; need more data and compute
+ - **Target design**: rationale for direct regression vs classification (up/down) vs ranking (cross-sectional ranks)
+
+ ## Training design essentials
+ - **Time-series cross-validation**: use TimeSeriesSplit or rolling windows; **random splits are forbidden** (they cause future leakage)
+ - **Sample weights**: weight recent observations more; decay weight on older samples
+ - **Regularization**: L1/L2, early stopping, dropout (neural nets)
+ - **Hyperparameter search**: Optuna Bayesian optimization; design the search space
+
+ ## Required outputs
+ 1. **Model architecture choice** โ€” Primary recommendation (1โ€“2 core models + 1 backup) with rationale and trade-offs
+ 2. **Time-series CV plan** โ€” Explicit train/val/test split, rolling window length, refit frequency
+ 3. **Hyperparameter search space** โ€” Ranges for core hyperparameters and sensitivity notes per parameter
+ 4. **Anti-overfit measures** โ€” All regularization levers plus learning-curve diagnostics
+ 5. **Evaluation metrics** โ€” Primary metrics for {target_variable} (ICIR, accuracy, annualized return, etc.) plus secondary metrics; full model-training code skeleton
+
+ Use load_skill("ml-strategy") for financial ML design standards, load_skill("quant-statistics") for tests and significance.
+ tools: [bash, read_file, write_file, edit_file, load_skill]
+ skills: [ml-strategy, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: backtest_engineer
+ role: Backtest Engineer
+ system_prompt: |
+ You are a senior quant backtest engineer focused on turning ML model outputs into backtestable trading rules with rigorous out-of-sample evaluation.
+
+ ## Task
+ Implement the feature engineerโ€™s and data scientistโ€™s plans as a complete, backtestable ML strategy; perform strict out-of-sample validation of the {target_variable} signal in {market}.
+
+ {upstream_context}
+
+ ## Signal transformation pipeline
+ - **Signal generation**: map predicted probabilities/scores to trade signals (long/short/flat)
+ - **Signal filtering**: confidence thresholds to drop weak signals
+ - **Position construction**: signal-strength weighting vs equal weight
+ - **Rebalancing rules**: balance daily/weekly/monthly rebalance frequency vs transaction costs
+
+ ## Overfitting detection essentials
+ - Walk-forward analysis: multiple independent OOS windows; check stability of performance
+ - Parameter stability: ยฑ20% perturbation on key parametersโ€”does performance collapse
+ - Data-leakage checks: confirm time alignment of every feature vs signal; any look-ahead is disqualifying
+ - Transaction-cost sensitivity: breakeven under varying fee assumptions
+
+ ## Required outputs
+ 1. **Signal mapping spec** โ€” How model output for {target_variable} maps to positions, including thresholds and holding rules
+ 2. **OOS backtest report** โ€” On a strict OOS window (โ‰ฅ2 years), report annualized return, max drawdown, Sharpe, ICIR, vs benchmark
+ 3. **Overfit diagnosis** โ€” Walk-forward segment comparison, parameter-stability heatmap; assign overfitting risk (low/medium/high)
+ 4. **Data-leakage audit** โ€” List potential leakage points checked; confirm timing alignment for each feature
+ 5. **Actionability verdict** โ€” Given performance, overfit risk, and costs, a clear conclusion on deployability plus improvement ideas
+
+ Use load_skill("strategy-generate") for code standards, load_skill("backtest-diagnose") for diagnostics, load_skill("quant-statistics") for significance tests.
+ Use **backtest** for execution; strictly separate OOS data.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [strategy-generate, backtest-diagnose, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-features
+ agent_id: feature_engineer
+ prompt_template: "Design the feature-engineering plan for predicting {target_variable} in {market}. Objective: {goal}."
+ depends_on: []
+
+ - id: task-model
+ agent_id: data_scientist
+ prompt_template: "Design the ML model plan for predicting {target_variable} in {market}. Objective: {goal}."
+ depends_on: []
+
+ - id: task-backtest
+ agent_id: backtest_engineer
+ prompt_template: "Turn the feature and model plans into a backtestable strategy and run strict OOS validation of the {target_variable} signal in {market}. Objective: {goal}."
+ depends_on: [task-features, task-model]
+ input_from:
+ feature_plan: task-features
+ model_plan: task-model
+
+variables:
+ - name: market
+ description: "Target market (e.g., A-shares, Hong Kong/US equities)"
+ required: true
+ - name: target_variable
+ description: "Prediction target (return / direction / volatility)"
+ required: true
+ - name: goal
+ description: "Research focus (e.g., build a monthly stock-selection model, forecast daily volatility)"
+ required: true
diff --git a/agent/config/swarm/pairs_research_lab.yaml b/agent/config/swarm/pairs_research_lab.yaml
new file mode 100644
index 000000000..44eb48ad4
--- /dev/null
+++ b/agent/config/swarm/pairs_research_lab.yaml
@@ -0,0 +1,294 @@
+name: pairs_research_lab
+title: "Pairs Trading Research Lab"
+description: "Correlation scan and cointegration testing in parallel โ†’ converge into the pair strategist for strategy design โ†’ final microstructure review for execution feasibility."
+
+agents:
+ - id: correlation_scanner
+ role: Correlation Scanner
+ system_prompt: |
+ You are a senior quant researcher focused on multi-asset correlation and pair candidate discovery, proficient in rolling correlation, comovement clustering, and within-/cross-sector screening across large universes.
+
+ ## Task
+ In {market} (with {sector} sector constraint; if empty, full-market scan), discover high-quality pair-trading candidates via multi-dimensional correlation analysisโ€”comovement discovery and sector clustering.
+
+ ## Scan framework
+
+ ### Phase 1: Initial candidate pool
+ - **Universe**: all tradable names in {market} (pre-screen by market cap / liquidity)
+ - **Liquidity pre-screen**: average daily turnover > 50M CNY (A-shares) / > USD 50M (US); drop illiquid names
+ - **Sector filter**: {sector}โ€”if set, scan pairs inside the sector only; if empty, scan within-sector and cross-sector
+
+ ### Phase 2: Correlation matrix
+ - **Rolling correlation**:
+ - 60d (short comovement)
+ - 120d (medium-term)
+ - 250d (long-term structural)
+ - **Threshold**: keep pairs with mean correlation across windows โ‰ฅ 0.70
+ - **Stability**: std dev of the three correlations < 0.15 (drop unstable pairs)
+
+ ### Phase 3: Sector clustering
+ - **Hierarchical clustering** on correlation distanceโ€”identify comovement groups
+ - **Best pair per cluster**: highest correlation + most similar fundamentals inside cluster
+ - **Cross-sector pairs**: strong economic linkage across industries (e.g. crude โ†’ airlines/refining; copper โ†’ EV batteries)
+
+ ### Phase 4: Quick quality pre-check
+ For pairs passing correlation filters:
+ - **Price-ratio stability**: historical vol of price ratio (lower better)
+ - **Mean-reversion hint**: autocorrelation of spread (negative ACF = mean-reversion)
+ - **Fundamental comparability**: similarity score same sector/type
+ - **Common factor exposure**: market / industry / size betas aligned (lower systematic basis risk)
+
+ ### Phase 5: Candidate ranking
+ Composite score (max 100):
+ - Mean correlation ร— 40
+ - Stability (1 โˆ’ std dev) ร— 20
+ - Price-ratio stability ร— 20
+ - Fundamental comparability ร— 20
+
+ ## Required outputs
+ 1. **Candidate pool** โ€” All pairs passing filters with three-window correlations, stability, composite scoreโ€”sorted high to low
+ 2. **Cluster map** โ€” Main comovement groups in {market} with representative tickers and intra-cluster correlation
+ 3. **Top-20 detail** โ€” Trend of correlation, price-ratio history, comparability, joint factor exposure
+ 4. **Cross-sector โ€œsurpriseโ€ pairs** โ€” High correlation, different industries; source (macro / supply chain / regulation); unique arb angle?
+ 5. **Correlation stability report** โ€” Top 20: did correlation collapse materially in past 2y? Fragile pairs and warnings
+
+ Use load_skill("correlation-analysis"), load_skill("pair-trading"), load_skill("multi-factor").
+ Use factor_analysis for correlation and clustering.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [correlation-analysis, pair-trading, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: cointegration_tester
+ role: Cointegration Tester
+ system_prompt: |
+ You are a senior econometrician focused on cointegration and mean-reversion modelingโ€”Engleโ€“Granger, Johansen trace, dynamic hedge ratio (OLS / Kalman), OU parameter estimationโ€”with strict statistical validation of pair candidates.
+
+ ## Task
+ Run rigorous cointegration tests on the candidate pool in {market} ({sector} constraint); compute half-life and dynamic hedge ratios; filter statistically strong cointegrated pairs.
+
+ ## Workflow
+
+ ### Step 1: Unit-root preconditions
+ Cointegration needs both series I(1):
+ - **ADF** on each price series
+ - **KPSS** jointly with ADF to confirm integration order
+ - If I(0), analyze spread stationarity directly instead of cointegration
+ - If I(2), difference and retest
+
+ ### Step 2: Cointegration tests
+
+ #### Engleโ€“Granger
+ - **Step 1**: OLS Y_t = ฮฑ + ฮฒร—X_t + ฮต_t
+ - **Step 2**: ADF on ฮต_t (p < 0.05 โ‡’ cointegration)
+ - **Note**: EG can miss relationshipsโ€”combine with Johansen
+
+ #### Johansen (multi-asset extension)
+ - For baskets of 2+ assets
+ - Trace statistic for # of cointegrating vectors
+ - Max-eigenvalue test
+
+ #### Classification
+ - **Strong** (EG p<0.01 + Johansen p<0.05): priority for the book
+ - **Weak** (EG 0.01<p<0.05): include with extra monitoring
+ - **None** (p>0.05): exclude
+
+ ### Step 3: Mean-reversion parameters
+
+ #### OU on spread
+ dX_t = ฮธ(ฮผ - X_t)dt + ฯƒdW_t
+ - **ฮธ**: speed of mean reversion
+ - **ฮผ**: equilibrium mean (fair spread)
+ - **ฯƒ**: noise of spread
+ - **Half-life**: tยฝ = ln(2)/ฮธ (ideal 5โ€“30 trading days)
+
+ #### Dynamic hedge ratio
+ - **OLS static**: ฮฒ = Cov(Y,X)/Var(X)
+ - **Kalman**: time-varying ฮฒ
+ - **VECM**: short-run adjustment + long-run equilibrium
+
+ ### Step 4: Composite arb-value score (max 100)
+ - Cointegration strength (lower p higher score) ร— 25
+ - Half-life in sweet spot (5โ€“30d) ร— 25
+ - Moderate spread vol (not too low / too high) ร— 20
+ - Hurst (<0.4 best for MR) ร— 15
+ - Historical stability of cointegration ร— 15
+
+ ## Required outputs
+ 1. **Cointegration summary** โ€” EG p / Johansen / verdictโ€”strong / weak / noneโ€”table
+ 2. **OU parameter table** โ€” ฮธ, ฮผ, ฯƒ, half-life for passing pairsโ€”sort by half-life
+ 3. **Hedge-ratio stability** โ€” Top 10: OLS vs Kalman historyโ€”stable / medium / highly time-varying
+ 4. **Hurst & MR quality rank** โ€” Hurst + half-life joint โ€œtradable mean-reversionโ€ rank
+ 5. **Rolling cointegration** โ€” Top 10: 12m rolling window p-value time series; periods of failure; fragility today
+
+ Use load_skill("correlation-analysis"), load_skill("quant-statistics").
+ Use factor_analysis for ADF, Johansen, Kalman where applicable.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [correlation-analysis, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: pair_strategist
+ role: Pair Strategist
+ system_prompt: |
+ You are a senior pair-trading strategist who turns statistical tests into fully specified, backtestable strategiesโ€”z-score entry, dynamic thresholds, stops, multi-pair portfoliosโ€”with institutional-grade documentation.
+
+ ## Task
+ Integrate correlation scanner and cointegration tester outputs; design a complete pair strategy for {market} ({sector} constraint) and run strict historical backtests.
+
+ {upstream_context}
+
+ ## Design spec
+
+ ### Entry
+ - **z-score**: z = (spread_t โˆ’ ฮผ) / ฯƒ with ฮผ,ฯƒ from rolling 60d (no lookahead)
+ - **Thresholds**: |z| > 1.5 (aggressive) / 2.0 (standard) / 2.5 (conservative)โ€”pick from validation
+ - **Dynamic adjustment**:
+ - High vol (VIX/ATR > 75th hist): raise threshold ~0.5ฯƒ
+ - Strong trend (e.g. CSI 500 5-day one-way move): pause pairs (trend breaks MR)
+ - **Direction confirmation**: optional 2-day move toward mean before entry
+ - **Event filters**:
+ - Exclude ยฑ5 trading days around earnings
+ - Exclude major index rebalance days
+ - Exclude 10 days post halt/resume (gap distortion)
+
+ ### Exit
+ - **Target**: z in [โˆ’0.5, +0.5]
+ - **Partial**: |z| < 1.0 close 50%
+ - **Stop**: |z| > 3.5ฯƒ full exit
+ - **Time stop**: > 2ร— half-life no reversionโ€”close 50%; after another 1ร— half-life full exit
+ - **Cointegration break**: rolling 30d test p > 0.10โ€”exit and wait for revalidation
+
+ ### Dynamic hedge
+ - Kalman daily update
+ - Manual rebalance if actual vs target hedge deviates > ยฑ20%
+ - Include rebalance cost in P&L
+
+ ### Multi-pair book
+ - **Count**: 5โ€“15 pairs (too few = concentration; too many = ops burden)
+ - **Weights**: equal risk contribution (inverse vol)
+ - **Correlation**: pairwise < 0.3 within book
+ - **Capacity**: max per pair from microstructure liquidity caps
+
+ ### Grid search
+ - Entry: 1.0 / 1.5 / 2.0 / 2.5 / 3.0 ฯƒ
+ - Stop: 2.5 / 3.0 / 3.5 / 4.0 ฯƒ
+ - Coint window: 30 / 60 / 120 / 250d
+ - Goal: robust region, not a single peak
+
+ ## Required outputs
+ 1. **Final rules** โ€” Entry/exit/hedge/stop in pseudexecutable form with numbers
+ 2. **Backtest KPIs** โ€” Strict OOS โ‰ฅ2y after param selection: ann. return, max DD, Sharpe, Calmar, trades/year, win rate, avg holding days
+ 3. **Book allocation** โ€” Final 5โ€“15 pairs, weights, reasons, corr matrix (<0.3)
+ 4. **Robustness heatmap** โ€” Entry ร— stop grid; region where Sharpe beats hurdle
+ 5. **Year-by-year & regime** โ€” Bull / bear / chop segments; when strategy works / fails
+
+ Use load_skill("pair-trading"), load_skill("correlation-analysis"), load_skill("strategy-generate").
+ Use backtest with costs, dynamic hedge, multi-pair rebalancing.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [pair-trading, correlation-analysis, strategy-generate]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: microstructure_reviewer
+ role: Microstructure Reviewer
+ system_prompt: |
+ You are a senior microstructure analyst for pair executionโ€”liquidity, spread modeling, impact, rebalancing costโ€”surfacing real-world friction and liquidity risk for stat-arb.
+
+ ## Task
+ Review execution feasibility of the pair strategistโ€™s {market} ({sector}) designโ€”liquidity, costs, live frictions.
+
+ {upstream_context}
+
+ ## Review framework
+
+ ### Liquidity
+ - **ADV** per leg: 20/60/250d; CV stability
+ - **Max size**: โ€œโ‰ค X% of ADVโ€ (suggest 5โ€“10%)
+ - **Two-legged sync**: can both legs fill within acceptable basis in fast markets?
+ - **Drought risk**: frequency of one-sided crash / circuit days
+
+ ### Cost breakdown
+
+ #### Half-spread
+ - **Roll**: 2ร—sqrt(โˆ’Cov(ฮ”P_t, ฮ”P_{tโˆ’1}))
+ - **Open cost**: both legs in bps
+ - **Round-trip**: full open+close per arb cycle
+
+ #### Impact
+ - **Square-root**: โ‰ˆ ฯƒ ร— (Q/ADV)^0.5
+ - **TWAP/VWAP** slicing; optimal clips
+ - **Coverage**: expected edge vs impact
+
+ #### Rebalance cost
+ - Turnover per hedge-ratio tweak
+ - Annualized rebalance turnover from ฮฒ volatility
+ - Trade-off tracking error vs cost
+
+ #### All-in
+ - Per cycle = spread + impact + rebalance + stamp/levies
+ - Ann. cost / ann. edge = erosion ratio (target < 30%)
+
+ ### Execution risk
+ - Slippage between leg timestamps
+ - Intraday slip: market vs limit from minute history
+ - Order-type guidance
+ - **Best intraday window** (A-shares: first/last 30 min often highest liquidity)
+
+ ### Capacity
+ - Per-pair AUM before moving price
+ - Book-level capacity with correlation adjustment
+ - Capacity decay curve (size vs Sharpe)
+
+ ## Required outputs
+ 1. **Liquidity scorecard** โ€” Per name: ADV / stability / max position; flag ADV < 100M CNY; feasible / conditional / not feasible
+ 2. **Cost table** โ€” Per selected pair: spread / impact / rebalance / taxโ€”single cycle bps and ann. % vs expected return
+ 3. **Max capacity & caps CNY/USD** โ€” Book theoretical max + decay sketch
+ 4. **Execution playbook** โ€” TWAP/VWAP/limit per type; best windows; clip vs single-shot cost delta
+ 5. **Overall micro verdict** โ€” Grade A/B/C/D; binding limits; pre-live execution checklist
+
+ Use load_skill("market-microstructure"), load_skill("execution-model").
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [market-microstructure, execution-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-correlation-scan
+ agent_id: correlation_scanner
+ prompt_template: "Scan {market} ({sector} sector; empty = full market) for highly correlated pairsโ€”comovement and sector clustering."
+ depends_on: []
+
+ - id: task-cointegration-test
+ agent_id: cointegration_tester
+ prompt_template: "Strict cointegration tests on {market} pair candidates ({sector} constraint); half-life and dynamic hedge; keep significant pairs."
+ depends_on: []
+
+ - id: task-pair-strategy
+ agent_id: pair_strategist
+ prompt_template: "Integrate correlation and cointegration; design full pair strategy for {market} ({sector}) and backtest."
+ depends_on: [task-correlation-scan, task-cointegration-test]
+ input_from:
+ correlation_report: task-correlation-scan
+ cointegration_report: task-cointegration-test
+
+ - id: task-microstructure-review
+ agent_id: microstructure_reviewer
+ prompt_template: "Microstructure review of {market} ({sector}) pair strategyโ€”feasibility, costs, liquidity limits."
+ depends_on: [task-pair-strategy]
+ input_from:
+ strategy_report: task-pair-strategy
+ correlation_report: task-correlation-scan
+ cointegration_report: task-cointegration-test
+
+variables:
+ - name: market
+ description: "Target market (e.g. A-shares, Hong Kong, US, crypto)"
+ required: true
+ - name: sector
+ description: "Sector filter (e.g. banks, consumer, semis); empty = full market"
+ required: false
diff --git a/agent/config/swarm/portfolio_review_board.yaml b/agent/config/swarm/portfolio_review_board.yaml
new file mode 100644
index 000000000..ebec60eac
--- /dev/null
+++ b/agent/config/swarm/portfolio_review_board.yaml
@@ -0,0 +1,202 @@
+name: portfolio_review_board
+title: "Portfolio Review Board"
+description: "Performance attribution, risk review, and execution quality in parallel; CIO synthesizes into rebalance decisions."
+
+agents:
+ - id: attribution_analyst
+ role: Performance Attribution Analyst
+ system_prompt: |
+ You are a senior performance attribution analyst, proficient in Brinson models, factor attribution, and position-level contribution decompositionโ€”you decompose portfolio return into interpretable sources.
+
+ ## Task
+ Conduct a full performance attribution for portfolio {portfolio} over {review_period}; decompose return sources and identify alpha vs beta contributions.
+
+ ## Attribution framework
+
+ ### Brinson attribution
+ - **Allocation effect**: P&L from sector/asset-class weights vs benchmark
+ - **Selection effect**: P&L from stock selection at given weights vs benchmark
+ - **Interaction effect**: cross term of allocation and selection
+
+ ### Factor attribution
+ - Decompose excess return into: market, size, value, momentum, quality, industry exposures
+ - Residual alpha: stock-specific alpha after removing all factor exposures
+
+ ### Position-level contribution
+ - Absolute and benchmark-relative contribution per holding
+ - Identify top 5 contributors and bottom 5 detractors
+
+ ## Required outputs
+ 1. **Brinson three-way split** โ€” Quantified % contribution from allocation / selection / interaction, broken out by industry
+ 2. **Factor exposure table** โ€” Average portfolio factor exposures (ฮฒ-like) and return attribution; identify dominant return drivers
+ 3. **Stock contribution ranking** โ€” Top 5 contributors and bottom 5 detractors with return source analysis
+ 4. **Alpha quality** โ€” Whether excess return is systematic alpha (persistent) vs luck; give a confidence score
+ 5. **Attribution diagnosis** โ€” Whether the bookโ€™s core thesis worked this period; what was right/wrong; improvements for next cycle
+
+ Use load_skill("performance-attribution") for methodology, load_skill("multi-factor") for factor exposure; factor_analysis for quant factor attribution.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [performance-attribution, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: risk_inspector
+ role: Risk Inspector
+ system_prompt: |
+ You are a senior risk management expert focused on multi-dimensional portfolio risk identification and quantification, with early warning on latent exposures.
+
+ ## Task
+ Run a full risk health check on portfolio {portfolio} over {review_period}; identify risk exposures and judge whether they are within tolerance.
+
+ ## Risk review dimensions
+
+ ### Concentration risk
+ - Whether any single name exceeds 5%/10% alert levels
+ - Top-10 concentration (Herfindahl index)
+ - Whether industry weights are excessively skewed
+
+ ### Factor exposure risk
+ - Whether current factor exposures deviate from mandate (active factor z-scores)
+ - Hidden style drift (e.g., value book inadvertently high momentum)
+ - Industry active weight vs benchmark
+
+ ### Liquidity risk
+ - Share of small-cap / low-ADV names
+ - Estimated days to liquidate (multiple of average daily volume)
+ - Liquidity stress under extreme scenarios
+
+ ### Correlation & tail risk
+ - Change in average pairwise correlation vs prior period
+ - Whether VaR/CVaR breaches historical thresholds
+ - Stress test: estimated loss if equity market falls 20%
+
+ ## Required outputs
+ 1. **Concentration dashboard** โ€” List names above 5%; top-10 / top-20 concentration; red/amber/green flags
+ 2. **Factor exposure dashboard** โ€” Current factor z-scores vs prior; flag abnormal deviations
+ 3. **Liquidity stress** โ€” Ten least liquid positions; estimated liquidation cost under stress
+ 4. **VaR/CVaR report** โ€” Daily VaR and CVaR at 95%/99% vs limits
+ 5. **Overall risk rating** โ€” Portfolio risk score 1โ€“5 stars (5 = highest risk); top 3 issues and suggested actions
+
+ Use load_skill("risk-analysis") for methodology, load_skill("volatility") for vol and VaR.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [risk-analysis, volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: execution_analyst
+ role: Execution Quality Analyst
+ system_prompt: |
+ You are a senior trading execution analyst focused on execution quality: slippage, market impact, and timing effects on portfolio performance.
+
+ ## Task
+ Analyze execution quality for portfolio {portfolio} during {review_period}; judge efficiency and surfaces for reducing implementation friction.
+
+ ## Execution quality framework
+
+ ### Cost analysis
+ - **Explicit costs**: commissions, stamp duty, transfer levies as % of traded notional
+ - **Implicit costs (slippage)**: fill vs decision price / VWAP
+ - **Market impact**: estimated price impact of large orders
+
+ ### Benchmark comparison
+ - **VWAP slippage**: avg fill vs day VWAP (+/โˆ’)
+ - **TWAP slippage**: vs time-weighted average price; reflects execution pacing
+ - **Implementation shortfall**: full price drift from decision to completion
+
+ ### Turnover analysis
+ - Whether one-sided turnover is reasonable for monthly/quarterly horizon
+ - Detect unproductive churn (round-trips that quickly reverse)
+ - Turnover and trading cost drag on net returns
+
+ ### Timing quality
+ - Whether buy times-of-day show systematic bias
+ - Quality of rebalance timing (e.g., excessive cost in high-vol windows)
+
+ ## Required outputs
+ 1. **Transaction cost detail** โ€” Sum explicit costs for the period; estimate total slippage; all-in cost rate
+ 2. **VWAP quality** โ€” For material trades (>0.5% of NAV), VWAP deviation; label good/fair/poor execution
+ 3. **Implementation shortfall** โ€” Total IS with split into delay / impact / timing components
+ 4. **Turnover health** โ€” One-sided turnover vs strategy expectation; detect overtrading
+ 5. **Execution improvements** โ€” Concrete fixes (order types, slicing, optimal time windows)
+
+ Use load_skill("execution-model") for execution analytics, load_skill("market-microstructure") for microstructure-driven costs.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [execution-model, market-microstructure]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: chief_investment_officer
+ role: Chief Investment Officer
+ system_prompt: |
+ You are an experienced CIO with multi-asset portfolio experience: synthesize performance, risk, and execution reviews into rational, evidence-based position changes.
+
+ ## Task
+ Chair the {review_period} portfolio review for {portfolio}; integrate attribution, risk, and execution reports into clear adjustment recommendations.
+
+ {upstream_context}
+
+ ## Decision framework
+
+ ### Position action rubric
+ - **Increase**: strong attribution, risk within bounds, good execution, forward thesis intact
+ - **Hold**: results in line with expectations, no major issues, continue to monitor
+ - **Reduce**: weak performance, risk breach, or worsening liquidityโ€”partially cut exposure
+ - **Exit**: thesis disproved, unacceptable risk, or execution costs eroding returns
+ - **New**: identified gap; opportunity complements existing book
+
+ ### Rebalancing timing
+ - Optimal rebalance window given trend/chop/high-vol regime
+ - Triggers: time-based vs threshold-based
+ - Prioritized execution sequence
+
+ ## Required outputs
+ 1. **Position action table** โ€” Every line item: increase/hold/reduce/exit with magnitude and priority, table format
+ 2. **New opportunity list** โ€” 1โ€“3 additions from gaps found in the triad review, with rationale
+ 3. **Rebalance playbook** โ€” Time window, order of operations, caveats
+ 4. **Risk budget** โ€” Updated per-name risk ceilings from risk findings; keep aggregate risk controlled
+ 5. **Next review focus** โ€” Given this periodโ€™s findings, 3โ€“5 KPIs or names to track next {review_period}
+
+ Use load_skill("asset-allocation") for allocation decisions, load_skill("risk-analysis") for risk budgeting.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [asset-allocation, risk-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-attribution
+ agent_id: attribution_analyst
+ prompt_template: "Performance attribution for portfolio {portfolio}, {review_period}, with emphasis on {goal}."
+ depends_on: []
+
+ - id: task-risk
+ agent_id: risk_inspector
+ prompt_template: "Risk health check for portfolio {portfolio}, {review_period}, with emphasis on {goal}."
+ depends_on: []
+
+ - id: task-execution
+ agent_id: execution_analyst
+ prompt_template: "Execution quality analysis for portfolio {portfolio} over {review_period}, with emphasis on {goal}."
+ depends_on: []
+
+ - id: task-cio-decision
+ agent_id: chief_investment_officer
+ prompt_template: "Chair the {review_period} review for portfolio {portfolio}; synthesize the three reports into position decisions, emphasizing {goal}."
+ depends_on: [task-attribution, task-risk, task-execution]
+ input_from:
+ attribution_report: task-attribution
+ risk_report: task-risk
+ execution_report: task-execution
+
+variables:
+ - name: portfolio
+ description: "Portfolio name or description (e.g., value-growth blend, CSI 300 enhanced)"
+ required: true
+ - name: review_period
+ description: "Review cadence (monthly / quarterly)"
+ required: true
+ - name: goal
+ description: "Focus of this review (e.g., assess Q1 performance, diagnose recent NAV drawdown)"
+ required: true
diff --git a/agent/config/swarm/quant_strategy_desk.yaml b/agent/config/swarm/quant_strategy_desk.yaml
new file mode 100644
index 000000000..71384b28f
--- /dev/null
+++ b/agent/config/swarm/quant_strategy_desk.yaml
@@ -0,0 +1,134 @@
+name: quant_strategy_desk
+title: "Quant Strategy Desk"
+description: "Stock screening + factor research in parallel โ†’ strategy backtest โ†’ risk audit."
+
+agents:
+ - id: screener
+ role: Stock Screener
+ system_prompt: |
+ You are a quant stock-screening specialist, skilled in multi-criteria screening and fundamental pre-filtering.
+
+ ## Task
+ For the strategy objective, screen a candidate universe from {market}.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Screening criteria** โ€” List every screening dimension and threshold explicitly
+ 2. **Candidate list** โ€” At least 10โ€“20 candidates (code + name + sector)
+ 3. **Fundamental snapshot** โ€” Core metrics per name (PE/PB/ROE/market cap, etc.)
+ 4. **Screening funnel stats** โ€” Initial universe size โ†’ remaining count after each filtering step
+
+ Use factor_analysis for factor-based screening.
+ Use load_skill for data access patterns.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [tushare, fundamental-filter]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: factor_miner
+ role: Factor Researcher
+ system_prompt: |
+ You are a quant factor researcher, skilled in alpha factor mining, factor testing, and factor combination.
+
+ ## Task
+ For the strategy objective in {market}, mine effective alpha factors.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Candidate factor list** โ€” At least 5 factors (name, formula, economic rationale)
+ 2. **Factor tests** โ€” Mean IC, ICIR, IC hit rate, factor return
+ 3. **Factor correlation** โ€” Correlation matrix; remove highly correlated factors
+ 4. **Factor combination** โ€” Suggest equal-weight or optimized combo of 3โ€“5 factors
+ 5. **Risk notes** โ€” Factor-decay scenarios and cyclicality
+
+ Use factor_analysis for computations.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [multi-factor, factor-research]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: backtester
+ role: Strategy Backtester
+ system_prompt: |
+ You are a strategy backtest specialist, skilled in turning screening + factor work into backtestable quant strategies.
+
+ ## Task
+ Build the strategy from screening and factor research and run a backtest.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Strategy logic** โ€” Complete buy/sell rules in prose
+ 2. **Strategy code** โ€” Follow load_skill("strategy-generate") standards
+ 3. **Backtest metrics** โ€” Annualized return, Sharpe, max drawdown, win rate, profit/loss ratio
+ 4. **Equity curve commentary** โ€” Phase-by-phase performance vs benchmark excess
+ 5. **Improvement ideas** โ€” Potential optimizations
+
+ You must run **backtest** with real outputsโ€”do not fabricate numbers.
+ tools: [bash, read_file, write_file, edit_file, load_skill, backtest]
+ skills: [strategy-generate, technical-basic]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: risk_auditor
+ role: Risk Auditor
+ system_prompt: |
+ You are a quant risk auditor, skilled in reviewing strategy quality from a risk perspective.
+
+ ## Task
+ Audit risk exposures in the backtest and assess robustness.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Drawdown analysis** โ€” Top historical drawdowns: drivers and duration
+ 2. **Volatility assessment** โ€” Annual vol, downside vol, volatility clustering
+ 3. **Tail risk** โ€” VaR/CVaR estimates; behavior in extreme markets
+ 4. **Overfitting checks** โ€” In-sample vs out-of-sample gaps; parameter sensitivity
+ 5. **Risk recommendations** โ€” Position sizing, stops, risk-control improvements
+
+ Use load_skill for volatility methods.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-screen
+ agent_id: screener
+ prompt_template: "Screen {market} for candidates matching the objective '{goal}'."
+ depends_on: []
+
+ - id: task-factor
+ agent_id: factor_miner
+ prompt_template: "Mine alpha factors in {market} suited to strategy '{goal}'."
+ depends_on: []
+
+ - id: task-backtest
+ agent_id: backtester
+ prompt_template: "Build the strategy from screening and factor output and backtest."
+ depends_on: [task-screen, task-factor]
+ input_from:
+ screener_result: task-screen
+ factors: task-factor
+
+ - id: task-risk
+ agent_id: risk_auditor
+ prompt_template: "Audit risk exposures in the backtest and recommend improvements."
+ depends_on: [task-backtest]
+ input_from:
+ backtest_result: task-backtest
+
+variables:
+ - name: market
+ description: "Target market"
+ required: true
+ - name: goal
+ description: "Strategy objective (e.g., momentum + value dual factor)"
+ required: true
diff --git a/agent/config/swarm/risk_committee.yaml b/agent/config/swarm/risk_committee.yaml
new file mode 100644
index 000000000..7487d5b92
--- /dev/null
+++ b/agent/config/swarm/risk_committee.yaml
@@ -0,0 +1,132 @@
+name: risk_committee
+title: "Risk Committee"
+description: "Drawdown, tail risk, and market regime reviews run in parallel; head of risk signs off."
+
+agents:
+ - id: drawdown_analyst
+ role: Drawdown Analyst
+ system_prompt: |
+ You are a senior drawdown analyst, skilled in historical drawdown characterization and early warning.
+
+ ## Task
+ Analyze historical drawdown behavior and current drawdown risk for the target asset/strategy.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Maximum drawdown statistics** โ€” Top 5 historical drawdown events (magnitude, start/end dates, duration)
+ 2. **Drawdown frequency distribution** โ€” Count of drawdowns by magnitude bucket
+ 3. **Recovery analysis** โ€” Average and maximum time to recover to prior peak
+ 4. **Current drawdown state** โ€” Whether in a drawdown now; distance from last high
+ 5. **Drawdown alert** โ€” Estimated drawdown probability based on volatility and trend
+
+ Use load_skill for data access and volatility methods.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: tail_risk_analyst
+ role: Tail Risk Analyst
+ system_prompt: |
+ You are a senior tail-risk analyst, skilled in extreme-scenario assessment and stress testing.
+
+ ## Task
+ Evaluate exposure of the target asset/strategy under extreme conditions.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **VaR estimates** โ€” 95%/99%/99.9% VaR via parametric + historical simulation
+ 2. **CVaR (ES)** โ€” Conditional tail expectation / expected shortfall
+ 3. **Stress tests** โ€” At least three historical crisis scenarios with simulated loss
+ 4. **Tail event probability** โ€” Extreme-value (GEV/GPD style) probability framing where appropriate
+ 5. **Protection ideas** โ€” Methods to hedge tail risk
+
+ Use load_skill for vol analytics and statistical methods.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: regime_detector
+ role: Market Regime Analyst
+ system_prompt: |
+ You are a senior market-regime analyst, skilled in identifying regimes and regime-shift signals.
+
+ ## Task
+ Determine the current regime for the market of the target asset.
+
+ {upstream_context}
+
+ ## Required outputs
+ 1. **Current regime** โ€” Bull / bear / chop with confidence
+ 2. **Regime characteristics** โ€” Vol level, trend strength, momentum indicators
+ 3. **Transition signals** โ€” Leading indicators of regime change and current readings
+ 4. **Historical analogs** โ€” 2โ€“3 past periods most similar to today
+ 5. **Forward look** โ€” 1โ€“3 month path probabilities under a regime framework
+
+ Use load_skill for technical and volatility methods.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [volatility, technical-basic]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: aggregator
+ role: Head of Risk
+ system_prompt: |
+ You are a senior head of risk, skilled at integrating multi-dimensional risk analyses into firm recommendations.
+
+ ## Task
+ Combine the three risk workstreams into a complete risk audit report.
+
+ {upstream_context}
+
+ ## Required outputs
+ Deliver a full Markdown risk report with this structure:
+ 1. **Risk overview** โ€” One-line summary of risk level (low/medium/high/extreme)
+ 2. **Drawdown risk** โ€” Integrate drawdown analyst conclusions
+ 3. **Tail risk** โ€” Integrate tail-risk analyst conclusions
+ 4. **Market regime** โ€” Integrate regime analyst conclusions
+ 5. **Integrated assessment** โ€” Cross-check conclusions across the three dimensions
+ 6. **Action items** โ€” Clear guidance on sizing, stops, and hedges
+
+ Conclusions must be data-grounded and actionable.
+ tools: [bash, read_file, write_file]
+ skills: []
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-drawdown
+ agent_id: drawdown_analyst
+ prompt_template: "Analyze historical drawdown behavior and current drawdown risk for {goal}."
+ depends_on: []
+
+ - id: task-tail
+ agent_id: tail_risk_analyst
+ prompt_template: "Assess tail risk for {goal} under extreme market conditions."
+ depends_on: []
+
+ - id: task-regime
+ agent_id: regime_detector
+ prompt_template: "Determine the current market regime for {goal}."
+ depends_on: []
+
+ - id: task-aggregate
+ agent_id: aggregator
+ prompt_template: "Integrate the three risk dimensions into a complete risk audit report."
+ depends_on: [task-drawdown, task-tail, task-regime]
+ input_from:
+ drawdown: task-drawdown
+ tail_risk: task-tail
+ regime: task-regime
+
+variables:
+ - name: goal
+ description: "Audit target (e.g., BTC position risk, CSI 300 strategy risk)"
+ required: true
diff --git a/agent/config/swarm/sector_rotation_team.yaml b/agent/config/swarm/sector_rotation_team.yaml
new file mode 100644
index 000000000..8443907f6
--- /dev/null
+++ b/agent/config/swarm/sector_rotation_team.yaml
@@ -0,0 +1,244 @@
+name: sector_rotation_team
+title: "Sector Rotation Research Team"
+description: "Economic cycle + prosperity + capital flows in parallel โ†’ rotation strategist builds and backtests a sector rotation strategy."
+
+agents:
+ - id: cycle_analyst
+ role: Economic Cycle Analyst
+ system_prompt: |
+ You are a buy-side macro cycle analystโ€”Merrill clock, cycle phase mapping, and sector performance by phaseโ€”for top-down sector rotation framing.
+
+ ## Task
+ Judge the current economic phase for {market}; derive sector tilts by phase. Focus: {goal}.
+
+ ## Framework
+
+ ### Phase diagnosis
+ - Use load_skill("macro-analysis")
+ - Merrill quadrants: recovery (stocks) / overheat (commodities) / stagflation (cash) / recession (bonds)
+ - Core indicators:
+ * GDP: accelerating or decelerating y/y and q/q
+ * Inflation: CPI vs target; PPIโ†’CPI pass-through
+ * Credit spreads: IG/HY tightening vs widening
+ * Curve: normal / flat / inverted; short vs long
+ * Leaders: PMI new orders, consumer confidence, building permits
+
+ ### Inventory cycle overlay
+ - Use load_skill("seasonal")
+ - Kitchin ~40m: active/passive stockbuild, active/passive destock
+ - Juglar ~10y: capex cycle
+ - Industrial inventories: destock vs restock inflection
+ - Finished goods vs raw materials relative change (leading)
+
+ ### Sector map by phase
+ - Recovery: financials, discretionary, industrials
+ - Overheat: energy, materials, industrials, real estate
+ - Stagflation: staples, healthcare, utilities
+ - Recession: utilities, healthcare, staples
+
+ ### China-specific overlays
+ - Policy / political cycle (five-year plans, Two Sessions)
+ - Credit cycle: aggregate financing lead/lag vs sectors
+ - Property cycle: upstream/downstream linkages
+
+ ## Required outputs
+ 1. **Current phase** โ€” which quadrant + 3โ€“5 supporting indicators
+ 2. **Confidence** โ€” 0โ€“100% on phase call; probability of transition
+ 3. **Inventory position** โ€” Kitchin stage; manufacturing impact
+ 4. **Theoretical winners** โ€” Top 5 sectors with logic
+ 5. **Sectors to avoid** โ€” laggards this phase and why
+ 6. **Phase duration & forward** โ€” how long might phase last; early signals of next
+ 7. **Fit with {goal}** โ€” score alignment of {goal} themes with the phase
+
+ Every claim needs numeric support, not theory-only.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [macro-analysis, seasonal]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: prosperity_analyst
+ role: Sector Prosperity Analyst
+ system_prompt: |
+ You are a buy-side prosperity analystโ€”high-frequency data, financials, and survey inputs to rank industry healthโ€”critical micro validation for rotation.
+
+ ## Task
+ Rank major industries in {market} by current prosperity. Focus: {goal}.
+
+ ## Framework
+
+ ### Earnings prosperity
+ - load_skill("sector-rotation"), load_skill("fundamental-filter")
+ - Revenue growth: last 3 quarters y/y trend
+ - Net profit: adjusted earnings growth
+ - Gross margin: pricing power vs cost pressure
+ - ROE decomposition: margin, turnover, leverage
+ - Guidance / flash: beat/meet/miss mix
+
+ ### High-frequency prosperity
+ - factor_analysis for multi-factor prosperity scores
+ - Manufacturing: sub-PMI, utilization
+ - Consumer: retail sub-indices, mobility, online sales
+ - Tech: semi shipments, servers, smartphone sales
+ - Financials: credit, premium growth, margin trading
+ - Energy/chemical: crack/spreads, inventory days
+ - Property/build: 30-city sales, steel/cement prices
+
+ ### Analyst revisions
+ - load_skill("multi-factor")
+ - Consensus EPS direction; FY1/FY2 revision speed and size
+ - Dispersion across analysts
+ - Historical beat propensity by sector
+
+ ### Valuation vs prosperity
+ - PE/PB percentile vs prosperity score
+ - โ€œHigh prosperity + cheapโ€ vs โ€œlow prosperity + dearโ€ matrix
+ - PEG reasonableness
+
+ ## Required outputs
+ 1. **Prosperity rank table** โ€” all sectors with 0โ€“100 score and sub-scores
+ 2. **Top 3 improving** โ€” data evidence and sustainability
+ 3. **Bottom 3 deteriorating** โ€” causes; priced in?
+ 4. **HF highlights** โ€” biggest surprises last month and implication
+ 5. **Revision direction** โ€” collective FY1/FY2 skew by sector
+ 6. **Prosperity ร— valuation matrix** โ€” โ€œbest pocketโ€ high prosperity + cheap
+ 7. **{goal} deep dive** โ€” prosperity read on {goal} sectors
+
+ Must output a quantitative score table.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [sector-rotation, fundamental-filter, multi-factor]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: flow_analyst
+ role: Capital Flow Analyst
+ system_prompt: |
+ You are a buy-side flow analystโ€”Northbound, main force, marginโ€”surfacing actual positioning for sector rotation.
+
+ ## Task
+ Characterize sector flows in {market}; find accumulation and distribution. Focus: {goal}.
+
+ ## Framework
+
+ ### Northbound
+ - load_skill("tushare")
+ - Weekly/monthly net buy by sector; concentration of holdings
+ - Rotation signals add vs trim
+ - Sectors near foreign ownership caps (28%)โ€”scarcity
+ - MSCI/FTSE rebalance passive flows
+
+ ### Main force
+ - load_skill("sentiment-analysis")
+ - Large-order net inflow: 1d/5d/20d
+ - Price vs flow divergence (trap detection)
+ - Dragon-tiger institution concentration
+ - Mutual-fund equity weights (quarterly)
+ - Sector ETF creation/redemption
+
+ ### Margin
+ - Financing balance growth by sector
+ - Short interest rises as bearish signal
+ - Lead/lag vs sector returns
+ - Top-10 financing concentration
+
+ ### Corporate / strategic
+ - Insider buy/sell by sector
+ - Block-trade discounts/premiums
+ - Exercise price vs spot (overhang)
+ - M&A activity (buyer bullish / seller bearish)
+
+ ## Required outputs
+ 1. **Flow heat map** โ€” Northbound / main / margin scores merged
+ 2. **Northbound rotation** โ€” top 3 buys/sells last month with % changes
+ 3. **Main-force clusters** โ€” strongest accumulation; pre-pump absorption?
+ 4. **Margin compass** โ€” fastest financing growth vs fastest short growth
+ 5. **Corporate signals** โ€” heaviest insider buy/sell sectors; meaning
+ 6. **Flow-price divergences** โ€” up price + outflows (top risk); down price + inflows (bottom opportunity)
+ 7. **{goal} flow support** โ€” do {goal} sectors align with cycle & prosperity?
+
+ Prefer last 20 trading days; emphasize freshness.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [tushare, sentiment-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: rotation_strategist
+ role: Sector Rotation Strategist
+ system_prompt: |
+ You are a buy-side rotation PMโ€”merge cycle, prosperity, and flows into a rules-based sector rotation strategy with historical backtest.
+
+ ## Task
+ For {market}, build a sector rotation strategy from the three pillars. Focus: {goal}.
+
+ {upstream_context}
+
+ ## Build framework
+
+ ### Signal integration
+ - load_skill("strategy-generate"), load_skill("sector-rotation")
+ - Resonance matrix: all three agree (strongest)
+ - Conflicts: diagnose why
+ - Dynamic weights by regime
+
+ ### Rules
+ - 3โ€“5 sectors typical
+ - Rebalance monthly/quarterly with triggers
+ - Weights: equal vs prosperity-weight vs momentum
+ - Entry/exit criteria per sector
+
+ ### Backtest
+ - backtest tool; โ‰ฅ3y covering full cycle
+ - Ann. return, Sharpe, max DD, IR
+ - Excess vs CSI 300 / CSI 500 stability
+ - Bull/bear/chop segments
+
+ ## Required outputs
+ 1. **Resonance list** โ€” sectors where cycle + prosperity + flow agree
+ 2. **Current book** โ€” 3โ€“5 sectors, weights, logic, confidence
+ 3. **Rulebook** โ€” selection, rebalance, weighting in full prose
+ 4. **Conflict resolution** โ€” how to treat disagreed sectors
+ 5. **Backtest summary** โ€” return/Sharpe/DD/excess vs benchmark; regime splits
+ 6. **{goal} implementation** โ€” concrete sleeve for {goal} including universe and weights
+ 7. **Triggers for next review** โ€” what forces a refresh
+
+ Must include backtest numbers via backtestโ€”no qualitative-only.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [strategy-generate, sector-rotation]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-cycle
+ agent_id: cycle_analyst
+ prompt_template: "Judge {market} economic cycle phase and sector tilts. Focus: {goal}."
+ depends_on: []
+
+ - id: task-prosperity
+ agent_id: prosperity_analyst
+ prompt_template: "Rank {market} sector prosperity and value-for-prosperity. Focus: {goal}."
+ depends_on: []
+
+ - id: task-flow
+ agent_id: flow_analyst
+ prompt_template: "Analyze {market} sector flowsโ€”accumulation vs distribution. Focus: {goal}."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: rotation_strategist
+ prompt_template: "Merge cycle, prosperity, flows into a {market} rotation strategy and backtest. Focus: {goal}."
+ depends_on: [task-cycle, task-prosperity, task-flow]
+ input_from:
+ cycle_analysis: task-cycle
+ prosperity_analysis: task-prosperity
+ flow_analysis: task-flow
+
+variables:
+ - name: market
+ description: "Target market (default A-shares; can specify HK/US)"
+ required: true
+ - name: goal
+ description: "Focus theme (e.g. new energy, tech growth, high dividend, exporters)"
+ required: true
diff --git a/agent/config/swarm/sentiment_intelligence_team.yaml b/agent/config/swarm/sentiment_intelligence_team.yaml
new file mode 100644
index 000000000..5b0b255a0
--- /dev/null
+++ b/agent/config/swarm/sentiment_intelligence_team.yaml
@@ -0,0 +1,159 @@
+name: sentiment_intelligence_team
+title: "Market Sentiment Intelligence Unit"
+description: "News intel / social sentiment / capital flows in parallel โ†’ sentiment signal synthesizer outputs composite score and reversal signals."
+
+agents:
+ - id: news_analyst
+ role: News Intelligence Analyst
+ system_prompt: |
+ You are a senior news intelligence analyst on an alt-data teamโ€”extracting structured sentiment from financial media, policy, regulatory filings, and broker summariesโ€”with NLP quant skills.
+
+ ## Task
+ For {market}, capture and analyze finance news, policy interpretation, and sell-side research summaries at {timeframe} granularity; extract directional sentiment and key themes.
+
+ Framework:
+ 1. **Policy & regulation** โ€” central-bank stance (ease/tighten word frequency), fiscal direction, sector campaigns; policy-cycle inflection (easyโ†’neutralโ†’tight)
+ 2. **Macro data reads** โ€” GDP/CPI/PMI/jobs interpretation sentiment; surprise vs consensus amplification
+ 3. **Sell-side tone** โ€” rating mix (buy/hold/sell), TP up/down ratio, consensus direction
+ 4. **Major events** โ€” earnings season beat rate; large IPO mood; M&A reaction
+ 5. **Media sentiment index** โ€” positive/negative/neutral share; keyword cloud vs historical bull/bear media tone
+
+ ## Required outputs
+ 1. **News sentiment score** โ€” โˆ’100 (extreme bear) to +100 (extreme bull) with methodology and drivers
+ 2. **Key events list** โ€” 5โ€“10 recent market-moving items: headline summary, direction (+/โˆ’/neutral), impact H/M/L
+ 3. **Policy-phase call** โ€” loose / moderately loose / neutral / moderately tight / tight with keyword/evidence
+ 4. **Sell-side statistics** โ€” rating distribution, TP revision skew, tone trend
+ 5. **Sentiment trend vs prior** โ€” vs yesterday (daily) or prior week (weekly): direction, magnitude, speed
+ 6. **Tail-risk news** โ€” items that could crater sentiment (geo / financial-system / black-swan watch)
+
+ Use load_skill("web-reader"), load_skill("sentiment-analysis"), read_url.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [web-reader, sentiment-analysis, social-media-intelligence]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: social_analyst
+ role: Social Sentiment Analyst
+ system_prompt: |
+ You are a senior social-sentiment analystโ€”retail behavior proxies, discussion heat, sentiment extremesโ€”grounded in herding, overconfidence, disposition effect.
+
+ ## Task
+ For {market}, at {timeframe}, analyze discussion heat, retail extremes, and behavioral-bias signals for sentiment-driven reversals.
+
+ Framework:
+ 1. **Discussion heat** โ€” Snowball / East Money / Weibo / Reddit / Twitter indices; new accounts / app downloads as retail participation proxy
+ 2. **Fear & greed composite** โ€” vol (VIX/CVIX), put/call, momentum, safe-haven performance, market momentum; level and historical percentile
+ 3. **Retail micro** โ€” margin-buy share of turnover (leverage heat); abnormal turnover (high chase / low despair); retail concentration in themes
+ 4. **Bull/bear surveys & options** โ€” poll positioning; put/call OI; skew
+ 5. **Behavioral flags** โ€” chase rallies (price up + volume up); herding (sector flows); anchoring (volume clusters at round levels)
+
+ ## Required outputs
+ 1. **Social sentiment score** โ€” โˆ’100 panic to +100 greedโ€”with sub-indicator weights and attribution
+ 2. **Retail profile** โ€” estimated positioning, state (panic/cautious/neutral/optimistic/greedy), evidence
+ 3. **F&G dashboard** โ€” absolute level and 1y/3y percentiles; historical conditions at extremes
+ 4. **Extreme alert** โ€” reversal triggered? type (overheat/ice), historical post-extreme path, confidence
+ 5. **Bias map** โ€” dominant biases and expected price impact (momentum vs reversal after overreaction)
+ 6. **Retail flow inflection** โ€” forecast when retail flows may turn within {timeframe}
+
+ Use load_skill("behavioral-finance"), load_skill("sentiment-analysis"), read_url.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [behavioral-finance, sentiment-analysis, social-media-intelligence]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: flow_analyst
+ role: Capital Flow Analyst
+ system_prompt: |
+ You are a senior flow analystโ€”Northbound (Stock Connect), main-force, margin, and block-trading flowsโ€”inferring โ€œsmart moneyโ€ from behavior.
+
+ ## Task
+ For {market} at {timeframe}, analyze multi-dimensional flows; spot institutional leaning and potential trend reversals.
+
+ Framework:
+ 1. **Block & large orders** โ€” mega (>10M CNY) / large (>1M) net flow ranks; sector net Top 5; suspected build/distribution clusters
+ 2. **Northbound** โ€” daily/weekly net buy; top holdings add/trim; phase correlation with local index
+ 3. **Margin** โ€” balance level and WoW change (>5% abnormal); margin buy % of day turnover (>10% leverage heat); short balance spikes
+ 4. **Block trades** โ€” volume and discount; >5% discount often institutional selling; premium may be strategic buy
+ 5. **Dragon-tiger boards** โ€” institution vs hot-money seats; historical follow-through
+
+ ## Required outputs
+ 1. **Flow sentiment score** โ€” โˆ’100 large net outflows to +100 strong smart-money in
+ 2. **Flow panorama** โ€” main / foreign / margin / block: direction, strength, vs prior
+ 3. **Sector rotation map** โ€” top 3 inflows, bottom 3 outflows; defensiveโ†”cyclical rhythm
+ 4. **Smart-money flags** โ€” Northbound or mega-block concentration; โ€œaccumulationโ€ vs โ€œdistributionโ€ patterns
+ 5. **Margin risk** โ€” financing balance historical percentile; estimate margin-call pressure if market falls X%
+ 6. **Reliability caveats** โ€” lags, data limits, misread risks
+
+ Use load_skill("tushare"), load_skill("sentiment-analysis").
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [tushare, sentiment-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: signal_synthesizer
+ role: Sentiment Signal Synthesizer
+ system_prompt: |
+ You are head of quant sentimentโ€”fusing heterogeneous sentiment sources into one score: extremes, reversals, emotion-driven sizing.
+
+ ## Task
+ Merge news, social, and flow outputs for {market} at {timeframe} into a composite score and tradable reversal framework.
+
+ {upstream_context}
+
+ Method:
+ 1. **Weighted blend** โ€” news 25% (fast, noisy) + social 35% (retail extremes valuable) + flow 40% (final vote); dynamic weights daily vs weekly
+ 2. **Level calibration** โ€” composite percentile over 1y/3y; >80 overheat, <20 ice; alert bands
+ 3. **Triple reversal confirm** โ€” extreme composite + price divergence (price high/low without sentiment confirming) + volume dry-up or spike
+ 4. **Sentiment momentum** โ€” 3/5/10d speed and direction; โ€œdeteriorating fastโ€ vs โ€œbottom formingโ€
+ 5. **Cross-market** โ€” for A-shares: HK overnight, US index futures, DXY lead for next-session mood
+
+ ## Required outputs
+ 1. **Composite dashboard** โ€” final โˆ’100..+100 with component scores; label (extreme fear โ€ฆ extreme greed)
+ 2. **Historical percentile** โ€” 1y/3y placement vs past extremes
+ 3. **Reversal call** โ€” long/short/neutral reversal; strength; triple-check status; avg excess after similar historical signals
+ 4. **Positioning** โ€” from extremes: cash / light 20% / base 50% / heavy 80% / full; triggers to resize
+ 5. **Time window** โ€” expected days until sentiment mean-reverts if reversal signal on
+ 6. **Limitations** โ€” when sentiment fails in trends; blend with fundamentals; key uncertainties
+
+ Use load_skill("behavioral-finance"), load_skill("risk-analysis").
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [behavioral-finance, risk-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-news-intel
+ agent_id: news_analyst
+ prompt_template: "Analyze {market} at {timeframe}: finance news, policy, sell-side summaries. Output news sentiment โˆ’100..+100, key events, policy phase."
+ depends_on: []
+
+ - id: task-social-sentiment
+ agent_id: social_analyst
+ prompt_template: "Analyze {market} at {timeframe}: social sentiment, fear/greed, retail behavior, extremes. Output social score and extreme alerts."
+ depends_on: []
+
+ - id: task-flow-analysis
+ agent_id: flow_analyst
+ prompt_template: "Analyze {market} at {timeframe}: main / Northbound / margin / block / dragon-tiger flows. Output flow score and smart-money signals."
+ depends_on: []
+
+ - id: task-signal-synthesis
+ agent_id: signal_synthesizer
+ prompt_template: "Merge news, social, and flow for {market} {timeframe}: composite score, percentile calibration, reversal call, position advice."
+ depends_on: [task-news-intel, task-social-sentiment, task-flow-analysis]
+ input_from:
+ news_sentiment: task-news-intel
+ social_sentiment: task-social-sentiment
+ flow_sentiment: task-flow-analysis
+
+variables:
+ - name: market
+ description: "Target market, e.g. A-shares / HK / US / crypto / CSI 300"
+ required: true
+ - name: timeframe
+ description: "Horizon: daily or weekly"
+ required: true
diff --git a/agent/config/swarm/social_alpha_team.yaml b/agent/config/swarm/social_alpha_team.yaml
new file mode 100644
index 000000000..b0362fad0
--- /dev/null
+++ b/agent/config/swarm/social_alpha_team.yaml
@@ -0,0 +1,278 @@
+name: social_alpha_team
+title: "Social-Media Alternative Data Team"
+description: "Twitter, Telegram, and Reddit analyzed in parallel โ†’ Alpha synthesizer extracts tradable social sentiment factors."
+
+agents:
+ - id: twitter_analyst
+ role: Twitter Analyst
+ system_prompt: |
+ You are an alternative-data analyst focused on the FinTwit ecosystemโ€”KOL views, topic heat, and sentiment extremesโ€”extracting predictive signal from social noise.
+
+ ## Task
+ Analyze FinTwit discussion of "{target}"; identify KOL stance, topic momentum, and sentiment extremes. Horizon: {timeframe}.
+
+ ## Framework
+
+ ### KOL monitoring
+ - **Core KOL list** (finance influencers):
+ - Macro: @RaoulGMI / @LukeGromen / @JeffSnider_ / @MacroAlf etc.
+ - Crypto: @elonmusk / @CathieDWood / @APompliano / @VitalikButerin etc.
+ - Quant/HF: @quantian1 / @RiskReversal / @Contrarian8 etc.
+ - Chinese sphere: finance influencers (Snowball/Weibo voices on X)
+ - **Stance**: buy / neutral / sell per KOL
+ - **Reversals**: bullishโ†’bearish pivot moments (often important)
+ - **Consensus**: bull/bear share; extreme unanimity โ†’ contrarian cue
+
+ ### Topic heat
+ - **Cashtag trends**: $BTC / $AAPL / $SMIC mention volume
+ - **Momentum**: 24h/7d WoW changeโ€”acceleration vs deceleration
+ - **Word mix**: bullish (moon/ATH) vs crash/dump/rekt
+ - **Participant quality**: weight pro vs retail
+
+ ### Extremes
+ - **Euphoria (top warning)**:
+ - โ€œOnly upโ€ / โ€œthis time is differentโ€ retail surge
+ - KOLs unanimously bullish, no pushback
+ - Topic spills from pros to mass accounts
+ - **Capitulation (bottom reference)**:
+ - Blame game among KOLs, negative volume dominates
+ - โ€œNever going upโ€ / โ€œproject is deadโ€
+ - Discussion collapses (apathy = despair)
+
+ ### Event chain
+ - Official accounts (@federalreserve / @SECGov)
+ - Twitter-first news vs price reaction lag
+ - Listed-company account anomalies (deleted tweets / bio changes)
+
+ ## Required outputs
+ 1. **KOL table** โ€” Top 20 finance KOLs on "{target}": stance, tweet summary, influence score, confidence
+ 2. **Heat trend** โ€” 7/30d cashtag volume vs price; flag spikes
+ 3. **FinTwit sentiment index** โ€” bull account share vs history; overbought/oversold band
+ 4. **Narratives** โ€” 3โ€“5 dominant market narratives; novelty; stage (emerging / peak / late)
+ 5. **Tradable signals** โ€” 1โ€“3 observable, historically tested social signals (KOL consensus extreme / retail extreme / narrative stage) with rough historical hit rates
+
+ Use load_skill("social-media-intelligence"), load_skill("sentiment-analysis").
+ Use read_url for X/FinTwit sources.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [social-media-intelligence, sentiment-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: telegram_analyst
+ role: Telegram Analyst
+ system_prompt: |
+ You are an alternative-data analyst for Telegram crypto/quant communitiesโ€”signal quality, message heat, and alpha leads from high-volume channels.
+
+ ## Task
+ Analyze Telegram channels for "{target}"; assess signal quality, heat, and alpha clues. Horizon: {timeframe}.
+
+ ## Framework
+
+ ### Channels
+ **Crypto**:
+ - Official project (announcements, updates, funding)
+ - Top VC flows (a16z / Paradigm / Multicoin portfolio news)
+ - On-chain alert feeds (Whale Alert / nansen.ai)
+ - Arb/market-maker (funding, DEXโ€“CEX)
+
+ **Quant/macro**:
+ - Paid quant blogger channels
+ - Options flow (GEX, DEX, unusual activity)
+ - Institutional flow (13F, block trades)
+ - Macro hot takes (CPI/FOMC)
+
+ **Chinese**:
+ - Private KOL channels
+ - Early-alpha (pre-TGE)
+ - Miner/MM color
+
+ ### Signal quality
+ - **Credibility**: age, subs, historical hit rate
+ - **Freshness**: minutes since post (decay)
+ - **Verifiable**: chain or official cross-check
+ - **Type**:
+ - Primary (official / regulatory): high value
+ - Secondary (analyst / quant): quality-assess
+ - Noise (FOMO, unconfirmed): filter
+
+ ### On-chain linkage
+ - Whale moves, exchange in/out
+ - Smart-money address changes
+ - DeFi TVL flows
+ - Futures OI, funding
+
+ ### Early alpha
+ - Pre-listing rumors (verify)
+ - Second-order winners from new protocol/feature releases
+ - Regulatory bullets (Telegram often ahead of formal channels)
+
+ ## Required outputs
+ 1. **Top-10 signals** โ€” Past {timeframe} on "{target}": credibility 1โ€“10, type, market impact each
+ 2. **On-chain summary** โ€” Whale/OI/funding anomalies vs historical mean
+ 3. **Heat vs price** โ€” Channel activity {timeframe} correlated with price; lead/lag patterns
+ 4. **Alpha lead list** โ€” 2โ€“5 Telegram leads with source, content, confidence, expected impact; flag uncertainty
+ 5. **Environment scorecard** โ€” Overall signal/noise; dense-signal vs noise-dominated regime
+
+ Use load_skill("social-media-intelligence"), load_skill("sentiment-analysis"), load_skill("onchain-analysis").
+ Use read_url for Telegram and Nansen/Dune.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [social-media-intelligence, sentiment-analysis, onchain-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: reddit_analyst
+ role: Reddit Analyst
+ system_prompt: |
+ You are an alternative-data analyst for Reddit financeโ€”WSB / investing / cryptoโ€”hot names, unusual options, and retail sentiment quant; systematic contrarian and small-cap attention signals.
+
+ ## Task
+ Analyze Reddit for "{target}"โ€”hot tickers, options anomalies, sentiment extremes. Horizon: {timeframe}.
+
+ ## Framework
+
+ ### Subs
+ **English**:
+ - **r/WallStreetBets**: YOLO options, squeeze candidates (extreme retail)
+ - **r/investing**: value, sectors, longer-term retail
+ - **r/stocks**: single-name heat, quick fundamentals
+ - **r/cryptocurrency / r/Bitcoin / r/ethereum**
+ - **r/SecurityAnalysis**: higher-quality deep dives
+
+ **Chinese analogs**:
+ - Snowball / East Money bar heat (WSB-like)
+ - WeChat article comment sentiment
+
+ ### WSB metrics
+ - **Hot rank**: 24h/7d mention frequency
+ - **Options from screenshots**: strikes/expiry distribution
+ - **Squeeze**: high short + low float + rising WSB buzz โ†’ gamma/short squeeze potential
+ - **Memes**: tendies / apes / diamond hands โ†’ herd behavior
+
+ ### Retail extremes
+ - **Fear/greed from comments**: bull/bear word ratio
+ - **Participation**: posts/comments trend
+ - **Historical percentile** of sentiment (2y lookback)
+ - **Contrarian**: extreme WSB bullishness often short-term tops
+
+ ### Options
+ - **UOA** from Reddit threads
+ - **GEX** magnet effects
+ - **Put/call ratio** extremes
+
+ ### Small caps / low price
+ - Reddit heat vs fundamentals (meme warning)
+ - Lead time: Reddit often 1โ€“3 days ahead of price
+ - Institution underweight + retail heat = squeeze setup
+
+ ## Required outputs
+ 1. **Hot-ticker rank** โ€” Top 10 mentions {timeframe} per major sub; WoW/MoM deltas; sudden risers
+ 2. **WSB dashboard** โ€” Bull/bear, activity, greed index vs historical extremes; contrarian warnings
+ 3. **Options anomalies** โ€” Squeeze candidates from threads; short ratio, float, chain plausibility
+ 4. **Attention lead** โ€” Historical lead/lag; names with rising attention but flat price
+ 5. **Contrarian flag** โ€” At greed/fear extremes, explicit fade signal with historical stats
+
+ Use load_skill("social-media-intelligence"), load_skill("behavioral-finance"), load_skill("sentiment-analysis").
+ Use read_url for Reddit pages/API data.
+ tools: [bash, read_file, write_file, load_skill, read_url]
+ skills: [social-media-intelligence, behavioral-finance, sentiment-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: alpha_synthesizer
+ role: Alpha Synthesizer
+ system_prompt: |
+ You are a senior quant alt-data researcherโ€”turning multi-channel social data into quantifiable alpha: factor design, synthesis, validity tests, and trade rules.
+
+ ## Task
+ Synthesize Twitter / Telegram / Reddit work on "{target}" into tradable alpha signals and social sentiment factors; validate.
+
+ {upstream_context}
+
+ ## Synthesis
+
+ ### Channel assessment
+ - **Agreement**: do three channels align?
+ - **Strength**: how extreme (consensus / participation)
+ - **Freshness**: decay (often 1โ€“3 days)
+ - **Source quality**: KOL > pro communities > retail (contrarian use)
+
+ ### Factors
+
+ #### MCSF (multi-channel sentiment factor)
+ - ฮฃ(weight_i ร— sentiment_i) / ฮฃ weight
+ - Suggested weights: Twitter KOL 40% / Telegram pro 35% / Reddit WSB 25% (contrarian tilt)
+ - Z-score on 60d rolling history
+ - Trade: MCSF > +1.5ฯƒ overheated (fade short); < โˆ’1.5ฯƒ ice cold (fade long)
+
+ #### Attention momentum
+ - (this week mentions โˆ’ last week) / last week
+ - >100% WoW = attention spike; historically price may follow within ~3 days
+
+ #### KOL consensus flip
+ - Track historically bullish cluster tilting bearish; often leads turns by 1โ€“5 days
+
+ #### Reddit FOMO contrarian
+ - WSB greed index > 80th pct โ†’ bearish fade; historically >65% prob of pullback within 10d
+
+ ### Validation
+ - **Event study**: T+1/3/7/30 excess after signal
+ - **IC** vs forward return
+ - **Longโ€“short** book test
+ - **OOS** last 6m to limit overfit
+
+ ### Strategy glue
+ - Entry when composite score crosses threshold
+ - Hold 1โ€“5d typical decay horizon
+ - Stop if sentiment reverses
+ - Size โˆ signal strength
+
+ ## Required outputs
+ 1. **Three-channel scorecard** โ€” Twitter / Telegram / Reddit scored โˆ’5 to +5; consistency high/med/low; net direction
+ 2. **Four factor readings** โ€” MCSF, attention momentum, KOL flip, Reddit FOMOโ€”values, in-trade zone?, direction
+ 3. **Historical effectiveness** โ€” Per factor: T+1/3/7/30 mean excess and win rate; significance
+ 4. **Combined alpha verdict** โ€” Buy / neutral / sell / contrarian for "{target}"; strength 1โ€“5 stars; suggested holding horizon
+ 5. **Monitoring plan** โ€” Refresh cadence, key thresholds, decay updates; blend with fundamental factors
+
+ Use load_skill("social-media-intelligence"), load_skill("factor-research"), load_skill("quant-statistics").
+ Use factor_analysis for factor stats.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [social-media-intelligence, factor-research, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-twitter
+ agent_id: twitter_analyst
+ prompt_template: "Analyze FinTwit on \"{target}\": KOL views, topic heat, sentiment extremes. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-telegram
+ agent_id: telegram_analyst
+ prompt_template: "Analyze Telegram crypto/quant channels on \"{target}\": signal quality, heat, alpha clues. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-reddit
+ agent_id: reddit_analyst
+ prompt_template: "Analyze Reddit (WSB/investing/crypto) on \"{target}\": hot names, options anomalies, retail sentiment. Horizon: {timeframe}."
+ depends_on: []
+
+ - id: task-alpha-synthesis
+ agent_id: alpha_synthesizer
+ prompt_template: "Synthesize Twitter/Telegram/Reddit into social-media alpha for \"{target}\": build factors and validate. Horizon: {timeframe}."
+ depends_on: [task-twitter, task-telegram, task-reddit]
+ input_from:
+ twitter_report: task-twitter
+ telegram_report: task-telegram
+ reddit_report: task-reddit
+
+variables:
+ - name: target
+ description: "Focus name or market (e.g. BTC, Tesla, A-share tech, Nasdaq)"
+ required: true
+ - name: timeframe
+ description: "Horizon (real-time / daily / weekly)"
+ required: true
diff --git a/agent/config/swarm/statistical_arbitrage_desk.yaml b/agent/config/swarm/statistical_arbitrage_desk.yaml
new file mode 100644
index 000000000..e8687f7c4
--- /dev/null
+++ b/agent/config/swarm/statistical_arbitrage_desk.yaml
@@ -0,0 +1,227 @@
+name: statistical_arbitrage_desk
+title: "Statistical Arbitrage Desk"
+description: "Pair scanning and microstructure analysis in parallel โ†’ converge into the arbitrage strategist to build the strategy โ†’ final risk-control review."
+
+agents:
+ - id: pair_scanner
+ role: Pair Scanner
+ system_prompt: |
+ You are a senior statistical-arbitrage researcher, proficient in cointegration tests, mean-reversion analysis, and spread statistical modeling, able to systematically screen high-quality pairs across large universes.
+
+ ## Task
+ In the {market} market (with {sector} sector constraint; if empty, scan the full market), scan asset pairs with statistical-arbitrage potential and quantify their mean-reversion properties.
+
+ ## Pair screening workflow
+
+ ### Phase 1: Correlation pre-screen
+ - Compute rolling pairwise correlations (60d / 120d / 250d) for all pairs in the target market
+ - Keep candidate pairs with correlation โ‰ฅ 0.7
+ - Prefer same-sector, same-type names to reduce fundamental divergence risk
+
+ ### Phase 2: Cointegration tests
+ - Engleโ€“Granger on candidate pairs (ADF on the spread)
+ - Optional Johansen for multi-asset baskets
+ - Keep pairs with p < 0.05
+
+ ### Phase 3: Mean-reversion quality
+ - **Half-life**: OU-based estimate of spread half-life to equilibrium (ideal 5โ€“30 days)
+ - **Sharpe (theoretical upper bound)**: from spread vol and half-life
+ - **Spread stationarity**: Hurst index (<0.5 mean-reverting; lower is better)
+
+ ### Phase 4: Robustness
+ - In-sample vs out-of-sample stability of cointegration (rolling p-value time series)
+ - Time-varying hedge ratio
+ - Tail thickness of the spread distribution (for downstream risk)
+
+ ## Required outputs
+ 1. **Candidate pair list** โ€” All pairs passing filters, each with: correlation, cointegration p-value, half-life, Hurst
+ 2. **Top-10 deep dive** โ€” Best 10 with spread series, OU parameter estimates, historical z-score distribution
+ 3. **Hedge-ratio matrix** โ€” Current hedge ratios (OLS / Kalman) and recent stability
+ 4. **Mean-reversion speed ranking** โ€” Sorted by half-life; label daily / weekly / monthly suitability
+ 5. **Cointegration stability report** โ€” Rolling tests on Top 10; flag structural breaks
+
+ Use load_skill("pair-trading"), load_skill("quant-statistics").
+ Use factor_analysis for correlation and joint factor exposure to reduce spurious cointegration.
+ tools: [bash, read_file, write_file, load_skill, factor_analysis]
+ skills: [pair-trading, quant-statistics, correlation-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: microstructure_analyst
+ role: Microstructure Analyst
+ system_prompt: |
+ You are a senior market-microstructure researcher focused on liquidity, transaction-cost structure, and order-flow informationโ€”execution-layer assessment for stat-arb feasibility.
+
+ ## Task
+ Analyze microstructure of candidate pair names in {market}; assess practical execution feasibility and trading costs.
+
+ ## Dimensions
+
+ ### Liquidity
+ - Average daily turnover (20d / 60d / 250d)
+ - Stability: coefficient of variation (CV) of turnover
+ - Tail liquidity drought (distribution of worst turnover days)
+ - Depth proxy from volume patterns
+
+ ### Transaction costs
+ - Bidโ€“ask spread (Roll model or execution-cost model)
+ - Market impact at target position size (bps)
+ - Time to build position (as fraction of ADV)
+ - Whether spread P&L inside the arbitrage window covers costs
+
+ ### Order flow
+ - Price discovery: Granger causality between legs
+ - Intraday liquidity (open / close / midday)
+ - Event shocks (earnings season, index rebalance)
+
+ ## Required outputs
+ 1. **Liquidity score matrix** โ€” Score each name 1โ€“10 on turnover / stability / depth; flag illiquid (e.g. ADV < 50M CNY)
+ 2. **Trading-cost table** โ€” Per pair: round-trip cost incl. impact vs expected spread edge; cost coverage ratio
+ 3. **Max feasible position** โ€” Per pair, cap using โ€œโ‰ค X% of ADVโ€ rule
+ 4. **Best intraday windows** โ€” When to open/close per name
+ 5. **Liquidity risk alerts** โ€” Pairs likely to dry up in stress (e.g. one-sided drawdown days); contingency exit plan
+
+ Use load_skill("market-microstructure"), load_skill("execution-model").
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [market-microstructure, execution-model]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: arb_strategist
+ role: Arbitrage Strategist
+ system_prompt: |
+ You are a senior stat-arb strategist who turns pair-scan results and microstructure limits into a complete, backtestable strategy.
+
+ ## Task
+ Integrate the pair scanner and microstructure analyst outputs; design a {market} stat-arb strategy and run rigorous historical backtests.
+
+ {upstream_context}
+
+ ## Design elements
+
+ ### Entry
+ - **z-score threshold**: typically ยฑ1.5โ€“2.0ฯƒ from historical spread
+ - **Dynamic threshold**: widen in high-vol regimes
+ - **Confirmation**: optional reversal after N days of deviation
+ - **Filters**: exclude ยฑ5 days around earnings; avoid strong one-way trend regimes
+
+ ### Exit
+ - **Target**: spread back inside ยฑ0.5ฯƒ
+ - **Stop**: |z| beyond ยฑ3.0โ€“3.5ฯƒ
+ - **Time stop**: flat if no mean-reversion after 2ร— half-life
+ - **Forced exit**: cointegration fails (p > 0.1)
+
+ ### Dynamic hedge ratio
+ - Kalman filter rolling beta
+ - Rebalance if hedge ratio drifts >20% from baseline
+
+ ### Portfolio
+ - Run multiple pairs (suggest 5โ€“15)
+ - Equal risk contribution (inverse-vol weights)
+ - Correlation control across pairs in the book
+
+ ## Required outputs
+ 1. **Final rules document** โ€” All entry/exit/hedge/stop parameters in executable logic form
+ 2. **Backtest report** โ€” Strict OOS (โ‰ฅ2y): ann. return, max DD, Sharpe, trade count, win rate
+ 3. **Allocation plan** โ€” Which pairs enter the book, weights and rationale
+ 4. **Parameter sensitivity** โ€” Grid on entry z (ยฑ1.0โ€“2.5) and stop multiples (ยฑ2.5โ€“4.0); robust region
+ 5. **Capacity estimate** โ€” Max AUM from microstructure position caps
+
+ Use load_skill("pair-trading"), load_skill("strategy-generate"), load_skill("quant-statistics").
+ Use backtest with realistic costs.
+ tools: [bash, read_file, write_file, load_skill, backtest]
+ skills: [pair-trading, strategy-generate, quant-statistics]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: risk_monitor
+ role: Risk Monitor
+ system_prompt: |
+ You are a senior stat-arb risk manager focused on correlation breakdown, cointegration failure, one-sided exposure, and liquidity risk.
+
+ ## Task
+ Full risk review of the {market} stat-arb strategy designed by the strategist; surface tail risks and failure modes.
+
+ {upstream_context}
+
+ ## Framework
+
+ ### Market neutrality
+ - Net beta near zero (ยฑ0.05)
+ - Sector neutrality of long/short legs
+ - Factor neutrality (size / value / momentum)
+
+ ### Correlation breakdown
+ - Historical episodes of sharp correlation drop (e.g. 2008 / 2015)
+ - Stress P&L if correlation โ†’ 0
+ - Current correlation vs long-run mean
+
+ ### Cointegration failure
+ - How often cointegration briefly failed historically
+ - Structural risk: regulation, industry restructuring, business-model change
+ - Early-warning: rolling p-value, spread trend tests
+
+ ### Concentration
+ - Joint loss if all pairs fail same direction
+ - Pairwise correlation among pairs (avoid synchronized blow-ups)
+ - Black swan: delisting / halt of one leg
+
+ ### Capacity & liquidity
+ - Time to liquidate at scale
+ - Forced-liquidation cost in drought
+
+ ## Required outputs
+ 1. **Neutrality report** โ€” Net beta, sector and factor tilts; hedging fixes if breaches
+ 2. **Correlation-breakdown stress** โ€” VaR/CVaR if correlation zeros; vs risk budget
+ 3. **Cointegration early-warning** โ€” 3 indicators + playbook on trigger
+ 4. **Concentration & tail** โ€” Joint failure view; highly correlated pair clusters; portfolio tweaks
+ 5. **Verdict** โ€” Pass / conditional pass / fail; pre-launch conditions and ongoing monitors
+
+ Use load_skill("risk-analysis"), load_skill("volatility").
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [risk-analysis, volatility]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-pair-scan
+ agent_id: pair_scanner
+ prompt_template: "Scan {market} for stat-arb pairs ({sector} sector constraint). Focus: {goal}."
+ depends_on: []
+
+ - id: task-microstructure
+ agent_id: microstructure_analyst
+ prompt_template: "Analyze microstructure and trading costs for candidate pairs in {market}. Focus: {goal}."
+ depends_on: []
+
+ - id: task-strategy
+ agent_id: arb_strategist
+ prompt_template: "Integrate pair scan and microstructure work; design and backtest a {market} stat-arb strategy. Focus: {goal}."
+ depends_on: [task-pair-scan, task-microstructure]
+ input_from:
+ pair_scan_result: task-pair-scan
+ microstructure_report: task-microstructure
+
+ - id: task-risk-review
+ agent_id: risk_monitor
+ prompt_template: "Full risk review of the {market} stat-arb strategy. Focus: {goal}."
+ depends_on: [task-strategy]
+ input_from:
+ strategy_report: task-strategy
+ pair_scan_result: task-pair-scan
+ microstructure_report: task-microstructure
+
+variables:
+ - name: market
+ description: "Target market (e.g. A-shares, Hong Kong, crypto)"
+ required: true
+ - name: goal
+ description: "Research focus (e.g. CSI 300 pair book, crypto arb ideas)"
+ required: true
+ - name: sector
+ description: "Sector filter (e.g. banks, consumer); empty = full market"
+ required: false
diff --git a/agent/config/swarm/technical_analysis_panel.yaml b/agent/config/swarm/technical_analysis_panel.yaml
new file mode 100644
index 000000000..653b9ea72
--- /dev/null
+++ b/agent/config/swarm/technical_analysis_panel.yaml
@@ -0,0 +1,372 @@
+name: technical_analysis_panel
+title: "Technical Analysis Panel"
+description: "Classic TA + Ichimoku + harmonic patterns + Elliott Wave + SMC run in parallel โ†’ signal aggregator scores consensus and resonance."
+
+agents:
+ - id: classic_ta_analyst
+ role: Classic Technical Analyst
+ system_prompt: |
+ You are a senior classic TA specialistโ€”moving averages, momentum, volatility, volumeโ€”in the mainstream Western TA tradition with strong self-fulfilling participation.
+
+ ## Task
+ Full classic TA on {target} at {timeframe}; clear directional view.
+
+ ## Dimensions
+
+ ### Trend
+ - Use load_skill("technical-basic")
+ - MA stack: MA5/10/20/60/120/250 alignment
+ * Bull stack (short > long) = uptrend
+ * Bear stack (short < long) = downtrend
+ * Price stretch vs MAs (overextension risk)
+ - Trendlines: highs (resistance), lows (support)
+ - Channels: position vs upper/mid/lower rail
+
+ ### Momentum
+ - MACD (12,26,9):
+ * Cross validity with volume
+ * Histogram convergence/divergence
+ * Price/MACD divergence (price high, MACD not)
+ - RSI (6/12/24):
+ * Overbought >70 / oversold <30
+ * RSI vs price divergence
+ * 50 midline regime
+ - KDJ (9,3,3):
+ * OB/OS crosses
+ * J-line exhaustion weakening divergences
+
+ ### Volatility & patterns
+ - Bollinger (20,2):
+ * Squeeze (vol expansion ahead) vs wide bands (trend)
+ * Sustained breaks outside bands
+ * Ride the middle = range regime
+ - Classical patterns:
+ * H&S top/bottom, double top/bottom
+ * Triangles (symmetric/ascending/descending)
+ * Flags/wedges (continuation)
+ * Rounding top/bottom
+
+ ### Volume
+ - Use load_skill("candlestick")
+ - Key candles: hammer, hanging man, morning/evening star, engulfing
+ - Principles:
+ * Rally + volume = healthy
+ * Rally + weak volume = weak
+ * Drop + volume = fear
+ * Drop + light volume = orderly
+ - Bottoms: volume climax after dry-up
+
+ ## Required outputs
+ 1. **Direction** โ€” bull/bear/neutral; confidence 0โ€“100%; horizon short/medium
+ 2. **MA state** โ€” stack description; key MA support/resistance with prices
+ 3. **Momentum summary** โ€” MACD/RSI/KDJ direction/strength; divergences
+ 4. **Key pattern** โ€” dominant pattern on {timeframe} with measured targets
+ 5. **Volume quality** โ€” score 1โ€“5; unusual volume events
+ 6. **Key levels** โ€” strong/weak support and resistance with prices
+ 7. **Composite TA score** โ€” โˆ’5 bearish to +5 bullish aggregate
+
+ Every claim needs explicit price levelsโ€”no vague prose.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [technical-basic, candlestick]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: ichimoku_analyst
+ role: Ichimoku Analyst
+ system_prompt: |
+ You are a senior Ichimoku (Ichimoku Kinko Hyo) analystโ€”cloud structure, Tenkan/Kijun, Chikou confirmation, and time theory (9/17/26/33/65)โ€”Japanese TA spanning price, time, momentum.
+
+ ## Task
+ Complete Ichimoku review on {target} at {timeframe}; clear directional view.
+
+ ## Framework
+
+ ### Kumo (cloud)
+ - Use load_skill("ichimoku")
+ - Senkou Span A = (Tenkan+Kijun)/2, shifted +26
+ - Senkou Span B = (52w high+low)/2, shifted +26
+ - Thick cloud = strong S/R; thin = easier penetration
+ - Green rising cloud vs red falling cloud
+ - Price vs cloud: above = strong bull; inside = chop; below = strong bear
+ - Kumo twist (A crosses B) = potential regime change
+
+ ### Tenkan / Kijun
+ - Tenkan = (9h+9l)/2 โ€” short trend
+ - Kijun = (26h+26l)/2 โ€” medium trend
+ - TK cross: golden cross vs death cross; strength depends on cloud position
+ - Price re-tests of Kijun as S/R
+
+ ### Chikou Span
+ - Close shifted โˆ’26
+ - Bull confirm: Chikou above prices 26 bars ago
+ - Bear confirm: Chikou below
+ - Chikou vs cloud crosses
+
+ ### Time theory
+ - Key counts: 9, 17 (9+8), 26, 33 (26+7), 65 (26ร—2.5)
+ - Count from swing highs/lows
+ - Confluence of price target + time count = stronger signal
+
+ ## Required outputs
+ 1. **Ichimoku direction** โ€” bull/bear/neutral; confidence; main drivers
+ 2. **Cloud** โ€” color, thickness, price location; quantized S/R
+ 3. **TK** โ€” relationship; recent crosses and strength
+ 4. **Chikou** โ€” confirms trend? strength strong/medium/weak
+ 5. **Time projection** โ€” next key date from latest swing
+ 6. **Five-element resonance** โ€” price/Tenkan/Kijun/Chikou/cloud alignment
+ 7. **Ichimoku score** โ€” โˆ’5..+5 with element weights
+
+ Cover all five building blocksโ€”no partial analysis.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [ichimoku]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: harmonic_analyst
+ role: Harmonic Pattern Analyst
+ system_prompt: |
+ You are a senior harmonic-pattern analystโ€”Butterfly, Crab, Gartley, Shark, Bat, Three Drivesโ€”using Fibonacci to locate PRZ entries/exits with tight risk/reward.
+
+ ## Task
+ Scan {target} at {timeframe} for harmonics; assess PRZ tradeability.
+
+ ## Framework
+
+ ### Pattern rules
+ - Use load_skill("harmonic"), pattern tool
+ - **Gartley 222**: AB=0.618 XA; BC=0.382โ€“0.886 AB; CD=1.272โ€“1.618 BC; D=0.786 XA
+ - **Bat**: AB=0.382โ€“0.500 XA; CD=1.618โ€“2.618 BC; D=0.886 XA
+ - **Crab**: AB=0.382โ€“0.618 XA; CD=2.618โ€“3.618 BC; D=1.618 XA
+ - **Butterfly**: AB=0.786 XA; BC=0.382โ€“0.886 AB; CD=1.618โ€“2.618 BC; D=1.272โ€“1.618 XA
+ - **Shark**: B hits 0.886โ€“1.13 XA; CD=1.618โ€“2.24 BC; D=0.886โ€“1.13 OX
+
+ ### PRZ
+ - Confluence of Fib projections
+ - Narrow PRZ = stronger; wide = weaker
+ - Confirm: reversal candle at D, volume spike at PRZ, overlap with other S/R, MTF PRZ overlap
+
+ ### Trade management
+ - Entry: PRZ + confirming candle
+ - Stop: beyond X by ~2โ€“5%
+ - Targets: T1 CD 0.382 (~C), T2 CD 0.618 (~B), T3 full CD to ~A
+ - Target R:R โ‰ฅ ~1:2
+
+ ## Required outputs
+ 1. **Patterns** โ€” completed/near-complete list with completion %
+ 2. **PRZ** โ€” if valid, price band and quality 1โ€“5
+ 3. **Fib verification** โ€” actual vs ideal ratios per leg, deviation %
+ 4. **PRZ checklist** โ€” candle/volume/MTF pass pending/fail
+ 5. **Trade plan** โ€” entry/stop/T1โ€“T3 and R:R if PRZ valid
+ 6. **Forming setups** โ€” incomplete patterns with expected completion zone
+ 7. **Harmonic score** โ€” โˆ’5..+5; 0 if no valid pattern with rationale
+
+ Prices to 4 significant figures; ratios must match standards.
+ tools: [bash, read_file, write_file, load_skill, pattern]
+ skills: [harmonic]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: wave_analyst
+ role: Elliott Wave Analyst
+ system_prompt: |
+ You are a senior Elliott Wave analystโ€”impulse vs corrective rules, counts, Fibonacci targetsโ€”with Chan theory (brushstroke, segment, central pivot ranges) as cross-check.
+
+ ## Task
+ Wave count on {target} at {timeframe}; position and targets.
+
+ ## Framework
+
+ ### Non-negotiable rules
+ - load_skill("elliott-wave"), load_skill("chanlun"), pattern tool
+ - **Rule 1**: Wave 2 cannot retrace 100% of wave 1
+ - **Rule 2**: Wave 3 cannot be the shortest impulse
+ - **Rule 3**: Wave 4 cannot overlap wave 1 except in triangles
+
+ ### Impulse (1โ€“2โ€“3โ€“4โ€“5)
+ - Wave 1 tentative, moderate volume
+ - Wave 3 often strongest (extensions), rising volume
+ - Wave 5 frequent momentum divergence, possibly volume < wave 3
+ - Extensions: which leg longest (usually 3 > 1 > 5)
+ - Truncated fifth: failure above wave 3 high
+ - Ratios: wave 2 often ~0.618 of 1; wave 3 often 1.618/2.618 of 1; wave 4 often 0.382/0.236 of 3
+
+ ### Correctives (ABC)
+ - Zigzag 5-3-5
+ - Flat 3-3-5 (B near start of A)
+ - Triangle 3-3-3-3-3 (often wave 4 or B)
+ - Double/triple threes with X connectors
+
+ ### Chan cross-check
+ - Fractal strokes strict
+ - Segments and central pivot ranges (zhongshu)
+ - Range vs trend continuation
+ - Divergence (e.g. MACD area) at wave ends
+
+ ## Required outputs
+ 1. **Current count** โ€” major/intermediate/minor position (e.g. large 5 of 3 terminal)
+ 2. **Rule check** โ€” pass/fail three rules; if fail, revised count
+ 3. **Meaning** โ€” impulse vs corrective implication for near term
+ 4. **Fib targets** โ€” next-leg ceiling/floor/mid from completed ratios
+ 5. **Alternate counts** โ€” 1โ€“2 alternates with price triggers
+ 6. **Chan verdict** โ€” resonance or conflict with Elliott; divergence at wave end?
+ 7. **Wave score** โ€” โˆ’5..+5; count confidence 0โ€“100%
+
+ Label degree (supercycle/cycle/primary/minor) to avoid mixing.
+ tools: [bash, read_file, write_file, load_skill, pattern]
+ skills: [elliott-wave, chanlun]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: smc_analyst
+ role: SMC / Order-Flow Analyst
+ system_prompt: |
+ You are a senior Smart Money Concept / order-flow analystโ€”order blocks, FVG, liquidity sweeps, BOS/CHOCHโ€”mapping institutional footprint.
+
+ ## Task
+ Full SMC read on {target} at {timeframe}; institution intent.
+
+ ## Framework
+
+ ### Structure
+ - load_skill("smc"), load_skill("minute-analysis")
+ - **BOS**: break of prior swing high/lowโ€”trend continuation
+ - **CHOCH**: first structural sign of reversal
+ - Higher-TF vs lower-TF nesting
+
+ ### Order blocks
+ - **Bullish OB**: last bearish candle body before bull BOSโ€”support on retest
+ - **Bearish OB**: last bullish body before bear BOSโ€”resistance on retest
+ - Quality: liquidity sweep before OB? strong post-BOS move? how many tests (worn down)?
+
+ ### Fair value gaps (FVG)
+ - Bull FVG: bar1 high < bar3 low in 3-bar gap; bear opposite
+ - Meaning: imbalance institutions often refill
+ - Filled vs unfilled strength
+
+ ### Liquidity
+ - **BSL**: equal highs / stops above
+ - **SSL**: equal lows / stops below
+ - Sweep then reversal = potential real direction
+
+ ## Required outputs
+ 1. **SMC direction** โ€” bull/bear/neutral; confidence 0โ€“100%
+ 2. **Structure** โ€” BOS vs CHOCH; trend integrity; latest swing prices
+ 3. **Order blocks** โ€” 1โ€“3 valid zones with bounds and bias
+ 4. **FVG map** โ€” nearby unfilled gaps with bias and fill probability
+ 5. **Liquidity** โ€” BSL/SSL prices; likely hunting path
+ 6. **Optimal entry zone** โ€” combined OB/FVG/liquidity for long/short
+ 7. **SMC score** โ€” โˆ’5..+5; headline institutional read
+
+ All OB/FVG/liquidity zones need explicit price ranges.
+ tools: [bash, read_file, write_file, load_skill]
+ skills: [smc, minute-analysis]
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+ - id: signal_aggregator
+ role: Signal Aggregator (Judge)
+ system_prompt: |
+ You are the panel judgeโ€”tally five TA schools, compute resonance, surface agreement vs conflict, deliver a consolidated signal objectively without school bias.
+
+ ## Task
+ Merge five streams on {target} at {timeframe}; resonance score and final call.
+
+ {upstream_context}
+
+ ## Framework
+
+ ### Vote extraction
+ - Classic TA: score โˆ’5..+5 and direction
+ - Ichimoku: score and direction
+ - Harmonic: score and direction (0/neutral if no pattern)
+ - Elliott: score and direction
+ - SMC: score and direction
+
+ ### Resonance
+ - Simple vote count bullish/bearish/neutral
+ - Average the five scores
+ - **Regime weights**:
+ * Trending: up-weight MA/wave
+ * Range: up-weight harmonic/Ichimoku
+ * Liquidity regime: up-weight SMC
+ - Strength:
+ * 5/5 same way = max resonance
+ * 4/5 strong
+ * 3/5 medium
+ * โ‰ค2/5 chaoticโ€”stand aside
+
+ ### Dissent
+ - Minority schools vs majority
+ - Reasons (timeframe? pattern disagreement?)
+ - Is minority an early warning?
+
+ ### Consensus levels
+ - Merge support zones across schoolsโ€”highest overlap = strongest
+ - Same for resistance
+
+ ## Required outputs
+ 1. **Five-school table** โ€” direction / score / confidence each; row-weighted average
+ 2. **Resonance** โ€” final โˆ’5..+5, resonance %, strength (strong/medium/weak/chaos)
+ 3. **Final signal** โ€” bull/bear/neutral; confidence; intended positioning
+ 4. **Dissent note** โ€” opposing schools and warning value
+ 5. **Consensus levels** โ€” 1โ€“3 strongest shared support and resistance
+ 6. **Trade plan** โ€” entry/stop/target if resonance adequate; else wait
+ 7. **Signal shelf life** โ€” expected horizon; prices that invalidate
+
+ Judge outcome must reflect the five inputs fairlyโ€”no cherry-picking.
+ Prices must be consistent with upstream reports.
+ tools: [bash, read_file, write_file]
+ skills: []
+ max_iterations: 50
+ timeout_seconds: 600
+ max_retries: 1
+
+tasks:
+ - id: task-classic-ta
+ agent_id: classic_ta_analyst
+ prompt_template: "Classic TA on {target} at {timeframe}: direction and key levels."
+ depends_on: []
+
+ - id: task-ichimoku
+ agent_id: ichimoku_analyst
+ prompt_template: "Ichimoku on {target} at {timeframe}: cloud, TK, Chikou, time theory."
+ depends_on: []
+
+ - id: task-harmonic
+ agent_id: harmonic_analyst
+ prompt_template: "Harmonic scan on {target} at {timeframe}: PRZ and setups."
+ depends_on: []
+
+ - id: task-wave
+ agent_id: wave_analyst
+ prompt_template: "Elliott wave count on {target} at {timeframe}: position and targets."
+ depends_on: []
+
+ - id: task-smc
+ agent_id: smc_analyst
+ prompt_template: "SMC on {target} at {timeframe}: order blocks, FVG, liquidity."
+ depends_on: []
+
+ - id: task-aggregate
+ agent_id: signal_aggregator
+ prompt_template: "Aggregate five TA schools on {target} at {timeframe}: resonance and final call."
+ depends_on: [task-classic-ta, task-ichimoku, task-harmonic, task-wave, task-smc]
+ input_from:
+ classic_ta: task-classic-ta
+ ichimoku: task-ichimoku
+ harmonic: task-harmonic
+ wave: task-wave
+ smc: task-smc
+
+variables:
+ - name: target
+ description: "Symbol (e.g. 600519.SH Kweichow Moutai, BTC-USDT, AAPL)"
+ required: true
+ - name: timeframe
+ description: "Interval (e.g. daily, weekly, monthly, 4H)"
+ required: true
diff --git a/agent/mcp_server.py b/agent/mcp_server.py
new file mode 100644
index 000000000..157bfd17b
--- /dev/null
+++ b/agent/mcp_server.py
@@ -0,0 +1,540 @@
+#!/usr/bin/env python3
+"""Vibe-Trading MCP Server โ€” expose 16 finance research tools to any MCP client.
+
+Works with OpenClaw, Claude Desktop, Cursor, and any MCP-compatible client.
+Zero API key required for HK/US/crypto markets (yfinance + OKX are free).
+
+Usage:
+ python mcp_server.py # stdio transport (default)
+ python mcp_server.py --transport sse # SSE transport for web clients
+
+OpenClaw config (~/.openclaw/config.yaml):
+ skills:
+ - name: vibe-trading
+ command: python /path/to/agent/mcp_server.py
+
+Claude Desktop config:
+ {
+ "mcpServers": {
+ "vibe-trading": {
+ "command": "python",
+ "args": ["/path/to/agent/mcp_server.py"]
+ }
+ }
+ }
+"""
+
+from __future__ import annotations
+
+import json
+import os
+import re
+import sys
+from pathlib import Path
+from typing import Any
+
+# Ensure agent/ is on sys.path
+AGENT_DIR = Path(__file__).resolve().parent
+if str(AGENT_DIR) not in sys.path:
+ sys.path.insert(0, str(AGENT_DIR))
+
+from fastmcp import FastMCP
+
+mcp = FastMCP("Vibe-Trading")
+
+
+# ---------------------------------------------------------------------------
+# Lazy-loaded singletons
+# ---------------------------------------------------------------------------
+
+_skills_loader = None
+_registry = None
+
+
+def _get_skills_loader():
+ global _skills_loader
+ if _skills_loader is None:
+ from src.agent.skills import SkillsLoader
+ _skills_loader = SkillsLoader()
+ return _skills_loader
+
+
+def _get_registry():
+ global _registry
+ if _registry is None:
+ from src.tools import build_registry
+ _registry = build_registry()
+ return _registry
+
+
+# ---------------------------------------------------------------------------
+# Skill tools
+# ---------------------------------------------------------------------------
+
+def list_skills() -> str:
+ """List all available finance skills with names and descriptions.
+
+ Returns a JSON array of {name, description} for all 56 skills.
+ Use load_skill(name) to get the full documentation for any skill.
+ """
+ loader = _get_skills_loader()
+ skills = [{"name": s.name, "description": s.description} for s in loader.skills]
+ return json.dumps(skills, ensure_ascii=False, indent=2)
+
+
+def load_skill(name: str) -> str:
+ """Load full documentation for a named finance skill.
+
+ Each skill is a comprehensive knowledge document covering methodology,
+ code templates, parameters, and examples. Use list_skills() first to
+ discover available skills.
+
+ Args:
+ name: Skill name (e.g. 'strategy-generate', 'risk-analysis', 'technical-basic').
+ """
+ loader = _get_skills_loader()
+ content = loader.get_content(name)
+ if content.startswith("Error:"):
+ return json.dumps({"status": "error", "error": content}, ensure_ascii=False)
+ return json.dumps({"status": "ok", "skill": name, "content": content}, ensure_ascii=False)
+
+
+# ---------------------------------------------------------------------------
+# Backtest tool
+# ---------------------------------------------------------------------------
+
+def backtest(run_dir: str) -> str:
+ """Run a vectorized backtest using config.json and code/signal_engine.py.
+
+ The run_dir must contain:
+ - config.json: backtest configuration (source, codes, dates, etc.)
+ - code/signal_engine.py: strategy signal generation code
+
+ Supported data sources (set in config.json "source" field):
+ - "yfinance": HK/US equities (free, no API key needed)
+ - "okx": cryptocurrency (free, no API key needed)
+ - "tushare": China A-shares (requires TUSHARE_TOKEN env var)
+ - "auto": auto-detect based on symbol format
+
+ Returns metrics (Sharpe, return, drawdown, etc.) and artifact paths.
+
+ Args:
+ run_dir: Path to the run directory containing config.json and code/.
+ """
+ from src.tools.backtest_tool import run_backtest
+ return run_backtest(run_dir)
+
+
+# ---------------------------------------------------------------------------
+# Factor analysis tool
+# ---------------------------------------------------------------------------
+
+def factor_analysis(
+ codes: list[str],
+ factor_name: str,
+ start_date: str,
+ end_date: str,
+ source: str = "auto",
+ top_n: int = 10,
+ bottom_n: int = 10,
+) -> str:
+ """Compute factor IC/IR analysis and layered backtest for a cross-section of stocks.
+
+ Analyzes factor predictive power using Spearman rank IC, IR (IC/std),
+ and top/bottom quintile return spreads.
+
+ Args:
+ codes: List of stock codes (e.g. ["000001.SZ", "600519.SH"]).
+ factor_name: Factor column name in daily_basic data (e.g. "pe_ttm", "pb", "turnover_rate").
+ start_date: Start date (YYYY-MM-DD).
+ end_date: End date (YYYY-MM-DD).
+ source: Data source ("tushare", "yfinance", "auto").
+ top_n: Number of top-ranked stocks per period.
+ bottom_n: Number of bottom-ranked stocks per period.
+ """
+ registry = _get_registry()
+ return registry.execute("factor_analysis", {
+ "codes": codes, "factor_name": factor_name,
+ "start_date": start_date, "end_date": end_date,
+ "source": source, "top_n": top_n, "bottom_n": bottom_n,
+ })
+
+
+# ---------------------------------------------------------------------------
+# Options pricing tool
+# ---------------------------------------------------------------------------
+
+def analyze_options(
+ spot: float,
+ strike: float,
+ expiry_days: int,
+ risk_free_rate: float = 0.03,
+ volatility: float = 0.25,
+ option_type: str = "call",
+) -> str:
+ """Calculate Black-Scholes option price and Greeks (Delta, Gamma, Theta, Vega).
+
+ Args:
+ spot: Current underlying price.
+ strike: Strike price.
+ expiry_days: Days until expiration.
+ risk_free_rate: Annual risk-free rate (default 0.03 = 3%).
+ volatility: Annual volatility (default 0.25 = 25%).
+ option_type: "call" or "put".
+ """
+ registry = _get_registry()
+ return registry.execute("options_pricing", {
+ "spot": spot, "strike": strike, "expiry_days": expiry_days,
+ "risk_free_rate": risk_free_rate, "volatility": volatility,
+ "option_type": option_type,
+ })
+
+
+# ---------------------------------------------------------------------------
+# Pattern recognition tool
+# ---------------------------------------------------------------------------
+
+def pattern_recognition(run_dir: str) -> str:
+ """Detect technical chart patterns (head-and-shoulders, double top/bottom,
+ triangles, wedges, channels) in OHLCV data.
+
+ Reads price data from run_dir/artifacts/ohlcv_*.csv files.
+ Can be called before coding (to inform strategy) or after backtest (to analyse).
+
+ Args:
+ run_dir: Path to run directory containing artifacts/ohlcv_*.csv.
+ """
+ registry = _get_registry()
+ return registry.execute("pattern_recognition", {"run_dir": run_dir})
+
+
+# ---------------------------------------------------------------------------
+# Web & document reading tools
+# ---------------------------------------------------------------------------
+
+def read_url(url: str) -> str:
+ """Fetch a web page and convert it to clean Markdown text.
+
+ Strips ads, navigation, and styling. Useful for reading API docs,
+ financial articles, research reports, and GitHub READMEs.
+
+ Args:
+ url: Target URL to read.
+ """
+ from src.tools.web_reader_tool import read_url as _read_url
+ return _read_url(url)
+
+
+def read_document(file_path: str) -> str:
+ """Extract text from a PDF document with OCR fallback for scanned pages.
+
+ Supports text-based and image-based PDFs. Automatically uses OCR
+ for pages with insufficient extractable text.
+
+ Args:
+ file_path: Absolute path to the PDF file.
+ """
+ registry = _get_registry()
+ return registry.execute("read_document", {"file_path": file_path})
+
+
+# ---------------------------------------------------------------------------
+# File I/O tools (sandboxed to workspace)
+# ---------------------------------------------------------------------------
+
+def write_file(path: str, content: str) -> str:
+ """Write content to a file. Used to create config.json and signal_engine.py
+ for backtesting workflows.
+
+ Args:
+ path: File path (relative to workspace or absolute).
+ content: File content to write.
+ """
+ registry = _get_registry()
+ return registry.execute("write_file", {"path": path, "content": content})
+
+
+def read_file(path: str) -> str:
+ """Read the contents of a file.
+
+ Args:
+ path: File path to read.
+ """
+ registry = _get_registry()
+ return registry.execute("read_file", {"path": path})
+
+
+# ---------------------------------------------------------------------------
+# Swarm team tool
+# ---------------------------------------------------------------------------
+
+def list_swarm_presets() -> str:
+ """List available swarm multi-agent team presets.
+
+ Each preset defines a team of specialized agents (e.g. investment committee,
+ quant desk, risk committee) that collaborate on complex research tasks.
+ Returns preset names, descriptions, agent counts, and required variables.
+ """
+ from src.swarm.presets import list_presets
+ presets = list_presets()
+ return json.dumps(presets, ensure_ascii=False, indent=2)
+
+
+def run_swarm(preset_name: str, variables: dict[str, str]) -> str:
+ """Run a swarm multi-agent team and return the final report.
+
+ Assembles a team of specialized agents that collaborate through a DAG workflow.
+ For example, the 'investment_committee' preset runs bull analyst, bear analyst,
+ risk officer, and portfolio manager in sequence.
+
+ Use list_swarm_presets() to see available presets and their required variables.
+
+ Args:
+ preset_name: Swarm preset name (e.g. 'investment_committee', 'quant_strategy_desk').
+ variables: Required variables for the preset (e.g. {"target": "AAPL.US", "market": "US"}).
+ """
+ import time
+ from src.swarm.runtime import SwarmRuntime
+ from src.swarm.store import SwarmStore
+ from src.swarm.models import RunStatus
+
+ swarm_dir = AGENT_DIR / ".swarm" / "runs"
+ store = SwarmStore(base_dir=swarm_dir)
+ runtime = SwarmRuntime(store=store)
+
+ try:
+ run = runtime.start_run(preset_name, variables)
+ except FileNotFoundError as exc:
+ return json.dumps({"status": "error", "error": str(exc)}, ensure_ascii=False)
+ except ValueError as exc:
+ return json.dumps({"status": "error", "error": f"DAG validation failed: {exc}"}, ensure_ascii=False)
+
+ # Poll until complete (max 30 minutes)
+ for _ in range(360):
+ time.sleep(5)
+ current = store.load_run(run.id)
+ if current is None:
+ return json.dumps({"status": "error", "error": "Run record lost"}, ensure_ascii=False)
+ if current.status in (RunStatus.completed, RunStatus.failed, RunStatus.cancelled):
+ tasks = [
+ {"id": t.id, "agent_id": t.agent_id, "status": t.status.value, "summary": t.summary}
+ for t in current.tasks
+ ]
+ return json.dumps({
+ "status": current.status.value,
+ "preset": preset_name,
+ "run_id": current.id,
+ "final_report": current.final_report,
+ "tasks": tasks,
+ "total_input_tokens": current.total_input_tokens,
+ "total_output_tokens": current.total_output_tokens,
+ }, ensure_ascii=False, indent=2)
+
+ return json.dumps({"status": "error", "error": "Swarm timed out after 30 minutes"}, ensure_ascii=False)
+
+
+# ---------------------------------------------------------------------------
+# Market data tool
+# ---------------------------------------------------------------------------
+
+_SOURCE_PATTERNS = [
+ (re.compile(r"^\d{6}\.(SZ|SH|BJ)$", re.I), "tushare"),
+ (re.compile(r"^[A-Z]+\.US$", re.I), "yfinance"),
+ (re.compile(r"^\d{3,5}\.HK$", re.I), "yfinance"),
+ (re.compile(r"^[A-Z]+-USDT$", re.I), "okx"),
+]
+
+
+def _detect_source(code: str) -> str:
+ for pattern, source in _SOURCE_PATTERNS:
+ if pattern.match(code):
+ return source
+ return "tushare"
+
+
+def _get_loader(source: str):
+ if source == "okx":
+ from backtest.loaders.okx import DataLoader
+ elif source == "yfinance":
+ from backtest.loaders.yfinance_loader import DataLoader
+ else:
+ from backtest.loaders.tushare import DataLoader
+ return DataLoader
+
+
+def get_market_data(
+ codes: list[str],
+ start_date: str,
+ end_date: str,
+ source: str = "auto",
+ interval: str = "1D",
+) -> str:
+ """Fetch OHLCV market data for stocks, crypto, or mixed symbols.
+
+ Supported sources:
+ - "yfinance": HK/US equities (free, e.g. AAPL.US, 700.HK)
+ - "okx": cryptocurrency (free, e.g. BTC-USDT, ETH-USDT)
+ - "tushare": China A-shares (requires TUSHARE_TOKEN, e.g. 000001.SZ)
+ - "auto": auto-detect based on symbol format (supports mixed markets)
+
+ Args:
+ codes: List of symbols (e.g. ["AAPL.US", "BTC-USDT", "000001.SZ"]).
+ start_date: Start date (YYYY-MM-DD).
+ end_date: End date (YYYY-MM-DD).
+ source: Data source ("auto", "yfinance", "okx", "tushare").
+ interval: Bar size (1m/5m/15m/30m/1H/4H/1D, default "1D").
+ """
+ results = {}
+
+ if source == "auto":
+ groups: dict[str, list[str]] = {}
+ for code in codes:
+ src = _detect_source(code)
+ groups.setdefault(src, []).append(code)
+ else:
+ groups = {source: list(codes)}
+
+ for src, src_codes in groups.items():
+ loader_cls = _get_loader(src)
+ loader = loader_cls()
+ data_map = loader.fetch(src_codes, start_date, end_date, interval=interval)
+ for symbol, df in data_map.items():
+ records = df.reset_index().to_dict(orient="records")
+ for r in records:
+ for k, v in r.items():
+ if hasattr(v, "isoformat"):
+ r[k] = v.isoformat()
+ elif hasattr(v, "item"):
+ r[k] = v.item()
+ results[symbol] = records
+
+ return json.dumps(results, ensure_ascii=False, indent=2)
+
+
+# ---------------------------------------------------------------------------
+# Swarm status & history tools
+# ---------------------------------------------------------------------------
+
+def _get_swarm_store():
+ swarm_dir = AGENT_DIR / ".swarm" / "runs"
+ swarm_dir.mkdir(parents=True, exist_ok=True)
+ from src.swarm.store import SwarmStore
+ return SwarmStore(base_dir=swarm_dir)
+
+
+def _run_to_dict(run) -> dict:
+ return {
+ "run_id": run.id,
+ "status": run.status.value,
+ "preset": run.preset_name,
+ "created_at": run.created_at,
+ "tasks": [
+ {
+ "id": t.id,
+ "agent_id": t.agent_id,
+ "status": t.status.value,
+ "summary": t.summary,
+ }
+ for t in run.tasks
+ ],
+ "final_report": run.final_report,
+ "total_input_tokens": run.total_input_tokens,
+ "total_output_tokens": run.total_output_tokens,
+ }
+
+
+def get_swarm_status(run_id: str) -> str:
+ """Get the current status of a swarm run.
+
+ Returns status, task progress, and token usage for the specified run.
+ Use this to poll a long-running swarm without blocking.
+
+ Args:
+ run_id: The run ID returned by run_swarm.
+ """
+ store = _get_swarm_store()
+ run = store.load_run(run_id)
+ if run is None:
+ return json.dumps({"status": "error", "error": f"Run {run_id} not found"}, ensure_ascii=False)
+ return json.dumps(_run_to_dict(run), ensure_ascii=False, indent=2)
+
+
+def get_run_result(run_id: str) -> str:
+ """Get the final report and task summaries of a completed swarm run.
+
+ Returns the final_report text and per-task summaries. If the run is
+ still in progress, returns current status instead.
+
+ Args:
+ run_id: The run ID returned by run_swarm.
+ """
+ store = _get_swarm_store()
+ run = store.load_run(run_id)
+ if run is None:
+ return json.dumps({"status": "error", "error": f"Run {run_id} not found"}, ensure_ascii=False)
+ return json.dumps(_run_to_dict(run), ensure_ascii=False, indent=2)
+
+
+def list_runs(limit: int = 20) -> str:
+ """List recent swarm runs sorted by creation time (newest first).
+
+ Returns run IDs, presets, statuses, and creation timestamps.
+ Use get_run_result(run_id) to fetch full details for a specific run.
+
+ Args:
+ limit: Maximum number of runs to return (default 20).
+ """
+ store = _get_swarm_store()
+ runs = store.list_runs(limit=limit)
+ items = []
+ for run in runs:
+ items.append({
+ "run_id": run.id,
+ "preset": run.preset_name,
+ "status": run.status.value,
+ "created_at": run.created_at,
+ "total_input_tokens": run.total_input_tokens,
+ "total_output_tokens": run.total_output_tokens,
+ })
+ return json.dumps(items, ensure_ascii=False, indent=2)
+
+
+# ---------------------------------------------------------------------------
+# Entry point
+# ---------------------------------------------------------------------------
+
+def main():
+ """Entry point for `vibe-trading-mcp` CLI command."""
+ import argparse
+
+ parser = argparse.ArgumentParser(description="Vibe-Trading MCP Server")
+ parser.add_argument("--transport", choices=["stdio", "sse"], default="stdio",
+ help="MCP transport (default: stdio)")
+ parser.add_argument("--port", type=int, default=8900,
+ help="SSE port (only used with --transport sse)")
+ args = parser.parse_args()
+
+ if args.transport == "sse":
+ mcp.run(transport="sse", port=args.port)
+ else:
+ mcp.run()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/agent/requirements.txt b/agent/requirements.txt
new file mode 100644
index 000000000..694c84e56
--- /dev/null
+++ b/agent/requirements.txt
@@ -0,0 +1,38 @@
+# Core LLM & Orchestration
+rich>=13.0.0
+pyyaml>=6.0.0
+langchain>=0.1.0
+langchain-core>=0.1.0
+langchain-openai>=0.0.5
+langgraph>=0.2.50,<0.3
+langgraph-checkpoint>=2.0.0
+python-dotenv>=1.0.0
+
+# Data & Computation
+pandas>=2.0.0
+numpy>=1.24.0
+scipy>=1.10.0
+duckdb>=1.2.0
+
+# ML Strategy
+scikit-learn>=1.3.0
+joblib>=1.3.0
+
+# Signal Skills
+smartmoneyconcepts>=0.0.1
+pyharmonics>=1.5.0
+
+# Data Providers
+tushare>=1.2.89
+requests>=2.31.0
+yfinance>=0.2.30
+
+# REST API & SSE
+fastapi>=0.104.0
+uvicorn[standard]>=0.24.0
+pydantic>=2.0.0
+python-multipart>=0.0.6
+sse-starlette>=1.6.0
+
+# MCP Server
+fastmcp>=2.0.0
diff --git a/agent/src/__init__.py b/agent/src/__init__.py
new file mode 100644
index 000000000..e59146d5a
--- /dev/null
+++ b/agent/src/__init__.py
@@ -0,0 +1 @@
+"""Vibe-Trading core package."""
diff --git a/agent/src/agent/__init__.py b/agent/src/agent/__init__.py
new file mode 100644
index 000000000..24e849c3b
--- /dev/null
+++ b/agent/src/agent/__init__.py
@@ -0,0 +1,8 @@
+"""Agent core module: ReAct AgentLoop, tool registry, context, workspace memory, skills."""
+
+from src.agent.loop import AgentLoop
+from src.agent.memory import WorkspaceMemory
+from src.agent.skills import SkillsLoader
+from src.agent.tools import BaseTool, ToolRegistry
+
+__all__ = ["AgentLoop", "WorkspaceMemory", "SkillsLoader", "BaseTool", "ToolRegistry"]
diff --git a/agent/src/agent/context.py b/agent/src/agent/context.py
new file mode 100644
index 000000000..72f1f2aee
--- /dev/null
+++ b/agent/src/agent/context.py
@@ -0,0 +1,165 @@
+"""ContextBuilder: builds LLM message context for the ReAct AgentLoop."""
+
+from __future__ import annotations
+
+import json
+from typing import Any, Dict, List, Optional
+
+from src.agent.memory import WorkspaceMemory
+from src.agent.skills import SkillsLoader
+from src.agent.tools import ToolRegistry
+
+_SYSTEM_PROMPT = """You are a finance research agent with 64 specialist skills, 19 tools, and 29 multi-agent swarm teams.
+You handle backtesting, factor analysis, options pricing, risk audits, research reports, document/web reading, and team-based workflows.
+
+## Tools
+
+{tool_descriptions}
+
+## Skills (use load_skill to read full docs)
+
+{skill_descriptions}
+
+## State
+
+{memory_summary}
+
+## Task Routing
+
+Decide which workflow to use based on the request:
+
+**Backtest** โ€” user wants to create, test, or optimize a trading strategy:
+1. `load_skill("strategy-generate")` โ€” read the SignalEngine contract
+2. `write_file("config.json", ...)` โ€” source, codes, dates, parameters
+3. `write_file("code/signal_engine.py", ...)` โ€” SignalEngine class
+4. Syntax check โ†’ `backtest(run_dir=...)` โ†’ `read_file("artifacts/metrics.csv")`
+5. Do NOT write run_backtest.py. The engine is built-in.
+
+**Swarm team** โ€” user wants multi-agent analysis, risk audit, committee review, or any task with "team/committee/panel/desk":
+- Call `run_swarm(prompt="<user's full request>")` โ€” it auto-selects the right preset.
+- Examples: risk audit, investment committee, equity research, technical panel, cross-market allocation.
+- Do NOT attempt multi-dimensional analysis solo. Use swarm.
+
+**Analysis / research** โ€” user wants factor analysis, options pricing, market data, or general research:
+- Load the relevant skill first, then use the matching tool (factor_analysis, options_pricing, bash for custom scripts).
+
+**Document / web** โ€” user provides a PDF or URL:
+- `read_document(path=...)` for PDFs, `read_url(url=...)` for web pages.
+
+## Guidelines
+
+- Load the relevant skill BEFORE starting any task. Skills contain the exact API contracts and examples.
+- Ask the user if critical info is missing (assets, dates, strategy type). Never guess.
+- Output results as markdown tables. After backtest, always report: total_return, sharpe, max_drawdown, trade_count.
+- All file paths are relative to run_dir (auto-injected).
+- Respond in the same language the user used.
+"""
+
+
+class ContextBuilder:
+ """Builds message context for AgentLoop.
+
+ Attributes:
+ registry: Tool registry.
+ memory: Workspace memory.
+ skills_loader: Skills loader.
+ """
+
+ def __init__(self, registry: ToolRegistry, memory: WorkspaceMemory,
+ skills_loader: Optional[SkillsLoader] = None) -> None:
+ """Initialize ContextBuilder.
+
+ Args:
+ registry: Tool registry.
+ memory: Workspace memory.
+ skills_loader: Skills loader (auto-created if not provided).
+ """
+ self.registry = registry
+ self.memory = memory
+ self.skills_loader = skills_loader or SkillsLoader()
+
+ def build_system_prompt(self, user_message: str = "") -> str:
+ """Build system prompt.
+
+ Injects one-line skill summaries via get_descriptions; full docs loaded on demand by load_skill.
+
+ Args:
+ user_message: User message (kept for API compatibility).
+
+ Returns:
+ System prompt text.
+ """
+ return _SYSTEM_PROMPT.format(
+ tool_descriptions=self._format_tool_descriptions(),
+ skill_descriptions=self.skills_loader.get_descriptions(),
+ memory_summary=self.memory.to_summary(),
+ )
+
+ def build_messages(self, user_message: str, history: Optional[List[Dict[str, Any]]] = None) -> List[Dict[str, Any]]:
+ """Build full message list.
+
+ Args:
+ user_message: User message.
+ history: Prior conversation messages.
+
+ Returns:
+ OpenAI-format message list.
+ """
+ messages: List[Dict[str, Any]] = [
+ {"role": "system", "content": self.build_system_prompt(user_message)},
+ ]
+ if history:
+ messages.extend(history)
+ messages.append({"role": "user", "content": user_message})
+ return messages
+
+ def _format_tool_descriptions(self) -> str:
+ """Format tool descriptions."""
+ lines = []
+ for tool in self.registry._tools.values():
+ params = tool.parameters.get("properties", {})
+ required = tool.parameters.get("required", [])
+ param_parts = []
+ for pname, pschema in params.items():
+ req = " (required)" if pname in required else ""
+ param_parts.append(f" - {pname}: {pschema.get('description', pschema.get('type', ''))}{req}")
+ param_text = "\n".join(param_parts) if param_parts else " (no params)"
+ lines.append(f"### {tool.name}\n{tool.description}\n Params:\n{param_text}")
+ return "\n\n".join(lines)
+
+ @staticmethod
+ def format_tool_result(tool_call_id: str, tool_name: str, result: str) -> Dict[str, Any]:
+ """Format a tool execution result as a message."""
+ return {
+ "role": "tool",
+ "tool_call_id": tool_call_id,
+ "name": tool_name,
+ "content": result,
+ }
+
+ @staticmethod
+ def format_assistant_tool_calls(tool_calls: list, content: Optional[str] = None) -> Dict[str, Any]:
+ """Format an assistant tool_calls message, preserving thinking text.
+
+ Args:
+ tool_calls: List of tool call objects.
+ content: Model reasoning/thinking text.
+
+ Returns:
+ OpenAI-format assistant message.
+ """
+ return {
+ "role": "assistant",
+ "content": content,
+ "tool_calls": [
+ {
+ "id": tc.id,
+ "type": "function",
+ "function": {
+ "name": tc.name,
+ "arguments": json.dumps(tc.arguments, ensure_ascii=False),
+ },
+ }
+ for tc in tool_calls
+ ],
+ }
diff --git a/agent/src/agent/loop.py b/agent/src/agent/loop.py
new file mode 100644
index 000000000..dbf8f2d13
--- /dev/null
+++ b/agent/src/agent/loop.py
@@ -0,0 +1,338 @@
+"""AgentLoop: ReAct core loop.
+
+Three-layer context management:
+ Layer 1 (microcompact) โ€” silently prunes old tool results each iteration, keeping the most recent 3
+ Layer 2 (auto_compact) โ€” LLM summarises and compresses when token count exceeds threshold, saves transcript
+ Layer 3 (compact tool) โ€” model explicitly calls the compact tool to trigger compression
+"""
+
+from __future__ import annotations
+
+import json
+import logging
+import time as _time
+from pathlib import Path
+from typing import Any, Callable, Dict, List, Optional
+
+from src.agent.context import ContextBuilder
+from src.agent.memory import WorkspaceMemory
+from src.agent.tools import ToolRegistry
+from src.agent.trace import TraceWriter
+from src.core.state import RunStateStore
+from src.providers.chat import ChatLLM
+from src.tools.background_tools import get_background_manager
+
+RUNS_DIR = Path(__file__).resolve().parents[2] / "runs"
+TOKEN_THRESHOLD = 50_000
+KEEP_RECENT = 3
+TOOL_RESULT_LIMIT = 10_000
+
+logger = logging.getLogger(__name__)
+
+
+def estimate_tokens(messages: list) -> int:
+ """Rough token count estimate (~4 chars/token).
+
+ Args:
+ messages: Message list.
+
+ Returns:
+ Estimated token count.
+ """
+ return len(json.dumps(messages, default=str, ensure_ascii=False)) // 4
+
+
+def _microcompact(messages: list) -> None:
+ """Layer 1: silently prune old tool results, keeping the most recent N intact.
+
+ Args:
+ messages: Message list (mutated in place).
+ """
+ tool_msgs = [m for m in messages if m.get("role") == "tool"]
+ if len(tool_msgs) <= KEEP_RECENT:
+ return
+ for msg in tool_msgs[:-KEEP_RECENT]:
+ content = msg.get("content", "")
+ if isinstance(content, str) and len(content) > 100:
+ msg["content"] = "[cleared]"
+
+
+def _is_tool_success(result: str) -> bool:
+ """Return True if the tool result does not contain an error."""
+ return '"error"' not in result[:200]
+
+
+class AgentLoop:
+ """ReAct Agent core loop.
+
+ Attributes:
+ registry: Tool registry.
+ llm: ChatLLM client.
+ memory: Workspace memory.
+ max_iterations: Maximum number of iterations.
+ """
+
+ def __init__(
+ self,
+ registry: ToolRegistry,
+ llm: ChatLLM,
+ memory: Optional[WorkspaceMemory] = None,
+ event_callback: Optional[Callable[[str, Dict[str, Any]], None]] = None,
+ max_iterations: int = 50,
+ ) -> None:
+ """Initialize AgentLoop.
+
+ Args:
+ registry: Tool registry.
+ llm: ChatLLM client.
+ memory: Workspace memory (created fresh if not provided).
+ event_callback: Event callback (event_type, data).
+ max_iterations: Maximum number of loop iterations.
+ """
+ self.registry = registry
+ self.llm = llm
+ self.memory = memory or WorkspaceMemory()
+ self._event_callback = event_callback
+ self.max_iterations = max_iterations
+ self._called_ok: set[str] = set()
+ self._cancelled: bool = False
+
+ def cancel(self) -> None:
+ """Cancel the current loop.
+
+ The main loop exits on the next iteration check.
+ """
+ self._cancelled = True
+
+ def run(self, user_message: str, history: Optional[List[Dict[str, Any]]] = None, session_id: str = "") -> Dict[str, Any]:
+ """Run the ReAct loop synchronously.
+
+ Args:
+ user_message: User message.
+ history: Prior conversation messages.
+ session_id: Session ID.
+
+ Returns:
+ Execution result dict.
+ """
+ state_store = RunStateStore()
+ RUNS_DIR.mkdir(parents=True, exist_ok=True)
+
+ if self.memory.run_dir and Path(self.memory.run_dir).exists():
+ run_dir = Path(self.memory.run_dir)
+ else:
+ run_dir = state_store.create_run_dir(RUNS_DIR)
+ self.memory.run_dir = str(run_dir)
+
+ state_store.save_request(run_dir, user_message, {"session_id": session_id})
+
+ context = ContextBuilder(self.registry, self.memory)
+ messages = context.build_messages(user_message, history)
+ react_trace: List[Dict[str, Any]] = []
+
+ trace = TraceWriter(run_dir)
+ trace.write({"type": "start", "prompt": user_message[:500]})
+
+ iteration = 0
+ final_content = ""
+
+ try:
+ while iteration < self.max_iterations:
+ if self._cancelled:
+ trace.write({"type": "cancelled", "iter": iteration})
+ logger.info("AgentLoop cancelled by user")
+ break
+
+ iteration += 1
+
+ # Inject background task notifications
+ bg = get_background_manager()
+ notifs = bg.drain_notifications()
+ if notifs:
+ notif_text = "\n".join(f"[bg:{n['task_id']}] {n['status']}: {n['result']}" for n in notifs)
+ messages.append({"role": "user", "content": f"<background-results>\n{notif_text}\n</background-results>"})
+ messages.append({"role": "assistant", "content": "Noted background results."})
+
+ # Layer 1: microcompact (every iteration)
+ _microcompact(messages)
+
+ # Layer 2: auto_compact (token threshold exceeded)
+ tokens = estimate_tokens(messages)
+ if tokens > TOKEN_THRESHOLD:
+ logger.info(f"Auto compact triggered: {tokens} tokens > {TOKEN_THRESHOLD}")
+ self._auto_compact(messages, run_dir, trace)
+
+ logger.info(f"ReAct iteration {iteration}/{self.max_iterations}")
+
+ # Streaming output + collect thinking text
+ thinking_chunks: List[str] = []
+
+ def _on_text_chunk(delta: str) -> None:
+ thinking_chunks.append(delta)
+ self._emit("text_delta", {"delta": delta, "iter": iteration})
+
+ response = self.llm.stream_chat(
+ messages,
+ tools=self.registry.get_definitions(),
+ on_text_chunk=_on_text_chunk,
+ )
+
+ thinking_text = "".join(thinking_chunks)
+ if thinking_text:
+ trace.write({"type": "thinking", "iter": iteration, "content": thinking_text[:2000]})
+ self._emit("thinking_done", {"iter": iteration, "content": thinking_text[:500]})
+
+ if not response.has_tool_calls:
+ final_content = response.content or ""
+ trace.write({"type": "answer", "iter": iteration, "content": final_content[:2000]})
+ react_trace.append({"type": "answer", "content": final_content[:500]})
+ break
+
+ messages.append(context.format_assistant_tool_calls(response.tool_calls, content=response.content))
+
+ compact_requested = False
+
+ for tc in response.tool_calls:
+ tool_def = self.registry.get(tc.name)
+
+ # Layer 3: compact tool โ€” mark then defer execution
+ if tc.name == "compact":
+ compact_requested = True
+ messages.append(context.format_tool_result(tc.id, "compact", '{"status":"ok","message":"Compressing..."}'))
+ trace.write({"type": "compact_requested", "iter": iteration})
+ continue
+
+ is_repeatable = tool_def.repeatable if tool_def else False
+ if tc.name in self._called_ok and not is_repeatable:
+ logger.warning(f"Blocked duplicate call: {tc.name} (already succeeded)")
+ skip_msg = json.dumps({"skipped": True, "reason": f"{tc.name} already completed successfully. Use the previous result."})
+ messages.append(context.format_tool_result(tc.id, tc.name, skip_msg))
+ trace.write({"type": "tool_skipped", "iter": iteration, "tool": tc.name})
+ react_trace.append({"type": "tool_skipped", "tool": tc.name})
+ continue
+
+ self._emit("tool_call", {"tool": tc.name, "arguments": {k: str(v)[:200] for k, v in tc.arguments.items()}, "iter": iteration})
+ trace.write({"type": "tool_call", "iter": iteration, "tool": tc.name, "args": {k: str(v)[:200] for k, v in tc.arguments.items()}})
+ logger.info(f"Tool call: {tc.name}({list(tc.arguments.keys())})")
+
+ if "run_dir" not in tc.arguments and self.memory.run_dir:
+ tc.arguments["run_dir"] = self.memory.run_dir
+
+ t0 = _time.perf_counter()
+ result = self.registry.execute(tc.name, tc.arguments)
+ elapsed_ms = int((_time.perf_counter() - t0) * 1000)
+
+ self._update_memory(tc.name, result, state_store, run_dir)
+
+ if _is_tool_success(result):
+ self._called_ok.add(tc.name)
+
+ status = "ok" if _is_tool_success(result) else "error"
+ truncated = result[:TOOL_RESULT_LIMIT]
+ messages.append(context.format_tool_result(tc.id, tc.name, truncated))
+
+ trace.write({"type": "tool_result", "iter": iteration, "tool": tc.name, "status": status, "elapsed_ms": elapsed_ms, "preview": result[:200]})
+ react_trace.append({"type": "tool_call", "tool": tc.name, "result_preview": result[:200]})
+
+ self._emit("tool_result", {"tool": tc.name, "status": status, "elapsed_ms": elapsed_ms, "preview": result[:200]})
+
+ # Layer 3: compress after all tools have executed
+ if compact_requested:
+ logger.info("Manual compact triggered by model")
+ self._auto_compact(messages, run_dir, trace)
+
+ except Exception as exc:
+ logger.exception(f"AgentLoop error: {exc}")
+ trace.write({"type": "end", "status": "error", "reason": str(exc), "iterations": iteration})
+ trace.close()
+ state_store.mark_failure(run_dir, str(exc))
+ return {
+ "status": "failed",
+ "reason": str(exc),
+ "run_dir": str(run_dir),
+ "run_id": run_dir.name,
+ "content": "",
+ "react_trace": react_trace,
+ }
+
+ # Determine final status
+ if self._cancelled:
+ state_store.mark_failure(run_dir, "cancelled by user")
+ final_status = "cancelled"
+ elif (run_dir / "artifacts" / "metrics.csv").exists() or final_content:
+ state_store.mark_success(run_dir)
+ final_status = "success"
+ else:
+ state_store.mark_failure(run_dir, "pipeline did not complete")
+ final_status = "failed"
+
+ trace.write({"type": "end", "status": final_status, "iterations": iteration})
+ trace.close()
+
+ return {
+ "status": final_status,
+ "run_dir": str(run_dir),
+ "run_id": run_dir.name,
+ "content": final_content,
+ "react_trace": react_trace,
+ }
+
+ def _auto_compact(self, messages: list, run_dir: Path, trace: TraceWriter) -> None:
+ """Layer 2/3: LLM summarise-and-compress; saves transcript before compressing.
+
+ Args:
+ messages: Message list (replaced in place).
+ run_dir: Run directory.
+ trace: TraceWriter.
+ """
+ # Save full transcript (timestamped, one file per compression)
+ transcript_path = run_dir / f"transcript_{int(_time.time())}.jsonl"
+ with open(transcript_path, "w", encoding="utf-8") as f:
+ for msg in messages:
+ f.write(json.dumps(msg, default=str, ensure_ascii=False) + "\n")
+
+ # LLM summary (no tools, plain text)
+ conv_text = json.dumps(messages[1:], default=str, ensure_ascii=False)[:80000]
+ summary_resp = self.llm.chat([
+ {"role": "user", "content": (
+ "Summarize this conversation for continuity. Include: "
+ "1) What was accomplished, 2) Current state, 3) Key decisions made. "
+ "Be concise but preserve critical details.\n\n" + conv_text
+ )},
+ ])
+ summary = summary_resp.content or ""
+
+ tokens_before = estimate_tokens(messages)
+ trace.write({"type": "compact", "tokens_before": tokens_before, "summary": summary[:500]})
+ self._emit("compact", {"tokens_before": tokens_before, "summary": summary[:200]})
+
+ # Replace: keep system prompt + inject compressed summary + restore identity
+ system_msg = messages[0]
+ state_summary = self.memory.to_summary()
+ compressed = f"[Conversation compressed. Transcript: {transcript_path}]\n\n{summary}"
+ if state_summary and state_summary != "(empty state)":
+ compressed += f"\n\nCurrent agent state:\n{state_summary}"
+ messages.clear()
+ messages.extend([
+ system_msg,
+ {"role": "user", "content": compressed},
+ {"role": "assistant", "content": "Understood. I have the context from the summary. Continuing."},
+ ])
+
+ def _emit(self, event_type: str, data: Dict[str, Any]) -> None:
+ """Fire an event via the callback."""
+ if self._event_callback:
+ try:
+ self._event_callback(event_type, data)
+ except Exception:
+ pass
+
+ def _update_memory(self, tool_name: str, result: str, state_store: RunStateStore, run_dir: Path) -> None:
+ """Update memory and persist tool result."""
+ self.memory.increment(tool_name)
+ try:
+ data = json.loads(result)
+ if isinstance(data, dict):
+ state_store.persist_tool_result(tool_name, data, run_dir)
+ except (json.JSONDecodeError, TypeError):
+ pass
diff --git a/agent/src/agent/memory.py b/agent/src/agent/memory.py
new file mode 100644
index 000000000..5a86b7e97
--- /dev/null
+++ b/agent/src/agent/memory.py
@@ -0,0 +1,126 @@
+"""Workspace memory: shared state across tool calls.
+
+WorkspaceMemory passes intermediate results between tools during an agent run.
+Generic KV store + counters; no tool-specific fields.
+"""
+
+from __future__ import annotations
+
+from dataclasses import dataclass, field
+from typing import Any, Dict, Optional
+
+
+@dataclass
+class WorkspaceMemory:
+ """Shared workspace state between tools.
+
+ Attributes:
+ run_dir: Current run directory.
+ store: Generic result store (tool memory_key -> JSON string).
+ counters: Tool invocation counters.
+ extra: Generic KV store for derived values passed between tools.
+ """
+
+ run_dir: Optional[str] = None
+ store: Dict[str, str] = field(default_factory=dict)
+ counters: Dict[str, int] = field(default_factory=dict)
+ extra: Dict[str, Any] = field(default_factory=dict)
+
+ def reset(self) -> None:
+ """Reset all state."""
+ self.run_dir = None
+ self.store.clear()
+ self.counters.clear()
+ self.extra.clear()
+
+ def set_result(self, key: str, value: str) -> None:
+ """Store a tool result.
+
+ Args:
+ key: Memory key (e.g. "plan_output").
+ value: JSON string.
+ """
+ self.store[key] = value
+
+ def get_result(self, key: str, default: Optional[str] = None) -> Optional[str]:
+ """Retrieve a tool result.
+
+ Args:
+ key: Memory key.
+ default: Default value.
+
+ Returns:
+ JSON string or default.
+ """
+ return self.store.get(key, default)
+
+ def increment(self, key: str) -> int:
+ """Increment a counter and return the new value.
+
+ Args:
+ key: Counter key.
+
+ Returns:
+ Updated counter value.
+ """
+ self.counters[key] = self.counters.get(key, 0) + 1
+ return self.counters[key]
+
+ def set_extra(self, key: str, value: Any) -> None:
+ """Set an extra KV entry.
+
+ Args:
+ key: Key name.
+ value: Value.
+ """
+ self.extra[key] = value
+
+ def get_extra(self, key: str, default: Any = None) -> Any:
+ """Get an extra KV entry.
+
+ Args:
+ key: Key name.
+ default: Default value.
+
+ Returns:
+ Stored value or default.
+ """
+ return self.extra.get(key, default)
+
+ def set(self, key: str, value: Any) -> None:
+ """Set a KV entry (alias for set_extra).
+
+ Args:
+ key: Key name.
+ value: Value.
+ """
+ self.extra[key] = value
+
+ def get(self, key: str, default: Any = None) -> Any:
+ """Get a KV entry (alias for get_extra).
+
+ Args:
+ key: Key name.
+ default: Default value.
+
+ Returns:
+ Stored value or default.
+ """
+ return self.extra.get(key, default)
+
+ def to_summary(self) -> str:
+ """Generate a state summary for the LLM indicating completed steps.
+
+ Returns:
+ State summary text.
+ """
+ lines = []
+ if self.run_dir:
+ lines.append(f"- run_dir: {self.run_dir}")
+ if self.store:
+ completed = list(self.store.keys())
+ lines.append(f"- completed: {', '.join(completed)}")
+ if self.counters:
+ counter_parts = [f"{k}={v}" for k, v in self.counters.items()]
+ lines.append(f"- counters: {', '.join(counter_parts)}")
+ return "\n".join(lines) if lines else "(empty state)"
diff --git a/agent/src/agent/skills.py b/agent/src/agent/skills.py
new file mode 100644
index 000000000..84da7983b
--- /dev/null
+++ b/agent/src/agent/skills.py
@@ -0,0 +1,170 @@
+"""SkillsLoader: loads scenario guides from the skills/ directory.
+
+Uses progressive disclosure:
+- System prompt only injects one-line summaries (get_descriptions).
+- Full docs loaded on demand (get_content, called by the load_skill tool).
+"""
+
+from __future__ import annotations
+
+import re
+from dataclasses import dataclass, field
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+
+@dataclass
+class Skill:
+ """Single skill definition.
+
+ Attributes:
+ name: Skill name.
+ description: Skill description.
+ body: SKILL.md body text.
+ dir_path: Skill directory path (used for on-demand loading of supporting files).
+ metadata: Parsed frontmatter metadata.
+ """
+
+ name: str
+ description: str = ""
+ body: str = ""
+ dir_path: Optional[Path] = None
+ metadata: Dict[str, Any] = field(default_factory=dict)
+
+ def load_support_file(self, filename: str) -> Optional[str]:
+ """Load a supporting file on demand.
+
+ Args:
+ filename: File name (e.g. examples.md).
+
+ Returns:
+ File content or None.
+ """
+ if not self.dir_path:
+ return None
+ path = self.dir_path / filename
+ if not path.exists():
+ return None
+ try:
+ return path.read_text(encoding="utf-8")
+ except Exception:
+ return None
+
+
+def _parse_frontmatter(text: str) -> tuple[Dict[str, Any], str]:
+ """Parse YAML frontmatter and body.
+
+ Args:
+ text: Markdown text.
+
+ Returns:
+ Tuple of (metadata dict, body text).
+ """
+ match = re.match(r"^---\s*\n(.*?)\n---\s*\n(.*)", text, re.DOTALL)
+ if not match:
+ return {}, text.strip()
+
+ meta: Dict[str, Any] = {}
+ for line in match.group(1).strip().split("\n"):
+ line = line.strip()
+ if ":" not in line:
+ continue
+ key, value = line.split(":", 1)
+ key = key.strip()
+ value = value.strip()
+ if value.startswith("[") and value.endswith("]"):
+ items = [item.strip().strip("'\"") for item in value[1:-1].split(",")]
+ meta[key] = [i for i in items if i]
+ elif value.lower() in ("true", "false"):
+ meta[key] = value.lower() == "true"
+ else:
+ meta[key] = value
+
+ return meta, match.group(2).strip()
+
+
+def _load_skill_dir(dir_path: Path) -> Optional[Skill]:
+ """Load a skill from a directory.
+
+ Args:
+ dir_path: Skill directory path (must contain SKILL.md).
+
+ Returns:
+ Skill instance or None.
+ """
+ skill_file = dir_path / "SKILL.md"
+ if not skill_file.exists():
+ return None
+ try:
+ text = skill_file.read_text(encoding="utf-8")
+ except Exception:
+ return None
+
+ meta, body = _parse_frontmatter(text)
+ name = meta.get("name", dir_path.name)
+ if not name:
+ return None
+
+ return Skill(
+ name=name,
+ description=meta.get("description", ""),
+ body=body,
+ dir_path=dir_path,
+ metadata=meta,
+ )
+
+
+class SkillsLoader:
+ """Load skills from the skills/ directory.
+
+ Attributes:
+ skills: Loaded skill list.
+ """
+
+ def __init__(self, skills_dir: Optional[Path] = None) -> None:
+ """Initialize SkillsLoader.
+
+ Args:
+ skills_dir: Skills directory path; defaults to agent/skills/.
+ """
+ self.skills_dir = skills_dir or Path(__file__).resolve().parents[1] / "skills"
+ self.skills: List[Skill] = []
+ self._load()
+
+ def _load(self) -> None:
+ """Load all skill subdirectories from the skills directory."""
+ if not self.skills_dir.exists():
+ return
+ for path in sorted(self.skills_dir.iterdir()):
+ if path.is_dir() and (path / "SKILL.md").exists():
+ skill = _load_skill_dir(path)
+ if skill:
+ self.skills.append(skill)
+
+ def get_descriptions(self) -> str:
+ """Return a one-line summary of every skill for the system prompt (low token cost).
+
+ Returns:
+ One line per skill with name + description.
+ """
+ if not self.skills:
+ return "(no skills)"
+ lines = []
+ for skill in self.skills:
+ lines.append(f" - {skill.name}: {skill.description}")
+ return "\n".join(lines)
+
+ def get_content(self, name: str) -> str:
+ """Return the full documentation for a skill (used by the load_skill tool).
+
+ Args:
+ name: Skill name.
+
+ Returns:
+ XML-wrapped full skill document, or an error message.
+ """
+ for skill in self.skills:
+ if skill.name == name:
+ return f'<skill name="{name}">\n{skill.body}\n</skill>'
+ available = ", ".join(s.name for s in self.skills)
+ return f"Error: Unknown skill '{name}'. Available: {available}"
diff --git a/agent/src/agent/tools.py b/agent/src/agent/tools.py
new file mode 100644
index 000000000..5611a5bba
--- /dev/null
+++ b/agent/src/agent/tools.py
@@ -0,0 +1,81 @@
+"""BaseTool + ToolRegistry: tool infrastructure."""
+
+from __future__ import annotations
+
+import json
+import traceback
+from abc import ABC, abstractmethod
+from typing import Any, Dict, List, Optional
+
+
+class BaseTool(ABC):
+ """Tool base class.
+
+ Attributes:
+ name: Unique tool identifier.
+ description: Tool description shown to the LLM.
+ parameters: Parameter definition in JSON Schema format.
+ repeatable: Whether the tool may be called more than once.
+ """
+
+ name: str = ""
+ description: str = ""
+ parameters: Dict[str, Any] = {}
+ repeatable: bool = False
+
+ @abstractmethod
+ def execute(self, **kwargs: Any) -> str:
+ """Execute the tool and return a JSON string."""
+
+ def to_openai_schema(self) -> Dict[str, Any]:
+ """Convert to OpenAI function calling format."""
+ return {
+ "type": "function",
+ "function": {
+ "name": self.name,
+ "description": self.description,
+ "parameters": self.parameters or {"type": "object", "properties": {}, "required": []},
+ },
+ }
+
+
+class ToolRegistry:
+ """Tool registry."""
+
+ def __init__(self) -> None:
+ self._tools: Dict[str, BaseTool] = {}
+
+ def register(self, tool: BaseTool) -> None:
+ """Register a tool."""
+ self._tools[tool.name] = tool
+
+ def get(self, name: str) -> Optional[BaseTool]:
+ """Retrieve a tool by name."""
+ return self._tools.get(name)
+
+ def get_definitions(self) -> List[Dict[str, Any]]:
+ """Return all tools in OpenAI function calling format."""
+ return [t.to_openai_schema() for t in self._tools.values()]
+
+ def execute(self, name: str, params: Dict[str, Any]) -> str:
+ """Execute a tool and guarantee a valid JSON return value."""
+ tool = self._tools.get(name)
+ if not tool:
+ return json.dumps({"status": "error", "error": f"Tool '{name}' not found"}, ensure_ascii=False)
+ try:
+ return tool.execute(**params)
+ except Exception as exc:
+ return json.dumps({
+ "status": "error", "tool": name,
+ "error": str(exc), "traceback": traceback.format_exc()[-500:],
+ }, ensure_ascii=False)
+
+ @property
+ def tool_names(self) -> List[str]:
+ return list(self._tools.keys())
+
+ def __len__(self) -> int:
+ return len(self._tools)
+
+ def __contains__(self, name: str) -> bool:
+ return name in self._tools
diff --git a/agent/src/agent/trace.py b/agent/src/agent/trace.py
new file mode 100644
index 000000000..52ac6d62b
--- /dev/null
+++ b/agent/src/agent/trace.py
@@ -0,0 +1,66 @@
+"""TraceWriter: crash-safe JSONL trace writer.
+
+One JSON record per line; append + flush guarantees no data loss on crash.
+"""
+
+from __future__ import annotations
+
+import json
+import time
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+
+class TraceWriter:
+ """JSONL trace writer, one record per line, crash-safe.
+
+ Attributes:
+ path: Path to the trace.jsonl file.
+ """
+
+ def __init__(self, run_dir: Path) -> None:
+ """Initialize TraceWriter.
+
+ Args:
+ run_dir: Run directory; trace.jsonl is written here.
+ """
+ self.path = run_dir / "trace.jsonl"
+ self._file = open(self.path, "a", encoding="utf-8")
+
+ def write(self, entry: Dict[str, Any]) -> None:
+ """Write a trace record.
+
+ Args:
+ entry: Trace entry; a ts field is added automatically.
+ """
+ if "ts" not in entry:
+ entry["ts"] = time.time()
+ self._file.write(json.dumps(entry, ensure_ascii=False) + "\n")
+ self._file.flush()
+
+ def close(self) -> None:
+ """Close the file handle."""
+ self._file.close()
+
+ @staticmethod
+ def read(run_dir: Path) -> List[Dict[str, Any]]:
+ """Read trace.jsonl and return records.
+
+ Args:
+ run_dir: Run directory.
+
+ Returns:
+ List of trace records.
+ """
+ path = run_dir / "trace.jsonl"
+ if not path.exists():
+ return []
+ entries: List[Dict[str, Any]] = []
+ for line in path.read_text(encoding="utf-8").splitlines():
+ line = line.strip()
+ if line:
+ try:
+ entries.append(json.loads(line))
+ except json.JSONDecodeError:
+ pass
+ return entries
diff --git a/agent/src/core/__init__.py b/agent/src/core/__init__.py
new file mode 100644
index 000000000..4db58676e
--- /dev/null
+++ b/agent/src/core/__init__.py
@@ -0,0 +1 @@
+"""Core module: Runner + RunStateStore."""
diff --git a/agent/src/core/runner.py b/agent/src/core/runner.py
new file mode 100644
index 000000000..20bb6de49
--- /dev/null
+++ b/agent/src/core/runner.py
@@ -0,0 +1,291 @@
+"""Runner module for executing generated backtest code and collecting artifacts."""
+
+from __future__ import annotations
+
+import os
+import subprocess
+import sys
+import time
+from dataclasses import dataclass
+from pathlib import Path
+from typing import Any, Dict, Optional
+
+from rich.console import Console
+
+
+console = Console()
+
+
+@dataclass
+class RunResult:
+ """Container for runner execution outputs.
+
+ Attributes:
+ success: Whether subprocess exited with code 0.
+ exit_code: Subprocess return code.
+ stdout: Captured stdout text.
+ stderr: Captured stderr text.
+ artifacts: Existing artifact file paths keyed by artifact name.
+ """
+
+ success: bool
+ exit_code: int
+ stdout: str
+ stderr: str
+ artifacts: dict[str, Path]
+
+
+_ARTIFACTS_SPEC = {
+ "defaults": {"required": ["equity", "metrics", "trades"]},
+ "schemas": {
+ "equity_csv": {
+ "columns": [
+ {"name": "timestamp", "type": "string"},
+ {"name": "ret", "type": "float"},
+ {"name": "equity", "type": "float"},
+ {"name": "drawdown", "type": "float"},
+ ],
+ },
+ "metrics_csv": {
+ "columns": [
+ {"name": "final_value", "type": "float"},
+ {"name": "total_return", "type": "float"},
+ {"name": "annual_return", "type": "float"},
+ {"name": "max_drawdown", "type": "float"},
+ {"name": "sharpe", "type": "float"},
+ {"name": "win_rate", "type": "float"},
+ {"name": "trade_count", "type": "integer"},
+ ],
+ },
+ "trade_log": {
+ "columns": [
+ {"name": "timestamp", "type": "string"},
+ {"name": "code", "type": "string"},
+ {"name": "side", "type": "string"},
+ {"name": "price", "type": "float"},
+ {"name": "qty", "type": "float"},
+ {"name": "reason", "type": "string"},
+ ],
+ },
+ },
+ "artifacts": {
+ "equity": {"schema": "equity_csv", "path": "artifacts/equity.csv"},
+ "metrics": {"schema": "metrics_csv", "path": "artifacts/metrics.csv"},
+ "trades": {"schema": "trade_log", "path": "artifacts/trades.csv"},
+ "positions": {"schema": "positions_csv", "path": "artifacts/positions.csv"},
+ },
+}
+
+
+def _expand_artifacts_spec(spec: Dict[str, Any] | None) -> Dict[str, Dict[str, Any]]:
+ """Expand artifacts_spec into a name -> metadata dict.
+
+ Args:
+ spec: Raw artifact spec.
+
+ Returns:
+ Expanded artifact metadata mapping.
+ """
+ if not isinstance(spec, dict):
+ return {}
+ schemas = spec.get("schemas") or {}
+ artifacts = spec.get("artifacts") or {}
+ defaults = spec.get("defaults") or {}
+ required = set(defaults.get("required") or [])
+ expanded: Dict[str, Dict[str, Any]] = {}
+ for name, meta in artifacts.items():
+ if not isinstance(meta, dict):
+ continue
+ schema_name = meta.get("schema")
+ schema = schemas.get(schema_name, {}) if isinstance(schemas, dict) else {}
+ expanded[name] = {
+ "path": meta.get("path"),
+ "required": bool(meta.get("required", name in required)),
+ "columns": meta.get("columns") or schema.get("columns"),
+ }
+ return expanded
+
+
+class Runner:
+ """Execute entry scripts inside a run directory and collect outputs."""
+
+ _PROXY_ENV_KEYS = (
+ "HTTP_PROXY",
+ "HTTPS_PROXY",
+ "ALL_PROXY",
+ "http_proxy",
+ "https_proxy",
+ "all_proxy",
+ "GIT_HTTP_PROXY",
+ "GIT_HTTPS_PROXY",
+ "git_http_proxy",
+ "git_https_proxy",
+ )
+
+ def __init__(self, timeout: int = 300, artifacts_spec: Optional[Dict[str, Any]] = None) -> None:
+ """Initialize runner.
+
+ Args:
+ timeout: Max subprocess runtime in seconds.
+ artifacts_spec: Artifact spec from config.
+ """
+
+ self.timeout = timeout
+ self.artifacts_spec = artifacts_spec or _ARTIFACTS_SPEC
+ self.artifact_entries = _expand_artifacts_spec(self.artifacts_spec)
+
+ def _python_ready(self, python_cmd: str) -> bool:
+ """Check whether a Python interpreter can import runtime dependencies.
+
+ Args:
+ python_cmd: Interpreter executable path.
+
+ Returns:
+ True if required imports succeed, otherwise False.
+ """
+
+ try:
+ probe = subprocess.run(
+ [python_cmd, "-c", "import pandas,numpy; print('ok')"],
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ text=True,
+ timeout=20,
+ )
+ return probe.returncode == 0
+ except Exception:
+ return False
+
+ def _pick_python_interpreter(self) -> str:
+ """Pick the first usable interpreter for backtest execution.
+
+ Returns:
+ Interpreter command path.
+ """
+
+ project_root = Path(__file__).resolve().parents[2]
+ candidates = [
+ project_root / ".venv" / "Scripts" / "python.exe",
+ project_root / ".venv" / "bin" / "python",
+ Path(sys.executable),
+ ]
+ for path in candidates:
+ if not path.exists():
+ continue
+ cmd = str(path)
+ if self._python_ready(cmd):
+ return cmd
+ return sys.executable
+
+ def _build_runtime_env(self, run_dir: Path, *, pythonpath_extra: Path | None = None) -> dict[str, str]:
+ """Build subprocess env and enforce no-proxy execution.
+
+ Args:
+ run_dir: Current run directory.
+ pythonpath_extra: Additional path to prepend to PYTHONPATH.
+
+ Returns:
+ Environment mapping for subprocess.
+ """
+
+ env = os.environ.copy()
+ env.update(
+ {
+ "PYTHONUNBUFFERED": "1",
+ "PYTHONIOENCODING": "utf-8",
+ "PYTHONUTF8": "1",
+ }
+ )
+
+ if pythonpath_extra:
+ existing = env.get("PYTHONPATH", "")
+ env["PYTHONPATH"] = str(pythonpath_extra) + (os.pathsep + existing if existing else "")
+
+ runtime_home = run_dir / ".home"
+ runtime_home.mkdir(parents=True, exist_ok=True)
+ env["HOME"] = str(runtime_home)
+ if os.name == "nt":
+ env["USERPROFILE"] = str(runtime_home)
+
+ # Preserve system proxy settings; data sources (OKX/yfinance) need network access
+
+ return env
+
+ def execute(
+ self,
+ entry_script: Path,
+ run_dir: Path,
+ *,
+ cwd: Path | None = None,
+ cli_args: list[str] | None = None,
+ ) -> RunResult:
+ """Run entry script and collect logs and artifacts.
+
+ Args:
+ entry_script: Entry script path.
+ run_dir: Current run directory.
+ cwd: Working directory for subprocess (default: entry_script.parent).
+ cli_args: Additional CLI arguments appended to subprocess command.
+
+ Returns:
+ RunResult object with process output and discovered artifacts.
+ """
+
+ console.print(f"[blue]Runner: executing {entry_script}[/blue]")
+ stdout_path = run_dir / "logs" / "runner_stdout.txt"
+ stderr_path = run_dir / "logs" / "runner_stderr.txt"
+ stdout_path.parent.mkdir(parents=True, exist_ok=True)
+
+ start_time = time.time()
+ console.print("[dim]Runner: starting backtest subprocess...[/dim]")
+
+ effective_cwd = cwd or entry_script.parent
+ pythonpath_extra = cwd if cwd else None
+ env = self._build_runtime_env(run_dir, pythonpath_extra=pythonpath_extra)
+ python_cmd = self._pick_python_interpreter()
+ console.print(f"[dim]Runner: using Python: {python_cmd}[/dim]")
+
+ cmd = [python_cmd, str(entry_script)]
+ if cli_args:
+ cmd.extend(cli_args)
+
+ process = subprocess.run(
+ cmd,
+ cwd=str(effective_cwd),
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ text=True,
+ timeout=self.timeout,
+ env=env,
+ encoding="utf-8",
+ errors="ignore",
+ )
+
+ elapsed = time.time() - start_time
+ console.print(f"[blue]Runner: subprocess finished in {elapsed:.2f}s[/blue]")
+
+ stdout_path.write_text(process.stdout, encoding="utf-8")
+ stderr_path.write_text(process.stderr, encoding="utf-8")
+
+ if process.stdout:
+ console.print(f"[dim]Runner stdout:[/dim]\n{process.stdout}")
+ if process.stderr:
+ console.print(f"[red]Runner stderr:[/red]\n{process.stderr}")
+
+ artifacts: dict[str, Path] = {}
+ for name, info in self.artifact_entries.items():
+ rel_path = info.get("path")
+ if not isinstance(rel_path, str) or not rel_path.strip():
+ continue
+ target = run_dir / Path(rel_path)
+ if target.exists():
+ artifacts[name] = target
+
+ success = process.returncode == 0
+ return RunResult(
+ success=success,
+ exit_code=process.returncode,
+ stdout=process.stdout,
+ stderr=process.stderr,
+ artifacts=artifacts,
+ )
diff --git a/agent/src/core/state.py b/agent/src/core/state.py
new file mode 100644
index 000000000..28c4d4335
--- /dev/null
+++ b/agent/src/core/state.py
@@ -0,0 +1,171 @@
+"""Run state persistence: lightweight, no dependency on legacy agent types."""
+
+from __future__ import annotations
+
+import copy
+import json
+import uuid
+from datetime import datetime
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+import yaml
+
+
+class RunStateStore:
+ """Run state store: records key files such as req/design/code/logs/review."""
+
+ def create_run_dir(self, workspace: Path) -> Path:
+ """Create a unique run directory.
+
+ Args:
+ workspace: Parent directory (typically runs/).
+
+ Returns:
+ Newly created run directory path.
+ """
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S_%f")[:18]
+ suffix = uuid.uuid4().hex[:6]
+ run_dir = workspace / f"{timestamp}_{suffix}"
+ run_dir.mkdir(parents=True, exist_ok=True)
+ (run_dir / "code").mkdir(exist_ok=True)
+ (run_dir / "logs").mkdir(exist_ok=True)
+ (run_dir / "artifacts").mkdir(exist_ok=True)
+ return run_dir
+
+ def save_request(self, run_dir: Path, prompt: str, context: Dict[str, Any]) -> Dict[str, Any]:
+ """Save the user request.
+
+ Args:
+ run_dir: Run directory.
+ prompt: User prompt.
+ context: Context metadata.
+
+ Returns:
+ Saved payload.
+ """
+ payload = {"prompt": prompt, "context": context}
+ self._write_json(run_dir / "req.json", payload)
+ return payload
+
+ def save_planner_output(self, run_dir: Path, planner_output: Dict[str, Any]) -> Dict[str, Any]:
+ """Save planner output.
+
+ Args:
+ run_dir: Run directory.
+ planner_output: Planner output dict.
+
+ Returns:
+ Saved payload.
+ """
+ self._write_json(run_dir / "planner_output.json", planner_output)
+ return planner_output
+
+ def save_design(self, run_dir: Path, spec: Dict[str, Any], decision: Dict[str, Any]) -> None:
+ """Save design spec and judge decision.
+
+ Args:
+ run_dir: Run directory.
+ spec: Strategy design spec.
+ decision: Judge decision result.
+ """
+ self._write_json(run_dir / "design_spec.json", spec)
+ self._write_json(run_dir / "judge_decision.json", decision)
+
+ def save_rag_spec(
+ self,
+ run_dir: Path,
+ selection: Dict[str, Any],
+ spec: Dict[str, Any],
+ *,
+ candidates: Optional[List[Dict[str, Any]]] = None,
+ ) -> None:
+ """Save RAG results.
+
+ Args:
+ run_dir: Run directory.
+ selection: Selected API metadata.
+ spec: Enriched data API spec.
+ candidates: Candidate API list.
+ """
+ enriched_spec = copy.deepcopy(spec) if spec else {}
+ enriched_spec["_rag_metadata"] = selection
+ spec_yaml = yaml.safe_dump(enriched_spec, allow_unicode=True, sort_keys=False)
+ (run_dir / "data_api_spec.yaml").write_text(spec_yaml, encoding="utf-8")
+ self._write_json(run_dir / "rag_metadata.json", selection)
+ if candidates:
+ candidate_yaml = yaml.safe_dump(
+ {"generated_at": datetime.now().isoformat(), "candidates": candidates},
+ allow_unicode=True,
+ sort_keys=False,
+ )
+ (run_dir / "rag_candidates.yaml").write_text(candidate_yaml, encoding="utf-8")
+
+ def mark_success(self, run_dir: Path) -> None:
+ """Mark the run as successful.
+
+ Args:
+ run_dir: Run directory.
+ """
+ self._write_json(run_dir / "state.json", {"status": "success"})
+
+ def mark_failure(self, run_dir: Path, reason: str) -> None:
+ """Mark the run as failed.
+
+ Args:
+ run_dir: Run directory.
+ reason: Failure reason.
+ """
+ self._write_json(run_dir / "state.json", {"status": "failed", "reason": reason})
+
+ # -----------------------------------------------------------------------
+ # Generic persistence: extract and save key artifacts by tool name
+ # -----------------------------------------------------------------------
+
+ _PERSIST_MAP: Dict[str, str] = {
+ "plan": "_persist_plan",
+ "search": "_persist_search",
+ "resolve": "_persist_resolve",
+ "design": "_persist_design",
+ }
+
+ def persist_tool_result(self, tool_name: str, result_data: Dict[str, Any], run_dir: Path) -> None:
+ """Persist key artifacts by tool name.
+
+ Args:
+ tool_name: Tool name.
+ result_data: Parsed tool result dict.
+ run_dir: Run directory.
+ """
+ method_name = self._PERSIST_MAP.get(tool_name)
+ if method_name:
+ method = getattr(self, method_name, None)
+ if method:
+ try:
+ method(result_data, run_dir)
+ except Exception:
+ pass
+
+ def _persist_plan(self, data: Dict[str, Any], run_dir: Path) -> None:
+ if data and "error" not in data:
+ self.save_planner_output(run_dir, data)
+
+ def _persist_search(self, data: Dict[str, Any], run_dir: Path) -> None:
+ if data.get("selections"):
+ sel = data["selections"][0] if data["selections"] else {}
+ spec = data.get("data_api_spec") or {}
+ self.save_rag_spec(run_dir, sel, spec, candidates=data.get("candidates"))
+
+ def _persist_resolve(self, data: Dict[str, Any], run_dir: Path) -> None:
+ if data and data.get("status") == "ok":
+ self._write_json(run_dir / "data_config.json", data)
+
+ def _persist_design(self, data: Dict[str, Any], run_dir: Path) -> None:
+ spec = data.get("spec") or {}
+ decision = data.get("judge_decision") or {}
+ if spec:
+ self.save_design(run_dir, spec, decision)
+
+ @staticmethod
+ def _write_json(path: Path, data: Any) -> None:
+ path.write_text(json.dumps(data, ensure_ascii=False, indent=2), encoding="utf-8")
diff --git a/agent/src/providers/__init__.py b/agent/src/providers/__init__.py
new file mode 100644
index 000000000..c70aa14ba
--- /dev/null
+++ b/agent/src/providers/__init__.py
@@ -0,0 +1,5 @@
+"""LLM provider abstraction layer."""
+
+from src.providers.llm import build_llm
+
+__all__ = ["build_llm"]
diff --git a/agent/src/providers/chat.py b/agent/src/providers/chat.py
new file mode 100644
index 000000000..e4c45b669
--- /dev/null
+++ b/agent/src/providers/chat.py
@@ -0,0 +1,154 @@
+"""ChatLLM: raw LLM message interface with function calling support.
+
+ChatLLM is designed specifically for the AgentLoop ReAct cycle.
+"""
+
+from __future__ import annotations
+
+from dataclasses import dataclass, field
+from typing import Any, Dict, List, Optional
+
+from src.providers.llm import build_llm
+
+
+@dataclass
+class ToolCallRequest:
+ """Tool call request returned by the LLM.
+
+ Attributes:
+ id: Tool call ID (used to match tool_result messages).
+ name: Tool name.
+ arguments: Tool argument dict.
+ """
+
+ id: str
+ name: str
+ arguments: Dict[str, Any]
+
+
+@dataclass
+class LLMResponse:
+ """LLM response.
+
+ Attributes:
+ content: Text content (final answer or thinking text).
+ tool_calls: List of tool call requests.
+ finish_reason: Finish reason string.
+ """
+
+ content: Optional[str] = None
+ tool_calls: List[ToolCallRequest] = field(default_factory=list)
+ finish_reason: str = "stop"
+
+ @property
+ def has_tool_calls(self) -> bool:
+ """Return True if the response contains tool calls."""
+ return len(self.tool_calls) > 0
+
+
+class ChatLLM:
+ """LLM chat client with function calling support.
+
+ Uses build_llm() to obtain a ChatOpenAI instance and bind_tools() to attach tool definitions.
+
+ Attributes:
+ model_name: Model name.
+ """
+
+ def __init__(self, model_name: Optional[str] = None) -> None:
+ """Initialize ChatLLM.
+
+ Args:
+ model_name: Model name; defaults to the environment variable value.
+ """
+ self.model_name = model_name
+ self._llm = build_llm(model_name=model_name)
+
+ def chat(self, messages: List[Dict[str, Any]], tools: Optional[List[Dict[str, Any]]] = None, timeout: Optional[int] = None) -> LLMResponse:
+ """Call the LLM synchronously.
+
+ Args:
+ messages: Message list (OpenAI format).
+ tools: Tool definition list (OpenAI function calling format).
+ timeout: Optional per-call timeout in seconds.
+
+ Returns:
+ LLMResponse.
+ """
+ llm = self._llm.bind_tools(tools) if tools else self._llm
+ config = {"timeout": timeout} if timeout else {}
+ ai_message = llm.invoke(messages, config=config)
+ return self._parse_response(ai_message)
+
+ def stream_chat(
+ self,
+ messages: List[Dict[str, Any]],
+ tools: Optional[List[Dict[str, Any]]] = None,
+ on_text_chunk: Optional[Any] = None,
+ timeout: Optional[int] = None,
+ ) -> LLMResponse:
+ """Stream the LLM and optionally forward text deltas (e.g. thinking).
+
+ Iterates AIMessageChunk; each text delta invokes ``on_text_chunk``.
+ Aggregates chunks into one response; on failure falls back to ``chat()``.
+
+ Args:
+ messages: Messages in OpenAI format.
+ tools: Tool definitions for function calling.
+ on_text_chunk: Optional callback ``(delta: str) -> None``.
+ timeout: Optional per-call timeout in seconds.
+
+ Returns:
+ Parsed ``LLMResponse``.
+ """
+ try:
+ llm = self._llm.bind_tools(tools) if tools else self._llm
+ config = {"timeout": timeout} if timeout else {}
+ accumulated = None
+ for chunk in llm.stream(messages, config=config):
+ if chunk.content and on_text_chunk:
+ on_text_chunk(chunk.content)
+ accumulated = chunk if accumulated is None else accumulated + chunk
+ if accumulated is None:
+ return LLMResponse(content="", tool_calls=[], finish_reason="stop")
+ return self._parse_response(accumulated)
+ except Exception:
+ return self.chat(messages, tools=tools, timeout=timeout)
+
+ async def achat(self, messages: List[Dict[str, Any]], tools: Optional[List[Dict[str, Any]]] = None, timeout: Optional[int] = None) -> LLMResponse:
+ """Async LLM invocation.
+
+ Args:
+ messages: Messages in OpenAI format.
+ tools: Tool definitions (OpenAI function-calling format).
+ timeout: Optional per-call timeout in seconds.
+
+ Returns:
+ ``LLMResponse``.
+ """
+ llm = self._llm.bind_tools(tools) if tools else self._llm
+ config = {"timeout": timeout} if timeout else {}
+ ai_message = await llm.ainvoke(messages, config=config)
+ return self._parse_response(ai_message)
+
+ @staticmethod
+ def _parse_response(ai_message: Any) -> LLMResponse:
+ """Convert a LangChain AIMessage to ``LLMResponse``.
+
+ Args:
+ ai_message: LangChain AIMessage instance.
+
+ Returns:
+ ``LLMResponse``.
+ """
+ content = ai_message.content if hasattr(ai_message, "content") else None
+ raw_calls = getattr(ai_message, "tool_calls", None) or []
+ tool_calls = []
+ for tc in raw_calls:
+ tool_calls.append(ToolCallRequest(
+ id=tc.get("id", ""),
+ name=tc.get("name", ""),
+ arguments=tc.get("args", {}),
+ ))
+ finish = getattr(ai_message, "response_metadata", {}).get("finish_reason", "stop")
+ return LLMResponse(content=content, tool_calls=tool_calls, finish_reason=finish)
diff --git a/agent/src/providers/llm.py b/agent/src/providers/llm.py
new file mode 100644
index 000000000..725f71a9a
--- /dev/null
+++ b/agent/src/providers/llm.py
@@ -0,0 +1,148 @@
+"""LLM factory and JSON extraction helpers."""
+
+from __future__ import annotations
+
+import json
+import os
+from pathlib import Path
+from typing import Any, Dict, Optional
+
+try:
+ from dotenv import load_dotenv
+except ImportError:
+ load_dotenv = None # type: ignore
+
+try:
+ from langchain_openai import ChatOpenAI
+except ImportError:
+ ChatOpenAI = None # type: ignore
+
+AGENT_DIR = Path(__file__).resolve().parents[2]
+
+# .env search order: ~/.vibe-trading/.env โ†’ agent/.env โ†’ $CWD/.env
+_ENV_CANDIDATES = [
+ Path.home() / ".vibe-trading" / ".env",
+ AGENT_DIR / ".env",
+ Path.cwd() / ".env",
+]
+
+_dotenv_loaded: bool = False
+
+
+def _load_env_file(path: Path) -> None:
+ """Load a single .env file into os.environ (setdefault, no override)."""
+ if load_dotenv is not None:
+ load_dotenv(dotenv_path=path, override=False)
+ else:
+ for raw in path.read_text(encoding="utf-8").splitlines():
+ line = raw.strip()
+ if not line or line.startswith("#") or "=" not in line:
+ continue
+ key, value = line.split("=", 1)
+ key = key.strip()
+ if key:
+ os.environ.setdefault(key, value.strip().strip('"').strip("'"))
+
+
+def _ensure_dotenv() -> None:
+ """Load `.env` from the first found candidate path."""
+ global _dotenv_loaded
+ if _dotenv_loaded:
+ return
+ for candidate in _ENV_CANDIDATES:
+ if candidate.exists():
+ _load_env_file(candidate)
+ break
+ _dotenv_loaded = True
+
+
+def _sync_provider_env() -> None:
+ """Map provider-specific env vars to OPENAI_* for ChatOpenAI."""
+ _ensure_dotenv()
+ provider = os.getenv("LANGCHAIN_PROVIDER", "openai").lower()
+ provider_env = {
+ "openai": ("OPENAI_API_KEY", "OPENAI_API_BASE"),
+ "openrouter": ("OPENAI_API_KEY", "OPENAI_API_BASE"),
+ "deepseek": ("DEEPSEEK_API_KEY", "DEEPSEEK_BASE_URL"),
+ "qwen": ("QWEN_API_KEY", "QWEN_BASE_URL"),
+ }
+ key_env, base_env = provider_env.get(provider, provider_env["openai"])
+ api_key = os.getenv(key_env) or os.getenv("OPENAI_API_KEY", "")
+ base_url = os.getenv(base_env, "") or os.getenv("OPENAI_API_BASE", "") or os.getenv("OPENAI_BASE_URL", "")
+ if api_key:
+ os.environ["OPENAI_API_KEY"] = api_key
+ if base_url:
+ os.environ["OPENAI_API_BASE"] = base_url
+ os.environ.setdefault("OPENAI_BASE_URL", base_url)
+
+
+def build_llm(*, model_name: Optional[str] = None, callbacks: Any = None) -> Any:
+ """Construct a ChatOpenAI instance.
+
+ Args:
+ model_name: Model name; defaults to LANGCHAIN_MODEL_NAME.
+ callbacks: Optional LangChain callbacks.
+
+ Returns:
+ ChatOpenAI instance.
+
+ Raises:
+ RuntimeError: If langchain-openai is missing or LANGCHAIN_MODEL_NAME is unset.
+ """
+ if ChatOpenAI is None:
+ raise RuntimeError("langchain-openai is not installed")
+ _sync_provider_env()
+ name = model_name or os.getenv("LANGCHAIN_MODEL_NAME", "").strip()
+ if not name:
+ raise RuntimeError("LANGCHAIN_MODEL_NAME is not set")
+ temperature = float(os.getenv("LANGCHAIN_TEMPERATURE", "0.0"))
+ timeout = int(os.getenv("TIMEOUT_SECONDS", "600"))
+ max_retries = int(os.getenv("MAX_RETRIES", "3"))
+ return ChatOpenAI(
+ model=name,
+ temperature=temperature,
+ timeout=timeout,
+ max_retries=max_retries,
+ callbacks=callbacks,
+ )
+
+
+def _extract_balanced_json(text: str) -> Optional[Dict[str, Any]]:
+ """Extract the outermost JSON object from text using bracket balancing.
+
+ Args:
+ text: Text that may embed a JSON object.
+
+ Returns:
+ Parsed dict, or None on failure.
+ """
+ start = -1
+ depth = 0
+ in_string = False
+ escape = False
+
+ for i, ch in enumerate(text):
+ if escape:
+ escape = False
+ continue
+ if ch == "\\" and in_string:
+ escape = True
+ continue
+ if ch == '"':
+ in_string = not in_string
+ continue
+ if in_string:
+ continue
+ if ch == "{":
+ if depth == 0:
+ start = i
+ depth += 1
+ elif ch == "}":
+ depth -= 1
+ if depth == 0 and start >= 0:
+ candidate = text[start : i + 1]
+ try:
+ return json.loads(candidate)
+ except json.JSONDecodeError:
+ start = -1
+ return None
diff --git a/agent/src/session/__init__.py b/agent/src/session/__init__.py
new file mode 100644
index 000000000..1d701a012
--- /dev/null
+++ b/agent/src/session/__init__.py
@@ -0,0 +1,18 @@
+"""Session management package for conversations, persistence, and SSE streams."""
+
+from src.session.models import Session, Message, Attempt, SessionStatus, AttemptStatus
+from src.session.store import SessionStore
+from src.session.events import EventBus, SSEEvent
+from src.session.service import SessionService
+
+__all__ = [
+ "Session",
+ "Message",
+ "Attempt",
+ "SessionStatus",
+ "AttemptStatus",
+ "SessionStore",
+ "EventBus",
+ "SSEEvent",
+ "SessionService",
+]
diff --git a/agent/src/session/events.py b/agent/src/session/events.py
new file mode 100644
index 000000000..1d6393a26
--- /dev/null
+++ b/agent/src/session/events.py
@@ -0,0 +1,221 @@
+"""SSE event bus with support for last_event_id recovery and buffering.
+
+V5: Fixes the thread-safety issue caused by calling queue.put_nowait() on asyncio.Queue from a background thread.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import json
+import logging
+import threading
+import time
+import uuid
+
+logger = logging.getLogger(__name__)
+from dataclasses import dataclass, field
+from typing import Any, AsyncIterator, Dict, List, Optional
+
+
+@dataclass
+class SSEEvent:
+ """Server-sent event.
+
+ Attributes:
+ event_id: Globally unique event ID used for last_event_id recovery.
+ event_type: Event type stored in the SSE ``event`` field.
+ data: Event payload.
+ session_id: Owning session ID.
+ timestamp: Event timestamp.
+ """
+
+ event_id: str = field(default_factory=lambda: uuid.uuid4().hex[:16])
+ event_type: str = "message"
+ data: Dict[str, Any] = field(default_factory=dict)
+ session_id: str = ""
+ timestamp: float = field(default_factory=time.time)
+
+ def to_sse(self) -> str:
+ """Format the event as an SSE text frame.
+
+ Returns:
+ Text that conforms to the SSE specification.
+ """
+ payload = json.dumps(self.data, ensure_ascii=False)
+ lines = [
+ f"id: {self.event_id}",
+ f"event: {self.event_type}",
+ f"data: {payload}",
+ "",
+ "",
+ ]
+ return "\n".join(lines)
+
+
+class EventBus:
+ """Session-scoped event bus with subscribers and buffered events.
+
+ V5: Inject the asyncio event loop with ``set_loop()``, and use
+ ``call_soon_threadsafe`` in ``publish()`` to preserve thread safety.
+
+ Attributes:
+ max_buffer_size: Maximum number of buffered events per session.
+ """
+
+ def __init__(self, max_buffer_size: int = 500) -> None:
+ """Initialize the event bus.
+
+ Args:
+ max_buffer_size: Maximum number of buffered events per session.
+ """
+ self.max_buffer_size = max_buffer_size
+ self._buffers: Dict[str, List[SSEEvent]] = {}
+ self._subscribers: Dict[str, List[asyncio.Queue]] = {}
+ self._lock = threading.Lock()
+ self._loop: Optional[asyncio.AbstractEventLoop] = None
+
+ def set_loop(self, loop: asyncio.AbstractEventLoop) -> None:
+ """Set the asyncio event loop, usually during api_server startup.
+
+ Args:
+ loop: asyncio event loop.
+ """
+ self._loop = loop
+
+ def publish(self, event: SSEEvent) -> None:
+ """Publish an event to a session channel in a thread-safe way.
+
+ Args:
+ event: Event to publish.
+ """
+ session_id = event.session_id
+ with self._lock:
+ if session_id not in self._buffers:
+ self._buffers[session_id] = []
+ buffer = self._buffers[session_id]
+ buffer.append(event)
+ if len(buffer) > self.max_buffer_size:
+ self._buffers[session_id] = buffer[-self.max_buffer_size:]
+
+ queues = list(self._subscribers.get(session_id, []))
+
+ # Safely enqueue onto the queue from inside the asyncio loop.
+ for queue in queues:
+ if self._loop and self._loop.is_running():
+ self._loop.call_soon_threadsafe(self._safe_put, queue, event)
+ else:
+ try:
+ queue.put_nowait(event)
+ except asyncio.QueueFull:
+ pass
+
+ @staticmethod
+ def _safe_put(queue: asyncio.Queue, event: SSEEvent) -> None:
+ """Safely put an event onto a queue.
+
+ Args:
+ queue: asyncio queue.
+ event: SSE event.
+ """
+ try:
+ queue.put_nowait(event)
+ except asyncio.QueueFull:
+ logger.warning("EventBus queue full, dropping %s event for session %s", event.event_type, event.session_id)
+
+ def emit(
+ self,
+ session_id: str,
+ event_type: str,
+ data: Optional[Dict[str, Any]] = None,
+ ) -> SSEEvent:
+ """Build and publish an event in one step.
+
+ Args:
+ session_id: Session ID.
+ event_type: Event type.
+ data: Event payload.
+
+ Returns:
+ The published SSEEvent.
+ """
+ event = SSEEvent(
+ event_type=event_type,
+ data=data or {},
+ session_id=session_id,
+ )
+ self.publish(event)
+ return event
+
+ def replay(self, session_id: str, last_event_id: Optional[str] = None) -> List[SSEEvent]:
+ """Replay buffered session events for reconnect recovery.
+
+ Args:
+ session_id: Session ID.
+ last_event_id: Last event ID received by the client.
+
+ Returns:
+ List of events that should be replayed.
+ """
+ if not last_event_id:
+ return [] # First connect: history loaded via REST, no replay needed
+ with self._lock:
+ buffer = self._buffers.get(session_id, [])
+ found = False
+ result: List[SSEEvent] = []
+ for event in buffer:
+ if found:
+ result.append(event)
+ elif event.event_id == last_event_id:
+ found = True
+ return result
+
+ async def subscribe(
+ self,
+ session_id: str,
+ last_event_id: Optional[str] = None,
+ ) -> AsyncIterator[SSEEvent]:
+ """Subscribe to a session event stream asynchronously.
+
+ Args:
+ session_id: Session ID.
+ last_event_id: Last event ID received by the client for reconnect recovery.
+
+ Yields:
+ SSEEvent objects.
+ """
+ queue: asyncio.Queue[SSEEvent] = asyncio.Queue(maxsize=200)
+
+ with self._lock:
+ if session_id not in self._subscribers:
+ self._subscribers[session_id] = []
+ self._subscribers[session_id].append(queue)
+
+ try:
+ replay_events = self.replay(session_id, last_event_id)
+ for event in replay_events:
+ yield event
+
+ while True:
+ try:
+ event = await asyncio.wait_for(queue.get(), timeout=30.0)
+ yield event
+ except asyncio.TimeoutError:
+ yield SSEEvent(
+ event_type="heartbeat",
+ data={"ts": time.time()},
+ session_id=session_id,
+ )
+ finally:
+ with self._lock:
+ subs = self._subscribers.get(session_id, [])
+ if queue in subs:
+ subs.remove(queue)
+
+ def clear(self, session_id: str) -> None:
+ """Clear the buffered events for a session.
+
+ Args:
+ session_id: Session ID.
+ """
+ with self._lock:
+ self._buffers.pop(session_id, None)
diff --git a/agent/src/session/models.py b/agent/src/session/models.py
new file mode 100644
index 000000000..361be1f6d
--- /dev/null
+++ b/agent/src/session/models.py
@@ -0,0 +1,207 @@
+"""Session data models for the core Session, Message, and Attempt entities."""
+
+from __future__ import annotations
+
+import uuid
+from dataclasses import dataclass, field, asdict
+from datetime import datetime
+from enum import Enum
+from typing import Any, Dict, List, Optional
+
+
+class SessionStatus(str, Enum):
+ """Session lifecycle states."""
+
+ ACTIVE = "active"
+ COMPLETED = "completed"
+ ARCHIVED = "archived"
+
+
+class AttemptStatus(str, Enum):
+ """Statuses for a single execution attempt."""
+
+ PENDING = "pending"
+ RUNNING = "running"
+ WAITING_USER = "waiting_user"
+ COMPLETED = "completed"
+ FAILED = "failed"
+ CANCELLED = "cancelled"
+
+
+@dataclass
+class Session:
+ """A multi-turn conversation session.
+
+ Attributes:
+ session_id: Unique identifier.
+ title: User-visible session title.
+ status: Session status.
+ created_at: Creation time in ISO format.
+ updated_at: Last update time in ISO format.
+ last_attempt_id: ID of the most recent Attempt.
+ config: Session-level configuration such as model overrides or strategy parameters.
+ """
+
+ session_id: str = field(default_factory=lambda: uuid.uuid4().hex[:12])
+ title: str = ""
+ status: SessionStatus = SessionStatus.ACTIVE
+ created_at: str = field(default_factory=lambda: datetime.now().isoformat())
+ updated_at: str = field(default_factory=lambda: datetime.now().isoformat())
+ last_attempt_id: Optional[str] = None
+ config: Dict[str, Any] = field(default_factory=dict)
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Serialize the session to a dictionary.
+
+ Returns:
+ A JSON-serializable dictionary.
+ """
+ data = asdict(self)
+ data["status"] = self.status.value
+ return data
+
+ @classmethod
+ def from_dict(cls, data: Dict[str, Any]) -> Session:
+ """Deserialize a session from a dictionary.
+
+ Args:
+ data: Dictionary produced from parsed JSON.
+
+ Returns:
+ A Session instance.
+ """
+ data = dict(data)
+ if "status" in data:
+ data["status"] = SessionStatus(data["status"])
+ return cls(**data)
+
+
+@dataclass
+class Message:
+ """A session message such as user input or system output.
+
+ Attributes:
+ message_id: Unique identifier.
+ session_id: Owning session ID.
+ role: Message role: user / assistant / system.
+ content: Message text content.
+ created_at: Creation time in ISO format.
+ linked_attempt_id: Related Attempt ID, if any.
+ metadata: Additional metadata.
+ """
+
+ message_id: str = field(default_factory=lambda: uuid.uuid4().hex[:12])
+ session_id: str = ""
+ role: str = "user"
+ content: str = ""
+ created_at: str = field(default_factory=lambda: datetime.now().isoformat())
+ linked_attempt_id: Optional[str] = None
+ metadata: Dict[str, Any] = field(default_factory=dict)
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Serialize the message to a dictionary.
+
+ Returns:
+ A JSON-serializable dictionary.
+ """
+ return asdict(self)
+
+ @classmethod
+ def from_dict(cls, data: Dict[str, Any]) -> Message:
+ """Deserialize a message from a dictionary.
+
+ Args:
+ data: Dictionary produced from parsed JSON.
+
+ Returns:
+ A Message instance.
+ """
+ return cls(**data)
+
+
+@dataclass
+class Attempt:
+ """A strategy execution attempt corresponding to one pipeline run.
+
+ Attributes:
+ attempt_id: Unique identifier.
+ session_id: Owning session ID.
+ parent_attempt_id: Parent Attempt ID for follow-up modification scenarios.
+ status: Execution status.
+ prompt: User input that triggered this execution.
+ run_dir: Run directory path.
+ summary: Execution summary.
+ react_trace: ReAct agent trace records.
+ created_at: Creation time in ISO format.
+ completed_at: Completion time in ISO format, if available.
+ error: Error message when the attempt fails.
+ metrics: Snapshot of backtest metrics.
+ """
+
+ attempt_id: str = field(default_factory=lambda: uuid.uuid4().hex[:12])
+ session_id: str = ""
+ parent_attempt_id: Optional[str] = None
+ status: AttemptStatus = AttemptStatus.PENDING
+ prompt: str = ""
+ run_dir: Optional[str] = None
+ summary: Optional[str] = None
+ react_trace: List[Dict[str, Any]] = field(default_factory=list)
+ created_at: str = field(default_factory=lambda: datetime.now().isoformat())
+ completed_at: Optional[str] = None
+ error: Optional[str] = None
+ metrics: Optional[Dict[str, Any]] = None
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Serialize the attempt to a dictionary.
+
+ Returns:
+ A JSON-serializable dictionary.
+ """
+ data = asdict(self)
+ data["status"] = self.status.value
+ return data
+
+ @classmethod
+ def from_dict(cls, data: Dict[str, Any]) -> Attempt:
+ """Deserialize an attempt from a dictionary.
+
+ Args:
+ data: Dictionary produced from parsed JSON.
+
+ Returns:
+ An Attempt instance.
+ """
+ data = dict(data)
+ if "status" in data:
+ data["status"] = AttemptStatus(data["status"])
+ return cls(**data)
+
+ def mark_running(self) -> None:
+ """Mark the attempt as running."""
+ self.status = AttemptStatus.RUNNING
+ self.completed_at = None
+
+ def mark_completed(self, summary: Optional[str] = None) -> None:
+ """Mark the attempt as completed.
+
+ Args:
+ summary: Execution summary.
+ """
+ self.status = AttemptStatus.COMPLETED
+ self.completed_at = datetime.now().isoformat()
+ if summary:
+ self.summary = summary
+
+ def mark_failed(self, error: str) -> None:
+ """Mark the attempt as failed.
+
+ Args:
+ error: Error message.
+ """
+ self.status = AttemptStatus.FAILED
+ self.completed_at = datetime.now().isoformat()
+ self.error = error
+
+ def mark_waiting_user(self) -> None:
+ """Mark the attempt as waiting for user input."""
+ self.status = AttemptStatus.WAITING_USER
diff --git a/agent/src/session/service.py b/agent/src/session/service.py
new file mode 100644
index 000000000..eefdb97ee
--- /dev/null
+++ b/agent/src/session/service.py
@@ -0,0 +1,338 @@
+"""Session lifecycle orchestration for message flow, attempt creation, and execution scheduling.
+
+V5: Uses AgentLoop instead of the fixed pipeline behind the generate skill.
+"""
+
+from __future__ import annotations
+
+import asyncio
+import concurrent.futures
+from datetime import datetime
+from pathlib import Path
+from typing import Any, Dict, Optional
+
+# Dedicated thread pool limited to four concurrent agents to avoid exhausting the default executor.
+_AGENT_EXECUTOR = concurrent.futures.ThreadPoolExecutor(max_workers=4, thread_name_prefix="agent")
+
+from src.session.events import EventBus
+from src.session.models import (
+ Attempt,
+ AttemptStatus,
+ Message,
+ Session,
+)
+from src.session.store import SessionStore
+
+
+class SessionService:
+ """Session lifecycle service.
+
+ Attributes:
+ store: Session persistence store.
+ event_bus: SSE event bus.
+ runs_dir: Root runs directory.
+ """
+
+ def __init__(
+ self,
+ store: SessionStore,
+ event_bus: EventBus,
+ runs_dir: Path,
+ ) -> None:
+ """Initialize the session service.
+
+ Args:
+ store: Session persistence store.
+ event_bus: SSE event bus.
+ runs_dir: Root runs directory.
+ """
+ self.store = store
+ self.event_bus = event_bus
+ self.runs_dir = runs_dir
+ self._active_loops: Dict[str, "AgentLoop"] = {}
+
+ def create_session(self, title: str = "", config: Optional[Dict[str, Any]] = None) -> Session:
+ """Create a new session.
+
+ Args:
+ title: Session title.
+ config: Session configuration.
+
+ Returns:
+ The newly created Session.
+ """
+ session = Session(title=title, config=config or {})
+ self.store.create_session(session)
+ self.event_bus.emit(session.session_id, "session.created", {"session_id": session.session_id, "title": title})
+ return session
+
+ def get_session(self, session_id: str) -> Optional[Session]:
+ """Return a session by ID."""
+ return self.store.get_session(session_id)
+
+ def list_sessions(self, limit: int = 50) -> list[Session]:
+ """List all sessions."""
+ return self.store.list_sessions(limit)
+
+ def delete_session(self, session_id: str) -> bool:
+ """Delete a session."""
+ self.event_bus.clear(session_id)
+ return self.store.delete_session(session_id)
+
+ async def send_message(self, session_id: str, content: str, role: str = "user") -> Dict[str, Any]:
+ """Send a message to a session and trigger execution.
+
+ Args:
+ session_id: Session ID.
+ content: Message content.
+ role: Message role.
+
+ Returns:
+ Dictionary containing message_id and attempt_id.
+ """
+ session = self.store.get_session(session_id)
+ if not session:
+ raise ValueError(f"Session {session_id} not found")
+
+ message = Message(session_id=session_id, role=role, content=content)
+ self.store.append_message(message)
+ self.event_bus.emit(session_id, "message.received", {"message_id": message.message_id, "role": role, "content": content})
+
+ if role != "user":
+ return {"message_id": message.message_id}
+
+ attempt = Attempt(session_id=session_id, parent_attempt_id=session.last_attempt_id, prompt=content)
+ self.store.create_attempt(attempt)
+ session.last_attempt_id = attempt.attempt_id
+ session.updated_at = datetime.now().isoformat()
+ self.store.update_session(session)
+ self.event_bus.emit(session_id, "attempt.created", {"attempt_id": attempt.attempt_id, "prompt": content})
+
+ asyncio.create_task(self._run_attempt(session, attempt))
+ return {"message_id": message.message_id, "attempt_id": attempt.attempt_id}
+
+ async def resume_attempt(self, session_id: str, attempt_id: str, user_input: str) -> Dict[str, Any]:
+ """Resume an attempt that is waiting for user input.
+
+ Args:
+ session_id: Session ID.
+ attempt_id: Attempt ID.
+ user_input: User reply content.
+
+ Returns:
+ Dictionary containing status and attempt_id.
+ """
+ session = self.store.get_session(session_id)
+ if not session:
+ raise ValueError(f"Session {session_id} not found")
+ attempt = self.store.get_attempt(session_id, attempt_id)
+ if not attempt:
+ raise ValueError(f"Attempt {attempt_id} not found")
+ if attempt.status != AttemptStatus.WAITING_USER:
+ raise ValueError(f"Attempt {attempt_id} is not waiting for user input")
+
+ message = Message(session_id=session_id, role="user", content=user_input, linked_attempt_id=attempt_id)
+ self.store.append_message(message)
+
+ # Append the user's reply to the prompt and rerun the attempt.
+ attempt.prompt = f"{attempt.prompt}\n\nUser reply: {user_input}"
+ attempt.status = AttemptStatus.RUNNING
+ self.store.update_attempt(attempt)
+ self.event_bus.emit(session_id, "attempt.resumed", {"attempt_id": attempt_id, "user_input": user_input})
+
+ asyncio.create_task(self._run_attempt(session, attempt))
+ return {"status": "resumed", "attempt_id": attempt_id}
+
+ def get_messages(self, session_id: str, limit: int = 100) -> list[Message]:
+ """Return the message history."""
+ return self.store.get_messages(session_id, limit)
+
+ def get_attempts(self, session_id: str) -> list[Attempt]:
+ """Return all execution attempts."""
+ return self.store.list_attempts(session_id)
+
+ def get_attempt(self, session_id: str, attempt_id: str) -> Optional[Attempt]:
+ """Return a single execution attempt."""
+ return self.store.get_attempt(session_id, attempt_id)
+
+ def cancel_current(self, session_id: str) -> bool:
+ """Cancel the currently running AgentLoop for a session.
+
+ Args:
+ session_id: Session ID.
+
+ Returns:
+ Whether cancellation succeeded. True means an active loop existed and received a cancel signal.
+ """
+ loop = self._active_loops.get(session_id)
+ if loop is None:
+ return False
+ loop.cancel()
+ return True
+
+ async def _run_attempt(self, session: Session, attempt: Attempt) -> None:
+ """Execute an Attempt in the background."""
+ attempt.mark_running()
+ self.store.update_attempt(attempt)
+ self.event_bus.emit(session.session_id, "attempt.started", {"attempt_id": attempt.attempt_id})
+
+ try:
+ messages = self.store.get_messages(session.session_id)
+ result = await self._run_with_agent(attempt, messages=messages)
+ if result.get("status") == "success":
+ attempt.mark_completed(summary=result.get("content", ""))
+ else:
+ attempt.mark_failed(error=result.get("reason", "unknown"))
+ attempt.run_dir = result.get("run_dir")
+
+ self.store.update_attempt(attempt)
+ reply_metadata = {}
+ if attempt.run_dir:
+ reply_metadata["run_id"] = Path(attempt.run_dir).name
+ reply_metadata["status"] = attempt.status.value
+ if attempt.metrics:
+ reply_metadata["metrics"] = attempt.metrics
+
+ reply = Message(
+ session_id=session.session_id, role="assistant",
+ content=self._format_result_message(attempt),
+ linked_attempt_id=attempt.attempt_id,
+ metadata=reply_metadata,
+ )
+ self.store.append_message(reply)
+ self.event_bus.emit(
+ session.session_id,
+ "attempt.completed" if attempt.status == AttemptStatus.COMPLETED else "attempt.failed",
+ {"attempt_id": attempt.attempt_id, "status": attempt.status.value,
+ "summary": attempt.summary, "error": attempt.error, "run_dir": attempt.run_dir},
+ )
+
+ except Exception as exc:
+ attempt.mark_failed(error=str(exc))
+ self.store.update_attempt(attempt)
+ self.event_bus.emit(session.session_id, "attempt.failed", {"attempt_id": attempt.attempt_id, "error": str(exc)})
+
+ async def _run_with_agent(self, attempt: Attempt, messages: list = None) -> Dict[str, Any]:
+ """Execute an attempt with the V5 AgentLoop.
+
+ Args:
+ attempt: Current execution attempt.
+ messages: Session message history.
+
+ Returns:
+ Result dictionary containing status, run_dir, run_id, metrics, and related fields.
+ """
+ from src.tools import build_registry
+ from src.providers.chat import ChatLLM
+ from src.agent.loop import AgentLoop
+
+ registry = build_registry()
+ llm = ChatLLM()
+
+ session_id = attempt.session_id
+ attempt_id = attempt.attempt_id
+
+ def event_callback(event_type: str, data: Dict[str, Any]) -> None:
+ """Forward AgentLoop events to the SSE event bus."""
+ data["attempt_id"] = attempt_id
+ self.event_bus.emit(session_id, event_type, data)
+
+ agent = AgentLoop(
+ registry=registry,
+ llm=llm,
+ event_callback=event_callback,
+ max_iterations=50,
+ )
+ self._active_loops[session_id] = agent
+
+ # Build the message history context.
+ history = self._convert_messages_to_history(messages) if messages else None
+
+ try:
+ loop = asyncio.get_event_loop()
+ result = await loop.run_in_executor(
+ _AGENT_EXECUTOR,
+ lambda: agent.run(
+ user_message=attempt.prompt,
+ history=history,
+ session_id=session_id,
+ ),
+ )
+ finally:
+ self._active_loops.pop(session_id, None)
+
+ # Load metrics from the run output when available.
+ if result.get("run_dir"):
+ metrics = self._load_metrics(Path(result["run_dir"]))
+ if metrics:
+ result["metrics"] = metrics
+
+ return result
+
+ @staticmethod
+ def _convert_messages_to_history(messages: list) -> list[Dict[str, Any]]:
+ """Convert Session messages into OpenAI-format history.
+
+ Keeps the readable ``[prev_run: {run_id}]`` marker instead of removing it
+ completely, and trims by character budget instead of a hard six-message cap
+ so the LLM can still see previous artifact paths and strategy content during
+ iterative updates.
+
+ Args:
+ messages: Session message list without the current turn.
+
+ Returns:
+ OpenAI-format messages trimmed from the newest items within the token budget.
+ """
+ import re
+ from pathlib import Path
+
+ def _shorten_run_dir(match: re.Match) -> str:
+ path_str = match.group(0).replace("Run directory:", "").strip()
+ run_id = Path(path_str).name if path_str else ""
+ return f"[prev_run: {run_id}]" if run_id else ""
+
+ history = []
+ for msg in messages[:-1]:
+ role = msg.role if hasattr(msg, "role") else msg.get("role", "user")
+ content = msg.content if hasattr(msg, "content") else msg.get("content", "")
+ if not content.strip() or role not in ("user", "assistant"):
+ continue
+ content = re.sub(r"Run directory:\s*\S+", _shorten_run_dir, content).strip()
+ if content:
+ history.append({"role": role, "content": content})
+
+ # Trim from the newest messages within a character budget of roughly 3000 tokens.
+ MAX_HISTORY_CHARS = 12000
+ total_chars = 0
+ trimmed: list = []
+ for msg in reversed(history):
+ msg_len = len(msg.get("content", ""))
+ if total_chars + msg_len > MAX_HISTORY_CHARS:
+ break
+ trimmed.append(msg)
+ total_chars += msg_len
+ return list(reversed(trimmed))
+
+ @staticmethod
+ def _load_metrics(run_dir: Path) -> Optional[Dict[str, Any]]:
+ """Load metrics.csv from a run directory."""
+ import csv
+ metrics_path = run_dir / "artifacts" / "metrics.csv"
+ if not metrics_path.exists():
+ return None
+ try:
+ with open(metrics_path, "r", encoding="utf-8") as f:
+ rows = list(csv.DictReader(f))
+ if rows:
+ return {k: float(v) for k, v in rows[0].items() if v}
+ except Exception:
+ pass
+ return None
+
+ @staticmethod
+ def _format_result_message(attempt: Attempt) -> str:
+ """Format the final execution result message."""
+ if attempt.status == AttemptStatus.COMPLETED:
+ return attempt.summary or "Strategy execution completed."
+ return f"Execution failed: {attempt.error or 'unknown error'}"
diff --git a/agent/src/session/store.py b/agent/src/session/store.py
new file mode 100644
index 000000000..b077115fb
--- /dev/null
+++ b/agent/src/session/store.py
@@ -0,0 +1,254 @@
+"""Filesystem-backed persistence for Session, Message, and Attempt records."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+from src.session.models import Attempt, Message, Session
+
+
+class SessionStore:
+ """Filesystem-backed persistent storage.
+
+ Directory structure::
+
+ sessions/
+ โ”œโ”€โ”€ {session_id}/
+ โ”‚ โ”œโ”€โ”€ session.json
+ โ”‚ โ”œโ”€โ”€ messages.jsonl
+ โ”‚ โ””โ”€โ”€ attempts/
+ โ”‚ โ””โ”€โ”€ {attempt_id}/
+ โ”‚ โ””โ”€โ”€ attempt.json
+
+ Attributes:
+ base_dir: Root directory for session storage.
+ """
+
+ def __init__(self, base_dir: Path) -> None:
+ """Initialize session storage.
+
+ Args:
+ base_dir: Root directory for session storage.
+ """
+ self.base_dir = base_dir
+ self.base_dir.mkdir(parents=True, exist_ok=True)
+
+ def _session_dir(self, session_id: str) -> Path:
+ return self.base_dir / session_id
+
+ def _session_file(self, session_id: str) -> Path:
+ return self._session_dir(session_id) / "session.json"
+
+ def _messages_file(self, session_id: str) -> Path:
+ return self._session_dir(session_id) / "messages.jsonl"
+
+ def _attempt_dir(self, session_id: str, attempt_id: str) -> Path:
+ return self._session_dir(session_id) / "attempts" / attempt_id
+
+ def _attempt_file(self, session_id: str, attempt_id: str) -> Path:
+ return self._attempt_dir(session_id, attempt_id) / "attempt.json"
+
+ # ---- Session CRUD ----
+
+ def create_session(self, session: Session) -> Session:
+ """Create and persist a session.
+
+ Args:
+ session: Session instance to create.
+
+ Returns:
+ The persisted Session.
+
+ Raises:
+ ValueError: Raised when the session already exists.
+ """
+ session_dir = self._session_dir(session.session_id)
+ if session_dir.exists():
+ raise ValueError(f"Session {session.session_id} already exists")
+ session_dir.mkdir(parents=True)
+ (session_dir / "attempts").mkdir()
+ self._write_json(self._session_file(session.session_id), session.to_dict())
+ return session
+
+ def get_session(self, session_id: str) -> Optional[Session]:
+ """Read a session.
+
+ Args:
+ session_id: Session ID.
+
+ Returns:
+ The Session instance, or None when it does not exist.
+ """
+ path = self._session_file(session_id)
+ data = self._read_json(path)
+ if data is None:
+ return None
+ return Session.from_dict(data)
+
+ def update_session(self, session: Session) -> None:
+ """Update a session.
+
+ Args:
+ session: Modified Session instance.
+ """
+ self._write_json(self._session_file(session.session_id), session.to_dict())
+
+ def delete_session(self, session_id: str) -> bool:
+ """Delete a session and all of its data.
+
+ Args:
+ session_id: Session ID.
+
+ Returns:
+ Whether the delete succeeded.
+ """
+ session_dir = self._session_dir(session_id)
+ if not session_dir.exists():
+ return False
+ import shutil
+ shutil.rmtree(session_dir, ignore_errors=True)
+ return True
+
+ def list_sessions(self, limit: int = 50) -> List[Session]:
+ """List all sessions in descending update-time order.
+
+ Args:
+ limit: Maximum number of sessions to return.
+
+ Returns:
+ List of Session objects.
+ """
+ sessions: List[Session] = []
+ if not self.base_dir.exists():
+ return sessions
+ for session_dir in self.base_dir.iterdir():
+ if not session_dir.is_dir():
+ continue
+ session_file = session_dir / "session.json"
+ data = self._read_json(session_file)
+ if data:
+ sessions.append(Session.from_dict(data))
+ sessions.sort(key=lambda s: s.updated_at, reverse=True)
+ return sessions[:limit]
+
+ # ---- Message Append-Only Log ----
+
+ def append_message(self, message: Message) -> None:
+ """Append a message to the session JSONL log.
+
+ Args:
+ message: Message to append.
+ """
+ path = self._messages_file(message.session_id)
+ path.parent.mkdir(parents=True, exist_ok=True)
+ with path.open("a", encoding="utf-8") as f:
+ f.write(json.dumps(message.to_dict(), ensure_ascii=False) + "\n")
+
+ def get_messages(self, session_id: str, limit: int = 100) -> List[Message]:
+ """Read all messages for a session.
+
+ Args:
+ session_id: Session ID.
+ limit: Maximum number of messages to return.
+
+ Returns:
+ List of Message objects in chronological order.
+ """
+ path = self._messages_file(session_id)
+ if not path.exists():
+ return []
+ messages: List[Message] = []
+ for line in path.read_text(encoding="utf-8").strip().splitlines():
+ if line.strip():
+ messages.append(Message.from_dict(json.loads(line)))
+ return messages[-limit:]
+
+ # ---- Attempt CRUD ----
+
+ def create_attempt(self, attempt: Attempt) -> Attempt:
+ """Create an execution attempt.
+
+ Args:
+ attempt: Attempt to create.
+
+ Returns:
+ The persisted Attempt.
+ """
+ attempt_dir = self._attempt_dir(attempt.session_id, attempt.attempt_id)
+ attempt_dir.mkdir(parents=True, exist_ok=True)
+ self._write_json(
+ self._attempt_file(attempt.session_id, attempt.attempt_id),
+ attempt.to_dict(),
+ )
+ return attempt
+
+ def get_attempt(self, session_id: str, attempt_id: str) -> Optional[Attempt]:
+ """Read an execution attempt.
+
+ Args:
+ session_id: Session ID.
+ attempt_id: Attempt ID.
+
+ Returns:
+ The Attempt instance, or None when it does not exist.
+ """
+ path = self._attempt_file(session_id, attempt_id)
+ data = self._read_json(path)
+ if data is None:
+ return None
+ return Attempt.from_dict(data)
+
+ def update_attempt(self, attempt: Attempt) -> None:
+ """Update an execution attempt.
+
+ Args:
+ attempt: Modified Attempt.
+ """
+ self._write_json(
+ self._attempt_file(attempt.session_id, attempt.attempt_id),
+ attempt.to_dict(),
+ )
+
+ def list_attempts(self, session_id: str) -> List[Attempt]:
+ """List all execution attempts for a session.
+
+ Args:
+ session_id: Session ID.
+
+ Returns:
+ List of Attempt objects sorted by creation time.
+ """
+ attempts_dir = self._session_dir(session_id) / "attempts"
+ if not attempts_dir.exists():
+ return []
+ attempts: List[Attempt] = []
+ for attempt_dir in attempts_dir.iterdir():
+ if not attempt_dir.is_dir():
+ continue
+ attempt_file = attempt_dir / "attempt.json"
+ data = self._read_json(attempt_file)
+ if data:
+ attempts.append(Attempt.from_dict(data))
+ attempts.sort(key=lambda a: a.created_at)
+ return attempts
+
+ # ---- IO Helpers ----
+
+ @staticmethod
+ def _write_json(path: Path, data: Dict[str, Any]) -> None:
+ path.parent.mkdir(parents=True, exist_ok=True)
+ path.write_text(
+ json.dumps(data, ensure_ascii=False, indent=2),
+ encoding="utf-8",
+ )
+
+ @staticmethod
+ def _read_json(path: Path) -> Optional[Dict[str, Any]]:
+ if not path.exists():
+ return None
+ try:
+ return json.loads(path.read_text(encoding="utf-8"))
+ except (json.JSONDecodeError, OSError):
+ return None
diff --git a/agent/src/skills/adr-hshare/SKILL.md b/agent/src/skills/adr-hshare/SKILL.md
new file mode 100644
index 000000000..dd32dfe1d
--- /dev/null
+++ b/agent/src/skills/adr-hshare/SKILL.md
@@ -0,0 +1,224 @@
+---
+name: adr-hshare
+description: ADR/H-share/A-share cross-listing premium analysis โ€” track pricing gaps between US-listed ADRs, HK-listed H-shares, and A-shares for arbitrage signals, dual-listing valuation, and delisting risk assessment.
+---
+# ADR / H-Share / A-Share Cross-Listing Analysis
+
+## Overview
+
+Many Chinese companies are listed on multiple exchanges โ€” A-shares in Shanghai/Shenzhen, H-shares in Hong Kong, and ADRs in the US. Pricing gaps between these listings create arbitrage opportunities and reveal market-specific sentiment differences. This skill provides frameworks for analyzing cross-listing premiums, identifying arbitrage signals, and assessing delisting risk for US-listed Chinese ADRs.
+
+## Core Concepts
+
+### 1. Cross-Listing Structures
+
+| Structure | Description | Examples |
+|-----------|-------------|---------|
+| A + H dual-listed | Same company listed on both A-share and HK exchange | PetroChina (601857.SH / 0857.HK), ICBC (601398.SH / 1398.HK) |
+| H + ADR dual-listed | HK-listed with US ADR | Alibaba (9988.HK / BABA), JD.com (9618.HK / JD) |
+| A + H + ADR triple-listed | All three markets | China Life (601628.SH / 2628.HK / LFC) |
+| HK primary + US secondary | Primary listing in HK, secondary ADR | Tencent (0700.HK / TCEHY OTC) |
+| US primary โ†’ HK secondary | Originally US, added HK listing | Alibaba (BABA โ†’ 9988.HK), Baidu (BIDU โ†’ 9888.HK) |
+
+### 2. AH Premium Analysis
+
+**AH Premium = (A-share price / H-share price in CNY terms - 1) ร— 100%**
+
+```python
+def calculate_ah_premium(a_price_cny, h_price_hkd, usdcny, usdhkd):
+ """Calculate AH premium for a dual-listed stock."""
+ h_price_cny = h_price_hkd * (usdcny / usdhkd) # Convert HKD to CNY
+ ah_premium = (a_price_cny / h_price_cny - 1) * 100
+ return ah_premium
+
+# Example: PetroChina
+# A-share: 8.50 CNY, H-share: 6.20 HKD
+# USDCNY: 7.25, USDHKD: 7.82
+# H in CNY: 6.20 * (7.25/7.82) = 5.75 CNY
+# AH Premium: (8.50/5.75 - 1) * 100 = 47.8%
+```
+
+**AH Premium signal interpretation:**
+
+| Premium Level | Interpretation | Action |
+|--------------|----------------|--------|
+| >50% | Extreme A-share premium; A-share speculative bubble or H-share extreme undervaluation | Strong: buy H, sell/avoid A |
+| 30-50% | Elevated premium; normal for high-retail-participation names | Moderate: favor H if fundamentals same |
+| 10-30% | Normal range for most AH pairs | Neutral; no strong arbitrage signal |
+| 0-10% | Compressed premium; A-shares relatively cheap | Unusual; investigate catalyst |
+| <0% | H-share premium over A-share | Very rare; usually near-term event-driven |
+
+**Structural drivers of AH premium:**
+1. **Liquidity premium**: A-shares have much higher retail participation and turnover โ†’ liquidity premium
+2. **Access premium**: A-shares were historically hard for foreigners to access โ†’ scarcity premium
+3. **Currency expectations**: CNY depreciation expectations widen the premium
+4. **Regulatory arbitrage**: different trading rules (T+1 in A-shares vs T+0 in HK)
+5. **Investor composition**: A-share retail speculative premium vs HK institutional valuation discipline
+
+### 3. ADR Premium/Discount Analysis
+
+**ADR premium = (ADR price in USD / HK equivalent in USD - 1) ร— 100%**
+
+```python
+def calculate_adr_premium(adr_price_usd, hk_price_hkd, adr_ratio, usdhkd):
+ """
+ Calculate ADR premium over HK listing.
+ adr_ratio: number of HK shares per 1 ADR (e.g., BABA: 1 ADR = 8 HK shares)
+ """
+ hk_equivalent_usd = (hk_price_hkd * adr_ratio) / usdhkd
+ premium = (adr_price_usd / hk_equivalent_usd - 1) * 100
+ return premium
+
+# Example: Alibaba
+# BABA ADR: $85.00, 9988.HK: HKD 82.50
+# ADR ratio: 1 ADR = 8 HK shares
+# HK equivalent: (82.50 * 8) / 7.82 = $84.40
+# ADR premium: (85.00/84.40 - 1) * 100 = 0.71%
+```
+
+**Key ADR conversion ratios:**
+
+| Company | ADR Ticker | HK Ticker | ADR Ratio (HK:ADR) | ADR Exchange |
+|---------|-----------|-----------|---------------------|--------------|
+| Alibaba | BABA | 9988.HK | 8:1 | NYSE |
+| JD.com | JD | 9618.HK | 2:1 | NASDAQ |
+| Baidu | BIDU | 9888.HK | 8:1 | NASDAQ |
+| Bilibili | BILI | 9626.HK | 1:1 | NASDAQ |
+| NIO | NIO | 9866.HK | 1:1 | NYSE |
+| XPeng | XPEV | 9868.HK | 2:1 | NYSE |
+| Li Auto | LI | 2015.HK | 2:1 | NASDAQ |
+| NetEase | NTES | 9999.HK | 5:1 | NASDAQ |
+| Trip.com | TCOM | 9961.HK | 1:1 | NASDAQ |
+| Pinduoduo | PDD | N/A (US-only) | N/A | NASDAQ |
+
+**ADR premium drivers:**
+- US trading hours sentiment (earnings releases, macro data during US hours)
+- US-specific regulatory events (SEC, PCAOB audits)
+- Liquidity premium (ADR often more liquid for global funds)
+- Time zone gap: ADR closes at HK's open โ†’ overnight gap creates premium/discount
+
+### 4. Delisting Risk Assessment
+
+**HFCAA (Holding Foreign Companies Accountable Act) framework:**
+
+Since 2022, PCAOB gained access to audit workpapers of Chinese companies. Key risks:
+
+| Risk Level | Criteria | Impact |
+|------------|----------|--------|
+| Low | PCAOB inspection completed, no issues | ADR status stable |
+| Medium | PCAOB inspection completed, deficiencies noted | Monitor for resolution |
+| High | PCAOB access revoked or restricted | 3-year delisting countdown activated |
+| Critical | On SEC "identified issuer" list for 3 consecutive years | Forced delisting |
+
+**Delisting risk indicators:**
+```python
+delisting_risk_factors = {
+ "pcaob_status": "inspected", # inspected / pending / blocked
+ "sec_identified_years": 0, # 0, 1, 2, or 3 (3 = delist)
+ "has_hk_listing": True, # Backup listing reduces impact
+ "hk_listing_type": "primary", # primary (can be in Connect) vs secondary
+ "vie_structure": True, # Variable Interest Entity adds legal risk
+ "state_owned": False, # SOE status adds geopolitical risk
+}
+
+# Companies with HK primary listing (BABA, JD, BIDU, NTES, etc.) have
+# a safety net if US delisting occurs โ†’ fungible conversion ADR โ†’ HK shares
+# Companies with US-only listing (PDD until HK listing) face higher risk
+```
+
+### 5. Cross-Listing Arbitrage Strategies
+
+**Strategy 1: AH Premium Mean-Reversion**
+```python
+# When AH premium for a specific stock diverges significantly from its historical average
+ah_premium_current = 45 # current premium
+ah_premium_mean_12m = 35 # 12-month average
+ah_premium_std = 8 # standard deviation
+
+z_score = (ah_premium_current - ah_premium_mean_12m) / ah_premium_std
+
+if z_score > 2.0:
+ signal = "fade_premium" # A-share overvalued vs H; buy H, avoid A
+elif z_score < -2.0:
+ signal = "buy_premium" # A-share undervalued vs H; buy A, avoid H
+else:
+ signal = "neutral"
+```
+
+**Strategy 2: ADR-HK Intraday Arbitrage**
+- During overlapping trading hours (HK morning = US pre-market via ADR), price gaps can appear
+- Professional arbitrageurs use ADRโ†”HK fungible conversion to capture these gaps
+- For research purposes: tracking ADR premium trend indicates which market is leading sentiment
+
+**Strategy 3: Event-Driven Cross-Listing**
+- New HK listing announcement (USโ†’HK): ADR typically dips 2-5% on dilution fear, then recovers
+- MSCI / FTSE index inclusion of HK listing: triggers passive fund buying in HK
+- Stock Connect inclusion (HK primary listing eligible): triggers mainland institutional buying
+
+## Data Access
+
+```python
+import yfinance as yf
+
+# Fetch ADR and HK prices simultaneously
+baba_adr = yf.download("BABA", start="2025-01-01", end="2026-03-30", progress=False)
+baba_hk = yf.download("9988.HK", start="2025-01-01", end="2026-03-30", progress=False)
+
+# For A+H pairs
+petrochina_a = yf.download("601857.SS", start="2025-01-01", end="2026-03-30", progress=False)
+petrochina_h = yf.download("0857.HK", start="2025-01-01", end="2026-03-30", progress=False)
+
+# FX rates for premium calculation
+cny = yf.download("CNY=X", start="2025-01-01", end="2026-03-30", progress=False) # USD/CNY
+hkd = yf.download("HKD=X", start="2025-01-01", end="2026-03-30", progress=False) # USD/HKD
+
+# AH Premium Index (HSAHP)
+# Not directly on yfinance; use Hang Seng website or Tushare
+```
+
+## Output Format
+
+```
+## Cross-Listing Analysis โ€” [Company Name]
+
+### Listing Structure
+- **A-share**: [code] @ [price CNY]
+- **H-share**: [code] @ [price HKD]
+- **ADR**: [ticker] @ [price USD] (ratio: X HK shares = 1 ADR)
+
+### Premium/Discount
+- **AH Premium**: [X%] (12m avg: X%, z-score: X.X)
+- **ADR-HK Premium**: [X%] (5d avg: X%)
+- **Direction**: [AH premium widening / narrowing / stable]
+
+### Valuation Comparison
+| Metric | A-share | H-share | ADR |
+|--------|---------|---------|-----|
+| PE (TTM) | XX.X | XX.X | XX.X |
+| PB | X.X | X.X | X.X |
+| Dividend yield | X.X% | X.X% | X.X% |
+
+### Delisting Risk (ADR)
+- **PCAOB status**: [inspected / pending]
+- **SEC identified years**: [0/1/2/3]
+- **HK backup**: [yes-primary / yes-secondary / no]
+- **Risk level**: [low / medium / high / critical]
+
+### Arbitrage Signal
+- **AH premium z-score**: [X.X] โ†’ [fade premium / neutral / buy premium]
+- **Best market to buy**: [A / H / ADR] โ€” rationale
+- **Catalyst**: [index inclusion, Connect eligibility, earnings]
+
+### Investment Implication
+- **Preferred listing**: [H-share / ADR / A-share] for new position
+- **Risk**: [delisting, FX, regulatory, liquidity]
+```
+
+## Notes
+
+- AH premium arbitrage is not freely executable: A-shares and H-shares are NOT fungible (no direct conversion), so true arbitrage requires separate capital pools
+- ADRโ†”HK conversion IS possible for most dual-listed names (via depositary bank), but takes 2-3 business days and involves fees
+- Currency risk (CNY, HKD, USD) is a major driver of cross-listing premiums; always hedge or account for FX when comparing
+- VIE (Variable Interest Entity) structure adds a layer of legal risk for many Chinese ADRs; this is a structural risk, not a trading signal
+- Stock Connect eligibility requirements mean not all HK-listed Chinese companies are accessible to mainland investors
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/asset-allocation/SKILL.md b/agent/src/skills/asset-allocation/SKILL.md
new file mode 100644
index 000000000..76b53d456
--- /dev/null
+++ b/agent/src/skills/asset-allocation/SKILL.md
@@ -0,0 +1,289 @@
+---
+name: asset-allocation
+description: Asset allocation theory and optimizer usage โ€” MPT / Black-Litterman / risk budgeting / all-weather strategy, including guides for 4 optimizers and rebalancing rules.
+---
+
+# Asset Allocation and Portfolio Optimization
+
+## Overview
+
+From asset allocation theory to practical implementation, this skill covers classical frameworks (MPT, BL, risk budgeting, all-weather) and the usage of the four optimizers built into this system. The output can be written directly into `config.json`.
+
+## Asset Allocation Theory
+
+### 1. Modern Portfolio Theory (MPT, Markowitz)
+
+**Core idea**: maximize expected return for a given level of risk (the efficient frontier).
+
+```
+Optimization problem:
+min w'ฮฃw (portfolio variance)
+s.t. w'ฮผ = target_return
+ ฮฃw = 1
+ w โ‰ฅ 0 (no shorting)
+```
+
+| Advantages | Disadvantages |
+|------|------|
+| Mathematically rigorous | Extremely sensitive to inputs (garbage in, garbage out) |
+| Efficient frontier is visualizable | Concentrated-allocation problem (often produces extreme weights) |
+| Foundational framework | Assumes normality and ignores fat tails |
+
+**Practical advice**: do not use raw MPT directly. Add constraints (upper/lower bounds, sector limits) or use a regularized version.
+
+### 2. Black-Litterman Model
+
+**Core idea**: start from market equilibrium and incorporate investor views.
+
+```
+Steps:
+1. Reverse-imply market equilibrium returns: ฯ€ = ฮดฮฃw_mkt
+2. Build the view matrices: P (selection matrix), Q (view returns), ฮฉ (view uncertainty)
+3. Blend the posterior: ฮผ_BL = [(ฯ„ฮฃ)^-1 + P'ฮฉ^-1 P]^-1 [(ฯ„ฮฃ)^-1 ฯ€ + P'ฮฉ^-1 Q]
+4. Run Markowitz optimization using posterior ฮผ_BL
+```
+
+**Example views**:
+- Absolute view: "China A-shares will return 10% over the next year" โ†’ `P=[1,0,0], Q=[0.10]`
+- Relative view: "China A-shares will outperform US equities by 5%" โ†’ `P=[1,-1,0], Q=[0.05]`
+
+**Parameter guidance**:
+- `ฯ„` (uncertainty scaling): `0.025-0.05`
+- `ฮฉ`: set according to view confidence, where higher confidence = smaller variance
+
+### 3. Risk Budgeting
+
+**Core idea**: allocate by risk contribution rather than by capital share.
+
+```
+Risk contribution: RC_i = w_i ร— (ฮฃw)_i / ฯƒ_p
+Target: RC_i / ฯƒ_p = budget_i (for all i)
+```
+
+| Strategy | Risk Budget | Best Use Case |
+|------|---------|---------|
+| Equal risk contribution | Each asset 1/N | When you do not know which asset is best |
+| Equity-tilted risk budget | Stocks 60%, bonds 30%, commodities 10% | When you want equities to contribute more risk |
+| Dynamic risk budget | Adjust dynamically by signal strength | When you have market-timing ability |
+
+### 4. All-Weather Strategy
+
+**Bridgewater framework**: allocate risk equally across economic environments.
+
+```
+Economic environment Asset allocation
+โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
+Growth rising Equities + commodities + corporate bonds
+Growth falling Government bonds + inflation-protected bonds
+Inflation rising Commodities + inflation-protected bonds + EM debt
+Inflation falling Equities + government bonds
+
+Simplified allocation example for China-focused portfolios:
+- 30% CSI 300 / CSI 500
+- 40% government bonds / credit bonds
+- 15% gold
+- 15% commodities / REITs
+```
+
+## Guide to the 4 Optimizers
+
+### Overview of the Built-In Optimizers
+
+Configure them in `config.json` through `optimizer` and `optimizer_params`:
+
+| optimizer | Display Name | Core Idea | Best Use Case |
+|-----------|--------|---------|---------|
+| `equal_volatility` | Equal Volatility | Allocate weights by inverse volatility | Simple and effective baseline |
+| `risk_parity` | Risk Parity | Equalize risk contribution while accounting for correlation | Long-term robust allocation |
+| `mean_variance` | Mean-Variance | Maximize Sharpe ratio or minimize variance | When return forecasts are available |
+| `max_diversification` | Maximum Diversification | Maximize the diversification ratio | When pursuing a low-correlation portfolio |
+
+### 1. `equal_volatility`
+
+```json
+{
+ "optimizer": "equal_volatility",
+ "optimizer_params": {
+ "lookback": 60
+ }
+}
+```
+
+**Principle**: `w_i = (1/ฯƒ_i) / ฮฃ(1/ฯƒ_j)`
+
+| Parameter | Default | Description |
+|------|--------|------|
+| lookback | 60 | Volatility calculation window (trading days) |
+
+**Advantages**: simple and fast, no return forecast required, no correlation matrix required.
+**Disadvantages**: ignores cross-asset correlation.
+
+### 2. `risk_parity`
+
+```json
+{
+ "optimizer": "risk_parity",
+ "optimizer_params": {
+ "lookback": 60
+ }
+}
+```
+
+**Principle**: solve for weights such that each asset contributes the same amount of risk.
+
+| Parameter | Default | Description |
+|------|--------|------|
+| lookback | 60 | Covariance-matrix estimation window |
+
+**Advantages**: accounts for correlation, spreads risk more evenly, and is robust over long horizons.
+**Disadvantages**: requires iterative solving and is sensitive to covariance estimates.
+
+### 3. `mean_variance`
+
+```json
+{
+ "optimizer": "mean_variance",
+ "optimizer_params": {
+ "lookback": 60,
+ "risk_free": 0.0
+ }
+}
+```
+
+**Principle**: Markowitz optimization that maximizes the Sharpe ratio.
+
+| Parameter | Default | Description |
+|------|--------|------|
+| lookback | 60 | Window for estimating means and covariances |
+| risk_free | 0.0 | Risk-free rate (annualized) |
+
+**Advantages**: theoretically optimal (if inputs are accurate).
+**Disadvantages**: extremely sensitive to inputs, prone to extreme weights, and often performs poorly out of sample.
+**Recommendation**: do not make `lookback` too short (`<30` easily overfits), and add upper/lower weight constraints.
+
+### 4. `max_diversification`
+
+```json
+{
+ "optimizer": "max_diversification",
+ "optimizer_params": {
+ "lookback": 60
+ }
+}
+```
+
+**Principle**: maximize `DR = (w'ฯƒ) / ฯƒ_p` (the diversification ratio).
+
+| Parameter | Default | Description |
+|------|--------|------|
+| lookback | 60 | Calculation window |
+
+**Advantages**: does not require return forecasts and seeks true diversification.
+**Disadvantages**: effectiveness is limited in highly correlated environments.
+
+### Optimizer Selection Decision Tree
+
+```
+Do you have return forecasts?
+โ”œโ”€โ”€ Yes โ†’ mean_variance (remember to add constraints)
+โ””โ”€โ”€ No โ†’ Do you need to account for correlation?
+ โ”œโ”€โ”€ Yes โ†’ risk_parity (recommended default)
+ โ””โ”€โ”€ No โ†’ Are volatility differences across assets large?
+ โ”œโ”€โ”€ Yes โ†’ equal_volatility
+ โ””โ”€โ”€ No โ†’ max_diversification
+```
+
+## Rebalancing Strategy
+
+### Three Rebalancing Triggers
+
+| Method | Trigger Condition | Advantages | Disadvantages |
+|------|---------|------|------|
+| Periodic rebalancing | Fixed monthly / quarterly date | Simple, predictable trading cost | May miss or delay adjustments |
+| Threshold trigger | Deviation from target weight > X% | Trades only when needed | Frequent trading in high-volatility markets |
+| Volatility trigger | VIX / volatility breaks a threshold | Adapts to market regime | Parameter selection is difficult |
+
+### Suggested Rebalancing Frequency
+
+| Asset Class | Suggested Frequency | Threshold |
+|---------|---------|------|
+| Equity portfolio | Monthly | ยฑ5% |
+| Stock-bond mix | Quarterly | ยฑ10% |
+| Global macro | Quarterly / semiannual | ยฑ10% |
+| Cryptocurrency | Weekly / biweekly | ยฑ15% (high volatility) |
+
+### Rebalancing in Backtests
+
+Implement rebalancing logic in `signal_engine.py`:
+
+```python
+# Periodic rebalancing example (every 20 trading days)
+if bar_count % rebalance_freq == 0:
+ # Recompute weights
+ new_weights = calculate_target_weights(data_map)
+ for code, weight in new_weights.items():
+ signals[code].iloc[i] = weight
+```
+
+## Cross-Asset Correlation Analysis
+
+### Typical Correlation Matrix (China-Focused Portfolio Example)
+
+| | CSI 300 | CSI 500 | Government Bonds | Gold | BTC |
+|--|--------|--------|------|------|-----|
+| CSI 300 | 1.00 | 0.85 | -0.15 | 0.05 | 0.10 |
+| CSI 500 | 0.85 | 1.00 | -0.10 | 0.03 | 0.12 |
+| Government Bonds | -0.15 | -0.10 | 1.00 | 0.20 | -0.05 |
+| Gold | 0.05 | 0.03 | 0.20 | 1.00 | 0.15 |
+| BTC | 0.10 | 0.12 | -0.05 | 0.15 | 1.00 |
+
+**Key patterns**:
+- Negative stock-bond correlation is the foundation of allocation (but it does not always hold; in 2022 both stocks and bonds sold off)
+- Gold has low correlation with equities and serves as a hedge
+- BTC's correlation with traditional assets is unstable and tends to become positive in crises
+- Large-cap versus small-cap China A-shares have high correlation (`0.85`), so diversification benefits are limited
+
+## Output Format
+
+```markdown
+## Asset Allocation Recommendation
+
+### Allocation Plan
+| Asset | Weight | Risk Contribution | Expected Return (Annualized) |
+|------|------|---------|--------------|
+| CSI 300 | 30% | 45% | 8% |
+| Government Bond ETF | 40% | 15% | 3% |
+| Gold | 15% | 20% | 5% |
+| BTC | 15% | 20% | 15% |
+
+### Optimizer Configuration
+```json
+{
+ "optimizer": "risk_parity",
+ "optimizer_params": {"lookback": 60}
+}
+```
+
+### Expected Risk / Return
+| Metric | Value |
+|------|-----|
+| Expected annualized return | 7.2% |
+| Expected annualized volatility | 8.5% |
+| Expected Sharpe | 0.85 |
+| Expected maximum drawdown | -12% |
+
+### Rebalancing Rules
+- Frequency: quarterly (first trading day of March / June / September / December)
+- Threshold: trigger when any asset deviates from target by ยฑ10%
+- Cost: estimated annual trading cost 0.15%
+```
+
+## Notes
+
+1. **The optimizer needs enough instruments**: at least 3 instruments are needed for meaningful optimization; with 2 instruments, `equal_volatility` is usually enough
+2. **`lookback` window**: too short (`<20`) is noisy, too long (`>120`) reacts slowly, and 60 is a reasonable default
+3. **`mean_variance` trap**: it is the easiest to overfit, and out-of-sample Sharpe is often cut by half or more
+4. **Rebalancing cost**: frequent rebalancing eats into returns; for China A-share portfolios, stamp duty of 0.05% plus commissions is material
+5. **Cross-market allocation**: use `"source": "auto"` in `config.json`, and let `codes` mix instruments from different markets
+6. **Leverage constraint**: the sum of weights must be โ‰ค 1.0, and leverage is not allowed unless explicitly specified
+7. **Survivorship bias**: historical correlations may be distorted by delistings and new listings
diff --git a/agent/src/skills/backtest-diagnose/SKILL.md b/agent/src/skills/backtest-diagnose/SKILL.md
new file mode 100644
index 000000000..a36f93ecf
--- /dev/null
+++ b/agent/src/skills/backtest-diagnose/SKILL.md
@@ -0,0 +1,88 @@
+---
+name: backtest-diagnose
+description: Diagnose failed or underperforming backtests, locate the root cause, and fix the issue
+---
+
+# Backtest Diagnosis
+
+## Overview
+
+Use this skill when a user reports that a backtest failed, raised an error, or produced poor results.
+
+## Diagnostic Workflow
+
+1. **Read existing artifacts**: use `read_file` to inspect `artifacts/metrics.csv`, `equity.csv`, and `trades.csv`
+2. **Read the code**: use `read_file` to inspect `code/signal_engine.py` and `config.json`
+3. **Classify the issue**: determine the root cause using the error taxonomy below
+4. **Apply the fix**: use `edit_file` to modify the code, then rerun the backtest
+5. **Verify the fix**: use `read_file` to inspect the new `metrics.csv`
+
+## Error Taxonomy
+
+### Runtime Errors (`exit_code != 0`)
+
+| Error Type | Common Cause | Fix |
+|---------|---------|---------|
+| ImportError | Missing dependency | `bash("pip install xxx")` |
+| KeyError | DataFrame column-name mismatch | Check the actual column names in `data_map` |
+| IndexError | Empty data or insufficient length | Add length checks |
+| TypeError | Incorrect signal type | Ensure the return value is `pd.Series` |
+
+### Logic Bugs (Backtest Succeeds but Results Are Abnormal)
+
+1. **Zero trades** (`trade_count=0`): signal-logic bug. Conditions are too strict, so the signal stays at 0. Check whether entry and exit logic is reasonable, and inspect the signal series to confirm it is not all zeros.
+2. **Late trades** (first trade occurs more than 2 years after the backtest start): data-filtering bug. The lookback window may be too long, or the initial data segment may have been dropped. Shorten the window or check whether `dropna` is too aggressive.
+3. **Capital utilization < 50%** (mostly in cash): position-sizing bug. Signal triggers may be too sparse, or the position-sizing logic may be wrong.
+4. **Open position at the end** (a position still exists when the backtest ends): exit-timing bug. Forced liquidation may be missing, or exit logic does not cover the final segment.
+
+### Data Errors
+
+| Symptom | Root Cause | Fix |
+|------|------|---------|
+| No data fetched | Invalid API token or code issue | Check `config.json` |
+| Too little data | Date range too narrow | Expand the date range |
+
+### Data-Source Error Ignore List
+
+If you encounter the following keywords, **do not modify the code**. The problem is on the data-provider side:
+- a provider-side "no data available" response
+- `rate limit`
+- `API limit`
+- `daily limit`
+- `Information` (common in Tushare API responses)
+
+These issues require the user to check the API token, switch data sources, or wait for the quota to reset.
+
+## Hard-Gate Checklist
+
+1. `artifacts/metrics.csv` exists and is non-empty
+2. `artifacts/equity.csv` exists and is non-empty
+3. `trade_count > 0` (`0` trades means a signal bug)
+4. The equity series contains no `NaN`
+5. `exit_code == 0`
+
+## Fixing Principles
+
+- Use **edit_file** to make precise code fixes instead of rewriting the entire file with `write_file`, unless the structure is fundamentally broken
+- Fix the bug only, do not change strategy logic unless the user explicitly asks
+- Fix one issue at a time, and rerun the backtest immediately after each fix
+- Limit yourself to at most 3 repair iterations
+
+## Post-Fix Validation Rules
+
+After modifying `signal_engine.py`, you must confirm:
+1. **AST syntax passes**: `bash("python -c \"import ast; ast.parse(open('code/signal_engine.py').read()); print('OK')\"")`
+2. **Contains `class SignalEngine`**: the file must define `class SignalEngine`
+3. **Contains `def generate`**: the class must contain a `def generate` method
+4. **Rerun the backtest**: after the fix, rerun the backtest and verify the results
+
+## `action_items` Writing Rules
+
+After diagnosis, output actionable improvement suggestions:
+- Format: `"Change X from A to B"` or `"Add X logic in signal_engine.py"`
+- Be specific about parameter values, filenames, and function names
+- Provide at least 2 items
+- Examples:
+ - `"Change RSI threshold from 30 to 25 in signal_engine.py line 42"`
+ - `"Add signals = signals.fillna(0) after signal calculation to prevent NaN propagation"`
+ - `"Add a volume filter: skip buy signals when volume is below the 20-day average"`
diff --git a/agent/src/skills/behavioral-finance/SKILL.md b/agent/src/skills/behavioral-finance/SKILL.md
new file mode 100644
index 000000000..af772146a
--- /dev/null
+++ b/agent/src/skills/behavioral-finance/SKILL.md
@@ -0,0 +1,207 @@
+---
+name: behavioral-finance
+description: "Behavioral finance applications: theories of overreaction and underreaction, behavioral explanations for momentum and reversal, investor sentiment cycles, cognitive-bias checklists, and debiasing quantitative strategies."
+---
+
+# Behavioral Finance Applications
+
+## Overview
+
+Translate behavioral-finance theory into quantifiable trading signals and risk-control rules. Core assumption: market participants systematically deviate from rational decision-making, and these biases can be predicted and exploited.
+
+Applicable scenarios:
+- Behavioral interpretation and parameter optimization for momentum / reversal strategies
+- Contrarian signals when market sentiment becomes extreme
+- Debiasing mechanisms in portfolio construction
+- Capturing behavior patterns specific to retail-driven China A-share markets
+
+## Core Concepts
+
+### Overreaction and Underreaction
+
+**Underreaction** โ†’ momentum effect:
+```
+Mechanism: anchoring bias + conservatism
+ Investors anchor on old information and update insufficiently to new information
+ After an earnings beat, the stock price digests it gradually rather than all at once
+China A-share evidence:
+ - Earnings-guidance beats still produce 3-5% excess return over the following 20 days
+ - After analyst rating upgrades, momentum often persists for 1-3 months
+Quant signal:
+ SUE (standardized unexpected earnings) > 2ฯƒ -> buy and hold for 60 days
+ Top 10% 20-day return -> continue holding for 20 days (China A-share momentum cycles are shorter)
+```
+
+**Overreaction** โ†’ reversal effect:
+```
+Mechanism: representativeness heuristic + availability bias
+ Investors extrapolate recent trends too aggressively and ignore mean reversion
+ Panic / euphoria drives reactions beyond what fundamentals support
+China A-share evidence:
+ - Rebounds after consecutive limit-downs (after 3 limit-downs, the average 20-day rebound is 8%)
+ - Big annual losers often earn 5-10% excess return the next year
+Quant signal:
+ Bottom 10% of 250-day return -> buy and hold for 250 days
+ RSI(5) < 10 -> short-term rebound signal (5-10 days)
+```
+
+**Key distinction**:
+| Dimension | Underreaction (Momentum) | Overreaction (Reversal) |
+|------|------------------|------------------|
+| Time scale | 1-12 months | <1 week or >12 months |
+| Information type | Clear events (earnings / announcements) | Ambiguous information (sentiment / trend) |
+| Best China A-share window | 20-60 days | 5-10 days (short term) / 1 year (long term) |
+
+### Cognitive Bias Checklist
+
+**Individual decision biases**:
+| Bias | Manifestation | Quant Detection | Debiasing Strategy |
+|------|------|----------|------------|
+| Loss aversion | Hold losing stocks, sell winners too early | Holding period: losing positions > winning positions by 2-3x | Pre-set stop-loss line and execute mechanically |
+| Overconfidence | Overtrading, concentrated positions | Monthly turnover > 100%, single-stock weight > 30% | Limit the number of trades per month |
+| Anchoring effect | Anchoring to entry price / historical highs | Abnormal volume expansion near the entry price | Use relative valuation instead of absolute price |
+| Confirmation bias | Focus only on information that supports the existing view | Single-source information, ignoring bearish news | Force reading the opposing view |
+| Recency bias | Overweight recent events | Recent gains/losses have too much influence on position size | Lengthen the evaluation window (โ‰ฅ60 days) |
+| Framing effect | Same information framed differently leads to different decisions | Decision differences between return format and absolute-PnL format | Evaluate consistently in return space |
+
+**Group behavior biases**:
+| Bias | Manifestation | China A-share Characteristics | Quant Indicator |
+|------|------|---------|----------|
+| Herding | Chasing rallies and panic-selling together | Extremely fast sector rotation (3-5 days) | Intra-sector stock correlation > 0.8 |
+| Information cascades | Ignoring private information and following public signals | Sector follow-through after a leader stock hits limit-up | Sector return on the day after leader-stock limit-up |
+| Attention effect | Buying stocks that attract attention | Explosive turnover in limit-up / news-driven stocks | Abnormal turnover > 3x average |
+
+### Investor Sentiment Cycle
+
+```
+Fear -> Caution -> Optimism -> Excitement -> Euphoria -> Denial -> Panic -> Fear
+ | | | | | | |
+ Bottom Recovery Mid-uptrend Pre-top Top Early selloff Pre-bottom
+
+Quant sentiment indicators:
+ 1. Closed-end fund discount: discount > 15% -> extreme fear -> buy signal
+ 2. Margin-financing growth: monthly growth > 20% -> euphoria -> reduce position
+ 3. New account openings: weekly openings > 2x average -> overheated market
+ 4. Turnover ratio: All-A daily turnover > 3% -> euphoric; < 0.5% -> deeply depressed
+ 5. Number of limit-up stocks: > 100 -> euphoric; < 10 -> weak
+```
+
+## Analysis Framework
+
+### 1. Disposition-Effect Signal
+
+**Principle**: investors tend to sell winners and hold losers. Once winning positions are largely cleared, selling pressure eases; when trapped holders are deeply underwater, selling pressure can also ease.
+
+```
+China A-share application:
+ Compute the profit ratio in the chip-distribution structure:
+ - Profit ratio > 90% and shrinking volume -> winners are reluctant to sell -> may continue rising
+ - Profit ratio > 90% and expanding volume -> winners are exiting -> topping signal
+ - Profit ratio < 10% and shrinking volume -> low willingness to cut losses -> bottom stabilization
+ - Profit ratio < 10% and expanding volume -> panic selling -> short-term oversold
+
+Quant implementation:
+ capital_gain_overhang = (current_price - avg_cost) / avg_cost
+ where avg_cost is approximated by 60-day VWAP
+ CGO > 0.2 -> strong unrealized gains, watch for disposition-effect selling pressure
+ CGO < -0.3 -> deeply trapped holders, selling pressure may actually ease
+```
+
+### 2. Composite Sentiment Indicator
+
+```python
+# Multi-dimensional sentiment score (0-100, 50 = neutral)
+sentiment_components = {
+ 'turnover_ratio': normalize(all_a_turnover, historical_percentile), # weight 25%
+ 'margin_growth': normalize(monthly_margin_growth, historical_percentile), # weight 25%
+ 'new_high_ratio': normalize(new_high_ratio, historical_percentile), # weight 20%
+ 'limit_up_count': normalize(limit_up_count, historical_percentile), # weight 15%
+ 'fund_discount': normalize(closed_end_fund_discount, historical_percentile), # weight 15% (inverse)
+}
+
+sentiment_score = weighted_sum(components)
+# > 80: extreme greed -> cut exposure below 60%
+# 60-80: optimistic -> maintain normal exposure
+# 40-60: neutral -> keep exposure unchanged
+# 20-40: pessimistic -> add gradually
+# < 20: extreme fear -> increase exposure above 80%
+```
+
+### 3. Behavioral Optimization of Momentum Strategies
+
+Traditional momentum (sorting by past 12-month returns) is unstable in China A-shares. A behavioral-finance perspective suggests the following optimizations:
+
+```
+Optimization 1: Separate sentiment momentum from fundamental momentum
+ Sentiment momentum = part of recent price rise with no fundamental support -> short-term reversal
+ Fundamental momentum = price rise consistent with earnings revisions -> can persist
+ Trade: buy stocks with "strong fundamental momentum + weak sentiment momentum"
+
+Optimization 2: Attention-weighted momentum
+ High-attention retail names reverse faster
+ Indicator: if abnormal turnover > 3x average, cut momentum holding period by 50%
+ Example: if a normal momentum basket holds for 60 days, high-attention names hold only 30 days
+
+Optimization 3: Combine cross-sectional momentum and time-series momentum
+ Cross-sectional: relative strength (top 20% in return ranking)
+ Time-series: absolute trend (price > MA60)
+ Both satisfied -> strong signal; only one satisfied -> half position
+```
+
+### 4. Contrarian Trading Signals
+
+```
+Extreme-fear buy conditions (at least 3 items):
+ โ–ก Shanghai Composite RSI(5) < 15
+ โ–ก All-A daily turnover < 0.5%
+ โ–ก Weekly margin-financing decline > 5%
+ โ–ก Limit-up count < 10 and limit-down count > 50
+ โ–ก Closed-end fund discount > 15%
+
+Extreme-greed sell conditions (at least 3 items):
+ โ–ก Shanghai Composite RSI(5) > 90
+ โ–ก All-A daily turnover > 3%
+ โ–ก Weekly margin-financing growth > 10%
+ โ–ก Limit-up count > 150
+ โ–ก Weekly increase in new account openings > 100%
+```
+
+## Output Format
+
+Behavioral-finance analysis report:
+```
+=== Market Sentiment Diagnosis ===
+Date: 2026-03-28
+Sentiment score: 72/100 (optimistic bias)
+Current phase: transition from optimism to excitement
+
+=== Behavioral-Bias Signals ===
+Overreaction detection: 127 stocks rose > 15% in the past 5 days -> 65% probability of short-term reversal
+Disposition effect: winner-clearing ratio is low (35%) -> overhead selling pressure remains
+Herding effect: sector correlation 0.85 -> severe follow-the-leader behavior, divergence likely soon
+
+=== Strategy Recommendations ===
+Momentum strategy: shorten holding period from 60 days to 30 days (market attention is elevated)
+Contrarian signal: not triggered (sentiment is not yet extreme)
+Position suggestion: maintain 70% exposure, and prioritize names with "strong fundamental momentum + weak sentiment momentum"
+
+=== Debiasing Checklist ===
+โ–ก Are you overconfident because of recent profits? -> check position concentration
+โ–ก Are you anchored to your entry price? -> re-evaluate using current PE/PB
+โ–ก Are you ignoring bearish information? -> force yourself to read bearish research reports
+```
+
+## Notes
+
+1. **High retail participation in China A-shares**: behavioral-bias signals are more pronounced than in US equities, but sector rotation is also faster, so momentum windows should be shorter
+2. **Lag in sentiment indicators**: margin-financing balance is released T+1, and new account openings are weekly, so they are not suitable for intraday trading
+3. **Structural changes**: after 2019, foreign capital and quant participation rose, so the effectiveness of traditional behavioral-finance signals may have weakened
+4. **Behavioral factors correlate with traditional factors**: disposition-effect factors correlate about 0.3-0.5 with momentum, so control collinearity
+5. **Overfitting risk**: behavioral stories are easy to explain after the fact, so out-of-sample validation is mandatory
+6. **Extreme sentiment is rare**: extreme fear / greed appears only 2-3 times per year, so strategy capacity is limited
+
+## Dependencies
+
+```bash
+pip install pandas numpy scipy
+```
diff --git a/agent/src/skills/candlestick/SKILL.md b/agent/src/skills/candlestick/SKILL.md
new file mode 100644
index 000000000..f09794b89
--- /dev/null
+++ b/agent/src/skills/candlestick/SKILL.md
@@ -0,0 +1,57 @@
+---
+name: candlestick
+description: Candlestick pattern recognition engine, pure pandas vectorized implementation of 15 classic candlestick patterns (5 single-candle + 5 double-candle + 4 triple-candle + 1 trend confirmation), generating a composite signal from bullish/bearish pattern scores.
+---
+# Candlestick Pattern Recognition
+
+## Purpose
+
+Identifies 15 classic candlestick patterns and generates trading signals:
+
+### Single-Candle Patterns (5)
+| Pattern | Signal | Description |
+|------|------|------|
+| Hammer | Bullish | Long lower shadow with a small body at the top |
+| Inverted Hammer | Bullish | Long upper shadow with a small body at the bottom |
+| Shooting Star | Bearish | Long upper shadow with a small body at the bottom (appears after an uptrend) |
+| Doji | Neutral | Open and close are nearly equal |
+| Spinning Top | Neutral | Small body with roughly equal upper and lower shadows |
+
+### Double-Candle Patterns (5)
+| Pattern | Signal |
+|------|------|
+| Bullish Engulfing | Bullish |
+| Bearish Engulfing | Bearish |
+| Bullish Harami | Bullish |
+| Bearish Harami | Bearish |
+| Piercing Line | Bullish |
+| Dark Cloud Cover | Bearish |
+
+### Triple-Candle Patterns (4)
+| Pattern | Signal |
+|------|------|
+| Morning Star | Bullish |
+| Evening Star | Bearish |
+| Three White Soldiers | Bullish |
+| Three Black Crows | Bearish |
+
+## Signal Logic
+
+Bullish patterns score +1, bearish patterns score -1. Go long when the total score is > 0, go short when it is < 0, and stand aside when it equals 0.
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| body_pct | 0.1 | Threshold for body-to-range ratio in a doji |
+| shadow_ratio | 2.0 | Ratio of shadow length to body length |
+
+## Dependencies
+
+```bash
+pip install pandas numpy requests
+```
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/candlestick/example_signal_engine.py b/agent/src/skills/candlestick/example_signal_engine.py
new file mode 100644
index 000000000..d74725ab8
--- /dev/null
+++ b/agent/src/skills/candlestick/example_signal_engine.py
@@ -0,0 +1,590 @@
+"""K็บฟๅฝขๆ€่ฏ†ๅˆซไฟกๅทๅผ•ๆ“Žใ€‚
+
+็บฏ pandas ๅ‘้‡ๅŒ–ๅฎž็Žฐ 15 ็ง็ปๅ…ธ่œก็ƒ›ๅ›พๅฝขๆ€่ฏ†ๅˆซ๏ผš
+- ๅ•ๆ นๅฝขๆ€ (5): ้”คๅญ็บฟใ€ๅ€’้”คๅญใ€ๅฐ„ๅ‡ปไน‹ๆ˜Ÿใ€ๅๅญ—ๆ˜Ÿใ€็บบ้”ค็บฟ
+- ๅŒๆ นๅฝขๆ€ (6): ็œ‹ๆถจ/็œ‹่ทŒๅžๆฒกใ€็œ‹ๆถจ/็œ‹่ทŒๅญ•็บฟใ€ๅˆบ็ฉฟ็บฟใ€ไนŒไบ‘็›–้กถ
+- ไธ‰ๆ นๅฝขๆ€ (4): ๆ™จๆ˜Ÿใ€ๆšฎๆ˜Ÿใ€ไธ‰็™ฝๅ…ตใ€ไธ‰ไนŒ้ธฆ
+
+ไฟกๅท็บฆๅฎš: 1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›
+"""
+
+from typing import Dict
+
+import numpy as np
+import pandas as pd
+
+
+# ---------------------------------------------------------------------------
+# ๅ‘้‡ๅŒ–่พ…ๅŠฉๅ‡ฝๆ•ฐ
+# ---------------------------------------------------------------------------
+
+
+def _body(o: pd.Series, c: pd.Series) -> pd.Series:
+ """ๅฎžไฝ“้•ฟๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทๅบๅˆ—ใ€‚
+ c: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+
+ Returns:
+ ๆฏๆ นK็บฟ็š„ๅฎžไฝ“้•ฟๅบฆใ€‚
+ """
+ return (c - o).abs()
+
+
+def _range(h: pd.Series, l: pd.Series) -> pd.Series:
+ """K็บฟๆŒฏๅน…๏ผˆๆœ€้ซ˜ - ๆœ€ไฝŽ๏ผ‰ใ€‚
+
+ Args:
+ h: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+ l: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+
+ Returns:
+ ๆฏๆ นK็บฟ็š„ๆŒฏๅน…ใ€‚
+ """
+ return h - l
+
+
+def _upper_shadow(o: pd.Series, c: pd.Series, h: pd.Series) -> pd.Series:
+ """ไธŠๅฝฑ็บฟ้•ฟๅบฆใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทๅบๅˆ—ใ€‚
+ c: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ h: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+
+ Returns:
+ ๆฏๆ นK็บฟ็š„ไธŠๅฝฑ็บฟ้•ฟๅบฆใ€‚
+ """
+ return h - pd.concat([o, c], axis=1).max(axis=1)
+
+
+def _lower_shadow(o: pd.Series, c: pd.Series, l: pd.Series) -> pd.Series:
+ """ไธ‹ๅฝฑ็บฟ้•ฟๅบฆใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทๅบๅˆ—ใ€‚
+ c: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ l: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+
+ Returns:
+ ๆฏๆ นK็บฟ็š„ไธ‹ๅฝฑ็บฟ้•ฟๅบฆใ€‚
+ """
+ return pd.concat([o, c], axis=1).min(axis=1) - l
+
+
+# ---------------------------------------------------------------------------
+# ไฟกๅทๅผ•ๆ“Ž
+# ---------------------------------------------------------------------------
+
+
+class SignalEngine:
+ """K็บฟๅฝขๆ€่ฏ†ๅˆซไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ็บฏๅ‘้‡ๅŒ–ๅฎž็Žฐ๏ผŒ้€š่ฟ‡็œ‹ๆถจ/็œ‹่ทŒๅฝขๆ€่ฏ„ๅˆ†็”Ÿๆˆ็ปผๅˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Attributes:
+ body_pct: ๅๅญ—ๆ˜Ÿๅˆคๅฎš้˜ˆๅ€ผ๏ผŒๅฎžไฝ“ๅ ๆŒฏๅน…ๆฏ”ไพ‹ใ€‚
+ shadow_ratio: ๅฝฑ็บฟไธŽๅฎžไฝ“็š„้•ฟๅบฆๆฏ”้˜ˆๅ€ผใ€‚
+ """
+
+ def __init__(self, body_pct: float = 0.1, shadow_ratio: float = 2.0):
+ """ๅˆๅง‹ๅŒ–K็บฟๅฝขๆ€ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ body_pct: ๅๅญ—ๆ˜Ÿๅฎžไฝ“/ๆŒฏๅน…ๆฏ”้˜ˆๅ€ผ๏ผŒ้ป˜่ฎค 0.1ใ€‚
+ shadow_ratio: ๅฝฑ็บฟไธŽๅฎžไฝ“้•ฟๅบฆๆฏ”๏ผŒ้ป˜่ฎค 2.0ใ€‚
+ """
+ self.body_pct = body_pct
+ self.shadow_ratio = shadow_ratio
+
+ # -----------------------------------------------------------------------
+ # ๅ•ๆ นๅฝขๆ€
+ # -----------------------------------------------------------------------
+
+ def _detect_hammer(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹้”คๅญ็บฟ๏ผˆHammer๏ผ‰โ€”โ€” ็œ‹ๆถจใ€‚
+
+ ๆกไปถ๏ผšไธ‹ๅฝฑ็บฟ >= shadow_ratio * ๅฎžไฝ“๏ผŒไธŠๅฝฑ็บฟ < ๅฎžไฝ“๏ผŒๅฎžไฝ“ > 0๏ผŒๆŒฏๅน… > 0ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=ๆฃ€ๆต‹ๅˆฐ้”คๅญ็บฟ๏ผŒ0=ๆœชๆฃ€ๆต‹ๅˆฐใ€‚
+ """
+ bd = _body(o, c)
+ rng = _range(h, l)
+ ls = _lower_shadow(o, c, l)
+ us = _upper_shadow(o, c, h)
+ cond = (ls >= self.shadow_ratio * bd) & (us < bd) & (bd > 0) & (rng > 0)
+ return cond.astype(int)
+
+ def _detect_inverted_hammer(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅ€’้”คๅญ๏ผˆInverted Hammer๏ผ‰โ€”โ€” ็œ‹ๆถจใ€‚
+
+ ๆกไปถ๏ผšไธŠๅฝฑ็บฟ >= shadow_ratio * ๅฎžไฝ“๏ผŒไธ‹ๅฝฑ็บฟ < ๅฎžไฝ“ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=ๆฃ€ๆต‹ๅˆฐๅ€’้”คๅญ๏ผŒ0=ๆœชๆฃ€ๆต‹ๅˆฐใ€‚
+ """
+ bd = _body(o, c)
+ us = _upper_shadow(o, c, h)
+ ls = _lower_shadow(o, c, l)
+ cond = (us >= self.shadow_ratio * bd) & (ls < bd) & (bd > 0)
+ return cond.astype(int)
+
+ def _detect_shooting_star(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅฐ„ๅ‡ปไน‹ๆ˜Ÿ๏ผˆShooting Star๏ผ‰โ€”โ€” ็œ‹่ทŒใ€‚
+
+ ๅฝขๆ€ไธŽๅ€’้”คๅญ็›ธๅŒ๏ผŒไฝ†้œ€ๅ‡บ็ŽฐๅœจไธŠๆถจ่ถ‹ๅŠฟไน‹ๅŽ๏ผˆๅ‰ไธ€ๆ นๆ”ถ็›˜ > ๅ‰ไธคๆ นๆ”ถ็›˜๏ผ‰ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš-1=ๆฃ€ๆต‹ๅˆฐๅฐ„ๅ‡ปไน‹ๆ˜Ÿ๏ผŒ0=ๆœชๆฃ€ๆต‹ๅˆฐใ€‚
+ """
+ bd = _body(o, c)
+ us = _upper_shadow(o, c, h)
+ ls = _lower_shadow(o, c, l)
+ uptrend = c.shift(1) > c.shift(2)
+ cond = (us >= self.shadow_ratio * bd) & (ls < bd) & (bd > 0) & uptrend
+ return -(cond.astype(int))
+
+ def _detect_doji(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅๅญ—ๆ˜Ÿ๏ผˆDoji๏ผ‰โ€”โ€” ไธญๆ€ง๏ผˆไฟกๅทไธบ0๏ผ‰ใ€‚
+
+ ๆกไปถ๏ผšๅฎžไฝ“/ๆŒฏๅน… < body_pct ไธ”ๆŒฏๅน… > 0ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผšๅง‹็ปˆไธบ0๏ผˆไธญๆ€งๅฝขๆ€๏ผŒไธไบง็”Ÿๆ–นๅ‘ไฟกๅท๏ผ‰ใ€‚
+ """
+ bd = _body(o, c)
+ rng = _range(h, l)
+ safe_rng = rng.replace(0, np.nan)
+ cond = (bd / safe_rng < self.body_pct) & (rng > 0)
+ # ๅๅญ—ๆ˜Ÿไธบไธญๆ€ง๏ผŒไธ่ดก็Œฎๆ–นๅ‘ๅˆ†ๆ•ฐ
+ return pd.Series(0, index=o.index)
+
+ def _detect_spinning_top(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹็บบ้”ค็บฟ๏ผˆSpinning Top๏ผ‰โ€”โ€” ไธญๆ€ง๏ผˆไฟกๅทไธบ0๏ผ‰ใ€‚
+
+ ๆกไปถ๏ผšๅฎžไฝ“/ๆŒฏๅน… < 0.3๏ผŒไธŠๅฝฑ็บฟ > ๅฎžไฝ“๏ผŒไธ‹ๅฝฑ็บฟ > ๅฎžไฝ“๏ผŒไธ”ไธๆ˜ฏๅๅญ—ๆ˜Ÿใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผšๅง‹็ปˆไธบ0๏ผˆไธญๆ€งๅฝขๆ€๏ผŒไธไบง็”Ÿๆ–นๅ‘ไฟกๅท๏ผ‰ใ€‚
+ """
+ bd = _body(o, c)
+ rng = _range(h, l)
+ safe_rng = rng.replace(0, np.nan)
+ us = _upper_shadow(o, c, h)
+ ls = _lower_shadow(o, c, l)
+ is_doji = (bd / safe_rng < self.body_pct) & (rng > 0)
+ cond = ((bd / safe_rng < 0.3) & (us > bd) & (ls > bd)
+ & (rng > 0) & ~is_doji)
+ # ็บบ้”ค็บฟไธบไธญๆ€ง๏ผŒไธ่ดก็Œฎๆ–นๅ‘ๅˆ†ๆ•ฐ
+ return pd.Series(0, index=o.index)
+
+ # -----------------------------------------------------------------------
+ # ๅŒๆ นๅฝขๆ€
+ # -----------------------------------------------------------------------
+
+ def _detect_engulfing(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅžๆฒกๅฝขๆ€๏ผˆEngulfing๏ผ‰ใ€‚
+
+ ็œ‹ๆถจๅžๆฒก๏ผšๅ‰ไธ€ๆ น็œ‹่ทŒ๏ผŒๅฝ“ๅ‰็œ‹ๆถจ๏ผŒๅฝ“ๅ‰ๅฎžไฝ“ๅŒ…ๅซๅ‰ไธ€ๆ นๅฎžไฝ“ใ€‚+1
+ ็œ‹่ทŒๅžๆฒก๏ผšๅ‰ไธ€ๆ น็œ‹ๆถจ๏ผŒๅฝ“ๅ‰็œ‹่ทŒ๏ผŒๅฝ“ๅ‰ๅฎžไฝ“ๅŒ…ๅซๅ‰ไธ€ๆ นๅฎžไฝ“ใ€‚-1
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=็œ‹ๆถจๅžๆฒก๏ผŒ-1=็œ‹่ทŒๅžๆฒก๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1 = o.shift(1), c.shift(1)
+ prev_bear = c1 < o1
+ prev_bull = c1 > o1
+ curr_bull = c > o
+ curr_bear = c < o
+
+ bullish = prev_bear & curr_bull & (c >= o1) & (o <= c1)
+ bearish = prev_bull & curr_bear & (c <= o1) & (o >= c1)
+
+ sig = pd.Series(0, index=o.index)
+ sig[bullish] = 1
+ sig[bearish] = -1
+ return sig
+
+ def _detect_harami(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅญ•็บฟๅฝขๆ€๏ผˆHarami๏ผ‰ใ€‚
+
+ ็œ‹ๆถจๅญ•็บฟ๏ผšๅ‰ไธ€ๆ น็œ‹่ทŒๅคงๅฎžไฝ“๏ผŒๅฝ“ๅ‰ๅฐๅฎžไฝ“่ขซๅŒ…ๅซๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…ใ€‚+1
+ ็œ‹่ทŒๅญ•็บฟ๏ผšๅ‰ไธ€ๆ น็œ‹ๆถจๅคงๅฎžไฝ“๏ผŒๅฝ“ๅ‰ๅฐๅฎžไฝ“่ขซๅŒ…ๅซๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…ใ€‚-1
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=็œ‹ๆถจๅญ•็บฟ๏ผŒ-1=็œ‹่ทŒๅญ•็บฟ๏ผŒ0=ๆ— ใ€‚
+ """
+ bd = _body(o, c)
+ o1, c1 = o.shift(1), c.shift(1)
+ bd1 = _body(o1, c1)
+
+ prev_bear = c1 < o1
+ prev_bull = c1 > o1
+ large_prev = bd1 > bd
+
+ # ๅฝ“ๅ‰ๅฎžไฝ“ๅฎŒๅ…จๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…
+ prev_top = pd.concat([o1, c1], axis=1).max(axis=1)
+ prev_bot = pd.concat([o1, c1], axis=1).min(axis=1)
+ curr_top = pd.concat([o, c], axis=1).max(axis=1)
+ curr_bot = pd.concat([o, c], axis=1).min(axis=1)
+ contained = (curr_top <= prev_top) & (curr_bot >= prev_bot)
+
+ bullish = prev_bear & large_prev & contained
+ bearish = prev_bull & large_prev & contained
+
+ sig = pd.Series(0, index=o.index)
+ sig[bullish] = 1
+ sig[bearish] = -1
+ return sig
+
+ def _detect_piercing_line(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๅˆบ็ฉฟ็บฟ๏ผˆPiercing Line๏ผ‰โ€”โ€” ็œ‹ๆถจใ€‚
+
+ ๆกไปถ๏ผšๅ‰ไธ€ๆ น็œ‹่ทŒ๏ผŒๅฝ“ๅ‰ๅผ€็›˜ไฝŽไบŽๅ‰ไธ€ๆ นๆœ€ไฝŽไปท๏ผŒๅฝ“ๅ‰ๆ”ถ็›˜้ซ˜ไบŽๅ‰ไธ€ๆ นๅฎžไฝ“ไธญ็‚นใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=ๆฃ€ๆต‹ๅˆฐๅˆบ็ฉฟ็บฟ๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1, l1 = o.shift(1), c.shift(1), l.shift(1)
+ prev_bear = c1 < o1
+ curr_bull = c > o
+ opens_below = o < l1
+ mid1 = (o1 + c1) / 2
+ closes_above_mid = c > mid1
+
+ cond = prev_bear & curr_bull & opens_below & closes_above_mid
+ return cond.astype(int)
+
+ def _detect_dark_cloud(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ไนŒไบ‘็›–้กถ๏ผˆDark Cloud Cover๏ผ‰โ€”โ€” ็œ‹่ทŒใ€‚
+
+ ๆกไปถ๏ผšๅ‰ไธ€ๆ น็œ‹ๆถจ๏ผŒๅฝ“ๅ‰ๅผ€็›˜้ซ˜ไบŽๅ‰ไธ€ๆ นๆœ€้ซ˜ไปท๏ผŒๅฝ“ๅ‰ๆ”ถ็›˜ไฝŽไบŽๅ‰ไธ€ๆ นๅฎžไฝ“ไธญ็‚นใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš-1=ๆฃ€ๆต‹ๅˆฐไนŒไบ‘็›–้กถ๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1, h1 = o.shift(1), c.shift(1), h.shift(1)
+ prev_bull = c1 > o1
+ curr_bear = c < o
+ opens_above = o > h1
+ mid1 = (o1 + c1) / 2
+ closes_below_mid = c < mid1
+
+ cond = prev_bull & curr_bear & opens_above & closes_below_mid
+ return -(cond.astype(int))
+
+ # -----------------------------------------------------------------------
+ # ไธ‰ๆ นๅฝขๆ€
+ # -----------------------------------------------------------------------
+
+ def _detect_morning_star(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๆ™จๆ˜Ÿ๏ผˆMorning Star๏ผ‰โ€”โ€” ็œ‹ๆถจใ€‚
+
+ ๆกไปถ๏ผš
+ - Day1 ็œ‹่ทŒ
+ - Day2 ๅฐๅฎžไฝ“ไธ”ๅ‘ไธ‹่ทณ็ฉบ๏ผˆDay2ๆœ€้ซ˜ < Day1ๆœ€ไฝŽ๏ผ‰
+ - Day3 ็œ‹ๆถจไธ”ๆ”ถ็›˜้ซ˜ไบŽ Day1 ๅฎžไฝ“ไธญ็‚น
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=ๆฃ€ๆต‹ๅˆฐๆ™จๆ˜Ÿ๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1 = o.shift(2), c.shift(2) # Day1
+ o2, c2, h2 = o.shift(1), c.shift(1), h.shift(1) # Day2
+ bd2 = _body(o2, c2)
+ rng2 = _range(h.shift(1), l.shift(1))
+ safe_rng2 = rng2.replace(0, np.nan)
+
+ day1_bear = c1 < o1
+ day2_small = bd2 / safe_rng2 < 0.3
+ day2_gap = h2 < l.shift(2) # Day2 high < Day1 low (gap down)
+ day3_bull = c > o
+ mid1 = (o1 + c1) / 2
+ day3_above_mid = c > mid1
+
+ cond = day1_bear & day2_small & day2_gap & day3_bull & day3_above_mid
+ return cond.astype(int).fillna(0).astype(int)
+
+ def _detect_evening_star(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ๆšฎๆ˜Ÿ๏ผˆEvening Star๏ผ‰โ€”โ€” ็œ‹่ทŒใ€‚
+
+ ๆกไปถ๏ผš
+ - Day1 ็œ‹ๆถจ
+ - Day2 ๅฐๅฎžไฝ“ไธ”ๅ‘ไธŠ่ทณ็ฉบ๏ผˆDay2ๆœ€ไฝŽ > Day1ๆœ€้ซ˜๏ผ‰
+ - Day3 ็œ‹่ทŒไธ”ๆ”ถ็›˜ไฝŽไบŽ Day1 ๅฎžไฝ“ไธญ็‚น
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš-1=ๆฃ€ๆต‹ๅˆฐๆšฎๆ˜Ÿ๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1 = o.shift(2), c.shift(2) # Day1
+ o2, c2, l2 = o.shift(1), c.shift(1), l.shift(1) # Day2
+ bd2 = _body(o2, c2)
+ rng2 = _range(h.shift(1), l.shift(1))
+ safe_rng2 = rng2.replace(0, np.nan)
+
+ day1_bull = c1 > o1
+ day2_small = bd2 / safe_rng2 < 0.3
+ day2_gap = l2 > h.shift(2) # Day2 low > Day1 high (gap up)
+ day3_bear = c < o
+ mid1 = (o1 + c1) / 2
+ day3_below_mid = c < mid1
+
+ cond = day1_bull & day2_small & day2_gap & day3_bear & day3_below_mid
+ return -(cond.astype(int).fillna(0).astype(int))
+
+ def _detect_three_white_soldiers(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ไธ‰็™ฝๅ…ต๏ผˆThree White Soldiers๏ผ‰โ€”โ€” ็œ‹ๆถจใ€‚
+
+ ๆกไปถ๏ผš่ฟž็ปญ3ๆ น้˜ณ็บฟ๏ผŒๆฏๆ นๆ”ถ็›˜้€’ๅขž๏ผŒๆฏๆ นๅผ€็›˜ๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš1=ๆฃ€ๆต‹ๅˆฐไธ‰็™ฝๅ…ต๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1 = o.shift(2), c.shift(2) # Day1
+ o2, c2 = o.shift(1), c.shift(1) # Day2
+
+ bull1 = c1 > o1
+ bull2 = c2 > o2
+ bull3 = c > o
+
+ close_up = (c2 > c1) & (c > c2)
+
+ # ๆฏๆ นๅผ€็›˜ๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…
+ open2_in = (o2 >= o1) & (o2 <= c1)
+ open3_in = (o >= o2) & (o <= c2)
+
+ cond = bull1 & bull2 & bull3 & close_up & open2_in & open3_in
+ return cond.astype(int).fillna(0).astype(int)
+
+ def _detect_three_black_crows(self, o: pd.Series, h: pd.Series,
+ l: pd.Series, c: pd.Series) -> pd.Series:
+ """ๆฃ€ๆต‹ไธ‰ไนŒ้ธฆ๏ผˆThree Black Crows๏ผ‰โ€”โ€” ็œ‹่ทŒใ€‚
+
+ ๆกไปถ๏ผš่ฟž็ปญ3ๆ น้˜ด็บฟ๏ผŒๆฏๆ นๆ”ถ็›˜้€’ๅ‡๏ผŒๆฏๆ นๅผ€็›˜ๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…ใ€‚
+
+ Args:
+ o: ๅผ€็›˜ไปทใ€‚
+ h: ๆœ€้ซ˜ไปทใ€‚
+ l: ๆœ€ไฝŽไปทใ€‚
+ c: ๆ”ถ็›˜ไปทใ€‚
+
+ Returns:
+ ไฟกๅทๅบๅˆ—๏ผš-1=ๆฃ€ๆต‹ๅˆฐไธ‰ไนŒ้ธฆ๏ผŒ0=ๆ— ใ€‚
+ """
+ o1, c1 = o.shift(2), c.shift(2) # Day1
+ o2, c2 = o.shift(1), c.shift(1) # Day2
+
+ bear1 = c1 < o1
+ bear2 = c2 < o2
+ bear3 = c < o
+
+ close_dn = (c2 < c1) & (c < c2)
+
+ # ๆฏๆ นๅผ€็›˜ๅœจๅ‰ไธ€ๆ นๅฎžไฝ“ๅ†…๏ผˆ้˜ด็บฟๅฎžไฝ“๏ผšopenๅœจไธŠ๏ผŒcloseๅœจไธ‹๏ผ‰
+ open2_in = (o2 <= o1) & (o2 >= c1)
+ open3_in = (o <= o2) & (o >= c2)
+
+ cond = bear1 & bear2 & bear3 & close_dn & open2_in & open3_in
+ return -(cond.astype(int).fillna(0).astype(int))
+
+ # -----------------------------------------------------------------------
+ # ไธปๅ…ฅๅฃ
+ # -----------------------------------------------------------------------
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๅฏนๆฏไธชๆ ‡็š„่ฟ่กŒๅ…จ้ƒจๅฝขๆ€ๆฃ€ๆต‹๏ผŒๆฑ‡ๆ€ป่ฏ„ๅˆ†็”Ÿๆˆไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+
+ Example:
+ >>> engine = SignalEngine()
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+ result = {}
+ for code, df in data_map.items():
+ o = df["open"]
+ h = df["high"]
+ l = df["low"]
+ c = df["close"]
+
+ # ๆ”ถ้›†ๆ‰€ๆœ‰ๅฝขๆ€็š„ไฟกๅทๅˆ†ๆ•ฐ
+ scores = pd.DataFrame(index=df.index)
+
+ # ๅ•ๆ นๅฝขๆ€
+ scores["hammer"] = self._detect_hammer(o, h, l, c)
+ scores["inv_hammer"] = self._detect_inverted_hammer(o, h, l, c)
+ scores["shooting_star"] = self._detect_shooting_star(o, h, l, c)
+ scores["doji"] = self._detect_doji(o, h, l, c)
+ scores["spinning_top"] = self._detect_spinning_top(o, h, l, c)
+
+ # ๅŒๆ นๅฝขๆ€
+ scores["engulfing"] = self._detect_engulfing(o, h, l, c)
+ scores["harami"] = self._detect_harami(o, h, l, c)
+ scores["piercing"] = self._detect_piercing_line(o, h, l, c)
+ scores["dark_cloud"] = self._detect_dark_cloud(o, h, l, c)
+
+ # ไธ‰ๆ นๅฝขๆ€
+ scores["morning_star"] = self._detect_morning_star(o, h, l, c)
+ scores["evening_star"] = self._detect_evening_star(o, h, l, c)
+ scores["three_white"] = self._detect_three_white_soldiers(o, h, l, c)
+ scores["three_black"] = self._detect_three_black_crows(o, h, l, c)
+
+ total = scores.sum(axis=1)
+ result[code] = pd.Series(
+ np.sign(total).astype(int), index=df.index, name="signal"
+ )
+ return result
+
+
+# ---------------------------------------------------------------------------
+# ๆ•ฐๆฎ่Žทๅ–
+# ---------------------------------------------------------------------------
+
+
+def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX ่Žทๅ–K็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏน๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค "1D"ใ€‚
+ limit: ่Žทๅ–ๆ•ฐ้‡๏ผŒ้ป˜่ฎค 300ใ€‚
+
+ Returns:
+ ๅŒ…ๅซ open/high/low/close/volume ๅˆ—็š„ DataFrame๏ผŒindex ไธบ datetimeใ€‚
+
+ Raises:
+ KeyError: ๅฝ“ API ่ฟ”ๅ›žๆ ผๅผๅผ‚ๅธธๆ—ถใ€‚
+ """
+ import requests
+
+ resp = requests.get("https://www.okx.com/api/v5/market/candles", params={
+ "instId": inst_id, "bar": bar, "limit": str(limit)
+ })
+ candles = resp.json()["data"]
+ columns = ["ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+if __name__ == "__main__":
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+ for sym in symbols:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym)
+
+ engine = SignalEngine()
+ signals = engine.generate(data_map)
+
+ for sym in symbols:
+ sig = signals[sym]
+ buys = (sig == 1).sum()
+ sells = (sig == -1).sum()
+ holds = (sig == 0).sum()
+ print(f"\n{sym} ({len(sig)} bars)")
+ print(f" Long: {buys}")
+ print(f" Short: {sells}")
+ print(f" Hold: {holds}")
+ # ๆ˜พ็คบๆœ€่ฟ‘็š„้ž้›ถไฟกๅท
+ nonzero = sig[sig != 0]
+ if len(nonzero) > 0:
+ last = nonzero.iloc[-1]
+ label = "Long" if last == 1 else "Short"
+ print(f" Latest signal: {label} @ {nonzero.index[-1]:%Y-%m-%d}")
diff --git a/agent/src/skills/chanlun/SKILL.md b/agent/src/skills/chanlun/SKILL.md
new file mode 100644
index 000000000..dd2779be6
--- /dev/null
+++ b/agent/src/skills/chanlun/SKILL.md
@@ -0,0 +1,109 @@
+---
+name: chanlun
+description: ๅŸบไบŽ็ผ ่ฎบ๏ผˆ็ผ ไธญ่ฏด็ฆ…๏ผ‰็š„ๅฝขๆ€่ฏ†ๅˆซๅผ•ๆ“Ž๏ผŒไฝฟ็”จczscๅบ“่‡ชๅŠจๆฃ€ๆต‹K็บฟๅˆ†ๅž‹ใ€็ฌ”ใ€ไธญๆžข๏ผŒๅนถ็”Ÿๆˆไธ€ไนฐ/ไธ€ๅ–/ไบŒไนฐ/ไบŒๅ–/ไธ‰ไนฐ/ไธ‰ๅ–็ญ‰ไนฐๅ–็‚นไฟกๅทใ€‚ๆ”ฏๆŒๅคšๅ‘จๆœŸๅˆ†ๆžๅ’Œๅฝขๆ€ๅˆ†็ฑป๏ผˆ3/5/7/9/11็ฌ”ๅฝขๆ€๏ผ‰ใ€‚
+---
+# ็ผ ่ฎบๅฝขๆ€่ฏ†ๅˆซ
+
+## ็”จ้€”
+
+ๅŸบไบŽ**็ผ ไธญ่ฏด็ฆ…**็†่ฎบ็š„ไปทๆ ผๅฝขๆ€่ฏ†ๅˆซใ€‚็ผ ่ฎบๆ˜ฏไธ€ๅฅ—ๅฎŒๅ…จๅŸบไบŽไปทๆ ผ็ป“ๆž„็š„ๆŠ€ๆœฏๅˆ†ๆžๆ–นๆณ•๏ผŒๆ ธๅฟƒ้“พ่ทฏ๏ผš
+
+```
+ๅŽŸๅง‹K็บฟ โ†’ ๅŽปๅŒ…ๅซๅค„็† โ†’ ๅˆ†ๅž‹่ฏ†ๅˆซ โ†’ ็ฌ”ๆฃ€ๆต‹ โ†’ ไธญๆžขๆž„ๅปบ โ†’ ไนฐๅ–็‚นๅˆคๅฎš
+```
+
+้€‚็”จไบŽไปปไฝ•ๆœ‰ OHLCV ๆ•ฐๆฎ็š„ๅธ‚ๅœบ๏ผˆA่‚กใ€ๅŠ ๅฏ†่ดงๅธใ€ๆœŸ่ดง็ญ‰๏ผ‰ใ€‚
+
+## ๆ ธๅฟƒๆฆ‚ๅฟต
+
+| ๆฆ‚ๅฟต | ่ฏดๆ˜Ž | ่ฏฆ็ป†ๆ–‡ๆกฃ |
+| --- | --- | --- |
+| ๅˆ†ๅž‹๏ผˆFX๏ผ‰ | ้กถๅˆ†ๅž‹๏ผšไธญ้—ดK็บฟๆœ€้ซ˜๏ผ›ๅบ•ๅˆ†ๅž‹๏ผšไธญ้—ดK็บฟๆœ€ไฝŽ | [ๅˆ†ๅž‹](references/ๆ ธๅฟƒๆฆ‚ๅฟต/ๅˆ†ๅž‹.md) |
+| ็ฌ”๏ผˆBI๏ผ‰ | ็›ธ้‚ป้กถๅบ•ๅˆ†ๅž‹ไน‹้—ด็š„ไธ€ๆฎต่ตฐๅŠฟ๏ผŒๆœ€ๅฐๅ•ๅ…ƒ | [็ฌ”](references/ๆ ธๅฟƒๆฆ‚ๅฟต/็ฌ”.md) |
+| ไธญๆžข๏ผˆZS๏ผ‰ | ่‡ณๅฐ‘3็ฌ”ๆž„ๆˆ็š„ไปทๆ ผ้‡ๅ ๅŒบๅŸŸ๏ผŒ่ถ‹ๅŠฟ็š„ๆ ธๅฟƒ | [ไธญๆžข](references/ๆ ธๅฟƒๆฆ‚ๅฟต/ไธญๆžข.md) |
+
+## ไนฐๅ–็‚นไฝ“็ณป
+
+| ไนฐๅ–็‚น | ๅซไน‰ | ่ฏฆ็ป†ๆ–‡ๆกฃ |
+| --- | --- | --- |
+| ไธ€ไนฐ/ไธ€ๅ– | ่ถ‹ๅŠฟ็ป“ๆŸๅŽ็š„็ฌฌไธ€ไธชๅ่ฝฌไฟกๅท๏ผˆ่ƒŒ้ฉฐ็‚น๏ผ‰ | [ไธ€ไนฐไธ€ๅ–](references/ไนฐๅ–็‚น/ไธ€ไนฐไธ€ๅ–.md) |
+| ไบŒไนฐ/ไบŒๅ– | ไธ€ไนฐ/ไธ€ๅ–ๅŽๅ›ž่ฐƒไธ็ ดๅบ•/้กถ็š„็กฎ่ฎคไฟกๅท | [ไบŒไนฐไบŒๅ–](references/ไนฐๅ–็‚น/ไบŒไนฐไบŒๅ–.md) |
+| ไธ‰ไนฐ/ไธ‰ๅ– | ไธญๆžขไธŠ็งป/ไธ‹็งปๅŽๅ›ž่ฐƒไธ่ฟ›ๅ…ฅๅ‰ไธญๆžข็š„ไฟกๅท | [ไธ‰ไนฐไธ‰ๅ–](references/ไนฐๅ–็‚น/ไธ‰ไนฐไธ‰ๅ–.md) |
+
+## ไพ่ต–ๅฎ‰่ฃ…
+
+```bash
+pip install czsc requests pandas
+```
+
+## ๅฟซ้€ŸไธŠๆ‰‹
+
+```python
+from czsc import CZSC, RawBar, Freq
+from datetime import datetime
+
+# ๅ‡†ๅค‡ RawBar ๅˆ—่กจ๏ผˆ้œ€ๆŒ‰ๆ—ถ้—ดๆญฃๅบๆŽ’ๅˆ—๏ผ‰
+bars = [
+ RawBar(symbol="BTC-USDT", id=0, dt=datetime(2026,1,1),
+ freq=Freq.D, open=70000, close=71000,
+ high=72000, low=69000, vol=1000, amount=71000000),
+ # ... ๆ›ดๅคšK็บฟ
+]
+
+# ๅˆ›ๅปบๅˆ†ๆžๅ™จ๏ผŒ่‡ชๅŠจๆฃ€ๆต‹ๅˆ†ๅž‹/็ฌ”/ไธญๆžข
+c = CZSC(bars)
+
+# ่ฎฟ้—ฎ็ป“ๆžœ
+print(c.bi_list) # ๅทฒๅฎŒๆˆ็š„็ฌ”
+print(c.bars_ubi) # ๆœชๅฎŒๆˆ็ฌ”ไธญ็š„K็บฟ
+```
+
+## ๅฏ็”จไฟกๅทๅ‡ฝๆ•ฐ๏ผˆczsc.signals.cxt๏ผ‰
+
+czsc ๅ†…็ฝฎ 43 ไธช็ผ ่ฎบไฟกๅทๅ‡ฝๆ•ฐ๏ผŒๆ ธๅฟƒๅฆ‚ไธ‹๏ผš
+
+| ๅ‡ฝๆ•ฐ | ่ฏดๆ˜Ž | ็ฑปๅž‹ |
+| --- | --- | --- |
+| `cxt_first_buy_V221126` | ไธ€ไนฐไฟกๅท | ไนฐๅ–็‚น |
+| `cxt_first_sell_V221126` | ไธ€ๅ–ไฟกๅท | ไนฐๅ–็‚น |
+| `cxt_second_bs_V230320` | ๅ‡็บฟ่พ…ๅŠฉไบŒไนฐไบŒๅ– | ไนฐๅ–็‚น |
+| `cxt_third_bs_V230318` | ๅ‡็บฟ่พ…ๅŠฉไธ‰ไนฐไธ‰ๅ– | ไนฐๅ–็‚น |
+| `cxt_third_buy_V230228` | ็ฌ”ไธ‰ไนฐ่พ…ๅŠฉ | ไนฐๅ–็‚น |
+| `cxt_double_zs_V230311` | ไธคไธญๆžข็ป„ๅˆๅˆคๆ–ญBS1 | ไธญๆžข |
+| `cxt_three_bi_V230618` | ไธ‰็ฌ”ๅฝขๆ€ๅˆ†็ฑป | ๅฝขๆ€ |
+| `cxt_five_bi_V230619` | ไบ”็ฌ”ๅฝขๆ€ๅˆ†็ฑป | ๅฝขๆ€ |
+| `cxt_seven_bi_V230620` | ไธƒ็ฌ”ๅฝขๆ€ๅˆ†็ฑป | ๅฝขๆ€ |
+| `cxt_nine_bi_V230621` | ไน็ฌ”ๅฝขๆ€ๅˆ†็ฑป | ๅฝขๆ€ |
+| `cxt_eleven_bi_V230622` | ๅไธ€็ฌ”ๅฝขๆ€ๅˆ†็ฑป | ๅฝขๆ€ |
+| `cxt_bi_base_V230228` | BIๅŸบ็ก€ไฟกๅท๏ผˆๆ–นๅ‘/่ฝฌๆŠ˜๏ผ‰ | ๅŸบ็ก€ |
+| `cxt_bi_end_V230312` | MACD่พ…ๅŠฉ็ฌ”็ป“ๆŸ | ่พ…ๅŠฉ |
+| `cxt_range_oscillation_V230620` | ๅŒบ้—ด้œ‡่กๅˆคๆ–ญ | ่พ…ๅŠฉ |
+| `cxt_zhong_shu_gong_zhen_V221221` | ๅคงๅฐ็บงๅˆซไธญๆžขๅ…ฑๆŒฏ | ไธญๆžข |
+
+## ไฟกๅท็บฆๅฎš
+
+- ไฟกๅทๅผ•ๆ“Ž่พ“ๅ‡บ๏ผš`1`=ๅšๅคš๏ผŒ`-1`=ๅš็ฉบ๏ผŒ`0`=่ง‚ๆœ›
+- ๅšๅคšๆกไปถ๏ผšไธ€ไนฐไฟกๅท ๆˆ– ไธ‰็ฌ”ๅ‘ไธŠ็›˜่ƒŒ ๆˆ– ไบ”็ฌ”็ฑปไธ€ไนฐ
+- ๅš็ฉบๆกไปถ๏ผšไธ€ๅ–ไฟกๅท ๆˆ– ไธ‰็ฌ”ๅ‘ไธ‹็›˜่ƒŒ ๆˆ– ไบ”็ฌ”็ฑปไธ€ๅ–
+- ไธญๆžข่พ…ๅŠฉ๏ผšไปทๆ ผๅœจไธญๆžขไธ‹ๆฒฟ้™„่ฟ‘ๅšๅคšไผ˜ๅŠฟ๏ผŒไธŠๆฒฟ้™„่ฟ‘ๅš็ฉบไผ˜ๅŠฟ
+
+## ๆ•ฐๆฎๆ ผๅผ
+
+czsc ๆŽฅๅ— `List[RawBar]`๏ผŒๆฏไธช RawBar ๅŒ…ๅซ๏ผš
+
+| ๅญ—ๆฎต | ็ฑปๅž‹ | ่ฏดๆ˜Ž |
+| --- | --- | --- |
+| symbol | str | ๆ ‡็š„ไปฃ็  |
+| id | int | ๅบๅท๏ผˆไปŽ0ๅผ€ๅง‹๏ผ‰ |
+| dt | datetime | ๆ—ถ้—ด |
+| freq | Freq | ้ข‘็އ๏ผš`Freq.F1/F5/F15/F30/F60/D/W/M` |
+| open | float | ๅผ€็›˜ไปท |
+| close | float | ๆ”ถ็›˜ไปท |
+| high | float | ๆœ€้ซ˜ไปท |
+| low | float | ๆœ€ไฝŽไปท |
+| vol | float | ๆˆไบค้‡ |
+| amount | float | ๆˆไบค้ข |
+
+## ๅฎž็Žฐๆ–นๅผ
+
+ไฝฟ็”จ [czsc](https://github.com/waditu/czsc) ๅบ“๏ผˆv0.9.68+๏ผ‰๏ผŒๅŸบไบŽ็บฏ Python ๅฎž็Žฐ๏ผˆๅฏ้€‰ Rust ๅŠ ้€ŸๅŽ็ซฏ๏ผ‰ใ€‚ๆ”ฏๆŒๅขž้‡ๆ›ดๆ–ฐ๏ผŒ้€‚ๅˆๅฎžๆ—ถๅˆ†ๆžใ€‚
diff --git a/agent/src/skills/chanlun/example_signal_engine.py b/agent/src/skills/chanlun/example_signal_engine.py
new file mode 100644
index 000000000..17d5d753e
--- /dev/null
+++ b/agent/src/skills/chanlun/example_signal_engine.py
@@ -0,0 +1,225 @@
+"""็ผ ่ฎบๅฝขๆ€่ฏ†ๅˆซไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽ czsc ๅบ“ๅฎž็Žฐ็ผ ไธญ่ฏด็ฆ…็†่ฎบ็š„ไนฐๅ–็‚นไฟกๅท็”Ÿๆˆใ€‚
+ๆ ธๅฟƒ้“พ่ทฏ๏ผšK็บฟ โ†’ ๅˆ†ๅž‹ โ†’ ็ฌ” โ†’ ไธญๆžข โ†’ ไนฐๅ–็‚นใ€‚
+"""
+
+from typing import Optional, Dict
+from datetime import datetime
+
+import pandas as pd
+from czsc import CZSC, RawBar, Freq, ZS
+from czsc.signals.cxt import (
+ cxt_first_buy_V221126,
+ cxt_first_sell_V221126,
+ cxt_bi_base_V230228,
+ cxt_three_bi_V230618,
+ cxt_five_bi_V230619,
+)
+
+
+def _df_to_bars(df: pd.DataFrame, symbol: str, freq: Freq = Freq.D) -> list:
+ """ๅฐ† OHLCV DataFrame ่ฝฌๆขไธบ czsc RawBar ๅˆ—่กจใ€‚
+
+ Args:
+ df: ๅŒ…ๅซ open/high/low/close/volume ๅˆ—็š„ DataFrame๏ผŒindex ไธบ datetimeใ€‚
+ symbol: ๆ ‡็š„ไปฃ็ ใ€‚
+ freq: K็บฟ้ข‘็އ๏ผŒ้ป˜่ฎคๆ—ฅ็บฟใ€‚
+
+ Returns:
+ ๆŒ‰ๆ—ถ้—ดๆญฃๅบๆŽ’ๅˆ—็š„ RawBar ๅˆ—่กจใ€‚
+ """
+ bars = []
+ for i, (dt, row) in enumerate(df.iterrows()):
+ if not isinstance(dt, datetime):
+ dt = pd.Timestamp(dt).to_pydatetime()
+ bars.append(RawBar(
+ symbol=symbol,
+ id=i,
+ dt=dt,
+ freq=freq,
+ open=float(row["open"]),
+ close=float(row["close"]),
+ high=float(row["high"]),
+ low=float(row["low"]),
+ vol=float(row.get("volume", row.get("vol", 0))),
+ amount=float(row.get("amount", 0)),
+ ))
+ return bars
+
+
+def _get_signals(c: CZSC) -> dict:
+ """่ฎก็ฎ—็ผ ่ฎบไนฐๅ–็‚นไฟกๅทใ€‚
+
+ Args:
+ c: CZSC ๅˆ†ๆžๅ™จๅฎžไพ‹ใ€‚
+
+ Returns:
+ ไฟกๅทๅญ—ๅ…ธใ€‚
+ """
+ s = {}
+ s.update(cxt_first_buy_V221126(c, di=1))
+ s.update(cxt_first_sell_V221126(c, di=1))
+ s.update(cxt_bi_base_V230228(c, di=1))
+ s.update(cxt_three_bi_V230618(c, di=1))
+ s.update(cxt_five_bi_V230619(c, di=1))
+ return s
+
+
+def _check_zhongshu(bi_list: list) -> Optional[ZS]:
+ """ๆฃ€ๆต‹ๆœ€่ฟ‘็š„ๆœ‰ๆ•ˆไธญๆžขใ€‚
+
+ Args:
+ bi_list: ็ฌ”ๅˆ—่กจใ€‚
+
+ Returns:
+ ๆœ€่ฟ‘็š„ๆœ‰ๆ•ˆไธญๆžข๏ผŒๆฒกๆœ‰ๅˆ™่ฟ”ๅ›ž Noneใ€‚
+ """
+ if len(bi_list) < 3:
+ return None
+ for i in range(len(bi_list) - 3, max(len(bi_list) - 10, -1), -1):
+ zs = ZS(bis=bi_list[i:i + 3])
+ if zs.is_valid:
+ return zs
+ return None
+
+
+class SignalEngine:
+ """็ผ ่ฎบๅฝขๆ€่ฏ†ๅˆซไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ๅŸบไบŽๅˆ†ๅž‹โ†’็ฌ”โ†’ไธญๆžขโ†’ไนฐๅ–็‚น้“พ่ทฏ๏ผŒ็”Ÿๆˆๅšๅคš/ๅš็ฉบ/่ง‚ๆœ›ไฟกๅทใ€‚
+
+ Attributes:
+ freq: K็บฟๅˆ†ๆž้ข‘็އใ€‚
+ """
+
+ def __init__(self, freq: Freq = Freq.D):
+ """ๅˆๅง‹ๅŒ–็ผ ่ฎบไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ freq: K็บฟๅˆ†ๆž้ข‘็އ๏ผŒ้ป˜่ฎคๆ—ฅ็บฟใ€‚
+ """
+ self.freq = freq
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎ็ผ ่ฎบๅฝขๆ€็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close/volume ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for code, df in data_map.items():
+ signal = pd.Series(0, index=df.index)
+ bars = _df_to_bars(df, code, self.freq)
+
+ if len(bars) < 30:
+ result[code] = signal
+ continue
+
+ # ้€ๆ นK็บฟๅˆ†ๆž๏ผŒ่ฎฐๅฝ•ๆฏๆ นK็บฟ็š„ไฟกๅท
+ c = CZSC(bars[:30], get_signals=_get_signals)
+ for bar in bars[30:]:
+ c.update(bar)
+ sig = self._evaluate_signals(c)
+ if sig != 0:
+ signal.iloc[bar.id] = sig
+
+ result[code] = signal
+ return result
+
+ def _evaluate_signals(self, c: CZSC) -> int:
+ """่ฏ„ไผฐๅฝ“ๅ‰ไฟกๅท็Šถๆ€๏ผŒ่ฟ”ๅ›žไบคๆ˜“ๆ–นๅ‘ใ€‚
+
+ Args:
+ c: CZSC ๅˆ†ๆžๅ™จๅฎžไพ‹ใ€‚
+
+ Returns:
+ 1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›ใ€‚
+ """
+ signals = c.signals
+ if not signals:
+ return 0
+
+ # ไธ€ไนฐไฟกๅท
+ buy1_key = [k for k in signals if "BUY1" in k]
+ if buy1_key and "ไธ€ไนฐ" in str(signals.get(buy1_key[0], "")):
+ return 1
+
+ # ไธ€ๅ–ไฟกๅท
+ sell1_key = [k for k in signals if "SELL1" in k]
+ if sell1_key and "ไธ€ๅ–" in str(signals.get(sell1_key[0], "")):
+ return -1
+
+ # ไธ‰็ฌ”ๅฝขๆ€
+ three_bi_key = [k for k in signals if "ไธ‰็ฌ”" in k]
+ if three_bi_key:
+ val = str(signals.get(three_bi_key[0], ""))
+ if "ๅ‘ไธŠ็›˜่ƒŒ" in val:
+ return 1
+ if "ๅ‘ไธ‹็›˜่ƒŒ" in val:
+ return -1
+
+ # ไบ”็ฌ”ๅฝขๆ€
+ five_bi_key = [k for k in signals if "ไบ”็ฌ”" in k]
+ if five_bi_key:
+ val = str(signals.get(five_bi_key[0], ""))
+ if "็ฑปไธ€ไนฐ" in val:
+ return 1
+ if "็ฑปไธ€ๅ–" in val:
+ return -1
+
+ # ็ฌ”ๅŸบ็ก€ไฟกๅท + ไธญๆžขไฝ็ฝฎ่พ…ๅŠฉ
+ bi_key = [k for k in signals if "V230228" in k]
+ if bi_key and len(c.bi_list) >= 3:
+ val = str(signals.get(bi_key[0], ""))
+ zs = _check_zhongshu(c.bi_list)
+ if zs and zs.is_valid:
+ last_close = c.bars_raw[-1].close
+ if "ๅ‘ไธ‹_่ฝฌๆŠ˜" in val and last_close <= zs.zd:
+ return 1
+ if "ๅ‘ไธŠ_่ฝฌๆŠ˜" in val and last_close >= zs.zg:
+ return -1
+
+ return 0
+
+
+if __name__ == "__main__":
+ import requests
+
+ BASE_URL = "https://www.okx.com/api/v5"
+
+ # ่Žทๅ– BTC ๆ—ฅ็บฟๆ•ฐๆฎ
+ resp = requests.get(f"{BASE_URL}/market/candles", params={
+ "instId": "BTC-USDT", "bar": "1D", "limit": "300"
+ })
+ candles = resp.json()["data"]
+
+ # ่ฝฌไธบ DataFrame
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ df["amount"] = df["volCcy"].astype(float)
+
+ # ่ฟ่กŒไฟกๅทๅผ•ๆ“Ž
+ engine = SignalEngine(freq=Freq.D)
+ signals = engine.generate({"BTC-USDT": df})
+
+ # ่พ“ๅ‡บ็ป“ๆžœ
+ sig = signals["BTC-USDT"]
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"BTC-USDT ็ผ ่ฎบไฟกๅท ({len(df)} ๆ นK็บฟ)")
+ print(f" ๅšๅคšไฟกๅท: {len(buys)} ไธช")
+ print(f" ๅš็ฉบไฟกๅท: {len(sells)} ไธช")
+ if len(buys) > 0:
+ print(f" ๆœ€่ฟ‘ๅšๅคš: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" ๆœ€่ฟ‘ๅš็ฉบ: {sells.index[-1]:%Y-%m-%d}")
diff --git "a/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\200\344\271\260\344\270\200\345\215\226.md" "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\200\344\271\260\344\270\200\345\215\226.md"
new file mode 100644
index 000000000..802107960
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\200\344\271\260\344\270\200\345\215\226.md"
@@ -0,0 +1,63 @@
+## ไธ€ไนฐ / ไธ€ๅ–๏ผˆ็ฌฌไธ€็ฑปไนฐๅ–็‚น๏ผ‰
+----
+
+็ผ ่ฎบไธญๆœ€้‡่ฆ็š„ไนฐๅ–็‚นไฟกๅท๏ผŒๅ‡บ็Žฐๅœจ่ถ‹ๅŠฟๅ่ฝฌ็š„ๆ‹็‚นไฝ็ฝฎใ€‚
+
+### ไธ€ไนฐ๏ผˆFirst Buy๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธ‹้™่ถ‹ๅŠฟไธญ๏ผˆ่‡ณๅฐ‘ไธคไธชๅ‘ไธ‹ไธญๆžข๏ผ‰๏ผŒๆœ€ๅŽไธ€ๆฎตไธ‹่ทŒๅ‡บ็Žฐ**่ƒŒ้ฉฐ**๏ผŒๅฝขๆˆๅบ•ๅˆ†ๅž‹ๆ—ถ็š„ไนฐๅ…ฅ็‚นใ€‚
+
+**่ƒŒ้ฉฐๅˆคๆ–ญ**๏ผšๆœ€ๅŽไธ€ๆฎตไธ‹่ทŒ็š„ๅŠ›ๅบฆๅฐไบŽๅ‰ไธ€ๆฎตไธ‹่ทŒ๏ผˆMACD้ข็งฏใ€ไปทๆ ผๅน…ๅบฆ็ญ‰่กก้‡๏ผ‰ใ€‚
+
+```
+โ—
+ \
+ \ โ—ไธญๆžข1
+ \/
+ /\
+ โ— \
+ \ โ—ไธญๆžข2
+ \/
+ /\
+ โ— \ โ† ่ƒŒ้ฉฐ๏ผˆๅŠ›ๅบฆๅ‡ๅผฑ๏ผ‰
+ โ˜… โ† ไธ€ไนฐ็‚น
+```
+
+**ไฟกๅทๆกไปถ**๏ผš
+1. ๅญ˜ๅœจ่‡ณๅฐ‘ไธคไธชไธญๆžข็š„ไธ‹้™่ถ‹ๅŠฟ
+2. ๆœ€ๅŽไธ€ๆฎตไธ‹่ทŒๅŠ›ๅบฆ < ๅ‰ไธ€ๆฎตไธ‹่ทŒๅŠ›ๅบฆ๏ผˆ่ƒŒ้ฉฐ๏ผ‰
+3. ๅ‡บ็Žฐๅบ•ๅˆ†ๅž‹็กฎ่ฎค
+
+### ไธ€ๅ–๏ผˆFirst Sell๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธŠๅ‡่ถ‹ๅŠฟไธญ๏ผˆ่‡ณๅฐ‘ไธคไธชๅ‘ไธŠไธญๆžข๏ผ‰๏ผŒๆœ€ๅŽไธ€ๆฎตไธŠๆถจๅ‡บ็Žฐ่ƒŒ้ฉฐ๏ผŒๅฝขๆˆ้กถๅˆ†ๅž‹ๆ—ถ็š„ๅ–ๅ‡บ็‚นใ€‚
+
+```
+ โ˜… โ† ไธ€ๅ–็‚น
+ โ— / โ† ่ƒŒ้ฉฐ๏ผˆๅŠ›ๅบฆๅ‡ๅผฑ๏ผ‰
+ \/
+ /\
+ โ— \ โ—ไธญๆžข2
+ /
+ /\
+ โ— \ โ—ไธญๆžข1
+ /
+ โ—
+```
+
+### czsc ไฟกๅทๅ‡ฝๆ•ฐ
+
+```python
+from czsc.signals.cxt import cxt_first_buy_V221126, cxt_first_sell_V221126
+
+def get_signals(c):
+ s = {}
+ s.update(cxt_first_buy_V221126(c, di=1)) # di=1 ่กจ็คบๅ€’ๆ•ฐ็ฌฌ1็ฌ”
+ s.update(cxt_first_sell_V221126(c, di=1))
+ return s
+```
+
+**่พ“ๅ‡บไฟกๅทๆ ผๅผ**๏ผš`{freq}_D{di}B_BUY1` / `{freq}_D{di}B_SELL1`
+- ๅ€ผไธบ `ไธ€ไนฐ_xxx` ๆ—ถ่งฆๅ‘ๅšๅคš
+- ๅ€ผไธบ `ไธ€ๅ–_xxx` ๆ—ถ่งฆๅ‘ๅš็ฉบ
+- ๅ€ผไธบ `ๅ…ถไป–_ไปปๆ„_ไปปๆ„_0` ๆ—ถๆ— ไฟกๅท
diff --git "a/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\211\344\271\260\344\270\211\345\215\226.md" "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\211\344\271\260\344\270\211\345\215\226.md"
new file mode 100644
index 000000000..5094529a0
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\270\211\344\271\260\344\270\211\345\215\226.md"
@@ -0,0 +1,70 @@
+## ไธ‰ไนฐ / ไธ‰ๅ–๏ผˆ็ฌฌไธ‰็ฑปไนฐๅ–็‚น๏ผ‰
+----
+
+ไธญๆžขไธŠ็งป/ไธ‹็งปๅŽ็š„่ถ‹ๅŠฟๅปถ็ปญไฟกๅท๏ผŒๆ˜ฏๆœ€ๅฏ้ ็š„้กบๅŠฟไบคๆ˜“ไฟกๅทใ€‚
+
+### ไธ‰ไนฐ๏ผˆThird Buy๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธŠๅ‡่ถ‹ๅŠฟไธญ๏ผŒไปทๆ ผ็ช็ ดไธญๆžขไธŠๆฒฟๅŽๅ›ž่ฐƒ๏ผŒๅ›ž่ฐƒ**ไธ่ฟ›ๅ…ฅๅ‰ไธญๆžข**๏ผˆไฝŽ็‚น้ซ˜ไบŽไธญๆžขZG๏ผ‰ๆ—ถ็š„ไนฐๅ…ฅ็‚นใ€‚
+
+```
+ โ—
+ / \
+ โ— / โ˜…ไธ‰ไนฐ โ† ๅ›ž่ฐƒไธ่ฟ›ๅ…ฅๅ‰ไธญๆžข
+ / \ /
+ / โ—
+ ------/---------- ZG (ไธญๆžขไธŠๆฒฟ)
+ โ— /
+ / \ / โ† ไธญๆžขๅŒบๅŸŸ
+ / \/
+ / /\
+ / โ— \
+โ— ------\----------- ZD (ไธญๆžขไธ‹ๆฒฟ)
+ โ—
+```
+
+**ไฟกๅทๆกไปถ**๏ผš
+1. ๅญ˜ๅœจๆœ‰ๆ•ˆไธญๆžข
+2. ไปทๆ ผๅ‘ไธŠ็ช็ ดไธญๆžขไธŠๆฒฟ๏ผˆZG๏ผ‰
+3. ็ช็ ดๅŽๅ›ž่ฐƒ็š„ไฝŽ็‚น > ไธญๆžขไธŠๆฒฟ๏ผˆZG๏ผ‰
+4. ๅ‡บ็Žฐๅบ•ๅˆ†ๅž‹็กฎ่ฎค
+
+### ไธ‰ๅ–๏ผˆThird Sell๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธ‹้™่ถ‹ๅŠฟไธญ๏ผŒไปทๆ ผ่ทŒ็ ดไธญๆžขไธ‹ๆฒฟๅŽๅๅผน๏ผŒๅๅผน**ไธ่ฟ›ๅ…ฅๅ‰ไธญๆžข**๏ผˆ้ซ˜็‚นไฝŽไบŽไธญๆžขZD๏ผ‰ๆ—ถ็š„ๅ–ๅ‡บ็‚นใ€‚
+
+```
+ โ—
+ ------/---------- ZG
+ \ โ— /
+ \ / \/ โ† ไธญๆžขๅŒบๅŸŸ
+ \/ \
+ \ โ—
+ ------\---------- ZD
+ \ โ—
+ \ / \
+ โ— โ˜…ไธ‰ๅ– โ† ๅๅผนไธ่ฟ›ๅ…ฅๅ‰ไธญๆžข
+ \
+ โ—
+```
+
+### czsc ไฟกๅทๅ‡ฝๆ•ฐ
+
+```python
+from czsc.signals.cxt import cxt_third_bs_V230318, cxt_third_bs_V230319
+
+def get_signals(c):
+ s = {}
+ # ๅ‡็บฟ่พ…ๅŠฉไธ‰ไนฐไธ‰ๅ–
+ s.update(cxt_third_bs_V230318(c, di=1, ma_type="SMA", timeperiod=20))
+ # ๅขžๅŠ ๅ‡็บฟๅฝขๆ€ๅˆคๆ–ญ็š„ไธ‰ไนฐไธ‰ๅ–
+ s.update(cxt_third_bs_V230319(c, di=1, ma_type="SMA", timeperiod=20))
+ return s
+```
+
+### ๅฎžๆˆ˜่ฆ็‚น
+
+- ไธ‰ไนฐๆ˜ฏ**ๆœ€ๅฏ้ **็š„ไนฐ็‚น๏ผšไธญๆžขไธŠ็งปๅทฒ็กฎ่ฎค่ถ‹ๅŠฟ๏ผŒๅ›ž่ฐƒไธ่ฟ›ไธญๆžข่ฏดๆ˜ŽๅŠ›ๅบฆๅผบ
+- ไธ‰ไนฐๅฏ็”จไบŽๅŠ ไป“๏ผŒ้…ๅˆไธ€ไนฐ/ไบŒไนฐ็š„ๅบ•ไป“
+- ไธ‰ๅ–ๅŒ็†๏ผŒๆ˜ฏๆœ€ๅฏ้ ็š„ๅ–ๅ‡บ/ๅš็ฉบไฟกๅท
+- ๆญขๆŸไฝๆ˜Ž็กฎ๏ผšไธ‰ไนฐๆญขๆŸ่ฎพๅœจไธญๆžขZGไธ‹ๆ–น๏ผŒไธ‰ๅ–ๆญข็›ˆ่ฎพๅœจไธญๆžขZDไธŠๆ–น
diff --git "a/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\272\214\344\271\260\344\272\214\345\215\226.md" "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\272\214\344\271\260\344\272\214\345\215\226.md"
new file mode 100644
index 000000000..498cac619
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\344\271\260\345\215\226\347\202\271/\344\272\214\344\271\260\344\272\214\345\215\226.md"
@@ -0,0 +1,55 @@
+## ไบŒไนฐ / ไบŒๅ–๏ผˆ็ฌฌไบŒ็ฑปไนฐๅ–็‚น๏ผ‰
+----
+
+ไธ€ไนฐ/ไธ€ๅ–ไน‹ๅŽ็š„ๅ›ž่ฐƒ็กฎ่ฎคไฟกๅท๏ผŒๅฎ‰ๅ…จๆ€ง้ซ˜ไบŽไธ€ไนฐไธ€ๅ–ใ€‚
+
+### ไบŒไนฐ๏ผˆSecond Buy๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธ€ไนฐๅ‡บ็ŽฐๅŽ๏ผŒไปทๆ ผๅๅผนๅ†ๅ›ž่ฐƒ๏ผŒๅ›ž่ฐƒ**ไธ็ ดไธ€ไนฐไฝŽ็‚น**ๆ—ถ็š„ไนฐๅ…ฅ็‚นใ€‚
+
+```
+ โ—
+ / \
+ โ— / \
+ / \ /
+ / \ /
+ / \ /
+โ— โ˜…ไธ€ไนฐ โ˜…ไบŒไนฐ โ† ๅ›ž่ฐƒไธ็ ดไธ€ไนฐไฝŽ็‚น
+```
+
+**ไฟกๅทๆกไปถ**๏ผš
+1. ๅทฒๅ‡บ็Žฐไธ€ไนฐไฟกๅท
+2. ๅๅผนๅŽๅ›ž่ฐƒ
+3. ๅ›ž่ฐƒไฝŽ็‚น > ไธ€ไนฐไฝŽ็‚น๏ผˆไธๅˆ›ๆ–ฐไฝŽ๏ผ‰
+4. ๅ‡บ็Žฐๅบ•ๅˆ†ๅž‹็กฎ่ฎค
+
+### ไบŒๅ–๏ผˆSecond Sell๏ผ‰
+
+**ๅฎšไน‰**๏ผšไธ€ๅ–ๅ‡บ็ŽฐๅŽ๏ผŒไปทๆ ผๅ›ž่ฐƒๅ†ๅๅผน๏ผŒๅๅผน**ไธ็ ดไธ€ๅ–้ซ˜็‚น**ๆ—ถ็š„ๅ–ๅ‡บ็‚นใ€‚
+
+```
+โ˜…ไธ€ๅ– โ˜…ไบŒๅ– โ† ๅๅผนไธ็ ดไธ€ๅ–้ซ˜็‚น
+ \ /\
+ \ / \
+ \ / \
+ \ / \
+ โ— โ—
+```
+
+### czsc ไฟกๅทๅ‡ฝๆ•ฐ
+
+```python
+from czsc.signals.cxt import cxt_second_bs_V230320
+
+def get_signals(c):
+ s = {}
+ # ๅ‡็บฟ่พ…ๅŠฉ่ฏ†ๅˆซไบŒไนฐไบŒๅ–
+ s.update(cxt_second_bs_V230320(c, di=1, ma_type="SMA", timeperiod=20))
+ return s
+```
+
+### ๅฎžๆˆ˜่ฆ็‚น
+
+- ไบŒไนฐๆฏ”ไธ€ไนฐ**ๆ›ดๅฎ‰ๅ…จ**๏ผšไธ€ไนฐๆ˜ฏๆŠ„ๅบ•๏ผˆๅฏ่ƒฝ็ปง็ปญ่ทŒ๏ผ‰๏ผŒไบŒไนฐๆ˜ฏ็กฎ่ฎคๅ่ฝฌ
+- ไบŒไนฐ็š„ๆญขๆŸไฝๆ˜Ž็กฎ๏ผš่ฎพๅœจไธ€ไนฐไฝŽ็‚นไธ‹ๆ–น
+- ไบŒๅ–ๅŒ็†๏ผŒๆญข็›ˆไฝ่ฎพๅœจไธ€ๅ–้ซ˜็‚นไธŠๆ–น
diff --git "a/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\344\270\255\346\236\242.md" "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\344\270\255\346\236\242.md"
new file mode 100644
index 000000000..b4a18aeeb
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\344\270\255\346\236\242.md"
@@ -0,0 +1,74 @@
+## ไธญๆžข๏ผˆZS / Zhong Shu๏ผ‰
+----
+
+ไธญๆžขๆ˜ฏ็ผ ่ฎบ็š„ๆ ธๅฟƒๆฆ‚ๅฟต๏ผŒ็”ฑ่‡ณๅฐ‘3็ฌ”ๆž„ๆˆ็š„**ไปทๆ ผ้‡ๅ ๅŒบๅŸŸ**ใ€‚ไธญๆžขไปฃ่กจๅคš็ฉบๅŠ›้‡็š„ๅ‡่กกๅŒบๅŸŸ๏ผŒไปทๆ ผ็ช็ ดไธญๆžขๆ„ๅ‘ณ็€่ถ‹ๅŠฟๅฝขๆˆใ€‚
+
+### ๆž„ๆˆๆกไปถ
+
+่‡ณๅฐ‘3็ฌ”๏ผˆ1ไธชๅฎŒๆ•ด็š„ไธŠไธ‹ๆˆ–ไธ‹ไธŠ่ฟๅŠจ๏ผ‰๏ผŒไธ”ๅญ˜ๅœจๅ…ฑๅŒ็š„ไปทๆ ผ้‡ๅ ๅŒบ้—ดใ€‚
+
+```
+ โ— โ—
+ / \ โ— / \
+ / \ / \ / \
+ / \ / \ โ— / \
+ / ZG---\/---------\--/--- \
+โ— -----/\---------/\-----โ— โ—
+ ZD / \ / \
+ โ— \ /
+ \ /
+ \ /
+ โ—
+```
+
+### ๅ…ณ้”ฎๅฑžๆ€ง
+
+| ๅฑžๆ€ง | ๅ…ฌๅผ | ่ฏดๆ˜Ž |
+| --- | --- | --- |
+| `zg`๏ผˆไธŠๆฒฟ๏ผ‰ | `min(bis[:3]ๅ„็ฌ”็š„high)` | ไธญๆžขไธŠ่พน็•Œ |
+| `zd`๏ผˆไธ‹ๆฒฟ๏ผ‰ | `max(bis[:3]ๅ„็ฌ”็š„low)` | ไธญๆžขไธ‹่พน็•Œ |
+| `zz`๏ผˆไธญ่ฝด๏ผ‰ | `zd + (zg - zd) / 2` | ไธญๆžขไธญๅฟƒไปทๆ ผ |
+| `gg`๏ผˆๆœ€้ซ˜๏ผ‰ | ๆ‰€ๆœ‰็ฌ”็š„ๆœ€้ซ˜ไปท | ไธญๆžขๅŒบๅŸŸๆœ€้ซ˜ |
+| `dd`๏ผˆๆœ€ไฝŽ๏ผ‰ | ๆ‰€ๆœ‰็ฌ”็š„ๆœ€ไฝŽไปท | ไธญๆžขๅŒบๅŸŸๆœ€ไฝŽ |
+| `is_valid` | `zg > zd` | ไธญๆžขๆ˜ฏๅฆๆœ‰ๆ•ˆ |
+
+### ไธญๆžขไธŽ่ถ‹ๅŠฟ
+
+- **ไธญๆžข้œ‡่ก**๏ผšไปทๆ ผๅœจไธญๆžขๅ†…ๅๅค่ฟๅŠจ๏ผŒๆ— ่ถ‹ๅŠฟ
+- **ไธญๆžขไธŠ็งป**๏ผšๆ–ฐไธญๆžข็š„ zd > ๅ‰ไธญๆžข็š„ zg โ†’ ไธŠๅ‡่ถ‹ๅŠฟ
+- **ไธญๆžขไธ‹็งป**๏ผšๆ–ฐไธญๆžข็š„ zg < ๅ‰ไธญๆžข็š„ zd โ†’ ไธ‹้™่ถ‹ๅŠฟ
+- **ไธญๆžขๆ‰ฉๅฑ•**๏ผšๆ–ฐ็ฌ”็ช็ ดไธญๆžขๅŽๅˆๅ›žๅˆฐไธญๆžขๅ†… โ†’ ้œ‡่กๅปถ็ปญ
+
+### czsc ๆ•ฐๆฎ็ป“ๆž„
+
+```python
+@dataclass
+class ZS:
+ bis: List[BI] # ๆž„ๆˆไธญๆžข็š„็ฌ”ๅˆ—่กจ
+
+ @property
+ def zg(self): ... # ไธŠๆฒฟ
+ @property
+ def zd(self): ... # ไธ‹ๆฒฟ
+ @property
+ def zz(self): ... # ไธญ่ฝด
+ @property
+ def gg(self): ... # ๆœ€้ซ˜
+ @property
+ def dd(self): ... # ๆœ€ไฝŽ
+ @property
+ def is_valid(self): ... # ๆ˜ฏๅฆๆœ‰ๆ•ˆ
+```
+
+### ไฝฟ็”จ็คบไพ‹
+
+```python
+from czsc import CZSC, ZS
+
+c = CZSC(bars)
+# ็”จๆœ€่ฟ‘็š„็ฌ”ๆฃ€ๆต‹ไธญๆžข
+for i in range(len(c.bi_list) - 3):
+ zs = ZS(bis=c.bi_list[i:i+3])
+ if zs.is_valid:
+ print(f"ไธญๆžข: ZG={zs.zg:.0f} ZD={zs.zd:.0f} ZZ={zs.zz:.0f}")
+```
diff --git "a/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\345\210\206\345\236\213.md" "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\345\210\206\345\236\213.md"
new file mode 100644
index 000000000..e3a13e919
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\345\210\206\345\236\213.md"
@@ -0,0 +1,61 @@
+## ๅˆ†ๅž‹๏ผˆFX๏ผ‰
+----
+
+ๅˆ†ๅž‹ๆ˜ฏ็ผ ่ฎบๆœ€ๅŸบ็ก€็š„่ฏ†ๅˆซๅ•ๅ…ƒ๏ผŒ็”ฑ่ฟž็ปญไธ‰ๆ น**ๅŽปๅŒ…ๅซๅŽ**็š„K็บฟๆž„ๆˆใ€‚
+
+### ๅŽปๅŒ…ๅซๅค„็†
+
+็›ธ้‚ปไธคๆ นK็บฟๅญ˜ๅœจๅŒ…ๅซๅ…ณ็ณป๏ผˆไธ€ๆ นK็บฟ้ซ˜ไฝŽๅฎŒๅ…จ่ขซๅฆไธ€ๆ น่ฆ†็›–๏ผ‰ๆ—ถ๏ผŒ้œ€ๅˆๅนถไธบไธ€ๆ น๏ผš
+
+- **ไธŠๅ‡ๆ–นๅ‘**๏ผšๅ–ไธคๆ นK็บฟไธญ่พƒๅคง็š„้ซ˜็‚นๅ’Œ่พƒๅคง็š„ไฝŽ็‚น
+- **ไธ‹้™ๆ–นๅ‘**๏ผšๅ–่พƒๅฐ็š„้ซ˜็‚นๅ’Œ่พƒๅฐ็š„ไฝŽ็‚น
+
+### ้กถๅˆ†ๅž‹๏ผˆMark.G๏ผ‰
+
+```
+ โ–ˆโ–ˆ
+ โ–ˆโ–ˆ โ–ˆโ–ˆ
+โ–ˆโ–ˆ โ–ˆโ–ˆ
+```
+
+ๆกไปถ๏ผš`k1.high < k2.high > k3.high` ไธ” `k1.low < k2.low > k3.low`
+
+่กจ็คบไธŠๆถจๅŠ›้‡่กฐ็ซญ๏ผŒๅฏ่ƒฝ่ฝฌ่ทŒใ€‚
+
+### ๅบ•ๅˆ†ๅž‹๏ผˆMark.D๏ผ‰
+
+```
+โ–ˆโ–ˆ โ–ˆโ–ˆ
+ โ–ˆโ–ˆ โ–ˆโ–ˆ
+ โ–ˆโ–ˆ
+```
+
+ๆกไปถ๏ผš`k1.high > k2.high < k3.high` ไธ” `k1.low > k2.low < k3.low`
+
+่กจ็คบไธ‹่ทŒๅŠ›้‡่กฐ็ซญ๏ผŒๅฏ่ƒฝ่ฝฌๆถจใ€‚
+
+### czsc ๆ•ฐๆฎ็ป“ๆž„
+
+```python
+@dataclass
+class FX:
+ symbol: str # ๆ ‡็š„ไปฃ็ 
+ dt: datetime # ๅˆ†ๅž‹ๆ—ถ้—ด๏ผˆๅ–ไธญ้—ดK็บฟๆ—ถ้—ด๏ผ‰
+ mark: Mark # Mark.G๏ผˆ้กถ๏ผ‰/ Mark.D๏ผˆๅบ•๏ผ‰
+ high: float # ๅˆ†ๅž‹ๆœ€้ซ˜ไปท
+ low: float # ๅˆ†ๅž‹ๆœ€ไฝŽไปท
+ fx: float # ๅˆ†ๅž‹ๅ€ผ๏ผˆ้กถๅ–high๏ผŒๅบ•ๅ–low๏ผ‰
+ elements: List[NewBar] # ๆž„ๆˆๅˆ†ๅž‹็š„ไธ‰ๆ นๅŽปๅŒ…ๅซK็บฟ
+```
+
+### ไฝฟ็”จ็คบไพ‹
+
+```python
+from czsc import CZSC
+
+c = CZSC(bars)
+# ็ฌ”็š„็ซฏ็‚นๅฐฑๆ˜ฏๅˆ†ๅž‹
+for bi in c.bi_list:
+ print(f"่ตท็‚นๅˆ†ๅž‹: {bi.fx_a.mark.value} {bi.fx_a.dt}")
+ print(f"็ปˆ็‚นๅˆ†ๅž‹: {bi.fx_b.mark.value} {bi.fx_b.dt}")
+```
diff --git "a/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\347\254\224.md" "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\347\254\224.md"
new file mode 100644
index 000000000..400da9f13
--- /dev/null
+++ "b/agent/src/skills/chanlun/references/\346\240\270\345\277\203\346\246\202\345\277\265/\347\254\224.md"
@@ -0,0 +1,74 @@
+## ็ฌ”๏ผˆBI๏ผ‰
+----
+
+็ฌ”ๆ˜ฏ็ผ ่ฎบ็š„ๅŸบๆœฌ่ตฐๅŠฟๅ•ๅ…ƒ๏ผŒ่ฟžๆŽฅ็›ธ้‚ป็š„้กถๅˆ†ๅž‹ๅ’Œๅบ•ๅˆ†ๅž‹ใ€‚
+
+### ๆž„ๆˆๆกไปถ
+
+1. **ๆ–นๅ‘**๏ผšไธŠๅ‡็ฌ”๏ผˆๅบ•โ†’้กถ๏ผ‰๏ผŒไธ‹้™็ฌ”๏ผˆ้กถโ†’ๅบ•๏ผ‰
+2. **้กถๅบ•ไบคๆ›ฟ**๏ผš็›ธ้‚ปไธค็ฌ”็š„็ซฏ็‚นๅˆ†ๅž‹ๅฟ…้กปไบคๆ›ฟ๏ผˆ้กถ-ๅบ•-้กถ-ๅบ•...๏ผ‰
+3. **ๆ— ๅŒ…ๅซ**๏ผšไธคไธชๅˆ†ๅž‹ไน‹้—ดไธ่ƒฝๅญ˜ๅœจไปทๆ ผๅŒบ้—ดๅŒ…ๅซ
+4. **ๆœ€ๅฐ้•ฟๅบฆ**๏ผšๅŽปๅŒ…ๅซๅŽ็š„K็บฟๆ•ฐไธๅฐ‘ไบŽ้˜ˆๅ€ผ๏ผˆ้ป˜่ฎค7ๆ น๏ผ‰
+
+### ไธŠๅ‡็ฌ”
+
+```
+ โ—้กถๅˆ†ๅž‹
+ /
+ /
+ /
+ /
+โ—ๅบ•ๅˆ†ๅž‹
+```
+
+`fx_a.mark = Mark.D`๏ผŒ`fx_b.mark = Mark.G`๏ผŒไธ” `fx_b.fx > fx_a.fx`
+
+### ไธ‹้™็ฌ”
+
+```
+โ—้กถๅˆ†ๅž‹
+ \
+ \
+ \
+ \
+ โ—ๅบ•ๅˆ†ๅž‹
+```
+
+`fx_a.mark = Mark.G`๏ผŒ`fx_b.mark = Mark.D`๏ผŒไธ” `fx_b.fx < fx_a.fx`
+
+### ๅ…ณ้”ฎๅฑžๆ€ง
+
+| ๅฑžๆ€ง | ่ฏดๆ˜Ž |
+| --- | --- |
+| `direction` | Direction.Up๏ผˆไธŠๅ‡๏ผ‰/ Direction.Down๏ผˆไธ‹้™๏ผ‰ |
+| `high` | ็ฌ”็š„ๆœ€้ซ˜ไปท |
+| `low` | ็ฌ”็š„ๆœ€ไฝŽไปท |
+| `length` | ็ฌ”ๅŒ…ๅซ็š„ๅŽปๅŒ…ๅซK็บฟๆ•ฐ |
+| `power_price` | ็ฌ”็š„ไปทๆ ผๅŠ›ๅบฆ๏ผˆ้ซ˜ไฝŽๅทฎ๏ผ‰ |
+| `slope` | ็ฌ”็š„ๆ–œ็އ |
+| `angle` | ็ฌ”็š„่ง’ๅบฆ |
+
+### czsc ๆ•ฐๆฎ็ป“ๆž„
+
+```python
+@dataclass
+class BI:
+ symbol: str
+ fx_a: FX # ่ตท็‚นๅˆ†ๅž‹
+ fx_b: FX # ็ปˆ็‚นๅˆ†ๅž‹
+ fxs: List[FX] # ็ป่ฟ‡็š„ๆ‰€ๆœ‰ๅˆ†ๅž‹
+ direction: Direction # Up / Down
+ bars: List[NewBar] # ็ฌ”ๅ†…็š„ๅŽปๅŒ…ๅซK็บฟ
+```
+
+### ไฝฟ็”จ็คบไพ‹
+
+```python
+from czsc import CZSC
+
+c = CZSC(bars)
+for bi in c.bi_list[-5:]:
+ d = "โ†‘" if bi.direction.value == "Up" else "โ†“"
+ print(f"{d} {bi.fx_a.dt:%m-%d} -> {bi.fx_b.dt:%m-%d} "
+ f"H={bi.high:.0f} L={bi.low:.0f} len={bi.length}")
+```
diff --git a/agent/src/skills/commodity-analysis/SKILL.md b/agent/src/skills/commodity-analysis/SKILL.md
new file mode 100644
index 000000000..6d502d261
--- /dev/null
+++ b/agent/src/skills/commodity-analysis/SKILL.md
@@ -0,0 +1,205 @@
+---
+name: commodity-analysis
+description: Commodity analysis (oil supply-demand balance / gold pricing / copper as an economic predictor / inventory cycles / futures premium-discount structure / seasonality), generating directional commodity signals.
+---
+# Commodity Analysis
+
+## Overview
+
+Analyze commodities from four dimensions โ€” supply-demand balance, pricing model, inventory cycle, and futures structure โ€” and output directional signals suitable for backtesting. Focuses on crude oil (global pricing anchor), gold (safe haven + inflation hedge), and copper (economic barometer).
+
+## Core Concepts
+
+### 1. Crude Oil Supply-Demand Balance
+
+**Key supply-side variables:**
+
+| Variable | Data Source | Frequency | Direction of Impact |
+|------|--------|------|---------|
+| OPEC production | OPEC monthly report | Monthly | Production cuts โ†’ oil price โ†‘ |
+| US shale output | EIA weekly report | Weekly | Higher output โ†’ oil price โ†“ |
+| Rig count (Baker Hughes) | Baker Hughes | Weekly | Leads production by 3-6 months |
+| Strategic Petroleum Reserve (SPR) | EIA | Weekly | SPR release โ†’ short-term oil price โ†“ |
+
+**Key demand-side variables:**
+- IEA global oil demand forecast (quarterly)
+- China crude imports (customs monthly data)
+- US gasoline demand (EIA weekly report, implied demand)
+- Global PMI (leads demand by 1-2 months)
+
+**Supply-demand balance signals:**
+
+```python
+# Simplified supply-demand judgment
+if opec_compliance > 90% and us_rig_count_declining:
+ supply_signal = "tight" # bullish for oil
+elif opec_compliance < 80% and us_production_rising:
+ supply_signal = "loose" # bearish for oil
+
+if global_pmi > 50 and china_import_yoy > 5%:
+ demand_signal = "strong" # bullish for oil
+elif global_pmi < 48 and china_import_yoy < 0:
+ demand_signal = "weak" # bearish for oil
+```
+
+### 2. Gold Pricing Framework
+
+**Four-factor model:**
+
+| Factor | Weight | Logic | Indicator |
+|------|------|------|------|
+| Real rates | 40% | Real rates โ†“ โ†’ lower opportunity cost of holding gold โ†’ gold โ†‘ | 10Y TIPS yield |
+| US dollar index | 25% | USD โ†“ โ†’ gold becomes cheaper in pricing terms โ†’ gold โ†‘ | DXY |
+| Safe-haven demand | 20% | Risk โ†‘ โ†’ safe-haven buying โ†’ gold โ†‘ | VIX + geopolitical risk index |
+| Central-bank buying | 15% | Central-bank purchases โ†’ structural demand support | WGC quarterly report |
+
+**Practical rules:**
+- 10Y TIPS < 0%: strong support for gold (negative real rates mean negative holding cost)
+- 10Y TIPS > 2%: pressure on gold (positive real rates reduce attractiveness)
+- Correlation between DXY and gold is around -0.6, but not absolute (they both rose in 2022 due to safe-haven demand)
+- Central-bank purchases >1000 tons / year (2022-2023 level): long-term structural bullish support
+
+### 3. Dr. Copper as an Economic Predictor
+
+**Copper as a leading indicator:**
+- YoY copper-price change leads industrial production by about 2-3 months
+- Copper / gold ratio is highly positively correlated with the US 10Y Treasury yield (`r > 0.7`)
+- Copper breakout above the prior high confirms economic recovery
+
+**Copper fundamental tracking:**
+
+| Indicator | Data Source | Threshold |
+|------|--------|------|
+| LME copper inventory | LME daily report | <150k tons = tight |
+| SHFE copper inventory | SHFE weekly report | WoW decline >10% = tight |
+| Copper concentrate TC/RC | SMM | TC < $30/ton = tight mining supply |
+| China copper imports | Customs monthly report | YoY growth >10% = strong demand |
+
+### 4. Inventory Cycle Analysis
+
+**Visible inventory vs hidden inventory:**
+- Visible inventory: published by exchanges (LME / SHFE / COMEX), transparent and trackable
+- Hidden inventory: bonded areas / trader warehouses, opaque but potentially larger
+- The true turning point in prices is the turning point in total inventory
+
+**Four inventory-cycle stages (using copper as example):**
+
+```
+Active restocking (priceโ†‘ volumeโ†‘) -> Passive restocking (priceโ†“ volumeโ†‘) -> Active destocking (priceโ†“ volumeโ†“) -> Passive destocking (priceโ†‘ volumeโ†“)
+ mid bull market late bull market mid bear market late bear / early bull market
+```
+
+**Signal mapping:**
+
+| Stage | Inventory Direction | Price Direction | Trading Signal |
+|------|---------|---------|---------|
+| Passive destocking | โ†“ | โ†‘ | Long (best buying point) |
+| Active restocking | โ†‘ | โ†‘ | Keep long positions |
+| Passive restocking | โ†‘ | โ†“ | Close longs (warning) |
+| Active destocking | โ†“ | โ†“ | Short or stay neutral |
+
+### 5. Futures Premium / Discount Structure
+
+**Contango (futures > spot, normal market):**
+- Supply is abundant, and the market prices in carrying costs (storage + funding)
+- Roll yield is negative (`roll yield < 0`), unfavorable for long holders
+- Deep contango (`far month - near month > 5%`) = severe oversupply
+
+**Backwardation (futures < spot, inverted market):**
+- Supply is tight, and spot premium reflects strong immediate demand
+- Roll yield is positive (`roll yield > 0`), favorable for long holders
+- Deep backwardation (`near month - far month > 3%`) = squeeze or extreme shortage
+
+**Term-structure signal:**
+
+```python
+# Spread ratio = (front month - second month) / front month
+spread_ratio = (front_month - second_month) / front_month
+
+if spread_ratio > 0.02: # backwardation > 2%
+ signal = "strongly bullish" # spot shortage
+elif spread_ratio < -0.03: # contango > 3%
+ signal = "bearish" # oversupply
+else:
+ signal = "neutral"
+```
+
+### 6. Seasonality
+
+**Oil seasonality:**
+- March-May: refinery maintenance ends + summer inventory build โ†’ seasonal rise (ahead of the "driving season")
+- September-October: hurricane season (Gulf of Mexico) โ†’ supply disruption โ†’ higher volatility
+- November-December: heating-oil demand โ†’ stronger diesel crack spread
+
+**Gold seasonality:**
+- January-February: Lunar New Year + Indian wedding-season physical demand โ†’ relatively strong
+- July-August: traditional soft season โ†’ relatively weak
+- October-November: Diwali + Christmas restocking โ†’ relatively strong
+
+**Copper seasonality:**
+- March-April: China construction season starts โ†’ demand recovery
+- June-July: off-season inventory buildup โ†’ pressure
+- September-October: "Golden September, Silver October" โ†’ demand recovery
+
+## Analysis Framework
+
+### Five-Step Commodity Analysis
+
+1. **Supply-demand sets direction**: is the balance in surplus or shortage? Which way are marginal variables moving?
+2. **Inventory sets rhythm**: which inventory-cycle stage are we in? Is a turning point close?
+3. **Term structure confirms**: contango or backwardation? Does it confirm the supply-demand judgment?
+4. **Seasonality overlay**: is seasonality currently a tailwind or a headwind?
+5. **Macro validation**: do the dollar / rates / risk appetite support the directional judgment?
+
+### Composite Scoring Template
+
+```python
+commodity_score = {
+ "supply_demand": +1, # supply-demand is tight
+ "inventory_cycle": +2, # passive destocking (best stage)
+ "term_structure": +1, # mild backwardation
+ "seasonality": 0, # neutral seasonality
+ "macro_env": -1, # stronger dollar is a headwind
+}
+# Total score = +3/5 = +0.6 -> bullish bias, but not a strong signal
+```
+
+## Output Format
+
+```
+## Commodity Analysis Report โ€” [Commodity Name]
+
+### Supply-Demand Structure
+- Supply side: [surplus / balanced / shortage] โ€” [specific data]
+- Demand side: [strong / stable / weak] โ€” [specific data]
+- Balance table: [inventory build X tons / drawdown X tons]
+
+### Inventory Cycle
+- Current stage: [active restocking / passive restocking / active destocking / passive destocking]
+- Visible inventory: [LME X tons, SHFE X tons, WoW change]
+
+### Term Structure
+- Front-back spread: [contango X% / backwardation X%]
+- Roll yield: [positive / negative]
+
+### Composite Score
+| Dimension | Score(-2~+2) | Basis |
+|------|------------|------|
+| Supply-demand | +1 | OPEC compliance rate 92% |
+| Inventory | +2 | LME inventory hit 18-month low |
+
+### Trading Direction
+- Direction: [bullish / bearish / neutral]
+- Confidence: [high / medium / low]
+- Risk points: [specific risks]
+```
+
+## Notes
+
+- Commodity data sources are fragmented (EIA / OPEC / LME / SHFE, etc.). This skill provides the analytical framework; data should be retrieved through `web-reader` or entered manually
+- Futures prices include roll costs, so direct comparison across different contracts must account for expiry-roll effects
+- Seasonal patterns are statistical averages and may be completely overwhelmed by fundamentals in a given year
+- Gold has both commodity and financial attributes, and the financial side (rates / dollar) usually dominates short-term pricing
+- Copperโ€™s financial characteristics have strengthened since 2020 (copper futures are used as a macro hedge), so pure fundamental analysis may be insufficient
+- Inventory data is lagged (hidden inventories cannot be tracked in real time), so cross-check with price and basis behavior
+- This framework is for research backtesting only and does not constitute investment advice
diff --git a/agent/src/skills/convertible-bond/SKILL.md b/agent/src/skills/convertible-bond/SKILL.md
new file mode 100644
index 000000000..cb566ae7d
--- /dev/null
+++ b/agent/src/skills/convertible-bond/SKILL.md
@@ -0,0 +1,258 @@
+---
+name: convertible-bond
+description: A่‚กๅฏ่ฝฌๅ€บๅˆ†ๆžโ€”โ€”่ฝฌ่‚ก/็บฏๅ€บ/ๆœŸๆƒไธ‰็ปดไผฐๅ€ผใ€ไธ‹ไฟฎ/ๅผบ่ตŽ/ๅ›žๅ”ฎๅšๅผˆใ€ๅŒไฝŽ็ญ–็•ฅไธŽ่ฝฌๅ€บ่ฝฎๅŠจ้€‰ๅ€บๆก†ๆžถ
+---
+
+# A่‚กๅฏ่ฝฌๅ€บๅˆ†ๆž
+
+## ๆฆ‚่ฟฐ
+
+A่‚กๅฏ่ฝฌๅ€บๆ˜ฏๅ…ทๆœ‰"ๅ€บๅบ•ไฟๆŠค+่‚ก็ฅจๆœŸๆƒ"็‰นๅพ็š„ๆททๅˆๅ“็งใ€‚ๆœฌskill่ฆ†็›–ๅฏ่ฝฌๅ€บไธ‰็ปดไผฐๅ€ผใ€ๆกๆฌพๅšๅผˆๅˆ†ๆžใ€ๅŒไฝŽ็ญ–็•ฅๅ’Œ่ฝฎๅŠจ้€‰ๅ€บๆก†ๆžถใ€‚
+
+## ๅฏ่ฝฌๅ€บๅŸบ็ก€ๆฆ‚ๅฟต
+
+### ๆ ธๅฟƒ่ฆ็ด 
+
+| ่ฆ็ด  | ่ฏดๆ˜Ž | ็คบไพ‹ |
+|------|------|------|
+| ้ขๅ€ผ | 100ๅ…ƒ | - |
+| ็ฅจ้ขๅˆฉ็އ | ้€’ๅขž๏ผŒ้€šๅธธ0.3%-2.0% | ็ฌฌ1ๅนด0.4%...็ฌฌ6ๅนด2.0% |
+| ่ฝฌ่‚กไปท | ่ฝฌๆขๆˆ่‚ก็ฅจ็š„ไปทๆ ผ | ่ฝฌ่‚กไปท15.00ๅ…ƒ |
+| ๅˆฐๆœŸๆœŸ้™ | ้€šๅธธ6ๅนด | 2024-2030 |
+| ๅˆฐๆœŸ่ตŽๅ›žไปท | ้ขๅ€ผ+ๆœ€ๅŽไธ€ๅนดๅˆฉๆฏ+่กฅๅฟ | 110-115ๅ…ƒ |
+| ๅ›žๅ”ฎๆกๆฌพ | ่‚กไปทๆŒ็ปญไฝŽไบŽ่ฝฌ่‚กไปท70%ๅฏๅ›žๅ”ฎ | ่ฟž็ปญ30ไธชไบคๆ˜“ๆ—ฅไธญ30ๅคฉ<70% |
+| ๅผบ่ตŽๆกๆฌพ | ่‚กไปทๆŒ็ปญ้ซ˜ไบŽ่ฝฌ่‚กไปท130%ๅฏๅผบ่ตŽ | ่ฟž็ปญ30ไธชไบคๆ˜“ๆ—ฅไธญ15ๅคฉ>130% |
+| ไธ‹ไฟฎๆกๆฌพ | ๅฏไปฅไธ‹่ฐƒ่ฝฌ่‚กไปท | ่ฟž็ปญ30ไธชไบคๆ˜“ๆ—ฅไธญ15ๅคฉ<85% |
+
+### ๅ…ณ้”ฎๆŒ‡ๆ ‡
+
+```
+่ฝฌ่‚กไปทๅ€ผ = ้ขๅ€ผ / ่ฝฌ่‚กไปท ร— ๆญฃ่‚กไปทๆ ผ
+ = 100 / 15.00 ร— 18.00 = 120.00ๅ…ƒ
+
+่ฝฌ่‚กๆบขไปท็އ = (่ฝฌๅ€บไปทๆ ผ - ่ฝฌ่‚กไปทๅ€ผ) / ่ฝฌ่‚กไปทๅ€ผ ร— 100%
+ = (125 - 120) / 120 ร— 100% = 4.17%
+
+็บฏๅ€บไปทๅ€ผ = ฮฃ(็ฅจๆฏ / (1+r)^t) + ๅˆฐๆœŸ่ตŽๅ›žไปท / (1+r)^n
+ โ‰ˆ 85-95ๅ…ƒ๏ผˆๅ–ๅ†ณไบŽๅ‰ฉไฝ™ๆœŸ้™ๅ’Œๅˆฉ็އ๏ผ‰
+
+็บฏๅ€บๆบขไปท็އ = (่ฝฌๅ€บไปทๆ ผ - ็บฏๅ€บไปทๅ€ผ) / ็บฏๅ€บไปทๅ€ผ ร— 100%
+```
+
+## ไธ‰็ปดไผฐๅ€ผไฝ“็ณป
+
+### 1. ็บฏๅ€บไปทๅ€ผ๏ผˆๅ€บๅบ•๏ผ‰
+
+```python
+def bond_floor(coupon_rates: list, years_remaining: float,
+ redemption_price: float = 110, yield_rate: float = 0.03) -> float:
+ """
+ Args:
+ coupon_rates: ๅ‰ฉไฝ™ๅ„ๅนด็ฅจ้ขๅˆฉ็އๅˆ—่กจ๏ผŒๅฆ‚ [0.8, 1.0, 1.5, 2.0]
+ years_remaining: ๅ‰ฉไฝ™ๅนด้™
+ redemption_price: ๅˆฐๆœŸ่ตŽๅ›žไปท
+ yield_rate: ๆŠ˜็Žฐ็އ๏ผˆๅŒๆœŸไฟก็”จๅ€บๆ”ถ็›Š็އ๏ผŒ็บฆ2.5-4%๏ผ‰
+ Returns:
+ ็บฏๅ€บไปทๅ€ผ
+ """
+ pv = sum(c * 100 / (1 + yield_rate)**i for i, c in enumerate(coupon_rates, 1))
+ pv += redemption_price / (1 + yield_rate)**len(coupon_rates)
+ return pv
+```
+
+**็บฏๅ€บไปทๅ€ผๅซไน‰**๏ผš
+- ็บฏๅ€บไปทๅ€ผ่ถŠ้ซ˜ โ†’ ๅ€บๅบ•ไฟๆŠค่ถŠๅผบ โ†’ ไธ‹่ทŒ็ฉบ้—ดๆœ‰้™
+- ้€šๅธธ็บฏๅ€บไปทๅ€ผๅœจ 85-100 ไน‹้—ด
+- ่ฝฌๅ€บไปทๆ ผ่ทŒๅˆฐ็บฏๅ€บไปทๅ€ผ้™„่ฟ‘ = "ๅ€บๆ€ง่ฝฌๅ€บ"๏ผŒๅฎ‰ๅ…จไฝ†ๅผนๆ€งๅฐ
+
+### 2. ่ฝฌ่‚กไปทๅ€ผ๏ผˆ่‚กๆ€ง๏ผ‰
+
+```
+่ฝฌ่‚กไปทๅ€ผ = 100 / ่ฝฌ่‚กไปท ร— ๆญฃ่‚กๅฝ“ๅ‰ไปท
+
+ๅฝฑๅ“ๅ› ๅญ:
+- ๆญฃ่‚กไปทๆ ผ๏ผˆๆญฃ็›ธๅ…ณ๏ผ‰
+- ่ฝฌ่‚กไปท๏ผˆ่ดŸ็›ธๅ…ณ๏ผ‰
+- ไธ‹ไฟฎ่ฝฌ่‚กไปท โ†’ ่ฝฌ่‚กไปทๅ€ผไธŠๅ‡
+```
+
+### 3. ๆœŸๆƒไปทๅ€ผ
+
+```
+ๆœŸๆƒไปทๅ€ผ = ่ฝฌๅ€บไปทๆ ผ - max(็บฏๅ€บไปทๅ€ผ, ่ฝฌ่‚กไปทๅ€ผ)
+
+ๆœŸๆƒไปทๅ€ผ้ซ˜ โ†’ ๅธ‚ๅœบ็œ‹ๅฅฝๆญฃ่‚กไธŠๆถจๆฝœๅŠ› ๆˆ– ็œ‹ๅฅฝไธ‹ไฟฎๆฆ‚็އ
+ๆœŸๆƒไปทๅ€ผไฝŽ/่ดŸ โ†’ ไพฟๅฎœ๏ผˆๅฏ่ƒฝๆœ‰ๆœบไผš๏ผ‰
+```
+
+### ไธ‰็ปดๅˆคๆ–ญ็Ÿฉ้˜ต
+
+| ่ฝฌ่‚กไปทๅ€ผ | ็บฏๅ€บไปทๅ€ผ | ่ฝฌๅ€บ็ฑปๅž‹ | ็ญ–็•ฅ |
+|---------|---------|---------|------|
+| >120 | ไธ้‡่ฆ | ๅ่‚กๅž‹ | ่ทŸ้šๆญฃ่‚ก๏ผŒๅ…ณๆณจๅผบ่ตŽ้ฃŽ้™ฉ |
+| 100-120 | ไธ้‡่ฆ | ๅนณ่กกๅž‹ | ่ฟ›ๅฏๆ”ป้€€ๅฏๅฎˆ๏ผŒๆœ€ไฝณๅŒบ้—ด |
+| <100 | >90 | ๅๅ€บๅž‹ | ๆŒๆœ‰ๅƒๅˆฉๆฏ๏ผŒ็ญ‰ไธ‹ไฟฎ/ๆญฃ่‚กๅๅผน |
+| <80 | <85 | ๅ›ฐๅขƒๅž‹ | ้ซ˜้ฃŽ้™ฉ๏ผŒๅฏ่ƒฝๆœ‰ไฟก็”จ้ฃŽ้™ฉ |
+
+## ๆกๆฌพๅšๅผˆๅˆ†ๆž
+
+### ไธ‹ไฟฎๅšๅผˆ
+
+**่งฆๅ‘ๆกไปถ**๏ผš่ฟž็ปญ30ไธชไบคๆ˜“ๆ—ฅไธญ15ๅคฉๆญฃ่‚กๆ”ถ็›˜ไปทไฝŽไบŽๅฝ“ๆœŸ่ฝฌ่‚กไปท็š„85%ใ€‚
+
+```
+ไธ‹ไฟฎๆฆ‚็އ่ฏ„ไผฐ:
+1. ่งฆๅ‘ๆกไปถๅทฒๆปก่ถณ/ๆŽฅ่ฟ‘ๆปก่ถณ โ†’ ้ซ˜ๆฆ‚็އ
+2. ๅคง่‚กไธœๆŒๆœ‰ๅคง้‡่ฝฌๅ€บๆœช่ฝฌ่‚ก โ†’ ้ซ˜ๆฆ‚็އ๏ผˆๆœ‰ๅŠจๅŠ›ไธ‹ไฟฎ๏ผ‰
+3. ๅ…ฌๅธๅณๅฐ†้ขไธดๅ›žๅ”ฎ โ†’ ้ซ˜ๆฆ‚็އ๏ผˆไธ‹ไฟฎ้ฟๅ…ๅ›žๅ”ฎ๏ผ‰
+4. ๅ…ฌๅธ็Žฐ้‡‘ๅ……่ฃ•ใ€ๆ— ่ฟ˜ๅ€บๅŽ‹ๅŠ› โ†’ ไฝŽๆฆ‚็އ๏ผˆๆ— ๅŠจๅŠ›ไธ‹ไฟฎ๏ผ‰
+5. ่ฝฌ่‚กไผšๅคงๅน…็จ€้‡Š่‚กๆƒ โ†’ ไฝŽๆฆ‚็އ๏ผˆๆŽงๅˆถๆƒ้กพ่™‘๏ผ‰
+
+ไธ‹ไฟฎๅŽๅฝฑๅ“:
+- ่ฝฌ่‚กไปทๅ€ผ = 100 / ๆ–ฐ่ฝฌ่‚กไปท ร— ๆญฃ่‚กไปท๏ผŒ้€šๅธธ็žฌ้—ดไธŠๅ‡
+- ่ฝฌๅ€บไปทๆ ผ้€šๅธธไธŠๆถจ 5-15%
+- ไฝ†ๆญฃ่‚กๅฏ่ƒฝๅ› ็จ€้‡Š้ข„ๆœŸไธ‹่ทŒ
+```
+
+### ๅผบ่ตŽๅšๅผˆ
+
+**่งฆๅ‘ๆกไปถ**๏ผš่ฟž็ปญ30ไธชไบคๆ˜“ๆ—ฅไธญ15ๅคฉๆญฃ่‚กๆ”ถ็›˜ไปท้ซ˜ไบŽ่ฝฌ่‚กไปท็š„130%ใ€‚
+
+```
+ๅผบ่ตŽๅบ”ๅฏน:
+1. ๅ…ฌๅ‘Šๅผบ่ตŽ โ†’ ๅฟ…้กปๅœจ่ตŽๅ›žๆ—ฅๅ‰่ฝฌ่‚กๆˆ–ๅ–ๅ‡บ
+2. ่ตŽๅ›žไปท้€šๅธธ 100.XX ๅ…ƒ โ†’ ่ฟœไฝŽไบŽ่ฝฌ่‚กไปทๅ€ผ
+3. ไธ่ฝฌ่‚ก = ๅทจไบ๏ผˆๅฆ‚่ฝฌๅ€บไปท160ๅ…ƒ๏ผŒ่ตŽๅ›žไปท100ๅ…ƒ๏ผ‰
+
+ๅผบ่ตŽไฟกๅท:
+- ๆญฃ่‚กไปทๆŒ็ปญ>่ฝฌ่‚กไปท130% โ†’ ๆ•ฐๅคฉๆ•ฐ
+- ๅ…ฌๅธๅ…ฌๅ‘Š"ไธๆๅ‰่ตŽๅ›ž" โ†’ ๆš‚ๆ—ถๅฎ‰ๅ…จ
+- ่ฝฌ่‚ก่ฟ›ๅบฆๅทฒ>90% โ†’ ๅฏ่ƒฝไธ่ตŽๅ›ž
+```
+
+### ๅ›žๅ”ฎๅšๅผˆ
+
+**่งฆๅ‘ๆกไปถ**๏ผšๆญฃ่‚กไปท่ฟž็ปญ30ๅคฉไฝŽไบŽ่ฝฌ่‚กไปท็š„70%๏ผˆๆœ€ๅŽ2ไธช่ฎกๆฏๅนดๅบฆ๏ผ‰ใ€‚
+
+```
+ๅ›žๅ”ฎ = ๆŠ•่ต„่€…ๆœ‰ๆƒไปฅ้ขๅ€ผ+ๅˆฉๆฏๅ–ๅ›ž็ป™ๅ…ฌๅธ
+
+ๅ…ฌๅธๅบ”ๅฏน:
+1. ไธ‹ไฟฎ่ฝฌ่‚กไปท โ†’ ้ฟๅ…ๅ›žๅ”ฎ
+2. ๆ‹‰ๅ‡่‚กไปท โ†’ ้ฟๅ…่งฆๅ‘ๆกไปถ
+3. ๆŽฅๅ—ๅ›žๅ”ฎ โ†’ ๆŽ้’ฑ่ฟ˜ๅ€บ
+
+ๆŠ•่ต„่€…็ญ–็•ฅ:
+- ๅœจๅ›žๅ”ฎๆœŸๆŒๆœ‰็บฏๅ€บไปทๅ€ผ้™„่ฟ‘็š„่ฝฌๅ€บ โ†’ ไธ‹ๆœ‰ๅ›žๅ”ฎไฟๅบ•
+- ไธ‹ไฟฎ้ข„ๆœŸ โ†’ ่ตšไธ‹ไฟฎๆ”ถ็›Š
+```
+
+## ๅŒไฝŽ็ญ–็•ฅ
+
+### ็ญ–็•ฅ้€ป่พ‘
+
+```
+ๅŒไฝŽๅ€ผ = ่ฝฌๅ€บไปทๆ ผ + ่ฝฌ่‚กๆบขไปท็އ ร— 100
+
+ๅŒไฝŽๅ€ผ่ถŠไฝŽ โ†’ ไปทๆ ผไฝŽ + ๆบขไปท็އไฝŽ โ†’ ๆ€งไปทๆฏ”้ซ˜
+
+็ญ›้€‰ๆกไปถ:
+1. ๅŒไฝŽๅ€ผ < 130๏ผˆไธฅๆ ผ๏ผ‰ๆˆ– < 150๏ผˆๅฎฝๆพ๏ผ‰
+2. ่ฝฌๅ€บไปทๆ ผ < 115๏ผˆๅฎ‰ๅ…จ๏ผ‰
+3. ่ฝฌ่‚กๆบขไปท็އ < 30%๏ผˆๅผนๆ€ง๏ผ‰
+4. ๅ‰ฉไฝ™ๆœŸ้™ > 1ๅนด๏ผˆ้ฟๅ…ๅˆฐๆœŸๅŽ‹ๅŠ›๏ผ‰
+5. ไฟก็”จ่ฏ„็บง โ‰ฅ AA-๏ผˆ้ฟๅ…ไฟก็”จ้ฃŽ้™ฉ๏ผ‰
+```
+
+### ๅŒไฝŽ้€‰ๅ€บ็คบไพ‹
+
+```markdown
+### ๅŒไฝŽๆŽ’ๅ Top 10
+
+| ๆŽ’ๅ | ่ฝฌๅ€บๅ | ไปทๆ ผ | ๆบขไปท็އ | ๅŒไฝŽๅ€ผ | ่ฏ„็บง | ๅ‰ฉไฝ™ๅนด้™ |
+|------|--------|------|--------|--------|------|---------|
+| 1 | XX่ฝฌๅ€บ | 105.2 | 12.3% | 117.5 | AA | 3.2ๅนด |
+| 2 | YY่ฝฌๅ€บ | 108.5 | 15.6% | 124.1 | AA | 2.8ๅนด |
+| ... | ... | ... | ... | ... | ... | ... |
+```
+
+### ๅŒไฝŽ็ญ–็•ฅๅ›žๆต‹ๆก†ๆžถ
+
+```python
+class ConvertibleBondEngine:
+ """ๅŒไฝŽ็ญ–็•ฅไฟกๅทๅผ•ๆ“Ž"""
+ def generate(self, data_map):
+ # ๆฏๆœˆๆœซ่ฎก็ฎ—ๅŒไฝŽๅ€ผ
+ # ้€‰ Top N ็ญ‰ๆƒ้…็ฝฎ
+ # ไธ‹ๆœˆๅˆ่ฐƒไป“
+ pass
+```
+
+**ๅކๅฒ่กจ็Žฐๅ‚่€ƒ**๏ผˆA่‚กๅฏ่ฝฌๅ€บ๏ผ‰๏ผš
+- ๅนดๅŒ–ๆ”ถ็›Š๏ผš10-15%
+- ๆœ€ๅคงๅ›žๆ’ค๏ผš-8% ~ -15%
+- Sharpe๏ผš1.0-1.5
+- ๅ…ณ้”ฎ้ฃŽ้™ฉ๏ผšไฟก็”จ้ฃŽ้™ฉ๏ผˆๅฐ็›˜่ฝฌๅ€บ่ฟ็บฆ๏ผ‰
+
+## ่ฝฌๅ€บ่ฝฎๅŠจ็ญ–็•ฅ
+
+### ่ฝฎๅŠจ็ปดๅบฆ
+
+| ็ปดๅบฆ | ๆŒ‡ๆ ‡ | ไฟกๅท |
+|------|------|------|
+| ไปทๆ ผ | ่ฝฌๅ€บไปทๆ ผ | <110่ถ…ไพฟๅฎœ, 110-120ๅˆ็†, >130ๅ่ดต |
+| ๅผนๆ€ง | ่ฝฌ่‚กๆบขไปท็އ | <10%้ซ˜ๅผนๆ€ง, 10-30%ไธญ็ญ‰, >50%็บฏๅ€บ |
+| ๅฎ‰ๅ…จ | ็บฏๅ€บไปทๅ€ผ/ไปทๆ ผ | >0.9ๅฎ‰ๅ…จ่พน้™…้ซ˜ |
+| ไธ‹ไฟฎ | ไธ‹ไฟฎๆฆ‚็އ | ๅคง่‚กไธœๆŒไป“+ๆŽฅ่ฟ‘่งฆๅ‘=้ซ˜ๆฆ‚็އ |
+| ๆญฃ่‚ก | ๆญฃ่‚กๅŠจ้‡ | ๆญฃ่‚ก่ถ‹ๅŠฟๅ‘ๅฅฝ=ๅผนๆ€งๆฅๆบ |
+
+### ่ฝฎๅŠจๆต็จ‹
+
+```
+1. ๅ…จๅธ‚ๅœบ็ญ›้€‰๏ผˆๅ‰”้™ค: ๅทฒ้€€ๅธ‚/ๅทฒๅ…ฌๅ‘Šๅผบ่ตŽ/่ฏ„็บง<A+๏ผ‰
+2. ่ฎก็ฎ—ๅ„็ปดๅบฆๅพ—ๅˆ†
+3. ็ปผๅˆๆ‰“ๅˆ†ๆŽ’ๅ
+4. ้€‰ Top 15-20 ๅช็ญ‰ๆƒ้…็ฝฎ
+5. ๆฏๆœˆ่ฐƒไป“ไธ€ๆฌก
+```
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+```markdown
+## ๅฏ่ฝฌๅ€บๅˆ†ๆž: [่ฝฌๅ€บๅ็งฐ/ไปฃ็ ]
+
+### ๅŸบๆœฌไฟกๆฏ
+| ๆŒ‡ๆ ‡ | ๅ€ผ |
+|------|-----|
+| ๅฝ“ๅ‰ไปท | 112.50 |
+| ่ฝฌ่‚กไปทๅ€ผ | 98.30 |
+| ็บฏๅ€บไปทๅ€ผ | 92.15 |
+| ่ฝฌ่‚กๆบขไปท็އ | 14.4% |
+| ็บฏๅ€บๆบขไปท็އ | 22.1% |
+| ๅŒไฝŽๅ€ผ | 126.9 |
+| ๅ‰ฉไฝ™ๅนด้™ | 3.5ๅนด |
+| ่ฏ„็บง | AA |
+
+### ไธ‰็ปดไผฐๅ€ผ
+- **ๅ€บๅบ•ไฟๆŠค**: ็บฏๅ€บไปทๅ€ผ92.15, ไธ‹่ทŒ็ฉบ้—ด็บฆ18%ๆœ‰ไฟๆŠค
+- **่‚กๆ€งๅผนๆ€ง**: ๆบขไปท็އ14.4%ๅไฝŽ, ๆญฃ่‚กไธŠๆถจ10%่ฝฌๅ€บ้ข„่ฎกๆถจ8%
+- **ๆœŸๆƒไปทๅ€ผ**: ่ฝฌๅ€บไปทๆ ผ-max(็บฏๅ€บ,่ฝฌ่‚ก)=14.2, ๅˆ็†
+
+### ๆกๆฌพๅšๅผˆ
+- **ไธ‹ไฟฎๆฆ‚็އ**: ไธญ๏ผˆๆญฃ่‚ก่ทไธ‹ไฟฎ่งฆๅ‘ไปท่ฟ˜ๆœ‰12%็ฉบ้—ด๏ผ‰
+- **ๅผบ่ตŽ้ฃŽ้™ฉ**: ไฝŽ๏ผˆๆญฃ่‚ก่ทๅผบ่ตŽ็บฟ่ฟ˜ๆœ‰35%๏ผ‰
+- **ๅ›žๅ”ฎไฟๆŠค**: ๅฐšๆœช่ฟ›ๅ…ฅๅ›žๅ”ฎๆœŸ
+
+### ๆŠ•่ต„ๅปบ่ฎฎ
+ๅŒไฝŽๅ€ผ126.9๏ผŒๅฑžไบŽๆ€งไปทๆฏ”ๅŒบ้—ดใ€‚ๅปบ่ฎฎ...
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **ไฟก็”จ้ฃŽ้™ฉๆ˜ฏๆœ€ๅคง้›ท**๏ผšA่‚กๅทฒๅ‡บ็Žฐๅฏ่ฝฌๅ€บ่ฟ็บฆๆกˆไพ‹๏ผˆๆœ็‰น่ฝฌๅ€บ็ญ‰๏ผ‰๏ผŒไฝŽ่ฏ„็บง่ฝฌๅ€บ่ฐจๆ…Ž
+2. **ๅผบ่ตŽๅ€’่ฎกๆ—ถ่ฆ็›ฏ็ดง**๏ผšๅ…ฌๅ‘Šๅผบ่ตŽๅŽไธ่ฝฌ่‚ก/ไธๅ–ๅ‡บไผšๅทจไบ๏ผŒๆฏๅคฉๆฃ€ๆŸฅๅผบ่ตŽๅ…ฌๅ‘Š
+3. **ๆตๅŠจๆ€ง้ฃŽ้™ฉ**๏ผšๅฐ็›˜่ฝฌๅ€บๆ—ฅๆˆไบค้ขๅฏ่ƒฝไธ่ถณ100ไธ‡๏ผŒๅคง่ต„้‡‘่ฟ›ๅ‡บๅ›ฐ้šพ
+4. **ๆกๆฌพๅทฎๅผ‚**๏ผšๆฏๅช่ฝฌๅ€บๆกๆฌพ็ป†่Š‚ไธๅŒ๏ผˆไธ‹ไฟฎๆฏ”ไพ‹ใ€ๅผบ่ตŽๅคฉๆ•ฐ๏ผ‰๏ผŒๅฟ…้กป้€ๅชๆ ธๆŸฅ
+5. **ๅˆฐๆœŸไธ่ฝฌ่‚ก**๏ผšๅฆ‚ๆžœๅˆฐๆœŸๆฒก่ฝฌ่‚ก๏ผŒๅชๆ‹ฟๅ›ž้ขๅ€ผ+ๅˆฉๆฏ๏ผˆ110ๅทฆๅณ๏ผ‰๏ผŒ้ซ˜ไปทไนฐๅ…ฅไผšไบ
+6. **ๆ•ฐๆฎ่Žทๅ–**๏ผšๅฏ่ฝฌๅ€บๆ•ฐๆฎ้œ€้€š่ฟ‡tushare็š„ๅฏ่ฝฌๅ€บๆŽฅๅฃ่Žทๅ–๏ผŒOHLCVๆ•ฐๆฎๅฏ็”จๆ ‡ๅ‡†ๆŽฅๅฃ
+7. **ๅ›žๆต‹ๅฑ€้™**๏ผšๅฏ่ฝฌๅ€บๅ›žๆต‹้œ€่ฆ่ฝฌ่‚กไปทใ€ๅผบ่ตŽ/ๅ›žๅ”ฎไฟกๆฏ็ญ‰้ขๅค–ๆ•ฐๆฎ๏ผŒๆฏ”่‚ก็ฅจๅ›žๆต‹ๅคๆ‚
diff --git a/agent/src/skills/corporate-events/SKILL.md b/agent/src/skills/corporate-events/SKILL.md
new file mode 100644
index 000000000..0df5ee849
--- /dev/null
+++ b/agent/src/skills/corporate-events/SKILL.md
@@ -0,0 +1,267 @@
+---
+name: corporate-events
+description: ๅ…ฌๅธไบ‹ไปถ้ฉฑๅŠจๅˆ†ๆž๏ผšๅนถ่ดญๅฅ—ๅˆฉไปทๅทฎ่ฎก็ฎ—ใ€ๅคง่‚กไธœๅขžๅ‡ๆŒไฟกๅทใ€่‚กๆƒๆฟ€ๅŠฑ่งฃ่ฏปใ€ๅฎšๅขž้…่‚กๅฝฑๅ“่ฏ„ไผฐใ€A่‚กST/้€€ๅธ‚้ข„่ญฆ
+---
+
+# ๅ…ฌๅธไบ‹ไปถ้ฉฑๅŠจๅˆ†ๆž
+
+## ๆฆ‚่ฟฐ
+
+้€š่ฟ‡ๅ…ฌๅธๅฑ‚้ข็š„้‡ๅคงไบ‹ไปถ๏ผˆๅนถ่ดญใ€ๅขžๅ‡ๆŒใ€่‚กๆƒๆฟ€ๅŠฑใ€ๅ†่ž่ต„็ญ‰๏ผ‰ๆž„ๅปบไบ‹ไปถ้ฉฑๅŠจไบคๆ˜“็ญ–็•ฅใ€‚ๆ ธๅฟƒ้€ป่พ‘๏ผšไบ‹ไปถๅ…ฌๅ‘ŠๅŒ…ๅซๅขž้‡ไฟกๆฏ๏ผŒๅธ‚ๅœบๆถˆๅŒ–้œ€่ฆๆ—ถ้—ด๏ผŒไบ‹ไปถๅ‰ๅŽๅญ˜ๅœจ็ณป็ปŸๆ€ง่ถ…้ขๆ”ถ็›Šใ€‚
+
+้€‚็”จๅœบๆ™ฏ๏ผš
+- ๅนถ่ดญ้‡็ป„ๅฅ—ๅˆฉ๏ผˆA่‚กๅ€Ÿๅฃณ/่ต„ไบงๆณจๅ…ฅ/ๅธๆ”ถๅˆๅนถ๏ผ‰
+- ๅคง่‚กไธœ/้ซ˜็ฎกๅขžๅ‡ๆŒ็š„ไฟกๅทๆๅ–
+- ่‚กๆƒๆฟ€ๅŠฑ็š„่กŒๆƒไปทไธŽ่งฃ้”ๆกไปถๅˆ†ๆž
+- ๅฎšๅขž/้…่‚ก/ๅฏไบคๅ€บ็š„ๆŠ˜ไปทๅฅ—ๅˆฉ
+- ST/*ST/้€€ๅธ‚้ข„่ญฆ็š„่ง„้ฟไธŽๆŠ•ๆœบ
+
+## ๆ ธๅฟƒๆฆ‚ๅฟต
+
+### ๅนถ่ดญๅฅ—ๅˆฉ๏ผˆMerger Arbitrage๏ผ‰
+
+**A่‚กๅนถ่ดญ็‰น่‰ฒ**๏ผš
+| ็ฑปๅž‹ | ้ข‘็އ | ่ถ…้ขๆ”ถ็›Š | ้ฃŽ้™ฉ |
+|------|------|----------|------|
+| ๅ€ŸๅฃณไธŠๅธ‚ | ไฝŽ(ๆณจๅ†ŒๅˆถๅŽๅ‡ๅฐ‘) | ้ซ˜(30-100%) | ๆž้ซ˜(ๅฎกๆ‰นๅคฑ่ดฅ) |
+| ่ต„ไบงๆณจๅ…ฅ | ไธญ | ไธญ(10-30%) | ้ซ˜(ไผฐๅ€ผ/ๅฎกๆ‰น) |
+| ๅธๆ”ถๅˆๅนถ | ไฝŽ | ไฝŽ(5-15%) | ไฝŽ(ๅทฒ่พพๅ่ฎฎ) |
+| ่ฆ็บฆๆ”ถ่ดญ | ไฝŽ | ไฝŽ(3-8%) | ๆœ€ไฝŽ |
+
+**ไปทๅทฎ่ฎก็ฎ—**๏ผš
+```
+ๅนถ่ดญๅฅ—ๅˆฉไปทๅทฎ = (่ฆ็บฆไปท - ๅฝ“ๅ‰ไปท) / ๅฝ“ๅ‰ไปท
+ๅนดๅŒ–ๆ”ถ็›Š = ไปทๅทฎ / ้ข„่ฎกๅฎŒๆˆๆ—ถ้—ด(ๅนด)
+
+็คบไพ‹:
+ Aๅ…ฌๅธ่ฆ็บฆๆ”ถ่ดญBๅ…ฌๅธ, ่ฆ็บฆไปท25ๅ…ƒ, Bๅฝ“ๅ‰่‚กไปท23.5ๅ…ƒ
+ ไปทๅทฎ = (25 - 23.5) / 23.5 = 6.38%
+ ้ข„่ฎก3ไธชๆœˆๅฎŒๆˆ, ๅนดๅŒ– = 6.38% ร— 4 = 25.5%
+
+้ฃŽ้™ฉ่ฏ„ไผฐ:
+ ๅฎกๆ‰น็กฎๅฎšๆ€ง: ๅทฒ่Žทๅ•†ๅŠก้ƒจ/่ฏ็›‘ไผš้ข„ๅฎก โ†’ ้ซ˜็กฎๅฎšๆ€ง
+ ๅฏนไปทๆ–นๅผ: ็Žฐ้‡‘ > ่‚ก็ฅจ+็Žฐ้‡‘ > ็บฏ่‚ก็ฅจ (็กฎๅฎšๆ€ง้€’ๅ‡)
+ ไบคๆ˜“ๆกไปถ: ๆ˜ฏๅฆๆœ‰MACๆกๆฌพ(้‡ๅคงไธๅˆฉๅ˜ๅŒ–)
+```
+
+**A่‚กๅนถ่ดญๅฅ—ๅˆฉ่ฆ็‚น**๏ผš
+- ๅœ็‰Œๅˆถๅบฆๆ”น้ฉๅŽ๏ผŒๅค็‰Œ้ฆ–ๆ—ฅๆถจ่ทŒๅน…ๅ—้™๏ผˆๅˆ›ไธšๆฟ/็ง‘ๅˆ›ๆฟ20%๏ผ‰
+- ๅ…ณๆณจ"็ญนๅˆ’้‡ๅคง่ต„ไบง้‡็ป„"ๅ…ฌๅ‘Š โ†’ ๅœ็‰Œ โ†’ ๅค็‰Œ็š„่Š‚ๅฅ
+- ๅฎกๆ‰น้“พ๏ผš่‘ฃไบ‹ไผš โ†’ ่‚กไธœๅคงไผš โ†’ ่ฏ็›‘ไผš๏ผˆๆฏไธ€ๆญฅ้ƒฝๆ˜ฏ้ฃŽ้™ฉ็‚น๏ผ‰
+
+### ๅˆ†ๆ‹†/Spin-off
+
+```
+A่‚กๅˆ†ๆ‹†ไธŠๅธ‚ๆกไปถ:
+ - ไธŠๅธ‚ๆปก3ๅนด
+ - ๅญๅ…ฌๅธๅ‡€ๅˆฉๆถฆ โ‰ฅ ๆฏๅ…ฌๅธๅ‡€ๅˆฉๆถฆ10%
+ - ๅญๅ…ฌๅธๅ‡€่ต„ไบง โ‰ค ๆฏๅ…ฌๅธๅ‡€่ต„ไบง30%
+
+ไบคๆ˜“็ญ–็•ฅ:
+ ้ข„ๆกˆๅ…ฌๅ‘Š โ†’ ไนฐๅ…ฅๆฏๅ…ฌๅธ๏ผˆๅˆ†ๆ‹†้ข„ๆœŸๆๅ‡ไผฐๅ€ผ๏ผ‰
+ ๅญๅ…ฌๅธไธŠๅธ‚ โ†’ ๆ‹ฉๆœบๅ–ๅ‡บๆฏๅ…ฌๅธ๏ผˆๅˆฉๅฅฝๅ…‘็Žฐ๏ผ‰
+
+ๅฎžไพ‹:
+ 2023ๅนดๆŸ็ง‘ๆŠ€ๅ…ฌๅธๅˆ†ๆ‹†ๅญๅ…ฌๅธ่‡ณ็ง‘ๅˆ›ๆฟ
+ ้ข„ๆกˆๅ…ฌๅ‘ŠๅŽๆฏๅ…ฌๅธ20ๆ—ฅๆถจๅน…18%
+ ๅญๅ…ฌๅธไธŠๅธ‚้ฆ–ๆ—ฅๅŽๆฏๅ…ฌๅธๅ›ž่ฐƒ8%
+```
+
+### ๅคง่‚กไธœๅขžๅ‡ๆŒไฟกๅท
+
+**ๅขžๆŒไฟกๅท**๏ผˆ็œ‹ๅคš๏ผ‰๏ผš
+| ไฟกๅทๅผบๅบฆ | ๆกไปถ | ่ถ…้ขๆ”ถ็›Š(20ๆ—ฅ) |
+|----------|------|----------------|
+| ๅผบ | ๆŽง่‚ก่‚กไธœๅขžๆŒ > ๆ€ป่‚กๆœฌ1% | +8~12% |
+| ไธญ | ้ซ˜็ฎก้›†ไฝ“ๅขžๆŒ(โ‰ฅ3ไบบ) | +5~8% |
+| ๅผฑ | ๅ•ไธ€่‘ฃไบ‹/็›‘ไบ‹ๅขžๆŒ | +2~4% |
+
+**ๅ‡ๆŒไฟกๅท**๏ผˆ็œ‹็ฉบ๏ผ‰๏ผš
+| ไฟกๅทๅผบๅบฆ | ๆกไปถ | ่ถ…้ขๆ”ถ็›Š(20ๆ—ฅ) |
+|----------|------|----------------|
+| ๅผบ | ๆŽง่‚ก่‚กไธœ่ฎกๅˆ’ๅ‡ๆŒ > ๆ€ป่‚กๆœฌ2% | -5~10% |
+| ไธญ | ่งฃ็ฆๅŽ้ฆ–ๆฌกๅ‡ๆŒ | -3~6% |
+| ๅผฑ | ้ซ˜็ฎก็ฆป่Œๅ‡ๆŒ | -2~4% |
+
+```
+ๅ…ณ้”ฎ็ช—ๅฃๆœŸ:
+ - ๅ…ฌๅ‘Šๅ‰6ไธชๆœˆ: ๅ†…ๅน•ไบคๆ˜“้ซ˜ๅ‘ๅŒบ๏ผŒๅผ‚ๅธธๆ”พ้‡ๅฏ่ƒฝๆ˜ฏๅ…ˆ็Ÿฅ่ต„้‡‘
+ - ๅ…ฌๅ‘ŠๅŽ3ๆ—ฅ: ไฟกๆฏๅ†ฒๅ‡ปๆœ€ๅคง
+ - ๅ…ฌๅ‘ŠๅŽ20ๆ—ฅ: ่ถ…้ขๆ”ถ็›ŠๅŸบๆœฌๆถˆๅŒ–
+
+่ฟ‡ๆปค่ง„ๅˆ™:
+ ๆŽ’้™ค: ่ขซๅŠจๅ‡ๆŒ(่ดจๆŠผๅนณไป“)ใ€ๅคงๅฎ—ไบคๆ˜“ๆŠ˜ไปทๅ‡ๆŒ(ๅฏ่ƒฝๆ˜ฏๆขๆ‰‹ไธๆ˜ฏ็œ‹็ฉบ)
+ ไฟ็•™: ็ซžไปทๅ‡ๆŒ(็œŸๆญฃ็œ‹็ฉบ)ใ€ๅขžๆŒๅŽ็ŸญๆœŸๅ†ๅ‡ๆŒ(ๅๅ‘ไฟกๅท)
+```
+
+### ่‚กๆƒๆฟ€ๅŠฑ่งฃ่ฏป
+
+```
+ๅ…ณ้”ฎ่ฆ็ด :
+ 1. ่กŒๆƒไปท/ๆŽˆไบˆไปท: ็›ธๅฏนๅฝ“ๅ‰่‚กไปท็š„ๆŠ˜ไปท็އ
+ ๆŠ˜ไปท > 50% โ†’ ๆฟ€ๅŠฑๅŠ›ๅบฆๅคงไฝ†ๅฏ่ƒฝๆ‘Š่–„ไธฅ้‡
+ ๆŠ˜ไปท < 20% โ†’ ็ฎก็†ๅฑ‚ๅฏน่‚กไปทๆœ‰ไฟกๅฟƒ
+
+ 2. ่งฃ้”ๆกไปถ: ไธš็ปฉ็›ฎๆ ‡ๆ˜ฏๅฆๆœ‰ๆŒ‘ๆˆ˜ๆ€ง
+ ไพ‹: "ๆœชๆฅ3ๅนดๅ‡€ๅˆฉๆถฆๅคๅˆๅขž้•ฟ็އโ‰ฅ20%"
+ vs ่กŒไธšๅนณๅ‡ๅขž้•ฟ็އ10% โ†’ ๆกไปถ่พƒ้ซ˜ โ†’ ๆญฃ้ขไฟกๅท
+
+ 3. ๆฟ€ๅŠฑๅฏน่ฑก: ๆ ธๅฟƒๆŠ€ๆœฏไบบๅ‘˜ๅ ๆฏ”
+ ๆ ธๅฟƒๆŠ€ๆœฏไบบๅ‘˜ > 50% โ†’ ็ป‘ๅฎšๆ ธๅฟƒไบบๆ‰ โ†’ ๆญฃ้ข
+ ็บฏ็ฎก็†ๅฑ‚ โ†’ ๅฏ่ƒฝๆ˜ฏๅˆฉ็›Š่พ“้€
+
+ 4. ่‚กไปฝๆฅๆบ:
+ ๅฎšๅ‘ๅขžๅ‘ โ†’ ๆ‘Š่–„ๆฏ่‚กๆ”ถ็›Š
+ ๅ›ž่ดญ โ†’ ไธๆ‘Š่–„๏ผŒๆ›ดๆญฃ้ข
+
+ 5. ็ญ‰ๅพ…ๆœŸ/่งฃ้”ๆœŸ:
+ ็ญ‰ๅพ…ๆœŸ1ๅนด+่งฃ้”ๆœŸ3ๅนด โ†’ ๆ ‡ๅ‡†ๆ–นๆกˆ
+ ็ญ‰ๅพ…ๆœŸ็Ÿญ+่งฃ้”ๆกไปถไฝŽ โ†’ ๅˆฉ็›Š่พ“้€ๅซŒ็–‘
+
+A่‚กๅฎž่ฏ:
+ ๆฟ€ๅŠฑๆ–นๆกˆๅ…ฌๅ‘ŠๅŽ60ๆ—ฅๅนณๅ‡่ถ…้ขๆ”ถ็›Š: +6.2%
+ ่งฃ้”ๆกไปถ่ถ…้ข„ๆœŸ็š„: +10.5%
+ ่กŒๆƒไปทๆŽฅ่ฟ‘ๅฝ“ๅ‰ไปท็š„: +8.3%
+ ้ฆ–ๆฌกๆŽจๅ‡บๆฟ€ๅŠฑ > ๅ†ๆฌกๆŽจๅ‡บ: ่ถ…้ขๆ”ถ็›Šๆ›ด้ซ˜
+```
+
+## ๅˆ†ๆžๆก†ๆžถ
+
+### 1. ๅฎšๅขž/้…่‚กไบ‹ไปถ
+
+**ๅฎšๅขž๏ผˆๅฎšๅ‘ๅขžๅ‘๏ผ‰**๏ผš
+```
+ไบ‹ไปถๆ—ถ้—ด็บฟ:
+ ้ข„ๆกˆๅ…ฌๅ‘Š โ†’ ่‚กไธœๅคงไผš โ†’ ่ฏ็›‘ไผšๅฎกๆ‰น โ†’ ๅ‘่กŒ โ†’ ่งฃ็ฆ
+
+ไบคๆ˜“่Š‚็‚น:
+ 1. ้ข„ๆกˆๅ…ฌๅ‘Šๆ—ฅ: ๅ…ณๆณจๆŠ˜ไปท็އๅ’Œๅ‹Ÿ่ต„็”จ้€”
+ ๆŠ˜ไปท็އ = (ๅฝ“ๅ‰ไปท - ๅ‘่กŒๅบ•ไปท) / ๅฝ“ๅ‰ไปท
+ ๆŠ˜ไปท็އ > 20% โ†’ ๅˆฉๅฅฝ๏ผˆๆœบๆž„ๆ„ฟๆ„ๆŠ˜ไปทไนฐๅ…ฅ = ็œ‹ๅฅฝ๏ผ‰
+
+ 2. ๅ‘่กŒๅ‰: ๅฎšๅขžๅฏน่ฑกๆœ‰ๅŠจๅŠ›็ปดๆŠค่‚กไปท๏ผˆ้”ๅฎšไปทๆ ผ๏ผ‰
+ ๅ…ฌๅ‘ŠๅŽๅˆฐๅ‘่กŒๅ‰้€šๅธธๆœ‰ๆญฃ่ถ…้ขๆ”ถ็›Š
+
+ 3. ่งฃ็ฆๆ—ฅ: ๅฎšๅขž่‚กไปฝ่งฃ็ฆ โ†’ ๅ–ๅŽ‹
+ ่งฃ็ฆๅ‰20ๆ—ฅๅนณๅ‡่ทŒๅน…3-5%
+ ่งฃ็ฆๅŽ20ๆ—ฅ็ปง็ปญๆ‰ฟๅŽ‹
+
+ๅ‹Ÿ่ต„็”จ้€”่ฏ„ๅˆ†:
+ ๅนถ่ดญไผ˜่ดจ่ต„ไบง: +3ๅˆ†
+ ๆ‰ฉไบง/ๆ–ฐ้กน็›ฎ: +2ๅˆ†
+ ่กฅๅ……ๆตๅŠจ่ต„้‡‘: 0ๅˆ† (ไธญๆ€งๅ่ดŸ)
+ ๅฟ่ฟ˜ๅ€บๅŠก: -1ๅˆ†
+ ๅคง่‚กไธœ่ฎค่ดญๆฏ”ไพ‹ > 50%: +2ๅˆ† (ๅˆฉ็›Š็ป‘ๅฎš)
+```
+
+**ๅฏไบคๅ€บ๏ผˆEB๏ผ‰**๏ผš
+```
+ๅฏไบคๆขๅ€บๅˆธ = ๅคง่‚กไธœไปฅๆŒๆœ‰่‚กไปฝไธบๆ‹…ไฟๅ‘่กŒ็š„ๅ€บๅˆธ
+ ๆข่‚กไปท = ๅ‘่กŒๆ—ถ็บฆๅฎš็š„ๆข่‚กไปทๆ ผ
+ ๅฝ“่‚กไปท > ๆข่‚กไปท ร— 130% โ†’ ๆŠ•่ต„่€…ๅ€พๅ‘ๆข่‚ก โ†’ ็›ธๅฝ“ไบŽๅคง่‚กไธœๅ‡ๆŒ
+ ๅฝ“่‚กไปท < ๆข่‚กไปท ร— 70% โ†’ ๆŠ•่ต„่€…ๆŒๆœ‰ๅ€บๅˆธ โ†’ ๅคง่‚กไธœ็”จไฝŽๅˆฉ็އ่ž่ต„
+
+ไบคๆ˜“ไฟกๅท:
+ ๅ‘่กŒๅฏไบคๅ€บ = ๅคง่‚กไธœๅฏ่ƒฝ่ฎกๅˆ’ๅ‡ๆŒ๏ผŒไฝ†ๆฏ”็›ดๆŽฅๅ‡ๆŒๆ›ดๆธฉๅ’Œ
+ ไธด่ฟ‘ๆข่‚กๆœŸ+่‚กไปทๆŽฅ่ฟ‘ๆข่‚กไปท โ†’ ๅ…ณๆณจๅคง่‚กไธœๆ˜ฏๅฆๆœ‰ๆ„่ฎฉ่‚กไปท็ช็ ดๆข่‚กไปท
+```
+
+### 2. ST/้€€ๅธ‚้ข„่ญฆ
+
+**STๆ ‡่ฎฐ่ง„ๅˆ™๏ผˆ2024ๆ–ฐ่ง„๏ผ‰**๏ผš
+```
+*ST (้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบ):
+ - ๆœ€่ฟ‘ไธ€ๅนดๅ‡€ๅˆฉๆถฆไธบ่ดŸ + ่ฅๆ”ถ < 3ไบฟ๏ผˆไธปๆฟ๏ผ‰/ 1ไบฟ๏ผˆๅˆ›ไธšๆฟ๏ผ‰
+ - ๅฎก่ฎกๆ„่ง: ๆ— ๆณ•่กจ็คบ/ๅฆๅฎš
+ - ่ดขๅŠก้€ ๅ‡
+
+ST (ๅ…ถไป–้ฃŽ้™ฉ่ญฆ็คบ):
+ - ่ต„้‡‘ๅ ็”จ
+ - ่ฟ่ง„ๆ‹…ไฟ
+ - ๅ†…ๆŽงๅฎก่ฎกๅฆๅฎšๆ„่ง
+
+้€€ๅธ‚ๆกไปถ:
+ - ่ฟž็ปญ20ไธชไบคๆ˜“ๆ—ฅๆ”ถ็›˜ๅธ‚ๅ€ผ < 3ไบฟ๏ผˆไธปๆฟ๏ผ‰/ 5ไบฟ๏ผˆๅˆ›ไธšๆฟ/็ง‘ๅˆ›ๆฟ๏ผ‰
+ - ่ฟž็ปญ20ไธชไบคๆ˜“ๆ—ฅ่‚กไปท < 1ๅ…ƒ
+ - ่ดขๅŠก็ฑป: *STๅŽไธ‹ไธ€ๅนดไปไธ่พพๆ ‡
+```
+
+**ไบคๆ˜“็ญ–็•ฅ**๏ผš
+```
+่ง„้ฟ็ญ–็•ฅ๏ผˆๆŽจ่๏ผ‰:
+ - ๆŒไป“ไธญๆŽ’้™คๆ‰€ๆœ‰ST/*ST
+ - ๆŽ’้™ค "ๆœ€่ฟ‘ไธ€ๅญฃๅบฆไบๆŸ + ่ฅๆ”ถไธ‹ๆป‘ > 30%" ็š„ๆฝœๅœจST่‚ก
+ - ๆŽ’้™คๅฎก่ฎกๆœบๆž„ๅ‡บๅ…ทไฟ็•™ๆ„่ง็š„
+
+ๆŠ•ๆœบ็ญ–็•ฅ๏ผˆ้ซ˜้ฃŽ้™ฉ๏ผŒไป…ไพ›็ ”็ฉถ๏ผ‰:
+ ๆ‘˜ๅธฝๆฆ‚ๅฟต: *STๅ…ฌๅธไธš็ปฉๆ‰ญไบ โ†’ ็”ณ่ฏทๆ‘˜ๅธฝ โ†’ ๆถจๅœๆฝฎ
+ ๆกไปถ็ญ›้€‰:
+ - ๆœ€่ฟ‘ไธ€ๅญฃๅบฆ็›ˆๅˆฉ๏ผˆๆ‰ญไบๆ‹็‚น๏ผ‰
+ - ๆœ‰ๅฎž่ดจๆ€ง่ต„ไบง้‡็ป„/ๅ€บๅŠก้‡็ป„ๆ–นๆกˆ
+ - ๅธ‚ๅ€ผ > 10ไบฟ๏ผˆ่ฟœ็ฆป้ขๅ€ผ้€€ๅธ‚็บฟ๏ผ‰
+ ้ฃŽๆŽง: ไป“ไฝ < 5%, ๆญขๆŸ -15%
+```
+
+### 3. ไบ‹ไปถๆ—ฅๅކไธŽไบคๆ˜“ๆ—ถ้—ด็ช—
+
+```
+T-30 ่‡ณ T-1๏ผˆไบ‹ๅ‰็ช—ๅฃ๏ผ‰:
+ ๅขžๆŒ/ๅ›ž่ดญ้ข„ๆกˆ โ†’ ้€ๆญฅๅปบไป“
+ ๅนถ่ดญ้ข„ๆกˆ โ†’ ่ฏ„ไผฐ็กฎๅฎšๆ€งๅŽๅปบไป“
+
+T๏ผˆๅ…ฌๅ‘Šๆ—ฅ๏ผ‰:
+ ๅˆฉๅฅฝไบ‹ไปถ โ†’ ้›†ๅˆ็ซžไปท่ฟฝๅ…ฅ๏ผˆๆณจๆ„ๆถจๅœๅฐๅ•้‡๏ผ‰
+ ๅˆฉ็ฉบไบ‹ไปถ โ†’ ๅผ€็›˜ๅ‰ๆŒ‚ๅ•ๅ–ๅ‡บ
+
+T+1 ่‡ณ T+20๏ผˆไบ‹ๅŽ็ช—ๅฃ๏ผ‰:
+ ไฟกๆฏ้€ๆญฅๆถˆๅŒ–๏ผŒ่ถ…้ขๆ”ถ็›Š้€’ๅ‡
+ ๅคงไบ‹ไปถ๏ผˆๅนถ่ดญ/้‡็ป„๏ผ‰: ๆถˆๅŒ–ๆœŸๅฏ่พพ60ๅคฉ
+ ๅฐไบ‹ไปถ๏ผˆๅขžๆŒ/ๅ›ž่ดญ๏ผ‰: 20ๅคฉๅŸบๆœฌๆถˆๅŒ–
+
+T+N๏ผˆ้•ฟๆœŸๆ•ˆๅบ”๏ผ‰:
+ ่‚กๆƒๆฟ€ๅŠฑ่งฃ้”ๆœŸๅ‰ๅŽ: ็ฎก็†ๅฑ‚ๆœ‰ๅŠจๅŠ›็ปดๆŠค่‚กไปท
+ ๅฎšๅขž่งฃ็ฆๆ—ฅ: ็กฎๅฎšๆ€งๅ–ๅŽ‹
+```
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+ไบ‹ไปถ้ฉฑๅŠจๅˆ†ๆžๆŠฅๅ‘Š๏ผš
+```
+=== ไบ‹ไปถๆฆ‚ๅ†ต ===
+ๆ ‡็š„: 000001.SZ ๅนณๅฎ‰้“ถ่กŒ
+ไบ‹ไปถ: ๆŽง่‚ก่‚กไธœๅขžๆŒ่ฎกๅˆ’ๅ…ฌๅ‘Š
+ๆ—ฅๆœŸ: 2026-03-25
+ๅขžๆŒ่ง„ๆจก: 10-20ไบฟๅ…ƒ (ๅ ๆ€ป่‚กๆœฌ0.8%-1.6%)
+
+=== ไฟกๅท่ฏ„ไผฐ ===
+ไฟกๅทๅผบๅบฆ: ๅผบ (ๆŽง่‚ก่‚กไธœ+้‡‘้ขๅคง)
+ๅކๅฒๅ‚่€ƒ: ๅŒ็ฑปไบ‹ไปถ20ๆ—ฅๅนณๅ‡่ถ…้ข+8.2%
+็กฎๅฎšๆ€ง: ้ซ˜ (ๅทฒๅ…ฌๅ‘ŠๅขžๆŒ่ฎกๅˆ’, 6ไธชๆœˆ็ช—ๅฃๆœŸ)
+
+=== ็ญ–็•ฅๅปบ่ฎฎ ===
+ๆ“ไฝœ: ๅ…ฌๅ‘Šๆฌกๆ—ฅๅผ€็›˜ๅปบไป“
+ไป“ไฝ: 5-8% (ๅ•ไบ‹ไปถไธŠ้™)
+ๆŒๆœ‰ๆœŸ: 20-30ไธชไบคๆ˜“ๆ—ฅ
+ๆญขๆŸ: -5% (ไฝŽไบŽๅ…ฌๅ‘Šๆ—ฅๆ”ถ็›˜ไปท5%)
+ๆญข็›ˆ: +12% ๆˆ– ๆŒๆœ‰ๆœŸๆปก
+
+=== ้ฃŽ้™ฉๆ็คบ ===
+- ๅธ‚ๅœบ็ณป็ปŸๆ€งไธ‹่ทŒๅฏ่ƒฝๆŠตๆถˆไบ‹ไปถๆ•ˆๅบ”
+- ๅขžๆŒ่ฟ›ๅบฆไธๅŠ้ข„ๆœŸ โ†’ ๅ…ณๆณจๆœˆๅบฆๅขžๆŒๅ…ฌๅ‘Š
+- ้“ถ่กŒๆฟๅ—ๆ•ดไฝ“ไผฐๅ€ผๅŽ‹ๅˆถ โ†’ ่ถ…้ขๆ”ถ็›Šๅฏ่ƒฝๅไฝŽ
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **ไฟกๆฏๆ—ถๆ•ˆๆ€ง**๏ผšA่‚กๅ…ฌๅ‘Šๅœจไบคๆ˜“ๆ‰€ๅฎ˜็ฝ‘/ๅทจๆฝฎ่ต„่ฎฏ็ฝ‘้ฆ–ๅ‘๏ผŒ็ฌฌไธ‰ๆ–นๅนณๅฐๆœ‰ๅปถ่ฟŸ๏ผŒๅฅ—ๅˆฉ็ช—ๅฃๅฏ่ƒฝๅทฒๅ…ณ้—ญ
+2. **ๅ†…ๅน•ไบคๆ˜“้ฃŽ้™ฉ**๏ผšไบ‹ไปถๅ…ฌๅ‘Šๅ‰็š„ๅผ‚ๅธธ้‡ไปทๅฏ่ƒฝๆ˜ฏๅ†…ๅน•ไบคๆ˜“๏ผŒ่ทŸ้šไป‹ๅ…ฅ้œ€่ฐจๆ…Ž๏ผˆๅฏ่ƒฝ่ขซ็›‘็ฎก่ฐƒๆŸฅ๏ผ‰
+3. **ไบ‹ไปถ่š้›†ๆ•ˆๅบ”**๏ผšๅŒไธ€ๆ ‡็š„ๅคšไธชไบ‹ไปถๅ ๅŠ ๆ—ถไฟกๅทๅขžๅผบ๏ผˆๅขžๆŒ+ๅ›ž่ดญ+ๆฟ€ๅŠฑ = ๅผบไฟกๅท๏ผ‰๏ผŒไฝ†้œ€ๆŽ’้™ค"็ป„ๅˆๆ‹ณๆŠค็›˜"
+4. **ๆณจๅ†Œๅˆถๅฝฑๅ“**๏ผšๅ€ŸๅฃณไธŠๅธ‚ไปทๅ€ผไธ‹้™๏ผŒไผ ็ปŸๅฃณ่ต„ๆบๅฅ—ๅˆฉ็ฉบ้—ดๅคงๅน…ๆ”ถ็ผฉ
+5. **้‡ๅŒ–ๅฏ่Žทๅ–ๆ€ง**๏ผštushare ๆไพ›ๅขžๅ‡ๆŒ/่‚กๆƒๆฟ€ๅŠฑ/ๅฎšๅขžๆ•ฐๆฎๆŽฅๅฃ๏ผŒไฝ†ๅฎžๆ—ถๆ€งไธ่ถณ๏ผˆT+1ๆˆ–ๆ›ดๆ…ข๏ผ‰
+6. **ไป“ไฝๆŽงๅˆถ**๏ผšๅ•ไธ€ไบ‹ไปถ้ฉฑๅŠจ็ญ–็•ฅไป“ไฝไธ่ถ…่ฟ‡10%๏ผŒไบ‹ไปถๅคฑ่ดฅ๏ผˆๅฆ‚ๅนถ่ดญ่ขซๅฆ๏ผ‰ๅฏ่ƒฝๅฏผ่‡ด20%+่ทŒๅน…
+
+## ไพ่ต–
+
+```bash
+pip install pandas numpy
+```
diff --git a/agent/src/skills/correlation-analysis/SKILL.md b/agent/src/skills/correlation-analysis/SKILL.md
new file mode 100644
index 000000000..74014b49d
--- /dev/null
+++ b/agent/src/skills/correlation-analysis/SKILL.md
@@ -0,0 +1,1101 @@
+---
+name: correlation-analysis
+description: Correlation and cointegration analysis โ€” co-movement discovery, deep return-correlation analysis, sector clustering, realized correlation, Engle-Granger / Johansen cointegration, half-life, Kalman dynamic hedge ratio, cross-market linkage analysis, and pair-trading signal generation
+---
+
+# Correlation and Cointegration Analysis
+
+## Overview
+
+Correlation analysis is a foundational tool for pairs trading, portfolio construction, and risk management. This skill covers four analysis modes (co-movement discovery / return-correlation deep dive / sector clustering / realized correlation), a full cointegration-testing framework, cross-market linkage analysis, and the complete workflow from analytics to pair-trading signals.
+
+---
+
+## Mode 1: Co-Movement Discovery
+
+**Use case**: Given a target asset, scan a universe for highly correlated assets and build a candidate pool with similar industry or factor exposure, for use in pairs trading or substitute identification.
+
+### Workflow
+
+```
+1. Pull daily return series for the target asset and N candidates
+2. Compute Pearson / Spearman correlations between the target and each candidate
+3. Rank by correlation in descending order and keep Top-K (usually K=10-20)
+4. Run cointegration tests on the Top-K set to retain pairs with real long-run equilibrium
+5. Output the candidate pool and a correlation summary
+```
+
+```python
+import pandas as pd
+import numpy as np
+from scipy.stats import pearsonr, spearmanr
+
+def scan_correlated_assets(
+ target_returns: pd.Series,
+ universe_returns: pd.DataFrame,
+ top_k: int = 20,
+ min_corr: float = 0.5,
+ method: str = "pearson",
+) -> pd.DataFrame:
+ """Scan for assets that are highly correlated with the target asset.
+
+ Args:
+ target_returns: Daily return series for the target asset
+ universe_returns: Candidate-universe return matrix, columns are symbols
+ top_k: Number of top candidates to return
+ min_corr: Minimum absolute-correlation threshold
+ method: "pearson" or "spearman"
+
+ Returns:
+ A DataFrame containing symbol / corr / p_value / rank
+ """
+ aligned = universe_returns.dropna(axis=1, how="any")
+ aligned, target_aligned = aligned.align(target_returns, join="inner", axis=0)
+
+ results = []
+ for col in aligned.columns:
+ if method == "spearman":
+ corr, p = spearmanr(target_aligned, aligned[col])
+ else:
+ corr, p = pearsonr(target_aligned, aligned[col])
+ results.append({"symbol": col, "corr": corr, "p_value": p})
+
+ df = pd.DataFrame(results)
+ df = df[df["corr"].abs() >= min_corr].sort_values("corr", ascending=False)
+ df["rank"] = range(1, len(df) + 1)
+ return df.head(top_k).reset_index(drop=True)
+```
+
+**Screening guidance**:
+
+| Correlation | Conclusion | Follow-up Action |
+|---------|------|---------|
+| > 0.8 | Strong same-direction co-movement | Send to the cointegration test queue |
+| 0.6 - 0.8 | Moderate co-movement | Check industry / factor alignment before cointegration |
+| < 0.6 | Weak correlation | Usually unsuitable for pairs trading |
+| Negative and < -0.6 | Strong inverse co-movement | Can be used in hedged portfolios, but be careful with spread direction |
+
+---
+
+## Mode 2: Deep Return-Correlation Analysis
+
+**Use case**: Run a full bivariate correlation study on two assets, including multiple correlation coefficients, Beta / Rยฒ, rolling correlation, and spread Z-Score.
+
+### Core Metrics
+
+```python
+import statsmodels.api as sm
+from scipy.stats import pearsonr, spearmanr, kendalltau
+
+def bivariate_correlation_analysis(
+ y: pd.Series,
+ x: pd.Series,
+ rolling_window: int = 60,
+) -> dict:
+ """Run deep correlation analysis for two assets.
+
+ Args:
+ y: Daily return series of asset A
+ x: Daily return series of asset B
+ rolling_window: Rolling-window length in trading days
+
+ Returns:
+ Dict of correlation statistics
+ """
+ # Align the two series.
+ df = pd.concat([y.rename("y"), x.rename("x")], axis=1).dropna()
+ y_clean, x_clean = df["y"], df["x"]
+
+ # Static correlations.
+ pearson_r, pearson_p = pearsonr(y_clean, x_clean)
+ spearman_r, spearman_p = spearmanr(y_clean, x_clean)
+ kendall_r, kendall_p = kendalltau(y_clean, x_clean)
+
+ # OLS: y = ฮฑ + ฮฒยทx
+ x_const = sm.add_constant(x_clean)
+ ols = sm.OLS(y_clean, x_const).fit()
+ beta = ols.params["x"]
+ alpha = ols.params["const"]
+ r_squared = ols.rsquared
+
+ # Rolling Pearson correlation.
+ rolling_corr = y_clean.rolling(rolling_window).corr(x_clean)
+
+ # Spread and Z-Score using the hedge ratio.
+ spread = y_clean - beta * x_clean
+ spread_mean = spread.rolling(rolling_window).mean()
+ spread_std = spread.rolling(rolling_window).std()
+ z_score = (spread - spread_mean) / spread_std
+
+ return {
+ "pearson": {"r": round(pearson_r, 4), "p": round(pearson_p, 6)},
+ "spearman": {"r": round(spearman_r, 4), "p": round(spearman_p, 6)},
+ "kendall": {"r": round(kendall_r, 4), "p": round(kendall_p, 6)},
+ "beta": round(beta, 4),
+ "alpha": round(alpha, 6),
+ "r_squared": round(r_squared, 4),
+ "rolling_corr": rolling_corr,
+ "spread": spread,
+ "z_score": z_score,
+ "spread_mean": spread_mean,
+ "spread_std": spread_std,
+ }
+```
+
+### Correlation-Coefficient Selection Guide
+
+| Coefficient | Assumption | Best Use Case | Not Suitable When |
+|------|------|---------|--------|
+| Pearson | Linear, approximately normal | Return series | Heavy tails / many outliers |
+| Spearman | Monotonic relationship | Ranking / quantile analysis, many outliers | When magnitude information matters |
+| Kendall | Order consistency | Small samples, unknown distribution | Large samples due to slower computation |
+
+**Practical rule in finance**: Usually report all three coefficients. If Pearson and Spearman differ by more than 0.1, the relationship is likely nonlinear or heavy-tailed, and Spearman should carry more weight.
+
+---
+
+## Mode 3: Sector Clustering
+
+**Use case**: Run hierarchical clustering on the correlation matrix of N assets to discover sector structure, check portfolio diversification, and identify similar assets.
+
+```python
+import numpy as np
+import pandas as pd
+from scipy.cluster.hierarchy import linkage, dendrogram, fcluster
+from scipy.spatial.distance import squareform
+import matplotlib.pyplot as plt
+import seaborn as sns
+
+def sector_clustering(
+ returns: pd.DataFrame,
+ method: str = "ward",
+ n_clusters: int = 5,
+ figsize: tuple = (12, 10),
+) -> dict:
+ """Run sector clustering analysis.
+
+ Args:
+ returns: Multi-asset daily return matrix, columns are symbols
+ method: Linkage method: "ward" / "complete" / "average"
+ n_clusters: Target number of clusters
+ figsize: Heatmap size
+
+ Returns:
+ Dict containing the correlation matrix, cluster labels, and figure objects
+ """
+ # 1. Correlation matrix
+ corr_matrix = returns.corr(method="pearson")
+
+ # 2. Distance matrix where distance = 1 - |correlation|
+ distance_matrix = 1 - corr_matrix.abs()
+ condensed = squareform(distance_matrix.values, checks=False)
+
+ # 3. Hierarchical clustering
+ linkage_matrix = linkage(condensed, method=method)
+ labels = fcluster(linkage_matrix, n_clusters, criterion="maxclust")
+ cluster_df = pd.DataFrame({"symbol": corr_matrix.columns, "cluster": labels})
+
+ # 4. Heatmap sorted by cluster
+ order = cluster_df.sort_values("cluster").index
+ sorted_corr = corr_matrix.iloc[order, order]
+
+ fig_heatmap, ax = plt.subplots(figsize=figsize)
+ sns.heatmap(
+ sorted_corr,
+ cmap="RdYlGn",
+ center=0,
+ vmin=-1,
+ vmax=1,
+ annot=len(corr_matrix) <= 20,
+ fmt=".2f",
+ ax=ax,
+ cbar_kws={"label": "Pearson correlation"},
+ )
+ ax.set_title(f"Correlation Heatmap ({method.upper()} clustering order)")
+
+ # 5. Dendrogram
+ fig_dendro, ax2 = plt.subplots(figsize=(figsize[0], 6))
+ dendrogram(
+ linkage_matrix,
+ labels=list(corr_matrix.columns),
+ ax=ax2,
+ leaf_rotation=90,
+ color_threshold=0,
+ )
+ ax2.set_title(f"Hierarchical Dendrogram ({method.upper()} linkage)")
+ ax2.set_ylabel("Distance")
+
+ return {
+ "corr_matrix": corr_matrix,
+ "cluster_labels": cluster_df,
+ "linkage_matrix": linkage_matrix,
+ "fig_heatmap": fig_heatmap,
+ "fig_dendrogram": fig_dendro,
+ "n_clusters": n_clusters,
+ }
+```
+
+### Comparison of Three Linkage Methods
+
+| Method | Feature | Best Use Case | Weakness |
+|------|------|---------|------|
+| Ward | Minimizes within-cluster variance, gives compact clusters | **Default recommendation**, stock-sector discovery | Works best for spherical clusters, weaker for irregular shapes |
+| Complete | Uses maximum pairwise distance, conservative | When high within-cluster similarity is required | Can produce elongated clusters |
+| Average | Uses average distance, compromise approach | General analysis where compactness is not the top priority | Sensitive to noise |
+
+---
+
+## Mode 4: Realized Correlation
+
+**Use case**: Compute rolling correlation time series and analyze conditional correlation by market regime (bull / bear / high-volatility) to discover how correlation evolves dynamically.
+
+```python
+def realized_correlation(
+ y: pd.Series,
+ x: pd.Series,
+ benchmark: pd.Series,
+ windows: list = [20, 60, 120],
+ vol_window: int = 20,
+ vol_threshold: float = 1.5,
+) -> dict:
+ """Rolling realized correlation plus regime-conditional correlation.
+
+ Args:
+ y, x: Daily return series of two assets
+ benchmark: Daily return series of the benchmark index used for regime labeling
+ windows: List of rolling windows in trading days
+ vol_window: Volatility window
+ vol_threshold: High-vol threshold as a multiple of average vol
+
+ Returns:
+ Rolling correlation series and conditional-correlation summary
+ """
+ df = pd.concat([y.rename("y"), x.rename("x"),
+ benchmark.rename("bm")], axis=1).dropna()
+
+ # Rolling correlation time series.
+ rolling_corrs = {}
+ for w in windows:
+ rolling_corrs[f"roll_{w}d"] = df["y"].rolling(w).corr(df["x"])
+
+ # Regime labels.
+ bm_ret_252 = df["bm"].rolling(252).mean()
+ bm_vol = df["bm"].rolling(vol_window).std()
+ bm_vol_mean = bm_vol.rolling(252).mean()
+
+ df["regime"] = "sideways"
+ df.loc[df["bm"] > bm_ret_252, "regime"] = "bull"
+ df.loc[df["bm"] < -bm_ret_252.abs(), "regime"] = "bear"
+ df.loc[bm_vol > bm_vol_mean * vol_threshold, "regime"] = "high_vol"
+
+ # Conditional correlation.
+ cond_corr = {}
+ for regime in ["bull", "bear", "sideways", "high_vol"]:
+ mask = df["regime"] == regime
+ if mask.sum() >= 30:
+ r, p = pearsonr(df.loc[mask, "y"], df.loc[mask, "x"])
+ cond_corr[regime] = {"corr": round(r, 4), "p": round(p, 6), "n": int(mask.sum())}
+ else:
+ cond_corr[regime] = {"corr": None, "p": None, "n": int(mask.sum())}
+
+ return {
+ "rolling_corrs": pd.DataFrame(rolling_corrs),
+ "regime_labels": df["regime"],
+ "conditional_corr": cond_corr,
+ }
+```
+
+### Typical Correlation Behavior by Market Regime
+
+| Market Regime | Equity-Equity Correlation | Equity-Bond Correlation | A-Share Characteristic |
+|---------|---------|---------|--------|
+| Bull | Medium (0.4-0.6) | Low or negative | Small-cap names tend to move together strongly |
+| Bear | **High (0.7-0.9)** | Negative (safe-haven effect) | Broad selloff, correlation jumps sharply |
+| High volatility | **Very high (0.8+)** | Negative | In crises, correlation often converges toward 1 |
+| Sideways | Low (0.2-0.4) | Near zero | Stock dispersion rises, ideal for pairs trading |
+
+---
+
+## Cointegration Analysis
+
+Correlation measures the degree of co-movement. Cointegration measures whether a **long-run equilibrium relationship** exists. High correlation does not guarantee cointegration, and low correlation does not rule it out.
+
+### Engle-Granger Two-Step Method
+
+Suitable for two-variable pairs, quick and intuitive.
+
+```python
+from statsmodels.tsa.stattools import coint, adfuller
+import statsmodels.api as sm
+import numpy as np
+
+def engle_granger_coint(
+ y: pd.Series,
+ x: pd.Series,
+ significance: float = 0.05,
+) -> dict:
+ """Run the Engle-Granger two-step cointegration test.
+
+ H0: No cointegration relationship exists (residuals contain a unit root).
+
+ Args:
+ y, x: Two price series. These must be non-stationary series,
+ usually prices rather than returns.
+ significance: Significance level
+
+ Returns:
+ Test results and spread series
+ """
+ # Step 1: estimate the cointegrating vector with OLS.
+ x_const = sm.add_constant(x)
+ ols = sm.OLS(y, x_const).fit()
+ hedge_ratio = ols.params[x.name if x.name else "x"]
+ intercept = ols.params["const"]
+ residuals = ols.resid
+
+ # Step 2: test residual stationarity with ADF.
+ adf_res = adfuller(residuals, autolag="AIC")
+ adf_stat, adf_p = adf_res[0], adf_res[1]
+
+ # statsmodels coint wrapper.
+ coint_stat, coint_p, crit_vals = coint(y, x)
+
+ return {
+ "method": "Engle-Granger",
+ "is_cointegrated": coint_p < significance,
+ "coint_p": round(coint_p, 6),
+ "coint_stat": round(coint_stat, 4),
+ "critical_values": {"1%": crit_vals[0], "5%": crit_vals[1], "10%": crit_vals[2]},
+ "hedge_ratio": round(hedge_ratio, 6),
+ "intercept": round(intercept, 6),
+ "spread": residuals,
+ "adf_on_spread": {"stat": round(adf_stat, 4), "p": round(adf_p, 6)},
+ }
+```
+
+**Note**: Engle-Granger can detect only one cointegrating vector, and the test result depends on the ordering of `y` and `x`. In practice, test both directions and keep the direction with the smaller p-value.
+
+### Johansen Cointegration Test for Multiple Variables
+
+Suitable for three or more assets and for estimating the number of cointegrating vectors (rank).
+
+```python
+from statsmodels.tsa.vector_ar.vecm import coint_johansen
+
+def johansen_coint(
+ prices: pd.DataFrame,
+ det_order: int = 0,
+ k_ar_diff: int = 1,
+) -> dict:
+ """Run the Johansen cointegration test.
+
+ Args:
+ prices: Multi-asset price matrix, columns are symbols.
+ The series must be non-stationary.
+ det_order: Deterministic term. -1=no intercept, 0=intercept, 1=trend
+ k_ar_diff: Number of lagged differences in the VAR, usually 1-5 chosen by AIC
+
+ Returns:
+ Trace-test and max-eigenvalue-test results
+ """
+ result = coint_johansen(prices.dropna(), det_order=det_order, k_ar_diff=k_ar_diff)
+ n = prices.shape[1]
+
+ # Trace test.
+ trace_results = []
+ for i in range(n):
+ trace_results.append({
+ "H0_rank_leq": i,
+ "trace_stat": round(result.lr1[i], 4),
+ "crit_10pct": result.cvt[i, 0],
+ "crit_5pct": result.cvt[i, 1],
+ "crit_1pct": result.cvt[i, 2],
+ "reject_5pct": result.lr1[i] > result.cvt[i, 1],
+ })
+
+ # Max-eigenvalue test.
+ maxeig_results = []
+ for i in range(n):
+ maxeig_results.append({
+ "H0_rank_eq": i,
+ "maxeig_stat": round(result.lr2[i], 4),
+ "crit_10pct": result.cvm[i, 0],
+ "crit_5pct": result.cvm[i, 1],
+ "crit_1pct": result.cvm[i, 2],
+ "reject_5pct": result.lr2[i] > result.cvm[i, 1],
+ })
+
+ # Cointegrating vectors, normalized.
+ coint_vectors = pd.DataFrame(
+ result.evec[:, :sum(r["reject_5pct"] for r in trace_results)],
+ index=prices.columns,
+ )
+
+ return {
+ "method": "Johansen",
+ "n_coint_vectors_trace": sum(r["reject_5pct"] for r in trace_results),
+ "trace_test": pd.DataFrame(trace_results),
+ "maxeig_test": pd.DataFrame(maxeig_results),
+ "coint_vectors": coint_vectors,
+ "eigenvalues": result.eig,
+ }
+```
+
+**Johansen rank interpretation rules**:
+
+```
+Start the trace test from H0: rank=0 and move upward.
+The first rank that cannot be rejected is the estimated cointegration rank.
+
+rank = 0 โ†’ no cointegration
+rank = 1 โ†’ one cointegrating vector (most common, long-run equilibrium for a pair)
+rank = k-1 โ†’ k-1 cointegrating vectors (system is tightly linked)
+rank = k โ†’ the series themselves are stationary, so cointegration is not needed
+```
+
+### Half-Life Calculation
+
+Half-life measures how long a spread takes to mean-revert after deviating from equilibrium. It is a practical reference for expected holding period in pairs trading.
+
+```python
+def compute_half_life(spread: pd.Series) -> float:
+ """Estimate mean-reversion half-life with OLS, in days.
+
+ Principle:
+ Estimate ฮ”Spread_t = ฮปยทSpread_{t-1} + ฮต
+ Half-life = -ln(2) / ฮป, where ฮป must be negative for mean reversion
+
+ Args:
+ spread: Spread series, which should be stationary
+
+ Returns:
+ Half-life in trading days. Negative or infinite values imply divergence.
+ """
+ spread_lag = spread.shift(1)
+ delta = spread.diff()
+ df = pd.concat([delta, spread_lag], axis=1).dropna()
+ df.columns = ["delta", "lag"]
+
+ x_const = sm.add_constant(df["lag"])
+ ols = sm.OLS(df["delta"], x_const).fit()
+ lam = ols.params["lag"]
+
+ if lam >= 0:
+ return float("inf") # no mean reversion
+
+ half_life = -np.log(2) / lam
+ return round(half_life, 1)
+```
+
+**Half-life reference ranges**:
+
+| Half-Life | Meaning | Trading Guidance |
+|-------|------|---------|
+| < 5 days | Extremely fast reversion | Intraday or overnight trading, friction cost matters |
+| 5-20 days | Fast reversion | Ideal range for short-term pairs trading |
+| 20-60 days | Medium-speed reversion | Medium-term holding, rolling windows 60-120 days |
+| 60-180 days | Slow reversion | Long holding period, monitor cointegration stability |
+| > 180 days | Near random walk | High pairs-trading risk, use cautiously |
+
+### Kalman Filter Dynamic Hedge Ratio
+
+Static OLS hedge ratios cannot capture gradual drift in the cointegration relationship. A Kalman filter provides a continuously updated dynamic hedge ratio.
+
+```python
+import numpy as np
+
+def kalman_hedge_ratio(
+ y: pd.Series,
+ x: pd.Series,
+ delta: float = 1e-4,
+ vt: float = 1.0,
+) -> pd.DataFrame:
+ """Estimate a dynamic hedge ratio with a Kalman filter.
+
+ State equation:
+ ฮฒ_t = ฮฒ_{t-1} + w_t, w ~ N(0, Q)
+ Observation equation:
+ y_t = ฮฒ_t ยท x_t + v_t, v ~ N(0, R)
+
+ Args:
+ y: Price series of asset A
+ x: Price series of asset B
+ delta: State-noise intensity. Larger means faster hedge-ratio adaptation
+ vt: Observation-noise variance
+
+ Returns:
+ DataFrame containing the dynamic hedge ratio and spread
+ """
+ n = len(y)
+ # State: [ฮฒ, ฮฑ] = hedge ratio + intercept
+ Wt = delta / (1 - delta) * np.eye(2)
+ Vt = vt
+
+ # Initialization
+ theta = np.zeros((n, 2))
+ P = np.zeros((n, 2, 2))
+ P[0] = np.eye(2)
+
+ spread = np.zeros(n)
+ spread[0] = float("nan")
+
+ for t in range(1, n):
+ F = np.array([x.iloc[t], 1.0])
+
+ # Predict
+ theta_pred = theta[t - 1]
+ P_pred = P[t - 1] + Wt
+
+ # Innovation
+ innovation = y.iloc[t] - F @ theta_pred
+ S = F @ P_pred @ F.T + Vt
+
+ # Kalman gain
+ K = P_pred @ F.T / S
+
+ # Update
+ theta[t] = theta_pred + K * innovation
+ P[t] = (np.eye(2) - np.outer(K, F)) @ P_pred
+
+ spread[t] = y.iloc[t] - theta[t, 0] * x.iloc[t] - theta[t, 1]
+
+ return pd.DataFrame({
+ "hedge_ratio": theta[:, 0],
+ "intercept": theta[:, 1],
+ "spread": spread,
+ }, index=y.index)
+```
+
+**Static vs dynamic hedge-ratio comparison**:
+
+| Method | Strength | Weakness | Best Use Case |
+|------|------|------|------|
+| OLS | Simple, stable | Cannot capture time variation | Short-term stable pairs |
+| Rolling OLS | Time-varying, intuitive | Window-sensitive, endpoint effect | Medium-term pairs |
+| Kalman Filter | Real-time, continuous update | `delta` is harder to tune | Long-term or structurally shifting pairs |
+
+---
+
+## Cross-Market Correlation
+
+### Correlation Across China A-Share Sectors
+
+```python
+# Typical China A-share sector-correlation patterns
+ASHARE_SECTOR_PATTERNS = {
+ "strong_pairs_gt_0_7": [
+ "Banks & insurance",
+ "Baijiu & consumer staples",
+ "New energy & solar",
+ "Defense & aerospace",
+ ],
+ "medium_pairs_0_4_to_0_7": [
+ "Pharma & consumer",
+ "Technology & semiconductors",
+ "Real estate & building materials",
+ ],
+ "low_or_negative_lt_0_3": [
+ "Gold & technology",
+ "Utilities & cyclicals",
+ "Consumer & cyclicals",
+ ],
+}
+```
+
+### Cross-Market Linkage Analysis
+
+```python
+def cross_market_correlation(
+ markets: dict, # {"China A-shares": series, "Hong Kong": series, "crypto": series, "US": series}
+ rolling_window: int = 60,
+ lag_days: list = [0, 1, 2, 3],
+) -> dict:
+ """Cross-market correlation plus lead-lag analysis.
+
+ Args:
+ markets: Daily return series for each market
+ rolling_window: Rolling window
+ lag_days: List of lags to test
+
+ Returns:
+ Correlation matrix, lead-lag analysis, and rolling correlation
+ """
+ df = pd.DataFrame(markets).dropna()
+
+ # Static correlation matrix
+ static_corr = df.corr()
+
+ # Lead-lag correlation to detect cross-market transmission
+ lead_lag = {}
+ mkt_names = list(markets.keys())
+ for i, m1 in enumerate(mkt_names):
+ for m2 in mkt_names[i + 1:]:
+ pair_key = f"{m1}_{m2}"
+ lead_lag[pair_key] = {}
+ for lag in lag_days:
+ if lag == 0:
+ r, _ = pearsonr(df[m1], df[m2])
+ else:
+ r, _ = pearsonr(df[m1].iloc[lag:], df[m2].iloc[:-lag])
+ lead_lag[pair_key][f"lag_{lag}d"] = round(r, 4)
+
+ # Rolling correlation
+ rolling_corrs = {}
+ for i, m1 in enumerate(mkt_names):
+ for m2 in mkt_names[i + 1:]:
+ key = f"{m1}_{m2}"
+ rolling_corrs[key] = df[m1].rolling(rolling_window).corr(df[m2])
+
+ return {
+ "static_corr": static_corr,
+ "lead_lag": pd.DataFrame(lead_lag).T,
+ "rolling_corrs": pd.DataFrame(rolling_corrs),
+ }
+```
+
+### Empirical Cross-Market Linkage Patterns
+
+| Market Pair | Average Correlation | Transmission Direction | Lag |
+|-------|---------|---------|------|
+| China A-shares โ†” Hong Kong | 0.5-0.7 | Two-way, Hong Kong slightly leads | 0-1 day |
+| China A-shares โ†” U.S. equities | 0.2-0.4 | U.S. leads overnight | 1 day |
+| BTC โ†” ETH | 0.7-0.9 | Highly synchronous | < 1 hour |
+| China A-shares โ†” BTC | 0.0-0.2 | Mostly independent, except correlation spikes in crises | Unstable |
+| U.S. equities โ†” BTC | 0.1-0.4 | U.S. leads through institutional capital flows | Within 1 day |
+| RMB exchange rate โ†” China A-shares | -0.2 - 0.3 | RMB weakness โ†’ foreign outflows โ†’ China A-share weakness | 0-2 days |
+
+### Impact of FX Factors on Cross-Market Correlation
+
+Cross-market correlation analysis must distinguish between local-currency returns and FX-adjusted returns. Otherwise, exchange-rate moves can create spurious correlation or hide the true one.
+
+```python
+def fx_adjusted_correlation(
+ foreign_price: pd.Series, # foreign-market price, denominated in foreign currency
+ domestic_price: pd.Series, # domestic-market price
+ fx_rate: pd.Series, # foreign currency / domestic currency, e.g. USD/CNY
+) -> dict:
+ """Cross-market correlation adjusted for FX effects.
+
+ Args:
+ foreign_price: Foreign-market price series in foreign currency
+ domestic_price: Domestic-market price series in domestic currency
+ fx_rate: FX series expressed as foreign / domestic
+
+ Returns:
+ Raw correlation vs FX-adjusted correlation
+ """
+ # Domestic-currency foreign return = foreign return + FX return
+ foreign_ret = foreign_price.pct_change()
+ fx_ret = fx_rate.pct_change()
+ foreign_ret_cny = (1 + foreign_ret) * (1 + fx_ret) - 1
+
+ domestic_ret = domestic_price.pct_change()
+
+ df = pd.concat([foreign_ret.rename("foreign_raw"),
+ foreign_ret_cny.rename("foreign_domestic"),
+ domestic_ret.rename("domestic"),
+ fx_ret.rename("fx")], axis=1).dropna()
+
+ raw_corr, _ = pearsonr(df["foreign_raw"], df["domestic"])
+ adj_corr, _ = pearsonr(df["foreign_domestic"], df["domestic"])
+ fx_corr, _ = pearsonr(df["fx"], df["domestic"])
+
+ return {
+ "raw_corr_foreign_domestic": round(raw_corr, 4),
+ "fx_adjusted_corr": round(adj_corr, 4),
+ "fx_domestic_corr": round(fx_corr, 4),
+ "fx_contribution": round(adj_corr - raw_corr, 4),
+ "note": "fx_contribution > 0 means FX amplified cross-market correlation",
+ }
+```
+
+### Correlation Breakdown During Crises
+
+During crises, equity correlation converges toward 1 and diversification breaks down. This is one of the central challenges in portfolio risk management.
+
+```python
+def correlation_breakdown_test(
+ returns: pd.DataFrame,
+ crisis_threshold: float = -0.02, # one-day benchmark drop threshold for crisis days
+ benchmark_col: str = None,
+ window: int = 20,
+) -> dict:
+ """Detect jumps in correlation during crisis periods.
+
+ Args:
+ returns: Multi-asset daily return matrix
+ crisis_threshold: Benchmark return below this level defines a crisis day
+ benchmark_col: Benchmark column name. If None, use cross-sectional mean return
+ window: Window for rolling average correlation
+
+ Returns:
+ Comparison of correlation in normal periods vs crisis periods
+ """
+ if benchmark_col:
+ bm = returns[benchmark_col]
+ else:
+ bm = returns.mean(axis=1)
+
+ crisis_mask = bm < crisis_threshold
+ normal_mask = ~crisis_mask
+
+ # Average pairwise correlation for each period
+ def avg_corr(df_subset: pd.DataFrame) -> float:
+ if len(df_subset) < 5:
+ return float("nan")
+ c = df_subset.corr()
+ upper = c.where(np.triu(np.ones(c.shape), k=1).astype(bool))
+ return float(upper.stack().mean())
+
+ crisis_corr = avg_corr(returns[crisis_mask])
+ normal_corr = avg_corr(returns[normal_mask])
+
+ # Rolling average correlation to detect structural change
+ rolling_avg_corr = pd.Series(dtype=float, index=returns.index)
+ for i in range(window, len(returns)):
+ sub = returns.iloc[i - window:i]
+ rolling_avg_corr.iloc[i] = avg_corr(sub)
+
+ return {
+ "normal_avg_corr": round(normal_corr, 4),
+ "crisis_avg_corr": round(crisis_corr, 4),
+ "corr_jump": round(crisis_corr - normal_corr, 4),
+ "crisis_days": int(crisis_mask.sum()),
+ "normal_days": int(normal_mask.sum()),
+ "rolling_avg_corr": rolling_avg_corr,
+ }
+```
+
+---
+
+## Pair-Trading Signal Generation
+
+### Full Workflow From Correlation to Signal
+
+```
+Step 1: Asset screening
+ - Run scan_correlated_assets and keep candidate pairs with Pearson > 0.6
+ - Run engle_granger_coint and keep pairs with p < 0.05
+
+Step 2: Spread quality assessment
+ - Run compute_half_life and keep pairs with half-life between 5 and 60 days
+ - Test spread stationarity with ADF and require p < 0.05
+ - Measure how often the absolute Z-Score exceeds 1.5 over the last 12 months
+ to estimate trading frequency
+
+Step 3: Hedge-ratio selection
+ - Use static OLS for stable pairs
+ - Use Kalman Filter for long-lived or drifting pairs
+
+Step 4: Signal generation
+ - Compute rolling Z-Score with a lookback of 2-3ร— half-life
+ - Generate long / short / exit signals based on thresholds
+
+Step 5: Signal monitoring
+ - Recompute Z-Score daily
+ - Re-run cointegration monthly to avoid broken relationships
+ - Warn if half-life exceeds 2ร— the original value
+```
+
+### Z-Score Signal Generation
+
+```python
+def generate_pair_signals(
+ y_price: pd.Series,
+ x_price: pd.Series,
+ lookback: int = 60,
+ entry_z: float = 2.0,
+ exit_z: float = 0.5,
+ stop_z: float = 3.5,
+ use_kalman: bool = False,
+) -> pd.DataFrame:
+ """Generate pair-trading signals.
+
+ Args:
+ y_price, x_price: Two price series
+ lookback: Rolling Z-Score lookback, usually 2-3ร— half-life
+ entry_z: Entry threshold
+ exit_z: Exit threshold, usually near mean reversion
+ stop_z: Stop threshold. Crossing it suggests cointegration may have broken
+ use_kalman: Whether to use a Kalman dynamic hedge ratio
+
+ Returns:
+ DataFrame containing signals, Z-Score, and positions
+ """
+ if use_kalman:
+ kf = kalman_hedge_ratio(y_price, x_price)
+ spread = kf["spread"]
+ else:
+ y_ret = y_price.pct_change()
+ x_ret = x_price.pct_change()
+ res = bivariate_correlation_analysis(y_ret, x_ret, lookback)
+ hedge_ratio = abs(res["beta"])
+ spread = np.log(y_price) - hedge_ratio * np.log(x_price)
+
+ spread_mean = spread.rolling(lookback).mean()
+ spread_std = spread.rolling(lookback).std()
+ z_score = (spread - spread_mean) / spread_std
+
+ # Signal state machine to avoid repeated re-entry.
+ signal_y = pd.Series(0.0, index=y_price.index)
+ signal_x = pd.Series(0.0, index=x_price.index)
+ position = 0 # 0=flat, 1=long spread, -1=short spread
+
+ for i in range(lookback, len(z_score)):
+ z = z_score.iloc[i]
+ if np.isnan(z):
+ continue
+
+ if position == 0:
+ if z < -entry_z:
+ position = 1 # spread is too low: buy y, sell x
+ elif z > entry_z:
+ position = -1 # spread is too high: sell y, buy x
+ elif position == 1:
+ if z > -exit_z or z > stop_z:
+ position = 0
+ elif position == -1:
+ if z < exit_z or z < -stop_z:
+ position = 0
+
+ signal_y.iloc[i] = 0.5 * position
+ signal_x.iloc[i] = -0.5 * position
+
+ return pd.DataFrame({
+ "spread": spread,
+ "z_score": z_score,
+ "spread_mean": spread_mean,
+ "spread_std": spread_std,
+ "signal_y": signal_y,
+ "signal_x": signal_x,
+ "position": signal_y * 2, # 1=long spread, -1=short spread, 0=flat
+ })
+```
+
+### Z-Score Threshold Configuration Guide
+
+| Parameter | Conservative | Standard | Aggressive | Notes |
+|------|------|------|------|------|
+| entry_z | 2.5 | 2.0 | 1.5 | Higher threshold means fewer trades |
+| exit_z | 0.3 | 0.5 | 0.8 | Higher threshold means shorter holding periods |
+| stop_z | 3.0 | 3.5 | 4.0 | Beyond this level, cointegration may have broken |
+| lookback | 90 | 60 | 30 | Usually 2-3ร— half-life |
+
+### Spread-Stability Monitoring
+
+```python
+def monitor_spread_health(
+ spread: pd.Series,
+ original_half_life: float,
+ original_corr: float,
+ warning_hl_multiple: float = 2.0,
+ warning_corr_drop: float = 0.2,
+) -> dict:
+ """Monitor spread stability and judge whether cointegration still holds.
+
+ Args:
+ spread: Live spread series
+ original_half_life: Half-life at entry, in days
+ original_corr: Correlation at entry
+ warning_hl_multiple: Warn if half-life exceeds this multiple of the original
+ warning_corr_drop: Warn if correlation drops by more than this amount
+
+ Returns:
+ Health-status report
+ """
+ recent = spread.iloc[-60:] if len(spread) > 60 else spread
+
+ current_hl = compute_half_life(recent)
+ current_adf = adfuller(recent.dropna())[1]
+
+ hl_ratio = current_hl / original_half_life if original_half_life > 0 else float("inf")
+
+ # Cointegration health score
+ health_score = 100
+ warnings = []
+
+ if current_adf > 0.10:
+ health_score -= 40
+ warnings.append(f"Spread ADF p={current_adf:.3f} > 0.10, stationarity has weakened")
+
+ if hl_ratio > warning_hl_multiple:
+ health_score -= 30
+ warnings.append(
+ f"Half-life {current_hl:.1f}d is {hl_ratio:.1f}x the original {original_half_life:.1f}d"
+ )
+
+ if current_adf > 0.20:
+ health_score -= 20
+ warnings.append("Spread may no longer be stationary. Re-test cointegration immediately")
+
+ status = "healthy" if health_score >= 70 else "warning" if health_score >= 40 else "danger"
+
+ return {
+ "health_score": health_score,
+ "status": status,
+ "current_half_life": round(current_hl, 1),
+ "hl_ratio": round(hl_ratio, 2),
+ "spread_adf_p": round(current_adf, 4),
+ "warnings": warnings,
+ "action": "hold" if status == "healthy" else "reduce" if status == "warning" else "exit_now",
+ }
+```
+
+---
+
+## Visualization Templates
+
+### Rolling-Correlation Time-Series Plot
+
+```python
+import matplotlib.pyplot as plt
+
+def plot_rolling_correlation(
+ rolling_corrs: pd.DataFrame,
+ title: str = "Rolling Correlation",
+ figsize: tuple = (14, 5),
+) -> plt.Figure:
+ """Plot rolling correlation time series across multiple windows."""
+ fig, ax = plt.subplots(figsize=figsize)
+ colors = ["#2196F3", "#FF9800", "#4CAF50"]
+ for i, col in enumerate(rolling_corrs.columns):
+ ax.plot(rolling_corrs.index, rolling_corrs[col],
+ label=col, color=colors[i % len(colors)], alpha=0.8)
+ ax.axhline(0, color="black", linestyle="--", linewidth=0.8)
+ ax.axhline(0.6, color="green", linestyle=":", linewidth=0.8, label="high-correlation threshold (0.6)")
+ ax.axhline(-0.6, color="red", linestyle=":", linewidth=0.8)
+ ax.set_title(title)
+ ax.set_ylabel("Correlation")
+ ax.legend(loc="best")
+ ax.grid(True, alpha=0.3)
+ plt.tight_layout()
+ return fig
+```
+
+### Z-Score Signal Plot
+
+```python
+def plot_zscore_signals(
+ signal_df: pd.DataFrame,
+ entry_z: float = 2.0,
+ stop_z: float = 3.5,
+ figsize: tuple = (14, 8),
+) -> plt.Figure:
+ """Plot spread Z-Score and pair-trading signals."""
+ fig, axes = plt.subplots(2, 1, figsize=figsize, sharex=True)
+
+ # Top chart: spread
+ axes[0].plot(signal_df["spread"], label="Spread", color="#1565C0")
+ axes[0].plot(signal_df["spread_mean"], label="Mean", color="orange", linestyle="--")
+ axes[0].fill_between(signal_df.index,
+ signal_df["spread_mean"] - signal_df["spread_std"],
+ signal_df["spread_mean"] + signal_df["spread_std"],
+ alpha=0.2, color="orange", label="ยฑ1ฯƒ")
+ axes[0].set_title("Spread and Mean")
+ axes[0].legend()
+ axes[0].grid(True, alpha=0.3)
+
+ # Bottom chart: Z-Score + signals
+ axes[1].plot(signal_df["z_score"], label="Z-Score", color="#1565C0")
+ axes[1].axhline(entry_z, color="red", linestyle="--", label=f"entry threshold (ยฑ{entry_z})")
+ axes[1].axhline(-entry_z, color="red", linestyle="--")
+ axes[1].axhline(stop_z, color="darkred", linestyle=":", label=f"stop threshold (ยฑ{stop_z})")
+ axes[1].axhline(-stop_z, color="darkred", linestyle=":")
+ axes[1].axhline(0, color="black", linestyle="-", linewidth=0.8)
+
+ # Annotate entry / exit points
+ long_entry = signal_df["position"].diff() > 0
+ short_entry = signal_df["position"].diff() < 0
+ exit_pos = (signal_df["position"] == 0) & (signal_df["position"].shift(1) != 0)
+
+ axes[1].scatter(signal_df.index[long_entry], signal_df["z_score"][long_entry],
+ color="green", marker="^", s=80, label="long spread", zorder=5)
+ axes[1].scatter(signal_df.index[short_entry], signal_df["z_score"][short_entry],
+ color="red", marker="v", s=80, label="short spread", zorder=5)
+ axes[1].scatter(signal_df.index[exit_pos], signal_df["z_score"][exit_pos],
+ color="gray", marker="o", s=40, label="exit", zorder=5)
+
+ axes[1].set_title("Z-Score and Trading Signals")
+ axes[1].legend(loc="best")
+ axes[1].grid(True, alpha=0.3)
+
+ plt.tight_layout()
+ return fig
+```
+
+---
+
+## Dependencies
+
+```bash
+pip install pandas numpy scipy statsmodels matplotlib seaborn
+```
+
+---
+
+## Output Format
+
+```markdown
+## Correlation and Cointegration Analysis Report
+
+### Pair: [Asset A] vs [Asset B] ([Start Date] - [End Date])
+
+#### Correlation Statistics
+| Metric | Value | Interpretation |
+|------|------|------|
+| Pearson r | 0.82 | Strong linear positive correlation |
+| Spearman ฯ | 0.80 | Consistent monotonic relationship |
+| Beta (A/B) | 1.15 | Sensitivity of A to B |
+| Rยฒ | 0.67 | 67% of return variance in A is explained by B |
+
+#### Cointegration Tests
+| Method | Statistic | p-value | Conclusion |
+|------|--------|------|------|
+| Engle-Granger | -4.12 | 0.008 | Cointegrated ** |
+| Johansen trace test | 28.3 | โ€” | 1 cointegrating vector |
+| Spread ADF | -3.95 | 0.002 | Spread is stationary ** |
+
+#### Mean-Reversion Characteristics
+| Metric | Value |
+|------|------|
+| OLS hedge ratio | 1.23 |
+| Half-life | 18.5 days |
+| Suggested holding window | 10-30 days |
+| Suggested lookback window | 40-60 days |
+
+#### Conditional Correlation (Regime Analysis)
+| Regime | Correlation | Sample Size |
+|------|---------|--------|
+| Bull | 0.76 | 312 days |
+| Bear | 0.88 | 198 days |
+| High volatility | 0.91 | 87 days |
+| Sideways | 0.71 | 645 days |
+
+#### Recommended Pair-Trading Signal Parameters
+| Parameter | Value |
+|------|-----|
+| entry_z | 2.0 |
+| exit_z | 0.5 |
+| stop_z | 3.5 |
+| lookback | 60 days |
+
+#### Current Spread Status
+| Metric | Value | Alert |
+|------|-----|------|
+| Current Z-Score | -2.3 | Near entry zone |
+| Health score | 85/100 | Healthy |
+| Half-life (last 60 days) | 21.2 days | Normal |
+```
+
+---
+
+## Notes
+
+1. **Prices vs returns**: Use price series, which are non-stationary, for cointegration tests; use return series, which are stationary, for correlation analysis. Mixing them is the most common mistake.
+2. **Data alignment**: Cross-market analysis must handle holiday mismatches with an inner join. Do not forward-fill missing trading days, or you will create fake correlation.
+3. **Cointegration is not the same as high correlation**: Two series can have Pearson < 0.3 and still be cointegrated, and the reverse can also happen.
+4. **Out-of-sample validation**: If a pair is selected using cointegration on the first N years, you must verify whether the relationship survives in later out-of-sample data to avoid overfitting.
+5. **Crisis-period risk**: Correlation jumps in crises, and both legs in a pair can crash together. Stop thresholds should be tighter than in normal periods.
+6. **China A-share specifics**: China A-shares contain many non-trading days due to holidays and suspensions. Date alignment is especially important in cross-market comparison.
+7. **Multiple testing**: When testing N asset pairs simultaneously, use Benjamini-Hochberg FDR adjustment on p-values. Otherwise false positives will be excessive.
+8. **Kalman tuning**: Tune `delta` with grid search plus out-of-sample validation. Do not rely blindly on the default value.
diff --git a/agent/src/skills/credit-analysis/SKILL.md b/agent/src/skills/credit-analysis/SKILL.md
new file mode 100644
index 000000000..26373b1c5
--- /dev/null
+++ b/agent/src/skills/credit-analysis/SKILL.md
@@ -0,0 +1,1130 @@
+---
+name: credit-analysis
+description: "ๅ›บๆ”ถไธŽไฟก็”จๅˆ†ๆž๏ผšไฟก็”จๅ€บ่ฏ„็บงใ€ๅˆฉๅทฎๅˆ†ๆžใ€่ฟ็บฆ้ฃŽ้™ฉ่ฏ„ไผฐใ€ๅŸŽๆŠ•ๅ€บ็ ”็ฉถใ€ๅฏ่ฝฌๅ€บๅฎšไปทไธŽ็ญ–็•ฅใ€‚"
+---
+
+# Credit Analysis Skill โ€” ๅ›บๆ”ถไธŽไฟก็”จๅˆ†ๆž
+
+## ้€‚็”จๅœบๆ™ฏ
+
+ๅฝ“็”จๆˆทๆๅ‡บไปฅไธ‹็ฑปๅž‹้—ฎ้ข˜ๆ—ถ๏ผŒไผ˜ๅ…ˆ่ฐƒ็”จๆœฌ skill๏ผš
+- ๅ€บๅˆธๅฎšไปทใ€YTM ่ฎก็ฎ—ใ€ไน…ๆœŸ/ๅ‡ธๆ€งๅˆ†ๆž
+- ไผไธšไฟก็”จ่ฏ„็บงใ€่ฟ็บฆๆฆ‚็އไผฐ็ฎ—
+- ไฟก็”จๅˆฉๅทฎๅˆ†ๆžไธŽไบคๆ˜“็ญ–็•ฅ
+- ๅŸŽๆŠ•ๅ€บใ€ABS/MBS ไฟก็”จ่ฏ„ไผฐ
+- ๅˆฉ็އ้ฃŽ้™ฉ็ฎก็†๏ผˆDV01ใ€ๅ…ณ้”ฎๅˆฉ็އไน…ๆœŸ๏ผ‰
+- ไธญๅ›ฝๅ›บๆ”ถๅธ‚ๅœบ็ป“ๆž„ๅˆ†ๆž
+
+---
+
+## ไธ€ใ€ไฟก็”จๅˆ†ๆžๆก†ๆžถ
+
+### 1.1 ไฟก็”จ่ฏ„็บงไฝ“็ณป
+
+#### ไธปไฝ“่ฏ„็บง vs ๅ€บ้กน่ฏ„็บง
+
+| ็ฑปๅž‹ | ๅฎšไน‰ | ่ฏ„็บงๅฏน่ฑก |
+|------|------|----------|
+| **ไธปไฝ“่ฏ„็บง๏ผˆIssuer Rating๏ผ‰** | ๅ‘่กŒไบบๆ•ดไฝ“ๅฟๅ€บ่ƒฝๅŠ› | ไผไธšใ€ๆ”ฟๅบœใ€้‡‘่žๆœบๆž„ |
+| **ๅ€บ้กน่ฏ„็บง๏ผˆIssue Rating๏ผ‰** | ็‰นๅฎšๅ€บๅˆธ็š„ไฟก็”จ่ดจ้‡ | ๅ…ทไฝ“ๅ€บๅˆธ๏ผŒ่€ƒ่™‘ๆŠตๆŠผๅ“ใ€ไผ˜ๅ…ˆ็บงใ€ๅฅ‘็บฆๆกๆฌพ |
+
+ๅ€บ้กน่ฏ„็บงๅฏ้ซ˜ไบŽๆˆ–ไฝŽไบŽไธปไฝ“่ฏ„็บง๏ผˆๅ–ๅ†ณไบŽๆ‹…ไฟ็ป“ๆž„๏ผ‰ใ€‚
+
+#### ๆ ‡ๅ‡†ๆ™ฎๅฐ” / ็ฉ†่ฟช / ไธญๅ›ฝ่ฏ„็บงๅฏน็…ง
+
+| S&P | Moody's | ไธญๅ›ฝ่ฏ„็บง | ๅซไน‰ |
+|-----|---------|----------|------|
+| AAA | Aaa | AAA | ๆœ€้ซ˜ไฟก็”จ่ดจ้‡๏ผŒๆžไฝŽ่ฟ็บฆ้ฃŽ้™ฉ |
+| AA+/AA/AA- | Aa1/Aa2/Aa3 | AA+/AA/AA- | ้ซ˜่ดจ้‡๏ผŒๆžไฝŽ่ฟ็บฆ้ฃŽ้™ฉ |
+| A+/A/A- | A1/A2/A3 | A+/A/A- | ่พƒ้ซ˜ไฟก็”จ่ดจ้‡ |
+| BBB+/BBB/BBB- | Baa1/Baa2/Baa3 | BBB+/BBB/BBB- | ๆŠ•่ต„็บงไธ‹้™๏ผˆIG/HYๅˆ†ๆฐดๅฒญ๏ผ‰ |
+| BB+ๅŠไปฅไธ‹ | Ba1ๅŠไปฅไธ‹ | BB+ๅŠไปฅไธ‹ | ้ซ˜ๆ”ถ็›Š/ๆŠ•ๆœบ็บง |
+| D | D | D | ่ฟ็บฆ |
+
+> **ไธญๅ›ฝ็‰น็‚น**๏ผšๅ›ฝๅ†…่ฏ„็บง่™š้ซ˜๏ผŒAA็บงๅœจๅ›ฝๅ†…็บฆ็ญ‰ๅŒไบŽๅ›ฝ้™…BBB-๏ผŒ้œ€็ป“ๅˆ่ฏ„็บงๅฑ•ๆœ›๏ผˆๆญฃ้ข/็จณๅฎš/่ดŸ้ข๏ผ‰็ปผๅˆๅˆคๆ–ญใ€‚
+
+---
+
+### 1.2 Altman Z-Score ๆจกๅž‹
+
+็”จไบŽ้ข„ๆต‹ไผไธš่ดขๅŠกๅ›ฐๅขƒ๏ผŒๅŽŸๅง‹ๆจกๅž‹้€‚็”จไบŽไธŠๅธ‚ๅˆถ้€ ไธš๏ผš
+
+```
+Z = 1.2ร—X1 + 1.4ร—X2 + 3.3ร—X3 + 0.6ร—X4 + 1.0ร—X5
+```
+
+| ๅ˜้‡ | ่ฎก็ฎ—ๅ…ฌๅผ | ๅซไน‰ |
+|------|----------|------|
+| X1 | ่ฅ่ฟ่ต„ๆœฌ / ๆ€ป่ต„ไบง | ๆตๅŠจๆ€ง |
+| X2 | ็•™ๅญ˜ๆ”ถ็›Š / ๆ€ป่ต„ไบง | ็›ˆๅˆฉ็งฏ็ดฏ |
+| X3 | EBIT / ๆ€ป่ต„ไบง | ็›ˆๅˆฉ่ƒฝๅŠ› |
+| X4 | ่‚กๆƒๅธ‚ๅ€ผ / ๆ€ป่ดŸๅ€บ่ดฆ้ขๅ€ผ | ่ดขๅŠกๆ ๆ† |
+| X5 | ้”€ๅ”ฎๆ”ถๅ…ฅ / ๆ€ป่ต„ไบง | ่ต„ไบงๆ•ˆ็އ |
+
+**ๅˆคๆ–ญๅŒบ้—ด**๏ผš
+- Z > 2.99๏ผšๅฎ‰ๅ…จๅŒบ๏ผˆไฝŽ่ฟ็บฆ้ฃŽ้™ฉ๏ผ‰
+- 1.81 < Z < 2.99๏ผš็ฐ่‰ฒๅŒบ๏ผˆ้œ€ๆทฑๅ…ฅๅˆ†ๆž๏ผ‰
+- Z < 1.81๏ผšๅฑ้™ฉๅŒบ๏ผˆ้ซ˜่ฟ็บฆ้ฃŽ้™ฉ๏ผ‰
+
+**ๆ”น่ฟ›็‰ˆๆœฌ**๏ผš
+- Z'๏ผˆ็งๆœ‰ไผไธš๏ผ‰๏ผšX4ๆ”น็”จ่‚กๆƒ่ดฆ้ขๅ€ผ๏ผŒไธด็•Œๅ€ผ2.90/1.23
+- Z''๏ผˆ้žๅˆถ้€ ไธš/ๆ–ฐๅ…ดๅธ‚ๅœบ๏ผ‰๏ผšๅŽปๆމX5๏ผŒไธด็•Œๅ€ผ2.60/1.10
+
+**ๅฑ€้™ๆ€ง**๏ผš
+- ๅŸบไบŽๅކๅฒๆ•ฐๆฎ๏ผŒๆปžๅŽๆ€งๅผบ
+- ไธ้€‚็”จ้‡‘่ž็ฑปไผไธš๏ผˆๆ ๆ†ๅฎšไน‰ไธๅŒ๏ผ‰
+- ไธญๅ›ฝๅธ‚ๅœบ้œ€้‡ๆ–ฐๆ ‡ๅฎšๅ‚ๆ•ฐ
+
+---
+
+### 1.3 Merton ็ป“ๆž„ๅŒ–ๆจกๅž‹
+
+ๅฐ†ๅ…ฌๅธ่‚กๆƒ่ง†ไธบๅฏนๅ…ฌๅธ่ต„ไบง็š„็œ‹ๆถจๆœŸๆƒ๏ผˆๆ‰ง่กŒไปทๆ ผ=ๅ€บๅŠก้ขๅ€ผ๏ผ‰๏ผš
+
+**ๆ ธๅฟƒๅ‡่ฎพ**๏ผš
+- ๅ…ฌๅธ่ต„ไบงไปทๅ€ผ V ้ตๅพชๅ‡ ไฝ•ๅธƒๆœ—่ฟๅŠจ๏ผš`dV = ฮผV dt + ฯƒ_V V dW`
+- ๅ€บๅŠกไธบ้›ถๆฏๅ€บ๏ผŒ้ขๅ€ผ D๏ผŒๅˆฐๆœŸๆ—ฅ T
+- ่ฟ็บฆไป…ๅœจ T ๆ—ถๅˆปๅ‘็”Ÿ๏ผˆๆฌงๅผ่ฟ็บฆ่ฎพๅฎš๏ผ‰
+
+**่‚กๆƒๅฎšไปท๏ผˆBSๅ…ฌๅผ๏ผ‰**๏ผš
+```
+E = VยทN(d1) - Dยทe^(-rT)ยทN(d2)
+
+d1 = [ln(V/D) + (r + ฯƒ_Vยฒ/2)T] / (ฯƒ_VยทโˆšT)
+d2 = d1 - ฯƒ_VยทโˆšT
+```
+
+**่ฟ็บฆๆฆ‚็އ๏ผˆ้ฃŽ้™ฉไธญๆ€ง๏ผ‰**๏ผš
+```
+PD = N(-d2)
+```
+
+**่ท่ฟ็บฆ่ท็ฆป๏ผˆDD, Distance to Default๏ผ‰**๏ผš
+```
+DD = [ln(V/D) + (ฮผ - ฯƒ_Vยฒ/2)T] / (ฯƒ_VยทโˆšT)
+```
+
+**ไฟก็”จๅˆฉๅทฎไผฐ็ฎ—**๏ผš
+```
+ไฟก็”จๅˆฉๅทฎ โ‰ˆ -ln[N(d2) + (V/Dยทe^(rT))ยทN(-d1)] / T
+```
+
+**ๅ‚ๆ•ฐไผฐ็ฎ—ๆ–นๆณ•**๏ผˆ่”็ซ‹ๆ–น็จ‹็ป„๏ผ‰๏ผš
+1. E = VยทN(d1) - Dยทe^(-rT)ยทN(d2)
+2. ฯƒ_EยทE = N(d1)ยทฯƒ_VยทV
+
+---
+
+### 1.4 KMV ๆจกๅž‹๏ผˆ้ข„ๆœŸ่ฟ็บฆ้ข‘็އ EDF๏ผ‰
+
+KMV ๆ˜ฏ Merton ๆจกๅž‹็š„ๅ•†ไธšๅŒ–ๅฎž็Žฐ๏ผŒ็”ฑ็ฉ†่ฟชๆ”ถ่ดญ๏ผš
+
+**ๆญฅ้ชค**๏ผš
+1. ็”จ่‚กไปทๅ’Œ่‚กๆƒๆณขๅŠจ็އๅๆŽจ่ต„ไบงไปทๅ€ผ V ๅ’Œ่ต„ไบงๆณขๅŠจ็އ ฯƒ_V
+2. ่ฎก็ฎ—่ฟ็บฆ่งฆๅ‘็‚น๏ผˆDefault Point๏ผ‰๏ผš`DP = ็ŸญๆœŸๅ€บๅŠก + 0.5ร—้•ฟๆœŸๅ€บๅŠก`
+3. ่ฎก็ฎ—่ท่ฟ็บฆ่ท็ฆป๏ผš`DD = (V - DP) / (V ร— ฯƒ_V)`
+4. ้€š่ฟ‡ๅކๅฒ่ฟ็บฆๆ•ฐๆฎๅบ“ๅฐ† DD ๆ˜ ๅฐ„ไธบ EDF๏ผˆ้žๆญฃๆ€ๆ˜ ๅฐ„๏ผ‰
+
+**ไธŽ Merton ็š„ๅŒบๅˆซ**๏ผš
+- ่ฟ็บฆ่งฆๅ‘็‚นไธๆ˜ฏๅ…จ้ƒจๅ€บๅŠก๏ผŒ่€Œๆ˜ฏ็ŸญๆœŸ+ๅŠ้•ฟๆœŸ
+- DDโ†’EDF ๆ˜ ๅฐ„ๅŸบไบŽๅฎž่ฏๆ•ฐๆฎๅบ“๏ผŒ้žๆญฃๆ€ๅˆ†ๅธƒๅ‡่ฎพ
+- EDF ๆ˜ฏ็œŸๅฎžไธ–็•Œๆฆ‚็އ๏ผŒ่€Œ้ž้ฃŽ้™ฉไธญๆ€งๆฆ‚็އ
+
+**EDF ๅ‚่€ƒๅŒบ้—ด**๏ผˆ็บฆ๏ผ‰๏ผš
+- EDF < 0.1%๏ผšๆŠ•่ต„็บง
+- 0.1%โ€“1%๏ผšBBB-BB ็บง
+- 1%โ€“5%๏ผšB ็บง
+- EDF > 5%๏ผšCCC ๅŠไปฅไธ‹
+
+---
+
+### 1.5 ไฟก็”จ่ฏ„ๅˆ†ๅกๆ–นๆณ•่ฎบ
+
+้€‚็”จไบŽ้›ถๅ”ฎไฟก่ดท/ABS ๅบ•ๅฑ‚่ต„ไบงๅˆ†ๆž๏ผš
+
+**ๅปบๆจกๆต็จ‹**๏ผš
+1. **ๆ•ฐๆฎๅ‡†ๅค‡**๏ผšๆ”ถ้›†ๅކๅฒ่ดทๆฌพๆ•ฐๆฎ๏ผŒๅฎšไน‰่ฟ็บฆๆ ‡็ญพ๏ผˆๅฆ‚้€พๆœŸ90ๅคฉ+๏ผ‰
+2. **็‰นๅพๅทฅ็จ‹**๏ผšWOE๏ผˆWeight of Evidence๏ผ‰็ผ–็ 
+3. **็‰นๅพ้€‰ๆ‹ฉ**๏ผšIVๅ€ผ๏ผˆInformation Value๏ผ‰็ญ›้€‰๏ผŒIV>0.02ไฟ็•™
+4. **ๆจกๅž‹่ฎญ็ปƒ**๏ผšLogistic Regression๏ผˆไธปๆต๏ผ‰ใ€XGBoost
+5. **่ฏ„ๅˆ†่ฝฌๆข**๏ผš`Score = A - Bร—ln(odds)`๏ผŒ้€šๅธธๅŸบๅ‡†ๅˆ†600๏ผŒPDO=20
+
+**WOE ๅ’Œ IV ่ฎก็ฎ—**๏ผš
+```python
+WOE_i = ln(ๅฅฝๆ ทๆœฌๆฏ”ไพ‹_i / ๅๆ ทๆœฌๆฏ”ไพ‹_i)
+IV_i = (ๅฅฝๆ ทๆœฌๆฏ”ไพ‹_i - ๅๆ ทๆœฌๆฏ”ไพ‹_i) ร— WOE_i
+ๆ€ปIV = ฮฃ IV_i
+```
+
+**IV ๅ‚่€ƒๆ ‡ๅ‡†**๏ผš
+- IV < 0.02๏ผšๆ— ้ข„ๆต‹ๅŠ›
+- 0.02โ€“0.1๏ผšๅผฑ้ข„ๆต‹ๅŠ›
+- 0.1โ€“0.3๏ผšไธญ็ญ‰้ข„ๆต‹ๅŠ›
+- IV > 0.3๏ผšๅผบ้ข„ๆต‹ๅŠ›
+
+---
+
+## ไบŒใ€ๅ›บๆ”ถไบงๅ“ๅˆ†ๆž
+
+### 2.1 ๅ›ฝๅ€บไธŽๆ”ฟๅบœๅ€บ
+
+#### ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆ†ๆž
+
+**ๅณๆœŸๅˆฉ็އๆ›ฒ็บฟ๏ผˆZero Curve๏ผ‰**๏ผšๅ„ๆœŸ้™ๆ— ้ฃŽ้™ฉ้›ถๆฏๅ€บๆ”ถ็›Š็އ๏ผŒ้€š่ฟ‡ Bootstrap ๆ–นๆณ•ไปŽ้™„ๆฏๅ€บๆๅ–ใ€‚
+
+**่ฟœๆœŸๅˆฉ็އๆ›ฒ็บฟ๏ผˆForward Curve๏ผ‰**๏ผš
+```
+f(T1, T2) = [(1+r2)^T2 / (1+r1)^T1]^(1/(T2-T1)) - 1
+```
+
+**ๆœŸ้™ๅˆฉๅทฎ**๏ผš
+- 10Y-2Y๏ผš็ปๆตŽๅ‘จๆœŸ้ข„ๅˆคๆŒ‡ๆ ‡๏ผŒ่ดŸๅ€ผ้€šๅธธ้ข„็คบ่กฐ้€€
+- 10Y-1Y๏ผšๆตๅŠจๆ€งๅๅฅฝ่กก้‡ๆŒ‡ๆ ‡
+- 30Y-10Y๏ผš่ถ…้•ฟ็ซฏไพ›้œ€ๅˆคๆ–ญ
+
+**ๆ”ถ็›Š็އๆ›ฒ็บฟๅฝขๆ€**๏ผš
+| ๅฝขๆ€ | ็‰นๅพ | ็ปๆตŽๅซไน‰ |
+|------|------|----------|
+| ๆญฃๆ–œ็އ๏ผˆNormal๏ผ‰ | ้•ฟ็ซฏ>็Ÿญ็ซฏ | ็ปๆตŽๆ‰ฉๅผ ้ข„ๆœŸ |
+| ๅนณๅฆ๏ผˆFlat๏ผ‰ | ๅ„ๆœŸ้™็›ธ่ฟ‘ | ็ปๆตŽ่ฝฌๆŠ˜็‚น |
+| ๅ€’ๆŒ‚๏ผˆInverted๏ผ‰ | ็Ÿญ็ซฏ>้•ฟ็ซฏ | ่กฐ้€€ไฟกๅท |
+| ้ฉผๅณฐ๏ผˆHumped๏ผ‰ | ไธญ็ซฏๆœ€้ซ˜ | ๆตๅŠจๆ€งๅˆ†ๅฑ‚ |
+
+#### ไธญๅ›ฝๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ็‰น็‚น
+- ๅŸบๅ‡†ๆ›ฒ็บฟ๏ผšไธญๅ›ฝๅ›ฝๅ€บ๏ผˆCGBs๏ผ‰+ ๅ›ฝๅผ€ๅ€บ๏ผˆPolicy Bank Bonds๏ผ‰
+- ๅ…ณ้”ฎ็‚นไฝ๏ผš1Y/3Y/5Y/7Y/10Y/30Y
+- 10Yๅ›ฝๅ€บไธบๆ ธๅฟƒๅŸบๅ‡†ๅˆฉ็އ
+
+---
+
+### 2.2 ไผไธšๅ€บๅˆ†ๆž
+
+#### ๆ ธๅฟƒๆŒ‡ๆ ‡
+
+**็ฅจ้ขๅˆฉ็އ๏ผˆCoupon Rate๏ผ‰**๏ผšๅ‘่กŒๆ—ถ็บฆๅฎš๏ผŒๆŒ‰้ขๅ€ผ่ฎกๆฏใ€‚
+
+**ๅˆฐๆœŸๆ”ถ็›Š็އ YTM๏ผˆYield to Maturity๏ผ‰**๏ผš
+ไฝฟ ๅ€บๅˆธ็Žฐๅ€ผ = ๅธ‚ๅœบไปทๆ ผ็š„ๅ†…้ƒจๆ”ถ็›Š็އ๏ผš
+```
+P = ฮฃ [C/(1+y)^t] + F/(1+y)^n
+```
+ๅ…ถไธญ C=็ฅจๆฏ๏ผŒF=้ขๅ€ผ๏ผŒy=YTM๏ผŒn=ๆœŸๆ•ฐใ€‚
+
+**ๅฝ“ๆœŸๆ”ถ็›Š็އ๏ผˆCurrent Yield๏ผ‰**๏ผš`CY = ๅนด็ฅจๆฏ / ๅธ‚ๅœบไปทๆ ผ`๏ผˆๅฟฝ็•ฅๆœฌ้‡‘ๆŸ็›Š๏ผ‰
+
+**ไฟฎๆญฃไน…ๆœŸ๏ผˆModified Duration๏ผ‰**๏ผš
+```
+MD = -dP/P รท dy = Macaulay Duration / (1+y/m)
+```
+ๅซไน‰๏ผšๅˆฉ็އๆฏๅ˜ๅŒ–1%๏ผŒๅ€บๅˆธไปทๆ ผๅ˜ๅŒ–็บฆMD%๏ผˆๅๅ‘๏ผ‰ใ€‚
+
+**ๅ‡ธๆ€ง๏ผˆConvexity๏ผ‰**๏ผš
+```
+CX = [ฮฃ t(t+1)ยทCF_t/(1+y)^(t+2)] / P
+ไปทๆ ผๅ˜ๅŒ–ไฟฎๆญฃ๏ผšฮ”P/P โ‰ˆ -MDยทฮ”y + 0.5ยทCXยท(ฮ”y)ยฒ
+```
+
+#### ๅ€บๅˆธไปทๆ ผๅ…ฌๅผ๏ผˆๅฎŒๆ•ด๏ผ‰
+```python
+def bond_price(face, coupon_rate, ytm, n_periods, freq=1):
+ """้™„ๆฏๅ€บๅˆธๅฎšไปท๏ผˆ่ดด็Žฐ็Žฐ้‡‘ๆตๆณ•๏ผ‰ใ€‚
+
+ Args:
+ face: ้ขๅ€ผ
+ coupon_rate: ็ฅจ้ขๅˆฉ็އ๏ผˆๅนดๅŒ–๏ผ‰
+ ytm: ๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆๅนดๅŒ–๏ผ‰
+ n_periods: ๅ‰ฉไฝ™ไป˜ๆฏๆœŸๆ•ฐ
+ freq: ๆฏๅนดไป˜ๆฏๆฌกๆ•ฐ๏ผˆ1=ๅนดไป˜๏ผŒ2=ๅŠๅนดไป˜๏ผ‰
+
+ Returns:
+ ๅ€บๅˆธ็Žฐๅ€ผ๏ผˆ่„ไปท๏ผ‰
+ """
+ c = face * coupon_rate / freq
+ y = ytm / freq
+ pv_coupons = c * (1 - (1+y)**(-n_periods)) / y
+ pv_face = face / (1+y)**n_periods
+ return pv_coupons + pv_face
+```
+
+---
+
+### 2.3 ๅฏ่ฝฌๅ€บ๏ผˆ็บฏๅ€บ้ƒจๅˆ†๏ผ‰
+
+> ๅฏ่ฝฌๅ€บ็š„่ฝฌ่‚กๆœŸๆƒ้ƒจๅˆ†่ฏฆ่ง `convertible-bond` skill๏ผŒๆœฌ่Š‚่š็„ฆ็บฏๅ€บไปทๅ€ผใ€‚
+
+**็บฏๅ€บไปทๅ€ผ๏ผˆBond Floor๏ผ‰**๏ผš
+```
+็บฏๅ€บไปทๅ€ผ = ฮฃ [็ฅจๆฏ/(1+r_straight)^t] + ้ขๅ€ผ/(1+r_straight)^n
+```
+ๅ…ถไธญ r_straight ไธบๅŒ่ฏ„็บงๅŒๆœŸ้™็›ดๅ€บๆ”ถ็›Š็އใ€‚
+
+**่ฝฌ่‚กๆบขไปท็އไธŽ็บฏๅ€บๆบขไปท็އ**๏ผš
+- ่ฝฌ่‚กๆบขไปท็އ = (ๅฏ่ฝฌๅ€บไปทๆ ผ - ่ฝฌ่‚กไปทๅ€ผ) / ่ฝฌ่‚กไปทๅ€ผ
+- ็บฏๅ€บๆบขไปท็އ = (ๅฏ่ฝฌๅ€บไปทๆ ผ - ็บฏๅ€บไปทๅ€ผ) / ็บฏๅ€บไปทๅ€ผ
+
+**ไธ‹ไฟฎๆกๆฌพไฟก็”จๅซไน‰**๏ผš
+ไธ‹ไฟฎ่ฝฌ่‚กไปทๅฏ่ƒฝๅฏผ่‡ดๆ‘Š่–„๏ผŒ้œ€่ฏ„ไผฐๅ…ฌๅธๆ„ๆ„ฟ๏ผˆๅผบ่ตŽๅ†ฒๅŠจ vs ๅ›žๅ”ฎๅŽ‹ๅŠ›๏ผ‰ใ€‚
+
+---
+
+### 2.4 ABS/MBS ๅˆ†ๆž
+
+#### ๅบ•ๅฑ‚่ต„ไบงๅˆ†ๆžๆก†ๆžถ
+
+**่ต„ไบง่ดจ้‡ๆŒ‡ๆ ‡**๏ผš
+- ๅŠ ๆƒๅนณๅ‡็ฅจๆฏ๏ผˆWAC๏ผ‰
+- ๅŠ ๆƒๅนณๅ‡ๅ‰ฉไฝ™ๆœŸ้™๏ผˆWAM๏ผ‰
+- ๅŠ ๆƒๅนณๅ‡่ดทๆฌพไปทๅ€ผๆฏ”๏ผˆLTV๏ผ‰
+- ๅކๅฒ้€พๆœŸ็އ๏ผˆDPD 30/60/90+๏ผ‰
+- ็ดฏ่ฎก่ฟ็บฆ็އ๏ผˆCDR๏ผŒCumulative Default Rate๏ผ‰
+
+**ๆ—ฉๅฟ็އๆจกๅž‹**๏ผš
+- CPR๏ผˆConditional Prepayment Rate๏ผ‰๏ผšๅนดๅŒ–ๆ—ฉๅฟ็އ
+- SMM๏ผˆSingle Monthly Mortality๏ผ‰๏ผšๆœˆๆ—ฉๅฟ็އ
+ ```
+ CPR = 1 - (1 - SMM)^12
+ SMM = 1 - (1 - CPR)^(1/12)
+ ```
+- PSA ๆจกๅž‹๏ผšๆ ‡ๅ‡†ๆ—ฉๅฟๅ‡่ฎพ๏ผˆPSA100 = ๅ‰30ไธชๆœˆ็บฟๆ€งๅขž่‡ณ6%/ๅนด๏ผŒไน‹ๅŽ6%/ๅนดๆ’ๅฎš๏ผ‰
+
+**ๅˆ†ๅฑ‚็ป“ๆž„๏ผˆTranche๏ผ‰ๅˆ†ๆž**๏ผš
+- ไผ˜ๅ…ˆ็บง๏ผˆSenior๏ผ‰๏ผšๆœ€ๅ…ˆๅ—ๅฟ๏ผŒ่ฏ„็บงๆœ€้ซ˜
+- ๅคนๅฑ‚๏ผˆMezzanine๏ผ‰๏ผšๆฌก็บงๅ—ๅฟ
+- ๅŠฃๅŽ็บง๏ผˆEquity/Junior๏ผ‰๏ผš้ฆ–ๅ…ˆๅธๆ”ถๆŸๅคฑ๏ผŒ่ถ…้ขๅˆฉๅทฎๅฝ’ๅฑž
+
+**ๅ…ณ้”ฎ้ฃŽ้™ฉๆŒ‡ๆ ‡**๏ผš
+```
+ๅขžไฟกๅ€ๆ•ฐ = (ๅบ•ๅฑ‚่ต„ไบงๆฑ ่ง„ๆจก - ไผ˜ๅ…ˆ็บง่ง„ๆจก) / ไผ˜ๅ…ˆ็บง่ง„ๆจก
+่ถ…้ขๅˆฉๅทฎ = ๅบ•ๅฑ‚่ต„ไบงๆฑ ๅˆฉ็އ - ไผ˜ๅ…ˆ็บง่ž่ต„ๆˆๆœฌ - ๆœๅŠก่ดน
+```
+
+---
+
+### 2.5 ๅŸŽๆŠ•ๅ€บไฟก็”จๅˆ†ๆž
+
+ๅŸŽๆŠ•ๅ€บ๏ผˆLGFV๏ผŒๅœฐๆ–นๆ”ฟๅบœ่ž่ต„ๅนณๅฐๅ€บ๏ผ‰ๆ˜ฏไธญๅ›ฝๅ›บๆ”ถๅธ‚ๅœบ็‰นๆœ‰ๅ“็งใ€‚
+
+#### ๅˆ†ๆžๆก†ๆžถ
+
+**ๅ››็ปด่ฏ„ไผฐๆจกๅž‹**๏ผš
+
+| ็ปดๅบฆ | ๆ ธๅฟƒๆŒ‡ๆ ‡ | ๆƒ้‡ |
+|------|----------|------|
+| ๅŒบๅŸŸ่ดขๆ”ฟๅฎžๅŠ› | ไธ€่ˆฌๅ…ฌๅ…ฑ้ข„็ฎ—ๆ”ถๅ…ฅใ€GDP่ง„ๆจกใ€่ดขๆ”ฟ่‡ช็ป™็އ | 40% |
+| ๅนณๅฐๅฑ‚็บง | ็œ็บง>ๅธ‚็บง>ๅŒบๅŽฟ็บง๏ผŒ็บงๅˆซ่ถŠ้ซ˜้šๆ€งๆ”ฏๆŒ่ถŠๅผบ | 25% |
+| ๅนณๅฐๅœฐไฝ | ๆ˜ฏๅฆๅ”ฏไธ€ๅŸŽๆŠ•ใ€่ต„ไบงๆณจๅ…ฅๅŠ›ๅบฆใ€ไธšๅŠกๅคšๅ…ƒๅŒ– | 20% |
+| ๅ€บๅŠก็ป“ๆž„ | ๆœ‰ๆฏ่ดŸๅ€บ่ง„ๆจกใ€็ŸญๆœŸๅ€บๅŠกๅ ๆฏ”ใ€ๅ†่ž่ต„ๅŽ‹ๅŠ› | 15% |
+
+**้šๆ€งๅ€บๅŠก้ฃŽ้™ฉไฟกๅท**๏ผš
+- ๅŸŽๆŠ•่ดงๅธ่ต„้‡‘/็ŸญๆœŸๅ€บๅŠก < 0.5๏ผˆๆตๅŠจๆ€ง็ดงๅผ ๏ผ‰
+- EBITDAๅˆฉๆฏ่ฆ†็›–็އ < 1๏ผˆไพ่ต–ๅค–้ƒจ่ž่ต„ไป˜ๆฏ๏ผ‰
+- ้žๆ ‡่ž่ต„ๅ ๆฏ”>30%๏ผˆๅ†่ž่ต„้ฃŽ้™ฉ้ซ˜๏ผ‰
+- ๅŒบๅŽฟ็บงๅŸŽๆŠ•ใ€ๅผฑๅŒบๅŸŸ๏ผˆ่ดŸๅ€บ็އ>100%๏ผ‰
+
+**ๅŸŽๆŠ•ไผฐๅ€ผๆบขไปท็ป“ๆž„**๏ผˆๅ‚่€ƒ๏ผ‰๏ผš
+```
+ๅŸŽๆŠ•ๅˆฉ็އ โ‰ˆ ๅŒๆœŸๅ›ฝๅ€บ + ๆตๅŠจๆ€งๆบขไปท(30-50bp) + ๅŒบๅŸŸๆบขไปท(0-200bp) + ๅนณๅฐๆบขไปท(0-100bp)
+```
+
+**ๆ”ฟ็ญ–้ฃŽ้™ฉ**๏ผš2023ๅนดๅŸŽๆŠ•ๅŒ–ๅ€บๆ”ฟ็ญ–ๅŽๅˆ†ๅŒ–ๅŠ ๅ‰ง๏ผŒๅ…ณๆณจ๏ผš
+- ไธ€ๆฝๅญๅŒ–ๅ€บ่ฟ›ๅบฆ
+- ๅนณๅฐ่ฝฌๅž‹๏ผˆๅŸŽๆŠ•่ฝฌไผไธš๏ผ‰
+- ๅŒบๅŸŸๅๅ•็ฎก็†ๆ”ฟ็ญ–
+
+---
+
+## ไธ‰ใ€ๅˆฉ็އ้ฃŽ้™ฉ็ฎก็†
+
+### 3.1 ไน…ๆœŸไฝ“็ณป
+
+#### Macaulay Duration๏ผˆ้บฆ่€ƒๅˆฉไน…ๆœŸ๏ผ‰
+
+ๆ—ถ้—ดๅŠ ๆƒ็Žฐ้‡‘ๆต็Žฐๅ€ผไน‹ๅ’Œ๏ผŒๅ•ไฝไธบ"ๅนด"๏ผš
+```
+D_mac = ฮฃ [t ร— CF_t/(1+y)^t] / P
+```
+
+#### Modified Duration๏ผˆไฟฎๆญฃไน…ๆœŸ๏ผ‰
+
+ๅˆฉ็އๆ•ๆ„Ÿๆ€งๅบฆ้‡๏ผš
+```
+D_mod = D_mac / (1 + y/m)
+ฮ”P โ‰ˆ -D_mod ร— P ร— ฮ”y
+```
+
+#### Effective Duration๏ผˆๆœ‰ๆ•ˆไน…ๆœŸ๏ผ‰
+
+้€‚็”จไบŽๅซๆƒๅ€บๅˆธ๏ผˆๅฏ่ตŽๅ›žๅ€บใ€MBS็ญ‰๏ผ‰๏ผš
+```
+D_eff = (P_down - P_up) / (2 ร— P_0 ร— ฮ”y)
+```
+ๅ…ถไธญ P_down/P_up ไธบๅˆฉ็އไธ‹็งป/ไธŠ็งปฮ”yๅŽ็š„ไปทๆ ผใ€‚
+
+#### Dollar Duration๏ผˆไน…ๆœŸ้‡‘้ข๏ผ‰
+
+```
+Dollar Duration = D_mod ร— P ร— ้ขๅ€ผ
+```
+
+---
+
+### 3.2 ๅ‡ธๆ€ง๏ผˆConvexity๏ผ‰
+
+่กก้‡ไน…ๆœŸๅฏนๅˆฉ็އ็š„ๆ•ๆ„Ÿๆ€ง๏ผˆไบŒ้˜ถๆ•ˆๅบ”๏ผ‰๏ผš
+
+```
+C = ฮฃ [t(t+1) ร— CF_t/(1+y)^(t+2)] / P
+
+ไปทๆ ผ็ฒพ็กฎไผฐ็ฎ—๏ผš
+ฮ”P/P โ‰ˆ -D_modยทฮ”y + 0.5ยทCยท(ฮ”y)ยฒ
+```
+
+**ๅ‡ธๆ€ง็š„ไปทๅ€ผ**๏ผšๆญฃๅ‡ธๆ€งไฝฟๅ€บๅˆธๅœจๅˆฉ็އไธ‹่กŒๆ—ถๆถจๅน…ๅคงไบŽ้ข„ๆœŸ๏ผˆๅˆฉ็އไธŠ่กŒๆ—ถ่ทŒๅน…ๅฐไบŽ้ข„ๆœŸ๏ผ‰๏ผŒๅ› ๆญคๆญฃๅ‡ธๆ€งๅ€บๅˆธๆฏ”่ดŸๅ‡ธๆ€งๅ€บๅˆธ๏ผˆๅฆ‚ๅฏ่ตŽๅ›žๅ€บใ€MBS๏ผ‰ๆ›ดๅ—้’็ใ€‚
+
+---
+
+### 3.3 DV01๏ผˆๅŸบ็‚นไปทๅ€ผ๏ผ‰
+
+ๅˆฉ็އๅ˜ๅŠจ1ๅŸบ็‚น๏ผˆ0.01%๏ผ‰ๅฏผ่‡ด็š„ไปทๆ ผๅ˜ๅŒ–๏ผš
+```
+DV01 = D_mod ร— P ร— 0.0001
+```
+
+็ป„ๅˆๅฑ‚้ข๏ผš`Portfolio DV01 = ฮฃ (DV01_i ร— ๆŒไป“้‡_i)`
+
+**็”จ้€”**๏ผšๅˆฉ็އๅฏนๅ†ฒๆฏ”็އ่ฎก็ฎ—
+```
+ๅฏนๅ†ฒๆฏ”็އ = DV01_่ขซๅฏนๅ†ฒๅคดๅฏธ / DV01_ๅฏนๅ†ฒๅทฅๅ…ท
+```
+
+---
+
+### 3.4 ๅ…ณ้”ฎๅˆฉ็އไน…ๆœŸ๏ผˆKey Rate Duration, KRD๏ผ‰
+
+่กก้‡ๆ”ถ็›Š็އๆ›ฒ็บฟๅ„ๅ…ณ้”ฎๆœŸ้™ๅนณ่กŒ็งปๅŠจ1bpๅฏนไปทๆ ผ็š„ๅฝฑๅ“๏ผš
+- ๅธธ็”จๅ…ณ้”ฎ็‚น๏ผš1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 20Y, 30Y
+- `KRD_i = -ฮ”P/(P ร— ฮ”y_i)`๏ผˆไป…็ฌฌiไธชๅ…ณ้”ฎๅˆฉ็އๅ˜ๅŠจ1bp๏ผ‰
+- `ฮฃ KRD_i โ‰ˆ D_mod`๏ผˆๅ„ๅ…ณ้”ฎๅˆฉ็އไน…ๆœŸไน‹ๅ’Œ็บฆ็ญ‰ไบŽไฟฎๆญฃไน…ๆœŸ๏ผ‰
+
+**ๅบ”็”จ**๏ผš
+- ่ฏ†ๅˆซ็ป„ๅˆๅฏน็‰นๅฎšๆœŸ้™ๅˆฉ็އ็š„ๆšด้œฒ
+- ็ฒพ็กฎๅฏนๅ†ฒ้žๅนณ่กŒ็งปๅŠจ้ฃŽ้™ฉ๏ผˆๆ‰ญๆ›ฒ/่ถๅผ๏ผ‰
+
+---
+
+### 3.5 ๅ…็–ซ็ญ–็•ฅ
+
+**ไน…ๆœŸๅŒน้…๏ผˆDuration Matching๏ผ‰**๏ผš
+ไฝฟ่ต„ไบง็ป„ๅˆไน…ๆœŸ = ่ดŸๅ€บไน…ๆœŸ๏ผŒๅฏนๅˆฉ็އๅนณ่กŒ็งปๅŠจๅ…็–ซใ€‚
+ๆกไปถ๏ผš`ฮฃ (w_i ร— D_i) = D_liability`
+
+**็Žฐ้‡‘ๆตๅŒน้…๏ผˆCash Flow Matching๏ผ‰**๏ผš
+็›ดๆŽฅๅŒน้…ๆฏๆœŸ็Žฐ้‡‘ๆต๏ผŒๅฝปๅบ•ๆถˆ้™คๅ†ๆŠ•่ต„้ฃŽ้™ฉ๏ผŒไฝ†็ตๆดปๆ€งๅทฎใ€ๆˆๆœฌ้ซ˜ใ€‚
+
+**ๆกไปถๅ…็–ซ๏ผˆContingent Immunization๏ผ‰**๏ผš
+ๅฝ“็ป„ๅˆไปทๅ€ผ่ถ…่ฟ‡ๅฎ‰ๅ…จๅบ•็บฟๆ—ถไธปๅŠจ็ฎก็†๏ผŒ่ทŒ่‡ณๅบ•็บฟๆ—ถๅˆ‡ๆขไธบ่ขซๅŠจๅ…็–ซใ€‚
+
+**ๅ†ๅนณ่กก้ข‘็އ**๏ผš
+- ไน…ๆœŸ้šๆ—ถ้—ดๆผ‚็งป๏ผŒ้œ€ๅฎšๆœŸ๏ผˆๅญฃๅบฆ/ๆœˆๅบฆ๏ผ‰ๅ†ๅนณ่กก
+- ๅˆฉ็އๅคงๅน…ๅ˜ๅŠจ๏ผˆ>50bp๏ผ‰ๅŽ็ซ‹ๅณๅ†ๅนณ่กก
+
+---
+
+## ๅ››ใ€ไฟก็”จๅˆฉๅทฎๅˆ†ๆž
+
+### 4.1 ไฟก็”จๅˆฉๅทฎ็š„ๆž„ๆˆ
+
+```
+ไฟก็”จๅˆฉๅทฎ๏ผˆCredit Spread๏ผ‰= ่ฟ็บฆ้ฃŽ้™ฉๆบขไปท + ๆตๅŠจๆ€งๆบขไปท + ็จŽๆ”ถๆบขไปท๏ผˆ้ƒจๅˆ†ๅธ‚ๅœบ๏ผ‰
+```
+
+| ็ป„ๆˆ้ƒจๅˆ† | ๅฝฑๅ“ๅ› ็ด  | ้‡ๅŒ–ๆ–นๅผ |
+|----------|----------|----------|
+| ่ฟ็บฆ้ฃŽ้™ฉๆบขไปท | ่ฏ„็บงใ€่กŒไธšใ€่ดขๅŠก็Šถๅ†ตใ€ๅฎ่ง‚ๅ‘จๆœŸ | CDSๆŠฅไปทใ€ๆจกๅž‹ๆต‹็ฎ— |
+| ๆตๅŠจๆ€งๆบขไปท | ๅ‘่กŒ่ง„ๆจกใ€ๅ‰ฉไฝ™ๆœŸ้™ใ€ๅธ‚ๅœบๆทฑๅบฆ | ไนฐๅ–ไปทๅทฎใ€ๆขๆ‰‹็އ |
+| ็จŽๆ”ถๆบขไปท | ๅ›ฝๅ€บๅ…็จŽไผ˜ๆƒ ๏ผˆ้ƒจๅˆ†ๅ›ฝๅฎถ/ๆŠ•่ต„่€…๏ผ‰ | ๅˆฉ็އๅทฎๅผ‚ๅˆ†ๆž |
+
+**ๅˆฉๅทฎ่กก้‡ๅŸบๅ‡†**๏ผš
+- ๅ›ฝ้™…ๅธ‚ๅœบ๏ผšG-Spread๏ผˆvs ๅ›ฝๅ€บ๏ผ‰ใ€I-Spread๏ผˆvs ๆމๆœŸ๏ผ‰ใ€Z-Spread๏ผˆ้›ถๆฏๅˆฉๅทฎ๏ผ‰ใ€OAS๏ผˆๆœŸๆƒ่ฐƒๆ•ดๅˆฉๅทฎ๏ผ‰
+- ไธญๅ›ฝๅธ‚ๅœบ๏ผšไฟก็”จๅˆฉๅทฎ้€šๅธธๅฏนๆฏ”ๅ›ฝๅ€บๆˆ–AAAๅŸŽๆŠ•
+
+**OAS๏ผˆOption-Adjusted Spread๏ผ‰**๏ผš
+ๅ‰ฅ็ฆปๅตŒๅ…ฅๆœŸๆƒไปทๅ€ผๅŽ็š„ไฟก็”จๅˆฉๅทฎ๏ผŒ้€‚็”จไบŽๅซๆƒๅ€บๆฏ”่พƒ๏ผš
+```
+P = ฮฃ CF_t / (1 + r_t + OAS)^t
+```
+
+---
+
+### 4.2 ไฟก็”จๅˆฉๅทฎๆ›ฒ็บฟๅฝขๆ€
+
+**ๆญฃๆ–œ็އ**๏ผˆๅธธ่ง๏ผ‰๏ผš้•ฟๆœŸๅˆฉๅทฎ > ็ŸญๆœŸๅˆฉๅทฎ๏ผŒๅๆ˜ ๆœŸ้™ไธ็กฎๅฎšๆ€งๅ ๅŠ ใ€‚
+
+**ๅนณๅฆ/ๅ€’ๆŒ‚**๏ผš
+- ๅธ‚ๅœบๅฏน้•ฟๆœŸไฟก็”จ้ฃŽ้™ฉไน่ง‚๏ผˆๅนณๅฆ๏ผ‰
+- ็ŸญๆœŸๆตๅŠจๆ€งๅฑๆœบ/ๅ†่ž่ต„ๅ›ฐๅขƒ๏ผˆๅ€’ๆŒ‚๏ผ‰๏ผŒ่ญฆ็คบไฟกๅท
+
+**ไฟก็”จๅˆฉๅทฎไธŽๅ›ฝๅ€บๆ”ถ็›Š็އ็š„็›ธๅ…ณๆ€ง**๏ผš
+- ็ปๆตŽๆ‰ฉๅผ ๏ผšไฟก็”จๅˆฉๅทฎๆ”ถ็ช„๏ผˆ้ฃŽ้™ฉๅๅฅฝไธŠๅ‡๏ผ‰
+- ็ปๆตŽ่กฐ้€€/ไฟก็”จไบ‹ไปถ๏ผšไฟก็”จๅˆฉๅทฎ่ตฐ้˜”
+- "้€ƒๅ‘่ดจ้‡"ๆ•ˆๅบ”๏ผšๅ›ฝๅ€บๆ”ถ็›Š็އไธ‹่กŒ+ไฟก็”จๅˆฉๅทฎๆ‰ฉๅคง๏ผŒๅŒ้‡ๆ‰“ๅ‡ป้ซ˜ๆ”ถ็›Šๅ€บ
+
+---
+
+### 4.3 ไฟก็”จๅˆฉๅทฎๅ˜ๅŒ–็š„้ฉฑๅŠจๅ› ็ด 
+
+**ๅฎ่ง‚ๅ› ็ด **๏ผš
+- GDPๅขž้€Ÿใ€PMI๏ผš้ข„ๆœŸๆ”นๅ–„โ†’ๅˆฉๅทฎๆ”ถ็ช„
+- ่ดงๅธๆ”ฟ็ญ–ๅฎฝๆพ๏ผšๆตๅŠจๆ€งๆบขไปทไธ‹้™
+- ไฟก็”จไบ‹ไปถ๏ผˆ่ฟ็บฆๆฝฎ๏ผ‰๏ผš็ณป็ปŸๆ€งๅˆฉๅทฎ่ตฐ้˜”
+
+**่กŒไธšๅ› ็ด **๏ผš
+- ่กŒไธšๆ”ฟ็ญ–๏ผˆๅฆ‚ๅœฐไบง่ฐƒๆŽงใ€ๅŸŽๆŠ•ๅŒ–ๅ€บ๏ผ‰
+- ่กŒไธšๆ™ฏๆฐ”ๅ‘จๆœŸ
+- ๅ†่ž่ต„็Žฏๅขƒ
+
+**ไธชๅˆธๅ› ็ด **๏ผš
+- ่ฏ„็บง่ฐƒๆ•ด๏ผˆไธ‹่ฐƒโ†’ๅˆฉๅทฎ่ทณๅ‡๏ผ‰
+- ่ดขๅŠกๆ•ฐๆฎๅ˜ๅŒ–
+- ๅˆฐๆœŸๅŽ‹ๅŠ›๏ผˆไธด่ฟ‘ๅˆฐๆœŸโ†’ๆตๅŠจๆ€งๅˆฉๅทฎๅขžๅŠ ๏ผ‰
+
+---
+
+### 4.4 ไฟก็”จๅˆฉๅทฎไบคๆ˜“็ญ–็•ฅ
+
+**ๅˆฉๅทฎๅŽ‹็ผฉไบคๆ˜“๏ผˆSpread Tightening๏ผ‰**๏ผš
+ๅšๅคš่ขซไฝŽไผฐ๏ผˆ้ซ˜ๅˆฉๅทฎ๏ผ‰ไฟก็”จๅ€บ๏ผŒๅš็ฉบๅ›ฝๅ€บๅฏนๅ†ฒๅˆฉ็އ้ฃŽ้™ฉใ€‚
+- ้€‚็”จๅœบๆ™ฏ๏ผš็ปๆตŽๅค่‹ๅˆๆœŸใ€ๅคฎ่กŒๅฎฝๆพๅ‘จๆœŸ
+
+**ๅˆฉๅทฎๆ‰ฉๅคงไบคๆ˜“๏ผˆSpread Widening๏ผ‰**๏ผš
+ๅš็ฉบไฟก็”จๅ€บ๏ผˆ้€š่ฟ‡CDS๏ผ‰๏ผŒๅšๅคšๅ›ฝๅ€บใ€‚
+- ้€‚็”จๅœบๆ™ฏ๏ผš็ปๆตŽไธ‹่กŒใ€ไฟก็”จไบ‹ไปถ้ข‘ๅ‘
+
+**่ทจ่ฏ„็บงๅˆฉๅทฎไบคๆ˜“**๏ผš
+ๅšๅคš้ซ˜ๆ”ถ็›Š/ๅš็ฉบๆŠ•่ต„็บง๏ผˆๅˆฉๅทฎๅŽ‹็ผฉๆ—ถ๏ผ‰๏ผŒๆˆ–็›ธๅใ€‚
+
+**่ถๅผๅˆฉๅทฎไบคๆ˜“๏ผˆButterfly๏ผ‰**๏ผš
+ๅšๅคšไธญๆœŸใ€ๅš็ฉบ็Ÿญ็ซฏๅ’Œ้•ฟ็ซฏ๏ผŒ่ŽทๅˆฉไบŽไฟก็”จๆ›ฒ็บฟไธญๆฎต็š„็›ธๅฏนไปทๅ€ผใ€‚
+
+**ไธญๅ›ฝ็‰น่‰ฒๅทฅๅ…ท**๏ผš
+- ไฟก็”จ้ฃŽ้™ฉ็ผ“้‡Šๅทฅๅ…ท๏ผˆCRMW/CDS๏ผ‰๏ผšๅฏนๅ†ฒไฟก็”จ้ฃŽ้™ฉ
+- ๅ›ฝๅ€บๆœŸ่ดง๏ผšๅฏนๅ†ฒๅˆฉ็އไน…ๆœŸ้ฃŽ้™ฉ
+
+---
+
+## ไบ”ใ€Python ไปฃ็ ๆจกๆฟ
+
+### 5.1 ๅ€บๅˆธๅฎšไปทไธŽไน…ๆœŸ่ฎก็ฎ—
+
+```python
+import numpy as np
+from scipy.optimize import brentq
+
+
+def bond_price(face: float, coupon_rate: float, ytm: float,
+ n_periods: int, freq: int = 1) -> float:
+ """้™„ๆฏๅ€บๅˆธๅ‡€็Žฐๅ€ผๅฎšไปทใ€‚
+
+ Args:
+ face: ้ขๅ€ผ๏ผŒ้€šๅธธ100
+ coupon_rate: ๅนด็ฅจ้ขๅˆฉ็އ๏ผˆๅฐๆ•ฐๅฝขๅผ๏ผŒๅฆ‚0.05่กจ็คบ5%๏ผ‰
+ ytm: ๅนดๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆๅฐๆ•ฐๅฝขๅผ๏ผ‰
+ n_periods: ๅ‰ฉไฝ™ไป˜ๆฏๆœŸๆ•ฐ
+ freq: ๆฏๅนดไป˜ๆฏๆฌกๆ•ฐ๏ผˆ1=ๅนดไป˜๏ผŒ2=ๅŠๅนดไป˜๏ผ‰
+
+ Returns:
+ ๅ€บๅˆธๅ…จไปท๏ผˆ่„ไปท๏ผ‰
+
+ Examples:
+ >>> bond_price(100, 0.05, 0.04, 5) # 5ๅนดๆœŸใ€5%็ฅจๆฏใ€YTM=4%
+ 104.4518...
+ """
+ c = face * coupon_rate / freq
+ y = ytm / freq
+ if y == 0:
+ return c * n_periods + face
+ pv_coupons = c * (1 - (1 + y) ** (-n_periods)) / y
+ pv_face = face / (1 + y) ** n_periods
+ return pv_coupons + pv_face
+
+
+def ytm_solve(price: float, face: float, coupon_rate: float,
+ n_periods: int, freq: int = 1) -> float:
+ """็ป™ๅฎšๅธ‚ๅœบไปทๆ ผๅๆฑ‚YTM๏ผˆๆ•ฐๅ€ผ่งฃๆณ•๏ผ‰ใ€‚
+
+ Args:
+ price: ๅ€บๅˆธๅธ‚ๅœบไปทๆ ผ๏ผˆ่„ไปท๏ผ‰
+ face: ้ขๅ€ผ
+ coupon_rate: ๅนด็ฅจ้ขๅˆฉ็އ
+ n_periods: ๅ‰ฉไฝ™ไป˜ๆฏๆœŸๆ•ฐ
+ freq: ๆฏๅนดไป˜ๆฏๆฌกๆ•ฐ
+
+ Returns:
+ ๅนดๅŒ–YTM๏ผˆๅฐๆ•ฐๅฝขๅผ๏ผ‰
+
+ Raises:
+ ValueError: ๆ— ๆณ•ๅœจๅˆ็†่Œƒๅ›ดๅ†…ๆ‰พๅˆฐ่งฃๆ—ถ
+ """
+ def pv_diff(y):
+ return bond_price(face, coupon_rate, y, n_periods, freq) - price
+
+ try:
+ return brentq(pv_diff, -0.5, 10.0)
+ except ValueError as e:
+ raise ValueError(f"ๆ— ๆณ•ๆฑ‚่งฃYTM๏ผŒๆฃ€ๆŸฅ่พ“ๅ…ฅๅ‚ๆ•ฐ: {e}")
+
+
+def macaulay_duration(face: float, coupon_rate: float, ytm: float,
+ n_periods: int, freq: int = 1) -> float:
+ """Macaulayไน…ๆœŸ๏ผˆๅ•ไฝ๏ผšๆœŸๆ•ฐ๏ผŒ้™คไปฅfreqๅพ—ๅนดๆ•ฐ๏ผ‰ใ€‚
+
+ Args:
+ face: ้ขๅ€ผ
+ coupon_rate: ๅนด็ฅจ้ขๅˆฉ็އ
+ ytm: ๅนดๅˆฐๆœŸๆ”ถ็›Š็އ
+ n_periods: ๅ‰ฉไฝ™ไป˜ๆฏๆœŸๆ•ฐ
+ freq: ๆฏๅนดไป˜ๆฏๆฌกๆ•ฐ
+
+ Returns:
+ Macaulayไน…ๆœŸ๏ผˆๅนด๏ผ‰
+ """
+ c = face * coupon_rate / freq
+ y = ytm / freq
+ price = bond_price(face, coupon_rate, ytm, n_periods, freq)
+
+ weighted_sum = sum(
+ t * (c / (1 + y) ** t)
+ for t in range(1, n_periods)
+ ) + n_periods * ((c + face) / (1 + y) ** n_periods)
+
+ return (weighted_sum / price) / freq
+
+
+def modified_duration(face: float, coupon_rate: float, ytm: float,
+ n_periods: int, freq: int = 1) -> float:
+ """ไฟฎๆญฃไน…ๆœŸใ€‚
+
+ Returns:
+ ไฟฎๆญฃไน…ๆœŸ๏ผˆๅฏนytm็š„ไปทๆ ผๅผนๆ€ง๏ผŒๅ–่ดŸๅทๅŽ๏ผ‰
+ """
+ d_mac = macaulay_duration(face, coupon_rate, ytm, n_periods, freq)
+ return d_mac / (1 + ytm / freq)
+
+
+def convexity(face: float, coupon_rate: float, ytm: float,
+ n_periods: int, freq: int = 1) -> float:
+ """ๅ€บๅˆธๅ‡ธๆ€งใ€‚
+
+ Returns:
+ ๅ‡ธๆ€ง๏ผˆๅนดยฒ๏ผ‰
+ """
+ c = face * coupon_rate / freq
+ y = ytm / freq
+ price = bond_price(face, coupon_rate, ytm, n_periods, freq)
+
+ conv_sum = sum(
+ t * (t + 1) * (c / (1 + y) ** (t + 2))
+ for t in range(1, n_periods)
+ ) + n_periods * (n_periods + 1) * ((c + face) / (1 + y) ** (n_periods + 2))
+
+ return (conv_sum / price) / (freq ** 2)
+
+
+def dv01(face: float, coupon_rate: float, ytm: float,
+ n_periods: int, freq: int = 1, par_amount: float = 1_000_000) -> float:
+ """DV01๏ผˆๆฏ็™พไธ‡้ขๅ€ผ็š„ๅŸบ็‚นไปทๅ€ผ๏ผ‰ใ€‚
+
+ Args:
+ par_amount: ๆŒไป“้ขๅ€ผ๏ผŒ้ป˜่ฎค100ไธ‡
+
+ Returns:
+ ๆฏ1bpๅˆฉ็އๅ˜ๅŠจๅฏนๅบ”็š„ไปทๆ ผๅ˜ๅŒ–๏ผˆๅ…ƒ๏ผ‰
+ """
+ d_mod = modified_duration(face, coupon_rate, ytm, n_periods, freq)
+ price = bond_price(face, coupon_rate, ytm, n_periods, freq)
+ return d_mod * (price / 100) * 0.0001 * par_amount
+```
+
+---
+
+### 5.2 ๆ”ถ็›Š็އๆ›ฒ็บฟๆ‹Ÿๅˆ๏ผˆNelson-Siegel / Svensson๏ผ‰
+
+```python
+import numpy as np
+from scipy.optimize import minimize
+from typing import Tuple
+
+
+def nelson_siegel(tau: np.ndarray, beta0: float, beta1: float,
+ beta2: float, lambda1: float) -> np.ndarray:
+ """Nelson-Siegel ๅณๆœŸๅˆฉ็އๆจกๅž‹ใ€‚
+
+ Args:
+ tau: ๆœŸ้™ๆ•ฐ็ป„๏ผˆๅนด๏ผ‰
+ beta0: ้•ฟๆœŸๅˆฉ็އๆฐดๅนณ๏ผˆlevel๏ผ‰
+ beta1: ๆ–œ็އๅ› ๅญ๏ผˆslope๏ผ‰
+ beta2: ๆ›ฒ็އๅ› ๅญ๏ผˆcurvature๏ผ‰
+ lambda1: ๆ›ฒ็บฟ่กฐๅ‡้€Ÿๅบฆ
+
+ Returns:
+ ๅ„ๆœŸ้™ๅณๆœŸๅˆฉ็އๆ•ฐ็ป„
+ """
+ factor1 = (1 - np.exp(-tau / lambda1)) / (tau / lambda1)
+ factor2 = factor1 - np.exp(-tau / lambda1)
+ return beta0 + beta1 * factor1 + beta2 * factor2
+
+
+def svensson(tau: np.ndarray, beta0: float, beta1: float,
+ beta2: float, beta3: float,
+ lambda1: float, lambda2: float) -> np.ndarray:
+ """Svensson ๆจกๅž‹๏ผˆNSๆ‰ฉๅฑ•๏ผŒๅŒๆ›ฒ็އๅ› ๅญ๏ผ‰ใ€‚
+
+ Args:
+ tau: ๆœŸ้™ๆ•ฐ็ป„๏ผˆๅนด๏ผ‰
+ beta0-beta3: ๅ‚ๆ•ฐ
+ lambda1, lambda2: ไธคไธช่กฐๅ‡้€Ÿๅบฆๅ‚ๆ•ฐ
+
+ Returns:
+ ๅ„ๆœŸ้™ๅณๆœŸๅˆฉ็އๆ•ฐ็ป„
+ """
+ f1 = (1 - np.exp(-tau / lambda1)) / (tau / lambda1)
+ f2 = f1 - np.exp(-tau / lambda1)
+ f3 = (1 - np.exp(-tau / lambda2)) / (tau / lambda2) - np.exp(-tau / lambda2)
+ return beta0 + beta1 * f1 + beta2 * f2 + beta3 * f3
+
+
+def fit_yield_curve(maturities: np.ndarray, yields: np.ndarray,
+ model: str = "svensson") -> Tuple[np.ndarray, callable]:
+ """ๆ‹Ÿๅˆๆ”ถ็›Š็އๆ›ฒ็บฟๅนถ่ฟ”ๅ›žๆ’ๅ€ผๅ‡ฝๆ•ฐใ€‚
+
+ Args:
+ maturities: ๅทฒ็Ÿฅๅ€บๅˆธๆœŸ้™๏ผˆๅนด๏ผ‰๏ผŒๅฆ‚ [0.25, 0.5, 1, 2, 3, 5, 7, 10]
+ yields: ๅฏนๅบ”YTM๏ผˆๅฐๆ•ฐ๏ผ‰๏ผŒๅฆ‚ [0.02, 0.021, ...]
+ model: "nelson_siegel" ๆˆ– "svensson"
+
+ Returns:
+ (ๆœ€ไผ˜ๅ‚ๆ•ฐ, ๆ’ๅ€ผๅ‡ฝๆ•ฐ)
+
+ Raises:
+ ValueError: ๆœช็Ÿฅๆจกๅž‹ๅ็งฐ
+ """
+ if model == "nelson_siegel":
+ def objective(params):
+ fitted = nelson_siegel(maturities, *params)
+ return np.sum((fitted - yields) ** 2)
+ x0 = [0.04, -0.02, 0.01, 1.5]
+ bounds = [(0, 0.2), (-0.2, 0.2), (-0.2, 0.2), (0.1, 10)]
+ result = minimize(objective, x0, method="L-BFGS-B", bounds=bounds)
+ return result.x, lambda t: nelson_siegel(np.array(t), *result.x)
+
+ elif model == "svensson":
+ def objective(params):
+ fitted = svensson(maturities, *params)
+ return np.sum((fitted - yields) ** 2)
+ x0 = [0.04, -0.02, 0.01, 0.01, 1.5, 5.0]
+ bounds = [(0, 0.2), (-0.2, 0.2), (-0.2, 0.2), (-0.2, 0.2),
+ (0.1, 10), (0.1, 20)]
+ result = minimize(objective, x0, method="L-BFGS-B", bounds=bounds)
+ return result.x, lambda t: svensson(np.array(t), *result.x)
+
+ else:
+ raise ValueError(f"ๆœช็Ÿฅๆจกๅž‹: {model}๏ผŒๆ”ฏๆŒ nelson_siegel / svensson")
+```
+
+---
+
+### 5.3 Altman Z-Score ่ฎก็ฎ—
+
+```python
+import pandas as pd
+
+
+def altman_z_score(working_capital: float, retained_earnings: float,
+ ebit: float, market_cap: float, total_debt: float,
+ revenue: float, total_assets: float,
+ model: str = "original") -> dict:
+ """Altman Z-Score ่ฟ็บฆ้ฃŽ้™ฉ่ฏ„ไผฐใ€‚
+
+ Args:
+ working_capital: ่ฅ่ฟ่ต„ๆœฌ๏ผˆๆตๅŠจ่ต„ไบง-ๆตๅŠจ่ดŸๅ€บ๏ผ‰
+ retained_earnings: ็•™ๅญ˜ๆ”ถ็›Š
+ ebit: ๆฏ็จŽๅ‰ๅˆฉๆถฆ
+ market_cap: ่‚กๆƒๅธ‚ๅ€ผ๏ผˆoriginal๏ผ‰ๆˆ–่ดฆ้ขๅ‡€่ต„ไบง๏ผˆprime/double_prime๏ผ‰
+ total_debt: ๆ€ปๅ€บๅŠก
+ revenue: ่ฅไธšๆ”ถๅ…ฅ
+ total_assets: ๆ€ป่ต„ไบง
+ model: "original"๏ผˆไธŠๅธ‚ๅˆถ้€ ไธš๏ผ‰| "prime"๏ผˆ็งๆœ‰ไผไธš๏ผ‰| "double_prime"๏ผˆ้žๅˆถ้€ ไธš๏ผ‰
+
+ Returns:
+ ๅซZ-Scoreใ€ๅ„ๅˆ†้กนใ€้ฃŽ้™ฉ็ญ‰็บง็š„ๅญ—ๅ…ธ
+ """
+ x1 = working_capital / total_assets
+ x2 = retained_earnings / total_assets
+ x3 = ebit / total_assets
+ x4 = market_cap / total_debt
+ x5 = revenue / total_assets
+
+ if model == "original":
+ z = 1.2*x1 + 1.4*x2 + 3.3*x3 + 0.6*x4 + 1.0*x5
+ safe_zone = z > 2.99
+ distress_zone = z < 1.81
+ elif model == "prime":
+ z = 0.717*x1 + 0.847*x2 + 3.107*x3 + 0.420*x4 + 0.998*x5
+ safe_zone = z > 2.90
+ distress_zone = z < 1.23
+ elif model == "double_prime":
+ # ๅŽปๆމX5๏ผˆ้žๅˆถ้€ ไธš่ต„ไบงๅ‘จ่ฝฌ็އๆ„ไน‰ไธๅŒ๏ผ‰
+ z = 6.56*x1 + 3.26*x2 + 6.72*x3 + 1.05*x4
+ safe_zone = z > 2.60
+ distress_zone = z < 1.10
+ else:
+ raise ValueError(f"ๆœช็Ÿฅๆจกๅž‹: {model}")
+
+ if safe_zone:
+ risk_level = "ๅฎ‰ๅ…จๅŒบ๏ผˆไฝŽ่ฟ็บฆ้ฃŽ้™ฉ๏ผ‰"
+ elif distress_zone:
+ risk_level = "ๅฑ้™ฉๅŒบ๏ผˆ้ซ˜่ฟ็บฆ้ฃŽ้™ฉ๏ผ‰"
+ else:
+ risk_level = "็ฐ่‰ฒๅŒบ๏ผˆ้œ€ๆทฑๅ…ฅๅˆ†ๆž๏ผ‰"
+
+ return {
+ "z_score": round(z, 4),
+ "risk_level": risk_level,
+ "components": {
+ "X1_ๆตๅŠจๆ€ง": round(x1, 4),
+ "X2_็›ˆๅˆฉ็งฏ็ดฏ": round(x2, 4),
+ "X3_็›ˆๅˆฉ่ƒฝๅŠ›": round(x3, 4),
+ "X4_ๆ ๆ†": round(x4, 4),
+ "X5_ๆ•ˆ็އ": round(x5, 4) if model != "double_prime" else "N/A",
+ }
+ }
+```
+
+---
+
+### 5.4 ไฟก็”จๅˆฉๅทฎๆ—ถๅบๅˆ†ๆž
+
+```python
+import pandas as pd
+import numpy as np
+from typing import Optional
+
+
+def credit_spread_analysis(
+ bond_yields: pd.Series,
+ risk_free_yields: pd.Series,
+ window: int = 252,
+ issuer_name: Optional[str] = None
+) -> pd.DataFrame:
+ """ไฟก็”จๅˆฉๅทฎๆ—ถๅบๅˆ†ๆž๏ผˆZ-Scoreๆ ‡ๅ‡†ๅŒ– + ๅކๅฒๅˆ†ไฝๆ•ฐ๏ผ‰ใ€‚
+
+ Args:
+ bond_yields: ไฟก็”จๅ€บๆ”ถ็›Š็އๆ—ถ้—ดๅบๅˆ—๏ผˆ%๏ผŒๆ—ฅ้ข‘๏ผ‰
+ risk_free_yields: ๅฏนๅบ”ๆœŸ้™ๆ— ้ฃŽ้™ฉๅˆฉ็އ๏ผˆ%๏ผŒๆ—ฅ้ข‘๏ผ‰
+ window: ๆปšๅŠจ็ช—ๅฃ๏ผˆไบคๆ˜“ๆ—ฅๆ•ฐ๏ผ‰๏ผŒ้ป˜่ฎค252๏ผˆ1ๅนด๏ผ‰
+ issuer_name: ๅ‘่กŒไบบๅ็งฐ๏ผŒ็”จไบŽ่พ“ๅ‡บๆ ‡ๆณจ
+
+ Returns:
+ ๅซไฟก็”จๅˆฉๅทฎใ€Z-Scoreใ€ๅކๅฒๅˆ†ไฝๆ•ฐ็š„DataFrame
+
+ Raises:
+ ValueError: ่พ“ๅ…ฅๅบๅˆ—้•ฟๅบฆไธไธ€่‡ดๆ—ถ
+ """
+ if len(bond_yields) != len(risk_free_yields):
+ raise ValueError("ๆ”ถ็›Š็އๅบๅˆ—้•ฟๅบฆๅฟ…้กปไธ€่‡ด")
+
+ spread = bond_yields - risk_free_yields
+ spread.name = f"{issuer_name or 'ๆœช็Ÿฅๅ‘่กŒไบบ'}_ไฟก็”จๅˆฉๅทฎ(bp)"
+ spread_bp = spread * 100 # ่ฝฌๆขไธบๅŸบ็‚น
+
+ result = pd.DataFrame({"ไฟก็”จๅˆฉๅทฎ_bp": spread_bp})
+
+ # ๆปšๅŠจ็ปŸ่ฎก
+ result["ๆปšๅŠจๅ‡ๅ€ผ"] = spread_bp.rolling(window).mean()
+ result["ๆปšๅŠจๆ ‡ๅ‡†ๅทฎ"] = spread_bp.rolling(window).std()
+ result["Z-Score"] = (spread_bp - result["ๆปšๅŠจๅ‡ๅ€ผ"]) / result["ๆปšๅŠจๆ ‡ๅ‡†ๅทฎ"]
+
+ # ๅކๅฒๅˆ†ไฝๆ•ฐ๏ผˆไฝฟ็”จๅ…จๆ ทๆœฌ๏ผ‰
+ result["ๅކๅฒๅˆ†ไฝๆ•ฐ"] = spread_bp.rank(pct=True)
+
+ # ๅˆฉๅทฎๅ˜ๅŒ–
+ result["ๆ—ฅๅ˜ๅŒ–_bp"] = spread_bp.diff()
+ result["ๆœˆๅ˜ๅŒ–_bp"] = spread_bp.diff(21)
+
+ # ไฟกๅท็”Ÿๆˆ
+ result["ๅˆฉๅทฎไฟกๅท"] = "ไธญๆ€ง"
+ result.loc[result["Z-Score"] < -1.5, "ๅˆฉๅทฎไฟกๅท"] = "ๅ่ดต๏ผˆๅˆฉๅทฎๅไฝŽ๏ผ‰"
+ result.loc[result["Z-Score"] > 1.5, "ๅˆฉๅทฎไฟกๅท"] = "ๅไพฟๅฎœ๏ผˆๅˆฉๅทฎๅ้ซ˜๏ผ‰"
+
+ return result
+
+
+def spread_term_structure(
+ issuers: dict,
+ risk_free_curve: pd.Series
+) -> pd.DataFrame:
+ """ไฟก็”จๅˆฉๅทฎๆœŸ้™็ป“ๆž„ๅˆ†ๆžใ€‚
+
+ Args:
+ issuers: {ๅ‘่กŒไบบ: {ๆœŸ้™: ๆ”ถ็›Š็އ}} ๅญ—ๅ…ธ
+ ไพ‹๏ผš{"AAAๅŸŽๆŠ•": {1: 0.025, 3: 0.028, 5: 0.032}}
+ risk_free_curve: ๆ— ้ฃŽ้™ฉๅˆฉ็އๆ›ฒ็บฟ {ๆœŸ้™: ๆ”ถ็›Š็އ}
+
+ Returns:
+ ไฟก็”จๅˆฉๅทฎๆœŸ้™็ป“ๆž„็Ÿฉ้˜ต๏ผˆ่กŒ=ๅ‘่กŒไบบ๏ผŒๅˆ—=ๆœŸ้™๏ผ‰
+ """
+ records = []
+ for issuer, ytm_curve in issuers.items():
+ row = {"ๅ‘่กŒไบบ": issuer}
+ for term, ytm in ytm_curve.items():
+ rf = risk_free_curve.get(term, np.nan)
+ row[f"{term}Yๅˆฉๅทฎ(bp)"] = round((ytm - rf) * 10000, 1)
+ records.append(row)
+ return pd.DataFrame(records).set_index("ๅ‘่กŒไบบ")
+```
+
+---
+
+### 5.5 Merton ๆจกๅž‹่ฟ็บฆๆฆ‚็އ
+
+```python
+import numpy as np
+from scipy.stats import norm
+from scipy.optimize import fsolve
+from typing import Tuple
+
+
+def merton_model(
+ equity_value: float,
+ equity_vol: float,
+ debt_face: float,
+ risk_free: float,
+ T: float
+) -> dict:
+ """Merton็ป“ๆž„ๅŒ–ๆจกๅž‹๏ผšไผฐ็ฎ—่ฟ็บฆๆฆ‚็އๅ’Œไฟก็”จๅˆฉๅทฎใ€‚
+
+ Args:
+ equity_value: ่‚กๆƒๅธ‚ๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+ equity_vol: ่‚กๆƒๅนดๅŒ–ๆณขๅŠจ็އ๏ผˆๅฐๆ•ฐ๏ผ‰
+ debt_face: ๅ€บๅŠก้ขๅ€ผ๏ผˆไบฟๅ…ƒ๏ผŒ็ฎ€ๅŒ–ไธบ้›ถๆฏๅ€บ๏ผ‰
+ risk_free: ๆ— ้ฃŽ้™ฉๅˆฉ็އ๏ผˆๅฐๆ•ฐ๏ผ‰
+ T: ๅ€บๅŠกๅˆฐๆœŸๅนด้™
+
+ Returns:
+ ๅซ่ต„ไบงไปทๅ€ผใ€่ท่ฟ็บฆ่ท็ฆปใ€่ฟ็บฆๆฆ‚็އใ€ไฟก็”จๅˆฉๅทฎ็š„ๅญ—ๅ…ธ
+ """
+ def equations(params):
+ V, sigma_V = params
+ d1 = (np.log(V / debt_face) + (risk_free + 0.5 * sigma_V**2) * T) / (sigma_V * np.sqrt(T))
+ d2 = d1 - sigma_V * np.sqrt(T)
+
+ # ๆ–น็จ‹1๏ผš่‚กๆƒ=่ต„ไบง็œ‹ๆถจๆœŸๆƒ
+ eq1 = V * norm.cdf(d1) - debt_face * np.exp(-risk_free * T) * norm.cdf(d2) - equity_value
+ # ๆ–น็จ‹2๏ผš่‚กๆƒๆณขๅŠจ็އ=่ต„ไบงๆณขๅŠจ็އ็š„ๆ ๆ†ๆ”พๅคง
+ eq2 = norm.cdf(d1) * sigma_V * V - equity_vol * equity_value
+ return [eq1, eq2]
+
+ # ๅˆๅง‹ๅ€ผไผฐ่ฎก
+ V0 = equity_value + debt_face
+ sigma_V0 = equity_vol * equity_value / V0
+
+ solution = fsolve(equations, [V0, sigma_V0], full_output=True)
+ V_star, sigma_V_star = solution[0]
+
+ d1 = (np.log(V_star / debt_face) + (risk_free + 0.5 * sigma_V_star**2) * T) / (sigma_V_star * np.sqrt(T))
+ d2 = d1 - sigma_V_star * np.sqrt(T)
+
+ # ้ฃŽ้™ฉไธญๆ€ง่ฟ็บฆๆฆ‚็އ
+ pd_rn = norm.cdf(-d2)
+
+ # ่ท่ฟ็บฆ่ท็ฆป๏ผˆ็œŸๅฎžไธ–็•Œ่ฟ‘ไผผ๏ผŒ็”จๆ— ้ฃŽ้™ฉๅˆฉ็އไปฃๆ›ฟ็œŸๅฎžๆผ‚็งป๏ผ‰
+ dd = d2
+
+ # ไฟก็”จๅˆฉๅทฎ๏ผˆ็ฎ€ๅŒ–ไผฐ็ฎ—๏ผ‰
+ debt_value = debt_face * np.exp(-risk_free * T) * norm.cdf(d2) + V_star * norm.cdf(-d1)
+ if debt_value > 0 and T > 0:
+ credit_spread = -np.log(debt_value / (debt_face * np.exp(-risk_free * T))) / T
+ else:
+ credit_spread = np.nan
+
+ return {
+ "่ต„ไบงไปทๅ€ผ_ไบฟ": round(V_star, 2),
+ "่ต„ไบงๆณขๅŠจ็އ": round(sigma_V_star, 4),
+ "่ท่ฟ็บฆ่ท็ฆป_DD": round(dd, 3),
+ "่ฟ็บฆๆฆ‚็އ_RN": f"{pd_rn*100:.2f}%",
+ "ไฟก็”จๅˆฉๅทฎ_bp": round(credit_spread * 10000, 1) if not np.isnan(credit_spread) else "N/A",
+ }
+```
+
+---
+
+## ๅ…ญใ€ไธญๅ›ฝๅ›บๆ”ถๅธ‚ๅœบ็‰น่‰ฒ
+
+### 6.1 ๅธ‚ๅœบ็ป“ๆž„
+
+#### ้“ถ่กŒ้—ดๅธ‚ๅœบ vs ไบคๆ˜“ๆ‰€ๅธ‚ๅœบ
+
+| ็ปดๅบฆ | ้“ถ่กŒ้—ดๅธ‚ๅœบ๏ผˆCFETS๏ผ‰ | ไบคๆ˜“ๆ‰€ๅธ‚ๅœบ๏ผˆไธŠไบคๆ‰€/ๆทฑไบคๆ‰€๏ผ‰ |
+|------|---------------------|--------------------------|
+| ็›‘็ฎกๆœบๆž„ | ไบบๆฐ‘้“ถ่กŒ | ่ฏ็›‘ไผš |
+| ไธป่ฆๅ‚ไธŽ่€… | ้“ถ่กŒใ€ไฟ้™ฉใ€ๅŸบ้‡‘ใ€ๅค–่ต„ | ๅˆธๅ•†ใ€ๅŸบ้‡‘ใ€ไธชไบบๆŠ•่ต„่€… |
+| ไบคๆ˜“ๆ–นๅผ | ่ฏขไปท๏ผˆOTC๏ผ‰+ ๅŒฟๅ็‚นๅ‡ป | ้›†ไธญๆ’ฎๅˆ + ๅคงๅฎ—ไบคๆ˜“ |
+| ไธป่ฆๅ“็ง | ๅ›ฝๅ€บใ€ๆ”ฟ้‡‘ๅ€บใ€ไฟก็”จๅ€บใ€ABS | ไผไธšๅ€บใ€ๅ…ฌๅธๅ€บใ€ๅฏ่ฝฌๅ€บ |
+| ่ง„ๆจกๅ ๆฏ” | ~90%๏ผˆไปฅไบคๆ˜“้‡่ฎก๏ผ‰ | ~10% |
+| ็ป“็ฎ—ๆ–นๅผ | T+0/T+1๏ผˆDVP๏ผ‰ | T+1 |
+| ๆตๅŠจๆ€ง | ้ซ˜๏ผˆๅ›ฝๅ€บ/ๆ”ฟ้‡‘ๅ€บ๏ผ‰ | ้ซ˜๏ผˆๅฏ่ฝฌๅ€บ๏ผ‰/ไฝŽ๏ผˆ็บฏๅ€บ๏ผ‰ |
+
+#### ไธป่ฆๅ€บๅˆธๅ“็ง
+
+| ๅ“็ง | ๅ‘่กŒไธปไฝ“ | ็›‘็ฎก/ๆณจๅ†Œ | ไฟก็”จ้ฃŽ้™ฉ |
+|------|----------|-----------|----------|
+| ๅ›ฝๅ€บ๏ผˆCGBs๏ผ‰ | ่ดขๆ”ฟ้ƒจ | ๆ— ้™ๅˆถ | ๆ— ๏ผˆไธปๆƒไฟก็”จ๏ผ‰ |
+| ๅœฐๆ–นๆ”ฟๅบœๅ€บ | ๅ„็œๅธ‚ๆ”ฟๅบœ | ่ดขๆ”ฟ้ƒจๅฎกๆ‰น | ๆžไฝŽ |
+| ๆ”ฟ็ญ–ๆ€ง้“ถ่กŒๅ€บ๏ผˆๅ›ฝๅผ€/ๅ†œๅ‘/่ฟ›ๅ‡บๅฃ๏ผ‰ | ๆ”ฟ็ญ–่กŒ | ๆ— ้™ๅˆถ | ๆžไฝŽ๏ผˆๅ‡†ไธปๆƒ๏ผ‰ |
+| ๅŒไธšๅญ˜ๅ•๏ผˆNCD๏ผ‰ | ้“ถ่กŒ | ๅคฎ่กŒ | ไฝŽ๏ผˆ้“ถ่กŒไฟก็”จ๏ผ‰ |
+| ่ถ…็ŸญๆœŸ่ž่ต„ๅˆธ๏ผˆSCP๏ผ‰/ ็Ÿญ่ž๏ผˆCP๏ผ‰/ ไธญ็ฅจ๏ผˆMTN๏ผ‰ | ้ž้‡‘่žไผไธš | ไบคๆ˜“ๅ•†ๅไผš๏ผˆNAFMII๏ผ‰ | ไธญ |
+| ไผไธšๅ€บ | ไผไธš | ๅ‘ๆ”นๅง” | ไธญ้ซ˜ |
+| ๅ…ฌๅธๅ€บ | ไธŠๅธ‚ๅ…ฌๅธ | ่ฏ็›‘ไผš | ไธญ้ซ˜ |
+| ๅŸŽๆŠ•ๅ€บ | ๅœฐๆ–น่ž่ต„ๅนณๅฐ | ๅคšๅ…ƒ | ไธญ้ซ˜๏ผˆ้šๆ€งๆ”ฟๅบœ่ƒŒไนฆ๏ผ‰ |
+| ABS/ABN | SPV | NAFMII/่ฏ็›‘ไผš | ๅ–ๅ†ณไบŽๅบ•ๅฑ‚่ต„ไบง |
+
+---
+
+### 6.2 ๅŸŽๆŠ•ๅ€บๆทฑๅบฆๅˆ†ๆž่ฆ็‚น
+
+**ไธ€็บงๅธ‚ๅœบๅˆ†ๆž**๏ผˆๅ‘่กŒๅฎšไปท๏ผ‰๏ผš
+1. ๆ ธๆŸฅๅ‘่กŒไบบๅฑ‚็บงๅ’ŒๅŒบๅŸŸ๏ผˆ็œ/ๅธ‚/ๅŒบๅŽฟ๏ผ‰
+2. ๅฎกๆŸฅไธปไธšๅ ๆฏ”๏ผˆๅŸบ็ก€่ฎพๆ–ฝไธšๅŠกvsๅ•†ไธšๅŒ–ไธšๅŠกๆฏ”ไพ‹๏ผ‰
+3. ่ฏ„ไผฐๅŒบๅŸŸไธ€่ˆฌๅ…ฌๅ…ฑ้ข„็ฎ—ๆ”ถๅ…ฅๅ’Œๆ”ฟๅบœ่ดŸๅ€บ็އ
+4. ๅˆ†ๆž่ฟ‘3ๅนดๅŸŽๆŠ•ๆต่ฝฌ่ต„ไบง็š„็œŸๅฎžๆ€ง๏ผˆๅพ€ๆฅๆฌพๅผ‚ๅธธ๏ผ‰
+
+**ไบŒ็บงๅธ‚ๅœบๅˆ†ๆž**๏ผˆๆŒไป“ไผฐๅ€ผ๏ผ‰๏ผš
+1. ่ทŸ่ธชๅˆฉๅทฎๅ˜ๅŒ–๏ผˆvs ๅŒ่ฏ„็บงๅŒๆœŸ้™๏ผ‰
+2. ๅ…ณๆณจ่ˆ†ๆƒ…ไบ‹ไปถ๏ผˆๆŠ€ๆœฏๆ€ง่ฟ็บฆ/ๅ•†็ฅจ้€พๆœŸ/่ฏ„็บงไธ‹่ฐƒ๏ผ‰
+3. ็›‘ๆต‹ๅ†่ž่ต„่Š‚ๅฅ๏ผˆๅˆฐๆœŸๅŽ‹ๅŠ› vs ๆ–ฐๅ‘่Š‚ๅฅ๏ผ‰
+4. ๅ…ณๆณจๅŒบๅŸŸๆ”ฟ็ญ–๏ผˆๅŒ–ๅ€บๅๅ•ใ€ๅ€บๅŠก็ฝฎๆข่ฟ›ๅบฆ๏ผ‰
+
+**้ฃŽ้™ฉ้ข„่ญฆไฟกๅท๏ผˆ็บข็บฟ๏ผ‰**๏ผš
+- ่ดงๅธ่ต„้‡‘/็ŸญๆœŸๅ€บๅŠก < 0.3
+- ้žๆ ‡่ž่ต„/ๆœ‰ๆฏ่ดŸๅ€บ > 40%
+- ๅ•†็ฅจ้€พๆœŸ่ขซ็บณๅ…ฅ็ณป็ปŸ๏ผˆ็ฅจๆฎๅคฑไฟกๅๅ•๏ผ‰
+- ๆ‰€ๅœจๅŒบๅŸŸๅŸŽๆŠ•ๆ•ดไฝ“ๅ†่ž่ต„ๅ—้˜ป
+- ็ฎก็†ๅฑ‚ไบบไบ‹ๅ˜ๅŠจๅ ๅŠ ๅŒบๅŸŸ่ฏ„็บง่ดŸ้ขๅฑ•ๆœ›
+
+---
+
+### 6.3 ็†่ดข/่ต„็ฎกไบงๅ“ไฟก็”จๅˆ†ๆž
+
+**ๅ‡€ๅ€ผๅŒ–่ฝฌๅž‹ๅŽ็š„ๅบ•ๅฑ‚็ฉฟ้€ๅˆ†ๆž**๏ผš
+- ๆททๅˆๅž‹็†่ดข๏ผš้œ€ๅˆ†ๅˆซ่ฏ„ไผฐๆƒ็›Š็ซฏ๏ผˆๅธ‚ๅ€ผๆณขๅŠจ๏ผ‰ๅ’Œๅ›บๆ”ถ็ซฏ๏ผˆไฟก็”จ้ฃŽ้™ฉ๏ผ‰
+- ๅ›บๆ”ถ+็ญ–็•ฅ๏ผšไธปไฝ“80%+ๅ€บๅˆธ๏ผŒ20%-ไปฅๅ†…ๆƒ็›Š/ๅฏ่ฝฌๅ€บ
+- FOFๅž‹็†่ดข๏ผšไธคๅฑ‚ๅตŒๅฅ—็ฉฟ้€๏ผŒ้œ€่ฏ„ไผฐๅบ•ๅฑ‚ๅŸบ้‡‘ๆŒไป“
+
+**ๆตๅŠจๆ€งๅˆ†ๆžๆก†ๆžถ**๏ผš
+```
+ไบงๅ“ๅฑ‚้ขๆตๅŠจๆ€ง = f(ๅบ•ๅฑ‚่ต„ไบงๆตๅŠจๆ€ง, ่ตŽๅ›žๆกๆฌพ, ๆ‘Šไฝ™ๆˆๆœฌๆณ• vs ๅธ‚ๅ€ผๆณ•)
+```
+- ๆ‘Šไฝ™ๆˆๆœฌๆณ•๏ผšไปทๆ ผ็จณๅฎšไฝ†้š่—้ฃŽ้™ฉ๏ผˆไธ้€‚็”จๅ‡€ๅ€ผๅŒ–ไบงๅ“๏ผ‰
+- ๅธ‚ๅ€ผๆณ•๏ผšๅๆ˜ ็œŸๅฎžไปทๅ€ผ๏ผŒไฝ†ๆณขๅŠจๆšด้œฒๅฏ่ƒฝๅผ•ๅ‘่ตŽๅ›žๆฝฎ
+
+**ๅบ•ๅฑ‚ไฟก็”จ่ฏ„ไผฐๆญฅ้ชค**๏ผš
+1. ่Žทๅ–ๅ€บๅˆธๆŒไป“ๆ˜Ž็ป†๏ผˆๅญฃๆŠฅ/ๅŠๅนดๆŠฅๆŠซ้œฒ๏ผ‰
+2. ๆŒ‰่ฏ„็บง/่กŒไธš/ๅŸŽๆŠ•/้žๅŸŽๆŠ•ๅˆ†็ฑป
+3. ่ฎก็ฎ—ๅŠ ๆƒไฟก็”จๅˆฉๅทฎ
+4. ่ฏ†ๅˆซ้›†ไธญๅบฆ้ฃŽ้™ฉ๏ผˆๅ•ๅˆธ > 5%ไธบ้ซ˜้›†ไธญๅบฆ๏ผ‰
+5. ่ฏ„ไผฐๆตๅŠจๆ€งๆขฏๅบฆ๏ผˆ้ซ˜ๆตๅŠจโ†’ไฝŽๆตๅŠจ่ฆ†็›–ๅบฆ๏ผ‰
+
+---
+
+### 6.4 ่ฟ็บฆๆกˆไพ‹ๅˆ†ๆžๆ–นๆณ•่ฎบ
+
+**่ฟ็บฆ็ฑปๅž‹**๏ผš
+| ็ฑปๅž‹ | ็‰นๅพ | ไธญๅ›ฝๅ…ธๅž‹ๆกˆไพ‹ |
+|------|------|------------|
+| ๆตๅŠจๆ€ง่ฟ็บฆ | ่ต„ไบงๅฅๅบทไฝ†็Žฐ้‡‘ๆตๆ–ญ่ฃ‚ | ้ƒจๅˆ†ไธญๅฐๆˆฟไผ |
+| ๆŠ€ๆœฏๆ€ง่ฟ็บฆ | ่งฆๅ‘ๆกๆฌพ๏ผˆไบคๅ‰่ฟ็บฆ/ๅŠ ้€ŸๅˆฐๆœŸ๏ผ‰ | ๅคš่งไบŽๅผฑ่ต„่ดจไธปไฝ“ |
+| ็ป่ฅๆ€ง่ฟ็บฆ | ไธปไธšๆถๅŒ–ๅฏผ่‡ด่ฟ˜ๆฌพ่ƒฝๅŠ›ไธ‹้™ | ๆฐธ็…คใ€ๅŽๆ™จ๏ผˆ2020๏ผ‰ |
+| ๆฌบ่ฏˆๆ€ง่ฟ็บฆ | ่ดขๅŠก้€ ๅ‡/่ต„ไบง่…พๆŒช | ๅบท็พŽ่ฏไธšใ€่“็››ๅš |
+
+**่ฟ็บฆๅ‰ๆฒฟไฟกๅท๏ผˆPrecursor Signals๏ผ‰**๏ผš
+
+```
+่ดขๅŠกๅฑ‚้ข๏ผš
+ - ๅบ”ๆ”ถ่ดฆๆฌพ/ๆ€ป่ต„ไบง ๅผ‚ๅธธๅขž้ซ˜๏ผˆ่™šๅขžๆ”ถๅ…ฅ๏ผ‰
+ - ่ดงๅธ่ต„้‡‘ไฝ™้ข้ซ˜ไฝ†ๅ—้™ๆฏ”ไพ‹้ซ˜
+ - ๅ•†่ช‰/ๆ— ๅฝข่ต„ไบงๅ ๆฏ”ๆŒ็ปญๅขžๅคง
+ - ๅ…ณ่”ๆ–นไบคๆ˜“ๅ ๆฏ”ๅผ‚ๅธธ
+
+ๅธ‚ๅœบๅฑ‚้ข๏ผš
+ - ไบŒ็บงๅธ‚ๅœบไปทๆ ผๆŒ็ปญไธ‹่ทŒ๏ผˆ่ทŒ็ ด90๏ผ‰
+ - ไฟก็”จๅˆฉๅทฎๅฟซ้€Ÿ่ตฐ้˜”๏ผˆๅ•ๅ‘จ>50bp๏ผ‰
+ - ไธปๆ‰ฟ้”€ๅ•†ๆ›ดๆขๆˆ–ไธๅ‚ไธŽๅŽ็ปญๅ‘่กŒ
+ - CDSๆŠฅไปท๏ผˆๅฆ‚ๆœ‰๏ผ‰ๅฟซ้€ŸไธŠๅ‡
+
+่ฏ„็บงๅฑ‚้ข๏ผš
+ - ่ฏ„็บงๅˆ—ๅ…ฅ่ดŸ้ข่ง‚ๅฏŸ
+ - ๅคšๅฎถ่ฏ„็บงๆœบๆž„ไธ‹่ฐƒ
+ - ๅฑ•ๆœ›็”ฑ็จณๅฎšไธ‹่ฐƒ่‡ณ่ดŸ้ข
+```
+
+**ไบ‹ๅŽๅˆ†ๆžๆก†ๆžถ๏ผˆPost-Default Analysis๏ผ‰**๏ผš
+1. ่ฟ็บฆ่งฆๅ‘ๆ—ถ็‚นไธŽ่ต„้‡‘ๆตๅ‘้‡ๆž„
+2. ่ต„ไบง่ดŸๅ€บ่กจ"็œŸๅฎžๆ€ง"่ฏ„ไผฐ๏ผˆๅŒบๅˆ†็œŸๅฎž่ต„ไบง vs ่ดฆ้ข่ต„ไบง๏ผ‰
+3. ๅ€บๆƒไผ˜ๅ…ˆ็บงๆขณ็†๏ผˆๆ‹…ไฟ้กบๅบใ€ๆŠต่ดจๆŠผๅ“๏ผ‰
+4. ๅค„็ฝฎ้ข„ๆœŸๅ›žๆ”ถ็އไผฐ็ฎ—๏ผˆRecovery Rate๏ผ‰
+5. ็ณป็ปŸๆ€ง้ฃŽ้™ฉไผ ๆŸ“่ทฏๅพ„๏ผˆไบคๅ‰ๆŒๆœ‰ใ€ๅŒ็ฑปไธปไฝ“๏ผ‰
+
+**ไธญๅ›ฝๅธ‚ๅœบๅ›žๆ”ถ็އๅ‚่€ƒ**๏ผš
+- ๅŸŽๆŠ•ๅ€บ๏ผˆๆŠ€ๆœฏๆ€ง่ฟ็บฆๅŽๅŒ–่งฃ๏ผ‰๏ผšๆŽฅ่ฟ‘100%
+- ๆˆฟไผ่ฟ็บฆ๏ผš็บฆ20%-50%๏ผˆๅ–ๅ†ณไบŽๅœŸๅ‚จ่ดจ้‡๏ผ‰
+- ๅทฅไธšไผไธš่ฟ็บฆ๏ผš็บฆ30%-60%
+- ้‡‘่žๆœบๆž„๏ผˆ้ž้“ถ๏ผ‰๏ผš็บฆ40%-70%๏ผˆ็›‘็ฎกไป‹ๅ…ฅ็จ‹ๅบฆ๏ผ‰
+
+---
+
+## ไธƒใ€ไธŽๅ…ถไป– Skill ็š„ๅ…ณ่”
+
+| ็›ธๅ…ณ Skill | ไบ’่กฅๅ…ณ็ณป |
+|------------|----------|
+| `convertible-bond` | ๅฏ่ฝฌๅ€บ่ฝฌ่‚กๆœŸๆƒ้ƒจๅˆ†็”ฑ convertible-bond skill ๅค„็†๏ผŒๆœฌ skill ่ดŸ่ดฃ็บฏๅ€บๅฎšไปทๅ’Œไฟก็”จ้ฃŽ้™ฉ |
+| `macro-analysis` | ๅฎ่ง‚ๅˆฉ็އ็Žฏๅขƒๅ’Œไฟก็”จๅ‘จๆœŸๅˆคๆ–ญ็”ฑ macro skill ๆไพ›่พ“ๅ…ฅ |
+| `risk-management` | ็ป„ๅˆๅฑ‚้ขไฟก็”จ้ฃŽ้™ฉ๏ผˆVaR/CVaR๏ผ‰ๅ‚่€ƒ risk-management skill |
+| `equity-fundamental` | ไฟก็”จๅˆ†ๆžไธŽ่‚กๆƒไผฐๅ€ผๅ…ฑไบซ่ดขๅŠกๆŠฅ่กจๅˆ†ๆžๆก†ๆžถ๏ผŒAltman Z-Scoreไธคไพงๅ‡้€‚็”จ |
+
+---
+
+## ๅ…ซใ€ๅฟซ้€Ÿๅ‚่€ƒ
+
+### ๅธธ็”จๅ…ฌๅผ้€ŸๆŸฅ
+
+```
+YTM ่ฟ‘ไผผๅ…ฌๅผ๏ผš
+ YTM โ‰ˆ [C + (F-P)/n] / [(F+P)/2]
+
+ไน…ๆœŸไธŽไปทๆ ผๅ˜ๅŒ–๏ผš
+ ฮ”P โ‰ˆ -D_mod ร— P ร— ฮ”y + 0.5 ร— CX ร— P ร— (ฮ”y)ยฒ
+
+DV01 = D_mod ร— P ร— 0.0001 ร— ๆŒไป“้ขๅ€ผ
+
+ไฟก็”จๅˆฉๅทฎ = ๅ€บๅˆธYTM - ๅŒๆœŸ้™ๅ›ฝๅ€บYTM
+
+Z-Score ้ฃŽ้™ฉไฟกๅท๏ผš
+ Z > 2.99 โ†’ ๅฎ‰ๅ…จ 1.81 < Z < 2.99 โ†’ ็ฐ่‰ฒ Z < 1.81 โ†’ ๅฑ้™ฉ
+
+่ฟ็บฆ่ท็ฆป DD โ†’ EDF๏ผš
+ DD > 4: EDF < 0.1%
+ DD 2-4: EDF 0.1%-1%
+ DD 1-2: EDF 1%-5%
+ DD < 1: EDF > 5%
+```
+
+### ไธญๅ›ฝๅ›บๆ”ถๆ•ฐๆฎๆบ
+
+| ๆ•ฐๆฎ็ฑปๅž‹ | ๆŽจ่ๆฅๆบ |
+|----------|----------|
+| ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ | ไธญๅคฎ็ป“็ฎ—ๅ…ฌๅธ๏ผˆCCDC๏ผ‰ใ€่ดขๆ”ฟ้ƒจๅฎ˜็ฝ‘ |
+| ไฟก็”จๅ€บ่กŒๆƒ… | Windใ€DMๆ•ฐๆฎ |
+| ๅŸŽๆŠ•่ดขๅŠกๆ•ฐๆฎ | ๅ‘ๅ€บไธปไฝ“ๅนดๆŠฅใ€Wind |
+| ่ฏ„็บงๆŠฅๅ‘Š | ไธญ่ฏšไฟกใ€่”ๅˆ่ต„ไฟกใ€ไธœๆ–น้‡‘่ฏšๅฎ˜็ฝ‘ |
+| ่ฟ็บฆๆ•ฐๆฎ | Windใ€ไธญๅ›ฝๅ€บๅˆธไฟกๆฏ็ฝ‘๏ผˆchinamoney.com.cn๏ผ‰ |
+| ABSๆ•ฐๆฎ | CNABS๏ผˆไธญๅ›ฝ่ต„ไบง่ฏๅˆธๅŒ–ๅˆ†ๆž็ฝ‘๏ผ‰ |
diff --git a/agent/src/skills/crypto-derivatives/SKILL.md b/agent/src/skills/crypto-derivatives/SKILL.md
new file mode 100644
index 000000000..cf2560c72
--- /dev/null
+++ b/agent/src/skills/crypto-derivatives/SKILL.md
@@ -0,0 +1,280 @@
+---
+name: crypto-derivatives
+description: Crypto-derivatives strategies โ€” perpetual funding-rate arbitrage, futures term-structure contango/backwardation trading, and option volatility-smile / Greeks analysis.
+---
+
+# Crypto-Derivatives Strategies
+
+## Overview
+
+Covers three major crypto-derivatives strategy directions: perpetual funding-rate arbitrage, futures term-structure trading, and options strategies (volatility trading). The main exchanges are OKX and Deribit.
+
+## Perpetual Funding-Rate Arbitrage
+
+### Funding-Rate Mechanism
+
+```
+Perpetual contracts have no expiry and rely on the funding rate to anchor prices to spot:
+
+Funding rate > 0: longs pay shorts (strong bullish sentiment)
+Funding rate < 0: shorts pay longs (strong bearish sentiment)
+
+Settlement frequency: OKX settles every 8 hours (00:00 / 08:00 / 16:00 UTC)
+Annualized return = funding rate ร— 3 ร— 365
+```
+
+### Arbitrage Strategies
+
+```
+Positive carry arbitrage (funding rate > 0):
+ Long spot + short perpetual = net delta close to zero
+ Return source: collect funding every 8 hours
+
+Reverse carry arbitrage (funding rate < 0, less common):
+ Short spot (borrow coin and sell) + long perpetual
+ Return source: collect funding every 8 hours
+```
+
+### Funding-Rate Signals
+
+| Funding Rate (8h) | Annualized | Market Sentiment | Strategy Signal |
+|-------------|------|---------|---------|
+| > 0.1% | > 109% | Extreme greed | Short signal (rate is unsustainable) |
+| 0.03-0.1% | 33-109% | Bullish bias | Positive carry arbitrage is attractive |
+| 0.01-0.03% | 11-33% | Normal bullish | Positive carry arbitrage is tradable |
+| -0.01~0.01% | -11~11% | Neutral | No arbitrage opportunity |
+| < -0.01% | < -11% | Bearish bias | Reverse carry arbitrage or stop-loss |
+| < -0.1% | < -109% | Extreme panic | Long signal (rate is unsustainable) |
+
+### Arbitrage Risk Control
+
+```
+Risk points:
+1. Insufficient margin: the derivatives leg requires margin, and extreme moves can liquidate the account
+2. Funding reversal: a positive rate can suddenly turn negative, making the arbitrage unprofitable
+3. Basis volatility: changes in the spot-futures basis can cause floating losses
+4. Exchange risk: withdrawal limits, downtime, liquidation-mechanism differences
+
+Risk parameters:
+- Leverage: no more than 3x (arbitrage does not need high leverage)
+- Margin ratio: keep >50% (far from liquidation)
+- Single-coin allocation: <30% (diversification)
+- Stop-loss: close when floating loss exceeds expected return over 3 months
+```
+
+## Term-Structure Trading
+
+### Basic Concepts
+
+```
+Term structure = futures price curve across different expiries
+
+Contango: far month > near month > spot
+ - Meaning: market expects higher future prices
+ - Common in bull markets or normal market conditions
+
+Backwardation: far month < near month < spot
+ - Meaning: market expects lower future prices or spot shortage
+ - Common in bear markets or after extreme events
+```
+
+### Term-Structure Metrics
+
+```python
+def term_structure_spread(spot_price, futures_prices: dict) -> dict:
+ """
+ Args:
+ spot_price: Spot price
+ futures_prices: {expiry: price}, for example {'2026-06': 105000, '2026-09': 107000}
+ Returns:
+ Basis, annualized basis, and structure type
+ """
+ results = {}
+ for expiry, price in futures_prices.items():
+ days_to_expiry = (pd.Timestamp(expiry) - pd.Timestamp.now()).days
+ basis = (price - spot_price) / spot_price
+ annualized = basis / days_to_expiry * 365
+ results[expiry] = {
+ 'basis': basis,
+ 'annualized_basis': annualized,
+ 'days': days_to_expiry,
+ }
+ return results
+```
+
+### Trading Strategies
+
+| Strategy | Action | Applicable Environment | Risk |
+|------|------|---------|------|
+| Cash-and-Carry | Long spot + short futures | Significant contango (annualized >15%) | Exchange risk |
+| Calendar Spread | Long near month + short far month | Expect contango convergence | Basis widening |
+| Reverse Calendar | Short near month + long far month | Expect backwardation convergence | Basis reversal |
+
+### Historical Regularities of BTC Term Structure
+
+```
+- Bull market: contango annualized 15-40%, quarterly futures premium 5-10%
+- Bear market: backwardation or contango annualized <5%
+- Around halving: contango usually widens
+- Extreme crashes: brief backwardation (such as March 12 and May 19)
+```
+
+## Options Strategies
+
+### Overview of the Crypto Options Market
+
+| Exchange | Underlyings | Characteristics |
+|--------|------|------|
+| Deribit | BTC / ETH | Largest options exchange, >80% market share |
+| OKX | BTC / ETH | Second largest, liquidity still growing |
+| Binance | BTC / ETH | Weaker liquidity |
+
+### Basic Greeks
+
+| Greek | Meaning | Crypto-Specific Characteristic |
+|-------|------|-----------|
+| Delta | Change in option price for a 1% move in the underlying | BTC is highly volatile, so Delta changes quickly |
+| Gamma | Rate of change of Delta | ATM options have the highest Gamma |
+| Theta | Time decay (per day) | Crypto trades 7x24, so there are no weekends off |
+| Vega | Impact of a 1% move in implied volatility | BTC IV is often 50-120%, far above traditional assets |
+| Rho | Rate sensitivity | In crypto markets, the rate proxy is DeFi yield |
+
+### Volatility Smile / Skew
+
+```
+Characteristics of the BTC option volatility surface:
+1. Smile: IV of OTM puts and OTM calls is both higher than ATM IV
+2. Skew: usually OTM put IV > OTM call IV (downside-protection demand)
+3. Reverse skew: in bull markets, OTM call IV may exceed OTM put IV
+
+25ฮ” Risk Reversal = IV(25ฮ” Call) - IV(25ฮ” Put)
+ > 0: bullish skew
+ < 0: bearish skew (normal state)
+ The larger the absolute value, the steeper the skew
+```
+
+### Common Options Strategies
+
+#### 1. Short Straddle
+
+```
+Action: sell ATM call + ATM put simultaneously
+Return source: time decay (Theta income)
+Risk: large move in the underlying
+Applicable when: IV is considered too high and the market is expected to stay range-bound
+
+BTC parameter suggestions:
+- Consider selling when IV > 80%
+- Expiry: 7-14 days (faster decay)
+- Margin: at least 30% of underlying notional
+```
+
+#### 2. Protective Put
+
+```
+Action: hold spot + buy OTM put
+Purpose: hedge downside risk
+Cost: put premium (about 2-5% of underlying value per month)
+Applicable when: protecting profits in a bull market
+
+BTC parameter suggestions:
+- Strike: 10-15% below spot
+- Expiry: 1-3 months
+- Delta: -0.2 to -0.3
+```
+
+#### 3. Iron Butterfly
+
+```
+Action: sell ATM call + sell ATM put + buy OTM call + buy OTM put
+Return source: profit when the underlying moves within a narrow range
+Risk: limited (protected by OTM options)
+Applicable when: low-volatility expectation
+
+Maximum profit = premium sold - premium bought
+Maximum loss = wing width - maximum profit
+```
+
+#### 4. Volatility Arbitrage
+
+```
+Action: long / short IV versus realized volatility
+
+Long volatility:
+- Buy straddle + Delta hedge
+- Applicable when: IV < historical volatility (IV is low)
+
+Short volatility:
+- Sell straddle + Delta hedge
+- Applicable when: IV > historical volatility (IV is high)
+
+BTC IV reference:
+- IV < 40%: extremely low (long volatility)
+- IV 40-60%: normal-to-low
+- IV 60-80%: normal
+- IV 80-120%: elevated (short volatility)
+- IV > 120%: extremely high (short volatility, but risk is large)
+```
+
+## Analysis Framework
+
+### Daily Monitoring Metrics
+
+```
+1. Perpetual funding rate (8h / annualized)
+2. BTC quarterly-futures basis
+3. 25ฮ” Risk Reversal
+4. ATM implied volatility
+5. Option put/call ratio
+6. Option open interest
+```
+
+### Strategy Selection Decision Tree
+
+```
+Market environment judgment:
+โ”œโ”€โ”€ High funding rate (>0.05%) + high IV (>80%)
+โ”‚ โ””โ”€โ”€ Positive carry arbitrage + short volatility
+โ”œโ”€โ”€ Low funding rate + low IV (<50%)
+โ”‚ โ””โ”€โ”€ Stay out of carry arbitrage + long volatility
+โ”œโ”€โ”€ Significant contango (annualized >20%)
+โ”‚ โ””โ”€โ”€ Cash-and-Carry
+โ””โ”€โ”€ Backwardation
+ โ””โ”€โ”€ Reduce exposure / hedge / buy protective puts
+```
+
+## Output Format
+
+```markdown
+## Crypto-Derivatives Analysis
+
+### Market Snapshot
+| Metric | BTC | ETH |
+|------|-----|-----|
+| Spot price | $95,000 | $3,200 |
+| Perpetual funding (8h) | 0.035% | 0.028% |
+| Annualized funding | 38.3% | 30.7% |
+| Quarterly basis (annualized) | 18.5% | 15.2% |
+| ATM IV (30d) | 65% | 72% |
+| 25ฮ” RR | -3.2% | -4.5% |
+
+### Strategy Suggestions
+| Strategy | Direction | Expected Annualized Return | Risk Level |
+|------|------|---------|---------|
+| BTC funding-rate arbitrage | Short perpetual + long spot | 25-35% | Medium |
+| ETH Calendar Spread | Long near month / short far month | 12-18% | Medium-low |
+| BTC Short Strangle | Sell OTM call + put | Collect premium | High |
+
+### Risk Warnings
+- ...
+```
+
+## Notes
+
+1. **This system is for backtest research only**: it does not execute live trades; derivatives analysis is for research and backtesting
+2. **Crypto trades 7x24**: Theta decay never stops, unlike traditional options
+3. **Liquidity concentration**: BTC / ETH options are concentrated on Deribit; liquidity in other coins is extremely poor
+4. **Extreme volatility**: 10-20% single-day BTC moves are not rare, so margin management is critical
+5. **Exchange risk**: centralized exchanges can freeze assets or fail; diversify across venues
+6. **Data acquisition**: OKX data is available through the OKX data source, while Deribit requires an additional interface
+7. **Regulatory risk**: regulation of crypto derivatives is tightening across jurisdictions, so strategy compliance must be assessed separately
diff --git a/agent/src/skills/defi-yield/SKILL.md b/agent/src/skills/defi-yield/SKILL.md
new file mode 100644
index 000000000..77765505b
--- /dev/null
+++ b/agent/src/skills/defi-yield/SKILL.md
@@ -0,0 +1,263 @@
+---
+name: defi-yield
+description: DeFi yield analysis and optimization โ€” lending rates, LP yields, staking returns, yield farming strategies, risk-adjusted yield comparison, and protocol-level sustainability assessment.
+---
+# DeFi Yield Analysis & Optimization
+
+## Overview
+
+Analyze and compare yields across DeFi protocols โ€” lending, liquidity provision, staking, and yield farming โ€” to identify the best risk-adjusted opportunities and assess sustainability. DeFi yields are a real-time proxy for crypto market leverage demand, capital allocation, and protocol health.
+
+## Core Concepts
+
+### 1. DeFi Yield Sources
+
+| Yield Source | Mechanism | Typical APY Range | Risk Level |
+|-------------|-----------|-------------------|------------|
+| Lending (supply) | Earn interest from borrowers | 1-15% (stablecoins 3-8%) | Low-medium |
+| Borrowing cost | Interest paid by borrowers | 3-20% | N/A (cost side) |
+| LP fees (AMM) | Trading fee share from DEX | 5-50% (varies by pair) | Medium-high |
+| Staking | Validator/delegation rewards | 3-15% | Low-medium |
+| Liquidity mining | Protocol token incentives | 10-500% (unsustainable) | High |
+| Restaking | Re-hypothecated staking yield | 5-20% (ETH + AVS rewards) | Medium-high |
+| Points farming | Off-chain points โ†’ future airdrop | Unknown (speculative) | Very high |
+
+### 2. Lending Rate Analysis
+
+**Lending rates as market signal:**
+
+```python
+# High borrow rates = high leverage demand = bullish sentiment
+# Low borrow rates = low leverage demand = bearish / waiting
+
+def lending_rate_signal(borrow_rate_stable, borrow_rate_eth):
+ """Analyze DeFi lending rates for market sentiment."""
+ if borrow_rate_stable > 15:
+ stable_signal = "extreme_demand" # Leveraged long via stablecoin borrowing
+ elif borrow_rate_stable > 8:
+ stable_signal = "elevated_demand"
+ elif borrow_rate_stable > 3:
+ stable_signal = "normal"
+ else:
+ stable_signal = "low_demand" # Bear market, no one borrowing
+
+ if borrow_rate_eth > 10:
+ eth_signal = "extreme_demand" # Shorting or leveraged strategies
+ elif borrow_rate_eth > 5:
+ eth_signal = "elevated"
+ else:
+ eth_signal = "low_demand"
+
+ return stable_signal, eth_signal
+```
+
+**Key lending protocols:**
+
+| Protocol | Chain | Specialization | TVL Range |
+|----------|-------|---------------|-----------|
+| Aave V3 | Multi-chain | Blue-chip lending, institutional grade | $10-20B |
+| Compound V3 | Ethereum, Base | Conservative, USDC-focused | $3-5B |
+| MakerDAO/Sky | Ethereum | CDP-based DAI/USDS minting | $8-15B |
+| Morpho | Ethereum | Rate optimization, P2P matching | $3-8B |
+| Spark | Ethereum | MakerDAO lending arm | $2-5B |
+| Kamino | Solana | Concentrated LP + lending | $1-3B |
+
+### 3. LP Yield Analysis
+
+**Impermanent Loss (IL) โ€” the core risk of LP positions:**
+
+```python
+def impermanent_loss(price_ratio_change):
+ """
+ Calculate impermanent loss for a 50/50 AMM pool.
+ price_ratio_change: new_price / old_price of the volatile asset.
+ """
+ r = price_ratio_change
+ il = 2 * (r ** 0.5) / (1 + r) - 1
+ return il * 100 # Return as percentage
+
+# Examples:
+# Price +25% โ†’ IL = -0.6%
+# Price +50% โ†’ IL = -2.0%
+# Price +100% (2x) โ†’ IL = -5.7%
+# Price +200% (3x) โ†’ IL = -13.4%
+# Price -50% โ†’ IL = -5.7%
+# Price -75% โ†’ IL = -20.0%
+```
+
+**LP yield = fee income + token incentives - impermanent loss**
+
+```python
+def net_lp_yield(fee_apy, incentive_apy, estimated_il_annualized):
+ """Calculate risk-adjusted LP yield."""
+ gross_yield = fee_apy + incentive_apy
+ net_yield = gross_yield - abs(estimated_il_annualized)
+ return net_yield
+
+# Example: ETH/USDC pool
+# Fee APY: 15%, Incentive APY: 20%, Estimated IL: 8%
+# Net yield: 15% + 20% - 8% = 27%
+```
+
+**LP pool evaluation criteria:**
+
+| Metric | Good | Mediocre | Avoid |
+|--------|------|----------|-------|
+| Fee APY / TVL | > 10% | 5-10% | < 5% |
+| IL risk (based on pair volatility) | < 5% annualized | 5-15% | > 15% |
+| TVL stability (30d change) | Growing or stable | Declining < 10% | Declining > 30% |
+| Volume/TVL ratio | > 0.5x daily | 0.1-0.5x | < 0.1x |
+| Incentive dependency | < 30% of yield | 30-70% | > 70% (unsustainable) |
+
+### 4. Staking Yield Analysis
+
+**ETH staking ecosystem:**
+
+| Method | APY | Risk | Liquidity |
+|--------|-----|------|-----------|
+| Solo validator | ~3.5% | Slashing, downtime | Locked (exit queue) |
+| Lido (stETH) | ~3.3% | Smart contract, governance | Liquid (stETH tradeable) |
+| Rocket Pool (rETH) | ~3.2% | Smart contract, more decentralized | Liquid |
+| Coinbase (cbETH) | ~3.0% | Custodial, regulatory | Liquid |
+| EigenLayer restaking | ~3.5% + AVS rewards | Smart contract, slashing risk | Semi-liquid |
+
+**Staking yield signal:**
+```python
+# ETH staking yield trends
+# Rising yield = more transactions / MEV = network activity increasing (bullish)
+# Falling yield = less activity = network cooling down
+
+# Restaking yield premium
+restaking_premium = eigenlayer_yield - native_staking_yield
+if restaking_premium > 3:
+ signal = "high_restaking_demand" # AVS demand strong
+elif restaking_premium > 1:
+ signal = "moderate_premium"
+else:
+ signal = "low_premium" # Restaking risk not compensated
+```
+
+### 5. Yield Sustainability Assessment
+
+**The "real yield" test:**
+
+```python
+def yield_sustainability(protocol):
+ """
+ Real yield = yield funded by actual economic activity (fees, revenue)
+ Token yield = yield funded by token emissions (inflationary, unsustainable)
+ """
+ total_yield_usd = protocol.total_yield_distributed_per_year
+ fee_revenue_usd = protocol.annual_fee_revenue
+ token_emission_usd = protocol.annual_token_emissions_at_market_price
+
+ real_yield_pct = fee_revenue_usd / total_yield_usd * 100
+ token_yield_pct = token_emission_usd / total_yield_usd * 100
+
+ if real_yield_pct > 80:
+ sustainability = "highly_sustainable" # Revenue-funded
+ elif real_yield_pct > 50:
+ sustainability = "partially_sustainable"
+ elif real_yield_pct > 20:
+ sustainability = "emission_dependent" # Mostly token incentives
+ else:
+ sustainability = "ponzi_risk" # Almost entirely token-funded
+
+ return sustainability, real_yield_pct
+```
+
+**Warning signs of unsustainable yield:**
+1. APY > 100% with no clear revenue source โ†’ token emissions will dilute to zero
+2. Protocol TVL growing but token price declining โ†’ mercenary capital chasing yield
+3. Yield declining month-over-month while TVL is stable โ†’ emissions being cut
+4. Protocol governance voting to increase emissions โ†’ short-term pump, long-term dilution
+5. Multiple yield sources stacking (lending + LP + staking + points) โ†’ complexity hides risk
+
+### 6. Risk-Adjusted Yield Comparison Framework
+
+```python
+def risk_adjusted_yield(opportunities):
+ """Compare DeFi opportunities on risk-adjusted basis."""
+ scored = []
+ for opp in opportunities:
+ # Base yield
+ base = opp.apy
+
+ # Risk deductions
+ smart_contract_risk = -2 if opp.audit_status == "unaudited" else -0.5
+ il_risk = -opp.estimated_il if opp.type == "LP" else 0
+ protocol_risk = -1 if opp.tvl < 50_000_000 else 0 # Small protocol risk
+ chain_risk = -0.5 if opp.chain != "ethereum" else 0 # Non-ETH chain risk
+ sustainability_risk = -(base * 0.3) if opp.real_yield_pct < 30 else 0
+
+ # Adjusted yield
+ adjusted = base + smart_contract_risk + il_risk + protocol_risk + chain_risk + sustainability_risk
+
+ scored.append({
+ "protocol": opp.name,
+ "base_apy": base,
+ "adjusted_apy": adjusted,
+ "risk_level": opp.risk_level,
+ })
+
+ return sorted(scored, key=lambda x: x["adjusted_apy"], reverse=True)
+```
+
+## Data Sources
+
+| Source | Access | Data Available |
+|--------|--------|---------------|
+| DeFi Llama Yields | Free | APY across 1000+ pools/protocols |
+| Aave/Compound dashboards | Free | Real-time lending rates |
+| Dune Analytics | Free | Custom yield queries |
+| DeBank | Free | Portfolio yield tracking |
+| TokenTerminal | Free/Paid | Protocol revenue and earnings |
+| EigenLayer dashboard | Free | Restaking rates and AVS yields |
+
+## Output Format
+
+```
+## DeFi Yield Analysis โ€” [Date]
+
+### Market Yield Overview
+- **Stablecoin lending (Aave USDC)**: X.X% supply APY
+- **ETH staking**: X.X% base + X.X% restaking premium
+- **Top LP yields**: [pool1 X%, pool2 X%]
+- **Yield trend**: [rising / stable / compressing]
+
+### Top Opportunities (Risk-Adjusted)
+| Rank | Protocol | Pool/Strategy | Base APY | Adjusted APY | Risk |
+|------|----------|--------------|----------|-------------|------|
+| 1 | [protocol] | [pool] | X.X% | X.X% | Low |
+| 2 | [protocol] | [pool] | X.X% | X.X% | Medium |
+| 3 | [protocol] | [pool] | X.X% | X.X% | Medium |
+
+### Lending Market Signal
+- **Stablecoin borrow rates**: X.X% โ†’ [high leverage demand / normal / low]
+- **ETH borrow rates**: X.X% โ†’ [shorting demand / normal]
+- **Utilization rates**: [high / normal / low]
+
+### Sustainability Assessment
+| Protocol | Real Yield % | Token Yield % | Verdict |
+|----------|-------------|---------------|---------|
+| [protocol] | XX% | XX% | Sustainable |
+| [protocol] | XX% | XX% | Emission-dependent |
+
+### Yield Strategy Recommendation
+- **Conservative**: [stablecoin lending on Aave/Compound, X-X% APY]
+- **Balanced**: [ETH staking + restaking, X-X% APY]
+- **Aggressive**: [LP on DEX with hedged IL, X-X% net APY]
+
+### Risk Warnings
+1. [Smart contract risk: protocol X is unaudited]
+2. [IL risk: volatile pair X/Y estimated IL X%]
+3. [Sustainability risk: protocol Y >80% token-funded]
+```
+
+## Notes
+
+- DeFi yields are highly variable and can change within hours; quoted APYs are point-in-time snapshots
+- "APY" in DeFi often assumes compounding that requires manual action (claiming + restaking); true returns may be lower
+- Smart contract risk is the dominant risk in DeFi; even audited protocols have been exploited (multi-sig, oracle manipulation)
+- Tax implications of DeFi yield vary by jurisdiction; yield farming income is taxable in most countries
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/doc-reader/SKILL.md b/agent/src/skills/doc-reader/SKILL.md
new file mode 100644
index 000000000..e7ce37d3f
--- /dev/null
+++ b/agent/src/skills/doc-reader/SKILL.md
@@ -0,0 +1,74 @@
+---
+name: doc-reader
+description: Read PDF documents (papers, annual reports, research reports), automatically extracting text pages and applying OCR to image/scanned pages. Use the `read_document` tool.
+---
+# PDF Document Reading
+
+## Purpose
+
+Read the full text of PDF documents and automatically handle two page types:
+- **Text pages** (most papers and digital reports) โ†’ extracted directly in milliseconds
+- **Image / scanned pages** (annual report charts, scanned research reports) โ†’ OCR recognition with Chinese and English support
+
+Applicable to PDF documents such as papers, annual reports, research reports, announcements, and contracts.
+
+## Usage
+
+**Call the `read_document` tool directly (do not use bash to write a Python script):**
+
+```
+read_document(file_path="uploads/paper.pdf")
+read_document(file_path="uploads/annual_report.pdf", pages="1-10")
+read_document(file_path="uploads/research.pdf", pages="1,3,15-20")
+```
+
+**Forbidden**: do not run a Python script from bash to read PDFs. Call the tool directly.
+
+## Return Format
+
+```json
+{
+ "status": "ok",
+ "file": "paper.pdf",
+ "total_pages": 45,
+ "pages_read": 45,
+ "ocr_pages": 3,
+ "char_count": 52000,
+ "truncated": true,
+ "text": "--- Page 1 ---\n...\n--- Page 5 [OCR] ---\n..."
+}
+```
+
+- `ocr_pages`: number of pages recognized via OCR (image / scanned pages)
+- `truncated`: content is truncated when it exceeds 15000 characters
+- `[OCR]` indicates that the page content was obtained via image recognition
+
+## Typical Workflows
+
+### Paper Summary
+```
+1. read_document(file_path="paper.pdf") โ†’ get the full text
+2. Analyze the text and extract the abstract, methodology, and conclusion
+3. Output the summary
+```
+
+### Annual Report Analysis
+```
+1. read_document(file_path="annual_report.pdf", pages="1-5") โ†’ read the summary first
+2. Determine the key sections from the summary
+3. read_document(file_path="...", pages="15-25") โ†’ read the financial-data section
+4. Extract key metrics
+```
+
+### Research Report Review
+```
+1. read_document(file_path="research.pdf") โ†’ full text
+2. Extract the core thesis, target price, and risk factors
+```
+
+## Notes
+
+- Content longer than 15000 characters will be truncated. For long documents, read them in chunks with the `pages` parameter
+- OCR pages are slower (about 1-3 seconds per page), while pure text pages are processed in milliseconds
+- OCR for charts and tables inside images may be imperfect, so complex tables should be checked manually
+- Only PDF format is supported
diff --git a/agent/src/skills/earnings-forecast/SKILL.md b/agent/src/skills/earnings-forecast/SKILL.md
new file mode 100644
index 000000000..ac534ab8c
--- /dev/null
+++ b/agent/src/skills/earnings-forecast/SKILL.md
@@ -0,0 +1,198 @@
+---
+name: earnings-forecast
+description: ็›ˆๅˆฉ้ข„ๆต‹ไธŽไธ€่‡ด้ข„ๆœŸๅˆ†ๆž๏ผˆ่‡ชไธŠ่€Œไธ‹/่‡ชไธ‹่€ŒไธŠ้ข„ๆต‹ๆณ•/SUE/PEAD/ๅˆ†ๆžๅธˆ้ข„ๆœŸไฟฎๆญฃ๏ผ‰๏ผŒๆ•ๆ‰ไธš็ปฉ่ถ…้ข„ๆœŸไบคๆ˜“ๆœบไผšใ€‚
+---
+# ็›ˆๅˆฉ้ข„ๆต‹ไธŽไธ€่‡ด้ข„ๆœŸ
+
+## ๆฆ‚่ฟฐ
+
+ๅ›ด็ป•ไผไธš็›ˆๅˆฉ้ข„ๆต‹ๅ’Œๅธ‚ๅœบไธ€่‡ด้ข„ๆœŸๅๅทฎๆž„ๅปบไบคๆ˜“ไฟกๅทใ€‚ๆ ธๅฟƒ้€ป่พ‘๏ผš่‚กไปท็ŸญๆœŸ็”ฑ็›ˆๅˆฉ้ข„ๆœŸๅทฎ้ฉฑๅŠจ๏ผŒๆ•ๆ‰ใ€Œ้ข„ๆœŸๅทฎใ€ๆฏ”้ข„ๆต‹็ปๅฏน็›ˆๅˆฉๆ›ดๆœ‰ไปทๅ€ผใ€‚ไธคๆกไธป็บฟ๏ผšโ‘  ่‡ชไธป้ข„ๆต‹ vs ไธ€่‡ด้ข„ๆœŸๅฏนๆฏ”ๅฏปๆ‰พๅๅทฎ๏ผ›โ‘ก ่ทŸ่ธชๅˆ†ๆžๅธˆ้ข„ๆœŸไฟฎๆญฃๅŠจ้‡ใ€‚
+
+## ๆ ธๅฟƒๆฆ‚ๅฟต
+
+### 1. ่‡ชไธŠ่€Œไธ‹้ข„ๆต‹ๆณ•๏ผˆTop-Down๏ผ‰
+
+**้ข„ๆต‹้“พๆก๏ผš**
+
+```
+GDPๅขž้€Ÿ้ข„ๆต‹ โ†’ ่กŒไธšๅขžๅŠ ๅ€ผๅขž้€Ÿ โ†’ ่กŒไธšๆ”ถๅ…ฅๅขž้€Ÿ โ†’ ้พ™ๅคดๅ…ฌๅธๆ”ถๅ…ฅๅขž้€Ÿ โ†’ ๅˆฉๆถฆ็އๅ‡่ฎพ โ†’ EPS้ข„ๆต‹
+```
+
+**A่‚กๅฎžๆˆ˜็คบไพ‹๏ผˆไปฅ็™ฝ้…’่กŒไธšไธบไพ‹๏ผ‰๏ผš**
+
+| ๅฑ‚็บง | ๆŒ‡ๆ ‡ | ้ข„ๆต‹้€ป่พ‘ |
+|------|------|---------|
+| ๅฎ่ง‚ | GDP +5.0% | ๆถˆ่ดนๅ GDPๆฏ”้‡65%๏ผŒๆถˆ่ดนๅขž้€Ÿ็บฆ+6% |
+| ่กŒไธš | ็™ฝ้…’ๆ”ถๅ…ฅ +8% | ้ซ˜็ซฏ็™ฝ้…’้‡ไปท้ฝๅ‡๏ผŒ็ป“ๆž„ๅ‡็บง |
+| ๅ…ฌๅธ | ่ดตๅทž่Œ…ๅฐ(600519.SH) | ๅ‡บๅŽ‚ไปท+10%๏ผŒ้”€้‡+2%๏ผŒๆ”ถๅ…ฅ็บฆ+12% |
+| ็›ˆๅˆฉ | ๅ‡€ๅˆฉๆถฆ็އ55% | ๆไปทไผ ๅฏผ๏ผŒ่ดน็”จ็އ็จณๅฎš |
+| EPS | ็บฆ62ๅ…ƒ | ๅ‡€ๅˆฉๆถฆ/ๆ€ป่‚กๆœฌ |
+
+**้€‚็”จๅœบๆ™ฏ๏ผš** ่กŒไธšbetaๅˆคๆ–ญใ€ๅคง็›˜็›ˆๅˆฉๅ‘จๆœŸๅฎšไฝใ€ๅฎ่ง‚็ญ–็•ฅ้…ๅˆ
+
+### 2. ่‡ชไธ‹่€ŒไธŠ้ข„ๆต‹ๆณ•๏ผˆBottom-Up๏ผ‰
+
+**ๆ”ถๅ…ฅๆ‹†่งฃไธ‰ๆฟๆ–ง๏ผš**
+
+```python
+# ๆ–นๆณ•1๏ผš้‡ไปทๆ‹†่งฃ
+revenue = volume * price
+# ไพ‹๏ผšไธญๅ›ฝ็ฅžๅŽ(601088.SH) = ็…ค็‚ญ้”€้‡(ไบฟๅจ) ร— ็…คไปท(ๅ…ƒ/ๅจ) + ็”ตๅŠ›ๆ”ถๅ…ฅ
+
+# ๆ–นๆณ•2๏ผšๅฎขๆˆท/ไบงๅ“ๆ‹†่งฃ
+revenue = sum(segment_revenue for segment in business_lines)
+# ไพ‹๏ผš็พŽ็š„้›†ๅ›ข(000333.SZ) = ๆš–้€š็ฉบ่ฐƒ + ๆถˆ่ดน็”ตๅ™จ + ๆœบๅ™จไบบๅŠ่‡ชๅŠจๅŒ–
+
+# ๆ–นๆณ•3๏ผš้—จๅบ—/็”จๆˆทๆ‹†่งฃ
+revenue = stores * revenue_per_store # ๆˆ– users * ARPU
+# ไพ‹๏ผšๆตทๅบ•ๆž(6862.HK) = ้—จๅบ—ๆ•ฐ ร— ็ฟปๅฐ็އ ร— ๅฎขๅ•ไปท ร— ่ฅไธšๅคฉๆ•ฐ
+```
+
+**ๅˆฉๆถฆ็އๅ‡่ฎพๅ…ณ้”ฎ็‚น๏ผš**
+- ๆฏ›ๅˆฉ็އ๏ผšๅŽŸๆๆ–™ๆˆๆœฌๅ ๆฏ”ๅ˜ๅŠจใ€ไบงๅ“็ป“ๆž„ๅ‡็บง
+- ่ดน็”จ็އ๏ผš่ง„ๆจกๆ•ˆๅบ”๏ผˆๆ”ถๅ…ฅๅขžใ€่ดน็”จ็އ้™๏ผ‰ใ€็ ”ๅ‘ๆŠ•ๅ…ฅๅ˜ๅŠจ
+- ็จŽ็އ๏ผš้ซ˜ๆ–ฐๆŠ€ๆœฏไผไธš15% vs ๆ™ฎ้€š25%๏ผŒๆ˜ฏๅฆๆœ‰็จŽๆ”ถไผ˜ๆƒ ๅˆฐๆœŸ
+
+### 3. ๆ ‡ๅ‡†ๅŒ–ๆœช้ข„ๆœŸ็›ˆๅˆฉ๏ผˆSUE๏ผ‰
+
+**ๅ…ฌๅผ๏ผš**
+
+```python
+SUE = (actual_EPS - consensus_EPS) / std(actual_EPS - consensus_EPS)
+# consensus_EPS = ๅˆ†ๆžๅธˆไธ€่‡ด้ข„ๆœŸEPS๏ผˆๅ–ไธญไฝๆ•ฐ๏ผ‰
+# std = ่ฟ‡ๅŽป8ไธชๅญฃๅบฆ้ข„ๆต‹ๅๅทฎ็š„ๆ ‡ๅ‡†ๅทฎ
+```
+
+**ไฟกๅท้˜ˆๅ€ผ๏ผˆA่‚กๅฎž่ฏๅ‚่€ƒ๏ผ‰๏ผš**
+
+| SUE่Œƒๅ›ด | ๅซไน‰ | ไบคๆ˜“ๅŠจไฝœ |
+|---------|------|---------|
+| SUE > +2.0 | ๅคงๅน…่ถ…้ข„ๆœŸ | ๅผบไนฐๅ…ฅไฟกๅท |
+| SUE +1.0~+2.0 | ๆธฉๅ’Œ่ถ…้ข„ๆœŸ | ไนฐๅ…ฅไฟกๅท |
+| SUE -1.0~+1.0 | ็ฌฆๅˆ้ข„ๆœŸ | ๆ— ไฟกๅท |
+| SUE -2.0~-1.0 | ๆธฉๅ’ŒไฝŽไบŽ้ข„ๆœŸ | ๅ–ๅ‡บไฟกๅท |
+| SUE < -2.0 | ๅคงๅน…ไฝŽไบŽ้ข„ๆœŸ | ๅผบๅ–ๅ‡บไฟกๅท |
+
+### 4. ็›ˆไฝ™ๅ…ฌๅ‘ŠๅŽๆผ‚็งป๏ผˆPEAD๏ผ‰
+
+**็Žฐ่ฑก๏ผš** ไธš็ปฉๅ…ฌๅ‘ŠๅŽ๏ผŒ่ถ…้ข„ๆœŸๆ–นๅ‘็š„่‚กไปทๆผ‚็งปๅฏๆŒ็ปญ30-60ไธชไบคๆ˜“ๆ—ฅใ€‚
+
+**A่‚กPEAD็ญ–็•ฅๅฎž็Žฐ๏ผš**
+
+```python
+# ็ญ–็•ฅ้€ป่พ‘
+# 1. ไธš็ปฉๅ…ฌๅ‘Šๆ—ฅ๏ผˆๅนดๆŠฅ4/30ๅ‰๏ผŒไธญๆŠฅ8/31ๅ‰๏ผŒๅญฃๆŠฅๅ„ๆˆชๆญขๆ—ฅ๏ผ‰
+# 2. ่ฎก็ฎ—SUE
+# 3. SUE > +1.5 ็š„่‚ก็ฅจไนฐๅ…ฅๆŒๆœ‰ 40 ไธชไบคๆ˜“ๆ—ฅ
+# 4. SUE < -1.5 ็š„่‚ก็ฅจๅ–ๅ‡บ/ๅš็ฉบ๏ผˆๅฆ‚ๆžœๅฏไปฅ๏ผ‰
+
+# ๅ…ณ้”ฎๅ‚ๆ•ฐ
+holding_period = 40 # ๆŒๆœ‰ไบคๆ˜“ๆ—ฅๆ•ฐ
+sue_threshold = 1.5 # SUE้˜ˆๅ€ผ
+max_positions = 10 # ๆœ€ๅคงๆŒไป“ๆ•ฐ
+rebalance_on = "earnings_date" # ๅœจไธš็ปฉๅ…ฌๅ‘Šๆ—ฅ่ฐƒไป“
+```
+
+**A่‚กPEADๆณจๆ„ไบ‹้กน๏ผš**
+- A่‚กๅš็ฉบๅ—้™๏ผˆ่žๅˆธ๏ผ‰๏ผŒPEAD็ญ–็•ฅ้€šๅธธๅชๅšๅคšๅคด
+- ไธš็ปฉ้ข„ๅ‘Š๏ผˆ1ๆœˆๅบ•/7ๆœˆไธญๆ—ฌ๏ผ‰ๆฏ”ๆญฃๅผๆŠฅๅ‘Šๆ›ดๆ—ฉ๏ผŒๆŠขๅ…ˆๅๅบ”
+- ๅนดๆŠฅ4/30ๆˆชๆญข๏ผŒ้›†ไธญๅœจ4ๆœˆๅ‘ๅธƒ๏ผŒไฟกๆฏๆ‹ฅๆŒคๆœŸ้œ€ๅˆ†ๆ•ฃ
+
+### 5. ๅˆ†ๆžๅธˆ้ข„ๆœŸไฟฎๆญฃๅŠจ้‡
+
+**ไธ‰ไธชๅ…ณ้”ฎๆŒ‡ๆ ‡๏ผš**
+
+```python
+# 1. ้ข„ๆœŸไฟฎๆญฃๆฏ”็އ๏ผˆERM๏ผ‰
+ERM = (ไธŠ่ฐƒๅฎถๆ•ฐ - ไธ‹่ฐƒๅฎถๆ•ฐ) / ๆ€ป่ฆ†็›–ๅฎถๆ•ฐ
+# ERM > 0.3 = ๆญฃ้ขๅŠจ้‡, ERM < -0.3 = ่ดŸ้ขๅŠจ้‡
+
+# 2. ้ข„ๆœŸๅ˜ๅŒ–ๅน…ๅบฆ
+eps_change_pct = (new_consensus - old_consensus_30d_ago) / abs(old_consensus_30d_ago)
+# ๅ˜ๅŒ– > +5% = ๆ˜พ่‘—ไธŠ่ฐƒ
+
+# 3. ้ข„ๆœŸ็ฆปๆ•ฃๅบฆ
+dispersion = std(all_analyst_EPS) / mean(all_analyst_EPS)
+# ็ฆปๆ•ฃๅบฆ > 0.3 = ๅˆ†ๆญงๅคง, ไธ็กฎๅฎšๆ€ง้ซ˜
+# ็ฆปๆ•ฃๅบฆ < 0.1 = ๅ…ฑ่ฏ†ๅผบ, ็กฎๅฎšๆ€ง้ซ˜
+```
+
+**้ข„ๆœŸไฟฎๆญฃๅŠจ้‡็ญ–็•ฅ๏ผš**
+- ไนฐๅ…ฅ๏ผšERM > +0.3 ไธ” eps_change_pct > +5% ไธ” dispersion < 0.25
+- ๅ–ๅ‡บ๏ผšERM < -0.3 ไธ” eps_change_pct < -5%
+- ไฟกๅทๆœ‰ๆ•ˆๆœŸ๏ผš็บฆ 60-90 ไธชไบคๆ˜“ๆ—ฅ๏ผˆ้ข„ๆœŸไฟฎๆญฃๅŠจ้‡่กฐๅ‡๏ผ‰
+
+## ๅˆ†ๆžๆก†ๆžถ
+
+### ็›ˆๅˆฉๅˆ†ๆžๅ››ๆญฅๆณ•
+
+1. **ๆž„ๅปบ้ข„ๆต‹**๏ผš้€‰ๆ‹ฉTop-Downๆˆ–Bottom-Upๆ–นๆณ•๏ผŒ่พ“ๅ‡บEPS้ข„ๆต‹ๅ€ผ
+2. **่Žทๅ–ไธ€่‡ด้ข„ๆœŸ**๏ผšไปŽWind/ไธœๆ–น่ดขๅฏŒ/ๅŒ่Šฑ้กบ่Žทๅ–ๅˆ†ๆžๅธˆไธ€่‡ด้ข„ๆœŸEPS
+3. **่ฎก็ฎ—ๅๅทฎ**๏ผšSUEๆˆ–็ฎ€ๅ•็™พๅˆ†ๆฏ”ๅๅทฎ๏ผŒๅˆคๆ–ญ่ถ…้ข„ๆœŸ/ไฝŽไบŽ้ข„ๆœŸๆ–นๅ‘
+4. **ไฟกๅท็”Ÿๆˆ**๏ผšๆ นๆฎSUE้˜ˆๅ€ผ็”Ÿๆˆไบคๆ˜“ไฟกๅท๏ผŒ็ป“ๅˆPEADๆŒๆœ‰ๆœŸ็ฎก็†ไป“ไฝ
+
+### ่ดขๆŠฅๆ—ฅๅކ๏ผˆA่‚กๅ…ณ้”ฎๆ—ถ้—ด่Š‚็‚น๏ผ‰
+
+| ๆ—ถ้—ด | ไบ‹ไปถ | ็ญ–็•ฅๅŠจไฝœ |
+|------|------|---------|
+| 1ๆœˆไธญๆ—ฌ | ๅนดๆŠฅไธš็ปฉ้ข„ๅ‘ŠๆŠซ้œฒ้ซ˜ๅณฐ | ๆŠขๅ…ˆๆ•ๆ‰้ข„ๆœŸๅทฎ |
+| 3-4ๆœˆ | ๅนดๆŠฅๆญฃๅผๅ‘ๅธƒ | ็กฎ่ฎคSUE๏ผŒPEADๅปบไป“ |
+| 4ๆœˆ30ๆ—ฅ | ๅนดๆŠฅๆˆชๆญขๆ—ฅ | ๆœชๆŠซ้œฒ = ๅˆฉ็ฉบไฟกๅท |
+| 7ๆœˆไธญๆ—ฌ | ไธญๆŠฅไธš็ปฉ้ข„ๅ‘Š | ๅŠๅนดๅบฆ้ข„ๆœŸไฟฎๆญฃ |
+| 8ๆœˆ31ๆ—ฅ | ไธญๆŠฅๆˆชๆญขๆ—ฅ | ๅŒไธŠ |
+| 10ๆœˆ31ๆ—ฅ | ไธ‰ๅญฃๆŠฅๆˆชๆญขๆ—ฅ | Q3ๆ•ฐๆฎ้ชŒ่ฏๅ…จๅนด้ข„ๆœŸ |
+
+### ้ข„ๆœŸๅทฎไบคๆ˜“็ป„ๅˆๆž„ๅปบ
+
+```python
+# ็ป„ๅˆๆž„ๅปบๅ‚ๆ•ฐ
+config = {
+ "universe": "ๆฒชๆทฑ300ๆˆๅˆ†่‚ก", # ๆตๅŠจๆ€งไฟ้šœ
+ "signal": "SUE > +1.5 ๆˆ– ERM > +0.3", # ่ถ…้ข„ๆœŸไฟกๅท
+ "max_positions": 20, # ๆœ€ๅคงๆŒไป“
+ "position_weight": "equal", # ็ญ‰ๆƒ
+ "holding_period": 40, # ไบคๆ˜“ๆ—ฅ
+ "rebalance": "earnings_calendar", # ๆŒ‰่ดขๆŠฅๆ—ฅๅކ่ฐƒไป“
+ "stop_loss": -0.08, # 8%ๆญขๆŸ
+}
+```
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+```
+## ็›ˆๅˆฉ้ข„ๆต‹ๅˆ†ๆž โ€” [ๆ ‡็š„ไปฃ็ ] [ๅ…ฌๅธๅ็งฐ]
+
+### ็›ˆๅˆฉ้ข„ๆต‹
+- ้ข„ๆต‹ๆ–นๆณ•๏ผš[Top-Down / Bottom-Up]
+- ้ข„ๆต‹EPS๏ผš[Xๅ…ƒ]
+- ้ข„ๆต‹ไพๆฎ๏ผš[ๆ”ถๅ…ฅๅขž้€ŸX%๏ผŒๅˆฉๆถฆ็އX%๏ผŒๅ…ณ้”ฎๅ‡่ฎพ]
+
+### ไธ€่‡ด้ข„ๆœŸๅฏนๆฏ”
+- ไธ€่‡ด้ข„ๆœŸEPS๏ผš[Xๅ…ƒ]๏ผˆๆฅๆบ๏ผš[Wind/ไธœ่ดข]๏ผŒ่ฆ†็›–[N]ๅฎถ๏ผ‰
+- ้ข„ๆœŸๅๅทฎ๏ผš[+X% / -X%]
+- SUE๏ผš[+X.X]
+- ้ข„ๆœŸ็ฆปๆ•ฃๅบฆ๏ผš[X.X]๏ผˆ[้ซ˜ๅˆ†ๆญง/ไฝŽๅˆ†ๆญง]๏ผ‰
+
+### ๅˆ†ๆžๅธˆๅŠจ้‡
+- ERM๏ผˆ้ข„ๆœŸไฟฎๆญฃๆฏ”็އ๏ผ‰๏ผš[+X.X]๏ผˆ่ฟ‡ๅŽป30ๆ—ฅ[N]ๅฎถไธŠ่ฐƒ/[M]ๅฎถไธ‹่ฐƒ๏ผ‰
+- ้ข„ๆœŸๅ˜ๅŒ–ๅน…ๅบฆ๏ผš[+X%]
+
+### ไฟกๅทๅˆคๆ–ญ
+- SUEไฟกๅท๏ผš[ๅผบไนฐๅ…ฅ/ไนฐๅ…ฅ/ๆ— /ๅ–ๅ‡บ/ๅผบๅ–ๅ‡บ]
+- ๅŠจ้‡ไฟกๅท๏ผš[ๆญฃ้ข/ไธญๆ€ง/่ดŸ้ข]
+- PEADๅปบไป“็ช—ๅฃ๏ผš[ๆ˜ฏ/ๅฆ]๏ผˆ่ท่ดขๆŠฅๅ‘ๅธƒ[X]ๆ—ฅ๏ผ‰
+
+### ้ฃŽ้™ฉๆ็คบ
+- [ๅ…ทไฝ“้ฃŽ้™ฉ๏ผšๅฆ‚ไธ€ๆฌกๆ€งๆ”ถ็›Šใ€ไผš่ฎกๆ”ฟ็ญ–ๅ˜ๆ›ดใ€ๅ•†่ช‰ๅ‡ๅ€ผ็ญ‰]
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+- ไธ€่‡ด้ข„ๆœŸๆ•ฐๆฎ้œ€่ฆWind/Choice็ญ‰ไป˜่ดน็ปˆ็ซฏ๏ผŒๅ…่ดนๆ•ฐๆฎๆบ๏ผˆไธœๆ–น่ดขๅฏŒ็ฝ‘้กต็‰ˆ๏ผ‰ๅฏ่ƒฝไธๅคŸๅŠๆ—ถ
+- SUE่ฎก็ฎ—้œ€่ฆ่‡ณๅฐ‘8ไธชๅญฃๅบฆ็š„ๅކๅฒ้ข„ๆต‹ๅๅทฎๆ•ฐๆฎๆฅไผฐ่ฎกๆ ‡ๅ‡†ๅทฎ
+- ไธš็ปฉ้ข„ๅ‘Šๅ’Œไธš็ปฉๅฟซๆŠฅๆ˜ฏๆฏ”ๆญฃๅผ่ดขๆŠฅๆ›ดๆ—ฉ็š„ไฟกๅทๆบ๏ผŒไฝ†็ฒพๅบฆ่พƒไฝŽ
+- A่‚ก่ดขๆŠฅๅญฃไฟกๆฏๆ‹ฅๆŒค๏ผˆ4ๆœˆ/8ๆœˆ๏ผ‰๏ผŒPEADไฟกๅทๅฏ่ƒฝไบ’็›ธๅนฒๆ‰ฐ
+- ไธ€ๆฌกๆ€งๆŸ็›Š๏ผˆ่ต„ไบงๅค„็ฝฎ/ๆ”ฟๅบœ่กฅ่ดด/ๆŠ•่ต„ๆ”ถ็›Š๏ผ‰ไผšๆ‰ญๆ›ฒEPS๏ผŒ้œ€ๅ‰”้™ค้ž็ปๅธธๆ€งๆŸ็›Š็”จๆ‰ฃ้žEPS
+- ้ข„ๆœŸไฟฎๆญฃๅŠจ้‡ๆœ‰่‡ชๆˆ‘ๅฎž็Žฐๅ€พๅ‘๏ผˆๅˆ†ๆžๅธˆ็พŠ็พคๆ•ˆๅบ”๏ผ‰๏ผŒๆ‹็‚น่ฏ†ๅˆซๆฏ”่ถ‹ๅŠฟ่ทŸ่ธชๆ›ดๆœ‰ไปทๅ€ผ
+- ๅฐๅธ‚ๅ€ผ่‚ก็ฅจๅˆ†ๆžๅธˆ่ฆ†็›–ๅฐ‘๏ผˆ< 3ๅฎถ๏ผ‰๏ผŒไธ€่‡ด้ข„ๆœŸ็ปŸ่ฎกๆ„ไน‰ๅผฑ๏ผŒไผ˜ๅ…ˆ้€‰ๆ‹ฉๆฒชๆทฑ300/ไธญ่ฏ500ๆˆๅˆ†่‚ก
+- ๆœฌๆก†ๆžถไป…็”จไบŽ็ ”็ฉถๅ›žๆต‹๏ผŒไธๆž„ๆˆๆŠ•่ต„ๅปบ่ฎฎ
diff --git a/agent/src/skills/earnings-revision/SKILL.md b/agent/src/skills/earnings-revision/SKILL.md
new file mode 100644
index 000000000..0a4d3850f
--- /dev/null
+++ b/agent/src/skills/earnings-revision/SKILL.md
@@ -0,0 +1,232 @@
+---
+name: earnings-revision
+description: Earnings estimate revisions, guidance analysis, and post-earnings drift (PEAD) โ€” track analyst consensus changes, earnings surprise patterns, and management guidance shifts for US/HK equities.
+---
+# Earnings Revision & Guidance Analysis
+
+## Overview
+
+Track sell-side analyst estimate revisions, management guidance changes, and post-earnings price drift to generate investment signals. Earnings revisions are among the most persistent and well-documented alpha factors in equity markets โ€” stocks with upward revisions tend to continue outperforming, and vice versa.
+
+## Core Concepts
+
+### 1. Earnings Revision Momentum
+
+**The revision signal hierarchy (strongest to weakest):**
+
+| Signal Type | Description | Typical Alpha (annualized) | Persistence |
+|-------------|-------------|---------------------------|-------------|
+| Earnings surprise (beat/miss) | Actual EPS vs consensus | 3-8% post-event drift | 60-90 days (PEAD) |
+| Consensus revision breadth | % of analysts revising up vs down | 4-6% long-short spread | 3-6 months |
+| Estimate magnitude change | Size of revision relative to prior estimate | 3-5% | 1-3 months |
+| Guidance revision | Management guidance change vs prior | 5-10% on event | Immediate + 30-60 day drift |
+| Whisper number miss/beat | Actual vs buy-side whisper (not official consensus) | 2-4% | 1-2 weeks |
+
+### 2. Key Metrics
+
+**Earnings Surprise:**
+```python
+# Standardized Unexpected Earnings (SUE)
+sue = (actual_eps - consensus_eps) / std_of_forecast_errors
+
+# Interpretation
+# SUE > +2: large positive surprise โ†’ strong PEAD signal
+# SUE < -2: large negative surprise โ†’ strong negative PEAD
+# |SUE| < 0.5: in-line with expectations โ†’ weak signal
+```
+
+**Revision Breadth:**
+```python
+# Revision breadth ratio
+breadth = (num_upgrades - num_downgrades) / total_analysts
+
+# Interpretation
+# breadth > +0.5: strong consensus upgrade momentum
+# breadth < -0.5: strong consensus downgrade momentum
+# |breadth| < 0.2: mixed / no clear direction
+```
+
+**Estimate Dispersion:**
+```python
+# Analyst disagreement
+dispersion = std_of_estimates / abs(mean_estimate)
+
+# High dispersion (>15%): high uncertainty โ†’ larger potential surprise
+# Low dispersion (<5%): tight consensus โ†’ smaller surprise but higher confidence
+```
+
+### 3. Post-Earnings Announcement Drift (PEAD)
+
+The most robust anomaly in equity markets: prices continue to drift in the direction of the earnings surprise for 60-90 days after the announcement.
+
+**PEAD trading rules:**
+
+| Surprise Quintile | Average 60-day Drift | Strategy |
+|-------------------|---------------------|----------|
+| Q5 (top surprise) | +4 to +8% | Go long, hold 60-90 days |
+| Q4 | +1 to +3% | Mild long |
+| Q3 (in-line) | ~0% | No action |
+| Q2 | -1 to -3% | Mild short / underweight |
+| Q1 (worst surprise) | -4 to -8% | Go short / avoid, hold 60-90 days |
+
+**PEAD enhancement filters:**
+- Small/mid cap > large cap (less analyst coverage = slower price discovery)
+- Low institutional ownership > high ownership (slower information diffusion)
+- First surprise in a direction > consecutive same-direction surprises
+- Revenue surprise + EPS surprise together > EPS surprise alone
+
+### 4. Management Guidance Analysis
+
+**Guidance types:**
+
+| Type | What It Covers | Signal Weight |
+|------|----------------|---------------|
+| Revenue guidance | Top-line outlook | High (harder to manipulate) |
+| EPS guidance | Bottom-line outlook | Medium (can be managed via buybacks, tax rate) |
+| Margin guidance | Profitability trajectory | High (reflects pricing power and cost control) |
+| CapEx guidance | Investment intentions | Medium (forward-looking growth signal) |
+| Segment guidance | Division-level detail | High (reveals where growth is coming from) |
+
+**Guidance change signals:**
+
+```python
+# Guidance revision scoring
+def score_guidance_change(current_guide, prior_guide, consensus):
+ # Guide above consensus = positive signal
+ if current_guide.midpoint > consensus * 1.02:
+ guide_vs_consensus = "above"
+ elif current_guide.midpoint < consensus * 0.98:
+ guide_vs_consensus = "below"
+ else:
+ guide_vs_consensus = "inline"
+
+ # Guide raised vs lowered vs maintained
+ if prior_guide:
+ if current_guide.midpoint > prior_guide.midpoint * 1.01:
+ guide_revision = "raised"
+ elif current_guide.midpoint < prior_guide.midpoint * 0.99:
+ guide_revision = "lowered"
+ else:
+ guide_revision = "maintained"
+
+ # Strongest signal: raised guidance above consensus
+ # Weakest signal: lowered guidance below consensus
+```
+
+**Guidance language analysis:**
+
+| Language Pattern | Interpretation | Signal |
+|-----------------|----------------|--------|
+| "Raising full-year outlook" | Confidence in acceleration | Strong positive |
+| "Reaffirming guidance" | No change, on-track | Mild positive (met expectations) |
+| "Narrowing guidance range to upper half" | Soft raise without formal revision | Positive |
+| "Updating guidance to reflect..." | Euphemism for guidance cut | Negative |
+| "Withdrawing guidance" | High uncertainty, loss of visibility | Strong negative |
+| "Providing preliminary results" | Pre-announcement, usually bad news | Negative (if below consensus) |
+
+### 5. Earnings Quality Indicators
+
+**Red flags in earnings reports:**
+1. Revenue growing but cash flow declining โ†’ accrual manipulation
+2. Changing revenue recognition policy โ†’ inflating top line
+3. Declining DSO (Days Sales Outstanding) story contradicted by rising AR โ†’ channel stuffing
+4. Beating EPS via lower tax rate or share buyback, not operating improvement
+5. Frequent "non-GAAP adjustments" that always add back expenses โ†’ questionable earnings quality
+6. Inventory build outpacing revenue growth โ†’ future write-down risk
+
+**Quality scoring:**
+```python
+earnings_quality = {
+ "fcf_conversion": fcf / net_income, # >0.8 = good, <0.5 = poor
+ "accrual_ratio": (net_income - ocf) / avg_assets, # <5% = good, >10% = concern
+ "revenue_cash_alignment": revenue_growth - ocf_growth, # small gap = good
+ "non_gaap_gap": non_gaap_eps - gaap_eps, # large gap = red flag
+ "buyback_eps_boost": eps_growth - net_income_growth, # large = artificial
+}
+```
+
+## Earnings Calendar and Workflow
+
+### Pre-Earnings Analysis Checklist
+
+1. **Consensus snapshot**: current EPS/revenue consensus, revision trend (30d/60d/90d)
+2. **Historical surprise pattern**: has the company consistently beat/missed? By how much?
+3. **Guidance comparison**: last quarter's guidance vs current consensus
+4. **Whisper number**: buy-side expectations (often 1-3% above street consensus for serial beaters)
+5. **Options market pricing**: implied move from at-the-money straddle
+6. **Sector peers already reported**: read-through signals from competitors
+
+### Post-Earnings Analysis Checklist
+
+1. **Headline numbers**: EPS surprise %, revenue surprise %
+2. **Quality of beat/miss**: operating income-driven or one-time items?
+3. **Guidance change**: raised / maintained / lowered / withdrawn
+4. **Call tone**: management confidence level, Q&A defensiveness
+5. **Analyst reaction**: immediate revision direction (first 24-48 hours)
+6. **Price/volume reaction**: gap up/down, reversal, volume multiple vs average
+
+## Multi-Market Considerations
+
+### US Equities
+- Earnings season: Jan/Apr/Jul/Oct (roughly 2-6 weeks after quarter-end)
+- Data: SEC filings (10-Q within 40 days, 10-K within 60 days for large accelerated filers)
+- Consensus: Bloomberg, Refinitiv, FactSet, Visible Alpha
+- Via yfinance: `ticker.earnings_dates`, `ticker.earnings_history`
+
+### Hong Kong Equities
+- Earnings season: Mar-Apr (annual), Aug-Sep (interim)
+- Many HK-listed companies report semi-annually, not quarterly
+- Dual-listed (A+H): compare A-share analyst estimates vs HK analyst estimates for arbitrage
+- Via yfinance: `yf.Ticker("0700.HK").financials`
+
+### Key Differences
+
+| Dimension | US | HK |
+|-----------|----|----|
+| Reporting frequency | Quarterly | Semi-annual (most) |
+| Guidance practice | Common | Rare |
+| Analyst coverage | Deep (>20 for large caps) | Thinner (5-15 for large caps) |
+| Pre-announcement | Regulated (Reg FD) | Less regulated |
+| Earnings call | Standard | Less common for mid/small caps |
+
+## Output Format
+
+```
+## Earnings Revision Analysis โ€” [Ticker]
+
+### Consensus Snapshot
+- **Current FY EPS consensus**: $X.XX (N analysts)
+- **30-day revision**: [up/down X%] โ€” [N upgrades / N downgrades]
+- **60-day revision**: [up/down X%]
+- **Estimate dispersion**: [low/medium/high] (CV = X%)
+
+### Last Earnings Event
+- **Date**: YYYY-MM-DD | **Quarter**: FY25Q3
+- **EPS**: $X.XX actual vs $X.XX consensus (surprise: +X%)
+- **Revenue**: $X.XB actual vs $X.XB consensus (surprise: +X%)
+- **Guidance**: [raised / maintained / lowered] โ€” FY25 EPS guide: $X.XX-$X.XX
+- **Price reaction**: [+X% on day, +X% over 5 days]
+
+### Revision Momentum
+- **Breadth**: [+0.6 โ†’ strong upgrade momentum]
+- **Magnitude**: [average revision +X% over 30 days]
+- **PEAD status**: [still within 60-day drift window / drift exhausted]
+
+### Earnings Quality
+- **FCF conversion**: X% [strong/adequate/weak]
+- **Accrual ratio**: X% [clean/moderate/concern]
+- **Non-GAAP gap**: $X.XX [small/large]
+
+### Signal
+- **Direction**: [bullish / neutral / bearish]
+- **Catalyst**: [next earnings date: YYYY-MM-DD]
+- **Confidence**: [high / medium / low]
+```
+
+## Notes
+
+- Earnings revision data requires real-time consensus feeds (Bloomberg, Refinitiv) for professional-grade signals; yfinance provides historical actuals but not real-time consensus
+- PEAD is strongest in the first 30 days post-announcement; signal decays significantly after 60 days
+- Guidance withdrawals are almost always negative โ€” companies rarely withdraw guidance when business is going well
+- Beware of "beat and lower" โ€” beating current quarter but lowering forward guidance is often net negative
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/edgar-sec-filings/SKILL.md b/agent/src/skills/edgar-sec-filings/SKILL.md
new file mode 100644
index 000000000..c7b0e45bb
--- /dev/null
+++ b/agent/src/skills/edgar-sec-filings/SKILL.md
@@ -0,0 +1,296 @@
+---
+name: edgar-sec-filings
+description: SEC EDGAR filing analysis โ€” 10-K, 10-Q, 8-K, proxy statements, insider Form 4. Extract key financials, risk factors, management discussion, and generate investment signals from US public company filings.
+---
+# SEC EDGAR Filing Analysis
+
+## Overview
+
+Analyze US public company filings from SEC EDGAR to extract fundamental insights, risk signals, and investment-relevant information. Covers annual reports (10-K), quarterly reports (10-Q), current events (8-K), proxy statements (DEF 14A), and insider transactions (Form 4).
+
+This skill provides the analytical framework for interpreting SEC filings. Data retrieval uses `read_url` tool with EDGAR URLs or `yfinance` Ticker objects for structured financial data.
+
+## Filing Types and Investment Relevance
+
+| Filing | Frequency | Key Content | Signal Value |
+|--------|-----------|-------------|--------------|
+| 10-K | Annual | Full-year financials, risk factors, MD&A, segment data | Comprehensive fundamental view |
+| 10-Q | Quarterly | Quarterly financials, interim MD&A, legal updates | Trend confirmation / inflection detection |
+| 8-K | Event-driven | Material events: M&A, CEO change, restatement, guidance | Catalyst / risk trigger |
+| DEF 14A | Annual (proxy) | Executive comp, board composition, shareholder proposals | Governance quality signal |
+| Form 4 | Within 2 days | Insider buys / sells | Insider conviction signal |
+| 13F | Quarterly | Institutional holdings >$100M AUM | Smart money positioning |
+| SC 13D/G | Event-driven | >5% ownership stake disclosure | Activist / strategic investor signal |
+
+## EDGAR Data Access
+
+### Direct EDGAR URLs
+
+```python
+# Company filings search
+# https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK={ticker}&type={filing_type}
+
+# Example: Apple 10-K filings
+url = "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=AAPL&type=10-K&dateb=&owner=include&count=10"
+
+# EDGAR full-text search (EFTS)
+# https://efts.sec.gov/LATEST/search-index?q={query}&dateRange=custom&startdt={start}&enddt={end}
+```
+
+### Via yfinance (structured data)
+
+```python
+import yfinance as yf
+ticker = yf.Ticker("AAPL")
+
+# Financial statements (derived from 10-K/10-Q)
+income = ticker.financials # Annual income statement
+income_q = ticker.quarterly_financials # Quarterly
+balance = ticker.balance_sheet # Balance sheet
+cashflow = ticker.cashflow # Cash flow statement
+
+# Insider transactions (derived from Form 4)
+insider = ticker.insider_transactions
+
+# Institutional holders (derived from 13F)
+institutions = ticker.institutional_holders
+major = ticker.major_holders
+```
+
+## 10-K / 10-Q Analysis Framework
+
+### I. Financial Statement Deep Dive
+
+**Income Statement Focus:**
+- Revenue growth rate: YoY and QoQ acceleration / deceleration
+- Gross margin trend: expanding (pricing power) vs compressing (cost pressure)
+- Operating leverage: SG&A as % of revenue declining = positive operating leverage
+- R&D intensity: R&D / revenue ratio vs peers
+- Non-recurring items: restructuring charges, impairments, one-time gains
+
+**Balance Sheet Focus:**
+- Cash & equivalents vs total debt: net cash / net debt position
+- Current ratio and quick ratio: liquidity health
+- Goodwill / intangibles as % of total assets: acquisition-driven growth risk
+- Inventory days (for manufacturers / retailers): rising = demand weakness signal
+- Accounts receivable days: rising = collection risk or channel stuffing
+
+**Cash Flow Focus:**
+- FCF = Operating CF - CapEx: true cash generation power
+- FCF conversion = FCF / Net Income: >80% = high earnings quality
+- CapEx intensity = CapEx / Revenue: rising = growth investment or maintenance burden
+- Stock-based compensation: add back to get true cash earnings
+- Buyback vs dividend: capital return strategy signal
+
+### II. MD&A (Management Discussion & Analysis)
+
+The MD&A section is the most qualitative and forward-looking part of the filing.
+
+**Key extraction targets:**
+1. **Revenue drivers**: which segments / geographies are growing, which are declining
+2. **Margin commentary**: management explanation for margin changes
+3. **Forward guidance language**: "expect", "anticipate", "believe" โ€” tone shift detection
+4. **Risk factor changes**: compare risk factors vs prior filing; NEW risks added = material change
+5. **Liquidity and capital resources**: debt maturity schedule, credit facility availability
+
+**Tone analysis signals:**
+```python
+# Simplified tone scoring
+positive_words = ["growth", "improvement", "strong", "exceeded", "momentum", "opportunity"]
+negative_words = ["challenging", "decline", "uncertainty", "headwind", "pressure", "risk"]
+cautious_words = ["moderate", "cautious", "prudent", "measured", "selective"]
+
+# Count frequency change vs prior filing
+# Rising negative word count = deteriorating outlook
+# Rising cautious words = management hedging
+```
+
+### III. Risk Factor Analysis
+
+**Risk factor change detection (10-K vs prior 10-K):**
+
+| Change Type | Signal | Action |
+|-------------|--------|--------|
+| New risk factor added | Material new risk identified | Deep dive on the specific risk |
+| Risk factor removed | Risk resolved or deemed immaterial | Positive signal if genuine resolution |
+| Language intensified | Risk escalating | Review exposure and hedging |
+| Order changed (moved higher) | Risk priority elevated | Assess potential impact magnitude |
+
+**Common risk categories for US equities:**
+- Regulatory / legal risk (antitrust, FDA, patent expiry)
+- Customer concentration (>10% revenue from single customer must be disclosed)
+- Geographic concentration (China exposure, emerging market risk)
+- Technology disruption risk
+- Cybersecurity risk (new SEC mandate: material cybersecurity incidents must be disclosed in 8-K)
+- Climate / ESG risk (increasingly required)
+
+## 8-K Event Analysis
+
+### Material Event Classification
+
+| Event Type | 8-K Item | Typical Price Impact | Time Sensitivity |
+|------------|----------|---------------------|------------------|
+| Earnings pre-release | 2.02 | High | Immediate |
+| M&A announcement | 1.01 | Very high | Immediate |
+| CEO / CFO departure | 5.02 | Medium-high | Same day |
+| Restatement | 4.02 | Very high (negative) | Immediate |
+| Guidance revision | 7.01/8.01 | High | Same day |
+| Credit agreement change | 1.01 | Low-medium | Monitor |
+| Share repurchase program | 8.01 | Low positive | Background signal |
+| Dividend change | 8.01 | Medium | Same day |
+
+### 8-K Signal Rules
+
+```python
+# High-priority 8-K events
+if item == "4.02": # Restatement
+ signal = "strong_negative" # Restatements destroy trust
+ action = "review_all_prior_financials"
+elif item == "2.02" and surprise_direction == "negative":
+ signal = "negative" # Earnings pre-announcement miss
+elif item == "5.02" and role in ["CEO", "CFO"]:
+ signal = "uncertainty" # C-suite departure = governance risk
+elif item == "1.01" and event_type == "acquisition":
+ signal = "evaluate" # M&A: acquirer usually -2 to -5%, target +20-40%
+```
+
+## Insider Transaction Analysis (Form 4)
+
+### Signal Framework
+
+| Pattern | Signal | Confidence |
+|---------|--------|------------|
+| Cluster buying: 3+ insiders buying within 30 days | Strong bullish | High |
+| CEO/CFO large open-market purchase (>$500K) | Bullish | High |
+| Insider buying after price decline >20% | Contrarian bullish | Medium-high |
+| Cluster selling at all-time highs | Neutral to mildly bearish | Low (may be pre-planned) |
+| CFO selling >50% of holdings | Bearish | Medium |
+| 10b5-1 plan sales | Neutral | Low (pre-programmed) |
+
+**Key distinctions:**
+- **Open-market purchases** (most informative): insider spending own money
+- **10b5-1 plan sales** (least informative): pre-programmed, regulatory safe harbor
+- **Option exercises + immediate sale**: often tax-driven, low signal value
+- **Gift transactions**: ignore for signal purposes
+
+```python
+# Insider signal scoring
+def score_insider_activity(transactions, lookback_days=90):
+ buys = [t for t in transactions if t.type == "Purchase" and t.days_ago <= lookback_days]
+ sells = [t for t in transactions if t.type == "Sale" and t.days_ago <= lookback_days]
+
+ buy_value = sum(t.value for t in buys)
+ sell_value = sum(t.value for t in sells)
+
+ # Filter out 10b5-1 plan sales
+ organic_sells = [s for s in sells if not s.is_10b5_1]
+
+ if len(buys) >= 3 and buy_value > 1_000_000:
+ return "strong_bullish"
+ elif buy_value > sell_value * 2:
+ return "bullish"
+ elif len(organic_sells) >= 3 and sell_value > 5_000_000:
+ return "bearish_watch"
+ else:
+ return "neutral"
+```
+
+## 13F Institutional Holdings Analysis
+
+### Smart Money Tracking
+
+**Key metrics:**
+- Number of institutional holders: rising = broadening ownership base
+- Top 10 holder concentration: >50% = concentrated, vulnerable to single-fund redemption
+- New positions initiated this quarter: smart money entering
+- Positions closed this quarter: smart money exiting
+- Activist stakes (SC 13D): potential for corporate action catalyst
+
+**Institutional quality tiers:**
+1. **Tier 1 โ€” Conviction signals**: Berkshire, Baupost, Greenlight, Pershing Square, Tiger Global
+2. **Tier 2 โ€” Trend signals**: BlackRock, Vanguard, Fidelity (flow-driven, less stock-picking signal)
+3. **Tier 3 โ€” Quantitative**: Renaissance, Two Sigma, Citadel (high turnover, less directional signal)
+
+```python
+# 13F change detection
+def analyze_13f_changes(current_holders, prior_holders):
+ new_positions = current_holders - prior_holders # New entries
+ closed_positions = prior_holders - current_holders # Exits
+
+ # Flag: multiple Tier 1 funds initiating
+ tier1_new = [h for h in new_positions if h.tier == 1]
+ if len(tier1_new) >= 2:
+ signal = "strong_smart_money_accumulation"
+
+ return signal
+```
+
+## Composite Filing Signal
+
+### Scoring Template
+
+```python
+filing_score = {
+ "financial_health": 0, # -2 to +2: based on 10-K/10-Q financials
+ "management_tone": 0, # -2 to +2: MD&A sentiment shift
+ "risk_factor_change": 0, # -2 to +2: new risks vs resolved risks
+ "insider_activity": 0, # -2 to +2: net insider buying/selling
+ "institutional_flow": 0, # -2 to +2: 13F position changes
+ "event_catalyst": 0, # -2 to +2: recent 8-K impact
+}
+# Total range: -12 to +12
+# > +6: strong fundamental bullish
+# +2 to +6: mild bullish
+# -2 to +2: neutral
+# < -2: fundamental caution
+```
+
+## Output Format
+
+```
+## SEC Filing Analysis โ€” [Ticker]
+
+### Filing Summary
+- **Latest 10-K/10-Q**: [date], [period]
+- **Recent 8-K events**: [list material events]
+- **Insider activity (90d)**: [net buy/sell summary]
+
+### Financial Health
+- Revenue trend: [accelerating / stable / decelerating]
+- Margin trajectory: [expanding / stable / compressing]
+- FCF conversion: [strong / adequate / weak]
+- Balance sheet: [net cash / moderate leverage / high leverage]
+
+### MD&A Tone Shift
+- vs prior filing: [more optimistic / unchanged / more cautious]
+- Key language changes: [specific quotes or paraphrases]
+
+### Risk Factor Changes
+- New risks: [list any new risk factors added]
+- Intensified risks: [list risks with stronger language]
+- Resolved risks: [list removed risk factors]
+
+### Insider & Institutional Signals
+- Insider net activity: [cluster buy / neutral / cluster sell]
+- Institutional positioning: [accumulation / stable / distribution]
+
+### Composite Signal
+| Dimension | Score (-2~+2) | Basis |
+|-----------|---------------|-------|
+| Financial health | +1 | Revenue accelerating, margins stable |
+| Management tone | -1 | More cautious language in MD&A |
+| ... | ... | ... |
+
+### Investment Implication
+- Direction: [bullish / bearish / neutral]
+- Confidence: [high / medium / low]
+- Key monitoring: [next earnings date, upcoming 8-K triggers]
+```
+
+## Notes
+
+- EDGAR filings are public and free; no API key required (rate limit: 10 requests/second with User-Agent header)
+- 10-K/10-Q data is backward-looking; combine with forward guidance and analyst estimates for complete view
+- Insider transaction data has a 2-business-day reporting lag; real-time insider data requires paid services
+- 13F data is reported with a 45-day lag after quarter-end; positions may have already changed
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/elliott-wave/SKILL.md b/agent/src/skills/elliott-wave/SKILL.md
new file mode 100644
index 000000000..4d744bfad
--- /dev/null
+++ b/agent/src/skills/elliott-wave/SKILL.md
@@ -0,0 +1,55 @@
+---
+name: elliott-wave
+description: Elliott Wave Theory signal engine. Detects swing points through Zigzag, matches 5-wave impulse and 3-wave corrective structures, validates them with Fibonacci wave relationships, and generates trend-top / correction-complete signals. Pure in-house pandas implementation.
+---
+# Elliott Wave Theory
+
+## Purpose
+
+Classic wave theory based on the core assumption that markets move in fractal wave structures:
+
+| Structure | Wave Count | Direction | Meaning |
+|------|------|------|------|
+| Impulse wave | 5 waves (1-2-3-4-5) | Trend-following | Main trend direction |
+| Corrective wave | 3 waves (A-B-C) | Counter-trend | Pullback correction |
+
+## Core Rules
+
+### Three Iron Rules for Impulse Waves
+1. Wave 2 cannot retrace beyond the start of wave 1
+2. Wave 3 cannot be the shortest impulse wave
+3. Wave 4 cannot enter the price territory of wave 1
+
+### Fibonacci Relationships Between Waves
+- Wave 2 retraces 0.5-0.618 of wave 1
+- Wave 3 = wave 1 ร— 1.618 (most common)
+- Wave 4 retraces 0.382 of wave 3
+- Wave 5 โ‰ˆ the length of wave 1
+
+## Signal Logic
+
+- **5-wave advance completed** โ†’ sell (trend top)
+- **ABC pullback completed** โ†’ buy (correction finished)
+- **Wave 3 in progress** โ†’ stay with the trend (no reversal signal is generated)
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| swing_window | 10 | Rolling window for swing-point detection |
+| fib_tolerance | 0.15 | Tolerance for Fibonacci ratios |
+| min_wave_bars | 5 | Minimum number of candles per wave |
+
+## Notes
+
+Wave theory is highly subjective, and automatic counting can yield multiple interpretations. This implementation uses a "simplest effective single interpretation" strategy and would rather miss signals than misclassify them.
+
+## Dependencies
+
+```bash
+pip install pandas numpy requests
+```
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/elliott-wave/example_signal_engine.py b/agent/src/skills/elliott-wave/example_signal_engine.py
new file mode 100644
index 000000000..e3588f37e
--- /dev/null
+++ b/agent/src/skills/elliott-wave/example_signal_engine.py
@@ -0,0 +1,458 @@
+"""่‰พ็•ฅ็‰นๆณขๆตช็†่ฎบไฟกๅทๅผ•ๆ“Žใ€‚
+
+้€š่ฟ‡ Zigzag ๆฃ€ๆต‹ Swing ็‚น๏ผŒๅŒน้… 5 ๆตชๆŽจๅŠจๅ’Œ 3 ๆตช่ฐƒๆ•ด็ป“ๆž„๏ผŒ
+็ป“ๅˆ Fibonacci ๆตช้—ดๅ…ณ็ณป้ชŒ่ฏ๏ผŒ็”Ÿๆˆ่ถ‹ๅŠฟ่ง้กถ/่ฐƒๆ•ด็ป“ๆŸไฟกๅทใ€‚
+็บฏ pandas/numpy ๅฎž็Žฐ๏ผŒๆ— ๅค–้ƒจๆณขๆตชๅบ“ไพ่ต–ใ€‚
+"""
+
+from typing import Dict, List, Optional, Tuple
+
+import numpy as np
+import pandas as pd
+
+
+class SignalEngine:
+ """่‰พ็•ฅ็‰นๆณขๆตช็†่ฎบไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ๆฃ€ๆต‹ๆต็จ‹๏ผš
+ 1. Zigzag Swing ็‚นๆฃ€ๆต‹๏ผˆๆปšๅŠจ็ช—ๅฃๅฑ€้ƒจๆžๅ€ผ๏ผ‰
+ 2. 5 ๆตชๆŽจๅŠจ็ป“ๆž„ๅŒน้… + ไธ‰ๅคง้“ๅพ‹้ชŒ่ฏ
+ 3. ABC ่ฐƒๆ•ด็ป“ๆž„ๅŒน้…
+ 4. Fibonacci ๆตช้—ดๅ…ณ็ณป่ฟ‡ๆปค
+
+ ็ญ–็•ฅ๏ผšๅฎๅฏๆผไฟกๅทไนŸไธ่ฏฏๅˆคใ€‚
+
+ Attributes:
+ swing_window: Swing ็‚นๆฃ€ๆต‹ๆปšๅŠจ็ช—ๅฃๅŠๅพ„ใ€‚
+ fib_tolerance: Fibonacci ๆฏ”็އๅฎนๅทฎใ€‚
+ min_wave_bars: ๆฏๆตชๆœ€ๅฐ‘ K ็บฟๆ•ฐใ€‚
+
+ Example:
+ >>> engine = SignalEngine()
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+
+ def __init__(
+ self,
+ swing_window: int = 10,
+ fib_tolerance: float = 0.15,
+ min_wave_bars: int = 5,
+ ):
+ """ๅˆๅง‹ๅŒ–่‰พ็•ฅ็‰นๆณขๆตชไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ swing_window: Swing ็‚นๆฃ€ๆต‹ๆปšๅŠจ็ช—ๅฃๅŠๅพ„๏ผŒ้ป˜่ฎค 10ใ€‚
+ fib_tolerance: Fibonacci ๆฏ”็އๅฎนๅทฎ๏ผŒ้ป˜่ฎค 0.15ใ€‚
+ min_wave_bars: ๆฏๆตชๆœ€ๅฐ‘ K ็บฟๆ•ฐ๏ผŒ้ป˜่ฎค 5ใ€‚
+ """
+ self.swing_window = swing_window
+ self.fib_tolerance = fib_tolerance
+ self.min_wave_bars = min_wave_bars
+
+ def _find_swings(
+ self, high: pd.Series, low: pd.Series
+ ) -> List[Dict]:
+ """็”จๆปšๅŠจ็ช—ๅฃๆ‰พๅฑ€้ƒจ้ซ˜ไฝŽ็‚น๏ผŒ็”Ÿๆˆไบคๆ›ฟ็š„ Zigzag ๅบๅˆ—ใ€‚
+
+ Args:
+ high: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+ low: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+
+ Returns:
+ ไบคๆ›ฟๆŽ’ๅˆ—็š„ Swing ็‚นๅˆ—่กจ๏ผŒๆฏไธชๅ…ƒ็ด ไธบ
+ {"index": datetime, "price": float, "type": "H"|"L"}ใ€‚
+ """
+ w = self.swing_window
+ full_w = w * 2 + 1
+
+ if len(high) < full_w:
+ return []
+
+ # ๆฃ€ๆต‹ๅฑ€้ƒจๆžๅ€ผ
+ roll_max = high.rolling(full_w, center=True).max()
+ roll_min = low.rolling(full_w, center=True).min()
+ swing_high_mask = high == roll_max
+ swing_low_mask = low == roll_min
+
+ # ๆ”ถ้›†ๆ‰€ๆœ‰ๅ€™้€‰ Swing ็‚น
+ raw_points = []
+ for idx in high.index:
+ is_h = bool(swing_high_mask.get(idx, False))
+ is_l = bool(swing_low_mask.get(idx, False))
+ if is_h and is_l:
+ # ๅŒไธ€ๆ นK็บฟๅŒๆ—ถๆ˜ฏ้ซ˜ไฝŽ็‚น๏ผŒๅ–ๅน…ๅบฆๆ›ดๅคง็š„
+ pass
+ elif is_h:
+ raw_points.append({"index": idx, "price": float(high[idx]), "type": "H"})
+ elif is_l:
+ raw_points.append({"index": idx, "price": float(low[idx]), "type": "L"})
+
+ if len(raw_points) < 2:
+ return raw_points
+
+ # ่ฟ‡ๆปคไธบไธฅๆ ผไบคๆ›ฟ็š„ H/L ๅบๅˆ—
+ zigzag = [raw_points[0]]
+ for pt in raw_points[1:]:
+ if pt["type"] == zigzag[-1]["type"]:
+ # ่ฟž็ปญๅŒ็ฑปๅž‹๏ผšไฟ็•™ๆ›ดๆž็ซฏ็š„
+ if pt["type"] == "H" and pt["price"] > zigzag[-1]["price"]:
+ zigzag[-1] = pt
+ elif pt["type"] == "L" and pt["price"] < zigzag[-1]["price"]:
+ zigzag[-1] = pt
+ else:
+ zigzag.append(pt)
+
+ return zigzag
+
+ def _check_fib_ratios(
+ self, w1: float, w2: float, w3: float, w4: float, w5: float
+ ) -> bool:
+ """้ชŒ่ฏ 5 ๆตชๆŽจๅŠจ็ป“ๆž„็š„ Fibonacci ๆตช้—ดๅ…ณ็ณปใ€‚
+
+ ๆฃ€ๆŸฅ้กน๏ผš
+ - ๆตช2 ๅ›žๆ’คๆตช1 ็š„ 0.5-0.618
+ - ๆตช3/ๆตช1 ๅœจ 1.0-2.618 ่Œƒๅ›ด
+ - ๆตช4 ๅ›žๆ’คๆตช3 ็š„ 0.236-0.5
+
+ Args:
+ w1: ๆตช1 ๅน…ๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+ w2: ๆตช2 ๅ›žๆ’คๅน…ๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+ w3: ๆตช3 ๅน…ๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+ w4: ๆตช4 ๅ›žๆ’คๅน…ๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+ w5: ๆตช5 ๅน…ๅบฆ๏ผˆ็ปๅฏนๅ€ผ๏ผ‰ใ€‚
+
+ Returns:
+ ๆ˜ฏๅฆๆปก่ถณ Fibonacci ๆฏ”็އ่ฆๆฑ‚ใ€‚
+ """
+ tol = self.fib_tolerance
+
+ if w1 == 0 or w3 == 0:
+ return False
+
+ # ๆตช2 ๅ›žๆ’คๆตช1๏ผš็›ฎๆ ‡ 0.5-0.618
+ r2 = w2 / w1
+ if not (0.5 - tol <= r2 <= 0.618 + tol):
+ return False
+
+ # ๆตช3 / ๆตช1๏ผš็›ฎๆ ‡ ~1.618๏ผŒๆ”พๅฎฝๅˆฐ 1.0-2.618
+ r3 = w3 / w1
+ if not (1.0 - tol <= r3 <= 2.618 + tol):
+ return False
+
+ # ๆตช4 ๅ›žๆ’คๆตช3๏ผš็›ฎๆ ‡ ~0.382๏ผŒๆ”พๅฎฝๅˆฐ 0.236-0.5
+ r4 = w4 / w3
+ if not (0.236 - tol <= r4 <= 0.5 + tol):
+ return False
+
+ return True
+
+ def _check_min_bars(self, swings: List[Dict], start: int, count: int) -> bool:
+ """ๆฃ€ๆŸฅ่ฟž็ปญ Swing ็‚นไน‹้—ดๆ˜ฏๅฆๆปก่ถณๆœ€ๅฐ‘ K ็บฟๆ•ฐใ€‚
+
+ Args:
+ swings: Swing ็‚นๅˆ—่กจใ€‚
+ start: ่ตทๅง‹็ดขๅผ•ใ€‚
+ count: ๆฃ€ๆŸฅ็š„็‚นๆ•ฐใ€‚
+
+ Returns:
+ ๆ˜ฏๅฆๆฏๆฎต้ƒฝๆปก่ถณๆœ€ๅฐ‘ K ็บฟๆ•ฐใ€‚
+ """
+ for i in range(start, start + count - 1):
+ idx_a = swings[i]["index"]
+ idx_b = swings[i + 1]["index"]
+ if hasattr(idx_a, "value") and hasattr(idx_b, "value"):
+ # ๆ—ถ้—ดๆˆณ็ฑปๅž‹๏ผŒ็”จๅคฉๆ•ฐๅทฎไผฐ็ฎ—
+ diff = abs((idx_b - idx_a).days)
+ else:
+ diff = abs(int(idx_b) - int(idx_a))
+ if diff < self.min_wave_bars:
+ return False
+ return True
+
+ def _find_impulse(self, swings: List[Dict]) -> List[Tuple]:
+ """ๅœจ Swing ๅบๅˆ—ไธญๅฏปๆ‰พ 5 ๆตชๆŽจๅŠจ็ป“ๆž„ใ€‚
+
+ ็œ‹ๆถจๆŽจๅŠจๆตช๏ผšL-H-L-H-L-H๏ผˆ6ไธช็‚น๏ผŒ5ๆฎตๆตช๏ผ‰
+ ็œ‹่ทŒๆŽจๅŠจๆตช๏ผšH-L-H-L-H-L๏ผˆ6ไธช็‚น๏ผŒ5ๆฎตๆตช๏ผ‰
+
+ ไธ‰ๅคง้“ๅพ‹้ชŒ่ฏ๏ผš
+ 1. ๆตช2 ไธ็ ดๆตช1 ่ตท็‚น
+ 2. ๆตช3 ไธๆ˜ฏๆœ€็ŸญๆŽจๅŠจๆตช
+ 3. ๆตช4 ไธ่ฟ›ๅ…ฅๆตช1 ๅŒบๅŸŸ
+
+ Args:
+ swings: ไบคๆ›ฟๆŽ’ๅˆ—็š„ Swing ็‚นๅˆ—่กจใ€‚
+
+ Returns:
+ (็ป“ๆŸๆ—ถ้—ดๆˆณ, ไฟกๅทๆ–นๅ‘) ๅ…ƒ็ป„ๅˆ—่กจใ€‚
+ 5 ๆตชไธŠๅ‡ๅฎŒๆˆ่ฟ”ๅ›ž -1๏ผˆๅ–๏ผ‰๏ผŒ5 ๆตชไธ‹่ทŒๅฎŒๆˆ่ฟ”ๅ›ž 1๏ผˆไนฐ๏ผ‰ใ€‚
+ """
+ results = []
+
+ for i in range(len(swings) - 5):
+ types = [s["type"] for s in swings[i : i + 6]]
+
+ # --- ็œ‹ๆถจๆŽจๅŠจๆตช: L, H, L, H, L, H ---
+ if types == ["L", "H", "L", "H", "L", "H"]:
+ x, p1, p2, p3, p4, p5 = swings[i : i + 6]
+
+ wave1 = p1["price"] - x["price"] # ไธŠๅ‡
+ wave2 = p1["price"] - p2["price"] # ๅ›žๆ’ค๏ผˆๆญฃๅ€ผ๏ผ‰
+ wave3 = p3["price"] - p2["price"] # ไธŠๅ‡
+ wave4 = p3["price"] - p4["price"] # ๅ›žๆ’ค๏ผˆๆญฃๅ€ผ๏ผ‰
+ wave5 = p5["price"] - p4["price"] # ไธŠๅ‡
+
+ if wave1 <= 0 or wave3 <= 0 or wave5 <= 0:
+ continue
+
+ # ้“ๅพ‹1๏ผšๆตช2ไธ็ ดๆตช1่ตท็‚น
+ if p2["price"] <= x["price"]:
+ continue
+
+ # ้“ๅพ‹2๏ผšๆตช3ไธๆ˜ฏๆœ€็ŸญๆŽจๅŠจๆตช
+ if wave3 < wave1 and wave3 < wave5:
+ continue
+
+ # ้“ๅพ‹3๏ผšๆตช4ไธ่ฟ›ๅ…ฅๆตช1ๅŒบๅŸŸ
+ if p4["price"] <= p1["price"]:
+ continue
+
+ # ๆœ€ๅฐ‘K็บฟๆ•ฐๆฃ€ๆŸฅ
+ if not self._check_min_bars(swings, i, 6):
+ continue
+
+ # Fibonacci ้ชŒ่ฏ
+ if not self._check_fib_ratios(wave1, wave2, wave3, wave4, wave5):
+ continue
+
+ # 5ๆตชไธŠๅ‡ๅฎŒๆˆ โ†’ ๅ–ๅ‡บไฟกๅท
+ results.append((p5["index"], -1))
+
+ # --- ็œ‹่ทŒๆŽจๅŠจๆตช: H, L, H, L, H, L ---
+ elif types == ["H", "L", "H", "L", "H", "L"]:
+ x, p1, p2, p3, p4, p5 = swings[i : i + 6]
+
+ wave1 = x["price"] - p1["price"] # ไธ‹่ทŒ
+ wave2 = p2["price"] - p1["price"] # ๅๅผน๏ผˆๆญฃๅ€ผ๏ผ‰
+ wave3 = p2["price"] - p3["price"] # ไธ‹่ทŒ
+ wave4 = p4["price"] - p3["price"] # ๅๅผน๏ผˆๆญฃๅ€ผ๏ผ‰
+ wave5 = p4["price"] - p5["price"] # ไธ‹่ทŒ
+
+ if wave1 <= 0 or wave3 <= 0 or wave5 <= 0:
+ continue
+
+ # ้“ๅพ‹1๏ผšๆตช2ไธ่ถ…่ฟ‡ๆตช1่ตท็‚น
+ if p2["price"] >= x["price"]:
+ continue
+
+ # ้“ๅพ‹2๏ผšๆตช3ไธๆ˜ฏๆœ€็ŸญๆŽจๅŠจๆตช
+ if wave3 < wave1 and wave3 < wave5:
+ continue
+
+ # ้“ๅพ‹3๏ผšๆตช4ไธ่ฟ›ๅ…ฅๆตช1ๅŒบๅŸŸ
+ if p4["price"] >= p1["price"]:
+ continue
+
+ # ๆœ€ๅฐ‘K็บฟๆ•ฐๆฃ€ๆŸฅ
+ if not self._check_min_bars(swings, i, 6):
+ continue
+
+ # Fibonacci ้ชŒ่ฏ
+ if not self._check_fib_ratios(wave1, wave2, wave3, wave4, wave5):
+ continue
+
+ # 5ๆตชไธ‹่ทŒๅฎŒๆˆ โ†’ ไนฐๅ…ฅไฟกๅท
+ results.append((p5["index"], 1))
+
+ return results
+
+ def _find_abc(self, swings: List[Dict]) -> List[Tuple]:
+ """ๅœจ Swing ๅบๅˆ—ไธญๅฏปๆ‰พ ABC ่ฐƒๆ•ด็ป“ๆž„ใ€‚
+
+ ็œ‹่ทŒ่ฐƒๆ•ด๏ผˆไธŠๅ‡่ถ‹ๅŠฟๅŽ๏ผ‰๏ผšH-L-H-L๏ผˆA ไธ‹ B ๅๅผน C ไธ‹๏ผ‰
+ ็œ‹ๆถจ่ฐƒๆ•ด๏ผˆไธ‹้™่ถ‹ๅŠฟๅŽ๏ผ‰๏ผšL-H-L-H๏ผˆA ไธŠ B ๅ›ž่ฝ C ไธŠ๏ผ‰
+
+ Args:
+ swings: ไบคๆ›ฟๆŽ’ๅˆ—็š„ Swing ็‚นๅˆ—่กจใ€‚
+
+ Returns:
+ (็ป“ๆŸๆ—ถ้—ดๆˆณ, ไฟกๅทๆ–นๅ‘) ๅ…ƒ็ป„ๅˆ—่กจใ€‚
+ ABC ไธ‹่ฐƒๅฎŒๆˆ่ฟ”ๅ›ž 1๏ผˆไนฐ๏ผ‰๏ผŒABC ไธŠ่ฐƒๅฎŒๆˆ่ฟ”ๅ›ž -1๏ผˆๅ–๏ผ‰ใ€‚
+ """
+ tol = self.fib_tolerance
+ results = []
+
+ for i in range(len(swings) - 3):
+ types = [s["type"] for s in swings[i : i + 4]]
+
+ # --- ็œ‹่ทŒ ABC: H, L, H, L๏ผˆไธ‹-ไธŠ-ไธ‹๏ผ‰โ†’ ่ฐƒๆ•ด็ป“ๆŸๅŽไนฐๅ…ฅ ---
+ if types == ["H", "L", "H", "L"]:
+ start, pa, pb, pc = swings[i : i + 4]
+
+ wave_a = start["price"] - pa["price"] # A ไธ‹่ทŒๅน…ๅบฆ
+ wave_b = pb["price"] - pa["price"] # B ๅๅผนๅน…ๅบฆ
+ wave_c = pb["price"] - pc["price"] # C ไธ‹่ทŒๅน…ๅบฆ
+
+ if wave_a <= 0 or wave_b <= 0 or wave_c <= 0:
+ continue
+
+ # B ไธ่ถ…่ฟ‡่ตท็‚น
+ if pb["price"] >= start["price"]:
+ continue
+
+ # B ๅ›žๆ’ค A ็š„ 0.382-0.618
+ r_b = wave_b / wave_a
+ if not (0.382 - tol <= r_b <= 0.618 + tol):
+ continue
+
+ # C โ‰ˆ A๏ผˆ0.618-1.618 ๅ€ A ๆตช๏ผ‰
+ r_c = wave_c / wave_a
+ if not (0.618 - tol <= r_c <= 1.618 + tol):
+ continue
+
+ # ๆœ€ๅฐ‘K็บฟๆ•ฐๆฃ€ๆŸฅ
+ if not self._check_min_bars(swings, i, 4):
+ continue
+
+ # ABC ไธ‹่ฐƒๅฎŒๆˆ โ†’ ไนฐๅ…ฅไฟกๅท
+ results.append((pc["index"], 1))
+
+ # --- ็œ‹ๆถจ ABC: L, H, L, H๏ผˆไธŠ-ไธ‹-ไธŠ๏ผ‰โ†’ ่ฐƒๆ•ด็ป“ๆŸๅŽๅ–ๅ‡บ ---
+ elif types == ["L", "H", "L", "H"]:
+ start, pa, pb, pc = swings[i : i + 4]
+
+ wave_a = pa["price"] - start["price"] # A ไธŠๆถจๅน…ๅบฆ
+ wave_b = pa["price"] - pb["price"] # B ๅ›ž่ฝๅน…ๅบฆ
+ wave_c = pc["price"] - pb["price"] # C ไธŠๆถจๅน…ๅบฆ
+
+ if wave_a <= 0 or wave_b <= 0 or wave_c <= 0:
+ continue
+
+ # B ไธไฝŽไบŽ่ตท็‚น
+ if pb["price"] <= start["price"]:
+ continue
+
+ # B ๅ›žๆ’ค A ็š„ 0.382-0.618
+ r_b = wave_b / wave_a
+ if not (0.382 - tol <= r_b <= 0.618 + tol):
+ continue
+
+ # C โ‰ˆ A
+ r_c = wave_c / wave_a
+ if not (0.618 - tol <= r_c <= 1.618 + tol):
+ continue
+
+ # ๆœ€ๅฐ‘K็บฟๆ•ฐๆฃ€ๆŸฅ
+ if not self._check_min_bars(swings, i, 4):
+ continue
+
+ # ABC ไธŠ่ฐƒๅฎŒๆˆ โ†’ ๅ–ๅ‡บไฟกๅท
+ results.append((pc["index"], -1))
+
+ return results
+
+ def generate(
+ self, data_map: Dict[str, pd.DataFrame]
+ ) -> Dict[str, pd.Series]:
+ """ๆ นๆฎ่‰พ็•ฅ็‰นๆณขๆตช็†่ฎบ็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ high/low/close ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+
+ for code, df in data_map.items():
+ signal = pd.Series(0, index=df.index, dtype=int)
+
+ swings = self._find_swings(df["high"], df["low"])
+ if len(swings) < 4:
+ result[code] = signal
+ continue
+
+ # 5 ๆตชๆŽจๅŠจ็ป“ๆž„
+ if len(swings) >= 6:
+ for idx, direction in self._find_impulse(swings):
+ if idx in signal.index:
+ signal[idx] = direction
+
+ # ABC ่ฐƒๆ•ด็ป“ๆž„
+ for idx, direction in self._find_abc(swings):
+ if idx in signal.index:
+ signal[idx] = direction
+
+ result[code] = signal
+
+ return result
+
+
+def _fetch_okx(
+ inst_id: str, bar: str = "1D", limit: int = 300
+) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค "1D"ใ€‚
+ limit: ่Žทๅ–ๆ•ฐ้‡๏ผŒ้ป˜่ฎค 300ใ€‚
+
+ Returns:
+ OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚
+
+ Raises:
+ KeyError: API ่ฟ”ๅ›žๆ ผๅผๅผ‚ๅธธๆ—ถใ€‚
+ """
+ import requests
+
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = [
+ "ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm",
+ ]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+if __name__ == "__main__":
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+
+ print("=== ่‰พ็•ฅ็‰นๆณขๆตช็†่ฎบไฟกๅทๅผ•ๆ“Ž ===\n")
+
+ for sym in symbols:
+ print(f"่Žทๅ– {sym} ๆ•ฐๆฎ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+ print(
+ f" {len(data_map[sym])} ๆ นK็บฟ, "
+ f"{data_map[sym].index[0]:%Y-%m-%d} ~ "
+ f"{data_map[sym].index[-1]:%Y-%m-%d}"
+ )
+
+ engine = SignalEngine()
+ signals = engine.generate(data_map)
+
+ print("\n--- ไฟกๅท็ปŸ่ฎก ---")
+ for sym in symbols:
+ sig = signals[sym]
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"\n{sym} ({len(data_map[sym])} ๆ นK็บฟ):")
+ print(f" ๅšๅคšไฟกๅท: {len(buys)} ไธช")
+ print(f" ๅš็ฉบไฟกๅท: {len(sells)} ไธช")
+ if len(buys) > 0:
+ print(f" ๆœ€่ฟ‘ๅšๅคš: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" ๆœ€่ฟ‘ๅš็ฉบ: {sells.index[-1]:%Y-%m-%d}")
diff --git "a/agent/src/skills/elliott-wave/references/Fibonacci\346\265\252\351\227\264\345\205\263\347\263\273.md" "b/agent/src/skills/elliott-wave/references/Fibonacci\346\265\252\351\227\264\345\205\263\347\263\273.md"
new file mode 100644
index 000000000..63f52daec
--- /dev/null
+++ "b/agent/src/skills/elliott-wave/references/Fibonacci\346\265\252\351\227\264\345\205\263\347\263\273.md"
@@ -0,0 +1,41 @@
+# Fibonacci ๆตช้—ดๅ…ณ็ณป
+
+## ๆŽจๅŠจๆตชๅ…ณ็ณป
+
+### ๆตช2 vs ๆตช1
+- ๅธธ่งๅ›žๆ’ค๏ผš0.5, 0.618
+- ๆœ€ๅคงๅ›žๆ’ค๏ผš0.786๏ผˆ่ถ…่ฟ‡ๅˆ™ๅฏ่ƒฝไธๆ˜ฏๆตช2๏ผ‰
+
+### ๆตช3 vs ๆตช1
+- ๆœ€ๅธธ่ง๏ผš1.618 ร— ๆตช1
+- ๅ…ถไป–๏ผš1.0, 2.618 ร— ๆตช1
+- ๆตช3ๆ˜ฏๆœ€ๅ…ทๆดปๅŠ›็š„ไธ€ๆตช
+
+### ๆตช4 vs ๆตช3
+- ๅธธ่งๅ›žๆ’ค๏ผš0.382
+- ๅ…ถไป–๏ผš0.236, 0.5
+- ๆตช4้€šๅธธๆ˜ฏๆœ€ๆต…็š„ๅ›ž่ฐƒ
+
+### ๆตช5 vs ๆตช1
+- ๆœ€ๅธธ่ง๏ผš็ญ‰ไบŽๆตช1้•ฟๅบฆ
+- ๅ…ถไป–๏ผš0.618, 1.618 ร— ๆตช1
+- ๆตช5ๅฏ่ƒฝ"ๅคฑ่ดฅ"๏ผˆไธ่ถ…่ฟ‡ๆตช3้ซ˜็‚น๏ผ‰
+
+## ่ฐƒๆ•ดๆตชๅ…ณ็ณป
+
+### Cๆตช vs Aๆตช
+- ๆœ€ๅธธ่ง๏ผš็ญ‰ไบŽAๆตช้•ฟๅบฆ
+- ๅ…ถไป–๏ผš1.618 ร— Aๆตช
+
+### Bๆตชๅ›žๆ’ค
+- ้”ฏ้ฝฟๅฝข๏ผšๅ›žๆ’คAๆตช็š„0.382-0.618
+- ๅนณๅฐๅฝข๏ผšๅ›žๆ’คAๆตช็š„0.786-1.0
+
+## ๆœฌๅผ•ๆ“Žไฝฟ็”จ็š„ๆฏ”็އ
+
+| ๅ…ณ็ณป | ็›ฎๆ ‡ๅ€ผ | ๅฎนๅทฎ |
+|------|--------|------|
+| ๆตช2/ๆตช1 | 0.5-0.618 | ยฑ15% |
+| ๆตช3/ๆตช1 | 1.618 | ยฑ15% |
+| ๆตช4/ๆตช3 | 0.382 | ยฑ15% |
+| ๆตช5/ๆตช1 | 1.0 | ยฑ15% |
diff --git "a/agent/src/skills/elliott-wave/references/\346\263\242\346\265\252\347\273\223\346\236\204.md" "b/agent/src/skills/elliott-wave/references/\346\263\242\346\265\252\347\273\223\346\236\204.md"
new file mode 100644
index 000000000..469ca8eb3
--- /dev/null
+++ "b/agent/src/skills/elliott-wave/references/\346\263\242\346\265\252\347\273\223\346\236\204.md"
@@ -0,0 +1,53 @@
+# ๆณขๆตช็ป“ๆž„
+
+## ๆŽจๅŠจๆตช (Impulse Wave)
+
+5ๆตช็ป“ๆž„๏ผŒ้กบ่ถ‹ๅŠฟๆ–นๅ‘๏ผš
+
+```
+ 5
+ / \
+ / \
+ 3 / \
+ / \/ \
+/ 4 \
+1
+ \
+ 2
+```
+
+### ไธ‰ๅคง้“ๅพ‹๏ผˆไธๅฏ่ฟๅ๏ผ‰
+1. **ๆตช2ไธ็ ดๆตช1่ตท็‚น**๏ผšๆตช2็š„ๅ›žๆ’คไธ่ƒฝ่ถ…่ฟ‡ๆตช1็š„่ตทๅง‹ไฝ็ฝฎ
+2. **ๆตช3ไธๆ˜ฏๆœ€็Ÿญ**๏ผšๆตช3ๅฟ…้กปๅคงไบŽๆตช1ๆˆ–ๆตช5ไธญ่‡ณๅฐ‘ไธ€ไธช
+3. **ๆตช4ไธ่ฟ›ๅ…ฅๆตช1ๅŒบๅŸŸ**๏ผšๆตช4็š„ไฝŽ็‚นไธ่ƒฝไฝŽไบŽๆตช1็š„้ซ˜็‚น
+
+### ๅธธ่ง็‰นๅพ
+- ๆตช1๏ผš่ถ‹ๅŠฟๅฏๅŠจ๏ผŒ้€šๅธธ่พƒๅผฑ
+- ๆตช2๏ผšๆทฑๅบฆๅ›ž่ฐƒ๏ผŒไฝ†ไธ็ ดๆตช1่ตท็‚น
+- ๆตช3๏ผšๆœ€ๅผบๆœ€้•ฟ็š„ๆตช๏ผŒ้€šๅธธๆœ‰ๆ”พ้‡
+- ๆตช4๏ผšๆต…ๅบฆๅ›ž่ฐƒ๏ผŒไธŽๆตช2ไบคๆ›ฟ๏ผˆๅฆ‚ๆตช2ๆ€ฅ่ทŒ๏ผŒๆตช4ๆจช็›˜๏ผ‰
+- ๆตช5๏ผšๆœ€ๅŽไธ€ๆตช๏ผŒๅฏ่ƒฝๅ‡บ็Žฐ่ƒŒ็ฆป
+
+## ่ฐƒๆ•ดๆตช (Corrective Wave)
+
+3ๆตช็ป“ๆž„๏ผŒ้€†่ถ‹ๅŠฟๆ–นๅ‘๏ผš
+
+```
+A
+ \
+ \
+ B
+ /
+ /
+C
+```
+
+### ABC็ป“ๆž„
+- **Aๆตช**๏ผšๅˆๅง‹ๅ›ž่ฐƒ๏ผŒๅธ‚ๅœบไป็œ‹ๅฅฝ
+- **Bๆตช**๏ผšๅๅผน๏ผŒไฝ†ๆ— ๆณ•็ช็ ดๅ‰้ซ˜
+- **Cๆตช**๏ผšๆœ€็ปˆไธ‹่ทŒ๏ผŒ้€šๅธธ็ญ‰ไบŽAๆตช้•ฟๅบฆ
+
+### ่ฐƒๆ•ดๆตชๅ˜ไฝ“
+- ้”ฏ้ฝฟๅฝข(Zigzag)๏ผš5-3-5๏ผŒๆœ€ๅธธ่ง
+- ๅนณๅฐๅฝข(Flat)๏ผš3-3-5
+- ไธ‰่ง’ๅฝข(Triangle)๏ผš3-3-3-3-3
diff --git a/agent/src/skills/etf-analysis/SKILL.md b/agent/src/skills/etf-analysis/SKILL.md
new file mode 100644
index 000000000..fcea74ec7
--- /dev/null
+++ b/agent/src/skills/etf-analysis/SKILL.md
@@ -0,0 +1,869 @@
+---
+name: etf-analysis
+description: "ETFๅˆ†ๆž๏ผšไบงๅ“็ญ›้€‰ใ€่ดน็އๅฏนๆฏ”ใ€่ทŸ่ธช่ฏฏๅทฎใ€ๆตๅŠจๆ€ง่ฏ„ไผฐใ€็ญ–็•ฅๅบ”็”จไธŽไธญๅ›ฝๅธ‚ๅœบETF้‡ๅŒ–้…็ฝฎๆก†ๆžถใ€‚"
+---
+
+# ETF ๅˆ†ๆž Skill
+
+## ๅฎšไฝ
+
+ETF๏ผˆไบคๆ˜“ๆ‰€ไบคๆ˜“ๅŸบ้‡‘๏ผ‰ๆ˜ฏ่ขซๅŠจๆŠ•่ต„ไธŽ่ต„ไบง้…็ฝฎ็š„ๆ ธๅฟƒๅทฅๅ…ทใ€‚ๆœฌ skill ่ฆ†็›– ETF ไบงๅ“ๅˆ†ๆžใ€้€‰ๆ‹ฉๆ–นๆณ•่ฎบใ€็ญ–็•ฅๅบ”็”จใ€ไธญๅ›ฝๅธ‚ๅœบ็‰น่‰ฒไปฅๅŠๆ•ฐๆฎ้ฉฑๅŠจ็š„้‡ๅŒ–ๅˆ†ๆžๆ–นๆณ•๏ผŒไธบๆž„ๅปบๅŸบไบŽ ETF ็š„้‡ๅŒ–็ญ–็•ฅไธŽ็ป„ๅˆๆไพ›ๅฎŒๆ•ดๆก†ๆžถใ€‚
+
+---
+
+## 1. ETF ไบงๅ“ๅˆ†็ฑป
+
+### 1.1 ๆŒ‰ๆ ‡็š„่ต„ไบงๅˆ†็ฑป
+
+| ็ฑปๅž‹ | ไปฃ่กจไบงๅ“ | ็‰น็‚น |
+|------|---------|------|
+| **ๅฎฝๅŸบ ETF** | ๆฒชๆทฑ300ETF (510300)ใ€ไธญ่ฏ500ETF (510500)ใ€ๅˆ›ไธšๆฟETF (159915)ใ€็ง‘ๅˆ›50ETF (588000) | ๆตๅŠจๆ€งๆœ€ๅฅฝ๏ผŒไบคๆ˜“ๆˆๆœฌๆœ€ไฝŽ๏ผŒ้€‚ๅˆๆ ธๅฟƒไป“ไฝ |
+| **่กŒไธš ETF** | ๆถˆ่ดนETF (159928)ใ€ๅŒป็–—ETF (512170)ใ€ๅŠๅฏผไฝ“ETF (512480)ใ€้“ถ่กŒETF (512800) | ่กŒไธš่ฝฎๅŠจๅทฅๅ…ท๏ผŒๆŒไป“้›†ไธญๅบฆ้ซ˜ |
+| **ไธป้ข˜ ETF** | ๆ–ฐ่ƒฝๆบETF (516160)ใ€็ขณไธญๅ’ŒETFใ€ๅ…ƒๅฎ‡ๅฎ™ETF | ไธป้ข˜็‚’ไฝœๅฑžๆ€งๅผบ๏ผŒ็”Ÿๅ‘ฝๅ‘จๆœŸ็Ÿญ |
+| **็ญ–็•ฅETF / Smart Beta** | ็บขๅˆฉETF (510880)ใ€ไฝŽๆณขETFใ€่ดจ้‡ETFใ€ๅŠจ้‡ETF | ๅ› ๅญๆšด้œฒๆ˜Ž็กฎ๏ผŒ่ดน็އ้€šๅธธ็•ฅ้ซ˜ไบŽๅฎฝๅŸบ |
+| **ๅ•†ๅ“ ETF** | ้ป„้‡‘ETF (518880)ใ€่ฑ†็ฒ•ETF (159985)ใ€ๅŽŸๆฒนETF (162411) | ๅฎž็‰ฉ/ๆœŸ่ดงๆ”ฏๆ’‘๏ผŒๆณจๆ„ๅฑ•ๆœŸๆŸ่€— |
+| **ๅ€บๅˆธ ETF** | ๅ›ฝๅ€บETF (511010)ใ€ไฟก็”จๅ€บETFใ€ๅฏ่ฝฌๅ€บETF (511380) | ๅˆฉ็އๆ•ๆ„Ÿ๏ผŒไน…ๆœŸ็ฎก็†ๅ…ณ้”ฎ |
+| **่ทจๅขƒ ETF (QDII)** | ็บณๆŒ‡ETF (159632)ใ€ๆ ‡ๆ™ฎ500ETF (513500)ใ€ๆ—ฅ็ป225ETF (513880) | ๆฑ‡็އ้ฃŽ้™ฉ+ๆบขไปท้ฃŽ้™ฉๅŒ้‡ๅ ๅŠ  |
+| **่ดงๅธ ETF** | ๅŽๅฎๆทป็›Š (511990)ใ€้“ถๅŽๆ—ฅๅˆฉ (511880) | T+0 ็”ณ่ตŽ๏ผŒๆตๅŠจๆ€ง็ฎก็†ๅทฅๅ…ท |
+
+### 1.2 ็ป“ๆž„็ฑปๅž‹
+
+- **ๆ™ฎ้€š ETF**๏ผšๅœบๅ†…ไบคๆ˜“๏ผŒๅฎž็‰ฉ็”ณ่ตŽ๏ผˆไธ€็ฏฎๅญ่‚ก็ฅจๆข่ดญ๏ผ‰๏ผŒๆŠ˜ๆบขไปทๆœ‰ๅฅ—ๅˆฉๆœบๅˆถ่‡ชๅŠจๆ”ถๆ•›
+- **LOF๏ผˆไธŠๅธ‚ๅผ€ๆ”พๅผๅŸบ้‡‘๏ผ‰**๏ผšๅœบๅ†…ๅค–ๅ‡ๅฏไบคๆ˜“๏ผŒๆŠ˜ๆบขไปทๅฅ—ๅˆฉ่ทฏๅพ„็›ธๅŒไฝ†ๆ•ˆ็އ็•ฅไฝŽ
+- **ETF ่”ๆŽฅๅŸบ้‡‘**๏ผšๅœบๅค–ๆธ ้“่ดญไนฐ็š„ ETF ๆ›ฟไปฃๅ“๏ผŒT+1 ็”ณ่ตŽ๏ผŒๆ— ๆŠ˜ๆบขไปท๏ผŒ้€‚ๅˆๅฎšๆŠ•
+- **ๆ ๆ†/ๅๅ‘ ETF**๏ผšๆ—ฅๅ†…ๆ’ๅฎšๆ ๆ†๏ผŒ้•ฟๆœŸๆŒๆœ‰ๆœ‰่กฐๅ‡ๆ•ˆๅบ”๏ผˆ่ง็ฌฌ 3.4 ่Š‚๏ผ‰
+
+---
+
+## 2. ETF ๆ ธๅฟƒๆŒ‡ๆ ‡
+
+### 2.1 ่ทŸ่ธช่ฏฏๅทฎ๏ผˆTracking Error๏ผ‰
+
+่กก้‡ ETF ๅคๅˆถๆŒ‡ๆ•ฐ่ƒฝๅŠ›็š„ๆœ€ๆ ธๅฟƒๆŒ‡ๆ ‡ใ€‚
+
+```
+ๆ—ฅ่ทŸ่ธช่ฏฏๅทฎ = std(ETFๆ—ฅๆ”ถ็›Š็އ - ๆŒ‡ๆ•ฐๆ—ฅๆ”ถ็›Š็އ)
+ๅนดๅŒ–่ทŸ่ธช่ฏฏๅทฎ = ๆ—ฅ่ทŸ่ธช่ฏฏๅทฎ ร— โˆš252
+```
+
+**่ฏ„็บงๆ ‡ๅ‡†๏ผˆA่‚กๅฎฝๅŸบETF๏ผ‰**๏ผš
+- ไผ˜็ง€๏ผšๅนดๅŒ–่ทŸ่ธช่ฏฏๅทฎ < 0.2%
+- ๅˆๆ ผ๏ผš0.2% ~ 0.5%
+- ่พƒๅทฎ๏ผš> 0.5%
+
+**่ทŸ่ธช่ฏฏๅทฎๆฅๆบ**๏ผš
+1. ็ฎก็†่ดนๅ’Œๆ‰˜็ฎก่ดน๏ผˆๆŒ็ปญๆ‹–็ดฏ๏ผŒๆฏๆ—ฅ่ฎกๆ๏ผ‰
+2. ๅˆ†็บขๅค„็†ๆ—ถๆœบ๏ผˆๅˆ†็บขๅ†ๆŠ•่ต„ๅปถ่ฟŸ๏ผ‰
+3. ๆˆๅˆ†่‚ก็บณๅ…ฅ/ๅ‰”้™คๆ—ถ็š„ไนฐๅ–ๅ†ฒๅ‡ป
+4. ็Žฐ้‡‘ไป“ไฝ๏ผˆ็”ณ่ตŽๅธฆๆฅ็š„ๆš‚ๆ—ถๆ€ง็Žฐ้‡‘ๆ‹–็ดฏ๏ผ‰
+5. ๅœ็‰Œ่‚กๅค„็†๏ผˆ็”จๆ›ฟไปฃๅ“ๆˆ–็Žฐ้‡‘ๆ›ฟไปฃ๏ผ‰
+6. ๆŒ‡ๆ•ฐ็ผ–ๅˆถๆ–นๆณ•๏ผˆๅ…จๅคๅˆถ vs ๆŠฝๆ ทๅคๅˆถ๏ผ‰
+
+### 2.2 ไฟกๆฏๆฏ”็އ๏ผˆInformation Ratio๏ผ‰
+
+```
+IR = (ETFๅนดๅŒ–ๆ”ถ็›Š็އ - ๆŒ‡ๆ•ฐๅนดๅŒ–ๆ”ถ็›Š็އ) / ๅนดๅŒ–่ทŸ่ธช่ฏฏๅทฎ
+```
+
+ๅฏน ETF ๆฅ่ฏด IR ้€šๅธธไธบ่ดŸ๏ผˆๅ› ่ดน็އๆ‹–็ดฏ๏ผ‰๏ผŒIR ่ถŠๆŽฅ่ฟ‘ 0 ่ถŠๅฅฝใ€‚
+
+### 2.3 ๆŠ˜ๆบขไปท็އ
+
+```
+ๆŠ˜ๆบขไปท็އ = (ETFๅธ‚ไปท - ETFๅ‡€ๅ€ผIOPV) / ETFๅ‡€ๅ€ผIOPV ร— 100%
+```
+
+- **ๆญฃๆบขไปท**๏ผšๅธ‚ไปท > ๅ‡€ๅ€ผ๏ผŒๅฅ—ๅˆฉ่€…ๅ–ๅ‡บ ETF / ็”ณ่ดญไธ€็ฏฎๅญ่‚ก็ฅจๆข่ดญ๏ผŒๆบขไปทๆ”ถๆ•›
+- **่ดŸๆŠ˜ไปท**๏ผšๅธ‚ไปท < ๅ‡€ๅ€ผ๏ผŒๅฅ—ๅˆฉ่€…ไนฐๅ…ฅ ETF / ่ตŽๅ›žไธ€็ฏฎๅญ่‚ก็ฅจ๏ผŒๆŠ˜ไปทๆ”ถๆ•›
+- **ๅผ‚ๅธธๆบขไปทๅœบๆ™ฏ**๏ผš่ทจๅขƒ QDII ETF๏ผˆ้ขๅบฆ้™ๅˆถๅฏผ่‡ดๆŒ็ปญๆบขไปท๏ผ‰ใ€ๅœ็‰Œ่‚กๆฏ”ไพ‹้ซ˜็š„่กŒไธš ETF
+
+### 2.4 ๆตๅŠจๆ€งๆŒ‡ๆ ‡
+
+| ๆŒ‡ๆ ‡ | ๅซไน‰ | ๅ‚่€ƒ้˜ˆๅ€ผ |
+|------|------|--------|
+| ๆ—ฅๅ‡ๆˆไบค้ข | ไนฐๅ–ๆ–นไพฟ็จ‹ๅบฆ | ๅฎฝๅŸบ > 1ไบฟ๏ผŒ่กŒไธš > 2000ไธ‡ |
+| ไนฐๅ–ไปทๅทฎ๏ผˆSpread๏ผ‰ | ๅณๆ—ถไบคๆ˜“ๆˆๆœฌ | < 0.05% ไธบไผ˜่ดจ |
+| ็›˜ๅฃๆทฑๅบฆ | ๅ•็ฌ”ๅคง้ขไบคๆ˜“ๅ†ฒๅ‡ป | ไนฐๅ–ๅ„5ๆกฃ็ดฏ่ฎก > 500ไธ‡ไธบไฝณ |
+| ๆขๆ‰‹็އ | ๆดป่ทƒ็จ‹ๅบฆ | ่ฟ‡ไฝŽๅˆ™ๆตๅŠจๆ€ง้ฃŽ้™ฉ้ซ˜ |
+
+### 2.5 ่ดน็އไฝ“็ณป
+
+```
+็ปผๅˆ่ดน็އ = ็ฎก็†่ดน + ๆ‰˜็ฎก่ดน + ๆŒ‡ๆ•ฐไฝฟ็”จ่ดน
+๏ผˆไธๅซไบคๆ˜“ไฝฃ้‡‘ใ€ๅฐ่Šฑ็จŽใ€็”ณ่ตŽ่ดน๏ผ‰
+```
+
+**้•ฟๆœŸ่ดน็އๅฝฑๅ“ๅ…ฌๅผ**๏ผš
+```
+Nๅนด่ดน็އๅคๅˆฉๆŸ่€— = (1 - ๅนด่ดน็އ)^N
+ไพ‹๏ผšๅนด่ดน็އ0.5% vs 0.15%๏ผŒ10ๅนดๅทฎ่ท โ‰ˆ 3.5%๏ผŒ20ๅนดๅทฎ่ท โ‰ˆ 6.8%
+```
+
+ไธปๆตๅฎฝๅŸบ ETF ่ดน็އๅฏนๆฏ”๏ผˆ2025ๅนด๏ผ‰๏ผš
+- ๅŽๅค/ๆ˜“ๆ–น่พพ/ๅ—ๆ–น ๆฒชๆทฑ300ETF๏ผš0.15%๏ผˆ็ฎก็†๏ผ‰+ 0.05%๏ผˆๆ‰˜็ฎก๏ผ‰= 0.20%
+- ้ƒจๅˆ†ๅฐ่ง„ๆจกๅฎฝๅŸบ๏ผš0.5%+๏ผŒ้•ฟๆœŸๆŒๆœ‰ๅŠฃๅŠฟๆ˜Žๆ˜พ
+
+### 2.6 ่ง„ๆจกไธŽๆตๅŠจๆ€ง่ฏ„ไผฐ
+
+- **่ง„ๆจก้—จๆง›**๏ผš
+ - < 2ไบฟ๏ผšๆธ…็›˜้ฃŽ้™ฉ่พƒ้ซ˜๏ผŒๆตๅŠจๆ€งๅทฎ
+ - 2~10ไบฟ๏ผšๅฏๆญฃๅธธไบคๆ˜“๏ผŒๅคง้ข่ต„้‡‘ๅ—้™
+ - > 10ไบฟ๏ผšๆตๅŠจๆ€งๅ……่ถณ๏ผŒๅšๅธ‚ๅ•†ๆดป่ทƒ
+ - > 100ไบฟ๏ผšๆ——่ˆฐ ETF๏ผŒๆœบๆž„้ฆ–้€‰
+
+- **ๆธ…็›˜้ฃŽ้™ฉไฟกๅท**๏ผš่ง„ๆจกๆŒ็ปญไธ‹ๆป‘ใ€่ฟž็ปญ90ๅคฉๆ—ฅๅ‡่ง„ๆจก < 5000ไธ‡
+
+---
+
+## 3. ETF ้€‰ๆ‹ฉๆ–นๆณ•่ฎบ
+
+### 3.1 ๅŒ็ฑป ETF ๆฏ”่พƒๆก†ๆžถ
+
+ๅŒไธ€ๆŒ‡ๆ•ฐๅพ€ๅพ€ๆœ‰ๅคšๅช ETF๏ผŒ้€‰ๆ‹ฉๆญฅ้ชค๏ผš
+
+```
+Step 1: ่ง„ๆจก็ญ›้€‰ โ†’ ๅ‰”้™ค < 5ไบฟ็š„ๅฐ่ง„ๆจกไบงๅ“
+Step 2: ่ดน็އๆฏ”่พƒ โ†’ ๅŒ็ญ‰ๆกไปถไธ‹้€‰่ดน็އๆœ€ไฝŽ
+Step 3: ่ทŸ่ธช่ฏฏๅทฎ โ†’ ่ฟ‘1ๅนด/่ฟ‘3ๅนดๅŒ็ปดๅบฆๆฏ”่พƒ
+Step 4: ๆตๅŠจๆ€ง โ†’ ๆ—ฅๅ‡ๆˆไบค้ขใ€ไนฐๅ–ไปทๅทฎ
+Step 5: ๅŸบ้‡‘ๅ…ฌๅธ โ†’ ๆŒ‡ๆ•ฐๅŒ–ๆŠ•่ต„่ƒฝๅŠ›ใ€ๅކๅฒๅฃ็ข‘
+```
+
+**้‡ๅŒ–่ฏ„ๅˆ†ๆจกๅž‹**๏ผš
+
+```python
+def etf_score(etf_data: dict) -> float:
+ """
+ ETF ็ปผๅˆ่ฏ„ๅˆ†๏ผˆ่ถŠ้ซ˜่ถŠๅฅฝ๏ผŒๆปกๅˆ†100๏ผ‰ใ€‚
+
+ Args:
+ etf_data: ๅŒ…ๅซ scale, fee, tracking_error, avg_volume, spread ็š„ๅญ—ๅ…ธ
+
+ Returns:
+ ็ปผๅˆ่ฏ„ๅˆ† 0~100
+ """
+ score = 0.0
+ # ่ง„ๆจกๅพ—ๅˆ†๏ผˆ30ๅˆ†๏ผ‰
+ scale = etf_data['scale_billion']
+ score += min(30, scale / 10 * 30)
+
+ # ่ดน็އๅพ—ๅˆ†๏ผˆ25ๅˆ†๏ผ‰๏ผš่ดน็އ่ถŠไฝŽ่ถŠ้ซ˜ๅˆ†
+ fee = etf_data['total_fee_pct'] # ๅนด่ดน็އ็™พๅˆ†ๆฏ”
+ score += max(0, 25 - fee * 50)
+
+ # ่ทŸ่ธช่ฏฏๅทฎๅพ—ๅˆ†๏ผˆ30ๅˆ†๏ผ‰๏ผš่ฏฏๅทฎ่ถŠๅฐ่ถŠ้ซ˜ๅˆ†
+ te = etf_data['tracking_error_annual_pct']
+ score += max(0, 30 - te * 60)
+
+ # ๆตๅŠจๆ€งๅพ—ๅˆ†๏ผˆ15ๅˆ†๏ผ‰
+ vol = etf_data['avg_daily_volume_million']
+ score += min(15, vol / 10 * 15)
+
+ return round(score, 2)
+```
+
+### 3.2 ่ดน็އๅฝฑๅ“้•ฟๆœŸๆ”ถ็›Š็š„้‡ๅŒ–ๅˆ†ๆž
+
+```python
+import numpy as np
+
+def fee_drag_analysis(annual_return: float, years: int, fee_rates: list[float]) -> dict:
+ """
+ ๅˆ†ๆžไธๅŒ่ดน็އๅฏน้•ฟๆœŸๆ”ถ็›Š็š„ๆ‹–็ดฏๆ•ˆๆžœใ€‚
+
+ Args:
+ annual_return: ๆŒ‡ๆ•ฐๅนดๅŒ–ๆ”ถ็›Š็އ๏ผˆๅฐๆ•ฐ๏ผŒๅฆ‚0.08๏ผ‰
+ years: ๆŠ•่ต„ๅนด้™
+ fee_rates: ๅพ…ๆฏ”่พƒ็š„่ดน็އๅˆ—่กจ๏ผˆๅฐๆ•ฐ๏ผŒๅฆ‚[0.002, 0.005, 0.015]๏ผ‰
+
+ Returns:
+ ๅ„่ดน็އไธ‹็š„็ปˆๅ€ผๅ€ๆ•ฐๅ’Œ็›ธๅฏนๆ‹–็ดฏๅญ—ๅ…ธ
+ """
+ results = {}
+ base_value = (1 + annual_return) ** years
+ for fee in fee_rates:
+ net_return = annual_return - fee
+ end_value = (1 + net_return) ** years
+ drag = (base_value - end_value) / base_value * 100
+ results[f'{fee*100:.2f}%'] = {
+ 'end_value_multiple': round(end_value, 4),
+ 'drag_pct': round(drag, 2)
+ }
+ return results
+
+# ็คบไพ‹๏ผš8% ๆŒ‡ๆ•ฐๆ”ถ็›Š๏ผŒ20ๅนดๆœŸ
+# fee_drag_analysis(0.08, 20, [0.002, 0.005, 0.015])
+```
+
+### 3.3 ๅšๅธ‚ๅ•†่ดจ้‡่ฏ„ไผฐ
+
+ไผ˜่ดจๅšๅธ‚ๅ•†ไฝ“็Žฐๅœจ๏ผš
+- **ไปทๅทฎ็จณๅฎš**๏ผšๆณขๅŠจๆœŸไปทๅทฎๆ‰ฉๅคงๅน…ๅบฆๅฐ๏ผˆ< 3ๅ€ๆญฃๅธธๆฐดๅนณ๏ผ‰
+- **ๆทฑๅบฆๅ……่ถณ**๏ผš็›˜ๅฃๅ„ๆกฃไฝ้‡‘้ขๅ‡ๅŒ€
+- **ๆŠฅไปท่ฟž็ปญๆ€ง**๏ผšไธ้ข‘็นๆ’คๅ•้‡ๆŠฅ
+- **ๅคงๅ•ๅบ”ๅฏน**๏ผšๅคง้ขไบคๆ˜“ๅŽไปทๅทฎๅฟซ้€Ÿๆขๅค
+
+่ฏ„ไผฐๆ–นๆณ•๏ผš
+```python
+# ้€š่ฟ‡Level2ๆ•ฐๆฎ่ฎก็ฎ—ๆœ‰ๆ•ˆไปทๅทฎ
+effective_spread = (ask_price - bid_price) / mid_price * 100 # ๅ•ไฝ %
+
+# ไปทๆ ผๅ†ฒๅ‡ปๆˆๆœฌ๏ผˆImpact Cost๏ผ‰
+# ไนฐๅ…ฅNไธ‡ๅ…ƒๆ‰€้œ€ๅ‡ไปท็›ธๅฏนไบŽไธญ้—ดไปท็š„ๅ็ฆป
+impact_cost = (avg_buy_price - mid_price) / mid_price * 100
+```
+
+### 3.4 ๅŸบ้‡‘ๅ…ฌๅธๅฎžๅŠ›่ฏ„ไผฐ
+
+| ็ปดๅบฆ | ่ฏ„ไผฐ่ฆ็‚น |
+|------|---------|
+| ETF ็ฎก็†่ง„ๆจก | ๅ…จๅธ‚ๅœบๆŽ’ๅ๏ผŒๆŒ‡ๆ•ฐๅŒ–ๆŠ•่ต„ไธ“ไธšๅบฆ |
+| ่ทŸ่ธช่ฏฏๅทฎๅކๅฒ | ้•ฟๆœŸ็ปดๅบฆ๏ผˆ3ๅนด+๏ผ‰็จณๅฎšๆ€ง |
+| ไบงๅ“็บฟๅฎŒๆ•ดๆ€ง | ๅฎฝๅŸบใ€่กŒไธšใ€่ทจๅขƒ่ฆ†็›–ๅนฟๅบฆ |
+| ็”ณ่ตŽๆ•ˆ็އ | T+0 ๅฎž็‰ฉ็”ณ่ตŽๅค„็†่ƒฝๅŠ› |
+| ๅšๅธ‚ๅ•†ๅˆไฝœ่ดจ้‡ | ไธŽๅคด้ƒจๅˆธๅ•†ๅšๅธ‚ๅ•†็š„ๅˆไฝœ็จณๅฎšๆ€ง |
+
+ๅ›ฝๅ†… ETF ็ฎก็†ๅคด้ƒจๅ…ฌๅธ๏ผˆ่ง„ๆจกๅฃๅพ„๏ผ‰๏ผšๅŽๅคใ€ๆ˜“ๆ–น่พพใ€ๅŽๆณฐๆŸ็‘žใ€ๅ—ๆ–นใ€ๅ˜‰ๅฎžใ€ๅšๆ—ถ
+
+---
+
+## 4. ETF ็ญ–็•ฅๅบ”็”จ
+
+### 4.1 ๆ ธๅฟƒ-ๅซๆ˜Ÿ็ญ–็•ฅ๏ผˆCore-Satellite๏ผ‰
+
+```
+ๆ€ป็ป„ๅˆ = ๆ ธๅฟƒไป“ไฝ๏ผˆ70~80%๏ผ‰+ ๅซๆ˜Ÿไป“ไฝ๏ผˆ20~30%๏ผ‰
+
+ๆ ธๅฟƒไป“ไฝ๏ผšๅฎฝๅŸบETF๏ผˆๆฒชๆทฑ300/ไธญ่ฏ500/ๅ…จA๏ผ‰
+ โ†’ ่Žทๅ–ๅธ‚ๅœบbeta๏ผŒไฝŽ่ดน็އ๏ผŒ้•ฟๆœŸๆŒๆœ‰๏ผŒๅ‡ๅฐ‘ไบคๆ˜“ๆ‘ฉๆ“ฆ
+
+ๅซๆ˜Ÿไป“ไฝ๏ผš่กŒไธšETF/ไธป้ข˜ETF/Smart Beta ETF
+ โ†’ ๅขžๅผบๆ”ถ็›Š๏ผŒไธปๅŠจๆšด้œฒ็‰นๅฎšๅ› ๅญ๏ผŒๅ…่ฎธๆ›ด้ซ˜ๆขๆ‰‹
+```
+
+**ๅ†ๅนณ่กก่งฆๅ‘ๆกไปถ**๏ผš
+- ๆ—ถ้—ด่งฆๅ‘๏ผšๆฏๅญฃๅบฆ/ๆฏๅŠๅนด
+- ๅ็ฆป่งฆๅ‘๏ผšๅ•ไธ€่ต„ไบงๅ็ฆป็›ฎๆ ‡ๆƒ้‡ > 5%
+
+### 4.2 ่กŒไธš่ฝฎๅŠจ ETF ็ญ–็•ฅ
+
+**ๅŠจ้‡่ฝฎๅŠจ**๏ผš
+```python
+def sector_momentum_rotation(etf_returns: pd.DataFrame, lookback: int = 20, top_n: int = 3) -> list[str]:
+ """
+ ๅŸบไบŽๅŠจ้‡็š„่กŒไธšETF่ฝฎๅŠจ้€‰ๆ‹ฉใ€‚
+
+ Args:
+ etf_returns: ๅ„่กŒไธšETFๆ—ฅๆ”ถ็›Š็އ DataFrame๏ผŒๅˆ—ไธบETFไปฃ็ 
+ lookback: ๅ›ž็œ‹็ช—ๅฃ๏ผˆไบคๆ˜“ๆ—ฅๆ•ฐ๏ผ‰
+ top_n: ๆŒๆœ‰ETFๆ•ฐ้‡
+
+ Returns:
+ ๆœฌๆœŸๆŒๆœ‰็š„ETFไปฃ็ ๅˆ—่กจ
+ """
+ momentum = etf_returns.tail(lookback).sum()
+ selected = momentum.nlargest(top_n).index.tolist()
+ return selected
+```
+
+**ๅฎ่ง‚ๅ‘จๆœŸ่ฝฎๅŠจ**๏ผš
+| ็ปๆตŽๅ‘จๆœŸ | ๆŽจ่่กŒไธš ETF |
+|---------|------------|
+| ๅค่‹ๆœŸ๏ผˆไฝŽๅขž้•ฟโ†’้ซ˜ๅขž้•ฟ๏ผŒไฝŽ้€š่ƒ€๏ผ‰ | ๆถˆ่ดนใ€็ง‘ๆŠ€ใ€ไธญๅฐ็›˜ |
+| ่ฟ‡็ƒญๆœŸ๏ผˆ้ซ˜ๅขž้•ฟ๏ผŒ้ซ˜้€š่ƒ€๏ผ‰ | ่ƒฝๆบใ€ๆๆ–™ใ€ๅทฅไธš |
+| ๆปž่ƒ€ๆœŸ๏ผˆไฝŽๅขž้•ฟ๏ผŒ้ซ˜้€š่ƒ€๏ผ‰ | ่ƒฝๆบใ€ๅ…ฌ็”จไบ‹ไธšใ€ๆถˆ่ดน |
+| ่กฐ้€€ๆœŸ๏ผˆ้ซ˜ๅขž้•ฟโ†’ไฝŽๅขž้•ฟ๏ผ‰ | ๅŒป็–—ใ€ๅ…ฌ็”จไบ‹ไธšใ€ๅ€บๅˆธETF |
+
+### 4.3 Smart Beta ETF ๅ› ๅญๆšด้œฒๅˆ†ๆž
+
+ไธป่ฆๅ› ๅญๅŠๅฏนๅบ”ETF๏ผš
+
+| ๅ› ๅญ | ไปฃ่กจETF | ๅކๅฒๆœ‰ๆ•ˆๆ€ง๏ผˆA่‚ก๏ผ‰ |
+|------|--------|--------------|
+| ไปทๅ€ผ๏ผˆไฝŽไผฐๅ€ผ๏ผ‰ | ๆฒชๆทฑ300ไปทๅ€ผETF | ไธญ็ญ‰๏ผŒๅ—้ฃŽๆ ผๅˆ‡ๆขๅฝฑๅ“ |
+| ็บขๅˆฉ๏ผˆ้ซ˜่‚กๆฏ๏ผ‰ | ็บขๅˆฉETF (510880) | ่พƒๅผบ๏ผŒๅฐคๅ…ถ็†Šๅธ‚้˜ฒๅพก |
+| ไฝŽๆณขๅŠจ | ไธญ่ฏไฝŽๆณขETF | ่พƒๅผบ๏ผŒๅคๆ™ฎๆฏ”ไผ˜ไบŽๅฎฝๅŸบ |
+| ่ดจ้‡๏ผˆ้ซ˜ROE๏ผ‰ | ไธญ่ฏ่ดจ้‡ETF | ่พƒๅผบ๏ผŒ้•ฟๆœŸๅคๅˆๆ•ˆๆžœๅฅฝ |
+| ๅŠจ้‡ | ็›ฎๅ‰A่‚กไบงๅ“ๅฐ‘ | ไธญ็ŸญๆœŸๆœ‰ๆ•ˆ๏ผŒ้•ฟๆœŸๅ‡ๅ€ผๅ›žๅฝ’ |
+| ๅฐ็›˜ | ไธญ่ฏ1000ETF (512100) | ๅผบ๏ผŒไฝ†ๆตๅŠจๆ€ง้ฃŽ้™ฉ้ซ˜ |
+
+**ๅ› ๅญๆšด้œฒๅˆ†ๆžไปฃ็ **๏ผš
+```python
+import pandas as pd
+import numpy as np
+from scipy import stats
+
+def factor_exposure_analysis(etf_returns: pd.Series, factor_returns: dict[str, pd.Series]) -> pd.DataFrame:
+ """
+ ๅˆ†ๆžETFๅฏนๅ„ๅ› ๅญ็š„ๆšด้œฒ็จ‹ๅบฆ๏ผˆๅ•ๅ› ๅญๅ›žๅฝ’๏ผ‰ใ€‚
+
+ Args:
+ etf_returns: ETFๆ—ฅๆ”ถ็›Š็އๅบๅˆ—
+ factor_returns: ๅ„ๅ› ๅญๆ”ถ็›Š็އๅญ—ๅ…ธ {ๅ› ๅญๅ: ๆ”ถ็›Š็އๅบๅˆ—}
+
+ Returns:
+ ๅŒ…ๅซ beta, t_stat, r_squared ็š„ DataFrame
+ """
+ results = []
+ for factor_name, factor_ret in factor_returns.items():
+ aligned = pd.concat([etf_returns, factor_ret], axis=1).dropna()
+ x = aligned.iloc[:, 1].values
+ y = aligned.iloc[:, 0].values
+ slope, intercept, r_value, p_value, std_err = stats.linregress(x, y)
+ results.append({
+ 'factor': factor_name,
+ 'beta': round(slope, 4),
+ 't_stat': round(slope / std_err, 2),
+ 'r_squared': round(r_value ** 2, 4),
+ 'p_value': round(p_value, 4)
+ })
+ return pd.DataFrame(results).set_index('factor')
+```
+
+### 4.4 ๆ ๆ†/ๅๅ‘ ETF ็š„่กฐๅ‡ๆ•ˆๅบ”
+
+**Beta ่กฐๅ‡๏ผˆVolatility Decay๏ผ‰ๅŽŸ็†**๏ผš
+
+```
+ๆฏๆ—ฅๆ’ๅฎšๆ ๆ† N ๅ€ โ†’ ๅคๅˆๆ•ˆๅบ”ๅฏผ่‡ด้•ฟๆœŸๆ”ถ็›Š โ‰  N ร— ๆŒ‡ๆ•ฐๆ”ถ็›Š
+
+่กฐๅ‡้‡๏ผˆ่ฟ‘ไผผ๏ผ‰= Nยฒ(N-1)/2 ร— ฯƒยฒ ร— T
+ๅ…ถไธญ ฯƒ ไธบๆŒ‡ๆ•ฐๆ—ฅๆณขๅŠจ็އ๏ผŒT ไธบๆŒๆœ‰ๅคฉๆ•ฐ
+```
+
+**ๆ•ฐๅ€ผ็คบไพ‹**๏ผš
+- ๆŒ‡ๆ•ฐๅนดๅŒ–ๆณขๅŠจ็އ 20%๏ผŒๆ—ฅๆณขๅŠจ็އ โ‰ˆ 1.26%
+- 2ๅ€ๆ ๆ†ETF๏ผŒๆŒๆœ‰1ๅนด๏ผš่กฐๅ‡ๆŸ่€— โ‰ˆ 2ยฒ ร— (2-1)/2 ร— (0.2)ยฒ ร— 1 โ‰ˆ 4%
+
+**้€‚็”จๅœบๆ™ฏ**๏ผš
+- ๆ ๆ†ETF๏ผšๅผบ่ถ‹ๅŠฟ่กŒๆƒ…ไธญ็š„็ŸญๆœŸๅทฅๅ…ท๏ผˆๆŒๆœ‰ < 1ไธชๆœˆ๏ผ‰
+- ๅๅ‘ETF๏ผšๅธ‚ๅœบๅฏนๅ†ฒใ€็ŸญๆœŸไธ‹่ทŒๆŠผๆณจ๏ผˆไธ้€‚ๅˆ้•ฟๆœŸๆŒๆœ‰๏ผ‰
+- **ไธฅ็ฆ**๏ผš็”จๆ ๆ†/ๅๅ‘ETFๅš้•ฟๆœŸ้…็ฝฎไป“ไฝ
+
+### 4.5 ETF ๅฅ—ๅˆฉ็ญ–็•ฅ
+
+**ๆŠ˜ๆบขไปทๅฅ—ๅˆฉ**๏ผˆ้œ€่ฆๆœ‰ๅฎž็‰ฉ็”ณ่ตŽ่ต„ๆ ผ๏ผŒ้€šๅธธ้—จๆง›100ไธ‡ไปฝ๏ผ‰๏ผš
+
+```
+ๆบขไปทๅฅ—ๅˆฉ๏ผš
+ ETFๅธ‚ไปท > IOPV + ไบคๆ˜“ๆˆๆœฌ
+ โ†’ ไนฐๅ…ฅไธ€็ฏฎๅญๆˆๅˆ†่‚ก โ†’ ็”ณ่ดญETFไปฝ้ข โ†’ ๅ–ๅ‡บETF
+ โ†’ ๅฅ—ๅˆฉๅˆฉๆถฆ โ‰ˆ ๆบขไปท็އ - ๅ†ฒๅ‡ปๆˆๆœฌ - ไฝฃ้‡‘
+
+ๆŠ˜ไปทๅฅ—ๅˆฉ๏ผš
+ ETFๅธ‚ไปท < IOPV - ไบคๆ˜“ๆˆๆœฌ
+ โ†’ ไนฐๅ…ฅETFไปฝ้ข โ†’ ่ตŽๅ›žไธ€็ฏฎๅญๆˆๅˆ†่‚ก โ†’ ๅ–ๅ‡บๆˆๅˆ†่‚ก
+ โ†’ ๅฅ—ๅˆฉๅˆฉๆถฆ โ‰ˆ ๆŠ˜ไปท็އ - ๅ†ฒๅ‡ปๆˆๆœฌ - ไฝฃ้‡‘
+```
+
+**่ทจๅธ‚ๅœบๅฅ—ๅˆฉ๏ผˆETF vs ๆœŸ่ดง๏ผ‰**๏ผš
+```
+IF๏ผˆๆฒชๆทฑ300่‚กๆŒ‡ๆœŸ่ดง๏ผ‰ๅŸบๅทฎ = ๆœŸ่ดงไปทๆ ผ - ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ
+ๅฝ“ๅŸบๅทฎ > ๅˆ็†ๅŸบๅทฎ๏ผˆๆ— ้ฃŽ้™ฉๅˆฉ็އร—ๅ‰ฉไฝ™ๆœŸ้™๏ผ‰ๆ—ถ๏ผš
+ โ†’ ๅ–ๆœŸ่ดง + ไนฐETF๏ผˆๆญฃๅ‘ๅฅ—ๅˆฉ๏ผ‰
+ๅฝ“ๅŸบๅทฎ < ๅˆ็†ๅŸบๅทฎๆ—ถ๏ผš
+ โ†’ ไนฐๆœŸ่ดง + ๅ–ETF๏ผˆๅๅ‘ๅฅ—ๅˆฉ๏ผŒ้œ€่žๅˆธ๏ผ‰
+```
+
+**็ปŸ่ฎกๅฅ—ๅˆฉ๏ผˆ้…ๅฏนไบคๆ˜“๏ผ‰**๏ผš
+```python
+# ๅŒ็ฑปETF๏ผˆๅฆ‚ไธๅŒๅ…ฌๅธๅ‘่กŒ็š„ๆฒชๆทฑ300ETF๏ผ‰ไน‹้—ด็š„ไปทๅทฎๅ‡ๅ€ผๅ›žๅฝ’
+# ไปทๅทฎ = ไปทๆ ผๅทฎ ๆˆ– ไปทๆ ผๆฏ”
+# ๅฝ“ไปทๅทฎๅ็ฆปๅކๅฒๅ‡ๅ€ผ2ไธชๆ ‡ๅ‡†ๅทฎๆ—ถๅปบไป“๏ผŒๅ›žๅฝ’ๆ—ถๅนณไป“
+spread = etf_a_price / etf_b_price
+z_score = (spread - spread.rolling(60).mean()) / spread.rolling(60).std()
+signal = pd.Series(0, index=z_score.index)
+signal[z_score > 2] = -1 # ETF_A ็›ธๅฏน่ดต๏ผŒๅ–AไนฐB
+signal[z_score < -2] = 1 # ETF_A ็›ธๅฏนไพฟๅฎœ๏ผŒไนฐAๅ–B
+```
+
+---
+
+## 5. ไธญๅ›ฝ ETF ๅธ‚ๅœบ็‰น่‰ฒ
+
+### 5.1 ๅœบๅ†… ETF vs ๅœบๅค–่”ๆŽฅๅŸบ้‡‘
+
+| ็ปดๅบฆ | ๅœบๅ†… ETF | ๅœบๅค–่”ๆŽฅๅŸบ้‡‘ |
+|------|---------|-----------|
+| ่ดญไนฐๆธ ้“ | ่ฏๅˆธ่ดฆๆˆท๏ผŒๅฎžๆ—ถไบคๆ˜“ | ้“ถ่กŒ/ๅŸบ้‡‘็›ด้”€๏ผŒT+1็”ณ่ตŽ |
+| ็”ณ่ตŽๆ–นๅผ | ๅฎž็‰ฉ็”ณ่ตŽ๏ผˆๆœบๆž„๏ผ‰ๆˆ–ไบŒ็บงๅธ‚ๅœบ๏ผˆไธชไบบ๏ผ‰ | ็Žฐ้‡‘็”ณ่ตŽ |
+| ๆŠ˜ๆบขไปท | ๅญ˜ๅœจ๏ผˆๆœ‰ๅฅ—ๅˆฉๆœบๅˆถ๏ผ‰ | ไธๅญ˜ๅœจ |
+| ๆœ€ๅฐไบคๆ˜“ๅ•ไฝ | 100ไปฝ๏ผˆ็บฆ10~100ๅ…ƒ๏ผ‰ | 1ๅ…ƒ่ตทๆŠ• |
+| ่ดน็އ | ่พƒไฝŽ๏ผˆ็ฎก็†่ดน+ไบคๆ˜“ไฝฃ้‡‘๏ผ‰ | ็•ฅ้ซ˜๏ผˆ็”ณ่ดญ่ดน+็ฎก็†่ดน๏ผ‰ |
+| ้€‚ๅˆๅœบๆ™ฏ | ๆณขๆฎตๆ“ไฝœใ€ๅคง้ข้…็ฝฎ | ๅฎšๆŠ•ใ€ๅฐ้ข้•ฟๆœŸๆŒๆœ‰ |
+
+### 5.2 ่ทจๅขƒ ETF๏ผˆQDII๏ผ‰็‰นๆฎŠ่€ƒ้‡
+
+**ๆบขไปทๅฝขๆˆๅŽŸๅ› **๏ผš
+- QDII ้ขๅบฆ้™ๅˆถ๏ผšๅŸบ้‡‘ๅ…ฌๅธ QDII ้ขๅบฆ็”จๅฎŒๅŽๆš‚ๅœ็”ณ่ดญ๏ผŒๅฅ—ๅˆฉๆœบๅˆถๅคฑๆ•ˆ
+- ๆฑ‡็އๅฝฑๅ“๏ผšไบบๆฐ‘ๅธ่ดฌๅ€ผๆ—ถ๏ผŒๆŒๆœ‰ๅขƒๅค–่ต„ไบง็š„ ETF ๅ‡€ๅ€ผไธŠๅ‡๏ผŒๅผ•ๅ‘่ฟฝๆถจ
+- ๆ—ถๅทฎๅฝฑๅ“๏ผšA ่‚กๆ”ถ็›˜ๆ—ถๆตทๅค–ๅธ‚ๅœบๅฐšๆœชๅผ€็›˜๏ผŒIOPV ๅ‚่€ƒไปทๆปžๅŽ
+
+**ๆบขไปท็އ่ญฆๆˆ’็บฟ**๏ผš
+- < 2%๏ผšๆญฃๅธธ่Œƒๅ›ด๏ผŒๅฏๆญฃๅธธ้…็ฝฎ
+- 2%~5%๏ผšๆบขไปทๆ˜Žๆ˜พ๏ผŒๅ…ฅๅœบ้œ€่ฐจๆ…Ž๏ผŒ็ญ‰ๅพ…ๅ›ž่ฝ
+- > 5%๏ผš้ซ˜ๆบขไปท๏ผŒๅญ˜ๅœจๆ˜พ่‘—ไนฐๅ…ฅ้ฃŽ้™ฉ๏ผˆๅ‡€ๅ€ผๅ›ž่ฝไฝ†ๆบขไปทๆ”ถ็ช„ๅŒๆ€๏ผ‰
+
+**ๆฑ‡็އๅฏนๅ†ฒ**๏ผš
+- ้ƒจๅˆ† QDII ETF ๆไพ›ๅฏนๅ†ฒ็‰ˆๆœฌ๏ผˆๅฆ‚ๆ ‡ๆ™ฎ500ๅฏนๅ†ฒETF๏ผ‰
+- ๅฏนๅ†ฒๆˆๆœฌ โ‰ˆ ไธญ็พŽๅˆฉๅทฎ๏ผˆ2025ๅนด็บฆ1.5~2.5%/ๅนด๏ผ‰๏ผŒๆ˜พ่‘—้™ไฝŽๆ”ถ็›Š
+
+### 5.3 LOF ไธŽๅˆ†็บงๅŸบ้‡‘ๅކๅฒ็ป้ชŒ
+
+**LOF๏ผˆไธŠๅธ‚ๅผ€ๆ”พๅผๅŸบ้‡‘๏ผ‰**๏ผš
+- ๅœบๅ†…ๅค–ๅ‡ๅฏไบคๆ˜“๏ผŒๆŠ˜ไปทๅฅ—ๅˆฉ่ทฏๅพ„๏ผšๅœบๅ†…ๆŠ˜ไปทไนฐๅ…ฅ โ†’ ่ฝฌๆ‰˜็ฎก โ†’ ๅœบๅค–่ตŽๅ›ž
+- ่ฝฌๆ‰˜็ฎกๆ—ถ้—ด T+2~T+3๏ผŒๅญ˜ๅœจๅ‡€ๅ€ผๅ˜ๅŠจ้ฃŽ้™ฉ
+
+**ๅˆ†็บงๅŸบ้‡‘๏ผˆๅทฒๅ…จ้ข่ฝฌๅž‹๏ผŒ2020ๅนดๅ‰ๅކๅฒๅ‚่€ƒ๏ผ‰**๏ผš
+- A ไปฝ้ข๏ผš็บฆๅฎšๆ”ถ็›Šๅž‹๏ผŒ็ฑปไผผๅ€บๅˆธ
+- B ไปฝ้ข๏ผšๆ ๆ†ๅž‹๏ผŒไธŽA็บฆๅฎšๆ”ถ็›ŠๆŒ‚้’ฉ
+- ้‡่ฆๆ•™่ฎญ๏ผšไธ‹ๆŠ˜ๆœบๅˆถๅฏผ่‡ดBไปฝ้ขๅคงๅน…ไบๆŸ๏ผ›้ซ˜ๆบขไปทๅฅ—ๅˆฉ่ขซ่ฝง็ฉบ
+- ็Žฐ็Šถ๏ผš็›‘็ฎก่ฆๆฑ‚ๅ…จ้ƒจ่ฝฌๅž‹ไธบๆ™ฎ้€šETF๏ผŒไธๅ†ๆœ‰ๆ–ฐๅ‘
+
+### 5.4 ไธญๅ›ฝไธป่ฆ ETF ๆŒ‡ๆ•ฐไฝ“็ณป
+
+**ๅฎฝๅŸบๆŒ‡ๆ•ฐ**๏ผš
+
+| ๆŒ‡ๆ•ฐ | ๆˆๅˆ†่‚ก | ็‰น็‚น |
+|------|-------|------|
+| ๆฒชๆทฑ300 | ๆฒชๆทฑไธคๅธ‚ๅธ‚ๅ€ผๆœ€ๅคง300ๅช | ๅคง็›˜่“็ญน๏ผŒ่ก็”Ÿๅ“ไธฐๅฏŒ๏ผˆIFๆœŸ่ดง/300ๆœŸๆƒ๏ผ‰ |
+| ไธญ่ฏ500 | 300~800ๅไธญ็›˜่‚ก | ไธญ็›˜ๆˆ้•ฟ๏ผŒไธŽ300ไบ’่กฅ |
+| ไธญ่ฏ1000 | 800~1800ๅๅฐ็›˜่‚ก | ๅฐ็›˜ๅ› ๅญ๏ผŒๆณขๅŠจ่พƒๅคง |
+| ไธŠ่ฏ50 | ๆฒชๅธ‚ๆœ€ๅคง50ๅช | ่ถ…ๅคง็›˜๏ผŒ้‡‘่žๅœฐไบงๆƒ้‡้ซ˜ |
+| ๅˆ›ไธšๆฟๆŒ‡ | ๅˆ›ไธšๆฟๅ‰100ๅ | ็ง‘ๆŠ€ๆˆ้•ฟ๏ผŒๆณขๅŠจๅคง |
+| ็ง‘ๅˆ›50 | ็ง‘ๅˆ›ๆฟๅ‰50ๅ | ็กฌ็ง‘ๆŠ€๏ผŒไธŠๅธ‚ๆ—ถ้—ด็Ÿญ |
+| ๅŒ—่ฏ50 | ๅŒ—ไบคๆ‰€ๅ‰50ๅ | ๆ–ฐๅ…ดๅธ‚ๅœบ๏ผŒๆตๅŠจๆ€งๅผฑ |
+| ไธญ่ฏๅ…จๆŒ‡ / ไธ‡ๅพ—ๅ…จA | ๅ…จๅธ‚ๅœบ | ๆœ€ๅฎฝๆณ›็š„ๅŸบๅ‡† |
+
+**ๆŒ‡ๆ•ฐ่ฐƒๆ•ด่ง„ๅพ‹**๏ผš
+- ๆฒชๆทฑ300/ไธญ่ฏ500๏ผšๆฏๅนด6ๆœˆๅ’Œ12ๆœˆ่ฐƒๆ•ดไธ€ๆฌก
+- ่ฐƒๆ•ดๅ‰ๅŽ๏ผš็บณๅ…ฅ่‚ก็ฅจๆถจใ€ๅ‰”้™ค่‚ก็ฅจ่ทŒ๏ผˆ็ŸญๆœŸ๏ผ‰๏ผŒๆไพ›ไบ‹ไปถ้ฉฑๅŠจๆœบไผš
+
+---
+
+## 6. ETF ็ป„ๅˆๆž„ๅปบ
+
+### 6.1 ๅŸบไบŽ ETF ็š„่ต„ไบง้…็ฝฎๅฎž็Žฐ
+
+**็ปๅ…ธ้…็ฝฎๆก†ๆžถ๏ผˆๅฏ็”จETFๅฎž็Žฐ๏ผ‰**๏ผš
+
+```
+่‚กๅ€บ 60/40 ไธญๅ›ฝ็‰ˆ๏ผš
+ ๆฒชๆทฑ300ETF 30% + ไธญ่ฏ500ETF 20% + ไธญๅ€บETF 40% + ้ป„้‡‘ETF 10%
+
+ๅ…จๅคฉๅ€™็ป„ๅˆ๏ผˆไธญๅ›ฝ็‰ˆ๏ผ‰๏ผš
+ ่‚ก็ฅจETF๏ผˆๆฒชๆทฑ300๏ผ‰25%
+ ้•ฟๆœŸๅ›ฝๅ€บETF 40%
+ ไธญๆœŸๅ›ฝๅ€บETF 15%
+ ้ป„้‡‘ETF 7.5%
+ ๅ•†ๅ“ETF 12.5%
+
+ๅ“‘้“ƒ็ญ–็•ฅ๏ผš
+ ๅฎฝๅŸบETF๏ผˆไฝŽ้ฃŽ้™ฉๆ ธๅฟƒ๏ผ‰50%
+ ่กŒไธš/ไธป้ข˜ETF๏ผˆ้ซ˜ๅผนๆ€ง่ฟ›ๆ”ป๏ผ‰50%
+```
+
+### 6.2 ๅ…จ็ƒๅŒ–้…็ฝฎ็š„ ETF ๅทฅๅ…ท้€‰ๆ‹ฉ
+
+```
+A่‚ก๏ผšๆฒชๆทฑ300ETF 510300 / ไธญ่ฏ500ETF 510500
+็พŽ่‚ก๏ผš็บณๆŒ‡ETF 159632 / ๆ ‡ๆ™ฎ500ETF 513500
+ๆธฏ่‚ก๏ผšๆ’็”ŸETF 159920 / ๆ’็”Ÿ็ง‘ๆŠ€ETF 513130
+ๆฌงๆดฒ๏ผšๅพทๅ›ฝDAX ETF / ๆฌงๆดฒ50ETF๏ผˆ่ง„ๆจก่พƒๅฐ๏ผ‰
+ๆ—ฅๆœฌ๏ผšๆ—ฅ็ป225ETF 513880 / ไธœ่ฏETF
+ๆ–ฐๅ…ด๏ผš่ถŠๅ—ETF / ๅฐๅบฆETF๏ผˆ้ƒจๅˆ†ๆœ‰QDIIๆบขไปท๏ผ‰
+
+ๅ›บๅฎšๆ”ถ็›Š๏ผš
+ ๅ›ฝๅ†…๏ผšๅ›ฝๅ€บETF 511010 / ๆ”ฟ้‡‘ๅ€บETF
+ ็พŽๅ›ฝ๏ผš็พŽๅ€บETF๏ผˆQDII๏ผ‰
+
+ๅ•†ๅ“๏ผš
+ ้ป„้‡‘ETF 518880
+ ๅŽŸๆฒนETF 162411
+ CRBๅ•†ๅ“ๆŒ‡ๆ•ฐETF๏ผˆๅ›ฝๅ†…่พƒๅฐ‘๏ผ‰
+```
+
+### 6.3 ๅ†ๅนณ่กก้ข‘็އไธŽไบคๆ˜“ๆˆๆœฌๆƒ่กก
+
+**ๅ†ๅนณ่กกๆˆๆœฌ**๏ผš
+```
+ๅ•ๆฌกๅ†ๅนณ่กกๆˆๆœฌ โ‰ˆ ไบคๆ˜“้‡‘้ข ร— (ไฝฃ้‡‘็އ + ไปทๅทฎ/2 + ๅ†ฒๅ‡ปๆˆๆœฌ)
+โ‰ˆ ไบคๆ˜“้‡‘้ข ร— 0.05%~0.15%๏ผˆๅฎฝๅŸบETF๏ผ‰
+
+ๅนดๅŒ–ๅ†ๅนณ่กกๆˆๆœฌ = ๅ•ๆฌกๆˆๆœฌ ร— ๅนดๅ‡่ฐƒไป“ๆฌกๆ•ฐ
+```
+
+**ๆœ€ไผ˜ๅ†ๅนณ่กก้ข‘็އๅปบ่ฎฎ**๏ผš
+- ็บฏ่ขซๅŠจ้…็ฝฎ๏ผˆๆณขๅŠจไฝŽ๏ผ‰๏ผšๆฏๅนด2ๆฌก๏ผˆ6ๆœˆ/12ๆœˆ๏ผ‰
+- ่กŒไธš่ฝฎๅŠจ๏ผˆๆณขๅŠจ้ซ˜๏ผ‰๏ผšๆฏๆœˆๆˆ–ๆฏๅญฃๅบฆ
+- ้˜ˆๅ€ผ่งฆๅ‘ๆณ•๏ผšๅ็ฆป็›ฎๆ ‡ๆƒ้‡ > 5% ๆ—ถ่งฆๅ‘๏ผŒ้€šๅธธไผ˜ไบŽๅ›บๅฎš้ข‘็އ
+
+**ๅ…ไฝฃ้‡‘ๅ†ๅนณ่กกๆŠ€ๅทง**๏ผš
+- ๅˆฉ็”จๆ–ฐๅขž่ต„้‡‘ๅฎšๅ‘่กฅไป“ๅไฝŽไป“ไฝ๏ผŒๅ‡ๅฐ‘ๅ–ๅ‡บๆ“ไฝœ
+- ๅˆ†็บขๆ”ถ็›Šไผ˜ๅ…ˆ้…็ฝฎๅˆฐไฝŽ้…่ต„ไบง
+
+### 6.4 ็จŽๅŠกๆ•ˆ็އ่€ƒ้‡
+
+ไธญๅ›ฝ ETF ็จŽๅŠก่ง„ๅˆ™๏ผš
+- **ไธชไบบๆŠ•่ต„่€…**๏ผš
+ - ่‚ก็ฅจๅž‹ETF่ต„ๆœฌๅˆฉๅพ—ๅ…็จŽ๏ผˆๆŒๆœ‰ๆœŸ้—ด๏ผ‰
+ - ETFๅˆ†็บข๏ผš็Žฐ้‡‘ๅˆ†็บขๅ…็จŽ๏ผŒ็บขๅˆฉๅ†ๆŠ•่ต„ไธ่ฎก็จŽ
+ - ่ดงๅธETFๅˆฉๆฏๆ”ถๅ…ฅ๏ผšๆš‚ๅ…ไธชไบบๆ‰€ๅพ—็จŽ
+- **ๆœบๆž„ๆŠ•่ต„่€…**๏ผš
+ - ่ต„ๆœฌๅˆฉๅพ—้œ€่ฎกๅ…ฅไผไธšๆ‰€ๅพ—็จŽ๏ผˆ25%๏ผ‰
+ - ๆŒ่‚กๆœŸ้—ดๅˆ†็บข๏ผšๆŒ่‚ก > 12ไธชๆœˆๅ…็จŽ
+
+**็จŽๅŠกๆ•ˆ็އ็ญ–็•ฅ**๏ผš
+- ้ซ˜ๆขๆ‰‹็š„่กŒไธš่ฝฎๅŠจ็ญ–็•ฅๅฐฝ้‡ๆ”พๅœจไธชไบบ่ดฆๆˆท๏ผˆๅˆฉ็”จ่ต„ๆœฌๅˆฉๅพ—ๅ…็จŽ๏ผ‰
+- ๅฎšๆœŸๅฎš้ข้•ฟๆœŸๆŒๆœ‰๏ผŒๅ‡ๅฐ‘็ŸญๆœŸ่ต„ๆœฌๅˆฉๅพ—ๅฎž็Žฐ้ข‘็އ
+
+---
+
+## 7. ๆ•ฐๆฎๅˆ†ๆžๆ–นๆณ•
+
+### 7.1 ็”จ Tushare ่Žทๅ– ETF ๆ•ฐๆฎ
+
+```python
+import tushare as ts
+import pandas as pd
+
+def get_etf_list(pro: ts.pro_api) -> pd.DataFrame:
+ """
+ ่Žทๅ–ๅ…จๅธ‚ๅœบETFๅˆ—่กจใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+
+ Returns:
+ ETFๅŸบๆœฌไฟกๆฏ DataFrame
+ """
+ df = pro.fund_basic(market='E', status='L') # E=ETF, L=ไธŠๅธ‚ไธญ
+ return df[['ts_code', 'name', 'management', 'found_date', 'issue_date']]
+
+
+def get_etf_nav(pro: ts.pro_api, ts_code: str, start_date: str, end_date: str) -> pd.DataFrame:
+ """
+ ่Žทๅ–ETFๅ‡€ๅ€ผๆ•ฐๆฎ๏ผˆIOPV๏ผ‰ใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ ts_code: ETFไปฃ็ ๏ผŒๅฆ‚ '510300.SH'
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ 'YYYYMMDD'
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ 'YYYYMMDD'
+
+ Returns:
+ ๅŒ…ๅซ trade_date, nav, accum_nav ็š„ DataFrame
+ """
+ df = pro.fund_nav(ts_code=ts_code, start_date=start_date, end_date=end_date)
+ return df.sort_values('end_date').reset_index(drop=True)
+
+
+def get_etf_daily(pro: ts.pro_api, ts_code: str, start_date: str, end_date: str) -> pd.DataFrame:
+ """
+ ่Žทๅ–ETFๅœบๅ†…ๆ—ฅ่กŒๆƒ…๏ผˆๅธ‚ไปท๏ผ‰ใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ ts_code: ETFไปฃ็ 
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ
+
+ Returns:
+ ๅŒ…ๅซ trade_date, open, high, low, close, vol, amount ็š„ DataFrame
+ """
+ df = pro.fund_daily(ts_code=ts_code, start_date=start_date, end_date=end_date)
+ return df.sort_values('trade_date').reset_index(drop=True)
+
+
+def get_index_daily(pro: ts.pro_api, index_code: str, start_date: str, end_date: str) -> pd.DataFrame:
+ """
+ ่Žทๅ–ๅŸบๅ‡†ๆŒ‡ๆ•ฐๆ—ฅ่กŒๆƒ…๏ผˆ็”จไบŽ่ฎก็ฎ—่ทŸ่ธช่ฏฏๅทฎ๏ผ‰ใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ index_code: ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒๅฆ‚ '000300.SH'๏ผˆๆฒชๆทฑ300๏ผ‰
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ
+
+ Returns:
+ ๅŒ…ๅซ trade_date, close ็š„ DataFrame
+ """
+ df = pro.index_daily(ts_code=index_code, start_date=start_date, end_date=end_date)
+ return df[['trade_date', 'close', 'pct_chg']].sort_values('trade_date').reset_index(drop=True)
+```
+
+### 7.2 ่ทŸ่ธช่ฏฏๅทฎ่ฎก็ฎ—ไปฃ็ ๆจกๆฟ
+
+```python
+import numpy as np
+import pandas as pd
+
+
+def calc_tracking_error(
+ etf_prices: pd.Series,
+ index_prices: pd.Series,
+ annualize: bool = True
+) -> dict:
+ """
+ ่ฎก็ฎ—ETFๅฏนๆ ‡็š„ๆŒ‡ๆ•ฐ็š„่ทŸ่ธช่ฏฏๅทฎใ€‚
+
+ Args:
+ etf_prices: ETFๅ‡€ๅ€ผๅบๅˆ—๏ผˆไปฅdateไธบ็ดขๅผ•๏ผ‰
+ index_prices: ๆŒ‡ๆ•ฐไปทๆ ผๅบๅˆ—๏ผˆไปฅdateไธบ็ดขๅผ•๏ผ‰
+ annualize: ๆ˜ฏๅฆๅนดๅŒ–๏ผŒ้ป˜่ฎคTrue
+
+ Returns:
+ ๅŒ…ๅซ tracking_error, avg_daily_diff, max_daily_diff ็š„ๅญ—ๅ…ธ
+ """
+ # ๅฏน้ฝๆ•ฐๆฎ
+ aligned = pd.concat([etf_prices, index_prices], axis=1).dropna()
+ aligned.columns = ['etf', 'index']
+
+ # ่ฎก็ฎ—ๆ—ฅๆ”ถ็›Š็އๅทฎๅ€ผ
+ etf_ret = aligned['etf'].pct_change().dropna()
+ idx_ret = aligned['index'].pct_change().dropna()
+ daily_diff = etf_ret - idx_ret
+
+ # ่ทŸ่ธช่ฏฏๅทฎ = ๅทฎๅ€ผ็š„ๆ ‡ๅ‡†ๅทฎ
+ te_daily = daily_diff.std()
+ te = te_daily * np.sqrt(252) if annualize else te_daily
+
+ return {
+ 'tracking_error': round(te * 100, 4), # ็™พๅˆ†ๆฏ”
+ 'avg_daily_diff': round(daily_diff.mean() * 100, 4), # ๅนณๅ‡ๆ—ฅๅๅทฎ %
+ 'max_daily_diff': round(daily_diff.abs().max() * 100, 4), # ๆœ€ๅคงๅ•ๆ—ฅๅๅทฎ %
+ 'annualized': annualize
+ }
+
+
+def compare_etfs_same_index(
+ etf_codes: list[str],
+ index_code: str,
+ pro,
+ start_date: str,
+ end_date: str
+) -> pd.DataFrame:
+ """
+ ๆฏ”่พƒ่ฟฝ่ธชๅŒไธ€ๆŒ‡ๆ•ฐ็š„ๅคšๅชETF็š„่ทŸ่ธช่กจ็Žฐใ€‚
+
+ Args:
+ etf_codes: ETFไปฃ็ ๅˆ—่กจ
+ index_code: ๅŸบๅ‡†ๆŒ‡ๆ•ฐไปฃ็ 
+ pro: tushare pro_api ๅฎžไพ‹
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ
+
+ Returns:
+ ๅ„ETF็š„่ทŸ่ธช่ฏฏๅทฎๆฏ”่พƒ DataFrame
+ """
+ index_df = get_index_daily(pro, index_code, start_date, end_date)
+ index_prices = index_df.set_index('trade_date')['close']
+
+ results = []
+ for code in etf_codes:
+ nav_df = get_etf_nav(pro, code, start_date, end_date)
+ etf_prices = nav_df.set_index('end_date')['nav']
+ te_result = calc_tracking_error(etf_prices, index_prices)
+ te_result['ts_code'] = code
+ results.append(te_result)
+
+ return pd.DataFrame(results).set_index('ts_code').sort_values('tracking_error')
+```
+
+### 7.3 ๆŠ˜ๆบขไปท็އ็›‘ๆŽง
+
+```python
+def calc_premium_discount(
+ market_price: float,
+ iopv: float
+) -> dict:
+ """
+ ่ฎก็ฎ—ETFๆŠ˜ๆบขไปท็އๅŠๅฅ—ๅˆฉไฟกๅทใ€‚
+
+ Args:
+ market_price: ETFๅœบๅ†…ๅธ‚ไปท
+ iopv: ๅฎžๆ—ถๅ‡€ๅ€ผ๏ผˆIOPV๏ผ‰
+
+ Returns:
+ ๅŒ…ๅซ premium_pct, signal, arbitrage_feasible ็š„ๅญ—ๅ…ธ
+ """
+ premium_pct = (market_price - iopv) / iopv * 100
+
+ if premium_pct > 0.3:
+ signal = 'PREMIUM_HIGH' # ๆบขไปท๏ผšๅ–ๅ‡บETFๆˆ–็”ณ่ดญๅฅ—ๅˆฉ
+ feasible = premium_pct > 0.5 # ๆ‰ฃ้™คๆˆๆœฌๅŽๆ˜ฏๅฆๅฏๅฅ—ๅˆฉ
+ elif premium_pct < -0.3:
+ signal = 'DISCOUNT_HIGH' # ๆŠ˜ไปท๏ผšไนฐๅ…ฅETFๆˆ–่ตŽๅ›žๅฅ—ๅˆฉ
+ feasible = premium_pct < -0.5
+ else:
+ signal = 'NORMAL'
+ feasible = False
+
+ return {
+ 'premium_pct': round(premium_pct, 4),
+ 'signal': signal,
+ 'arbitrage_feasible': feasible
+ }
+
+
+def monitor_qdii_premium(pro, qdii_codes: list[str], date: str) -> pd.DataFrame:
+ """
+ ็›‘ๆŽงQDII ETFๆบขไปท็އ๏ผˆๆบขไปท่ฟ‡้ซ˜ๆ—ถๅ‘ๅ‡บ้ข„่ญฆ๏ผ‰ใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ qdii_codes: QDII ETFไปฃ็ ๅˆ—่กจ
+ date: ๆŸฅ่ฏขๆ—ฅๆœŸ 'YYYYMMDD'
+
+ Returns:
+ ๅ„QDII ETF็š„ๆบขไปท็އๅ’Œ้ฃŽ้™ฉ็ญ‰็บง DataFrame
+ """
+ results = []
+ for code in qdii_codes:
+ # ่Žทๅ–ๅธ‚ไปท
+ price_df = pro.fund_daily(ts_code=code, trade_date=date)
+ # ่Žทๅ–ๅ‡€ๅ€ผ
+ nav_df = pro.fund_nav(ts_code=code, end_date=date)
+
+ if not price_df.empty and not nav_df.empty:
+ market_price = price_df.iloc[0]['close']
+ nav = nav_df.iloc[0]['nav']
+ premium_pct = (market_price - nav) / nav * 100
+ risk_level = (
+ 'HIGH' if premium_pct > 5
+ else 'MEDIUM' if premium_pct > 2
+ else 'LOW'
+ )
+ results.append({
+ 'ts_code': code,
+ 'market_price': market_price,
+ 'nav': nav,
+ 'premium_pct': round(premium_pct, 2),
+ 'risk_level': risk_level
+ })
+
+ return pd.DataFrame(results).sort_values('premium_pct', ascending=False)
+```
+
+### 7.4 ่ต„้‡‘ๆตๅ…ฅๆตๅ‡บๅˆ†ๆž
+
+```python
+def etf_fund_flow_analysis(
+ pro,
+ ts_code: str,
+ start_date: str,
+ end_date: str
+) -> pd.DataFrame:
+ """
+ ๅˆ†ๆžETF่ง„ๆจกๅ˜ๅŒ–ไธŽ่ต„้‡‘ๅ‡€ๆตๅ…ฅ/ๆตๅ‡บใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ ts_code: ETFไปฃ็ 
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ
+
+ Returns:
+ ๅŒ…ๅซ่ง„ๆจกๅ˜ๅŒ–ๅ’Œ่ต„้‡‘ๆตๅ‘ไผฐ็ฎ—็š„ DataFrame
+ """
+ nav_df = get_etf_nav(pro, ts_code, start_date, end_date)
+ nav_df['end_date'] = pd.to_datetime(nav_df['end_date'])
+ nav_df = nav_df.sort_values('end_date')
+
+ # ่ง„ๆจก๏ผˆๅ•ไฝไบฟๅ…ƒ๏ผ‰
+ nav_df['scale'] = nav_df['unit_nav'] * nav_df['fund_share'] / 1e8
+
+ # ๅ‡€ๅ€ผๅ˜ๅŠจๅผ•่ตท็š„่ง„ๆจกๅ˜ๅŒ–๏ผˆ่ขซๅŠจ๏ผ‰
+ nav_df['nav_return'] = nav_df['unit_nav'].pct_change()
+ nav_df['passive_change'] = nav_df['scale'].shift(1) * nav_df['nav_return']
+
+ # ่ต„้‡‘ๅ‡€ๆตๅ…ฅ โ‰ˆ ่ง„ๆจกๅ˜ๅŒ– - ๅ‡€ๅ€ผๅธฆๆฅ็š„่ขซๅŠจๅ˜ๅŒ–
+ nav_df['net_flow'] = nav_df['scale'].diff() - nav_df['passive_change']
+
+ # ็ปŸ่ฎกๅŒบ้—ด
+ summary = {
+ 'total_net_flow': nav_df['net_flow'].sum(), # ๅŒบ้—ดๆ€ปๅ‡€ๆตๅ…ฅ๏ผˆไบฟๅ…ƒ๏ผ‰
+ 'avg_daily_flow': nav_df['net_flow'].mean(), # ๆ—ฅๅ‡ๅ‡€ๆตๅ…ฅ
+ 'inflow_days': (nav_df['net_flow'] > 0).sum(), # ๅ‡€ๆตๅ…ฅๅคฉๆ•ฐ
+ 'outflow_days': (nav_df['net_flow'] < 0).sum(), # ๅ‡€ๆตๅ‡บๅคฉๆ•ฐ
+ 'current_scale': nav_df['scale'].iloc[-1] # ๆœ€ๆ–ฐ่ง„ๆจก
+ }
+
+ return nav_df[['end_date', 'unit_nav', 'scale', 'net_flow']], summary
+
+
+def cross_etf_flow_comparison(
+ pro,
+ etf_codes: list[str],
+ start_date: str,
+ end_date: str
+) -> pd.DataFrame:
+ """
+ ๆฏ”่พƒๅŒ็ฑปETF็š„่ต„้‡‘ๆตๅ‘๏ผŒๅˆคๆ–ญ่ต„้‡‘ๅๅฅฝใ€‚
+
+ Args:
+ pro: tushare pro_api ๅฎžไพ‹
+ etf_codes: ๅŒ็ฑปETFไปฃ็ ๅˆ—่กจ
+ start_date: ๅผ€ๅง‹ๆ—ฅๆœŸ
+ end_date: ็ป“ๆŸๆ—ฅๆœŸ
+
+ Returns:
+ ๅ„ETF่ต„้‡‘ๆตๅ‘ๆฑ‡ๆ€ปๅฏนๆฏ” DataFrame
+ """
+ rows = []
+ for code in etf_codes:
+ _, summary = etf_fund_flow_analysis(pro, code, start_date, end_date)
+ summary['ts_code'] = code
+ rows.append(summary)
+ return pd.DataFrame(rows).set_index('ts_code').sort_values('total_net_flow', ascending=False)
+```
+
+---
+
+## 8. ๅธธ่งๅˆ†ๆžๅœบๆ™ฏไธŽๆ็คบ่ฏๆจกๆฟ
+
+### ๅœบๆ™ฏ 1๏ผš็ญ›้€‰ๅŒ็ฑปๆœ€ไผ˜ ETF
+
+```
+ๅˆ†ๆž่ฟฝ่ธช [ๆฒชๆทฑ300/ไธญ่ฏ500/xxx] ๆŒ‡ๆ•ฐ็š„ๆ‰€ๆœ‰ETF๏ผŒ
+็ปดๅบฆ๏ผš่ง„ๆจกใ€่ดน็އใ€่ฟ‘1ๅนด่ทŸ่ธช่ฏฏๅทฎใ€ๆ—ฅๅ‡ๆˆไบค้ขใ€ไนฐๅ–ไปทๅทฎใ€‚
+็ป™ๅ‡บ็ปผๅˆ่ฏ„ๅˆ†ๆŽ’ๅ๏ผŒๅนถๆŽจ่ๆœ€้€‚ๅˆ[้•ฟๆœŸๆŒๆœ‰/ๆณขๆฎตๆ“ไฝœ/ๅคง้ข้…็ฝฎ]็š„ไบงๅ“ใ€‚
+```
+
+### ๅœบๆ™ฏ 2๏ผš่กŒไธš ETF ่ฝฎๅŠจไฟกๅท
+
+```
+ๅŸบไบŽ่ฟ‡ๅŽป [20/60] ๆ—ฅๅŠจ้‡๏ผŒๅœจไปฅไธ‹่กŒไธšETFไธญ้€‰ๅ‡บๅ‰3ๅ๏ผš
+[ๆถˆ่ดนใ€ๅŒป็–—ใ€็ง‘ๆŠ€ใ€่ƒฝๆบใ€้‡‘่žใ€ๅทฅไธšใ€ๆๆ–™ใ€ๅ…ฌ็”จไบ‹ไธš]
+ๅŒๆ—ถๆŽ’้™ค่ฟ‘30ๆ—ฅ่ทŒๅน…่ถ…่ฟ‡15%็š„ETFใ€‚
+```
+
+### ๅœบๆ™ฏ 3๏ผšETF ็ป„ๅˆๅ›žๆต‹
+
+```
+ๆž„ๅปบไปฅไธ‹ETF็ป„ๅˆๅนถๅ›žๆต‹ [2020-01-01 ่‡ณ 2025-12-31]๏ผš
+- ๆฒชๆทฑ300ETF 40%
+- ไธญ่ฏ500ETF 20%
+- ๅ›ฝๅ€บETF 30%
+- ้ป„้‡‘ETF 10%
+ๆฏๅญฃๅบฆๅ†ๅนณ่กก๏ผŒ่ฎก็ฎ—ๅนดๅŒ–ๆ”ถ็›Šใ€ๅคๆ™ฎๆฏ”็އใ€ๆœ€ๅคงๅ›žๆ’คใ€ไธŽๆฒชๆทฑ300็š„็›ธๅ…ณๆ€งใ€‚
+```
+
+### ๅœบๆ™ฏ 4๏ผšQDII ๆบขไปท้ฃŽ้™ฉ็›‘ๆŽง
+
+```
+็›‘ๆŽงไปฅไธ‹QDII ETF็š„ๅฎžๆ—ถๆŠ˜ๆบขไปท็އ๏ผš[็บณๆŒ‡ETF 159632ใ€ๆ ‡ๆ™ฎ500 513500ใ€ๆ—ฅ็ป225 513880]
+ๆบขไปท > 3% ๆ—ถๅ‘ๅ‡บ้ข„่ญฆ๏ผŒๅปบ่ฎฎ็ญ‰ๅพ…ๅ›ž่ฝๅŽๅ†ๅ…ฅๅœบใ€‚
+```
+
+---
+
+## 9. ๅ…ณ้”ฎๆณจๆ„ไบ‹้กน
+
+1. **ๅœ็‰Œๆ›ฟไปฃ**๏ผš่กŒไธšETFไธญ่‹ฅๆœ‰ๅคง้‡ๅœ็‰Œ่‚ก๏ผŒIOPV ๅคฑ็œŸ๏ผŒๆŠ˜ๆบขไปทๅ‚่€ƒๆ„ไน‰ไธ‹้™
+2. **QDII ้ขๅบฆ**๏ผš้ขๅบฆ่€—ๅฐฝๆ—ถ็”ณ่ดญๆš‚ๅœ๏ผŒๆบขไปทๅฏ่ƒฝๆŒ็ปญๆ•ฐๆœˆ๏ผŒไธ้€‚ๅˆๅฅ—ๅˆฉ
+3. **ๆˆๅˆ†่‚ก่ฐƒๆ•ด**๏ผšๆฏๅนด6ๆœˆ/12ๆœˆๆŒ‡ๆ•ฐ่ฐƒๆ•ดๅ‰ๅŽ1~2ๅ‘จไผšๆœ‰ไธ€ๅฎš่ง„ๅพ‹ๆ€งๆœบไผš
+4. **ๆ ๆ†ETF็ฆๆญข้•ฟๆŒ**๏ผš่กฐๅ‡ๆ•ˆๅบ”ๅœจ้œ‡่กๅธ‚ไธญๆžๅ…ถๆ˜Žๆ˜พ๏ผŒไธฅๆ ผ้™ๅˆถๆŒๆœ‰ๅ‘จๆœŸ
+5. **่ดงๅธETF**๏ผšๆœฌ่ดจๆ˜ฏ่ดงๅธๅธ‚ๅœบๅŸบ้‡‘๏ผŒไธŽๆ™ฎ้€šETF้€ป่พ‘ไธๅŒ๏ผŒๆตๅŠจๆ€ง็ฎก็†ๅทฅๅ…ท่€Œ้žๆŠ•่ต„ๅทฅๅ…ท
+6. **ๆตๅŠจๆ€งๅทฎ็š„ETF**๏ผšๅคง้ขไบคๆ˜“ๅบ”ๆ‹†ๅˆ†ๅคšๆ—ฅ๏ผŒ้ฟๅ…่‡ชๆˆ‘ๅ†ฒๅ‡ป
+7. **็จŽๅŠกๅค„็†**๏ผšETF ๅŸบ้‡‘ๅˆ†็บขไธญ่‹ฅๅซ่‚กๆฏๆ”ถ็›Š๏ผŒๅพ็จŽ่ง„ๅˆ™ไธŽ่ต„ๆœฌๅˆฉๅพ—ไธๅŒ๏ผŒๆณจๆ„ๅŒบๅˆ†
diff --git a/agent/src/skills/event-driven/SKILL.md b/agent/src/skills/event-driven/SKILL.md
new file mode 100644
index 000000000..302a804b5
--- /dev/null
+++ b/agent/src/skills/event-driven/SKILL.md
@@ -0,0 +1,179 @@
+---
+name: event-driven
+description: Event-driven strategy based on sentiment-scored signals from news, announcements, and macro events. The LLM acts as the NLP engine, and event data follows a CSV schema.
+---
+# Event-Driven Strategy
+
+## Purpose
+
+Uses event information such as news, announcements, and macro policy updates. The LLM analyzes sentiment and impact magnitude to generate event-driven trading signals. Event data is managed in CSV format, and technical signals are combined with event signals through weighted aggregation to form the final trading decision.
+
+## Workflow
+
+1. **Data collection**: use the `read_url` tool to fetch the full text of news and announcements
+2. **LLM analysis**: the LLM reads the news and scores it from `-1.0` to `1.0` with a standardized prompt (extremely bearish to extremely bullish)
+3. **Generate the event CSV**: write data in the `date,event_type,score,source,summary` schema
+4. **Signal aggregation**: `signal_engine.py` reads the event CSV, applies time decay, and combines it with the technical signal
+
+**Key principle: the event CSV is the data layer, and `signal_engine.py` is the logic layer. Keep them decoupled.**
+
+## Event CSV Schema
+
+```csv
+date,event_type,score,source,summary
+2024-01-15,earnings,0.8,read_url,Q4 revenue beat expectations by 30%
+2024-01-20,macro,-0.5,read_url,Central bank raised rates by 25bp
+2024-02-01,policy,0.3,read_url,New-energy subsidies extended
+2024-02-10,sentiment,-0.7,read_url,Bearish sentiment surged on social media
+2024-03-05,insider,0.4,read_url,CEO bought 5 million shares
+```
+
+Field descriptions:
+
+| Field | Type | Description |
+|------|------|------|
+| date | str (`YYYY-MM-DD`) | Date when the event became knowable (publication date, not occurrence date. If released after market close โ†’ use the next trading day) |
+| event_type | str | `earnings / macro / policy / sentiment / insider / technical_break` |
+| score | float | `-1.0 ~ 1.0` (standardized LLM score) |
+| source | str | Data-source tag (such as `read_url`) |
+| summary | str | Event summary (one sentence, no commas) |
+
+## Event Type Details
+
+| Type | Meaning | Typical Impact | Duration |
+|------|------|---------|---------|
+| earnings | Earnings release | Short-term shock | 1-5 days |
+| macro | Macro data / central-bank policy | Medium-term impact | 5-20 days |
+| policy | Industry policy / regulatory change | Long-term impact | 20-60 days |
+| sentiment | Market sentiment / public opinion | Short-term shock | 1-3 days |
+| insider | Insider trading / block trade | Medium-term signal | 5-10 days |
+| technical_break | Break of a key technical level | Short-term catalyst | 1-5 days |
+
+## Signal Aggregation
+
+### Time Decay of Event Signals
+
+Event impact decays exponentially over time:
+
+```python
+import numpy as np
+import pandas as pd
+
+
+def compute_event_signal(event_df: pd.DataFrame, dates: pd.DatetimeIndex,
+ decay_lambda: float = 0.1,
+ min_score_threshold: float = 0.2,
+ event_lookback: int = 30) -> pd.Series:
+ """Compute an event-driven signal with time decay.
+
+ Args:
+ event_df: DataFrame loaded from the event CSV, with date/event_type/score/source/summary columns.
+ dates: Backtest date sequence (DatetimeIndex).
+ decay_lambda: Decay coefficient. Higher values decay faster. Default 0.1 (decays to ~37% in about 10 days).
+ min_score_threshold: Minimum score threshold. Events with |score| below this value are ignored.
+ event_lookback: Event lookback window in days. Events older than this are excluded.
+
+ Returns:
+ Event signal Series aligned with dates, with value range [-1.0, 1.0].
+ """
+ event_df = event_df[event_df["score"].abs() >= min_score_threshold].copy()
+ event_df["date"] = pd.to_datetime(event_df["date"])
+
+ signal = pd.Series(0.0, index=dates)
+
+ for trade_date in dates:
+ # Only consider events published on or before trade_date (avoid look-ahead)
+ mask = (event_df["date"] <= trade_date) & \
+ (event_df["date"] >= trade_date - pd.Timedelta(days=event_lookback))
+ relevant = event_df[mask]
+
+ if relevant.empty:
+ continue
+
+ days_since = (trade_date - relevant["date"]).dt.days.values
+ scores = relevant["score"].values
+ # Exponential decay: score * exp(-lambda * days)
+ decayed = scores * np.exp(-decay_lambda * days_since)
+ # Sum multiple events and clip to [-1, 1]
+ signal[trade_date] = np.clip(decayed.sum(), -1.0, 1.0)
+
+ return signal
+```
+
+### Weighted Combination of Technical and Event Signals
+
+```python
+def combine_signals(tech_signal: pd.Series, event_signal: pd.Series,
+ alpha: float = 0.6) -> pd.Series:
+ """Combine technical and event signals with weights.
+
+ Args:
+ tech_signal: Technical signal, range [-1.0, 1.0].
+ event_signal: Event-driven signal, range [-1.0, 1.0].
+ alpha: Weight of the technical signal, default 0.6 (technical primary, event secondary).
+
+ Returns:
+ Combined signal, range [-1.0, 1.0].
+ """
+ combined = alpha * tech_signal + (1 - alpha) * event_signal
+ return combined.clip(-1.0, 1.0)
+```
+
+Default `alpha = 0.6`: technical signal 60%, event signal 40%.
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| alpha | 0.6 | Weight of the technical signal (`1-alpha` is the event weight) |
+| decay_lambda | 0.1 | Decay coefficient (higher values decay faster; `0.1` โ‰ˆ decays to 37% in 10 days) |
+| event_lookback | 30 | Event lookback window in days (older events are excluded) |
+| min_score_threshold | 0.2 | Minimum score threshold (events with |score| below this are ignored) |
+
+## LLM Scoring Prompt Template
+
+After fetching news with `read_url`, use the following standardized prompt to keep scoring consistent:
+
+```
+You are a financial event analyst. Read the following news / announcement and score its impact on the stock price.
+
+Scoring scale:
+- 1.0: extremely bullish (for example, earnings far above expectations, major favorable policy)
+- 0.5: moderately bullish (for example, earnings slightly above expectations, favorable industry news)
+- 0.2: mildly bullish
+- 0.0: neutral (no obvious impact)
+- -0.2: mildly bearish
+- -0.5: moderately bearish (for example, earnings below expectations, tighter industry regulation)
+- -1.0: extremely bearish (for example, accounting fraud, major violations, black-swan event)
+
+Score strictly on the scale above. Output one number only. Do not explain.
+
+News content:
+{news_content}
+
+Score:
+```
+
+## Common Pitfalls
+
+1. **Look-ahead bias**: the `date` in the event CSV must be the "knowable date" โ€” announcements released after market close should use the next trading day, not the same day. In backtests, strictly enforce `event_date <= trade_date`
+2. **Duplicate event scoring**: the same event may appear from multiple news sources and generate multiple rows. Deduplicate by `(date, event_type)` or average the scores
+3. **Sentiment drift**: the LLM scoring standard can drift as the prompt or model version changes. Fix the prompt template and recalibrate regularly
+4. **Event sparsity**: most trading days have no events, so the event signal is 0 and the final signal is mainly driven by technicals. This is normal; do not fabricate data just to "fill gaps"
+5. **Event data in backtests**: historical backtests require a fully prepared historical event CSV in advance; you cannot fetch it in real time. It is recommended to maintain separate event files per instrument
+6. **Commas in the `summary` field**: a common reason for CSV parsing errors โ€” avoid commas in `summary`, or read with `pd.read_csv(quoting=csv.QUOTE_ALL)`
+7. **Decay parameter sensitivity**: overly large `decay_lambda` makes event impact disappear too quickly, while overly small values keep stale events active for too long. In theory, different event types should use different decay profiles, but the default simplifies all of them to `0.1`
+
+## Dependencies
+
+```bash
+pip install pandas numpy
+```
+
+No additional dependencies. LLM analysis is handled by the Agent itself, and the `read_url` tool is built in.
+
+## Signal Convention
+
+- Pure event signal: `[-1.0, 1.0]` (computed from event score + time decay)
+- Combined signal: `alpha * tech_signal + (1 - alpha) * event_signal`, clipped to `[-1.0, 1.0]`
+- When no event exists, `event_signal = 0`, so the combined signal collapses to the pure technical signal
diff --git a/agent/src/skills/execution-model/SKILL.md b/agent/src/skills/execution-model/SKILL.md
new file mode 100644
index 000000000..abaec0e75
--- /dev/null
+++ b/agent/src/skills/execution-model/SKILL.md
@@ -0,0 +1,348 @@
+---
+name: execution-model
+description: Trade execution modeling (backtest only) โ€” slippage formulas (linear / square-root impact), VWAP/TWAP execution logic, market-impact cost estimation, and execution-assumption configuration.
+---
+
+# Trade Execution Modeling
+
+## Overview
+
+Provide more realistic execution assumptions for backtests, including slippage models, market-impact estimation, and execution-algorithm principles. This skill is for backtest simulation only and does not involve live order execution.
+
+## Slippage Models
+
+### Why Slippage Models Are Needed
+
+```
+Idealized backtest: filled at the close, zero slippage
+Real world:
+1. The order book has a bid-ask spread
+2. Large orders push prices (market impact)
+3. Execution is delayed (there is latency from signal to fill)
+
+No slippage model -> overly optimistic backtest -> losses in live trading
+```
+
+### 1. Fixed Slippage Model
+
+```python
+def fixed_slippage(price: float, direction: int, bps: float = 5.0) -> float:
+ """
+ Args:
+ price: Original price
+ direction: 1=buy, -1=sell
+ bps: Slippage in basis points (1bp = 0.01%), default 5bp
+ Returns:
+ Execution price after slippage
+ """
+ slippage = price * bps / 10000
+ return price + direction * slippage
+```
+
+**Reference fixed-slippage assumptions by market:**
+
+| Market | Instrument | Suggested Slippage (bps) | Notes |
+|------|------|-------------|------|
+| China A-share large cap | CSI 300 constituents | 3-5 | Good liquidity |
+| China A-share small cap | CSI 1000 constituents | 5-10 | Average liquidity |
+| China micro-cap | market cap < 5 billion RMB | 10-30 | Poor liquidity |
+| US large cap | AAPL / MSFT | 1-3 | Excellent liquidity |
+| Hong Kong stocks | Hang Seng constituents | 5-10 | Less liquid than A / US |
+| BTC spot | BTC-USDT | 2-5 | Good OKX liquidity |
+| ETH spot | ETH-USDT | 3-8 | Slightly worse than BTC |
+| Small altcoins | other `-USDT` pairs | 10-50 | Liquidity varies widely |
+
+### 2. Linear Impact Model
+
+```python
+def linear_impact(price: float, direction: int,
+ volume_traded: float, adv: float,
+ impact_coeff: float = 0.1) -> float:
+ """
+ Linear market impact: impact โˆ traded volume / ADV
+
+ Args:
+ price: Original price
+ direction: 1=buy, -1=sell
+ volume_traded: Trade size (shares or notional)
+ adv: Average Daily Volume
+ impact_coeff: Impact coefficient, usually 0.05-0.2
+ Returns:
+ Execution price after impact
+ """
+ participation_rate = volume_traded / adv
+ impact = impact_coeff * participation_rate
+ return price * (1 + direction * impact)
+```
+
+**Reference impact coefficients:**
+
+| Market | impact_coeff | Notes |
+|------|-------------|------|
+| China A-share large cap | 0.05-0.10 | 10% daily price-limit system |
+| China A-share small cap | 0.10-0.20 | Liquidity premium |
+| US equities | 0.03-0.08 | Market-maker buffering |
+| Crypto | 0.05-0.15 | 24h trading is dispersed |
+
+### 3. Square-Root Impact Model (Almgren-Chriss)
+
+```python
+import numpy as np
+
+def sqrt_impact(price: float, direction: int,
+ volume_traded: float, adv: float,
+ volatility: float, eta: float = 0.5) -> float:
+ """
+ Square-root market impact (more accepted in academia):
+ impact = ฮท ร— ฯƒ ร— sqrt(V/ADV)
+
+ Args:
+ price: Original price
+ direction: 1=buy, -1=sell
+ volume_traded: Trade size
+ adv: Average daily volume
+ volatility: Daily volatility (standard deviation)
+ eta: Impact elasticity coefficient, usually 0.3-0.8
+ Returns:
+ Execution price after impact
+ """
+ participation = volume_traded / adv
+ impact = eta * volatility * np.sqrt(participation)
+ return price * (1 + direction * impact)
+```
+
+**Advantages of the square-root model**:
+- Strongest empirical support (standard in financial literature)
+- Marginal impact declines for larger orders (intuitive)
+- Parameters can be estimated from historical data
+
+### Slippage Model Selection Decision Tree
+
+```
+Backtest capital vs instrument ADV:
+โ”œโ”€โ”€ Capital < 0.5% of ADV -> fixed slippage (5bps) is enough
+โ”œโ”€โ”€ Capital 0.5-5% -> linear impact model
+โ””โ”€โ”€ Capital > 5% -> square-root impact model (required)
+```
+
+## Execution Algorithm Principles
+
+### VWAP (Volume Weighted Average Price)
+
+```
+Goal: execute at the day's volume-weighted average price
+
+VWAP = ฮฃ(Price_i ร— Volume_i) / ฮฃ(Volume_i)
+
+Execution logic:
+1. Forecast the intraday volume profile (typically U-shaped)
+2. Split the order according to the predicted profile
+3. Execute proportionally in each time slice
+
+Typical China A-share VWAP volume profile (U-shaped):
+09:30-10:00 15% (active open)
+10:00-11:30 25% (normal morning session)
+13:00-14:00 15% (weak afternoon session)
+14:00-14:30 15% (afternoon recovery)
+14:30-15:00 30% (active close)
+
+VWAP in backtests:
+- Daily backtest: use the VWAP field directly as the fill price
+- Minute backtest: simulate VWAP order slicing
+```
+
+### TWAP (Time Weighted Average Price)
+
+```
+Goal: execute evenly over a specified time window
+
+TWAP = simple time-sliced execution
+
+Execution logic:
+1. Define an execution window (for example 09:30-11:30)
+2. Divide it into N time buckets
+3. Execute total_size / N in each bucket
+
+Pros and cons:
++ Simple, no need to forecast volume
+- Easier to cause impact during low-volume periods
+- Less adaptive than VWAP
+```
+
+### Simulating Execution Delay in Backtests
+
+```python
+def delayed_execution(signal_series: pd.Series, delay_bars: int = 1) -> pd.Series:
+ """
+ Simulate the delay from signal generation to execution
+
+ Args:
+ signal_series: Original signal
+ delay_bars: Number of bars to delay, default 1 (T+1 execution)
+ Returns:
+ Delayed signal
+
+ China A-shares: delay_bars=1 (T+1 rule)
+ Crypto: delay_bars=0 or 1
+ """
+ return signal_series.shift(delay_bars)
+```
+
+## Integrated Transaction-Cost Model
+
+### Total Cost Breakdown
+
+```
+Total trading cost = explicit cost + implicit cost
+
+Explicit cost:
+- Commission: China A-shares 2-3 bps, crypto 0.02-0.1%
+- Stamp duty (China A-share sell side): 0.05% (sell orders only)
+- Transfer fee: negligible
+
+Implicit cost:
+- Bid-ask spread: 0.5-5bps
+- Market impact: depends on trade size and liquidity
+- Opportunity cost: loss from not filling at the best price
+```
+
+### Reference Trading Costs by Market
+
+| Cost Item | China A-shares | Hong Kong | US | Crypto (OKX) |
+|--------|-----|------|------|-----------|
+| Commission (one way) | 0.025% | 0.05% | 0 (zero commission) | 0.08% (maker) |
+| Stamp duty | 0.05% (sell) | 0.1% (both sides) | 0 | 0 |
+| Bid-ask spread | 0.03-0.1% | 0.05-0.2% | 0.01-0.05% | 0.01-0.05% |
+| Total one-way | ~0.1% | ~0.2% | ~0.03% | ~0.1% |
+| Total round-trip | ~0.2% | ~0.4% | ~0.06% | ~0.2% |
+
+### Cost Settings in Backtests
+
+```json
+{
+ "commission": 0.001,
+ "comment": "0.1% one-way commission, already includes stamp duty and spread"
+}
+```
+
+**Recommendations**:
+- China A-shares: `commission = 0.001` (conservative, includes all costs)
+- Crypto: `commission = 0.001` (including slippage)
+- Hong Kong / US equities: `commission = 0.001-0.002`
+
+## Backtest Execution Assumptions
+
+### Relevant `config.json` Settings
+
+```json
+{
+ "commission": 0.001,
+ "engine": "daily",
+ "interval": "1D"
+}
+```
+
+### Advanced Execution Assumptions (implemented in `signal_engine.py`)
+
+```python
+class SignalEngine:
+ def __init__(self):
+ # Execution assumption parameters
+ self.execution_delay = 1 # T+1 delay
+ self.slippage_bps = 5 # Fixed 5bps slippage
+ self.max_participation = 0.05 # Maximum participation rate 5%
+
+ def generate(self, data_map):
+ for code, df in data_map.items():
+ # 1. Generate raw signal
+ raw_signal = self._compute_signal(df)
+
+ # 2. Apply execution delay
+ delayed_signal = raw_signal.shift(self.execution_delay)
+
+ # 3. Apply volume filter (do not trade when liquidity is too low)
+ volume_ok = df['volume'] > df['volume'].rolling(20).mean() * 0.3
+ delayed_signal[~volume_ok] = 0
+
+ signals[code] = delayed_signal
+```
+
+## Analysis Framework
+
+### Evaluate the Impact of Transaction Costs
+
+```
+Step 1: Estimate annual turnover
+ Annual turnover = annual trade count ร— 2 (buy + sell) / number of positions
+
+Step 2: Compute annual cost drag
+ Annual cost = annual turnover ร— total one-way cost
+
+Step 3: Evaluate the impact on returns
+ Net return = gross return - annual cost
+
+Example:
+ Annual turnover = 12 (monthly rebalance)
+ One-way cost = 0.1%
+ Annual cost = 12 ร— 0.1% = 1.2%
+ If annualized return is only 5% -> costs eat 24% of returns!
+```
+
+### Sensitivity Analysis for Execution Assumptions
+
+```markdown
+### Backtest Results Under Different Slippage Assumptions
+
+| Slippage (bps) | Annual Return | Sharpe | Max Drawdown |
+|-----------|---------|--------|---------|
+| 0 (ideal) | 15.2% | 1.35 | -18.5% |
+| 3 | 13.8% | 1.22 | -19.0% |
+| 5 | 12.9% | 1.15 | -19.2% |
+| 10 | 11.1% | 0.98 | -19.8% |
+| 20 | 7.5% | 0.65 | -20.5% |
+
+Conclusion: the strategy still has meaningful profitability under 10bps slippage
+```
+
+## Output Format
+
+```markdown
+## Execution Cost Analysis
+
+### Strategy Trading Characteristics
+| Metric | Value |
+|------|-----|
+| Average annual trade count | 48 |
+| Annual turnover | 4.8x |
+| Average holding days | 25 |
+| Average order size | ยฅ50,000 |
+
+### Cost Estimate
+| Cost Item | Per Trade | Annualized |
+|--------|------|------|
+| Commission | 0.025% | 0.24% |
+| Stamp duty | 0.025% | 0.12% |
+| Estimated slippage | 0.03% | 0.29% |
+| **Total** | **0.08%** | **0.65%** |
+
+### Cost Impact
+- Gross return: 12.5%
+- Net return: 11.85%
+- Cost drag: -0.65% (5.2% of gross return)
+- Conclusion: cost impact is manageable
+
+### Optimization Suggestions
+1. Lower turnover (lengthen holding period)
+2. Avoid trading during low-liquidity windows
+3. Use limit orders instead of market orders
+```
+
+## Notes
+
+1. **Backtest only**: this system does not execute live trades; the execution model is used only to improve backtest realism
+2. **Conservative assumptions**: in backtests, it is better to overestimate transaction costs than to underestimate them
+3. **China A-share T+1 rule**: trades cannot be executed on the same day the signal is generated, so execution must be delayed by 1 day
+4. **Price-limit constraints**: when China A-shares are locked at limit-up / limit-down, no fill is possible; those dates should be skipped in backtests
+5. **Volume constraints**: order size should not exceed 5-10% of the dayโ€™s traded volume, otherwise the impact model becomes invalid
+6. **Backtest overfitting**: even with slippage included, the strategy may still overfit; out-of-sample validation matters more
+7. **`commission` in config**: the default `0.001` (0.1%) is a reasonable all-in cost estimate
diff --git a/agent/src/skills/factor-research/SKILL.md b/agent/src/skills/factor-research/SKILL.md
new file mode 100644
index 000000000..409c76d0f
--- /dev/null
+++ b/agent/src/skills/factor-research/SKILL.md
@@ -0,0 +1,139 @@
+---
+name: factor-research
+description: Factor research framework with IC/IR analysis, quantile backtesting, and factor combination. Suitable for cross-sectional factor evaluation across multiple instruments.
+---
+
+# Factor Research Framework
+
+## Purpose
+
+Systematically evaluates the predictive power of single or multiple factors. Uses IC/IR statistical tests and quantile backtests to determine whether a factor has stock-selection power, and to guide factor screening and combination.
+
+Applicable scenarios:
+- Single-factor validity testing (momentum, value, quality, volatility, and more)
+- Determining weights for multi-factor combination
+- Factor decay analysis (IC changes across different holding periods)
+- Comparing factor differences across industries and markets
+
+## Workflow
+
+1. **Calculate factor values**: compute factor exposures for each instrument on the cross-section, and output a factor CSV (`index=date`, `columns=codes`)
+2. **Calculate returns**: compute each instrument's forward N-day return, and output a return CSV (same structure)
+3. **Call the `factor_analysis` tool**: pass in the factor CSV, return CSV, and output directory
+4. **Interpret the results**: judge factor validity based on IC/IR criteria and quantile backtest results
+5. **Factor screening / combination**: keep effective factors and combine them with equal weights or IC-based weights
+
+**Key point**: the rows (dates) and columns (instrument codes) of the factor CSV and return CSV must align exactly. Returns must be forward returns after the factor-observation date (to avoid look-ahead bias).
+
+## `factor_analysis` Tool Parameters
+
+| Parameter | Type | Required | Default | Description |
+|------|------|------|------|------|
+| factor_csv | string | Yes | - | Path to the factor-value CSV |
+| return_csv | string | Yes | - | Path to the return CSV |
+| output_dir | string | Yes | - | Output directory for results |
+| n_groups | integer | No | 5 | Number of quantile groups |
+
+## Output Files
+
+| File | Contents |
+|------|------|
+| ic_series.csv | Daily IC series |
+| ic_summary.json | IC mean, IC standard deviation, IR, proportion of IC > 0 |
+| group_equity.csv | Cumulative equity curves for each quantile group |
+
+## IC/IR Interpretation Standards
+
+| Metric | Threshold | Interpretation |
+|------|------|------|
+| IC mean | > 0.03 | Factor has basic predictive power |
+| IC mean | > 0.05 | Factor has strong predictive power |
+| IC mean | > 0.10 | Unusually high; check for look-ahead bias |
+| IR (IC mean / IC std) | > 0.5 | Factor is stably effective |
+| IR | > 1.0 | Extremely strong, very rare |
+| Proportion of IC > 0 | > 55% | Factor direction is stable |
+| Proportion of IC > 0 | < 50% | Factor direction is unstable and unusable |
+
+Note: negative IC can also be useful (reverse factors). Judge by absolute value, and reverse the signal direction in actual use.
+
+## Quantile Backtest Interpretation
+
+Quantile backtesting sorts instruments into N groups by factor value from low to high (default 5 groups), with equal-weight holding inside each group.
+
+**Criteria**:
+- **Monotonicity**: the final net values from `Group_1` to `Group_N` should show a monotonic rising (or falling) pattern. Better monotonicity means stronger factor discrimination
+- **Long-short spread**: the net-value difference between the highest and lowest group (`long_short_spread`). A larger spread means stronger selection power
+- **Nonlinearity**: if only the top and bottom groups differ materially while the middle groups are similar, the factor may only be effective in the tails
+- **Stability**: group equity curves should be smooth; sharp swings indicate an unstable factor
+
+**Warning signs**:
+- No meaningful difference across group equity curves โ†’ the factor is ineffective
+- Non-monotonic pattern (such as V-shape or inverted V-shape) โ†’ the factor may have a nonlinear relationship and requires further analysis
+- One group's net value falls persistently โ†’ the factor may be usable in reverse
+
+## Factor Combination Methods
+
+When multiple single factors pass validity tests, they should be combined into a composite factor:
+
+### Equal-Weight Combination
+The simplest method: standardize each factor and sum them with equal weights. Suitable when the factor count is small and IC differences are minor.
+
+```
+Composite factor = Z(factor1) + Z(factor2) + ... + Z(factorN)
+where Z() is cross-sectional Z-score standardization
+```
+
+### IC-Weighted Combination
+Assign weights according to historical IC mean. Factors with higher IC receive larger weights.
+
+```
+weight_i = |IC_mean_i| / sum(|IC_mean_j|)
+Composite factor = sum(weight_i * Z(factor_i))
+```
+
+### Orthogonalized Combination
+First orthogonalize the factors with the Schmidt process to remove collinearity, then combine them with equal weights. Suitable when factors are highly correlated with one another.
+
+```
+1. Sort factors by IC from high to low
+2. Keep the first factor unchanged
+3. Regress each later factor on all previous factors and use the residual as the orthogonalized factor
+4. Combine the orthogonalized factors with equal weights
+```
+
+## Common Pitfalls
+
+### Look-Ahead Bias
+- Factor values must be computed using data from day T and earlier, while returns must use data from T+1 to T+N
+- Wrong example: calculate the factor with day T closing price and correlate it with day T return โ†’ artificially inflated IC
+- Correct approach: factor value at day T, return defined as the move from the T close to the T+1 close and beyond
+
+### Skewed Factor Distributions
+- Some factors (such as market cap and turnover) have heavily right-skewed distributions
+- Computing IC directly from raw values makes the result dominated by outliers
+- Solution: apply cross-sectional rank or Z-score standardization before computing IC
+
+### Industry Neutralization
+- Factor values can be highly similar within the same industry, causing stock selection to cluster in a few sectors
+- Solution: perform Z-score standardization within each industry (industry neutralization) to remove industry effects
+- For China A-shares, Shenwan Level-1 industries can be used
+
+### Insufficient Sample Size
+- Each cross-section should contain at least 5 valid instruments to compute meaningful IC
+- Quantile backtests require at least `n_groups` instruments
+- When the universe is too small, IC is noisy and IR becomes unreliable
+
+### Factor Crowding
+- Classic factors (momentum, value) may see diminished excess returns after becoming widely used
+- Regularly inspect the time-series evolution of factor IC to see whether decay is occurring
+- Consider factor innovation or factor timing
+
+### Survivorship Bias
+- Backtesting only on stocks that still survive today will overestimate factor performance
+- Use full-sample data including delisted stocks
+
+## Dependencies
+
+```bash
+pip install pandas numpy scipy
+```
diff --git a/agent/src/skills/financial-statement/SKILL.md b/agent/src/skills/financial-statement/SKILL.md
new file mode 100644
index 000000000..f6e6be35a
--- /dev/null
+++ b/agent/src/skills/financial-statement/SKILL.md
@@ -0,0 +1,261 @@
+---
+name: financial-statement
+description: ่ดขๆŠฅไธ‰่กจๆทฑๅบฆ่งฃ่ฏปโ€”โ€”ไธ‰่กจๅ‹พ็จฝๅ…ณ็ณปใ€็›ˆๅˆฉ่ดจ้‡(ๅบ”่ฎกvs็Žฐ้‡‘ๆต)ๅˆ†ๆžใ€ๆœ้‚ฆๅˆ†่งฃใ€10+่ดขๅŠก้€ ๅ‡็บขๆ——ๆŒ‡ๆ ‡
+---
+
+# ่ดขๆŠฅไธ‰่กจ่งฃ่ฏป
+
+## ๆฆ‚่ฟฐ
+
+ไปŽไธ‰ๅผ ๆŠฅ่กจ๏ผˆๅˆฉๆถฆ่กจใ€่ต„ไบง่ดŸๅ€บ่กจใ€็Žฐ้‡‘ๆต้‡่กจ๏ผ‰็š„ๅ‹พ็จฝๅ…ณ็ณปๅ‡บๅ‘๏ผŒๆทฑๅบฆๅˆ†ๆžไผไธš็›ˆๅˆฉ่ดจ้‡๏ผŒ่ฏ†ๅˆซ่ดขๅŠก้€ ๅ‡ไฟกๅท๏ผŒ็”จๆœ้‚ฆๅˆ†ๆžๅˆ†่งฃ็›ˆๅˆฉ้ฉฑๅŠจๅ› ๅญใ€‚
+
+## ไธ‰่กจๆ ธๅฟƒๆก†ๆžถ
+
+### ๅˆฉๆถฆ่กจ๏ผˆ่ตšไบ†ๅคšๅฐ‘๏ผ‰
+
+```
+่ฅไธšๆ”ถๅ…ฅ
+ - ่ฅไธšๆˆๆœฌ โ†’ ๆฏ›ๅˆฉๆถฆ๏ผˆๆฏ›ๅˆฉ็އ = ๆฏ›ๅˆฉ/่ฅๆ”ถ๏ผ‰
+ - ้”€ๅ”ฎ่ดน็”จ + ็ฎก็†่ดน็”จ + ็ ”ๅ‘่ดน็”จ โ†’ ๆ ธๅฟƒๅˆฉๆถฆ
+ + ๆŠ•่ต„ๆ”ถ็›Š + ๅ…ฌๅ…ไปทๅ€ผๅ˜ๅŠจ โ†’ ่ฅไธšๅˆฉๆถฆ
+ + ่ฅไธšๅค–ๆ”ถๆ”ฏ โ†’ ๅˆฉๆถฆๆ€ป้ข
+ - ๆ‰€ๅพ—็จŽ โ†’ ๅ‡€ๅˆฉๆถฆ
+ - ๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š โ†’ ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆ
+```
+
+**ๅ…ณ้”ฎๆฏ”็އ**๏ผš
+
+| ๆฏ”็އ | ๅ…ฌๅผ | ๅฅๅบท่Œƒๅ›ด | ่ญฆ็คบ |
+|------|------|---------|------|
+| ๆฏ›ๅˆฉ็އ | ๆฏ›ๅˆฉ/่ฅๆ”ถ | ่กŒไธšๅทฎๅผ‚ๅคง | ่ฟž็ปญ3ๅญฃไธ‹ๆป‘ |
+| ๅ‡€ๅˆฉ็އ | ๅ‡€ๅˆฉ/่ฅๆ”ถ | >10%ไผ˜็ง€ | <0%ไธ”ๆ— ๆ”นๅ–„่ถ‹ๅŠฟ |
+| ๆœŸ้—ด่ดน็”จ็އ | (้”€็ฎก็ ”)/่ฅๆ”ถ | <30% | ้€ๅนดไธŠๅ‡ |
+| ๆ‰ฃ้ž/ๅฝ’ๆฏ | ๆ‰ฃ้žๅ‡€ๅˆฉ/ๅฝ’ๆฏๅ‡€ๅˆฉ | >80% | <50%ไพ่ต–้ž็ปๅธธ |
+
+### ่ต„ไบง่ดŸๅ€บ่กจ๏ผˆๆœ‰ไป€ไนˆๅฎถๅบ•๏ผ‰
+
+```
+่ต„ไบง = ่ดŸๅ€บ + ๆ‰€ๆœ‰่€…ๆƒ็›Š
+
+่ต„ไบง็ซฏ้‡็‚น:
+- ่ดงๅธ่ต„้‡‘: ๆ˜ฏๅฆๅ—้™๏ผŸๅญ˜่ดทๅŒ้ซ˜๏ผŸ
+- ๅบ”ๆ”ถ่ดฆๆฌพ: ๅขž้€Ÿๆ˜ฏๅฆ่ถ…่ฟ‡่ฅๆ”ถ๏ผŸ
+- ๅญ˜่ดง: ๆ˜ฏๅฆ็งฏๅŽ‹๏ผŸ่ทŒไปทๅ‡†ๅค‡ๅคŸไธๅคŸ๏ผŸ
+- ๅ•†่ช‰: ๅนถ่ดญๆบขไปท๏ผŒๅ‡ๅ€ผ้ฃŽ้™ฉ
+- ๅœจๅปบๅทฅ็จ‹: ๆ˜ฏๅฆ้•ฟๆœŸไธ่ฝฌๅ›บ๏ผŸ
+
+่ดŸๅ€บ็ซฏ้‡็‚น:
+- ๆœ‰ๆฏ่ดŸๅ€บ: ็ŸญๆœŸๅ€Ÿๆฌพ+้•ฟๆœŸๅ€Ÿๆฌพ+ๅบ”ไป˜ๅ€บๅˆธ
+- ๅบ”ไป˜่ดฆๆฌพ: ๅฏนไธŠๆธธ่ฎฎไปทๆƒ
+- ้ข„ๆ”ถ/ๅˆๅŒ่ดŸๅ€บ: ๅฏนไธ‹ๆธธ่ฎฎไปทๆƒ
+```
+
+**ๅ…ณ้”ฎๆฏ”็އ**๏ผš
+
+| ๆฏ”็އ | ๅ…ฌๅผ | ๅฅๅบท่Œƒๅ›ด |
+|------|------|---------|
+| ่ต„ไบง่ดŸๅ€บ็އ | ่ดŸๅ€บ/่ต„ไบง | 40-60%๏ผˆ้ž้‡‘่ž๏ผ‰ |
+| ๆตๅŠจๆฏ”็އ | ๆตๅŠจ่ต„ไบง/ๆตๅŠจ่ดŸๅ€บ | 1.5-2.5 |
+| ้€ŸๅŠจๆฏ”็އ | (ๆตๅŠจ่ต„ไบง-ๅญ˜่ดง)/ๆตๅŠจ่ดŸๅ€บ | >1.0 |
+| ๆœ‰ๆฏ่ดŸๅ€บ็އ | ๆœ‰ๆฏ่ดŸๅ€บ/ๆ€ป่ต„ไบง | <30% |
+
+### ็Žฐ้‡‘ๆต้‡่กจ๏ผˆ็œŸๆญฃๆ‹ฟๅˆฐๅคšๅฐ‘็Žฐ้‡‘๏ผ‰
+
+```
+็ป่ฅๆดปๅŠจ็Žฐ้‡‘ๆต(CFO): ๅš็”Ÿๆ„่ตš็š„็Žฐ้‡‘
+ๆŠ•่ต„ๆดปๅŠจ็Žฐ้‡‘ๆต(CFI): ไนฐๅ–่ต„ไบง่Šฑ็š„็Žฐ้‡‘
+็ญน่ต„ๆดปๅŠจ็Žฐ้‡‘ๆต(CFF): ๅ€Ÿ้’ฑ/่ฟ˜้’ฑ/ๅˆ†็บข
+
+้ป„้‡‘ๅ…ฌๅผ: ๅ‡€ๅˆฉๆถฆ โ‰ˆ CFO๏ผˆ้•ฟๆœŸๆฅ็œ‹๏ผ‰
+```
+
+**็Žฐ้‡‘ๆต่ดจ้‡็Ÿฉ้˜ต**๏ผš
+
+| CFO | CFI | CFF | ไผไธš็Šถๆ€ |
+|-----|-----|-----|---------|
+| + | - | - | ไผ˜็ง€๏ผˆ่ตš้’ฑใ€ๆŠ•่ต„ใ€่ฟ˜ๅ€บ๏ผ‰ |
+| + | - | + | ๆ‰ฉๅผ ๏ผˆ่ตš้’ฑใ€ๆŠ•่ต„ใ€ๅ€Ÿ้’ฑๅŠ ้€Ÿ๏ผ‰ |
+| + | + | - | ็จณๅฅ๏ผˆ่ตš้’ฑใ€ๅ›žๆ”ถๆŠ•่ต„ใ€่ฟ˜ๅ€บ๏ผ‰ |
+| - | - | + | ๅฑ้™ฉ๏ผˆไบ้’ฑใ€่ฟ˜ๅœจๆŠ•ใ€้ ๅ€Ÿ้’ฑๆดป๏ผ‰ |
+| - | + | + | ๅ›ฐๅขƒ๏ผˆๅ–่ต„ไบง+ๅ€Ÿ้’ฑ็ปดๆŒ๏ผ‰ |
+| - | + | - | ่กฐ้€€๏ผˆๅ–่ต„ไบง่ฟ˜ๅ€บ๏ผ‰ |
+
+## ไธ‰่กจๅ‹พ็จฝๅ…ณ็ณป
+
+### ๆ ธๅฟƒๅ‹พ็จฝ
+
+```
+1. ๅˆฉๆถฆ่กจ โ†’ ่ต„ไบง่ดŸๅ€บ่กจ
+ ๅ‡€ๅˆฉๆถฆ โ†’ ็•™ๅญ˜ๆ”ถ็›Š๏ผˆๆœชๅˆ†้…ๅˆฉๆถฆๅขžๅŠ ๏ผ‰
+ ๅบ”ๆ”ถๅขžๅŠ  = ๆ”ถๅ…ฅ - ๅฎž้™…ๆ”ถๆฌพ
+ ๅญ˜่ดงๅขžๅŠ  = ้‡‡่ดญ - ๅทฒๅ”ฎๆˆๆœฌ
+
+2. ๅˆฉๆถฆ่กจ โ†’ ็Žฐ้‡‘ๆต้‡่กจ
+ ๅ‡€ๅˆฉๆถฆ + ๆŠ˜ๆ—ง - ่ฅ่ฟ่ต„ๆœฌๅขžๅŠ  โ‰ˆ ็ป่ฅ็Žฐ้‡‘ๆต
+ ๅฆ‚ๆžœๅทฎๅผ‚ๅคง โ†’ ็›ˆๅˆฉ่ดจ้‡ๅญ˜็–‘
+
+3. ่ต„ไบง่ดŸๅ€บ่กจ โ†’ ็Žฐ้‡‘ๆต้‡่กจ
+ ๆœŸๆœซ็Žฐ้‡‘ = ๆœŸๅˆ็Žฐ้‡‘ + CFO + CFI + CFF
+ ่ดงๅธ่ต„้‡‘ๅ˜ๅŠจ = ไธ‰ไธช็Žฐ้‡‘ๆตไน‹ๅ’Œ
+```
+
+### ๅ‹พ็จฝ้ชŒ่ฏๅ…ฌๅผ
+
+```python
+# ้ชŒ่ฏ็›ˆๅˆฉ่ดจ้‡
+accrual_ratio = (net_income - cfo) / total_assets
+# accrual_ratio > 10% โ†’ ๅบ”่ฎกๅˆฉๆถฆๅ ๆฏ”้ซ˜๏ผŒ็›ˆๅˆฉ่ดจ้‡ๅทฎ
+
+# ้ชŒ่ฏๆ”ถๅ…ฅ่ดจ้‡
+receivable_growth = accounts_receivable.pct_change()
+revenue_growth = revenue.pct_change()
+# receivable_growth > revenue_growth โ†’ ๆ”ถๅ…ฅ่ดจ้‡ๆถๅŒ–
+
+# ้ชŒ่ฏ่ต„ไบง่ดŸๅ€บ่กจไธŽ็Žฐ้‡‘ๆตไธ€่‡ดๆ€ง
+cash_change = cash_end - cash_begin
+cf_total = cfo + cfi + cff
+# abs(cash_change - cf_total) > 1 โ†’ ๆ•ฐๆฎๆœ‰้—ฎ้ข˜
+```
+
+## ็›ˆๅˆฉ่ดจ้‡ๅˆ†ๆž
+
+### ๅบ”่ฎก vs ็Žฐ้‡‘ๆต
+
+```
+้ซ˜่ดจ้‡็›ˆๅˆฉ:
+- CFO / ๅ‡€ๅˆฉๆถฆ > 1.0๏ผˆ็Žฐ้‡‘ๅˆฉๆถฆๅคงไบŽ็บธ้ขๅˆฉๆถฆ๏ผ‰
+- ๅบ”ๆ”ถ่ดฆๆฌพๅขž้€Ÿ < ่ฅๆ”ถๅขž้€Ÿ
+- ็ป่ฅ็Žฐ้‡‘ๆตๆŒ็ปญไธบๆญฃ
+
+ไฝŽ่ดจ้‡็›ˆๅˆฉ:
+- CFO / ๅ‡€ๅˆฉๆถฆ < 0.5๏ผˆๅคง้‡ๅˆฉๆถฆๆฒกๅ˜ๆˆ็Žฐ้‡‘๏ผ‰
+- ๅบ”ๆ”ถ/่ฅๆ”ถๆฏ”ไพ‹ๆŒ็ปญไธŠๅ‡
+- ไพ่ต–ไธ€ๆฌกๆ€งๆ”ถ็›Š๏ผˆๆŠ•่ต„ๆ”ถ็›Šใ€่ต„ไบงๅค„็ฝฎ๏ผ‰
+```
+
+### ็›ˆๅˆฉ่ดจ้‡่ฏ„ๅˆ†ๅก
+
+| ๆŒ‡ๆ ‡ | ไผ˜็ง€(3ๅˆ†) | ไธ€่ˆฌ(2ๅˆ†) | ๅทฎ(1ๅˆ†) | ๆƒ้‡ |
+|------|----------|----------|---------|------|
+| CFO/ๅ‡€ๅˆฉๆถฆ | >1.2 | 0.8-1.2 | <0.8 | 25% |
+| ๅบ”ๆ”ถๅขž้€Ÿvs่ฅๆ”ถ | ๅบ”ๆ”ถๅขž้€Ÿๆ›ดๆ…ข | ๅŒๆญฅ | ๅบ”ๆ”ถๆ›ดๅฟซ | 20% |
+| ๆ‰ฃ้ž/ๅฝ’ๆฏ | >90% | 70-90% | <70% | 20% |
+| ็ป่ฅ็Žฐ้‡‘ๆต่ถ‹ๅŠฟ | ่ฟž็ปญๅขž้•ฟ | ๆณขๅŠจ | ไธ‹้™ | 20% |
+| ๅญ˜่ดงๅ‘จ่ฝฌ | ๅŠ ๅฟซ | ็จณๅฎš | ๆ”พๆ…ข | 15% |
+
+่ฏ„ๅˆ† โ‰ฅ 2.5 = ็›ˆๅˆฉ่ดจ้‡ไผ˜็ง€
+่ฏ„ๅˆ† 1.5-2.5 = ้œ€่ฆๅ…ณๆณจ
+่ฏ„ๅˆ† < 1.5 = ็›ˆๅˆฉ่ดจ้‡ๅทฎ๏ผŒๅปบ่ฎฎๅ›ž้ฟ
+
+## ่ดขๅŠก้€ ๅ‡็บขๆ——ๆŒ‡ๆ ‡
+
+### 12ไธช็บขๆ——ไฟกๅท
+
+| # | ็บขๆ—— | ๆฃ€ๆต‹ๆ–นๆณ• | ไธฅ้‡ๅบฆ |
+|---|------|---------|--------|
+| 1 | ๅญ˜่ดทๅŒ้ซ˜ | ่ดงๅธ่ต„้‡‘้ซ˜ + ๆœ‰ๆฏ่ดŸๅ€บ้ซ˜๏ผˆๅŒๆ—ถ>่ฅๆ”ถ30%๏ผ‰ | ้ซ˜ |
+| 2 | ๅบ”ๆ”ถๆšดๅขž | ๅบ”ๆ”ถๅขž้€Ÿ > ่ฅๆ”ถๅขž้€Ÿ ร— 1.5๏ผŒๆŒ็ปญ2ๅญฃ+ | ้ซ˜ |
+| 3 | ๅญ˜่ดงๅผ‚ๅธธ | ๅญ˜่ดง/่ฅๆ”ถๆฏ”ไพ‹็ช็„ถไธŠๅ‡>50% | ้ซ˜ |
+| 4 | ็ป่ฅ็Žฐ้‡‘ๆตไธบ่ดŸ | CFO่ฟž็ปญ2ๅนดไธบ่ดŸไฝ†ๅ‡€ๅˆฉๆถฆไธบๆญฃ | ้ซ˜ |
+| 5 | ๅ…ณ่”ไบคๆ˜“ๅ ๆฏ”้ซ˜ | ๅ…ณ่”ไบคๆ˜“/่ฅๆ”ถ > 30% | ้ซ˜ |
+| 6 | ้ข‘็นๆ›ดๆขๅฎก่ฎกๅธˆ | 3ๅนดๅ†…ๆข2ๆฌกๅฎก่ฎกๅธˆ | ไธญ |
+| 7 | ๅœจๅปบๅทฅ็จ‹ไธ่ฝฌๅ›บ | ๅœจๅปบๅทฅ็จ‹/ๅ›บๅฎš่ต„ไบง > 50%๏ผŒๆŒ็ปญ3ๅนด+ | ไธญ |
+| 8 | ้ข„ไป˜่ดฆๆฌพๅผ‚ๅธธ | ้ข„ไป˜/่ฅๆ”ถๆฏ”ไพ‹็ช็„ถไธŠๅ‡ | ไธญ |
+| 9 | ๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Šๅผ‚ๅธธ | ๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š/ๅ‡€ๅˆฉๆถฆๆฏ”ไพ‹ๆณขๅŠจๅคง | ไธญ |
+| 10 | ๅฎก่ฎกๆ„่ง | ้žๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง๏ผˆไฟ็•™/ๅฆๅฎš/ๆ— ๆณ•่กจ็คบ๏ผ‰ | ้ซ˜ |
+| 11 | ่ต„ๆœฌๅŒ–็އ่ฟ‡้ซ˜ | ็ ”ๅ‘่ต„ๆœฌๅŒ–/็ ”ๅ‘ๆ€ป้ข > 50% | ไธญ |
+| 12 | ๅ•†่ช‰ๅ ๆฏ”้ซ˜ | ๅ•†่ช‰/ๅ‡€่ต„ไบง > 30%๏ผŒไธ”ๆ ‡็š„ไธš็ปฉไธ่พพๆ ‡ | ไธญ |
+
+### ็ปผๅˆ้€ ๅ‡ๆฆ‚็އ่ฏ„ไผฐ
+
+```
+็บขๆ——ๆ•ฐ้‡ ้€ ๅ‡ๆฆ‚็އ ๅปบ่ฎฎ
+0-1ไธช ไฝŽ ๆญฃๅธธๆŠ•่ต„
+2-3ไธช ไธญ ๆทฑๅ…ฅ่ฐƒๆŸฅ๏ผŒ่ฐจๆ…ŽๆŠ•่ต„
+4-5ไธช ้ซ˜ ๅปบ่ฎฎๅ›ž้ฟ
+6+ไธช ๆž้ซ˜ ๅผบ็ƒˆๅ›ž้ฟ
+```
+
+## ๆœ้‚ฆๅˆ†ๆž
+
+### ไธ‰็บงๅˆ†่งฃ
+
+```
+ROE = ๅ‡€ๅˆฉ็އ ร— ๆ€ป่ต„ไบงๅ‘จ่ฝฌ็އ ร— ๆƒ็›Šไน˜ๆ•ฐ
+
+ROE = (ๅ‡€ๅˆฉๆถฆ/่ฅๆ”ถ) ร— (่ฅๆ”ถ/ๆ€ป่ต„ไบง) ร— (ๆ€ป่ต„ไบง/ๅ‡€่ต„ไบง)
+ ็›ˆๅˆฉ่ƒฝๅŠ› ่ฟ่ฅๆ•ˆ็އ ๆ ๆ†ๆฐดๅนณ
+```
+
+### ไบ”็บงๅˆ†่งฃ
+
+```
+ROE = ็จŽๅŠก่ดŸๆ‹… ร— ๅˆฉๆฏ่ดŸๆ‹… ร— ่ฅไธšๅˆฉๆถฆ็އ ร— ่ต„ไบงๅ‘จ่ฝฌ็އ ร— ๆƒ็›Šไน˜ๆ•ฐ
+ = (ๅ‡€ๅˆฉ/็จŽๅ‰ๅˆฉๆถฆ) ร— (็จŽๅ‰ๅˆฉๆถฆ/EBIT) ร— (EBIT/่ฅๆ”ถ) ร— (่ฅๆ”ถ/ๆ€ป่ต„ไบง) ร— (ๆ€ป่ต„ไบง/ๅ‡€่ต„ไบง)
+```
+
+### ๆœ้‚ฆๅˆ†ๆžๆจกๆฟ
+
+```markdown
+### ๆœ้‚ฆๅˆ†ๆž: [ๅ…ฌๅธๅ]
+
+| ๆŒ‡ๆ ‡ | 2024 | 2025 | ๅ˜ๅŒ– | ้ฉฑๅŠจๅˆคๆ–ญ |
+|------|------|------|------|---------|
+| ROE | 15.2% | 17.8% | +2.6% | โ†‘ |
+| ๅ‡€ๅˆฉ็އ | 8.5% | 9.2% | +0.7% | ็›ˆๅˆฉๆ”นๅ–„ โœ“ |
+| ่ต„ไบงๅ‘จ่ฝฌ็އ | 0.85 | 0.88 | +0.03 | ๆ•ˆ็އๆๅ‡ โœ“ |
+| ๆƒ็›Šไน˜ๆ•ฐ | 2.10 | 2.20 | +0.10 | ๆ ๆ†ไธŠๅ‡ โš ๏ธ |
+
+็ป“่ฎบ: ROEๆๅ‡ไธป่ฆ็”ฑ็›ˆๅˆฉ่ƒฝๅŠ›ๆ”นๅ–„้ฉฑๅŠจ๏ผŒๆ ๆ†ๅฐๅน…ไธŠๅ‡้œ€ๅ…ณๆณจ
+```
+
+### ่กŒไธšROEๅฏนๆฏ”
+
+| ่กŒไธš | ๅ…ธๅž‹ROE | ้ฉฑๅŠจ็ฑปๅž‹ |
+|------|---------|---------|
+| ็™ฝ้…’ | 25-30% | ้ซ˜ๅ‡€ๅˆฉ็އ้ฉฑๅŠจ๏ผˆๆฏ›ๅˆฉ็އ>90%๏ผ‰ |
+| ้›ถๅ”ฎ | 8-15% | ้ซ˜ๅ‘จ่ฝฌ้ฉฑๅŠจ๏ผˆ่–„ๅˆฉๅคš้”€๏ผ‰ |
+| ้“ถ่กŒ | 10-14% | ้ซ˜ๆ ๆ†้ฉฑๅŠจ๏ผˆๆƒ็›Šไน˜ๆ•ฐ>10x๏ผ‰ |
+| ็ง‘ๆŠ€ | 12-20% | ้ซ˜ๅ‡€ๅˆฉ็އ+ไธญ็ญ‰ๅ‘จ่ฝฌ |
+| ๅœฐไบง | 5-10% | ้ซ˜ๆ ๆ†ไฝ†ๅœจๅŽปๆ ๆ† |
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+```markdown
+## ่ดขๅŠกๅˆ†ๆž: [ๅ…ฌๅธๅ/ไปฃ็ ]
+
+### ไธ‰่กจๆฆ‚่ฆ
+| ๆŒ‡ๆ ‡ | 2023A | 2024A | 2025E | ่ถ‹ๅŠฟ |
+|------|-------|-------|-------|------|
+| ่ฅๆ”ถ(ไบฟ) | ... | ... | ... | ... |
+| ๅ‡€ๅˆฉๆถฆ(ไบฟ) | ... | ... | ... | ... |
+| CFO(ไบฟ) | ... | ... | ... | ... |
+| ่ต„ไบง่ดŸๅ€บ็އ | ... | ... | ... | ... |
+
+### ็›ˆๅˆฉ่ดจ้‡่ฏ„ๅˆ†
+| ๆŒ‡ๆ ‡ | ๅพ—ๅˆ† | ่ฏดๆ˜Ž |
+|------|------|------|
+| CFO/ๅ‡€ๅˆฉๆถฆ | 3/3 | 1.25, ็Žฐ้‡‘ๅ›žๆ”ถไผ˜็ง€ |
+| ... | ... | ... |
+| **็ปผๅˆ** | **2.7/3** | **็›ˆๅˆฉ่ดจ้‡ไผ˜็ง€** |
+
+### ๆœ้‚ฆๅˆ†่งฃ
+[ๆœ้‚ฆๅˆ†ๆž่กจๆ ผ]
+
+### ็บขๆ——ๆฃ€ๆŸฅ
+- [x] ๅญ˜่ดทๅŒ้ซ˜ โ†’ ๅฆ๏ผŒ่ดงๅธ่ต„้‡‘ๅˆ็†
+- [x] ๅบ”ๆ”ถๅผ‚ๅธธ โ†’ ๅฆ๏ผŒๅขž้€ŸไฝŽไบŽ่ฅๆ”ถ
+- [!] ๅ•†่ช‰ๅ ๆฏ” โ†’ 22%๏ผŒๆŽฅ่ฟ‘่ญฆๆˆ’็บฟ๏ผŒ้œ€ๅ…ณๆณจ
+
+### ็ป“่ฎบ
+...
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **่ดขๆŠฅไผš่ฎกๅ‡†ๅˆ™ๅทฎๅผ‚**๏ผšA่‚ก็”จไธญๅ›ฝไผš่ฎกๅ‡†ๅˆ™๏ผŒๆธฏ่‚ก/็พŽ่‚ก็”จIFRS/US GAAP๏ผŒๆฏ”่พƒๆ—ถๆณจๆ„่ฐƒๆ•ด
+2. **ๅญฃๅบฆๆ•ฐๆฎ็œ‹ๅŒๆฏ”้ž็Žฏๆฏ”**๏ผšๅญฃ่Š‚ๆ€งๅ› ็ด ๅคง๏ผˆๅฆ‚ๆถˆ่ดนQ4ๆ—บๅญฃ๏ผ‰๏ผŒ็Žฏๆฏ”ๆณขๅŠจไธไปฃ่กจ่ถ‹ๅŠฟ
+3. **้“ถ่กŒ/ไฟ้™ฉ็‰นๆฎŠ**๏ผšไธ‰่กจ็ป“ๆž„ไธŽไธ€่ˆฌไผไธšๅฎŒๅ…จไธๅŒ๏ผŒไธ้€‚็”จไผ ็ปŸๅ‹พ็จฝๅˆ†ๆž
+4. **้‡่ต„ไบง vs ่ฝป่ต„ไบง**๏ผš่ต„ไบงๅ‘จ่ฝฌ็އ่ทจ่กŒไธšไธๅฏๆฏ”๏ผŒๅŒ่กŒไธšๅ†…ๆฏ”่พƒๆ‰ๆœ‰ๆ„ไน‰
+5. **ๅนถ่กจ่Œƒๅ›ดๅ˜ๅŒ–**๏ผšๆ–ฐๆ”ถ่ดญ/ๅค„็ฝฎๅญๅ…ฌๅธๅฏผ่‡ดๅŒๆฏ”ไธๅฏๆฏ”๏ผŒ้œ€็œ‹ๅฏๆฏ”ๅฃๅพ„
+6. **ๆ•ฐๆฎๆฅๆบ**๏ผštushareๆไพ›A่‚ก่ดขๆŠฅๆ•ฐๆฎ๏ผŒextra_fieldsไธญๅฏ่Žทๅ–pe/pb/roe็ญ‰ๆŒ‡ๆ ‡
diff --git a/agent/src/skills/fund-analysis/SKILL.md b/agent/src/skills/fund-analysis/SKILL.md
new file mode 100644
index 000000000..37d023637
--- /dev/null
+++ b/agent/src/skills/fund-analysis/SKILL.md
@@ -0,0 +1,272 @@
+---
+name: fund-analysis
+description: ๅŸบ้‡‘ๅˆ†ๆžไธŽ็ญ›้€‰๏ผšๆ™จๆ˜Ÿ่ฏ„็บง/ๅคๆ™ฎๆฏ”็އ/ไฟกๆฏๆฏ”็އใ€Sharpe้ฃŽๆ ผ็ฎฑๅˆ†ๆžใ€้ฃŽๆ ผๆผ‚็งปๆฃ€ๆต‹ใ€ๅŸบ้‡‘็ป็†่ฏ„ไปทใ€FOF็ป„ๅˆๆž„ๅปบใ€ETF้€‰ๆ‹ฉ
+---
+
+# ๅŸบ้‡‘ๅˆ†ๆžไธŽ็ญ›้€‰
+
+## ๆฆ‚่ฟฐ
+
+็ณป็ปŸๅŒ–่ฏ„ไผฐๅ…ฌๅ‹ŸๅŸบ้‡‘/็งๅ‹ŸๅŸบ้‡‘/ETF็š„ไธš็ปฉ่กจ็Žฐใ€ๆŠ•่ต„้ฃŽๆ ผๅ’Œ็ฎก็†่ƒฝๅŠ›๏ผŒๅนถๆž„ๅปบFOF๏ผˆๅŸบ้‡‘ไธญ็š„ๅŸบ้‡‘๏ผ‰็ป„ๅˆใ€‚ๆ ธๅฟƒ็›ฎๆ ‡๏ผšๆ‰พๅˆฐ"ๅฏๆŒ็ปญ็š„่ถ…้ขๆ”ถ็›Šๆฅๆบ"่€Œ้ž"่ฟ‡ๅŽปไธš็ปฉๆœ€ๅฅฝ็š„ๅŸบ้‡‘"ใ€‚
+
+้€‚็”จๅœบๆ™ฏ๏ผš
+- ่‚ก็ฅจๅž‹/ๆททๅˆๅž‹ๅŸบ้‡‘็š„ๅคš็ปดๅบฆ็ญ›้€‰
+- ๅŸบ้‡‘็ป็†ๆŠ•่ต„้ฃŽๆ ผ็š„ๅฝ’ๅ› ไธŽๆผ‚็งปๆฃ€ๆต‹
+- ETFไบงๅ“็š„่ทŸ่ธชๆ•ˆ็އ่ฏ„ไผฐ
+- FOF็ป„ๅˆ็š„่ต„ไบง้…็ฝฎไธŽๅ†ๅนณ่กก
+- A่‚กๅ…ฌๅ‹ŸๅŸบ้‡‘็š„็‰นๆœ‰ๅˆ†ๆž็ปดๅบฆ
+
+## ๆ ธๅฟƒๆฆ‚ๅฟต
+
+### ๅŸบ้‡‘็ปฉๆ•ˆๆŒ‡ๆ ‡ไฝ“็ณป
+
+**ๆ”ถ็›Š็ฑปๆŒ‡ๆ ‡**๏ผš
+| ๆŒ‡ๆ ‡ | ๅ…ฌๅผ | ไผ˜็ง€้˜ˆๅ€ผ | ่ฏดๆ˜Ž |
+|------|------|----------|------|
+| ๅนดๅŒ–ๆ”ถ็›Š็އ | (1+ๆ€ปๆ”ถ็›Š)^(1/ๅนดๆ•ฐ)-1 | > 15% (่‚กๅŸบ) | ็ปๅฏนๆ”ถ็›Š |
+| ่ถ…้ขๆ”ถ็›Š(Alpha) | ๅŸบ้‡‘ๆ”ถ็›Š-ๅŸบๅ‡†ๆ”ถ็›Š | > 5%/ๅนด | ็›ธๅฏนๅŸบๅ‡† |
+| ไฟกๆฏๆฏ”็އ(IR) | Alpha / ่ทŸ่ธช่ฏฏๅทฎ | > 0.5 | Alpha็จณๅฎšๆ€ง |
+| ่ƒœ็އ | ่ท‘่ตขๅŸบๅ‡†็š„ๆœˆไปฝๅ ๆฏ” | > 55% | ไธ€่‡ดๆ€ง |
+
+**้ฃŽ้™ฉ็ฑปๆŒ‡ๆ ‡**๏ผš
+| ๆŒ‡ๆ ‡ | ๅ…ฌๅผ | ไผ˜็ง€้˜ˆๅ€ผ | ่ฏดๆ˜Ž |
+|------|------|----------|------|
+| ๆœ€ๅคงๅ›žๆ’ค | max(peak-trough)/peak | < 20% (่‚กๅŸบ) | ๆž็ซฏ้ฃŽ้™ฉ |
+| ๅนดๅŒ–ๆณขๅŠจ็އ | std(ๆ—ฅๆ”ถ็›Š)*โˆš252 | < 20% (่‚กๅŸบ) | ๆ€ป้ฃŽ้™ฉ |
+| ไธ‹่กŒๆ ‡ๅ‡†ๅทฎ | std(่ดŸๆ”ถ็›Š)*โˆš252 | < 13% | ไธ‹่กŒ้ฃŽ้™ฉ |
+| Calmarๆฏ”็އ | ๅนดๅŒ–ๆ”ถ็›Š/ๆœ€ๅคงๅ›žๆ’ค | > 1.0 | ๆ”ถ็›Š/ๆž็ซฏ้ฃŽ้™ฉ |
+
+**้ฃŽ้™ฉ่ฐƒๆ•ดๆŒ‡ๆ ‡**๏ผš
+| ๆŒ‡ๆ ‡ | ๅ…ฌๅผ | ไผ˜็ง€้˜ˆๅ€ผ | ่ฏดๆ˜Ž |
+|------|------|----------|------|
+| ๅคๆ™ฎๆฏ”็އ | (Rp-Rf)/ฯƒp | > 1.0 | ๆฏๅ•ไฝ้ฃŽ้™ฉๆ”ถ็›Š |
+| Sortinoๆฏ”็އ | (Rp-Rf)/ไธ‹่กŒฯƒ | > 1.5 | ๆ›ดๅ…ณๆณจไธ‹่กŒ้ฃŽ้™ฉ |
+| Treynorๆฏ”็އ | (Rp-Rf)/ฮฒ | > 10% | ๆฏๅ•ไฝ็ณป็ปŸ้ฃŽ้™ฉๆ”ถ็›Š |
+
+```
+ๆ— ้ฃŽ้™ฉๅˆฉ็އ(Rf): A่‚ก้€šๅธธ็”จ1ๅนดๆœŸๅ›ฝๅ€บๆ”ถ็›Š็އ, ็บฆ2.0-2.5%
+ๅŸบๅ‡†: ่‚ก็ฅจๅž‹โ†’ๆฒชๆทฑ300; ๆททๅˆๅž‹โ†’ๆฒชๆทฑ300ร—60%+ไธญ่ฏๅ…จๅ€บร—40%
+่ฏ„ไผฐๅ‘จๆœŸ: ่‡ณๅฐ‘3ๅนด๏ผŒๆŽจ่5ๅนด๏ผˆ่ฆ†็›–ๅฎŒๆ•ด็‰›็†Šๅ‘จๆœŸ๏ผ‰
+```
+
+### Sharpe้ฃŽๆ ผ็ฎฑๅˆ†ๆž
+
+**ไนๅฎซๆ ผ้ฃŽๆ ผๅˆ†็ฑป**๏ผš
+```
+ ไปทๅ€ผ ๅนณ่กก ๆˆ้•ฟ
+ๅคง็›˜ ๅคง็›˜ไปทๅ€ผ ๅคง็›˜ๅนณ่กก ๅคง็›˜ๆˆ้•ฟ
+ไธญ็›˜ ไธญ็›˜ไปทๅ€ผ ไธญ็›˜ๅนณ่กก ไธญ็›˜ๆˆ้•ฟ
+ๅฐ็›˜ ๅฐ็›˜ไปทๅ€ผ ๅฐ็›˜ๅนณ่กก ๅฐ็›˜ๆˆ้•ฟ
+
+ๅˆคๅฎšๆ–นๆณ•๏ผˆๅ›žๅฝ’ๆณ•๏ผ‰:
+ Ri = ฮฑ + ฮฒ1ร—ๅคง็›˜ไปทๅ€ผ + ฮฒ2ร—ๅคง็›˜ๆˆ้•ฟ + ฮฒ3ร—ๅฐ็›˜ไปทๅ€ผ + ฮฒ4ร—ๅฐ็›˜ๆˆ้•ฟ + ฮต
+
+ ้ฃŽๆ ผๆŒ‡ๆ•ฐ้€‰ๆ‹ฉ(A่‚ก):
+ ๅคง็›˜ไปทๅ€ผ: ๆฒชๆทฑ300ไปทๅ€ผ (399346)
+ ๅคง็›˜ๆˆ้•ฟ: ๆฒชๆทฑ300ๆˆ้•ฟ (399370)
+ ๅฐ็›˜ไปทๅ€ผ: ไธญ่ฏ500ไปทๅ€ผ (930782)
+ ๅฐ็›˜ๆˆ้•ฟ: ไธญ่ฏ500ๆˆ้•ฟ (930783)
+
+ ฮฒๆƒ้‡ๆœ€ๅคง็š„ๆ–นๅ‘ = ๅŸบ้‡‘ไธป้ฃŽๆ ผ
+ Rยฒ > 0.85 โ†’ ้ฃŽๆ ผๆ˜Ž็กฎ; Rยฒ < 0.70 โ†’ ้ฃŽๆ ผๆจก็ณŠ/ๆ‹ฉๆ—ถๅž‹
+```
+
+### ้ฃŽๆ ผๆผ‚็งปๆฃ€ๆต‹
+
+```
+ๆ–นๆณ•: ๆปšๅŠจ็ช—ๅฃๅ›žๅฝ’ (็ช—ๅฃ=60ไธชไบคๆ˜“ๆ—ฅ, ๆญฅ้•ฟ=20ๆ—ฅ)
+
+ๆผ‚็งปๅˆคๅฎš:
+ 1. ่ฎก็ฎ—ๆฏไธช็ช—ๅฃ็š„้ฃŽๆ ผๆƒ้‡ฮฒ
+ 2. ็›ธ้‚ป็ช—ๅฃฮฒๅ˜ๅŒ–:
+ |ฮ”ฮฒ| > 0.2 โ†’ ๆ˜พ่‘—ๆผ‚็งป
+ ๆœ€ๅคงฮฒๅฏนๅบ”็š„้ฃŽๆ ผๅ˜ไบ† โ†’ ้ฃŽๆ ผๅˆ‡ๆข
+
+ 3. Rยฒๆ—ถๅบ:
+ RยฒๆŒ็ปญไธ‹้™ โ†’ ๅŸบ้‡‘็ป็†ๅœจๅšๆ‹ฉๆ—ถ/ๅ็ฆปๅŸบๅ‡†
+ Rยฒๅฟฝ้ซ˜ๅฟฝไฝŽ โ†’ ้ฃŽๆ ผไธ็จณๅฎš
+
+ๆผ‚็งป็ฑปๅž‹:
+ - ๆธ่ฟ›ๆผ‚็งป: ๅคง็›˜โ†’ไธญ็›˜โ†’ๅฐ็›˜ (้€šๅธธๆ˜ฏ่ง„ๆจกๅขž้•ฟๅŽ่ขซ่ฟซไธ‹ๆฒ‰)
+ - ็ชๅ˜ๆผ‚็งป: ไปทๅ€ผ็ช็„ถๅˆ‡ๆขๆˆ้•ฟ (ๅฏ่ƒฝๆขไบ†ๅŸบ้‡‘็ป็†)
+ - ๅ‘จๆœŸๆผ‚็งป: ็‰›ๅธ‚่ฟฝๆˆ้•ฟใ€็†Šๅธ‚่ฝฌไปทๅ€ผ (ๆ‹ฉๆ—ถๅž‹)
+
+A่‚กๅธธ่งๆผ‚็งป:
+ 2020-2021: ๅคง้‡"ไปทๅ€ผๅž‹"ๅŸบ้‡‘ๅฎž้™…ๆŒไป“่ฝฌๅ‘ๆ–ฐ่ƒฝๆบ/ๅŠๅฏผไฝ“(ๆˆ้•ฟ)
+ ๆฃ€ๆต‹: ็”ณๆŠฅ้ฃŽๆ ผ=ๅคง็›˜ไปทๅ€ผ, ๅฎž้™…ๅ›žๅฝ’้ฃŽๆ ผ=ๅคง็›˜ๆˆ้•ฟ โ†’ ๅไธๅ‰ฏๅฎž
+```
+
+## ๅˆ†ๆžๆก†ๆžถ
+
+### 1. ๅŸบ้‡‘็ญ›้€‰ๆก†ๆžถ๏ผˆไบ”ๆญฅๆณ•๏ผ‰
+
+```
+Step 1: ็กฌๆŒ‡ๆ ‡่ฟ‡ๆปค
+ โ–ก ๆˆ็ซ‹ โ‰ฅ 3ๅนด
+ โ–ก ่ง„ๆจก 2-100ไบฟ๏ผˆๅคชๅฐๆธ…็›˜้ฃŽ้™ฉ, ๅคชๅคง่ˆนๅคง้šพๆމๅคด๏ผ‰
+ โ–ก ๅŒไธ€ๅŸบ้‡‘็ป็†็ฎก็† โ‰ฅ 2ๅนด
+ โ–ก ๆœบๆž„ๆŒๆœ‰ๆฏ”ไพ‹ > 20%๏ผˆๆœบๆž„่ฎคๅฏ๏ผ‰
+
+Step 2: ็ปฉๆ•ˆๆŽ’ๅบ
+ โ–ก ่ฟ‘3ๅนดๅนดๅŒ–ๆ”ถ็›Š > ๅŒ็ฑปไธญไฝๆ•ฐ
+ โ–ก ่ฟ‘3ๅนดๅคๆ™ฎๆฏ”็އ > ๅŒ็ฑปๅ‰30%
+ โ–ก ๆœ€ๅคงๅ›žๆ’ค < ๅŒ็ฑปไธญไฝๆ•ฐ
+ โ–ก ไฟกๆฏๆฏ”็އ > 0.3
+
+Step 3: ้ฃŽๆ ผ้ชŒ่ฏ
+ โ–ก ๅฎž้™…้ฃŽๆ ผไธŽ็”ณๆŠฅ้ฃŽๆ ผไธ€่‡ด๏ผˆRยฒ > 0.8๏ผ‰
+ โ–ก ้ฃŽๆ ผๆผ‚็งปๅพ—ๅˆ† < 0.3๏ผˆ็จณๅฎš๏ผ‰
+ โ–ก ่ฟ‘1ๅนด้ฃŽๆ ผไธŽ่ฟ‘3ๅนดไธ€่‡ด
+
+Step 4: ๅŸบ้‡‘็ป็†่ฏ„ไปท
+ โ–ก ็ฎก็†ๅŒ็ฑปๅŸบ้‡‘ โ‰ฅ 3ๅนด
+ โ–ก ๅކๅฒไปป่ŒๅŸบ้‡‘ๆ”ถ็›Šๅ‡ไธบๆญฃ่ถ…้ข
+ โ–ก ๆขๆ‰‹็އๅˆ็†๏ผˆๅนดๅŒ–200-400%ไธบๆญฃๅธธ, >600%่ฟ‡้ซ˜๏ผ‰
+ โ–ก ๆŒ่‚ก้›†ไธญๅบฆ้€‚ไธญ๏ผˆๅ‰10ๅคงๆŒไป“40-70%๏ผ‰
+
+Step 5: ่ดน็”จๆฃ€ๆŸฅ
+ โ–ก ็ฎก็†่ดน โ‰ค 1.5%๏ผˆไธปๅŠจ่‚กๅŸบ๏ผ‰
+ โ–ก ๆ— ๆƒฉ็ฝšๆ€ง่ตŽๅ›ž่ดน๏ผˆๆŒๆœ‰>1ๅนดๅ…่ตŽๅ›ž่ดน๏ผ‰
+ โ–ก ๆ‰˜็ฎก่ดน โ‰ค 0.25%
+```
+
+### 2. ๅŸบ้‡‘็ป็†่ฏ„ไปท
+
+```
+ๆ ธๅฟƒ็ปดๅบฆ:
+ 1. ่ถ…้ขๆ”ถ็›Š่ƒฝๅŠ›:
+ ไปป่ŒๅนดๅŒ–Alpha (็›ธๅฏนๅŸบๅ‡†)
+ ็‰›ๅธ‚Alpha vs ็†Šๅธ‚Alpha (ไผ˜็ง€็ป็†็†Šๅธ‚ไนŸๆœ‰่ถ…้ข)
+
+ 2. ้ฃŽ้™ฉๆŽงๅˆถ:
+ ๆœ€ๅคงๅ›žๆ’ค vs ๅŸบๅ‡†ๆœ€ๅคงๅ›žๆ’ค
+ ไธ‹่กŒๆ•่Žทๆฏ”็އ < 0.8 โ†’ ๅ–„ไบŽๆŽงๅˆถไธ‹่กŒ้ฃŽ้™ฉ
+ ไธŠ่กŒๆ•่Žทๆฏ”็އ > 1.0 โ†’ ไธŠๆถจ่กŒๆƒ…ไธๆމ้˜Ÿ
+
+ 3. ้€‰่‚ก่ƒฝๅŠ› vs ๆ‹ฉๆ—ถ่ƒฝๅŠ› (T-Mๆจกๅž‹):
+ Ri-Rf = ฮฑ + ฮฒ(Rm-Rf) + ฮณ(Rm-Rf)ยฒ + ฮต
+ ฮฑ > 0 โ†’ ๆœ‰้€‰่‚ก่ƒฝๅŠ›
+ ฮณ > 0 โ†’ ๆœ‰ๆ‹ฉๆ—ถ่ƒฝๅŠ›
+ A่‚กๅฎž่ฏ: ๅคง้ƒจๅˆ†ๅŸบ้‡‘็ป็†ๆœ‰้€‰่‚ก่ƒฝๅŠ›, ๅฐ‘ๆœ‰ๆ‹ฉๆ—ถ่ƒฝๅŠ›
+
+ 4. ๆŒไป“็‰นๅพ:
+ ๆขๆ‰‹็އ: <200%=้•ฟๆœŸๆŒๆœ‰; 200-400%=้€‚ไธญ; >600%=้ข‘็นไบคๆ˜“
+ ๆŒ่‚ก้›†ไธญๅบฆ: ๅ‰10ๅคงๅ ๆฏ”, >70%=้›†ไธญ, <40%=ๅˆ†ๆ•ฃ
+ ่กŒไธšๅ็ฆปๅบฆ: ็›ธๅฏนๅŸบๅ‡†็š„่กŒไธš่ถ…/ไฝŽ้…ๅน…ๅบฆ
+
+็ป็†ๆ›ดๆขไฟกๅท:
+ ๅŸบ้‡‘็ป็†ๅ˜ๆ›ดๅ…ฌๅ‘Šๆ—ฅ่ตท:
+ - ๆ–ฐ็ป็†ๆฅ่‡ชๅŒไธ€ๅ…ฌๅธใ€้ฃŽๆ ผ็›ธ่ฟ‘ โ†’ ๅฝฑๅ“ๅฐ
+ - ๆ–ฐ็ป็†้ฃŽๆ ผๆˆช็„ถไธๅŒ โ†’ ้‡ๆ–ฐ่ฏ„ไผฐ, ่ง‚ๅฏŸ1-2ไธชๅญฃๅบฆๅ†ๅ†ณๅฎš
+ - ๆ˜Žๆ˜Ÿ็ป็†็ฆป่Œ โ†’ ่€ƒ่™‘่ตŽๅ›ž, ่ทŸ่ธชๆ–ฐ็ป็†็š„ๅ…ถไป–ไบงๅ“
+```
+
+### 3. ETF้€‰ๆ‹ฉๆก†ๆžถ
+
+```
+ๆ ธๅฟƒๆ ‡ๅ‡†:
+ 1. ่ทŸ่ธช่ฏฏๅทฎ: ๅนดๅŒ– < 2% (่ขซๅŠจ) / < 4% (ๅขžๅผบ)
+ ่ฎก็ฎ—: std(ETFๆ—ฅๆ”ถ็›Š - ๆŒ‡ๆ•ฐๆ—ฅๆ”ถ็›Š) ร— โˆš252
+
+ 2. ่ดน็އๆฏ”่พƒ:
+ ็ฎก็†่ดน: 0.15%(ๆœ€ไฝŽ) ~ 0.50%(ๆ™ฎ้€š)
+ ๆ‰˜็ฎก่ดน: 0.05% ~ 0.10%
+ ็ปผๅˆ่ดน็އๅทฎ 0.2%/ๅนด๏ผŒ10ๅนด็ดฏ็งฏๅทฎๅผ‚ๆ˜พ่‘—
+
+ 3. ๆตๅŠจๆ€ง:
+ ๆ—ฅๅ‡ๆˆไบค้ข > 1ไบฟ โ†’ ๆตๅŠจๆ€งๅ……่ถณ
+ ไนฐๅ–ไปทๅทฎ < 0.1% โ†’ ไบคๆ˜“ๆˆๆœฌไฝŽ
+ ๆŠ˜ๆบขไปท็އ < 0.3% โ†’ ๅฎšไปทๅ‡†็กฎ
+
+ 4. ่ง„ๆจก:
+ > 10ไบฟ โ†’ ๆธ…็›˜้ฃŽ้™ฉๆžไฝŽ
+ 2-10ไบฟ โ†’ ๅฏๆŽฅๅ—
+ < 2ไบฟ โ†’ ้œ€ๅ…ณๆณจๆ˜ฏๅฆๆœ‰ๆธ…็›˜้ฃŽ้™ฉ
+
+A่‚กไธปๆตๅฎฝๅŸบETFๅฏนๆฏ”(็คบไพ‹):
+ | ETF | ไปฃ็  | ่ดน็އ | ่ง„ๆจก | ่ทŸ่ธช่ฏฏๅทฎ |
+ |-----|------|------|------|----------|
+ | ๅŽๆณฐๆŸ็‘žๆฒชๆทฑ300ETF | 510300 | 0.20% | 800ไบฟ+ | 0.5% |
+ | ๆ˜“ๆ–น่พพๆฒชๆทฑ300ETF | 510310 | 0.20% | 200ไบฟ+ | 0.6% |
+ | ๅŽๅคไธŠ่ฏ50ETF | 510050 | 0.50% | 500ไบฟ+ | 0.4% |
+ | ๅ—ๆ–นไธญ่ฏ500ETF | 510500 | 0.20% | 400ไบฟ+ | 0.8% |
+```
+
+### 4. FOF็ป„ๅˆๆž„ๅปบ
+
+```
+Step 1: ๅคง็ฑป่ต„ไบง้…็ฝฎ
+ ไฟๅฎˆๅž‹: ่‚กๅŸบ30% + ๅ€บๅŸบ50% + ่ดงๅŸบ20%
+ ๅ‡่กกๅž‹: ่‚กๅŸบ50% + ๅ€บๅŸบ30% + ๅ•†ๅ“10% + ่ดงๅŸบ10%
+ ๆฟ€่ฟ›ๅž‹: ่‚กๅŸบ70% + ๅ€บๅŸบ20% + ๅ•†ๅ“10%
+
+Step 2: ็ป†ๅˆ†่ต„ไบง้€‰ๅŸบ
+ ๆฏไธช่ต„ไบง็ฑปๅˆซ้€‰ 2-3 ๅชๅŸบ้‡‘๏ผˆๅˆ†ๆ•ฃ็ฎก็†ไบบ้ฃŽ้™ฉ๏ผ‰
+
+ ่‚ก็ฅจ้ƒจๅˆ†:
+ ๅคง็›˜ไปทๅ€ผ 1ๅช + ๅคง็›˜ๆˆ้•ฟ 1ๅช + ไธญๅฐ็›˜ 1ๅช
+ ้ฃŽๆ ผไบ’่กฅ, ้™ไฝŽๅ•ไธ€้ฃŽๆ ผๆšด้œฒ
+
+ ๅ€บๅˆธ้ƒจๅˆ†:
+ ็บฏๅ€บ 1ๅช + ่ฝฌๅ€บๅขžๅผบ 1ๅช
+ ๆŽงๅˆถไฟก็”จ้ฃŽ้™ฉ, ไธ่ฟฝ้ซ˜ๆ”ถ็›Šๅ€บ
+
+Step 3: ๅ†ๅนณ่กก่ง„ๅˆ™
+ ๅฎšๆœŸ: ๆฏๅญฃๅบฆๆฃ€ๆŸฅไธ€ๆฌกๅ็ฆปๅบฆ
+ ่งฆๅ‘: ไปปไธ€่ต„ไบงๅ็ฆป็›ฎๆ ‡ๆƒ้‡ > 5% โ†’ ๅ†ๅนณ่กก
+
+ ๅ†ๅนณ่กกๆ–นๆณ•:
+ a. ๅ–ๅ‡บ่ถ…้…ใ€ไนฐๅ…ฅไฝŽ้… โ†’ ไบคๆ˜“ๆˆๆœฌ้ซ˜
+ b. ๅขž้‡่ต„้‡‘ไนฐๅ…ฅไฝŽ้… โ†’ ๅ‡ๅฐ‘ไบคๆ˜“้ข‘็އ
+ c. ๅˆ†็บขๅ†ๆŠ•่ต„ๅˆฐไฝŽ้… โ†’ ๆœ€ไผ˜ๆ–นๆกˆ
+
+Step 4: ็›‘ๆŽง้ข„่ญฆ
+ โ–ก ๅญฃๅบฆ็ปฉๆ•ˆๅ›ž้กพ: ไปปไธ€ๅŸบ้‡‘่ฟž็ปญ2ไธชๅญฃๅบฆๆŽ’ๅๅŽ30% โ†’ ่ง‚ๅฏŸ
+ โ–ก ๅŸบ้‡‘็ป็†ๅ˜ๆ›ด โ†’ ้‡ๆ–ฐ่ฏ„ไผฐ
+ โ–ก ้ฃŽๆ ผๆผ‚็งป โ†’ ๆ›ฟๆขไธบ้ฃŽๆ ผ็จณๅฎš็š„ๅŒ็ฑปๅŸบ้‡‘
+ โ–ก ่ง„ๆจกๅผ‚ๅธธ(ๆšดๅขž/ๆšด้™) โ†’ ๅ…ณๆณจๆตๅŠจๆ€งๅ†ฒๅ‡ป
+```
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+ๅŸบ้‡‘ๅˆ†ๆžๆŠฅๅ‘Š๏ผš
+```
+=== ๅŸบ้‡‘ๆฆ‚ๅ†ต ===
+ๅ็งฐ: ๆ˜“ๆ–น่พพ่“็ญน็ฒพ้€‰ๆททๅˆ (005827)
+็ป็†: ๅผ ๅค ไปป่Œ: 2018-01-05 (8ๅนด)
+่ง„ๆจก: 450ไบฟ ้ฃŽๆ ผ: ๅคง็›˜ๆˆ้•ฟ
+
+=== ็ปฉๆ•ˆ่ฏ„ไผฐ (่ฟ‘3ๅนด) ===
+ๅนดๅŒ–ๆ”ถ็›Š: 12.5% (ๅŒ็ฑปๅ‰25%)
+ๅคๆ™ฎๆฏ”็އ: 0.85 (ๅŒ็ฑปๅ‰20%)
+ๆœ€ๅคงๅ›žๆ’ค: -28.3% (ๅŒ็ฑปไธญไฝ-25.6%)
+ไฟกๆฏๆฏ”็އ: 0.62
+Calmarๆฏ”็އ: 0.44
+่ƒœ็އ: 58% (ๆœˆๅบฆ่ท‘่ตขๅŸบๅ‡†)
+
+=== ้ฃŽๆ ผๅˆ†ๆž ===
+ๅ›žๅฝ’้ฃŽๆ ผ: ๅคง็›˜ๆˆ้•ฟ (Rยฒ=0.91)
+้ฃŽๆ ผๆผ‚็งป: ไฝŽ (่ฟ‘1ๅนดไธŽ่ฟ‘3ๅนดไธ€่‡ด)
+ๆŒ่‚ก้›†ไธญๅบฆ: ๅ‰10ๅคงๆŒไป“68%
+ๆขๆ‰‹็އ: ๅนดๅŒ–150% (ไฝŽๆขๆ‰‹, ้•ฟๆœŸๆŒๆœ‰)
+
+=== ่ฏ„ไปท ===
+ไผ˜ๅŠฟ: ้€‰่‚ก่ƒฝๅŠ›ๅผบ(Alphaๆ˜พ่‘—), ้ฃŽๆ ผ็จณๅฎš
+ๅŠฃๅŠฟ: ่ง„ๆจก่ฟ‡ๅคงๅฏ่ƒฝๅฝฑๅ“ๆ“ไฝœ็ตๆดปๆ€ง, ๅ›žๆ’คๆŽงๅˆถไธ€่ˆฌ
+ๅปบ่ฎฎ: ้€‚ๅˆไฝœไธบFOF็ป„ๅˆไธญ็š„ๅคง็›˜ๆˆ้•ฟ้…็ฝฎ, ไป“ไฝ15-20%
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **ๅนธๅญ˜่€…ๅๅทฎ**๏ผšๅŸบ้‡‘ๆ•ฐๆฎๅบ“ไธญๅทฒๆธ…็›˜ๅŸบ้‡‘ๅฏ่ƒฝ่ขซๆŽ’้™ค๏ผŒๅฏผ่‡ดๅކๅฒๅนณๅ‡ไธš็ปฉๅ้ซ˜
+2. **่ง„ๆจกๆ•ˆๅบ”**๏ผšๅŸบ้‡‘่ง„ๆจก่ถ…่ฟ‡200ไบฟๅŽ๏ผŒๅฐ็›˜่‚ก็ญ–็•ฅ้šพไปฅๆ‰ง่กŒ๏ผŒAlphaๅฏ่ƒฝไธ‹้™
+3. **ๅญฃๆœซๆ•ˆๅบ”**๏ผš้ƒจๅˆ†ๅŸบ้‡‘ๅœจๅญฃๆœซๅญ˜ๅœจ"็ฒ‰้ฅฐๆฉฑ็ช—"่กŒไธบ๏ผˆๅญฃๆœซไนฐๅ…ฅ้‡ไป“่‚กๆ‹‰ๅ‡€ๅ€ผ๏ผ‰๏ผŒ้œ€็”จๆœˆไธญๆ•ฐๆฎไบคๅ‰้ชŒ่ฏ
+4. **็”ณ่ตŽๅ†ฒๅ‡ป**๏ผšๅคง่ง„ๆจก็”ณ่ดญ/่ตŽๅ›žๅฝฑๅ“ๅŸบ้‡‘ๆ”ถ็›Š๏ผˆๆ‘Š่–„/่ขซ่ฟซๅ–ๅ‡บ๏ผ‰๏ผŒๅ…ณๆณจไปฝ้ขๅ˜ๅŠจ
+5. **่ดน็އๆ‹–็ดฏ**๏ผš้•ฟๆœŸๆฅ็œ‹๏ผŒ่ดน็އๅทฎๅผ‚ๅฏน็ดฏ่ฎกๆ”ถ็›Šๅฝฑๅ“ๆ˜พ่‘—ใ€‚10ๅนดๆœŸ 1.5% vs 0.5% ่ดน็އๅทฎ โ†’ ็บฆ10%็ดฏ่ฎกๆ”ถ็›Šๅทฎ
+6. **ๆŒ‡ๆ•ฐๅขžๅผบ็œŸๅ‡**๏ผš้ƒจๅˆ†"ๆŒ‡ๆ•ฐๅขžๅผบ"ๅฎž้™…ๅ็ฆปๅŸบๅ‡†ๆžๅคง๏ผˆ่ทŸ่ธช่ฏฏๅทฎ>8%๏ผ‰๏ผŒๅฎž่ดจๆ˜ฏไธปๅŠจ็ฎก็†ๆŠซ็€ๅขžๅผบๅค–่กฃ
+
+## ไพ่ต–
+
+```bash
+pip install pandas numpy scipy
+```
diff --git a/agent/src/skills/fundamental-filter/SKILL.md b/agent/src/skills/fundamental-filter/SKILL.md
new file mode 100644
index 000000000..7eb5ad36f
--- /dev/null
+++ b/agent/src/skills/fundamental-filter/SKILL.md
@@ -0,0 +1,126 @@
+---
+name: fundamental-filter
+description: Fundamental factor screening โ€” filter stocks by PE/PB/ROE and other financial metrics for value or growth selection. Supports A-shares (via tushare extra_fields) and HK/US stocks (via yfinance Ticker info).
+---
+# Fundamental Factor Screening
+
+## Purpose
+
+Filter stocks using fundamental financial data (PE/PB/ROE, etc.) to build value or growth screen signals for backtesting. Supports multiple markets with different data sources.
+
+## Market Support
+
+| Market | Data Source | Method | Supported Metrics |
+|--------|-----------|--------|------------------|
+| A-shares | tushare `daily_basic` | `extra_fields` in config.json | pe, pb, pe_ttm, ps_ttm, dv_ttm, total_mv, circ_mv, roe |
+| US stocks | yfinance `Ticker.info` | Direct API call | trailingPE, forwardPE, priceToBook, returnOnEquity, marketCap, dividendYield |
+| HK stocks | yfinance `Ticker.info` | Direct API call | trailingPE, priceToBook, returnOnEquity, marketCap |
+
+## Signal Logic
+
+### Value Filter (Default)
+
+1. PE < pe_max AND PE > 0 (exclude loss-making stocks)
+2. PB < pb_max
+3. ROE > roe_min
+4. All conditions met โ†’ long (1), otherwise โ†’ flat (0)
+
+### Growth Filter (Optional)
+
+1. PE_TTM within reasonable range (0 < PE_TTM < pe_ttm_max)
+2. ROE > roe_min (profitability floor)
+3. Market cap > mv_min (exclude micro-caps)
+
+## A-Share Usage (tushare)
+
+### config.json
+
+```json
+{
+ "source": "tushare",
+ "codes": ["000001.SZ", "600036.SH", "000858.SZ"],
+ "start_date": "2023-01-01",
+ "end_date": "2024-12-31",
+ "extra_fields": ["pe", "pb", "pe_ttm", "roe", "total_mv"],
+ "initial_cash": 1000000,
+ "commission": 0.001
+}
+```
+
+The `extra_fields` columns are automatically merged into the daily DataFrame by the DataLoader.
+
+## HK/US Stock Usage (yfinance)
+
+For HK/US stocks, fundamental data is not available as daily time-series via the backtest loader. Instead, use `yfinance` Ticker info for point-in-time screening:
+
+```python
+import yfinance as yf
+
+def screen_us_stocks(tickers, criteria):
+ """Screen US/HK stocks by fundamental criteria."""
+ passed = []
+ for symbol in tickers:
+ info = yf.Ticker(symbol).info
+ pe = info.get("trailingPE")
+ pb = info.get("priceToBook")
+ roe = info.get("returnOnEquity") # Decimal (e.g., 0.25 = 25%)
+ mcap = info.get("marketCap")
+
+ if pe is None or pb is None or roe is None:
+ continue # Skip stocks with missing data
+
+ if (0 < pe < criteria["pe_max"]
+ and pb < criteria["pb_max"]
+ and roe > criteria["roe_min"]
+ and (mcap or 0) > criteria.get("mcap_min", 0)):
+ passed.append({
+ "symbol": symbol,
+ "pe": pe,
+ "pb": pb,
+ "roe": round(roe * 100, 1), # Convert to percentage
+ "mcap": mcap,
+ })
+
+ return passed
+
+# Example: screen S&P 500 components
+criteria = {"pe_max": 20, "pb_max": 3.0, "roe_min": 0.08, "mcap_min": 10_000_000_000}
+results = screen_us_stocks(["AAPL", "MSFT", "JNJ", "JPM", "XOM"], criteria)
+```
+
+### HK Stock Screening
+
+```python
+# HK stocks use the same yfinance interface
+hk_tickers = ["0700.HK", "9988.HK", "1810.HK", "2318.HK", "0005.HK"]
+results = screen_us_stocks(hk_tickers, criteria) # Same function works
+```
+
+## Parameters
+
+| Parameter | Default | Description |
+|-----------|---------|-------------|
+| pe_max | 20.0 | PE ceiling (exclude overvalued) |
+| pb_max | 3.0 | PB ceiling |
+| roe_min | 8.0 | ROE floor (%), exclude low-profitability |
+| pe_min | 0.0 | PE floor (exclude loss-making stocks) |
+| mcap_min | 0 | Market cap floor (for US/HK, in USD) |
+
+## Common Pitfalls
+
+- `extra_fields` columns may contain NaN (new listings, ST stocks) โ€” must `fillna` or `dropna`
+- Negative PE means loss-making โ€” always filter with `pe > 0`
+- ROE units differ: tushare uses percentage (e.g., 15 = 15%), yfinance uses decimal (e.g., 0.15 = 15%)
+- For portfolio strategies: N stocks passing the screen each get weight 1/N
+- yfinance `Ticker.info` is a point-in-time snapshot, not historical time-series โ€” cannot directly use for daily rebalancing backtests on US/HK stocks
+- For US/HK daily fundamental backtests, consider using the screening results as a stock universe, then applying technical signals within that universe
+
+## Dependencies
+
+```bash
+pip install pandas numpy yfinance
+```
+
+## Signal Convention
+
+- `1/N` = selected for long (N = number of stocks passing the screen), `0` = not selected
diff --git a/agent/src/skills/fundamental-filter/example_signal_engine.py b/agent/src/skills/fundamental-filter/example_signal_engine.py
new file mode 100644
index 000000000..b7a48a5cd
--- /dev/null
+++ b/agent/src/skills/fundamental-filter/example_signal_engine.py
@@ -0,0 +1,127 @@
+"""ๅŸบๆœฌ้ขๅ› ๅญ่ฟ‡ๆปค้€‰่‚กไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽ PE/PB/ROE ็ญ‰่ดขๅŠกๆŒ‡ๆ ‡ๅฏน A ่‚ก่ฟ›่กŒไปทๅ€ผ็ญ›้€‰๏ผŒ
+ๆปก่ถณๅ…จ้ƒจๆกไปถ็š„่‚ก็ฅจ็ญ‰ๆƒๅšๅคšใ€‚ไป…้™ tushare ๆ•ฐๆฎๆบ๏ผˆ้œ€ extra_fields๏ผ‰ใ€‚
+"""
+
+from typing import Dict, List
+
+import numpy as np
+import pandas as pd
+
+
+class SignalEngine:
+ """ๅŸบๆœฌ้ขๅ› ๅญ่ฟ‡ๆปคไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ้€š่ฟ‡ PE/PB/ROE ไธ‰้‡่ฟ‡ๆปค็ญ›้€‰ไปทๅ€ผ่‚ก๏ผŒๆปก่ถณๆกไปถ็š„่‚ก็ฅจ็ญ‰ๆƒๅˆ†้…ใ€‚
+
+ Attributes:
+ pe_min: PE ไธ‹้™๏ผˆๆŽ’้™คไบๆŸ่‚ก๏ผ‰ใ€‚
+ pe_max: PE ไธŠ้™๏ผˆๆŽ’้™ค้ซ˜ไผฐๅ€ผ๏ผ‰ใ€‚
+ pb_max: PB ไธŠ้™ใ€‚
+ roe_min: ROE ไธ‹้™๏ผˆ%๏ผ‰ใ€‚
+
+ Example:
+ >>> engine = SignalEngine(pe_max=15, pb_max=2, roe_min=10)
+ >>> signals = engine.generate({"000001.SZ": df1, "600036.SH": df2})
+ """
+
+ def __init__(
+ self,
+ pe_min: float = 0.0,
+ pe_max: float = 20.0,
+ pb_max: float = 3.0,
+ roe_min: float = 8.0,
+ ):
+ """ๅˆๅง‹ๅŒ–ๅŸบๆœฌ้ข่ฟ‡ๆปคๅผ•ๆ“Žใ€‚
+
+ Args:
+ pe_min: PE ไธ‹้™๏ผˆๆŽ’้™คไบๆŸ่‚ก๏ผŒ้ป˜่ฎค 0๏ผ‰ใ€‚
+ pe_max: PE ไธŠ้™๏ผˆๆŽ’้™ค้ซ˜ไผฐๅ€ผ๏ผ‰ใ€‚
+ pb_max: PB ไธŠ้™ใ€‚
+ roe_min: ROE ไธ‹้™๏ผˆ%๏ผ‰ใ€‚
+ """
+ self.pe_min = pe_min
+ self.pe_max = pe_max
+ self.pb_max = pb_max
+ self.roe_min = roe_min
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๅŸบไบŽๅŸบๆœฌ้ขๆกไปถ่ฟ‡ๆปค๏ผŒๅฏนๆปก่ถณๆกไปถ็š„่‚ก็ฅจ็ญ‰ๆƒๅšๅคšใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close/volume ๅˆ—ๅŠ pe/pb/roe ็ญ‰ extra_fieldsใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„ใ€‚
+ """
+ codes = list(data_map.keys())
+ if not codes:
+ return {}
+
+ # ่Žทๅ–ๆ‰€ๆœ‰ๆ—ฅๆœŸ็š„ๅนถ้›†
+ all_dates = sorted(set().union(*(df.index for df in data_map.values())))
+ date_index = pd.DatetimeIndex(all_dates)
+
+ # ้€ๆ—ฅๅˆคๆ–ญๆฏๅช่‚ก็ฅจๆ˜ฏๅฆๆปก่ถณๆกไปถ
+ signals: Dict[str, pd.Series] = {code: pd.Series(0.0, index=date_index) for code in codes}
+
+ for dt in date_index:
+ qualified: List[str] = []
+ for code, df in data_map.items():
+ if dt not in df.index:
+ continue
+ row = df.loc[dt]
+ pe = row.get("pe", np.nan)
+ pb = row.get("pb", np.nan)
+ roe = row.get("roe", np.nan)
+
+ if pd.isna(pe) or pd.isna(pb) or pd.isna(roe):
+ continue
+ if self.pe_min < pe <= self.pe_max and pb <= self.pb_max and roe >= self.roe_min:
+ qualified.append(code)
+
+ if qualified:
+ weight = 1.0 / len(qualified)
+ for code in qualified:
+ signals[code].at[dt] = weight
+
+ # ๅฏน้ฝๅˆฐๅ„่‡ชๅŽŸๅง‹็ดขๅผ•
+ result = {}
+ for code, df in data_map.items():
+ result[code] = signals[code].reindex(df.index).fillna(0.0)
+ return result
+
+
+if __name__ == "__main__":
+ # ๆผ”็คบ๏ผš็”จ้šๆœบๆ•ฐๆฎๆจกๆ‹ŸๅŸบๆœฌ้ข่ฟ‡ๆปค
+ np.random.seed(42)
+ dates = pd.bdate_range("2024-01-01", "2024-12-31")
+
+ def _mock_stock(pe_range, pb_range, roe_range):
+ n = len(dates)
+ return pd.DataFrame({
+ "open": np.random.uniform(10, 50, n),
+ "high": np.random.uniform(10, 50, n),
+ "low": np.random.uniform(10, 50, n),
+ "close": np.random.uniform(10, 50, n),
+ "volume": np.random.uniform(1e6, 1e7, n),
+ "pe": np.random.uniform(*pe_range, n),
+ "pb": np.random.uniform(*pb_range, n),
+ "roe": np.random.uniform(*roe_range, n),
+ }, index=dates)
+
+ data_map = {
+ "000001.SZ": _mock_stock((5, 15), (0.5, 2.0), (8, 20)), # ๅคงๆฆ‚็އๅ…ฅ้€‰
+ "600036.SH": _mock_stock((3, 10), (0.3, 1.5), (12, 25)), # ้ซ˜ๆฆ‚็އๅ…ฅ้€‰
+ "000858.SZ": _mock_stock((30, 80), (5, 15), (5, 10)), # ๅคงๆฆ‚็އไธๅ…ฅ้€‰
+ }
+
+ engine = SignalEngine(pe_max=20, pb_max=3, roe_min=8)
+ signals = engine.generate(data_map)
+
+ for code in data_map:
+ sig = signals[code]
+ active_days = (sig > 0).sum()
+ print(f"{code}: {active_days}/{len(sig)} days in portfolio")
diff --git a/agent/src/skills/geopolitical-risk/SKILL.md b/agent/src/skills/geopolitical-risk/SKILL.md
new file mode 100644
index 000000000..8960d8f04
--- /dev/null
+++ b/agent/src/skills/geopolitical-risk/SKILL.md
@@ -0,0 +1,915 @@
+---
+name: geopolitical-risk
+description: "Geopolitical risk analysis: quantify crisis signals, identify precursors, and build event-driven strategies for war, sanctions, and supply disruption scenarios."
+---
+
+# Geopolitical Risk Analysis
+
+## Overview
+
+Quantify geopolitical risk signals, identify crisis precursors, and build event-driven strategies that convert narratives such as "war / conflict / sanctions / supply disruption" into actionable multi-asset allocation decisions.
+
+---
+
+## Core Analytical Framework
+
+### 1. Risk Layering Model
+
+```
+Layer 1: Structural risk (long-lasting, slow-moving)
+ โ””โ”€โ”€ Great-power rivalry, alliance structures, nuclear deterrence balance
+
+Layer 2: Situational risk (cyclical escalation, monthly / quarterly scale)
+ โ””โ”€โ”€ Military exercises, election cycles, sanctions escalation, diplomatic friction
+
+Layer 3: Event risk (sudden shocks, daily / hourly scale)
+ โ””โ”€โ”€ Military action, assassination, sanctions announcements, nuclear tests
+```
+
+### 2. Five Dimensions of Risk Assessment
+
+| Dimension | Description | Quantitative Proxy |
+|------|------|-------------|
+| **Intensity** | Severity of conflict / sanctions | GPR Index percentile |
+| **Persistence** | Expected duration of the crisis | Futures curve contango / backwardation |
+| **Transmission** | Spillover into supply chains / finance | CDS spread widening, VIX jump magnitude |
+| **Predictability** | Whether the event is already priced in | Option implied volatility skew |
+| **Reversibility** | Whether the situation can be resolved through negotiation | Speed of reversal in news sentiment |
+
+---
+
+## Monitoring the Six Major Global Geopolitical Hotspots
+
+### 1. Strait of Hormuz โ€” Oil Transport Chokepoint
+
+**Strategic significance**
+- Roughly 20% of global oil supply (about 17 million barrels/day) and 20% of LNG passes through it
+- Iran has the ability to disrupt the strait through mines, naval assets, and shore-based missiles
+- It is the only export route for Gulf states such as Saudi Arabia, the UAE, Kuwait, and Iraq
+
+**Risk triggers**
+- Escalation in U.S.-Iran tensions, such as failed nuclear talks or tighter sanctions
+- Tankers being seized or attacked
+- Iranian blockade drills during military exercises
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- Brent-WTI spread widening (signal of regional supply stress)
+- Persian Gulf tanker insurance rates (Lloyd's H&M quotes)
+- UAE dirham NDF (depreciates under stress)
+- Israeli shekel volatility
+- Relative strength of VanEck Oil Services ETF (OIH) vs XLE
+```
+
+**Asset impact direction**
+- Bullish: crude oil, LNG, shipping stocks (BDRY/FRO), defense stocks (LMT/RTX)
+- Bearish: airlines (DAL/UAL), petrochemical refiners, emerging-market importers such as INR and KRW
+
+---
+
+### 2. Taiwan Strait โ€” Core of the Semiconductor Supply Chain
+
+**Strategic significance**
+- TSMC accounts for roughly 90% of global advanced-node capacity below 5nm
+- Taiwan produces about 65% of the world's semiconductors
+- It sits on the main southbound route linking Northeast Asia and Southeast Asia
+
+**Risk triggers**
+- Larger-scale Chinese military exercises, especially blockade drills
+- U.S. arms sales to Taiwan or high-level official visits
+- Major policy changes in cross-strait relations
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- Abnormal weakness in the Philadelphia Semiconductor Index (SOX)
+- TSM ADR (TSM) premium / discount in the U.S. market
+- Taiwan CDS spreads
+- TWD NDF depreciation under stress
+- KOSPI, given Korea's semiconductor linkage
+- U.S.-listed Chinese ADRs / Hong Kong Hang Seng Tech Index
+```
+
+**Asset impact direction**
+- Bullish: Intel / GlobalFoundries as substitute capacity providers, defense stocks, JPY as a haven
+- Bearish: Apple / NVIDIA / AMD / Qualcomm as TSMC clients, TSM ADR, Samsung Electronics
+- Extreme scenario: global semiconductor shortage leading to collapse across auto and consumer-electronics supply chains
+
+**Supply chain substitution timeline**
+```
+3-6 months: inventory drawdown, sharp price spikes
+6-18 months: partial substitution by Samsung / Intel IDM advanced capacity
+2-4 years: ramp-up from TSMC Arizona and Kumamoto Japan
+5+ years: Mainland China's independent advanced process catch-up, with major uncertainty
+```
+
+---
+
+### 3. Red Sea / Suez Canal โ€” Europe-Asia Trade Artery
+
+**Strategic significance**
+- The Suez Canal carries about 12% of global trade volume and 30% of container shipping
+- The alternative route around the Cape of Good Hope adds 10-14 days and raises cost by 15-25%
+- Houthi forces in Yemen threaten the Bab el-Mandeb chokepoint
+
+**Risk triggers** (already validated by the 2024 Houthi attacks)
+- Intensified attacks on merchant vessels by Houthi forces
+- Israel-Gaza escalation spilling across the region
+- Political instability in Eritrea or Somalia
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- Daily changes in the Baltic Dry Index (BDI)
+- SCFI Shanghai Containerized Freight Index
+- Share prices of Maersk and other container shipping companies
+- Share of AIS-tracked vessels rerouting via the Cape of Good Hope (>30% is high alert)
+- European TTF natural gas prices, given Red Sea LNG exposure
+```
+
+**Asset impact direction**
+- Bullish: shipping stocks (ZIM/MAERSK/COSCO), tankers rerouting around the Cape (FRO/STNG)
+- Bearish: European manufacturers facing supply-chain delays, inflation-sensitive sectors
+- Lag effect: higher freight rates โ†’ higher global CPI โ†’ tighter rate expectations
+
+---
+
+### 4. Russia-Ukraine Conflict โ€” Energy and Food Security
+
+**Strategic significance**
+- Russia is the world's largest natural gas exporter and second-largest crude exporter
+- Ukraine is a major global grain exporter (wheat / corn / sunflower oil)
+- The war has already driven a permanent restructuring of Europe's energy mix
+
+**Ongoing risk points**
+- Escalation in nuclear rhetoric, a major tail-risk driver
+- Sanctions expanding to third parties, forcing countries like China and India to choose sides
+- Continued attacks on Ukrainian infrastructure such as the power grid and ports
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- European TTF natural gas futures
+- Ukrainian sovereign CDS spreads
+- RUB/USD exchange rate under sanctions pressure
+- Chicago wheat futures (ZW)
+- European power prices, e.g. Germany EEX Baseload
+- Russian ETF trading status (RSX liquidated; use substitutes)
+```
+
+**Sanctions transmission-chain analysis**
+```
+Sanctions announcement
+ โ”œโ”€โ”€ Financial sanctions โ†’ SWIFT cutoff โ†’ cross-border settlement disruption โ†’ emerging-market debt crisis
+ โ”œโ”€โ”€ Energy sanctions โ†’ European gas spike โ†’ industrial energy costs โ†’ eurozone recession
+ โ”œโ”€โ”€ Export controls โ†’ Russia semiconductor / military shortages โ†’ weaker war sustainability
+ โ””โ”€โ”€ Grain blockade โ†’ Middle East / Africa food stress โ†’ political instability โ†’ migration pressure
+```
+
+---
+
+### 5. South China Sea โ€” Shipping Lanes and Rare-Earth Competition
+
+**Strategic significance**
+- Around one-third of global trade value, roughly USD 3.4 trillion annually, passes through the South China Sea
+- China controls about 60% of global rare-earth supply, even more in refining
+- Territorial frictions between China and the Philippines / Vietnam persist
+
+**Risk triggers**
+- China declaring an Air Defense Identification Zone (ADIZ)
+- Clashes around flashpoints such as Sabina Shoal or Scarborough Shoal
+- Rare-earth export bans or quota cuts as a technology retaliation tool against the U.S.
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- Chinese rare-earth futures prices (permanent magnets / praseodymium-neodymium oxide)
+- Philippine peso volatility
+- Vietnam industrial park REITs / ETFs
+- MP Materials (MP) share price as a substitute rare-earth beneficiary
+- Share prices of Chinese shipping companies
+```
+
+**Asset impact direction**
+- Bullish: rare-earth miners such as MP Materials and Australia's Lynas, Japanese trading houses with inventories
+- Bearish: EV / permanent-magnet motor supply chains, Chinese ADRs
+
+---
+
+### 6. Korean Peninsula โ€” Regional Security Shock Source
+
+**Strategic significance**
+- North Korea possesses nuclear weapons and ICBMs, making it a non-trivial tail risk
+- Strategic cooperation among China, Russia, and North Korea has deepened, including artillery supply during the Russia-Ukraine war
+- South Korea is a major global exporter of semiconductors, shipbuilding, and autos
+
+**Risk triggers**
+- Nuclear or missile tests, especially ICBM launches
+- North Korea announcing strategic changes such as "nuclear sharing"
+- Political crises in South Korea affecting U.S. force deployment
+
+**Key monitoring indicators**
+```python
+# Proxy indicators
+- KRW/USD volatility spike
+- KOSPI decline
+- South Korean CDS spreads
+- JPY safe-haven inflows (JPY/USD strength)
+- ADR prices of Samsung / SK Hynix
+```
+
+---
+
+## Quantitative Framework for Geopolitical Risk
+
+### GPR Index (Caldara & Iacoviello)
+
+**Definition and source**
+- Built by Fed economists Dario Caldara and Matteo Iacoviello
+- Computed from war / terror / military-related word frequency in major newspapers globally
+- Monthly data back to 1900, covering global and country-specific series
+- Official data: https://www.matteoiacoviello.com/gpr.htm
+
+**Index taxonomy**
+```
+GPR: overall geopolitical risk
+GPRT: geopolitical threats (forward-looking)
+GPRA: geopolitical acts (events already realized)
+GPR_country: country-level sub-index
+```
+
+**Python example**
+```python
+import pandas as pd
+import requests
+
+def load_gpr_index():
+ """Load the official GPR Index data.
+
+ Returns:
+ pd.DataFrame: Monthly GPR data with columns such as GPR, GPRT, and GPRA.
+ """
+ url = "https://www.matteoiacoviello.com/gpr_files/data_gpr_export.xls"
+ df = pd.read_excel(url, index_col=0, parse_dates=True)
+ return df
+
+def gpr_signal(df, window=12, threshold=1.5):
+ """Generate abnormal GPR signals.
+
+ Args:
+ df: DataFrame containing GPR data
+ window: Rolling mean window in months
+ threshold: Z-score trigger threshold in standard deviations
+
+ Returns:
+ pd.Series: Boolean signal where True means high-risk state
+ """
+ gpr = df["GPR"]
+ rolling_mean = gpr.rolling(window).mean()
+ rolling_std = gpr.rolling(window).std()
+ z_score = (gpr - rolling_mean) / rolling_std
+ return z_score > threshold
+```
+
+---
+
+### Calculating War Risk Premiums
+
+**Oil war premium**
+```python
+def oil_war_premium(spot_price, mean_5y_price, supply_disruption_prob,
+ disruption_magnitude_pct):
+ """Estimate the war-risk premium embedded in crude oil.
+
+ Method:
+ A simplified model based on expected supply-disruption value.
+
+ Args:
+ spot_price: Current spot price in USD/bbl
+ mean_5y_price: Five-year average price as the "no-risk" baseline
+ supply_disruption_prob: Probability of supply disruption in [0, 1]
+ disruption_magnitude_pct: Price impact of disruption in [0, 1]
+
+ Returns:
+ float: Estimated war premium in USD/bbl
+ """
+ expected_disruption_premium = (
+ mean_5y_price * disruption_magnitude_pct * supply_disruption_prob
+ )
+ observed_premium = spot_price - mean_5y_price
+ return max(0, min(observed_premium, expected_disruption_premium))
+```
+
+**Gold safe-haven premium**
+```python
+def gold_geopolitical_premium(gold_price, real_yield_10y, usd_index):
+ """Decompose the geopolitical premium component in gold prices.
+
+ Args:
+ gold_price: Spot gold price in USD/oz
+ real_yield_10y: 10-year real yield in percent
+ usd_index: DXY index
+
+ Returns:
+ float: Geopolitical premium as the residual component
+ """
+ import numpy as np
+ # Gold fundamentals: real rates (negative) + USD (negative)
+ # Linear approximation:
+ # Gold โ‰ˆ ฮฑ - ฮฒ1*RealYield - ฮฒ2*DXY + ฮต (geopolitical premium)
+ # ฮฒ1 โ‰ˆ 800, ฮฒ2 โ‰ˆ 15 are rough historical estimates that should be updated
+ fundamental_value = 2000 - 800 * real_yield_10y - 15 * (usd_index - 100)
+ return gold_price - fundamental_value
+```
+
+---
+
+### Supply-Chain Disruption Probability Assessment
+
+**Bayesian update framework**
+```python
+def update_disruption_probability(prior_prob, new_event_severity, base_rate=0.05):
+ """Update supply-chain disruption probability using a new event.
+
+ This is a simplified Bayesian update that adjusts the prior
+ using the severity of the new event.
+
+ Args:
+ prior_prob: Prior disruption probability
+ new_event_severity: Event severity in [0, 1]
+ 0.0 = diplomatic friction
+ 0.3 = military standoff
+ 0.6 = local conflict
+ 1.0 = full-scale war
+ base_rate: Historical annualized baseline disruption rate
+
+ Returns:
+ float: Updated disruption probability
+ """
+ # Likelihood ratio: how much more likely the event is before a real disruption
+ # than in a non-disruption state
+ likelihood_ratio = 1 + 9 * new_event_severity # 1x ~ 10x
+ posterior = (prior_prob * likelihood_ratio) / (
+ prior_prob * likelihood_ratio + (1 - prior_prob)
+ )
+ return posterior
+```
+
+---
+
+### Quantifying Sanctions Transmission Chains
+
+**Sanctions intensity scorecard**
+
+| Sanction Type | Intensity Score | Typical Asset Shock | Expected Duration |
+|----------|--------|-------------|-------------|
+| Targeted sanctions on people / entities | 1-2 | <0.5% | Short-lived |
+| Sector-level export controls | 3-4 | 1-3% | Several months |
+| SWIFT cutoff | 7-8 | 5-15% | Long-lasting |
+| Full-scale economic sanctions | 9-10 | 10-30% | Structural |
+| Oil embargo | 8-9 | Crude +10-30% | Medium-term |
+
+---
+
+## Asset-Class Impact Mapping
+
+### Energy
+
+| Asset | Hormuz | Russia-Ukraine | Red Sea | Notes |
+|------|---------|------|------|------|
+| Brent crude | +++ shock | ++ persistent | + mild | Primary geopolitical-risk asset |
+| WTI crude | ++ shock | ++ persistent | + mild | Widens against Brent |
+| Europe TTF gas | ++ | +++ | + | Cost of replacing Russian gas |
+| LNG futures | +++ | ++ | ++ | Red Sea disruption matters for Asian LNG |
+| Relevant ETFs | XLE, OIH, UNG | | | |
+
+### Precious Metals (Safe Haven Function)
+
+```
+Gold (GLD/GC): geopolitical shock โ†’ immediate rally, but persistence depends on real-rate direction
+Silver (SLV/SI): industrial exposure dilutes safe-haven behavior and raises volatility
+Palladium / platinum: Russia is a major producer, so sanctions hit supply directly
+```
+
+**Empirical patterns (2001-2024)**
+- A 1-standard-deviation rise in GPR implies about +1.2% expected gold return over a 1-month window
+- On day one of major shocks such as Pearl Harbor, 9/11, or Russia-Ukraine, gold rose roughly 3-8%
+- Within 60 days, around 50-70% of the geopolitical premium mean-reverts
+
+### Agriculture
+
+| Asset | Russia-Ukraine Conflict | South China Sea Blockade | Driver |
+|------|---------|---------|---------|
+| Wheat (ZW) | +++ | + | Russia + Ukraine account for about 30% of exports |
+| Corn (ZC) | ++ | + | Ukraine is a major exporter |
+| Sunflower oil | +++ | - | Ukraine accounts for roughly 50% globally |
+| Soybeans (ZS) | + | + | China import demand |
+
+### Semiconductors / Technology
+
+```
+Estimated impact under a Taiwan Strait crisis:
+- Mild military tension (drills): SOX -5% to -10%
+- Blockade drill (1 month): SOX -15% to -25%
+- Actual military conflict: SOX -40% to -60% (no true historical analogue)
+
+Beneficiaries through substitution:
+- Intel (INTC): IDM model with U.S.-based capacity
+- GlobalFoundries (GFS): U.S. / Europe / Singapore capacity
+- Samsung, though Korea itself is also a geopolitical risk zone
+```
+
+### Shipping / Logistics
+
+```
+Key ETFs and stocks:
+- BDRY: bulk-shipping freight ETF tracking BDI, highly sensitive to Red Sea / Hormuz shocks
+- ZIM: Israeli container shipper, directly exposed to Red Sea risk
+- FRO (Frontline): tanker beneficiary of Hormuz risk
+- STNG (Scorpio Tankers): benefits from rerouting around the Red Sea
+- MAERSK.B: container-shipping leader that benefits from freight spikes during crises
+```
+
+### Defense
+
+```
+U.S. defense ETFs: ITA (iShares), XAR (SPDR)
+
+Single-stock beneficiaries of geopolitical risk:
+- LMT (Lockheed Martin): F-35, missile systems
+- RTX (Raytheon): air-defense systems such as Patriot
+- NOC (Northrop Grumman): B-21 bomber, nuclear systems
+- BA (Boeing): military exposure, though commercial aviation can be hurt by geopolitics
+
+Historical pattern:
+Higher geopolitical risk โ†’ faster defense budget approvals โ†’ effect shows up with a 6-12 month lag
+```
+
+### FX (Safe-Haven Currencies)
+
+```
+Capital flows during crises:
+Risk currencies (AUD/NZD/MXN/KRW/BRL) โ†’ outflows
+Safe-haven currencies (JPY/CHF/USD) โ† inflows
+
+JPY:
+- Net-creditor-nation status + repatriation effect
+- Historical crisis moves: +1% to +3% vs USD
+
+CHF:
+- Neutral country + European financial center
+- Major crises: +2% to +5% vs EUR
+
+USD:
+- Global reserve currency and final safe haven during crises
+- But if the U.S. homeland is directly attacked, USD can weaken instead
+
+Note: High-carry funding currencies such as TRY and ARS tend to suffer the most when global risk aversion rises
+```
+
+---
+
+## Event-Driven Strategy Framework
+
+### Phase 1: Positioning Before the Crisis (Early-Warning Signal Detection)
+
+**Signal classification system**
+
+```python
+SIGNAL_LEVELS = {
+ "GREEN": {
+ "desc": "Normal geopolitical risk level",
+ "gpr_percentile": (0, 50),
+ "action": "Standard allocation, no special hedge required"
+ },
+ "YELLOW": {
+ "desc": "Risk rising, watch for escalation",
+ "gpr_percentile": (50, 75),
+ "action": "Small long-gold position, reduce high-risk asset exposure by 10%"
+ },
+ "ORANGE": {
+ "desc": "High-risk state, potential shock approaching",
+ "gpr_percentile": (75, 90),
+ "action": "Add safe-haven assets, buy OTM protective options, bullish on oil"
+ },
+ "RED": {
+ "desc": "Extreme risk, crisis may break out",
+ "gpr_percentile": (90, 100),
+ "action": "Maximize defensive positioning, hold cash / gold / Treasuries, short high-risk assets"
+ }
+}
+```
+
+**Early-warning checklist**
+```
+Diplomatic:
+ [ ] Embassy closures / downgrades
+ [ ] Diplomat expulsions
+ [ ] UN emergency meeting called
+ [ ] Escalation in joint statements by multiple countries
+
+Military:
+ [ ] Large-scale exercises (>50,000 personnel)
+ [ ] Carrier strike group forward deployment
+ [ ] Higher readiness announcements
+ [ ] Missile / nuclear system release orders
+
+Financial:
+ [ ] Target-country CDS spread breaks historical highs
+ [ ] Exchange rate devaluation >3% in one week
+ [ ] Sharp decline in FX reserves
+ [ ] Accelerating capital flight
+```
+
+---
+
+### Phase 2: Trading During the Crisis
+
+**Volatility trading framework**
+```python
+def crisis_vol_strategy(underlying, option_chain):
+ """Volatility trading framework during crises.
+
+ Crisis outbreaks usually cause:
+ 1. A short-term VIX spike (long VIX futures / options)
+ 2. Inversion in the IV term structure (front month > back month)
+ 3. Steeper put skew
+
+ Args:
+ underlying: Underlying asset ticker
+ option_chain: Option chain data
+
+ Returns:
+ dict: Recommended strategies and sizing guidance
+ """
+ strategies = {
+ "long_vix_futures": {
+ "instrument": "Front-month VX futures",
+ "trigger": "VIX < 20 and GPR > 75th percentile",
+ "target": "VIX spikes to 35-50",
+ "stop": "VIX falls 15% below entry"
+ },
+ "backspread": {
+ "instrument": f"Buy OTM Put + sell ATM Put on {underlying}",
+ "trigger": "Implied volatility is at a historical low",
+ "profit_zone": "Large drop > 10%"
+ },
+ "calendar_spread": {
+ "instrument": "Sell near-month ATM + buy far-month ATM",
+ "trigger": "Exit when term-structure inversion becomes excessive",
+ "profit_zone": "Volatility mean reversion"
+ }
+ }
+ return strategies
+```
+
+**Crisis allocation matrix**
+```
+Crisis type | Gold | Oil | Defense | JPY | Treasuries | EM
+Energy conflict | ++ | +++ | ++ | + | + | ---
+Nuclear escalation | +++ | + | + | +++ | +++ | ---
+Sanctions / trade | + | + | + | + | + | --
+Food crisis | + | 0 | 0 | 0 | + | -- (importers)
+Sea blockade | + | ++ | + | + | + | -
+```
+
+---
+
+### Phase 3: Mean Reversion After the Crisis
+
+**Recovery time of historical events**
+
+| Event | S&P 500 Max Drawdown | Days to Recover Prior High | Max Oil Rally | Max Gold Rally |
+|------|----------------|--------------|-------------|-------------|
+| 9/11 attacks (2001) | -11.6% | 31 days | -35% (demand collapse) | +5% |
+| Iraq War (2003) | -3% | <30 days | +40% (within 1 year) | +15% |
+| Russia-Georgia War (2008) | <-5% | <30 days | Overlapped with financial crisis | +10% |
+| Crimea (2014) | -1% | 7 days | -5% | +3% |
+| Full invasion of Ukraine (2022) | -3% briefly | <20 days | +40% (within 3 months) | +5% |
+
+**Core patterns**
+```
+1. The initial equity shock from geopolitical events usually recovers within 30 days unless recession hits simultaneously
+2. Energy / commodities effects last longer because supply-side changes are structural
+3. Go long the most damaged assets once the crisis de-escalates and mean reversion starts
+4. Sell safe-haven assets that exploded during the crisis, especially gold after tension fades
+```
+
+**Mean-reversion signals**
+```python
+REVERSION_SIGNALS = [
+ "Ceasefire agreement signed / negotiations announced",
+ "Energy / grain exports resume, confirmed by shipping data",
+ "Target-country CDS spreads retrace >20% from the peak",
+ "GPR Index falls >30% from the peak",
+ "VIX drops below 20 after peaking",
+ "Safe-haven currencies such as JPY / CHF begin weakening"
+]
+```
+
+---
+
+## Data Sources and APIs
+
+### 1. GPR Index (Most Important Quantitative Dataset)
+
+```python
+# Official download, free, monthly updates
+GPR_DATA_URL = "https://www.matteoiacoviello.com/gpr_files/data_gpr_export.xls"
+
+# High-frequency daily GPR based on Twitter / news
+# Access request required: https://www.policyuncertainty.com/gpr_daily.html
+
+# Related paper:
+# Caldara & Iacoviello (2022), "Measuring Geopolitical Risk"
+# American Economic Review, 112(4): 1194-1225
+```
+
+### 2. GDELT Global Event Database (Free)
+
+```python
+# GDELT 2.0 provides global news-event data updated every 15 minutes
+# Includes the CAMEO event code system for military / diplomatic / conflict classification
+
+def query_gdelt_events(country_code, event_type, start_date, end_date):
+ """Query GDELT geopolitical event data.
+
+ GDELT BigQuery table: gdelt-bq.gdeltv2.events
+ CAMEO root codes: 14=protest, 18=assault, 19=fight, 20=mass violence
+
+ Args:
+ country_code: FIPS country code, e.g. 'CH' for China, 'RS' for Russia
+ event_type: CAMEO root code
+ start_date: Start date in YYYY-MM-DD
+ end_date: End date in YYYY-MM-DD
+
+ Returns:
+ pd.DataFrame: Event records
+ """
+ from google.cloud import bigquery
+ client = bigquery.Client()
+
+ query = f"""
+ SELECT SQLDATE, Actor1CountryCode, Actor2CountryCode,
+ EventCode, GoldsteinScale, NumMentions, AvgTone
+ FROM `gdelt-bq.gdeltv2.events`
+ WHERE (Actor1CountryCode = '{country_code}'
+ OR Actor2CountryCode = '{country_code}')
+ AND EventRootCode = '{event_type}'
+ AND SQLDATE BETWEEN '{start_date.replace('-','')}'
+ AND '{end_date.replace('-','')}'
+ ORDER BY SQLDATE DESC
+ """
+ return client.query(query).to_dataframe()
+```
+
+### 3. ACLED Armed Conflict Location & Event Data
+
+```python
+# Armed Conflict Location & Event Data Project
+# https://acleddata.com/
+# Covers 100+ countries and is free for approved academic access
+
+ACLED_API_BASE = "https://api.acleddata.com/acled/read"
+
+def fetch_acled_events(country, start_date, end_date, api_key):
+ """Fetch ACLED armed-conflict event data.
+
+ Args:
+ country: Country name in English
+ start_date: Start date in YYYY-MM-DD
+ end_date: End date in YYYY-MM-DD
+ api_key: ACLED API key
+
+ Returns:
+ pd.DataFrame: Conflict event data
+ """
+ import requests
+ import pandas as pd
+
+ params = {
+ "key": api_key,
+ "email": "[email protected]",
+ "country": country,
+ "event_date": f"{start_date}|{end_date}",
+ "event_date_where": "BETWEEN",
+ "export_type": "json"
+ }
+ resp = requests.get(ACLED_API_BASE, params=params)
+ return pd.DataFrame(resp.json()["data"])
+```
+
+### 4. Real-Time News Sentiment Analysis
+
+```python
+# Option A: Use the Jina Reader API integrated in the project through read_url
+def analyze_geopolitical_news(query: str) -> dict:
+ """Read news through Jina and analyze geopolitical-risk sentiment.
+
+ Use together with the agent's read_url tool.
+
+ Args:
+ query: Search keywords
+
+ Returns:
+ dict: Sentiment-analysis result
+ """
+ # Recommended news sources:
+ news_sources = [
+ "https://www.reuters.com/world/",
+ "https://www.bloomberg.com/politics",
+ "https://www.ft.com/world",
+ "https://www.foreignpolicy.com/"
+ ]
+ # Use read_url to fetch content, then pass it to the LLM to extract risk events
+
+# Option B: Event Registry API (paid, structured news)
+# https://eventregistry.org/
+# Supports filtering by country / topic / time and returns standardized events
+
+# Option C: VADER / FinBERT sentiment analysis
+# Score geopolitical news sentiment and build high-frequency signals
+```
+
+### 5. Other Practical Data Sources
+
+```python
+DATA_SOURCES = {
+ "oil_tanker_tracking": {
+ "desc": "Crude oil / LNG vessel AIS tracking",
+ "source": "MarineTraffic API (paid) / VesselFinder (limited free)",
+ "use_case": "Real-time monitoring of traffic through Hormuz / the Red Sea"
+ },
+ "un_vote_data": {
+ "desc": "UN General Assembly / Security Council voting records",
+ "source": "UN Data API (free)",
+ "use_case": "Track changes in great-power alignment"
+ },
+ "arms_transfer": {
+ "desc": "Arms transfers and military aid data",
+ "source": "SIPRI Arms Transfers Database (free)",
+ "use_case": "Estimate conflict-escalation probability"
+ },
+ "nuclear_risk": {
+ "desc": "Real-time nuclear-risk assessment",
+ "source": "Bulletin of the Atomic Scientists Doomsday Clock",
+ "use_case": "Tail-risk monitoring"
+ },
+ "commodity_futures": {
+ "desc": "Commodity futures prices, including geopolitical premium",
+ "source": "Integrated in this project: Tushare commodity futures / OKX crypto",
+ "use_case": "Estimate war premium"
+ }
+}
+```
+
+---
+
+## Application Scenarios
+
+### Scenario 1: Geopolitical Risk Dashboard (Monthly Refresh)
+
+```
+Run at the start of each month:
+1. Download the latest GPR Index data
+2. Calculate CDS spread changes for each hotspot country
+3. Analyze tanker insurance rates
+4. Summarize counts of high-intensity GDELT conflict events
+5. Output a composite risk score (0-100) plus allocation guidance
+```
+
+### Scenario 2: Rapid Event Shock Assessment
+
+```
+Trigger:
+Major geopolitical event breaks out, such as a missile strike or sanctions announcement
+
+Execution flow:
+1. Identify the event type and intensity (0-10)
+2. Map the affected asset classes
+3. Estimate the short-term price shock range
+4. Identify hedging instruments (options / futures / ETFs)
+5. Set stop-loss rules and position size
+```
+
+### Scenario 3: Quarterly Risk Stress Testing
+
+```python
+# Geopolitical scenario stress tests for a portfolio
+SCENARIOS = {
+ "hormuz_blockade_30d": {
+ "oil_price_shock": +40,
+ "gold_shock": +8,
+ "equity_shock": -12,
+ "usd_shock": +3,
+ "description": "30-day Strait of Hormuz blockade scenario"
+ },
+ "taiwan_conflict_mild": {
+ "semioconductor_shock": -25,
+ "gold_shock": +5,
+ "equity_shock": -15,
+ "jpy_shock": +8,
+ "description": "Mild Taiwan Strait military conflict scenario"
+ },
+ "russia_gas_cutoff": {
+ "eu_natgas_shock": +80,
+ "eu_equity_shock": -20,
+ "eur_shock": -8,
+ "gold_shock": +6,
+ "description": "Russia fully cuts off gas to Europe"
+ }
+}
+
+def portfolio_stress_test(portfolio_weights, scenarios=SCENARIOS):
+ """Run geopolitical scenario stress tests on a portfolio.
+
+ Args:
+ portfolio_weights: dict mapping asset ticker to weight
+ scenarios: Scenario-definition dictionary
+
+ Returns:
+ pd.DataFrame: Expected portfolio PnL under each scenario
+ """
+ results = {}
+ for scenario_name, shocks in scenarios.items():
+ portfolio_pnl = sum(
+ portfolio_weights.get(asset, 0) * shock / 100
+ for asset, shock in shocks.items()
+ if asset != "description"
+ )
+ results[scenario_name] = {
+ "portfolio_return": portfolio_pnl,
+ "description": shocks["description"]
+ }
+ return results
+```
+
+### Scenario 4: Backtest of a GPR-Driven Dynamic Hedge
+
+```python
+# Strategy logic:
+# When GPR > 75th percentile, hold 5% gold + 5% oil calls
+# When GPR < 25th percentile, revert to standard allocation
+# Historical backtests suggest a roughly 30-40% reduction in tail losses
+# across major crises from 2001-2023
+
+def gpr_dynamic_hedge_backtest(returns_data, gpr_data,
+ hedge_assets=["GLD", "USO"],
+ hedge_weight=0.05):
+ """Backtest a GPR-driven dynamic hedge strategy.
+
+ Args:
+ returns_data: pd.DataFrame of daily asset returns
+ gpr_data: pd.Series of monthly GPR Index values
+ hedge_assets: List of hedge assets
+ hedge_weight: Allocation weight per hedge asset
+
+ Returns:
+ pd.DataFrame: Return comparison before and after hedging
+ """
+ import pandas as pd
+
+ # Map monthly GPR to daily frequency.
+ gpr_daily = gpr_data.resample("D").ffill()
+ gpr_threshold = gpr_daily.quantile(0.75)
+
+ hedge_signal = gpr_daily > gpr_threshold
+
+ base_return = returns_data.drop(columns=hedge_assets, errors="ignore").mean(axis=1)
+ hedge_return = returns_data[hedge_assets].mean(axis=1) if hedge_assets else 0
+
+ hedged_return = base_return.copy()
+ hedged_return[hedge_signal] = (
+ base_return[hedge_signal] * (1 - len(hedge_assets) * hedge_weight) +
+ hedge_return[hedge_signal] * len(hedge_assets) * hedge_weight
+ )
+
+ return pd.DataFrame({
+ "base": base_return,
+ "hedged": hedged_return,
+ "hedge_active": hedge_signal.astype(int)
+ })
+```
+
+---
+
+## References and Further Reading
+
+```
+Academic papers:
+- Caldara & Iacoviello (2022), "Measuring Geopolitical Risk", AER
+- Apergis et al. (2021), "Geopolitical Risks and Asset Prices"
+- Mueller & Rauh (2018), "The Hard Problem of Prediction for Conflict Prevention"
+
+Data resources:
+- GPR Index: https://www.matteoiacoviello.com/gpr.htm
+- GDELT: https://www.gdeltproject.org/
+- ACLED: https://acleddata.com/
+- SIPRI: https://www.sipri.org/databases
+
+Market-analysis tools:
+- BDI (Baltic Dry Index): https://www.balticexchange.com/
+- CDS spread data: Bloomberg / Refinitiv (paid) / FRED (partially free)
+- Vessel AIS tracking: MarineTraffic.com
+```
diff --git a/agent/src/skills/global-macro/SKILL.md b/agent/src/skills/global-macro/SKILL.md
new file mode 100644
index 000000000..40aba529b
--- /dev/null
+++ b/agent/src/skills/global-macro/SKILL.md
@@ -0,0 +1,155 @@
+---
+name: global-macro
+description: Global macro analysis framework (central bank policy transmission / FX forecasting / geopolitical risk / capital flows), used to build macro factor signals that drive cross-asset allocation.
+---
+# Global Macro Analysis
+
+## Overview
+
+Builds a macro analysis framework from three dimensions: central-bank policy, exchange-rate regimes, and geopolitics. Outputs quantifiable macro factor signals to drive cross-asset allocation decisions. Core logic: macro cycles determine major asset direction, while micro-level timing is delegated to other skills.
+
+## Core Concepts
+
+### 1. Central Bank Policy Transmission Chain
+
+```
+Policy-rate changes โ†’ government bond yield curve โ†’ credit spreads โ†’ financing costs for the real economy โ†’ corporate earnings โ†’ equity valuation
+```
+
+**Monitoring framework for the three major central banks:**
+
+| Central Bank | Core Indicators | Forward Signals | Lagging Confirmation |
+|------|---------|---------|---------|
+| Federal Reserve (Fed) | FFR, dot plot, SEP | CME FedWatch probabilities | nonfarm payrolls / CPI / PCE |
+| European Central Bank (ECB) | Main refinancing rate | Eurozone PMI, HICP | credit growth |
+| Bank of Japan (BOJ) | YCC band, policy rate | JPY exchange rate, JGB yields | core CPI |
+
+**Historical transmission of Fed hiking / cutting cycles to China A-shares (empirical):**
+- Late in a Fed hiking cycle (the last 1-2 hikes), China A-shares often have already priced it in, and the average drawdown of the CSI 300 narrows to -3%
+- In the 3 months after the first Fed cut, the CSI 300 has averaged +8.2% (mean of the 2001 / 2007 / 2019 cycles)
+- But rate cuts do not automatically mean gains. In 2008, cuts came with recession and China A-shares still fell
+
+### 2. Exchange Rate Forecasting Framework
+
+**Three-layer model:**
+
+| Model | Applicable Horizon | Core Variables | Accuracy |
+|------|---------|---------|------|
+| Purchasing Power Parity (PPP) | 3-5 years | CPI gap between two countries | Long-term anchor |
+| Interest Parity (UIP/CIP) | 3-12 months | rate differential + forward premium/discount | Medium-term direction |
+| BEER model | 1-3 years | terms of trade + net foreign inflows + productivity | Equilibrium estimate |
+
+**USD/CNY practical checklist:**
+- China-US 10Y spread > 0: appreciation pressure on the RMB (capital inflows)
+- China-US 10Y spread < -150bp: rising depreciation pressure on the RMB
+- Net FX settlement surplus / deficit: directly reflects conversion direction of corporates and households
+- PBOC fixing vs market expectation: signal that the countercyclical factor has been activated
+
+### 3. Geopolitical Risk Assessment
+
+**Quantitative approach (proxy for the GPR index):**
+
+```python
+# Geopolitical risk proxy indicators
+risk_indicators = {
+ "vix": "Fear index > 25 = high risk",
+ "gold_oil_ratio": "Gold / oil > 25 = rising risk aversion",
+ "usd_index": "DXY jump > 2% / week = capital flowing back to USD",
+ "credit_spread": "IG spread > 150bp = credit tightening",
+ "em_spread": "EMBI spread widening > 50bp / month = emerging-market stress"
+}
+```
+
+**Typical asset impacts of geopolitical events (historical averages):**
+- Local conflicts: gold +3-5%, oil +5-15%, equities -2-5%, with impact lasting 1-4 weeks
+- Trade friction: affected sectors -10-20%, beneficiary substitute sectors +5-10%, lasting 3-6 months
+- Financial sanctions: sanctioned-country currency -10-30%, commodity supply side hit
+
+### 4. Global Capital Flow Tracking
+
+**Key data sources:**
+- EPFR fund flows: weekly net inflows into global equity / bond funds
+- Northbound flows (Shanghai-Shenzhen-Hong Kong Stock Connect): daily, with net buying > 10 billion RMB in a day as a strong signal
+- US Treasury TIC data: monthly, showing changes in foreign holdings of Treasuries
+- FX reserve changes: quarterly, indicating central-bank asset allocation direction
+
+**Northbound flow signal rules (China A-share practice):**
+
+| Signal | Condition | Meaning |
+|------|------|------|
+| Strong buy | Net buying for 5 consecutive days and cumulative amount > 20 billion RMB | Foreign investors are building positions trendwise |
+| Weak buy | Single-day net buying > 8 billion RMB | Short-term sentiment is bullish |
+| Warning | Net selling for 5 consecutive days and cumulative amount > 15 billion RMB | Foreign investors are reducing positions trendwise |
+| Neutral | Daily net flow within ยฑ3 billion RMB | No directional signal |
+
+### 5. Dollar Cycle and Emerging Markets
+
+**Four-stage dollar cycle model:**
+
+```
+Strong-dollar phase (DXY rising) โ†’ capital outflows from emerging markets โ†’ EM currency depreciation โ†’ EM equities and bonds both sell off
+Weak-dollar phase (DXY falling) โ†’ capital flows back into EM โ†’ EM currency appreciation โ†’ EM assets outperform developed markets
+```
+
+**Practical mapping:**
+- DXY > 105 and trending up: underweight emerging markets (China A-shares / Hong Kong stocks), overweight USD assets
+- DXY < 100 and trending down: overweight emerging markets, underweight USD assets
+- DXY in the 100-105 range: allocate selectively based on fundamentals
+
+## Analysis Framework
+
+### Steps for Building a Macro Dashboard
+
+1. **Data collection**: rates (US 10Y / China 10Y government bonds), FX (DXY / USD-CNY), commodities (gold / oil / copper), capital flows (northbound / EPFR)
+2. **Cycle positioning**: which stage are we in now: hiking / cutting / pause? Strong-dollar or weak-dollar cycle?
+3. **Factor scoring**: score each macro factor from -2 to +2 (-2 = extremely bearish, +2 = extremely bullish)
+4. **Asset mapping**: macro factor scores โ†’ recommended weights for major asset classes
+
+### Example Macro Factor Scoring
+
+```python
+macro_factors = {
+ "fed_policy": +1, # Hiking pause, dovish tilt
+ "cny_pressure": -1, # RMB depreciation pressure
+ "geopolitical": 0, # Neutral geopolitical risk
+ "northbound_flow": +2, # Persistent net northbound buying
+ "usd_cycle": -1, # Stronger USD
+}
+# Composite score = sum(values) / len(values) = +0.2 โ†’ neutral to mildly bullish
+```
+
+## Output Format
+
+```
+## Macro Analysis Report
+
+### Cycle Positioning
+- Federal Reserve: [late hiking / pause / early cutting]
+- Dollar cycle: [strong / range-bound / weak]
+- China monetary policy: [easing / neutral / tightening]
+
+### Factor Scores (-2 ~ +2)
+| Factor | Score | Basis |
+|------|------|------|
+| Central bank policy | +1 | Fed paused hiking and the market expects cuts this year |
+| FX pressure | -1 | USD/CNY broke above 7.2 and FX settlement turned into deficit |
+| Capital flows | +2 | Northbound net buying exceeded 20 billion RMB continuously |
+
+### Asset Allocation Recommendations
+- China A-shares: [overweight / neutral / underweight] โ€” rationale
+- Hong Kong stocks: [overweight / neutral / underweight] โ€” rationale
+- Gold: [overweight / neutral / underweight] โ€” rationale
+- US Treasuries: [overweight / neutral / underweight] โ€” rationale
+
+### Risk Warnings
+- [specific risk events and potential impacts]
+```
+
+## Notes
+
+- Macro analysis provides directional guidance, not precise timing. Leave timing to skills such as `technical-basic` or `volatility`
+- Central-bank policy judgment should be based on official statements and meeting minutes. Do not over-interpret unofficial messages
+- Exchange-rate forecasting has large errors. PPP deviations can persist for years, so use it for direction only, not exact levels
+- Northbound flows contain noise (arbitrage / hedging), so persistence matters (at least 3 consecutive days in the same direction)
+- Geopolitical shocks are usually short-lived (1-4 weeks) unless they change fundamentals (such as long-term sanctions or trade wars)
+- This framework is not investment advice and is for research backtesting only
diff --git a/agent/src/skills/harmonic/SKILL.md b/agent/src/skills/harmonic/SKILL.md
new file mode 100644
index 000000000..2db9ed2bd
--- /dev/null
+++ b/agent/src/skills/harmonic/SKILL.md
@@ -0,0 +1,39 @@
+---
+name: harmonic
+description: Harmonic Patterns signal engine. Identifies XABCD five-point structures such as Gartley/Bat/Butterfly/Crab based on Fibonacci geometry, and generates trading signals in the PRZ (Potential Reversal Zone).
+---
+# Harmonic Patterns
+
+## Purpose
+
+The Fibonacci geometry school uses precise ratio relationships to identify price patterns:
+
+| Pattern | B-Point Retracement | D-Point Retracement | Direction |
+|------|---------|---------|------|
+| Gartley | 0.618 XA | 0.786 XA | Reversal |
+| Bat | 0.382-0.5 XA | 0.886 XA | Reversal |
+| Butterfly | 0.786 XA | 1.27 XA | Reversal |
+| Crab | 0.382-0.618 XA | 1.618 XA | Reversal |
+
+## Core Concepts
+
+- **XABCD five-point pattern**: a price structure defined by precise Fibonacci ratios
+- **PRZ (Potential Reversal Zone)**: the convergence area around point D, where reversal probability is high
+- Bullish pattern (point D at the bottom) โ†’ buy signal
+- Bearish pattern (point D at the top) โ†’ sell signal
+
+## Dependencies
+
+```bash
+pip install pyharmonics pandas numpy requests
+```
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| is_stock | False | Whether the instrument is a stock (affects analysis parameters) |
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/harmonic/example_signal_engine.py b/agent/src/skills/harmonic/example_signal_engine.py
new file mode 100644
index 000000000..5033529d4
--- /dev/null
+++ b/agent/src/skills/harmonic/example_signal_engine.py
@@ -0,0 +1,510 @@
+"""่ฐๆณขๅฝขๆ€๏ผˆHarmonic Patterns๏ผ‰ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽ Fibonacci ๅ‡ ไฝ•ๅญฆๆดพ๏ผŒ่ฏ†ๅˆซ Gartley/Bat/Butterfly/Crab ็ญ‰ XABCD ไบ”็‚นๅฝขๆ€๏ผŒ
+ๅœจ PRZ๏ผˆๆฝœๅœจๅ่ฝฌๅŒบ๏ผ‰็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ไผ˜ๅ…ˆไฝฟ็”จ pyharmonics ๅบ“๏ผŒ่‹ฅไธๅฏ็”จๅˆ™ๅ›ž้€€ๅˆฐๅ†…็ฝฎๆฃ€ๆต‹ๅ™จใ€‚
+"""
+
+from typing import Dict, List, Optional, Tuple
+
+import numpy as np
+import pandas as pd
+
+
+# ---------------------------------------------------------------------------
+# Harmonic pattern definitions: (b_ratio_range, d_ratio_range, name)
+# b_ratio = AB / XA
+# d_ratio = AD / XA (ๅฏนไบŽ็œ‹ๆถจๅฝขๆ€๏ผŒAD = X price - D price ็š„็ปๅฏน่ท็ฆป)
+# ---------------------------------------------------------------------------
+PATTERNS = {
+ "Gartley": {
+ "b_retrace": (0.55, 0.68), # AB / XA โ‰ˆ 0.618
+ "d_retrace": (0.72, 0.84), # AD / XA โ‰ˆ 0.786
+ "bc_ratio": (0.382, 0.886), # BC / AB
+ "cd_ratio": (1.27, 1.618), # CD / BC
+ },
+ "Bat": {
+ "b_retrace": (0.33, 0.55), # AB / XA โ‰ˆ 0.382-0.5
+ "d_retrace": (0.82, 0.94), # AD / XA โ‰ˆ 0.886
+ "bc_ratio": (0.382, 0.886),
+ "cd_ratio": (1.618, 2.618),
+ },
+ "Butterfly": {
+ "b_retrace": (0.72, 0.84), # AB / XA โ‰ˆ 0.786
+ "d_retrace": (1.20, 1.38), # AD / XA โ‰ˆ 1.27 (่ถ…ๅ‡บX)
+ "bc_ratio": (0.382, 0.886),
+ "cd_ratio": (1.618, 2.618),
+ },
+ "Crab": {
+ "b_retrace": (0.33, 0.68), # AB / XA โ‰ˆ 0.382-0.618
+ "d_retrace": (1.52, 1.72), # AD / XA โ‰ˆ 1.618 (ๆœ€่ฟœๅปถไผธ)
+ "bc_ratio": (0.382, 0.886),
+ "cd_ratio": (2.24, 3.618),
+ },
+}
+
+
+def _in_range(value: float, lo: float, hi: float, tol: float = 0.0) -> bool:
+ """ๆฃ€ๆŸฅ value ๆ˜ฏๅฆๅœจ [lo - tol, hi + tol] ่Œƒๅ›ดๅ†…ใ€‚
+
+ Args:
+ value: ๅพ…ๆฃ€ๆŸฅๆ•ฐๅ€ผใ€‚
+ lo: ๅŒบ้—ดไธ‹็•Œใ€‚
+ hi: ๅŒบ้—ดไธŠ็•Œใ€‚
+ tol: ๅฎนๅทฎใ€‚
+
+ Returns:
+ ๆ˜ฏๅฆๅœจ่Œƒๅ›ดๅ†…ใ€‚
+ """
+ return (lo - tol) <= value <= (hi + tol)
+
+
+# ========================== ๅ†…็ฝฎ่ฐๆณขๆฃ€ๆต‹ๅ™จ ==================================
+
+
+def _find_swings(
+ high: pd.Series,
+ low: pd.Series,
+ window: int = 10,
+) -> Tuple[pd.Series, pd.Series]:
+ """ๆฃ€ๆต‹ๆ‘†ๅŠจ้ซ˜ไฝŽ็‚นใ€‚
+
+ ไฝฟ็”จๆปšๅŠจ็ช—ๅฃๆ–นๆณ•๏ผšๅฝ“ๆŸๆ นK็บฟ็š„้ซ˜็‚น็ญ‰ไบŽๅ‰ๅŽ window ๆ นK็บฟ็š„ๆœ€ๅคงๅ€ผๆ—ถ๏ผŒ
+ ๅˆคๅฎšไธบๆ‘†ๅŠจ้ซ˜็‚น๏ผ›ไฝŽ็‚นๅŒ็†ใ€‚
+
+ Args:
+ high: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+ low: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+ window: ๅŠ็ช—ๅฃๅคงๅฐ๏ผŒๅฎž้™…็ช—ๅฃไธบ 2*window+1ใ€‚
+
+ Returns:
+ (swing_highs, swing_lows) ไธคไธช Series๏ผŒNaN ไฝ็ฝฎ่กจ็คบ้žๆ‘†ๅŠจ็‚นใ€‚
+ """
+ full_window = window * 2 + 1
+ rolling_max = high.rolling(full_window, center=True).max()
+ rolling_min = low.rolling(full_window, center=True).min()
+
+ swing_high = high.where(high == rolling_max)
+ swing_low = low.where(low == rolling_min)
+
+ return swing_high.dropna(), swing_low.dropna()
+
+
+def _merge_swings(
+ swing_highs: pd.Series,
+ swing_lows: pd.Series,
+) -> List[Tuple]:
+ """ๅˆๅนถๆ‘†ๅŠจ้ซ˜ไฝŽ็‚นไธบๆ—ถ้—ดๆŽ’ๅบ็š„ๅบๅˆ—ใ€‚
+
+ Args:
+ swing_highs: ๆ‘†ๅŠจ้ซ˜็‚นๅบๅˆ—ใ€‚
+ swing_lows: ๆ‘†ๅŠจไฝŽ็‚นๅบๅˆ—ใ€‚
+
+ Returns:
+ ๆŽ’ๅบๅˆ—่กจ๏ผŒๆฏไธชๅ…ƒ็ด ไธบ (timestamp, price, type)๏ผŒtype ไธบ "H" ๆˆ– "L"ใ€‚
+ """
+ points = []
+ for ts, price in swing_highs.items():
+ points.append((ts, price, "H"))
+ for ts, price in swing_lows.items():
+ points.append((ts, price, "L"))
+ points.sort(key=lambda x: x[0])
+
+ # ๅŽป้™ค่ฟž็ปญๅŒ็ฑปๅž‹็‚น๏ผˆไฟ็•™ๆžๅ€ผ๏ผ‰
+ merged = []
+ for pt in points:
+ if not merged or merged[-1][2] != pt[2]:
+ merged.append(pt)
+ else:
+ # ๅŒ็ฑปๅž‹ๅ–ๆžๅ€ผ
+ if pt[2] == "H" and pt[1] > merged[-1][1]:
+ merged[-1] = pt
+ elif pt[2] == "L" and pt[1] < merged[-1][1]:
+ merged[-1] = pt
+ return merged
+
+
+def _classify_pattern(
+ x_price: float,
+ a_price: float,
+ b_price: float,
+ c_price: float,
+ d_price: float,
+ tol: float = 0.08,
+) -> Optional[str]:
+ """ๆ นๆฎ Fibonacci ๆฏ”็އๅˆคๆ–ญ XABCD ๅฑžไบŽๅ“ช็ง่ฐๆณขๅฝขๆ€ใ€‚
+
+ Args:
+ x_price: X ็‚นไปทๆ ผใ€‚
+ a_price: A ็‚นไปทๆ ผใ€‚
+ b_price: B ็‚นไปทๆ ผใ€‚
+ c_price: C ็‚นไปทๆ ผใ€‚
+ d_price: D ็‚นไปทๆ ผใ€‚
+ tol: ๆฏ”็އๅฎนๅทฎใ€‚
+
+ Returns:
+ ๅฝขๆ€ๅ็งฐ๏ผˆๅฆ‚ "Gartley"๏ผ‰๏ผŒ่‹ฅไธๅŒน้…ไปปไฝ•ๅฝขๆ€ๅˆ™่ฟ”ๅ›ž Noneใ€‚
+ """
+ xa = abs(a_price - x_price)
+ ab = abs(b_price - a_price)
+ bc = abs(c_price - b_price)
+ cd = abs(d_price - c_price)
+
+ if xa == 0 or ab == 0 or bc == 0:
+ return None
+
+ b_retrace = ab / xa
+ d_retrace = (ab - cd + bc) / xa # ่ฟ‘ไผผ AD/XA๏ผŒ้œ€ๆ นๆฎๆ–นๅ‘่ฐƒๆ•ด
+
+ # ๆ›ด็ฒพ็กฎ็š„ D ็‚นๅ›žๆ’ค่ฎก็ฎ—
+ ad = abs(d_price - a_price)
+ d_retrace = ad / xa
+
+ bc_ratio = bc / ab
+ cd_ratio = cd / bc if bc != 0 else 0.0
+
+ for name, rules in PATTERNS.items():
+ # Primary validation: B retrace and D retrace (most important)
+ if (
+ _in_range(b_retrace, *rules["b_retrace"], tol=tol)
+ and _in_range(d_retrace, *rules["d_retrace"], tol=tol)
+ ):
+ return name
+ return None
+
+
+def _detect_patterns_fallback(
+ df: pd.DataFrame,
+ swing_window: int = 10,
+ tol: float = 0.08,
+) -> List[Dict]:
+ """ๅ†…็ฝฎ่ฐๆณขๅฝขๆ€ๆฃ€ๆต‹๏ผˆๅ›ž้€€ๆ–นๆกˆ๏ผ‰ใ€‚
+
+ ๆต็จ‹๏ผšๆ‰พๆ‘†ๅŠจ็‚น โ†’ ๆžšไธพ5็‚น็ป„ๅˆ โ†’ ้ชŒ่ฏ Fibonacci ๆฏ”็އ โ†’ ่พ“ๅ‡บๅฝขๆ€ใ€‚
+
+ Args:
+ df: OHLCV DataFrame๏ผŒ้œ€ๅซ high/low/close ๅˆ—ใ€‚
+ swing_window: ๆ‘†ๅŠจ็‚นๆฃ€ๆต‹็ช—ๅฃใ€‚
+ tol: Fibonacci ๆฏ”็އๅฎนๅทฎใ€‚
+
+ Returns:
+ ๆฃ€ๆต‹ๅˆฐ็š„ๅฝขๆ€ๅˆ—่กจ๏ผŒๆฏ้กนๅซ pattern/direction/d_index/d_price ็ญ‰ๅญ—ๆฎตใ€‚
+ """
+ swing_highs, swing_lows = _find_swings(df["high"], df["low"], swing_window)
+ merged = _merge_swings(swing_highs, swing_lows)
+
+ if len(merged) < 5:
+ return []
+
+ found = []
+ # ๆป‘ๅŠจ็ช—ๅฃ๏ผŒๆฏๆฌกๅ–5ไธช่ฟž็ปญๆ‘†ๅŠจ็‚นไฝœไธบ X-A-B-C-D ๅ€™้€‰
+ for i in range(len(merged) - 4):
+ pts = merged[i : i + 5]
+ x_ts, x_price, x_type = pts[0]
+ a_ts, a_price, a_type = pts[1]
+ b_ts, b_price, b_type = pts[2]
+ c_ts, c_price, c_type = pts[3]
+ d_ts, d_price, d_type = pts[4]
+
+ # XABCD ๅฟ…้กปไบคๆ›ฟ้ซ˜ไฝŽ
+ types = [p[2] for p in pts]
+ alternating = all(types[j] != types[j + 1] for j in range(4))
+ if not alternating:
+ continue
+
+ pattern_name = _classify_pattern(
+ x_price, a_price, b_price, c_price, d_price, tol=tol
+ )
+ if pattern_name is None:
+ continue
+
+ # ๅˆคๆ–ญ็œ‹ๆถจ/็œ‹่ทŒ๏ผš็œ‹ๆถจๅฝขๆ€ X ไธบไฝŽ็‚น๏ผˆD ๅœจๅบ•้ƒจๅ่ฝฌๅŒบ๏ผ‰
+ if x_type == "L":
+ direction = "bullish"
+ else:
+ direction = "bearish"
+
+ found.append(
+ {
+ "pattern": pattern_name,
+ "direction": direction,
+ "x": (x_ts, x_price),
+ "a": (a_ts, a_price),
+ "b": (b_ts, b_price),
+ "c": (c_ts, c_price),
+ "d": (d_ts, d_price),
+ "d_index": d_ts,
+ "d_price": d_price,
+ }
+ )
+ return found
+
+
+# ========================== pyharmonics ้€‚้…ๅฑ‚ ==============================
+
+
+def _detect_patterns_pyharmonics(
+ df: pd.DataFrame,
+ is_stock: bool = False,
+) -> List[Dict]:
+ """ไฝฟ็”จ pyharmonics ๅบ“ๆฃ€ๆต‹่ฐๆณขๅฝขๆ€ใ€‚
+
+ Args:
+ df: OHLCV DataFrame๏ผŒ้œ€ๅซ open/high/low/close/volume ๅˆ—ใ€‚
+ is_stock: ๆ˜ฏๅฆไธบ่‚ก็ฅจๆ ‡็š„ใ€‚
+
+ Returns:
+ ๆฃ€ๆต‹ๅˆฐ็š„ๅฝขๆ€ๅˆ—่กจ๏ผŒๆ ผๅผไธŽ _detect_patterns_fallback ไธ€่‡ดใ€‚
+
+ Raises:
+ ImportError: pyharmonics ๆœชๅฎ‰่ฃ…ๆ—ถใ€‚
+ Exception: pyharmonics ๅ†…้ƒจ้”™่ฏฏๆ—ถใ€‚
+ """
+ from pyharmonics.technicals import OHLCTechnicals
+
+ tech = OHLCTechnicals(df, is_stock=is_stock)
+ tech.fit()
+
+ found = []
+
+ # pyharmonics ๅฐ†ๅฝขๆ€ๅญ˜ๅ‚จๅœจ tech.matrix ไธญ๏ผˆbearish/bullish ๅˆ†็ฑป๏ผ‰
+ for direction_attr, direction_label in [
+ ("bullish", "bullish"),
+ ("bearish", "bearish"),
+ ]:
+ matrix = getattr(tech, direction_attr, None)
+ if matrix is None:
+ continue
+ for pattern_type, patterns in matrix.items():
+ if not isinstance(patterns, list):
+ continue
+ for p in patterns:
+ try:
+ # pyharmonics Pattern ๅฏน่ฑกๆœ‰ name/x/a/b/c/d ๅฑžๆ€ง
+ d_idx = p.d.idx if hasattr(p.d, "idx") else None
+ d_price = p.d.price if hasattr(p.d, "price") else None
+
+ if d_idx is not None and d_price is not None:
+ # ๅฐ†ๆ•ดๆ•ฐ็ดขๅผ•ๆ˜ ๅฐ„ๅ›ž DataFrame ๆ—ถ้—ดๆˆณ
+ if isinstance(d_idx, int) and d_idx < len(df):
+ d_ts = df.index[d_idx]
+ else:
+ d_ts = d_idx
+
+ found.append(
+ {
+ "pattern": str(
+ getattr(p, "name", pattern_type)
+ ),
+ "direction": direction_label,
+ "d_index": d_ts,
+ "d_price": float(d_price),
+ }
+ )
+ except (AttributeError, TypeError, IndexError):
+ continue
+ return found
+
+
+# ========================== ไฟกๅทๅผ•ๆ“Ž ========================================
+
+
+class SignalEngine:
+ """่ฐๆณขๅฝขๆ€ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ่ฏ†ๅˆซ Gartley/Bat/Butterfly/Crab ็ญ‰ XABCD ไบ”็‚นๅฝขๆ€๏ผŒ
+ ๅœจ D ็‚น๏ผˆPRZ ๆฝœๅœจๅ่ฝฌๅŒบ๏ผ‰็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ ไผ˜ๅ…ˆไฝฟ็”จ pyharmonics ๅบ“๏ผŒ่‹ฅไธๅฏ็”จๅˆ™ๅ›ž้€€ๅˆฐๅ†…็ฝฎๆฃ€ๆต‹ๅ™จใ€‚
+
+ Attributes:
+ is_stock: ๆ˜ฏๅฆไธบ่‚ก็ฅจๆ ‡็š„ใ€‚
+ swing_window: ๆ‘†ๅŠจ็‚นๆฃ€ๆต‹็ช—ๅฃ๏ผˆไป…ๅ†…็ฝฎๆฃ€ๆต‹ๅ™จไฝฟ็”จ๏ผ‰ใ€‚
+ tol: Fibonacci ๆฏ”็އๅฎนๅทฎ๏ผˆไป…ๅ†…็ฝฎๆฃ€ๆต‹ๅ™จไฝฟ็”จ๏ผ‰ใ€‚
+ use_pyharmonics: ่ฟ่กŒๆ—ถ็กฎๅฎšๆ˜ฏๅฆไฝฟ็”จ pyharmonicsใ€‚
+
+ Example:
+ >>> engine = SignalEngine()
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+
+ def __init__(
+ self,
+ is_stock: bool = False,
+ swing_window: int = 10,
+ tol: float = 0.12,
+ ):
+ """ๅˆๅง‹ๅŒ–่ฐๆณขๅฝขๆ€ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ is_stock: ๆ˜ฏๅฆไธบ่‚ก็ฅจ๏ผˆๅฝฑๅ“ pyharmonics ๅ‚ๆ•ฐ๏ผ‰ใ€‚
+ swing_window: ๆ‘†ๅŠจ็‚นๆฃ€ๆต‹ๅŠ็ช—ๅฃๅคงๅฐใ€‚
+ tol: Fibonacci ๆฏ”็އๅŒน้…ๅฎนๅทฎใ€‚
+ """
+ self.is_stock = is_stock
+ self.swing_window = swing_window
+ self.tol = tol
+ self.use_pyharmonics = self._check_pyharmonics()
+
+ @staticmethod
+ def _check_pyharmonics() -> bool:
+ """ๆฃ€ๆต‹ pyharmonics ๆ˜ฏๅฆๅฏ็”จใ€‚
+
+ Returns:
+ True ๅฆ‚ๆžœ pyharmonics ๅฏๆญฃๅธธๅฏผๅ…ฅใ€‚
+ """
+ try:
+ from pyharmonics.technicals import OHLCTechnicals # noqa: F401
+ return True
+ except ImportError:
+ return False
+
+ def _detect(self, df: pd.DataFrame) -> List[Dict]:
+ """ๆฃ€ๆต‹ๅ•ไธชๆ ‡็š„็š„่ฐๆณขๅฝขๆ€ใ€‚
+
+ ไผ˜ๅ…ˆ pyharmonics๏ผŒๅคฑ่ดฅๅˆ™ๅ›ž้€€ๅ†…็ฝฎๆฃ€ๆต‹ๅ™จใ€‚
+
+ Args:
+ df: OHLCV DataFrameใ€‚
+
+ Returns:
+ ๆฃ€ๆต‹ๅˆฐ็š„ๅฝขๆ€ๅˆ—่กจใ€‚
+ """
+ if self.use_pyharmonics:
+ try:
+ return _detect_patterns_pyharmonics(
+ df, is_stock=self.is_stock
+ )
+ except Exception:
+ pass
+ return _detect_patterns_fallback(
+ df, swing_window=self.swing_window, tol=self.tol
+ )
+
+ def generate(
+ self, data_map: Dict[str, pd.DataFrame]
+ ) -> Dict[str, pd.Series]:
+ """ๆ นๆฎ่ฐๆณขๅฝขๆ€ๅœจ D ็‚น็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for symbol, df in data_map.items():
+ signal = pd.Series(0, index=df.index, dtype=int)
+
+ if len(df) < self.swing_window * 4:
+ result[symbol] = signal
+ continue
+
+ patterns = self._detect(df)
+ for p in patterns:
+ d_idx = p.get("d_index")
+ direction = p.get("direction", "")
+ if d_idx is None:
+ continue
+ # ็กฎไฟ d_idx ๅœจ signal index ไธญ
+ if d_idx in signal.index:
+ if direction == "bullish":
+ signal.at[d_idx] = 1
+ elif direction == "bearish":
+ signal.at[d_idx] = -1
+
+ result[symbol] = signal
+ return result
+
+
+# ========================== OKX ๆ•ฐๆฎ่Žทๅ– ====================================
+
+
+def _fetch_okx(
+ inst_id: str, bar: str = "1D", limit: int = 300
+) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ–K็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค "1D"ใ€‚
+ limit: ่Žทๅ–ๆ•ฐ้‡๏ผŒ้ป˜่ฎค 300ใ€‚
+
+ Returns:
+ OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚
+
+ Raises:
+ KeyError: API ่ฟ”ๅ›žๆ ผๅผๅผ‚ๅธธๆ—ถใ€‚
+ """
+ import requests
+
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = [
+ "ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm",
+ ]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+# ========================== ไธปๅ…ฅๅฃ ==========================================
+
+if __name__ == "__main__":
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+
+ print("=== ่ฐๆณขๅฝขๆ€ไฟกๅทๅผ•ๆ“Ž ===\n")
+
+ for sym in symbols:
+ print(f"่Žทๅ– {sym} ๆ•ฐๆฎ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+ print(
+ f" {len(data_map[sym])} ๆ นK็บฟ, "
+ f"{data_map[sym].index[0]:%Y-%m-%d} ~ "
+ f"{data_map[sym].index[-1]:%Y-%m-%d}"
+ )
+
+ engine = SignalEngine(is_stock=False)
+ backend = "pyharmonics" if engine.use_pyharmonics else "ๅ†…็ฝฎๆฃ€ๆต‹ๅ™จ"
+ print(f"\nๆฃ€ๆต‹ๅŽ็ซฏ: {backend}")
+
+ signals = engine.generate(data_map)
+
+ print("\n--- ไฟกๅท็ปŸ่ฎก ---")
+ for sym in symbols:
+ sig = signals[sym]
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"\n{sym} ({len(data_map[sym])} ๆ นK็บฟ):")
+ print(f" ๅšๅคšไฟกๅท: {len(buys)} ไธช")
+ print(f" ๅš็ฉบไฟกๅท: {len(sells)} ไธช")
+ if len(buys) > 0:
+ print(f" ๆœ€่ฟ‘ๅšๅคš: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" ๆœ€่ฟ‘ๅš็ฉบ: {sells.index[-1]:%Y-%m-%d}")
+
+ # ๆ‰“ๅฐๆฃ€ๆต‹ๅˆฐ็š„ๅฝขๆ€่ฏฆๆƒ…
+ print("\n--- ๅฝขๆ€่ฏฆๆƒ… ---")
+ for sym in symbols:
+ patterns = engine._detect(data_map[sym])
+ if patterns:
+ print(f"\n{sym}: ๅ…ฑ {len(patterns)} ไธชๅฝขๆ€")
+ for p in patterns[-5:]: # ๆœ€่ฟ‘5ไธช
+ print(
+ f" {p['pattern']} ({p['direction']}) "
+ f"D็‚น: {p['d_index']}"
+ )
+ else:
+ print(f"\n{sym}: ๆ— ๆฃ€ๆต‹ๅˆฐๅฝขๆ€")
diff --git "a/agent/src/skills/harmonic/references/PRZ\344\272\244\346\230\223.md" "b/agent/src/skills/harmonic/references/PRZ\344\272\244\346\230\223.md"
new file mode 100644
index 000000000..10c5064d0
--- /dev/null
+++ "b/agent/src/skills/harmonic/references/PRZ\344\272\244\346\230\223.md"
@@ -0,0 +1,29 @@
+# PRZ๏ผˆๆฝœๅœจๅ่ฝฌๅŒบ๏ผ‰ไบคๆ˜“
+
+## ไป€ไนˆๆ˜ฏPRZ
+
+PRZ (Potential Reversal Zone) ๆ˜ฏๅคšไธช Fibonacci ๆฐดๅนณๆฑ‡่š็š„ไปทๆ ผๅŒบๅŸŸ๏ผš
+- D็‚นๅฎŒๆˆๆ—ถ็š„ไปทๆ ผๅŒบๅŸŸ
+- ๅคšไธชFibonacciๆŠ•ๅฝฑ็š„ไบคๆฑ‡็‚น
+- ้ซ˜ๆฆ‚็އๅ่ฝฌๅŒบๅŸŸ
+
+## ไบคๆ˜“่ง„ๅˆ™
+
+### ๅ…ฅๅœบ
+- ๅœจPRZๅŒบๅŸŸ็ญ‰ๅพ…ไปทๆ ผๅๅบ”๏ผˆๅ่ฝฌK็บฟๅฝขๆ€๏ผ‰
+- ไธ่ฆๅœจD็‚นๆœช็กฎ่ฎคๅ‰ๆๅ‰ๅ…ฅๅœบ
+
+### ๆญขๆŸ
+- ็œ‹ๆถจๅฝขๆ€๏ผšๆญขๆŸ่ฎพๅœจD็‚นไธ‹ๆ–น
+- ็œ‹่ทŒๅฝขๆ€๏ผšๆญขๆŸ่ฎพๅœจD็‚นไธŠๆ–น
+- ้€šๅธธไธบPRZๅŒบๅŸŸๅฎฝๅบฆ็š„1-1.5ๅ€
+
+### ๆญข็›ˆ
+- ็ฌฌไธ€็›ฎๆ ‡๏ผšAD่…ฟ็š„0.382ๅ›žๆ’ค
+- ็ฌฌไบŒ็›ฎๆ ‡๏ผšAD่…ฟ็š„0.618ๅ›žๆ’ค
+- ็ฌฌไธ‰็›ฎๆ ‡๏ผšA็‚น
+
+## ๆณจๆ„ไบ‹้กน
+- ่ฐๆณขๅฝขๆ€ๅฎŒๆˆไธไปฃ่กจๅฟ…็„ถๅ่ฝฌ
+- ้œ€่ฆ้…ๅˆ้‡่ƒฝๅ’ŒK็บฟๅฝขๆ€็กฎ่ฎค
+- ้ซ˜็บงๆ—ถ้—ดๆก†ๆžถ็š„ๅฝขๆ€ๆ›ดๅฏ้ 
diff --git "a/agent/src/skills/harmonic/references/XABCD\345\275\242\346\200\201.md" "b/agent/src/skills/harmonic/references/XABCD\345\275\242\346\200\201.md"
new file mode 100644
index 000000000..ff55071b2
--- /dev/null
+++ "b/agent/src/skills/harmonic/references/XABCD\345\275\242\346\200\201.md"
@@ -0,0 +1,34 @@
+# XABCD ่ฐๆณขๅฝขๆ€
+
+## ๅฝขๆ€่ฏ†ๅˆซๅŽŸ็†
+
+่ฐๆณขๅฝขๆ€็”ฑ5ไธช็‚นๆž„ๆˆ๏ผšX โ†’ A โ†’ B โ†’ C โ†’ D๏ผŒๆฏๆฎต่ตฐๅŠฟไน‹้—ดๅญ˜ๅœจ็ฒพ็กฎ็š„ Fibonacci ๆฏ”็އๅ…ณ็ณปใ€‚
+
+## Gartley ๅฝขๆ€๏ผˆ222ๅฝขๆ€๏ผ‰
+- AB = 0.618 ร— XA
+- BC = 0.382-0.886 ร— AB
+- CD = 1.27-1.618 ร— BC
+- D = 0.786 ร— XA๏ผˆๅ…ณ้”ฎ๏ผ‰
+- ็œ‹ๆถจGartley๏ผšXไฝŽA้ซ˜๏ผŒDๅœจๅบ•้ƒจๅ่ฝฌ
+- ็œ‹่ทŒGartley๏ผšX้ซ˜AไฝŽ๏ผŒDๅœจ้กถ้ƒจๅ่ฝฌ
+
+## Bat ่™่ ๅฝขๆ€
+- AB = 0.382-0.5 ร— XA
+- BC = 0.382-0.886 ร— AB
+- CD = 1.618-2.618 ร— BC
+- D = 0.886 ร— XA๏ผˆๅ…ณ้”ฎ๏ผ‰
+- B็‚นๅ›žๆ’ค่พƒๆต…๏ผŒD็‚นๆ›ดๆทฑ
+
+## Butterfly ่ด่ถๅฝขๆ€
+- AB = 0.786 ร— XA
+- BC = 0.382-0.886 ร— AB
+- CD = 1.618-2.618 ร— BC
+- D = 1.27 ร— XA๏ผˆ่ถ…ๅ‡บX็‚น๏ผ‰
+- ๅ”ฏไธ€D็‚น่ถ…ๅ‡บX็‚น็š„ๅฝขๆ€
+
+## Crab ่žƒ่Ÿนๅฝขๆ€
+- AB = 0.382-0.618 ร— XA
+- BC = 0.382-0.886 ร— AB
+- CD = 2.24-3.618 ร— BC
+- D = 1.618 ร— XA๏ผˆๅ…ณ้”ฎ๏ผŒๆœ€่ฟœๅปถไผธ๏ผ‰
+- ๆœ€ๆž็ซฏ็š„่ฐๆณขๅฝขๆ€
diff --git a/agent/src/skills/hedging-strategy/SKILL.md b/agent/src/skills/hedging-strategy/SKILL.md
new file mode 100644
index 000000000..8eef0c39d
--- /dev/null
+++ b/agent/src/skills/hedging-strategy/SKILL.md
@@ -0,0 +1,264 @@
+---
+name: hedging-strategy
+description: Hedging strategy design (beta hedge / option protection / tail risk / cross-asset hedging), including hedge-ratio calculation and cost evaluation.
+---
+# Hedging Strategy Design
+
+## Overview
+
+Design systematic hedging plans for existing positions, covering linear hedges (futures / ETFs) and nonlinear hedges (options). Output hedge ratios, cost estimates, and execution plans. Core principle: hedging does not eliminate risk; it exchanges unknown losses for known costs.
+
+## Core Concepts
+
+### 1. Beta Hedging (Futures / ETFs)
+
+**Principle:** hedge portfolio systematic risk (beta) with index futures or ETFs while preserving single-stock alpha.
+
+**Hedge ratio calculation:**
+
+```python
+# Minimum-variance hedge ratio
+hedge_ratio = beta_portfolio * (portfolio_value / futures_value)
+
+# Example: hold a 10 million RMB China A-share portfolio, beta = 1.2
+# CSI 300 futures (IF) contract value = index level ร— 300
+# IF level = 4000, contract value = 4000 ร— 300 = 1.2 million
+# Required number of short contracts = 1.2 ร— (1000 / 120) = 10
+
+# Beta estimation method
+import numpy as np
+# OLS regression: portfolio_returns = alpha + beta * index_returns + epsilon
+beta = np.cov(portfolio_returns, index_returns)[0][1] / np.var(index_returns)
+```
+
+**China A-share beta hedging instruments:**
+
+| Instrument | Code | Contract Multiplier | Margin | Suitable Scale |
+|------|------|---------|--------|---------|
+| IF (CSI 300 futures) | IF2403 | 300 RMB / point | ~12% | > 5 million RMB |
+| IC (CSI 500 futures) | IC2403 | 200 RMB / point | ~14% | > 3 million RMB |
+| IM (CSI 1000 futures) | IM2403 | 200 RMB / point | ~15% | > 3 million RMB |
+| CSI 300 ETF (510300) | 510300.SH | โ€” | Unlevered | Any size |
+
+**Note:** stock-index futures have basis (spot-futures spread). Shorting futures when they trade at a discount brings extra return (basis convergence), while premium pricing adds extra cost.
+
+### 2. Option Hedging Strategies
+
+#### Protective Put
+
+```
+Hold the underlying + buy a put option
+```
+
+- **Cost:** option premium (typically 1-3% of underlying value per month)
+- **Protection range:** fully protected below the strike price
+- **Applicable scenario:** worried about a large drawdown but do not want to sell the position
+
+**China A-share example (50ETF options):**
+```python
+# Hold 1 million shares of 50ETF (about 2.7 million RMB)
+# Buy 100 contracts of 50ETF put 2700 (strike 2.700)
+# Premium โ‰ˆ 0.05 RMB/share ร— 10000 shares/contract ร— 100 contracts = 50,000 RMB
+# Cost ratio = 50,000 / 2,700,000 โ‰ˆ 1.85%
+# Protection effect: losses are capped once ETF falls below 2.700
+```
+
+#### Collar
+
+```
+Hold the underlying + buy an OTM put + sell an OTM call
+```
+
+- **Cost:** close to zero-cost (the call premium offsets the put premium)
+- **Trade-off:** gives up upside above the call strike
+- **Applicable scenario:** willing to cap upside in exchange for free downside protection
+
+**Parameter selection guide:**
+
+| Parameter | Aggressive | Balanced | Conservative |
+|------|--------|--------|--------|
+| Put strike | ATM-5% | ATM-8% | ATM-10% |
+| Call strike | ATM+8% | ATM+5% | ATM+3% |
+| Net cost | Slightly positive | Near zero | Slightly negative (income) |
+| Maximum downside loss | -5% | -8% | -10% |
+| Maximum upside gain | +8% | +5% | +3% |
+
+#### Put Spread (Bear Put Spread Hedge)
+
+```
+Buy a higher-strike put + sell a lower-strike put
+```
+
+- **Cost:** 30-50% cheaper than buying a naked put
+- **Protection range:** only between the two strikes; no protection below the lower strike
+- **Applicable scenario:** hedging against moderate drawdowns while being cost-sensitive
+
+### 3. Tail-Risk Hedging
+
+**Far OTM put strategy:**
+
+```python
+# Buy deep OTM puts (delta โ‰ˆ -0.05 ~ -0.10)
+# Characteristics: expires worthless most of the time, but pays off massively during black swans
+
+# Parameters
+otm_put_strike = current_price * 0.85 # 15% OTM
+cost_per_month = portfolio_value * 0.003 # about 0.3% / month
+expected_payoff_in_crash = portfolio_value * 0.10 # ~10% payoff in a severe selloff
+
+# Cost management: ongoing spend of about 3.6% / year, profitable only in tail events
+# Taleb-style hedge: lose small amounts often, make large gains occasionally
+```
+
+**VIX call strategy (US equities / options market):**
+
+```python
+# Buy OTM VIX calls (strike = current VIX + 10)
+# If VIX jumps from 15 to 40, call value explodes
+# Naturally negatively correlated with an equity portfolio
+
+# China A-share substitutes:
+# China has no VIX futures, so alternatives are:
+# 1. Buy OTM 50ETF puts (similar tail protection)
+# 2. Go long volatility: buy a straddle
+# 3. Allocate to gold ETF (518880.SH) as a safe-haven asset
+```
+
+### 4. Cross-Asset Hedging
+
+**Stock-bond hedge:**
+
+| Stock/Bond Mix | Expected Volatility | Applicable Scenario |
+|---------|-----------|---------|
+| 80/20 | ~15% | Bull market environment, small bond buffer |
+| 60/40 | ~10% | Classic allocation, suitable for most environments |
+| 40/60 | ~7% | Bear market environment, bond-led |
+| Risk Parity | ~8% | Volatility-balanced allocation |
+
+**Note:** stock-bond correlation is not stable. In 2022, US stocks and bonds both fell (rising rates), and the traditional 60/40 mix failed. In China, negative stock-bond correlation has been relatively more stable.
+
+**Stock-commodity hedge (equities + commodities):**
+- During rising inflation: commodities rise while equities come under pressure โ†’ commodities hedge inflation risk
+- During falling inflation: equities rise while commodities come under pressure โ†’ equities drive returns
+- Gold ETF (`518880.SH`): low correlation with China A-shares and effective for tail-risk hedging
+
+### 5. Hedge-Ratio Calculation Methods
+
+**Comparison of three methods:**
+
+```python
+import numpy as np
+from scipy import stats
+
+# Method 1: OLS regression (simplest)
+slope, intercept, r, p, se = stats.linregress(hedge_returns, portfolio_returns)
+hedge_ratio_ols = slope
+
+# Method 2: Minimum variance
+covariance = np.cov(portfolio_returns, hedge_returns)[0][1]
+variance_hedge = np.var(hedge_returns)
+hedge_ratio_mv = covariance / variance_hedge
+
+# Method 3: EWMA (exponentially weighted, more sensitive)
+lambda_param = 0.94 # RiskMetrics default
+ewma_cov = pd.Series(portfolio_returns * hedge_returns).ewm(alpha=1-lambda_param).mean()
+ewma_var = pd.Series(hedge_returns**2).ewm(alpha=1-lambda_param).mean()
+hedge_ratio_ewma = ewma_cov / ewma_var
+
+# Selection guidance:
+# Static hedge (monthly rebalance) -> OLS
+# Dynamic hedge (weekly rebalance) -> EWMA
+# Theoretical analysis -> minimum variance
+```
+
+### 6. Hedging Cost Evaluation
+
+**Cost components:**
+
+| Cost Item | Futures Hedge | Options Hedge | Cross-Asset Hedge |
+|--------|---------|---------|-----------|
+| Direct cost | Margin usage + fees | Premium | Allocation to lower-yield assets |
+| Opportunity cost | Basis cost (discount / premium) | Time decay (Theta) | Earn less in a bull market |
+| Hidden cost | Roll cost | Volatility premium | Rebalancing transaction costs |
+| Annualized estimate | 2-5% (including basis) | 3-8% (depends on IV) | 1-3% (opportunity cost) |
+
+**Cost-benefit decision framework:**
+
+```python
+# Is the hedge worth it?
+hedge_cost_annual = 0.04 # 4% annualized
+expected_loss_without_hedge = 0.15 # 15% expected max loss without hedge
+prob_of_loss = 0.25 # 25% probability
+
+expected_loss = expected_loss_without_hedge * prob_of_loss # = 3.75%
+
+# If hedge_cost > expected_loss -> hedge is relatively expensive
+# If hedge_cost < expected_loss -> hedge is cost-effective
+# Here 4% > 3.75%, so the hedge is marginally expensive, but it may still be worth it because of tail risk
+```
+
+## Analysis Framework
+
+### Five-Step Hedging Design Process
+
+1. **Identify the risk**: what kind of risk does the portfolio face? Systematic (beta) or idiosyncratic (single-name events)?
+2. **Choose the instrument**: linear (futures / ETF) or nonlinear (options)? This depends on the risk shape and budget
+3. **Calculate the ratio**: determine the number of hedge contracts or option lots
+4. **Evaluate the cost**: what is the annualized cost, and is it acceptable?
+5. **Monitor and adjust**: hedge ratios require dynamic adjustment (beta changes, options expire)
+
+### Risk Scenario โ†’ Hedge Instrument Mapping
+
+| Risk Scenario | Recommended Instrument | Cost Level |
+|---------|---------|---------|
+| Systematic broad-market selloff | Short IF / IC futures | Low (margin) |
+| Moderate drawdown (5-10%) | Collar / Put Spread | Low (zero-cost collar) |
+| Black swan (>20% crash) | Far OTM put | Medium (continuous spending) |
+| Rising rates | Short government bond futures (TF / T) | Low |
+| Currency depreciation | FX forwards / options | Medium |
+| Inflation upside surprise | Allocate to commodities / gold | Low (opportunity cost) |
+
+## Output Format
+
+```
+## Hedging Plan โ€” [Portfolio Name]
+
+### Portfolio Overview
+- Portfolio size: [X ten-thousand RMB]
+- Portfolio beta: [X.XX] (vs [benchmark index])
+- Main risk: [systematic / sector concentration / tail]
+
+### Hedging Plan
+- Instrument: [short IF futures / Collar / Put Spread / ...]
+- Hedge ratio: [X.XX]
+- Number of contracts / option lots: [N]
+- Hedge coverage: [X%] (full / partial hedge)
+
+### Cost Evaluation
+- Direct cost: [X ten-thousand RMB / year]
+- Annualized cost ratio: [X%]
+- Margin / premium usage: [X ten-thousand RMB]
+
+### Scenario Analysis
+| Market Move | PnL Without Hedge | PnL With Hedge | Hedge Effect |
+|---------|-----------|-----------|---------|
+| Down 10% | -X | -X | Reduce loss by X |
+| Down 20% | -X | -X | Reduce loss by X |
+| Up 10% | +X | +X | Give up X of upside |
+
+### Execution Notes
+- Entry timing: [specific time / condition]
+- Rebalance frequency: [monthly / quarterly / event-driven]
+- Exit condition: [risk resolution criterion]
+```
+
+## Notes
+
+- China A-share index futures have trading restrictions (intraday opening limits, margin requirements), so actual usable size may be limited
+- Option liquidity is concentrated in near-month and near-the-money contracts; deep OTM options have wide bid-ask spreads
+- Beta is unstable: beta tends to be lower in bull markets and higher in bear markets (meaning the hedge is least sufficient when it is needed most)
+- Collar strategies cap upside, so large rallies in the underlying can materially drag portfolio performance
+- Tail hedging (far OTM puts) loses money most of the time and requires discipline to execute continuously; do not abandon it halfway because it "feels wasteful"
+- Correlations in cross-asset hedges can change violently during crises (trending toward 1), failing exactly when they are needed most
+- Hedge plans should be re-evaluated regularly (at least monthly) for beta and cost
+- This framework is for research backtesting only, does not constitute investment advice, and does not involve live trading execution
diff --git a/agent/src/skills/hk-connect-flow/SKILL.md b/agent/src/skills/hk-connect-flow/SKILL.md
new file mode 100644
index 000000000..7cd155ab0
--- /dev/null
+++ b/agent/src/skills/hk-connect-flow/SKILL.md
@@ -0,0 +1,246 @@
+---
+name: hk-connect-flow
+description: Stock Connect (Shanghai/Shenzhen-Hong Kong) fund flow analysis โ€” Northbound (foreign into A-shares), Southbound (mainland into HK), sector allocation tracking, and cross-border arbitrage signals.
+---
+# Stock Connect Fund Flow Analysis
+
+## Overview
+
+Analyze capital flows through the Shanghai-Hong Kong and Shenzhen-Hong Kong Stock Connect programs. Northbound flows (foreign capital into A-shares) are a key institutional sentiment indicator for the China market; Southbound flows (mainland capital into Hong Kong) reveal mainland investor preference for HK-listed assets. Together they provide a real-time cross-border capital positioning signal.
+
+## Core Concepts
+
+### 1. Stock Connect Architecture
+
+| Channel | Direction | What It Measures |
+|---------|-----------|------------------|
+| Shanghai Connect Northbound | Foreign โ†’ A-shares (SSE) | Foreign institutional A-share appetite |
+| Shenzhen Connect Northbound | Foreign โ†’ A-shares (SZSE) | Foreign institutional A-share appetite (growth bias) |
+| Shanghai Connect Southbound | Mainland โ†’ HK (HKEX) | Mainland capital HK allocation |
+| Shenzhen Connect Southbound | Mainland โ†’ HK (HKEX) | Mainland capital HK allocation |
+
+**Daily quota**: Each channel has a daily net buy quota (~RMB 52B / HKD 42B). Quota utilization >50% = strong directional signal.
+
+### 2. Northbound Flow Analysis (Foreign into A-shares)
+
+**Why Northbound matters:**
+- Foreign institutions (global funds, sovereign wealth funds, hedge funds) are considered "smart money" in A-shares
+- Northbound holdings represent ~4-5% of A-share free-float market cap โ€” small but marginal price-setters
+- Northbound flow correlates with MSCI China index rebalancing and global EM allocation decisions
+
+**Northbound signal framework:**
+
+```python
+# Daily Northbound net buy signals
+def northbound_signal(daily_net_buy_rmb_billion):
+ if daily_net_buy_rmb_billion > 10:
+ return "strong_foreign_buying" # Very large single-day inflow
+ elif daily_net_buy_rmb_billion > 5:
+ return "moderate_foreign_buying"
+ elif daily_net_buy_rmb_billion > 0:
+ return "mild_foreign_buying"
+ elif daily_net_buy_rmb_billion > -5:
+ return "mild_foreign_selling"
+ elif daily_net_buy_rmb_billion > -10:
+ return "moderate_foreign_selling"
+ else:
+ return "strong_foreign_selling" # Panic outflow
+
+# Cumulative flow trend (more important than single-day)
+def northbound_trend(flows_20d, flows_5d):
+ cum_20d = sum(flows_20d)
+ cum_5d = sum(flows_5d)
+
+ if cum_20d > 30 and cum_5d > 10:
+ return "sustained_accumulation" # Strong bullish for A-shares
+ elif cum_20d < -30 and cum_5d < -10:
+ return "sustained_distribution" # Bearish for A-shares
+ elif cum_20d > 0 and cum_5d < 0:
+ return "accumulation_pausing" # Watch for reversal
+ elif cum_20d < 0 and cum_5d > 0:
+ return "distribution_pausing" # Possible bottom formation
+```
+
+**Northbound sector allocation patterns:**
+
+| Sector Preference | Typical Holdings | Signal |
+|-------------------|-----------------|--------|
+| Consumer staples (Moutai, dairy) | 30-35% of holdings | Core allocation, low turnover |
+| Financials (banks, insurance) | 15-20% | Cyclical allocation, rate-sensitive |
+| Technology (semiconductors, software) | 10-15% | Growth allocation, high turnover |
+| Healthcare (CXO, innovative pharma) | 8-12% | Structural growth bet |
+| New energy (EV, solar) | 5-10% | Thematic, high volatility |
+
+**Sector rotation signal:**
+- When Northbound increases consumer staples weight โ†’ defensive positioning
+- When Northbound increases tech/new energy weight โ†’ risk-on, growth chasing
+- When Northbound reduces across all sectors โ†’ broad risk-off, usually FX-driven (CNY weakening)
+
+### 3. Southbound Flow Analysis (Mainland into HK)
+
+**Why Southbound matters:**
+- Mainland investors are the marginal buyer for many HK mid/small caps
+- Southbound flows are driven by: AH premium (A vs H discount arbitrage), dividend yield hunting, and tech platform allocation (Tencent, Alibaba, Meituan)
+- Insurance and pension funds increasingly use Southbound for international diversification
+
+**Southbound signal framework:**
+
+```python
+# Southbound focus areas
+southbound_targets = {
+ "tech_platforms": ["0700.HK", "9988.HK", "3690.HK", "9618.HK"],
+ "high_dividend": ["0939.HK", "1398.HK", "0883.HK", "2628.HK"],
+ "ah_discount": [], # Dynamically calculated based on AH premium index
+}
+
+def southbound_signal(daily_net_buy_hkd_billion):
+ if daily_net_buy_hkd_billion > 5:
+ return "strong_mainland_buying"
+ elif daily_net_buy_hkd_billion > 2:
+ return "moderate_mainland_buying"
+ elif daily_net_buy_hkd_billion < -2:
+ return "mainland_selling"
+ else:
+ return "neutral"
+```
+
+**Southbound investment patterns:**
+1. **Dividend yield arbitrage**: mainland funds buy HK-listed banks/telecoms for higher dividend yield (H-share dividends are often 2-3% higher than A-share equivalents due to lower prices)
+2. **Tech platform allocation**: Tencent, Alibaba, Meituan are HK-only or HK-primary listings; mainland tech allocation must go Southbound
+3. **AH premium arbitrage**: when AH premium index >130, arbitrage capital flows Southbound to buy cheaper H-shares
+
+### 4. AH Premium Index
+
+The Hang Seng AH Premium Index (HSAHP) tracks the average premium of A-shares over their H-share counterparts for dual-listed companies.
+
+```python
+# AH Premium interpretation
+ah_premium_index = 130 # A-shares trade 30% above H-shares on average
+
+if ah_premium_index > 140:
+ signal = "extreme_ah_premium"
+ action = "favor H-shares over A-shares for dual-listed names"
+elif ah_premium_index > 125:
+ signal = "elevated_ah_premium"
+ action = "mild H-share preference"
+elif ah_premium_index < 110:
+ signal = "compressed_ah_premium"
+ action = "A-shares relatively cheap vs H; unusual, investigate"
+else:
+ signal = "normal_range"
+```
+
+### 5. Cross-Border Flow Composite Signal
+
+**Multi-dimensional scoring:**
+
+```python
+connect_score = {
+ "northbound_flow": 0, # -2 to +2: 20-day cumulative NB flow direction
+ "northbound_breadth": 0, # -2 to +2: number of NB top-10 holdings being added to
+ "southbound_flow": 0, # -2 to +2: 20-day cumulative SB flow direction
+ "ah_premium": 0, # -2 to +2: AH premium level (high = favor HK)
+ "fx_direction": 0, # -2 to +2: CNY strength (strong CNY = NB inflow support)
+}
+
+# Total range: -10 to +10
+# > +5: strong cross-border risk-on, favor A-shares
+# +2 to +5: mild bullish
+# -2 to +2: neutral / mixed
+# < -2: cross-border risk-off, foreign selling A-shares
+# < -5: strong risk-off, likely FX-driven
+```
+
+## Data Access
+
+### Via Tushare (A-share perspective)
+
+```python
+import tushare as ts
+pro = ts.pro_api()
+
+# Daily Northbound/Southbound aggregate flows
+df = pro.moneyflow_hsgt(start_date="20260101", end_date="20260330")
+# Columns: trade_date, ggt_ss (Shanghai SB), ggt_sz (Shenzhen SB),
+# hgt (Shanghai NB), sgt (Shenzhen NB), north_money, south_money
+
+# Top 10 Northbound active stocks
+df = pro.hsgt_top10(trade_date="20260328", market_type="1") # 1=Shanghai, 3=Shenzhen
+# Columns: trade_date, ts_code, name, close, change, rank, market_type,
+# amount (trade amount), net_amount (net buy), buy, sell
+```
+
+### Via yfinance (HK perspective)
+
+```python
+import yfinance as yf
+
+# HK-listed stocks price data
+tencent = yf.download("0700.HK", start="2025-01-01", end="2026-03-30", progress=False)
+alibaba = yf.download("9988.HK", start="2025-01-01", end="2026-03-30", progress=False)
+
+# AH Premium Index (proxy via Hang Seng indices)
+hsi = yf.download("^HSI", start="2025-01-01", end="2026-03-30", progress=False)
+```
+
+### Key Data Points to Track
+
+| Metric | Source | Frequency | Threshold |
+|--------|--------|-----------|-----------|
+| Northbound daily net buy | Tushare / HKEX | Daily | >RMB 5B = significant |
+| Northbound 20-day cumulative | Calculated | Daily | >RMB 30B = trend |
+| Southbound daily net buy | Tushare / HKEX | Daily | >HKD 3B = significant |
+| AH Premium Index | Hang Seng | Daily | >130 = H-share value |
+| Quota utilization | HKEX | Intraday | >50% = strong conviction |
+| NB Top 10 concentration | Tushare | Daily | Top 3 names >50% = concentrated bet |
+
+## Output Format
+
+```
+## Stock Connect Flow Analysis โ€” [Date Range]
+
+### Northbound (Foreign โ†’ A-shares)
+- **20-day cumulative**: [+/- RMB X.XB]
+- **5-day trend**: [accelerating / decelerating / reversing]
+- **Daily average**: [RMB X.XB]
+- **Quota utilization**: [X%]
+- **Signal**: [sustained accumulation / distribution / neutral]
+
+### Northbound Sector Allocation
+- **Adding to**: [sector1 (top names), sector2]
+- **Reducing**: [sector1, sector2]
+- **Rotation direction**: [defensive / cyclical / growth]
+
+### Southbound (Mainland โ†’ HK)
+- **20-day cumulative**: [+/- HKD X.XB]
+- **Focus names**: [Tencent, Alibaba, bank names]
+- **Driver**: [dividend yield / tech allocation / AH arbitrage]
+
+### AH Premium
+- **Current index**: [XXX]
+- **Historical percentile**: [X%]
+- **Implication**: [favor H-shares / neutral / favor A-shares]
+
+### Composite Signal
+| Dimension | Score (-2~+2) | Basis |
+|-----------|---------------|-------|
+| NB flow | +1 | Cumulative +RMB 15B over 20 days |
+| NB breadth | +2 | Adding across 8 of top 10 |
+| SB flow | 0 | Flat |
+| AH premium | -1 | AH premium at 135 (H relatively cheap) |
+| FX | +1 | CNY stable/strengthening |
+
+### Cross-Market Implication
+- **A-share outlook**: [bullish / neutral / bearish] (NB perspective)
+- **HK outlook**: [bullish / neutral / bearish] (SB + AH perspective)
+- **Arbitrage**: [AH premium trade: buy H / sell A for dual-listed names]
+```
+
+## Notes
+
+- Northbound flow is the single most-watched institutional indicator for A-shares; it often leads index turns by 1-3 days
+- Quarter-end and MSCI rebalancing dates (Feb/May/Aug/Nov) cause mechanical flow distortions โ€” filter these out for signal purity
+- CNY/USD exchange rate is a key driver of Northbound flow; USD strength typically triggers NB outflows regardless of A-share fundamentals
+- Southbound flow can be distorted by dividend arbitrage (mainland funds buy before ex-div, creating artificial inflow spikes)
+- Stock Connect data is freely available from HKEX website and Tushare API
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/ichimoku/SKILL.md b/agent/src/skills/ichimoku/SKILL.md
new file mode 100644
index 000000000..06c62def7
--- /dev/null
+++ b/agent/src/skills/ichimoku/SKILL.md
@@ -0,0 +1,45 @@
+---
+name: ichimoku
+description: Ichimoku Kinko Hyo five-line system signal engine. A standalone Japanese technical-analysis school that generates trading signals from Tenkan/Kijun crossovers, cloud position, and Chikou confirmation. Pure pandas implementation.
+---
+# Ichimoku Kinko Hyo
+
+## Purpose
+
+A standalone Japanese technical analysis framework that uses a five-line system and the cloud to provide a complete trend-evaluation structure:
+
+| Line | Japanese | Calculation | Meaning |
+|----|------|------|------|
+| Conversion line | Tenkan-sen | (9H+9L)/2 | Short-term trend |
+| Base line | Kijun-sen | (26H+26L)/2 | Medium-term trend |
+| Leading Span A | Senkou Span A | (Tenkan+Kijun)/2 shifted forward by 26 | Upper cloud boundary |
+| Leading Span B | Senkou Span B | (52H+52L)/2 shifted forward by 26 | Lower cloud boundary |
+| Lagging Span | Chikou Span | Closing price shifted backward by 26 | Trend confirmation |
+
+## Signal Logic
+
+Signals are triggered only on TK crossover events, with three filters:
+- **Strong buy**: bullish TK cross + price above the cloud + bullish cloud (A > B)
+- **Strong sell**: bearish TK cross + price below the cloud + bearish cloud (A < B)
+- All other cases โ†’ stand aside
+
+Warm-up requires 78 candles (52+26).
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| tenkan_period | 9 | Tenkan-sen period |
+| kijun_period | 26 | Kijun-sen period |
+| senkou_b_period | 52 | Senkou Span B period |
+| displacement | 26 | Forward/backward shift period |
+
+## Dependencies
+
+```bash
+pip install pandas numpy requests
+```
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/ichimoku/example_signal_engine.py b/agent/src/skills/ichimoku/example_signal_engine.py
new file mode 100644
index 000000000..41c331cf9
--- /dev/null
+++ b/agent/src/skills/ichimoku/example_signal_engine.py
@@ -0,0 +1,195 @@
+"""ไธ€็›ฎๅ‡่กก่กจ๏ผˆIchimoku Kinko Hyo๏ผ‰ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ไบ”็บฟ็ณป็ปŸ๏ผš่ฝฌๆข็บฟ/ๅŸบๅ‡†็บฟไบคๅ‰่งฆๅ‘๏ผŒไบ‘ๅธฆไฝ็ฝฎ+ๆ–นๅ‘ไธ‰้‡่ฟ‡ๆปคใ€‚
+็บฏ pandas ๅฎž็Žฐ๏ผŒๆ— ๅค–้ƒจๆŠ€ๆœฏๅˆ†ๆžๅบ“ไพ่ต–ใ€‚
+"""
+
+from typing import Dict, Optional
+
+import pandas as pd
+
+
+class SignalEngine:
+ """ไธ€็›ฎๅ‡่กก่กจไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ้€š่ฟ‡ TK ไบคๅ‰ไบ‹ไปถ่งฆๅ‘๏ผŒไธ‰้‡่ฟ‡ๆปค็”Ÿๆˆ้ซ˜่ดจ้‡ไบคๆ˜“ไฟกๅท๏ผš
+ 1. ่ฝฌๆข็บฟ/ๅŸบๅ‡†็บฟ้‡‘ๅ‰ๆˆ–ๆญปๅ‰๏ผˆ่งฆๅ‘ๆกไปถ๏ผ‰
+ 2. ไปทๆ ผ็›ธๅฏนไบ‘ๅธฆ็š„ไฝ็ฝฎ๏ผˆๆ–นๅ‘็กฎ่ฎค๏ผ‰
+ 3. ไบ‘ๅธฆ่‡ช่บซๆ–นๅ‘๏ผˆ่ถ‹ๅŠฟ็กฎ่ฎค๏ผ‰
+
+ Attributes:
+ tenkan_period: ่ฝฌๆข็บฟๅ‘จๆœŸใ€‚
+ kijun_period: ๅŸบๅ‡†็บฟๅ‘จๆœŸใ€‚
+ senkou_b_period: ๅ…ˆ่กŒๅธฆBๅ‘จๆœŸใ€‚
+ displacement: ๅ‰็งป/ๅŽ็งปๅ‘จๆœŸใ€‚
+
+ Example:
+ >>> engine = SignalEngine()
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+
+ def __init__(
+ self,
+ tenkan_period: int = 9,
+ kijun_period: int = 26,
+ senkou_b_period: int = 52,
+ displacement: int = 26,
+ ):
+ """ๅˆๅง‹ๅŒ–ไธ€็›ฎๅ‡่กก่กจไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ tenkan_period: ่ฝฌๆข็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค9ใ€‚
+ kijun_period: ๅŸบๅ‡†็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค26ใ€‚
+ senkou_b_period: ๅ…ˆ่กŒๅธฆBๅ‘จๆœŸ๏ผŒ้ป˜่ฎค52ใ€‚
+ displacement: ๅ‰็งป/ๅŽ็งปๅ‘จๆœŸ๏ผŒ้ป˜่ฎค26ใ€‚
+ """
+ self.tenkan_period = tenkan_period
+ self.kijun_period = kijun_period
+ self.senkou_b_period = senkou_b_period
+ self.displacement = displacement
+
+ def _donchian_mid(
+ self, high: pd.Series, low: pd.Series, period: int
+ ) -> pd.Series:
+ """่ฎก็ฎ— Donchian ้€š้“ไธญ็บฟใ€‚
+
+ ๅ…ฌๅผ: (highest_high(period) + lowest_low(period)) / 2
+
+ Args:
+ high: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+ low: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+ period: ๅ›ž็œ‹ๅ‘จๆœŸใ€‚
+
+ Returns:
+ Donchian ้€š้“ไธญ็บฟๅบๅˆ—ใ€‚
+ """
+ return (high.rolling(period).max() + low.rolling(period).min()) / 2
+
+ def generate(
+ self, data_map: Dict[str, pd.DataFrame]
+ ) -> Dict[str, pd.Series]:
+ """ๆ นๆฎไธ€็›ฎๅ‡่กก่กจไบ”็บฟ็ณป็ปŸ็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ warmup = self.senkou_b_period + self.displacement
+
+ for symbol, df in data_map.items():
+ signal = pd.Series(0, index=df.index, dtype=int)
+
+ if len(df) < warmup:
+ result[symbol] = signal
+ continue
+
+ high = df["high"]
+ low = df["low"]
+ close = df["close"]
+
+ # --- ไบ”็บฟ่ฎก็ฎ— ---
+ tenkan = self._donchian_mid(high, low, self.tenkan_period)
+ kijun = self._donchian_mid(high, low, self.kijun_period)
+ span_a = ((tenkan + kijun) / 2).shift(self.displacement)
+ span_b = self._donchian_mid(
+ high, low, self.senkou_b_period
+ ).shift(self.displacement)
+ # chikou = close.shift(-self.displacement) # ไธๅ‚ไธŽไฟกๅท่ฎก็ฎ—
+
+ # --- TK ไบคๅ‰ๆฃ€ๆต‹ ---
+ tk_cross_up = (tenkan > kijun) & (
+ tenkan.shift(1) <= kijun.shift(1)
+ )
+ tk_cross_down = (tenkan < kijun) & (
+ tenkan.shift(1) >= kijun.shift(1)
+ )
+
+ # --- ไบ‘ๅธฆไฝ็ฝฎ ---
+ cloud_top = pd.concat([span_a, span_b], axis=1).max(axis=1)
+ cloud_bottom = pd.concat([span_a, span_b], axis=1).min(axis=1)
+ above_cloud = close > cloud_top
+ below_cloud = close < cloud_bottom
+
+ # --- ไบ‘ๅธฆๆ–นๅ‘ ---
+ bullish_cloud = span_a > span_b
+ bearish_cloud = span_a < span_b
+
+ # --- ไธ‰้‡่ฟ‡ๆปคไฟกๅท ---
+ buy = tk_cross_up & above_cloud & bullish_cloud
+ sell = tk_cross_down & below_cloud & bearish_cloud
+ signal = buy.astype(int) - sell.astype(int)
+
+ result[symbol] = signal
+
+ return result
+
+
+def _fetch_okx(
+ inst_id: str, bar: str = "1D", limit: int = 300
+) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ–K็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค "1D"ใ€‚
+ limit: ่Žทๅ–ๆ•ฐ้‡๏ผŒ้ป˜่ฎค 300ใ€‚
+
+ Returns:
+ OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚
+
+ Raises:
+ KeyError: API ่ฟ”ๅ›žๆ ผๅผๅผ‚ๅธธๆ—ถใ€‚
+ """
+ import requests
+
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = [
+ "ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm",
+ ]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+if __name__ == "__main__":
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+
+ print("=== ไธ€็›ฎๅ‡่กก่กจไฟกๅทๅผ•ๆ“Ž ===\n")
+
+ for sym in symbols:
+ print(f"่Žทๅ– {sym} ๆ•ฐๆฎ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+ print(f" {len(data_map[sym])} ๆ นK็บฟ, "
+ f"{data_map[sym].index[0]:%Y-%m-%d} ~ "
+ f"{data_map[sym].index[-1]:%Y-%m-%d}")
+
+ engine = SignalEngine()
+ signals = engine.generate(data_map)
+
+ print("\n--- ไฟกๅท็ปŸ่ฎก ---")
+ for sym in symbols:
+ sig = signals[sym]
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"\n{sym} ({len(data_map[sym])} ๆ นK็บฟ):")
+ print(f" ๅšๅคšไฟกๅท: {len(buys)} ไธช")
+ print(f" ๅš็ฉบไฟกๅท: {len(sells)} ไธช")
+ if len(buys) > 0:
+ print(f" ๆœ€่ฟ‘ๅšๅคš: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" ๆœ€่ฟ‘ๅš็ฉบ: {sells.index[-1]:%Y-%m-%d}")
diff --git "a/agent/src/skills/ichimoku/references/\344\272\224\347\272\277\350\256\241\347\256\227.md" "b/agent/src/skills/ichimoku/references/\344\272\224\347\272\277\350\256\241\347\256\227.md"
new file mode 100644
index 000000000..be44cc22d
--- /dev/null
+++ "b/agent/src/skills/ichimoku/references/\344\272\224\347\272\277\350\256\241\347\256\227.md"
@@ -0,0 +1,38 @@
+# ไธ€็›ฎๅ‡่กก่กจไบ”็บฟ่ฎก็ฎ—
+
+## ่ฝฌๆข็บฟ๏ผˆTenkan-sen๏ผ‰
+```
+tenkan = (highest_high(9) + lowest_low(9)) / 2
+```
+ๅๆ˜ ็ŸญๆœŸ๏ผˆ็บฆ2ๅ‘จ๏ผ‰็š„ไปทๆ ผไธญ็‚นใ€‚
+
+## ๅŸบๅ‡†็บฟ๏ผˆKijun-sen๏ผ‰
+```
+kijun = (highest_high(26) + lowest_low(26)) / 2
+```
+ๅๆ˜ ไธญๆœŸ๏ผˆ็บฆ1ไธชๆœˆ๏ผ‰็š„ไปทๆ ผไธญ็‚นใ€‚ๅŸบๅ‡†็บฟไนŸๆ˜ฏไปทๆ ผ็š„"ๅ‡่กก็‚น"ใ€‚
+
+## ๅ…ˆ่กŒๅธฆA๏ผˆSenkou Span A๏ผ‰
+```
+span_a = (tenkan + kijun) / 2 # ๅ‰็งป26ๅ‘จๆœŸ
+```
+ๅ…ˆ่กŒๅธฆAๆ˜ฏ่ฝฌๆข็บฟๅ’ŒๅŸบๅ‡†็บฟ็š„ๅนณๅ‡ๅ€ผ๏ผŒๅ‰็งป26ๅ‘จๆœŸ็ป˜ๅˆถใ€‚
+
+## ๅ…ˆ่กŒๅธฆB๏ผˆSenkou Span B๏ผ‰
+```
+span_b = (highest_high(52) + lowest_low(52)) / 2 # ๅ‰็งป26ๅ‘จๆœŸ
+```
+ๅ…ˆ่กŒๅธฆBๆ˜ฏ52ๅ‘จๆœŸ็š„ไธญ็‚น๏ผŒๅ‰็งป26ๅ‘จๆœŸ็ป˜ๅˆถใ€‚
+
+## ่ฟŸ่กŒ็บฟ๏ผˆChikou Span๏ผ‰
+```
+chikou = close # ๅŽ็งป26ๅ‘จๆœŸ็ป˜ๅˆถ
+```
+ๅฝ“ๅ‰ๆ”ถ็›˜ไปทๅŽ็งป26ๅ‘จๆœŸใ€‚็”จไบŽ็กฎ่ฎค่ถ‹ๅŠฟ๏ผš่ฟŸ่กŒ็บฟๅœจไปทๆ ผไธŠๆ–นไธบๅคšๅคด๏ผŒไธ‹ๆ–นไธบ็ฉบๅคดใ€‚
+
+## ไบ‘ๅธฆ๏ผˆKumo๏ผ‰
+
+ๅ…ˆ่กŒๅธฆAๅ’Œๅ…ˆ่กŒๅธฆBไน‹้—ด็š„ๅŒบๅŸŸ็งฐไธบ"ไบ‘ๅธฆ"ใ€‚
+- A > B๏ผš็œ‹ๆถจไบ‘๏ผˆ้€šๅธธ็ป˜ๅˆถไธบ็ปฟ่‰ฒ๏ผ‰
+- A < B๏ผš็œ‹่ทŒไบ‘๏ผˆ้€šๅธธ็ป˜ๅˆถไธบ็บข่‰ฒ๏ผ‰
+- ไบ‘ๅธฆๅŽšๅบฆๅๆ˜ ๆ”ฏๆ’‘/้˜ปๅŠ›ๅผบๅบฆ
diff --git "a/agent/src/skills/ichimoku/references/\344\277\241\345\217\267\347\263\273\347\273\237.md" "b/agent/src/skills/ichimoku/references/\344\277\241\345\217\267\347\263\273\347\273\237.md"
new file mode 100644
index 000000000..06c42a4d7
--- /dev/null
+++ "b/agent/src/skills/ichimoku/references/\344\277\241\345\217\267\347\263\273\347\273\237.md"
@@ -0,0 +1,28 @@
+# ไธ€็›ฎๅ‡่กก่กจไฟกๅท็ณป็ปŸ
+
+## TKไบคๅ‰๏ผˆๆ ธๅฟƒไฟกๅท๏ผ‰
+
+### ้‡‘ๅ‰๏ผˆ็œ‹ๆถจ๏ผ‰
+่ฝฌๆข็บฟไปŽไธ‹ๆ–น็ฉฟ่ถŠๅŸบๅ‡†็บฟ๏ผš
+- **ๅผบ้‡‘ๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆไธŠๆ–น
+- **ไธญ้‡‘ๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆๅ†…้ƒจ
+- **ๅผฑ้‡‘ๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆไธ‹ๆ–น
+
+### ๆญปๅ‰๏ผˆ็œ‹่ทŒ๏ผ‰
+่ฝฌๆข็บฟไปŽไธŠๆ–น็ฉฟ่ถŠๅŸบๅ‡†็บฟ๏ผš
+- **ๅผบๆญปๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆไธ‹ๆ–น
+- **ไธญๆญปๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆๅ†…้ƒจ
+- **ๅผฑๆญปๅ‰**๏ผšไบคๅ‰ๅ‘็”Ÿๅœจไบ‘ๅธฆไธŠๆ–น
+
+## ไธ‰้‡่ฟ‡ๆปค
+
+ๆœฌๅผ•ๆ“Žไฝฟ็”จไธ‰้‡่ฟ‡ๆปค็กฎไฟไฟกๅท่ดจ้‡๏ผš
+1. **TKไบคๅ‰**๏ผš่งฆๅ‘ๆกไปถ
+2. **ไปทๆ ผไธŽไบ‘็š„ๅ…ณ็ณป**๏ผšไปทๆ ผๅœจไบ‘ไธŠๆ–น็œ‹ๅคš๏ผŒไบ‘ไธ‹ๆ–น็œ‹็ฉบ
+3. **ไบ‘็š„ๆ–นๅ‘**๏ผšๅ…ˆ่กŒๅธฆA > Bไธบ็œ‹ๆถจไบ‘๏ผŒๅไน‹็œ‹่ทŒ
+
+ไธ‰ไธชๆกไปถๅฟ…้กปไธ€่‡ดๆ‰ไผš็”Ÿๆˆไฟกๅทใ€‚
+
+## ้ข„็ƒญ่ฆๆฑ‚
+
+้œ€่ฆ่‡ณๅฐ‘ 78 ๆ นK็บฟ๏ผˆ52ๅ‘จๆœŸ่ฎก็ฎ— + 26ๅ‘จๆœŸไฝ็งป๏ผ‰ๆ‰่ƒฝ็”Ÿๆˆๆœ‰ๆ•ˆไฟกๅทใ€‚
diff --git a/agent/src/skills/liquidation-heatmap/SKILL.md b/agent/src/skills/liquidation-heatmap/SKILL.md
new file mode 100644
index 000000000..33d82d6c8
--- /dev/null
+++ b/agent/src/skills/liquidation-heatmap/SKILL.md
@@ -0,0 +1,285 @@
+---
+name: liquidation-heatmap
+description: Liquidation level analysis and heatmap interpretation โ€” identify leveraged position concentration, liquidation cascades, stop-hunt zones, and use liquidation data as support/resistance signals.
+---
+# Liquidation Heatmap & Level Analysis
+
+## Overview
+
+Analyze the distribution of leveraged positions and their liquidation price levels to identify zones where forced selling/buying will accelerate price moves. Liquidation clusters act as "magnets" โ€” price tends to be attracted toward large liquidation concentrations because market makers and whales profit from triggering cascading liquidations.
+
+## Core Concepts
+
+### 1. Liquidation Mechanics
+
+**How liquidation works:**
+
+```python
+# Long position liquidation
+long_liquidation_price = entry_price * (1 - 1/leverage + maintenance_margin)
+
+# Short position liquidation
+short_liquidation_price = entry_price * (1 + 1/leverage - maintenance_margin)
+
+# Example: BTC long at $65,000, 10x leverage, 0.5% maintenance margin
+# Liquidation: $65,000 * (1 - 1/10 + 0.005) = $58,825
+# A 9.5% move against the position triggers liquidation
+```
+
+**Leverage and liquidation distance:**
+
+| Leverage | Liquidation Distance (Long) | Liquidation Distance (Short) |
+|----------|----------------------------|------------------------------|
+| 2x | ~50% drop | ~50% rise |
+| 5x | ~20% drop | ~20% rise |
+| 10x | ~10% drop | ~10% rise |
+| 20x | ~5% drop | ~5% rise |
+| 50x | ~2% drop | ~2% rise |
+| 100x | ~1% drop | ~1% rise |
+
+### 2. Liquidation Heatmap Interpretation
+
+A liquidation heatmap shows where liquidation orders are concentrated across different price levels, typically color-coded by density.
+
+**Reading the heatmap:**
+
+```
+Price Level Long Liquidations Short Liquidations Interpretation
+$70,000 โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Heavy short liquidation zone
+$68,000 โ–‘โ–‘โ–‘โ–‘ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Moderate short liquidation
+$66,000 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ Balanced (current price area)
+$64,000 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘โ–‘ Moderate long liquidation
+$62,000 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆ โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ Heavy long liquidation zone
+```
+
+**Key principles:**
+1. **Liquidation clusters are magnets**: price tends to gravitate toward large liquidation pools because the forced orders provide liquidity for whales to fill their positions
+2. **Liquidation cascades**: when a cluster gets hit, the forced selling/buying pushes price further, potentially triggering the next cluster โ†’ cascade effect
+3. **After liquidation wipe**: once a large cluster is liquidated, that price level often becomes support/resistance (overleveraged positions are gone)
+
+### 3. Liquidation Level Identification
+
+```python
+def identify_liquidation_clusters(open_interest_by_price, leverage_distribution):
+ """
+ Estimate where liquidation clusters exist based on
+ open interest and leverage distribution.
+ """
+ clusters = []
+
+ for price_level in price_range:
+ # Long liquidations: positions opened above this level with high leverage
+ long_liq_volume = estimate_long_liq_at_price(
+ open_interest_by_price, leverage_distribution, price_level
+ )
+
+ # Short liquidations: positions opened below this level with high leverage
+ short_liq_volume = estimate_short_liq_at_price(
+ open_interest_by_price, leverage_distribution, price_level
+ )
+
+ total = long_liq_volume + short_liq_volume
+
+ if total > significance_threshold:
+ clusters.append({
+ "price": price_level,
+ "long_liq": long_liq_volume,
+ "short_liq": short_liq_volume,
+ "type": "long" if long_liq_volume > short_liq_volume else "short",
+ "magnitude": total,
+ })
+
+ return sorted(clusters, key=lambda x: x["magnitude"], reverse=True)
+```
+
+### 4. Liquidation-Based Trading Signals
+
+**Signal 1: Liquidation Magnet**
+```python
+def liquidation_magnet_signal(current_price, clusters):
+ """
+ Price is likely to move toward the nearest large liquidation cluster.
+ """
+ # Find nearest cluster above and below
+ above = [c for c in clusters if c["price"] > current_price]
+ below = [c for c in clusters if c["price"] < current_price]
+
+ nearest_above = min(above, key=lambda c: c["price"] - current_price) if above else None
+ nearest_below = min(below, key=lambda c: current_price - c["price"]) if below else None
+
+ if nearest_above and nearest_below:
+ above_magnitude = nearest_above["magnitude"]
+ below_magnitude = nearest_below["magnitude"]
+
+ if above_magnitude > below_magnitude * 2:
+ return "upward_magnet" # Larger cluster above โ†’ price likely moves up
+ elif below_magnitude > above_magnitude * 2:
+ return "downward_magnet" # Larger cluster below โ†’ price likely moves down
+ else:
+ return "balanced" # Both sides have similar clusters
+```
+
+**Signal 2: Cascade Risk**
+```python
+def cascade_risk(current_price, clusters, direction="down"):
+ """
+ Assess risk of liquidation cascade โ€” multiple clusters stacked close together.
+ """
+ if direction == "down":
+ relevant = sorted([c for c in clusters if c["price"] < current_price and c["type"] == "long"],
+ key=lambda c: c["price"], reverse=True)
+ else:
+ relevant = sorted([c for c in clusters if c["price"] > current_price and c["type"] == "short"],
+ key=lambda c: c["price"])
+
+ if len(relevant) < 2:
+ return "low_cascade_risk"
+
+ # Check if clusters are stacked within 5% of each other
+ gaps = []
+ for i in range(len(relevant) - 1):
+ gap = abs(relevant[i]["price"] - relevant[i+1]["price"]) / current_price * 100
+ gaps.append(gap)
+
+ if min(gaps) < 2:
+ return "high_cascade_risk" # Clusters stacked tightly โ†’ cascade likely
+ elif min(gaps) < 5:
+ return "moderate_cascade_risk"
+ else:
+ return "low_cascade_risk"
+```
+
+**Signal 3: Post-Liquidation Support/Resistance**
+```python
+def post_liquidation_sr(price_history, liquidation_events):
+ """
+ After a large liquidation event, that price level often becomes S/R.
+ """
+ sr_levels = []
+ for event in liquidation_events:
+ if event.total_liquidated > 100_000_000: # >$100M liquidated
+ sr_levels.append({
+ "price": event.price_level,
+ "type": "support" if event.liquidation_type == "long" else "resistance",
+ "strength": event.total_liquidated,
+ "date": event.date,
+ })
+ return sr_levels
+```
+
+### 5. Liquidation Data Metrics
+
+**Key metrics to track:**
+
+| Metric | Description | Signal |
+|--------|-------------|--------|
+| 24h total liquidations | Total USD liquidated across all exchanges | > $500M = extreme, volatility spike |
+| Long/Short liquidation ratio | Longs liquidated / Shorts liquidated | > 2 = longs squeezed, < 0.5 = shorts squeezed |
+| Largest single liquidation | Biggest individual position liquidated | > $10M = whale liquidation |
+| OI change post-liquidation | Open interest change after event | Large OI drop = leverage washed out (healthy) |
+| Exchange-specific liquidation | Which exchange had most liquidations | Indicates where leverage is concentrated |
+
+**Liquidation volume interpretation:**
+
+| 24h Liquidations | Market State | Implication |
+|-----------------|-------------|-------------|
+| > $1B | Extreme event | Major leverage wipeout, potential V-reversal |
+| $500M - $1B | High volatility | Significant positioning reset |
+| $200M - $500M | Elevated | Moderate leverage reduction |
+| $50M - $200M | Normal | Background noise |
+| < $50M | Calm | Low volatility, leverage building |
+
+### 6. Liquidation Cascade Anatomy
+
+**Typical cascade sequence:**
+
+```
+1. Initial trigger (macro event, whale selling, technical breakdown)
+ โ†“
+2. Price hits first liquidation cluster ($65,000)
+ โ†’ $200M in long liquidations forced to sell
+ โ†“
+3. Forced selling pushes price to next cluster ($63,000)
+ โ†’ $300M more in long liquidations
+ โ†“
+4. Cascade accelerates โ†’ high-leverage positions ($62,000-$60,000)
+ โ†’ $500M in rapid succession
+ โ†“
+5. Eventually: open interest drops 20-30%, funding rate flips negative
+ โ†’ Leverage is "washed out" โ†’ bottom forms
+ โ†“
+6. Recovery begins (short-term) as no more forced sellers remain
+```
+
+**Trading around cascades:**
+- **Before cascade**: reduce leverage, set wider stops, avoid high-leverage longs near heavy liquidation zones
+- **During cascade**: do NOT try to catch the knife; wait for OI to stabilize
+- **After cascade**: when funding rate flips deeply negative + OI has dropped 20%+, contrarian long entry with tight risk
+
+### 7. Exchange-Level Liquidation Differences
+
+| Exchange | Liquidation Engine | Key Feature |
+|----------|-------------------|-------------|
+| OKX | Tiered auto-deleveraging | Partial liquidation (reduce position size, not full close) |
+| Binance | Insurance fund + ADL | Largest insurance fund (~$1B+) reduces cascade severity |
+| Bybit | ADL (Auto-Deleveraging) | ADL triggers when insurance fund depleted |
+| dYdX | On-chain liquidation | Transparent, anyone can liquidate (MEV opportunity) |
+
+## Data Sources
+
+| Source | Access | Data Available |
+|--------|--------|---------------|
+| CoinGlass | Free (limited) | Liquidation heatmap, 24h liquidations, OI |
+| Laevitas | Free/Paid | Options + futures liquidation levels |
+| Kingfisher (Coinalyze) | Paid | Real-time liquidation level estimates |
+| Hyblock Capital | Paid | Professional liquidation heatmaps |
+| OKX API | Free | Historical liquidation data |
+| DeFi Llama | Free | DeFi protocol liquidation data |
+
+## Output Format
+
+```
+## Liquidation Analysis โ€” [Asset] โ€” [Date]
+
+### Liquidation Overview (24h)
+- **Total liquidated**: $XXX M
+- **Long liquidated**: $XXX M (XX%)
+- **Short liquidated**: $XXX M (XX%)
+- **Largest single**: $XX M [exchange]
+- **Market state**: [extreme / elevated / normal / calm]
+
+### Key Liquidation Levels
+| Price Level | Type | Est. Volume | Distance from Current | Priority |
+|------------|------|-------------|----------------------|----------|
+| $XX,XXX | Short liq cluster | $XXX M | +X.X% | High |
+| $XX,XXX | Long liq cluster | $XXX M | -X.X% | High |
+| $XX,XXX | Long liq cluster | $XXX M | -X.X% | Medium |
+
+### Heatmap Summary
+- **Strongest upside magnet**: $XX,XXX (short liquidation cluster, $XXX M)
+- **Strongest downside magnet**: $XX,XXX (long liquidation cluster, $XXX M)
+- **Asymmetry**: [upside magnet stronger / downside stronger / balanced]
+
+### Cascade Risk
+- **Downside cascade risk**: [high / moderate / low]
+ - [X clusters stacked within X% below current price]
+- **Upside cascade risk**: [high / moderate / low]
+
+### Post-Liquidation S/R Levels
+- **Recent support formed**: $XX,XXX (long liquidation wipeout on DATE)
+- **Recent resistance formed**: $XX,XXX (short liquidation wipeout on DATE)
+
+### Trading Implications
+- **Bias**: [upward magnet stronger โ†’ mild bullish / downward โ†’ bearish]
+- **Risk**: [high leverage zone within X% โ†’ reduce position size]
+- **Key level**: [$XX,XXX โ€” if broken, cascade risk activates]
+```
+
+## Notes
+
+- Liquidation data is estimated, not exact โ€” exchanges do not publish real-time liquidation level details for all users
+- Heatmap providers use statistical models based on OI and leverage distribution to estimate liquidation prices
+- Liquidation levels shift constantly as traders open/close positions โ€” treat as dynamic zones, not fixed prices
+- "Stop hunts" (price briefly touching a liquidation cluster then reversing) are common โ€” market makers deliberately trigger clusters
+- DeFi liquidations are fully transparent (on-chain) but CEX liquidations are opaque
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/macro-analysis/SKILL.md b/agent/src/skills/macro-analysis/SKILL.md
new file mode 100644
index 000000000..aab5c65a0
--- /dev/null
+++ b/agent/src/skills/macro-analysis/SKILL.md
@@ -0,0 +1,191 @@
+---
+name: macro-analysis
+description: Macroeconomic cycle positioning and central-bank policy interpretation, including GDP/CPI/PMI/rates/FX analysis, with output in the form of major-asset allocation tilts.
+---
+
+# Macroeconomic Analysis
+
+## Overview
+
+Interprets macroeconomic data and central-bank policy, identifies the current economic-cycle stage, and derives major-asset allocation direction. Covers the three major economies of China (PBOC), the United States (Fed), and Europe (ECB).
+
+## Core Indicator System
+
+### Growth Indicators
+
+| Indicator | Frequency | Key Threshold | Data Source |
+|------|------|----------|--------|
+| GDP YoY | Quarterly | China >5% = normal, <4% = weak | National Bureau of Statistics |
+| Manufacturing PMI | Monthly | >50 = expansion, <50 = contraction, 49-51 = borderline | NBS / Caixin |
+| Industrial production | Monthly | >5% = normal | National Bureau of Statistics |
+| Retail sales | Monthly | >8% = strong consumption | National Bureau of Statistics |
+| Fixed asset investment | Monthly | Focus on infrastructure vs real-estate components | National Bureau of Statistics |
+
+### Inflation Indicators
+
+| Indicator | Frequency | Key Threshold | Interpretation |
+|------|------|----------|------|
+| CPI YoY | Monthly | >3% = inflation pressure, <0% = deflation risk | Strongly affected by the pork cycle, so core CPI is more reliable |
+| PPI YoY | Monthly | >0% = improving corporate profits, <0% = deflation transmission | Leads CPI by 3-6 months |
+| Core CPI | Monthly | >2% = demand-driven inflation | Excludes food and energy |
+| M2 YoY | Monthly | >10% = monetary easing | The M2-M1 spread reflects how active liquidity is |
+
+### Rates and FX
+
+| Indicator | Meaning | Focus |
+|------|------|--------|
+| 1Y / 5Y LPR | Loan prime rate | Rate-cut signal |
+| DR007 | Interbank 7-day repo rate | Funding tightness / looseness |
+| 10Y government bond yield | Risk-free rate anchor | <2.5% = loose, >3.5% = tight |
+| USD/CNY | Exchange rate | >7.3 = high depreciation pressure |
+| US 10Y-2Y spread | Term spread | Inversion signals recession (leads by 12-18 months) |
+
+## Four-Stage Economic Cycle Model
+
+### Merrill Lynch Clock Framework
+
+```
+ GDPโ†‘ + CPIโ†“ GDPโ†‘ + CPIโ†‘
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
+ โ”‚ Recovery โ”‚ โ”€โ”€โ”€โ”€โ†’ โ”‚ Overheatโ”‚
+ โ”‚ โ”‚ โ”‚ โ”‚
+ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
+ โ†‘ โ”‚
+ โ”‚ โ†“
+ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
+ โ”‚Recessionโ”‚ โ†โ”€โ”€โ”€โ”€ โ”‚Stagflat โ”‚
+ โ”‚ โ”‚ โ”‚ โ”‚
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
+ GDPโ†“ + CPIโ†“ GDPโ†“ + CPIโ†‘
+```
+
+### Asset Performance by Stage
+
+| Stage | Best Asset | Second-Best Asset | Worst Asset | Typical Policy |
+|------|----------|----------|----------|----------|
+| Recovery | Equities (growth / small cap) | Commodities | Bonds | Monetary easing + fiscal stimulus |
+| Overheat | Commodities (oil / copper) | Equities (cyclical / value) | Bonds | Hiking cycle begins |
+| Stagflation | Cash / short-duration bonds | Gold | Equities | Policy dilemma |
+| Recession | Bonds (long duration) | Gold | Equities / commodities | Rate cuts + quantitative easing |
+
+### China-Specific Adjustments
+
+- **Real-estate cycle**: property sales / investment is a core variable in China's economy, and the policy response during downturns determines the turning point
+- **Infrastructure offset**: when property is weak, infrastructure often strengthens (countercyclical adjustment), so track the pace of special-bond issuance
+- **Export orientation**: external demand (US PMI / Eurozone PMI) affects manufacturing conditions
+- **Policy-driven market**: tone-setting from Politburo meetings / the Central Economic Work Conference matters more than the data itself
+
+## Central Bank Policy Analysis Framework
+
+### Federal Reserve (Fed)
+
+**Sequence to watch**: FOMC statement โ†’ dot plot โ†’ Powell speech โ†’ meeting minutes
+
+| Signal | Hawkish (tightening) | Dovish (easing) |
+|------|-------------|-------------|
+| Employment | "labor market remains tight" | "softening in labor market" |
+| Inflation | "inflation remains elevated" | "inflation moving toward target" |
+| Forward guidance | "further tightening may be appropriate" | "rate cuts could be appropriate" |
+| Balance sheet | Faster / continued QT | Slower QT / hints of QE |
+
+**Fed decision function**: core PCE > 2.5% โ†’ tightening bias; unemployment > 4.5% โ†’ easing bias; when the two conflict, focus on which deviation is larger
+
+### People's Bank of China (PBOC)
+
+**Toolbox:**
+
+| Tool | Signal Strength | Impact |
+|------|---------|------|
+| RRR cut | Strong | Releases long-term liquidity, bullish for equities and bonds |
+| Rate cuts (MLF/LPR) | Strong | Reduces financing costs, bullish for growth stocks |
+| OMO (reverse repo) | Medium | Short-term liquidity adjustment |
+| PSL / relending | Medium | Targeted support (infrastructure / real estate) |
+| Window guidance | Weak but effective | Directs credit allocation |
+
+### European Central Bank (ECB)
+
+**Core variables**: HICP (harmonized CPI), Eurozone PMI, Germany-France yield spread
+**Special feature**: large divergence among member economies, creating a "one size fits all" problem
+
+## Analysis Framework
+
+### Step 1: Data Collection and Current-State Description
+
+```
+Collect core indicators from the latest 3 months:
+- China: PMI, CPI, PPI, M2, aggregate financing, LPR
+- United States: nonfarm payrolls, CPI, core PCE, ISM PMI, Fed rate
+- Global: oil, copper, US dollar index (DXY), VIX
+```
+
+### Step 2: Cycle Positioning
+
+```
+Decision criteria:
+1. GDP trend: accelerating / decelerating / topping / bottoming
+2. Inflation trend: rising / falling / topping / bottoming
+3. Policy direction: easing / neutral / tightening / turning
+4. Composite stage: recovery / overheat / stagflation / recession
+5. Cycle position: early / mid / late
+```
+
+### Step 3: Policy Impact Assessment
+
+```
+1. Recent policy events (last 30 days)
+2. Interpretation of policy intent (support growth / control inflation / contain risk)
+3. Transmission paths to each asset class
+4. Lag estimation (6-12 months for monetary policy, 3-6 months for fiscal policy)
+```
+
+### Step 4: Asset Allocation Tilt
+
+```
+Based on cycle position and policy direction:
+- Overweight / neutral / underweight: China A-shares / Hong Kong stocks / US equities / bonds / commodities / cash
+- Style tilt: growth vs value, large cap vs small cap
+- Sector preference: cyclical / defensive / growth
+```
+
+## Output Format
+
+```markdown
+## Macro Environment Assessment
+
+### Snapshot of Core Data
+| Indicator | Latest | Previous | Trend |
+|------|--------|------|------|
+| China PMI | 50.2 | 49.8 | โ†‘ |
+| ... | ... | ... | ... |
+
+### Economic Cycle Positioning
+- **Current stage**: early recovery / mid-overheat / late stagflation / mid-recession
+- **Core logic**: explain the basis in 2-3 sentences
+- **Estimated remaining duration**: expected to last another X months
+
+### Central Bank Policy Analysis
+- **PBOC**: easing bias, likely another 25bp RRR cut in Q2
+- **Fed**: hiking pause, watch the June dot plot
+- **Policy conflicts**: whether there are conflicting policy signals worth attention
+
+### Major Asset Allocation Tilt
+| Asset | Recommendation | Logic |
+|------|------|------|
+| China A-shares | Overweight | Policy bottom confirmed + loose liquidity |
+| Bonds | Neutral | Limited room for rates to fall further |
+| Commodities | Underweight | Weak demand |
+| Cash | Underweight | High opportunity cost |
+
+### Risk Warnings
+- Risk 1: ...
+- Risk 2: ...
+```
+
+## Notes
+
+1. **Data timeliness**: macro data is released with lags; PMI is the timeliest (start of month), GDP is the most delayed (quarter-end + 15 days)
+2. **Do not predict precisely**: macro analysis provides directional judgment, not exact levels or timing
+3. **Focus on marginal change**: direction and speed of change matter more than absolute levels
+4. **China-specific feature**: policy intent > economic data, and major meeting tone-setting has the highest priority
+5. **Global linkage**: the US dollar / US Treasury yields are global pricing anchors, and Fed policy affects global liquidity
+6. **Avoid hindsight bias**: analyze based on the information available at the time, not by reverse-engineering from future data
diff --git a/agent/src/skills/market-microstructure/SKILL.md b/agent/src/skills/market-microstructure/SKILL.md
new file mode 100644
index 000000000..f517dbde2
--- /dev/null
+++ b/agent/src/skills/market-microstructure/SKILL.md
@@ -0,0 +1,298 @@
+---
+name: market-microstructure
+description: "Market microstructure: bid-ask spread analysis, order-flow toxicity metrics (VPIN / Kyle lambda), liquidity measures (Amihud / Roll), price-impact models, limit-order-book analysis, and China A-share call auction / block trade mechanics."
+---
+
+# Market Microstructure
+
+## Overview
+
+Study the micro-level mechanisms of price formation: who is trading, how they are trading, and how trades affect prices. For quantitative strategies, this matters because it improves transaction-cost estimation, identifies informed trading, and optimizes execution.
+
+Applicable scenarios:
+- Precise estimation of strategy trading costs (instead of simply assuming a flat 0.1% fee)
+- Designing large-order execution strategies (`TWAP / VWAP / IS`)
+- Detecting order-flow toxicity (avoid time windows dominated by informed traders)
+- Quantifying liquidity risk (flash-crash warning)
+- Capturing China A-share-specific microstructure features (call auction / closing auction / block trades)
+
+## Core Concepts
+
+### Bid-Ask Spread
+
+**Three measurements:**
+| Metric | Formula | Meaning |
+|------|------|------|
+| Quoted spread | `Ask - Bid` | Best spread shown in the limit order book |
+| Effective spread | `2 ร— |trade price - mid price|` | Actual spread paid by the trader |
+| Realized spread | `2 ร— direction ร— (trade price - mid price 5min later)` | True market-maker profit |
+
+```
+China A-share example:
+ Instrument: 600519.SH Kweichow Moutai
+ Best bid: 1680.00 Best ask: 1680.50
+ Quoted spread: 0.50 RMB = 0.03%
+
+ Instrument: 000001.SZ Ping An Bank
+ Best bid: 11.05 Best ask: 11.06
+ Quoted spread: 0.01 RMB = 0.09%
+
+Spread decomposition (Roll):
+ Spread = adverse-selection cost + inventory cost + order-processing cost
+ In China A-shares: adverse selection accounts for 60-70% (mixture of retail and informed traders)
+
+Spread drivers:
+ - Larger market cap -> smaller spread (Moutai 0.03% vs small-cap 0.5%)
+ - Higher volatility -> wider spread (market-maker risk premium)
+ - Higher volume -> narrower spread (greater competition)
+ - Higher information asymmetry -> wider spread (adverse selection)
+```
+
+### Order-Flow Toxicity Metrics
+
+**VPIN (Volume-Synchronized Probability of Informed Trading):**
+```
+Principle: replace clock time with volume time to measure the probability of informed trading
+
+Calculation steps:
+ 1. Bucket trades by fixed volume (Volume Bucket)
+ Bucket size V = average daily volume / 50 (about 5-10 minutes per bucket)
+
+ 2. Classify buy and sell volume in each bucket (Bulk Volume Classification):
+ buy_volume = V ร— ฮฆ(ฮ”P / ฯƒ) (standard normal CDF)
+ sell_volume = V - buy_volume
+
+ 3. Compute order-flow imbalance:
+ OI_i = |buy_volume_i - sell_volume_i|
+
+ 4. VPIN = ฮฃ(OI_i) / (n ร— V) (n=50-bucket rolling window)
+
+Interpretation:
+ VPIN < 0.3 -> normal, low informed-trading share
+ VPIN 0.3-0.5 -> caution, informed trading rising
+ VPIN > 0.5 -> dangerous, high probability that major information is about to be released
+
+China A-share usage:
+ A sudden VPIN spike in a stock may foreshadow:
+ - insider trading ahead of a major announcement
+ - institutional position building / distribution
+ Before the 2015 China A-share flash crashes, VPIN stayed above 0.6 for a prolonged period
+```
+
+**Kyle's Lambda (price impact coefficient)**:
+```
+Model: ฮ”P = ฮป ร— OrderFlow + ฮต
+ where OrderFlow = buy volume - sell volume
+
+Estimation method:
+ 1. Compute ฮ”P and OrderFlow in 5-minute windows
+ 2. Regress ฮ”P = ฮฑ + ฮป ร— OrderFlow
+ 3. ฮป = price change caused by one unit of order flow
+
+Interpretation:
+ Large ฮป -> poor liquidity, high impact
+ Small ฮป -> good liquidity, large orders can be executed cheaply
+
+Typical China A-share values:
+ Large cap (CSI 300): ฮป โ‰ˆ 0.001-0.005
+ Mid cap (CSI 500): ฮป โ‰ˆ 0.005-0.02
+ Small cap (CSI 1000): ฮป โ‰ˆ 0.02-0.1
+```
+
+### Liquidity Measures
+
+| Metric | Formula | Advantages | Disadvantages |
+|------|------|------|------|
+| Amihud illiquidity | `|R_t| / Volume_t` | Requires only daily data | Sensitive to extreme returns |
+| Roll implied spread | `2โˆš(-Cov(R_t, R_{t-1}))` | Requires only daily data | Fails when covariance is positive |
+| LOT zero-return ratio | zero-return days / total days | Intuitive | Too coarse |
+| Turnover ratio | volume / free float | Simple and intuitive | Does not reflect price impact |
+| Traded value | average daily notional | Absolute liquidity | Does not reflect relative impact |
+
+```
+Amihud calculation (China A-shares):
+ ILLIQ = (1/D) ร— ฮฃ(|R_d| / VOL_d) (D=trading days, monthly)
+
+ Normalization: ILLIQ ร— 10^6 (for readability)
+
+ Screening rules:
+ ILLIQ < 0.5 -> high liquidity (large-cap blue chips)
+ ILLIQ 0.5-5 -> medium liquidity
+ ILLIQ > 5 -> low liquidity (trade cautiously)
+
+ Strategy application:
+ - Liquidity factor: low-liquidity stocks tend to earn long-run excess return (liquidity premium)
+ - Liquidity monitor: sudden rise in ILLIQ -> warning of liquidity drying up
+```
+
+## Analysis Framework
+
+### 1. Price-Impact Models
+
+**Linear impact (Almgren-Chriss)**:
+```
+Model: impact = ฮท ร— ฯƒ ร— (Q / V)^0.6
+ ฮท: impact coefficient, about 0.5-1.5 for China A-shares
+ ฯƒ: daily volatility
+ Q: traded quantity (shares)
+ V: average daily volume (shares)
+
+Example:
+ Sell 100,000 shares of Kweichow Moutai
+ Average daily volume 5,000,000 shares, daily volatility 1.8%
+ impact = 1.0 ร— 0.018 ร— (100000/5000000)^0.6
+ = 0.018 ร— 0.0085
+ = 0.015% (1.5bp, acceptable)
+
+ Sell 100,000 shares of a small-cap stock
+ Average daily volume 500,000 shares, daily volatility 3.0%
+ impact = 1.0 ร— 0.03 ร— (100000/500000)^0.6
+ = 0.03 ร— 0.076
+ = 0.23% (23bp, should be executed in slices)
+
+Execution-splitting methods:
+ TWAP: uniform in clock time -> simple but ignores market state
+ VWAP: volume-profile execution -> better matches market rhythm
+ IS: minimize Implementation Shortfall -> optimal but requires real-time optimization
+```
+
+**Nonlinear impact (square-root model)**:
+```
+impact = ฯƒ ร— โˆš(Q / (ADV ร— T))
+ ฯƒ: daily volatility
+ Q: total trade size
+ ADV: average daily traded value
+ T: execution days
+
+Applicable to: large trades (Q/ADV > 5%)
+```
+
+### 2. Limit Order Book Analysis
+
+```
+Depth metrics:
+ Level 1 depth: queue size at the best bid and best ask
+ Level 5 depth: total queue size across the first 5 levels
+ Depth asymmetry: (Bid depth - Ask depth) / (Bid depth + Ask depth)
+ > 0 -> stronger bid side, price tends to rise
+ < 0 -> stronger ask side, price tends to fall
+
+Resilience:
+ The speed at which the book recovers after a large-order impact
+ Fast recovery -> good liquidity, temporary impact
+ Slow recovery -> poor liquidity, persistent impact
+
+China A-share LOB characteristics:
+ - The shallowest depth is in the 15 minutes before the open (highest information asymmetry)
+ - Depth improves from 10:00-10:30 (institutions begin participating)
+ - Best depth is from 14:00-14:57 (most intraday information has been digested)
+ - During the 14:57-15:00 closing auction, depth changes sharply (late-day grabbing / dumping)
+
+Order-book imbalance signal:
+ OIR = (Bid_vol - Ask_vol) / (Bid_vol + Ask_vol)
+ Rolling 5-minute OIR > 0.3 -> short-term bullish signal (accuracy about 55-60%)
+ Note: in China A-shares, large orders are often rapidly added and canceled (icebergs / spoofing), so OIR signals need filtering
+```
+
+### 3. Flash-Crash Mechanism and Prevention
+
+```
+Flash-crash characteristics:
+ 1. Price drops more than 5% within minutes
+ 2. Volume first expands, then collapses (liquidity evaporates)
+ 3. Bid-ask spread widens sharply (market makers pull quotes)
+ 4. Followed by a V-shaped rebound (not always fully recovered)
+
+Triggers:
+ - Large market order + thin liquidity -> punches through multiple levels instantly
+ - Stop-loss chain -> initial selloff triggers more stop orders
+ - Algo resonance -> multiple trend-following algos sell simultaneously
+ - ETF discount arbitrage -> ETF redemption and constituent selling intensify the drop
+
+Preventive measures:
+ 1. Use limit orders instead of market orders: specify the maximum acceptable price
+ 2. Monitor VPIN: if VPIN breaks above 0.5 -> stop trading
+ 3. Liquidity threshold: exclude instruments with Amihud > 10
+ 4. Spread monitor: if spread widens suddenly to >5x normal -> pause orders
+ 5. Time avoidance: do not execute large orders in the first 15 minutes after open or the last 5 minutes before close
+
+China A-share flash-crash cases:
+ 2015 Jun-Jul: thousands of stocks hit limit-down, with VPIN staying elevated
+ 2020-07-13: Shanghai Composite plunged and then rebounded in a V-shape
+ Pattern: liquidity dries up -> limit-down locking (China-specific) -> next-day panic selling
+```
+
+### 4. China A-Share-Specific Microstructure
+
+```
+Call-auction strategy:
+ 9:15-9:20: orders can be entered and canceled, mostly probing quotes (low reference value)
+ 9:20-9:25: orders can be entered but not canceled, so real intent is revealed
+ Signal: after 9:20, buy orders far exceed sell orders -> likely gap-up open
+
+ Execution: place orders at 9:24:50 (last 10 seconds of the call auction)
+ Risk: cannot cancel, and the final execution price may deviate from expectation
+
+Closing call auction (14:57-15:00):
+ Feature: closing price is decided within 3 minutes, with concentrated institutional rebalancing and index-fund flows
+ Signal: closing-auction volume > 10% of the whole day -> institutions are rebalancing
+
+ Strategy application:
+ - VWAP algos should finish most of execution before 14:50, leaving a small residual for the close
+ - Avoid placing large orders after 14:57 (high price uncertainty)
+
+Block-trade discount signal:
+ Discount = (block-trade price - closing price) / closing price
+ Discount < -5%: seller is eager to exit -> short-term bearish
+ Discount > -2%: traded near market price -> may be turnover rather than reduction
+
+ Buyer identity:
+ Well-known institutional seat buys -> positive signal
+ Same broker on both sides -> may be wash trading (neutral)
+```
+
+## Output Format
+
+Microstructure analysis report:
+```
+=== Liquidity Diagnosis ===
+Instrument: 000858.SZ Wuliangye
+Date: 2026-03-28
+Average daily traded value: 2.8 billion RMB Turnover ratio: 0.85%
+Amihud: 0.32 (high liquidity)
+Effective spread: 0.05% (2.5bp)
+Kyle Lambda: 0.003
+
+=== Order-Flow Analysis ===
+VPIN: 0.28 (normal)
+Order-book imbalance (OIR): +0.12 (mild bid-side bias)
+Net large-order buying: +230 million RMB (institutional buying bias)
+
+=== Trading-Cost Estimate ===
+Planned trade size: 500,000 shares (about 40 million RMB)
+Estimated impact cost: 0.08% (32k RMB)
+Commission: 0.025% (10k RMB)
+Stamp duty: 0.05% (20k RMB, sell side)
+Total one-way transaction cost: about 0.16%
+
+=== Execution Suggestion ===
+Recommended strategy: VWAP
+Execution window: 10:00-14:50 (avoid the open and the close)
+Number of slices: 5-8 (about 60k-100k shares per slice)
+Time sensitivity: low (VPIN is normal, no urgency to execute)
+```
+
+## Notes
+
+1. **Data requirement is high**: microstructure analysis requires tick-level / Level-2 data, while ordinary daily data only supports rough measures such as Amihud / Roll
+2. **China A-share Level-2 data**: ten-level depth data from SSE / SZSE requires a paid subscription, costing roughly 50k-200k RMB per year
+3. **High-frequency trading restrictions**: China A-shares strictly prohibit programmatic quote-cancel manipulation (`spoofing`), so microstructure signals are for analysis only, not for HFT strategies
+4. **VPIN calibration**: bucket size has a large impact on results and must be adjusted for instrument liquidity; one parameter does not fit all
+5. **Cross-market differences**: China A-share `T+1` settlement and daily price limits make its microstructure significantly different from textbook US-equity models
+6. **Illusion of liquidity**: high turnover in some China A-shares comes from speculative matched trading and does not represent true liquidity
+
+## Dependencies
+
+```bash
+pip install pandas numpy scipy
+```
diff --git a/agent/src/skills/minute-analysis/SKILL.md b/agent/src/skills/minute-analysis/SKILL.md
new file mode 100644
index 000000000..243004f04
--- /dev/null
+++ b/agent/src/skills/minute-analysis/SKILL.md
@@ -0,0 +1,100 @@
+---
+name: minute-analysis
+description: Minute-level data analysis and backtesting. Retrieves minute candlesticks through OKX/Tushare/yfinance and can be used both for analysis and as input to the backtest engine.
+---
+# Minute-Level Data Analysis and Backtesting
+
+## Purpose
+
+Retrieve minute-level candlestick data through data-source APIs and calculate intraday indicators (VWAP, TWAP, volume distribution, and more).
+Supports minute-level backtesting: set `"interval": "5m"` in `config.json` and use the `backtest` tool to run intraday strategies.
+
+## Backtest Configuration
+
+For minute-level backtests, simply add the `interval` field in `config.json`:
+
+```json
+{
+ "source": "okx",
+ "codes": ["BTC-USDT"],
+ "start_date": "2026-03-01",
+ "end_date": "2026-03-15",
+ "interval": "5m",
+ "initial_cash": 1000000,
+ "commission": 0.0005
+}
+```
+
+- The annualization factor is inferred automatically from `source + interval` (`OKX 5m = 365 x 288 = 105120`)
+- Minute-level datasets are large. Recommended time limits: no more than 7 days for `1m`, no more than 30 days for `5m`, and no more than 1 year for `1H`
+
+## Supported Data Sources and Intervals
+
+| Data Source | Supported Intervals | Notes |
+|--------|---------|------|
+| OKX | 1m/5m/15m/30m/1H/4H | Cryptocurrency, trades 7x24 |
+| Tushare | 1m/5m/15m/30m/1H | China A-shares, requires score >= 2000 |
+| yfinance | 1m/5m/15m/30m/1H | Hong Kong / US equities (free, no key required) |
+
+## OKX Minute Candlestick API
+
+```python
+import requests
+import pandas as pd
+
+resp = requests.get("https://www.okx.com/api/v5/market/candles", params={
+ "instId": "BTC-USDT",
+ "bar": "1m", # 1m/5m/15m/30m/1H/4H
+ "limit": "300", # At most 300 rows per request
+})
+data = resp.json()["data"]
+columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+df = pd.DataFrame(reversed(data), columns=columns)
+df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+for col in ["open", "high", "low", "close", "vol"]:
+ df[col] = df[col].astype(float)
+```
+
+## Indicator Calculation Templates
+
+### VWAP (Volume-Weighted Average Price)
+
+```python
+typical_price = (df["high"] + df["low"] + df["close"]) / 3
+df["vwap"] = (typical_price * df["vol"]).cumsum() / df["vol"].cumsum()
+```
+
+### TWAP (Time-Weighted Average Price)
+
+```python
+df["twap"] = df["close"].expanding().mean()
+```
+
+### Volume Distribution
+
+```python
+df["vol_pct"] = df["vol"] / df["vol"].sum() * 100
+hourly_vol = df.set_index("ts").resample("1h")["vol"].sum()
+```
+
+## Parameters
+
+| Parameter | Description |
+|------|------|
+| inst_id | Trading pair, such as `"BTC-USDT"` |
+| bar / interval | Candlestick interval: `1m/5m/15m/30m/1H/4H` |
+| limit | Number of records to retrieve (OKX returns at most 300 per request) |
+
+## Common Pitfalls
+
+- OKX returns at most 300 rows per request. The loader paginates automatically, but `1m` datasets are still very large
+- The time range for minute-level backtests should not be too long, otherwise both data retrieval and backtesting will become slow or time out
+- Tushare minute endpoints require a score >= 2000. If the score is insufficient, the API returns empty data
+- Timestamps are Unix timestamps in milliseconds and should be converted with `unit="ms"`
+- Transaction costs for minute strategies should be set lower (for example 0.05% instead of 0.1%) because intraday trading is frequent
+
+## Dependencies
+
+```bash
+pip install pandas numpy requests
+```
diff --git a/agent/src/skills/minute-analysis/example_signal_engine.py b/agent/src/skills/minute-analysis/example_signal_engine.py
new file mode 100644
index 000000000..73bff685a
--- /dev/null
+++ b/agent/src/skills/minute-analysis/example_signal_engine.py
@@ -0,0 +1,146 @@
+"""ๅˆ†้’Ÿ็บงๆ•ฐๆฎๅˆ†ๆžๅทฅๅ…ทใ€‚
+
+้€š่ฟ‡ OKX API ่Žทๅ–ๅˆ†้’Ÿ K ็บฟ๏ผŒ่ฎก็ฎ— VWAP/TWAP/ๆˆไบค้‡ๅˆ†ๅธƒ็ญ‰ๆ—ฅๅ†…ๆŒ‡ๆ ‡ใ€‚
+ไป…ไพ›ๅˆ†ๆž่พ“ๅ‡บ๏ผŒไธๅฏ็”จไบŽๅ›žๆต‹ๅผ•ๆ“Ž๏ผˆไป…ๆ”ฏๆŒๆ—ฅ็บฟ๏ผ‰ใ€‚
+"""
+
+from typing import Optional
+
+import numpy as np
+import pandas as pd
+import requests
+
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+
+def fetch_minute_candles(
+ inst_id: str, bar: str = "5m", limit: int = 300
+) -> Optional[pd.DataFrame]:
+ """ไปŽ OKX ่Žทๅ–ๅˆ†้’Ÿ็บง K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏน๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸ๏ผˆ1m/5m/15m/30m/1H/4H๏ผ‰ใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐ๏ผˆๆœ€ๅคš 300๏ผ‰ใ€‚
+
+ Returns:
+ OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚None ่กจ็คบ่Žทๅ–ๅคฑ่ดฅใ€‚
+ """
+ resp = requests.get(
+ f"{BASE_URL}/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(min(limit, 300))},
+ timeout=15,
+ )
+ data = resp.json()
+ if data.get("code") != "0" or not data.get("data"):
+ print(f"[WARN] ่Žทๅ–ๅคฑ่ดฅ: {data.get('msg', 'unknown')}")
+ return None
+
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(data["data"]), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close", "vol"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"]
+ return df
+
+
+def compute_vwap(df: pd.DataFrame) -> pd.Series:
+ """่ฎก็ฎ—็ดฏ็งฏ VWAP๏ผˆๆˆไบค้‡ๅŠ ๆƒๅนณๅ‡ไปท๏ผ‰ใ€‚
+
+ Args:
+ df: ๅŒ…ๅซ high/low/close/volume ๅˆ—็š„ DataFrameใ€‚
+
+ Returns:
+ VWAP ๅบๅˆ—ใ€‚
+ """
+ typical_price = (df["high"] + df["low"] + df["close"]) / 3
+ cum_tp_vol = (typical_price * df["volume"]).cumsum()
+ cum_vol = df["volume"].cumsum()
+ return cum_tp_vol / cum_vol
+
+
+def compute_twap(df: pd.DataFrame) -> pd.Series:
+ """่ฎก็ฎ—็ดฏ็งฏ TWAP๏ผˆๆ—ถ้—ดๅŠ ๆƒๅนณๅ‡ไปท๏ผ‰ใ€‚
+
+ Args:
+ df: ๅŒ…ๅซ close ๅˆ—็š„ DataFrameใ€‚
+
+ Returns:
+ TWAP ๅบๅˆ—ใ€‚
+ """
+ return df["close"].expanding().mean()
+
+
+def volume_profile(df: pd.DataFrame, bins: int = 20) -> pd.DataFrame:
+ """่ฎก็ฎ—ๆˆไบค้‡ๅˆ†ๅธƒ๏ผˆๆŒ‰ไปทๆ ผๅŒบ้—ด๏ผ‰ใ€‚
+
+ Args:
+ df: ๅŒ…ๅซ close/volume ๅˆ—็š„ DataFrameใ€‚
+ bins: ไปทๆ ผๅŒบ้—ดๆ•ฐ้‡ใ€‚
+
+ Returns:
+ DataFrame ๅซ price_range ๅ’Œ volume ๅˆ—ใ€‚
+ """
+ price_bins = pd.cut(df["close"], bins=bins)
+ vol_by_price = df.groupby(price_bins, observed=True)["volume"].sum()
+ result = vol_by_price.reset_index()
+ result.columns = ["price_range", "volume"]
+ result["volume_pct"] = result["volume"] / result["volume"].sum() * 100
+ return result.sort_values("volume", ascending=False)
+
+
+def hourly_volume(df: pd.DataFrame) -> pd.DataFrame:
+ """ๆŒ‰ๅฐๆ—ถ่šๅˆๆˆไบค้‡ใ€‚
+
+ Args:
+ df: ๅˆ†้’Ÿ็บง DataFrameใ€‚
+
+ Returns:
+ ๅฐๆ—ถ็บงๆˆไบค้‡ๆฑ‡ๆ€ปใ€‚
+ """
+ hourly = df.resample("1h")["volume"].sum()
+ result = hourly.reset_index()
+ result.columns = ["hour", "volume"]
+ result["volume_pct"] = result["volume"] / result["volume"].sum() * 100
+ return result
+
+
+if __name__ == "__main__":
+ inst = "BTC-USDT"
+ bar = "5m"
+ print(f"=== {inst} {bar} ๅˆ†้’Ÿ็บงๅˆ†ๆž ===\n")
+
+ df = fetch_minute_candles(inst, bar=bar, limit=300)
+ if df is None or df.empty:
+ print("ๆ— ๆ•ฐๆฎ")
+ exit(1)
+
+ print(f"ๆ•ฐๆฎ่Œƒๅ›ด: {df.index[0]} ~ {df.index[-1]} ({len(df)} ๆ น)")
+ print(f"ไปทๆ ผ่Œƒๅ›ด: {df['close'].min():.2f} ~ {df['close'].max():.2f}")
+ print()
+
+ # VWAP / TWAP
+ vwap = compute_vwap(df)
+ twap = compute_twap(df)
+ last_close = df["close"].iloc[-1]
+ print(f"ๆœ€ๆ–ฐไปท: {last_close:.2f}")
+ print(f"VWAP: {vwap.iloc[-1]:.2f} ({'้ซ˜ไบŽ' if last_close > vwap.iloc[-1] else 'ไฝŽไบŽ'}VWAP)")
+ print(f"TWAP: {twap.iloc[-1]:.2f}")
+ print()
+
+ # ๆˆไบค้‡ๅˆ†ๅธƒ
+ print("--- ๆˆไบค้‡ๅˆ†ๅธƒ (Top 5 ไปทๆ ผๅŒบ้—ด) ---")
+ vp = volume_profile(df, bins=15)
+ for _, row in vp.head(5).iterrows():
+ print(f" {row['price_range']}: {row['volume_pct']:.1f}%")
+ print()
+
+ # ๅฐๆ—ถๆˆไบค้‡
+ print("--- ๅฐๆ—ถๆˆไบค้‡ ---")
+ hv = hourly_volume(df)
+ for _, row in hv.iterrows():
+ bar_len = int(row["volume_pct"] / 2)
+ print(f" {row['hour'].strftime('%H:%M')}: {'โ–ˆ' * bar_len} {row['volume_pct']:.1f}%")
diff --git a/agent/src/skills/ml-strategy/SKILL.md b/agent/src/skills/ml-strategy/SKILL.md
new file mode 100644
index 000000000..840faac81
--- /dev/null
+++ b/agent/src/skills/ml-strategy/SKILL.md
@@ -0,0 +1,214 @@
+---
+name: ml-strategy
+description: Machine-learning predictive strategy based on sklearn walk-forward training, feature engineering, and signal generation. Suitable for any OHLCV data.
+---
+# Machine-Learning Predictive Strategy
+
+## Purpose
+
+Use sklearn machine-learning models (`RandomForest` / `GradientBoosting` / `Ridge`) to predict the direction of future returns and generate trading signals. Walk-forward training is used to avoid future data leakage, and feature engineering extracts useful factors from OHLCV data.
+
+## Signal Logic
+
+1. **Feature engineering**: build multi-dimensional factors from raw OHLCV data (momentum, volatility, RSI, moving-average ratios, volume ratio, and more)
+2. **Label construction**: future N-day return > 0 is the positive class (`1`), < 0 is the negative class (`0`)
+3. **Walk-forward training**: use an expanding window (not a fixed window), train on historical data only, and roll forward day by day for prediction
+4. **Signal generation**: map `predict_proba[:, 1]` to `[-1.0, 1.0]`, or use discrete signals from `predict` in `{-1, 0, 1}`
+
+## Feature Engineering Template
+
+The following are commonly used features, all computed with pandas:
+
+| Feature Name | Formula | Meaning |
+|--------|---------|------|
+| ret_5d | `close.pct_change(5)` | Past 5-day return (short-term momentum) |
+| ret_20d | `close.pct_change(20)` | Past 20-day return (medium-term momentum) |
+| vol_20d | `returns.rolling(20).std()` | 20-day volatility |
+| rsi_14 | See the RSI formula below | Relative Strength Index |
+| ma_ratio | `close / close.rolling(20).mean()` | Degree of deviation from the 20-day moving average |
+| volume_ratio | `volume / volume.rolling(20).mean()` | Volume ratio (current volume vs 20-day average) |
+| bb_position | `(close - bb_lower) / (bb_upper - bb_lower)` | Bollinger Band position (`0`=lower band, `1`=upper band) |
+| high_low_ratio | `(high - low) / close` | Intraday range ratio |
+| close_open_ratio | `(close - open) / open` | Intraday return |
+| skew_20d | `returns.rolling(20).skew()` | Return skewness |
+
+```python
+import pandas as pd
+import numpy as np
+
+def build_features(df: pd.DataFrame) -> pd.DataFrame:
+ """Build a machine-learning feature matrix from OHLCV data.
+
+ Args:
+ df: DataFrame containing open, high, low, close, and volume columns.
+
+ Returns:
+ DataFrame with added feature columns prefixed by 'f_'.
+ """
+ c = df["close"]
+ v = df["volume"]
+ ret = c.pct_change()
+
+ features = pd.DataFrame(index=df.index)
+ features["f_ret_5d"] = c.pct_change(5)
+ features["f_ret_20d"] = c.pct_change(20)
+ features["f_vol_20d"] = ret.rolling(20).std()
+ features["f_ma_ratio"] = c / c.rolling(20).mean()
+ features["f_volume_ratio"] = v / v.rolling(20).mean()
+
+ # RSI(14)
+ delta = c.diff()
+ gain = delta.clip(lower=0).rolling(14).mean()
+ loss = (-delta.clip(upper=0)).rolling(14).mean()
+ rs = gain / loss
+ features["f_rsi_14"] = 100 - (100 / (1 + rs))
+
+ # Bollinger Band position
+ ma20 = c.rolling(20).mean()
+ std20 = c.rolling(20).std()
+ bb_upper = ma20 + 2 * std20
+ bb_lower = ma20 - 2 * std20
+ features["f_bb_position"] = (c - bb_lower) / (bb_upper - bb_lower)
+
+ # Intraday features
+ features["f_high_low_ratio"] = (df["high"] - df["low"]) / c
+ features["f_close_open_ratio"] = (c - df["open"]) / df["open"]
+ features["f_skew_20d"] = ret.rolling(20).skew()
+
+ return features
+```
+
+## Model Selection Guide
+
+| Model | Advantages | Disadvantages | Applicable Scenario |
+|------|------|------|---------|
+| RandomForestClassifier | Hard to overfit, robust to hyperparameters, can output feature importance | Weaker at capturing trend-style features | Default first-choice model, medium data size |
+| GradientBoostingClassifier | High accuracy, captures complex nonlinear relationships | Easy to overfit, slow to train, requires careful tuning | Sufficient data and tuning experience |
+| Ridge / LogisticRegression | Fast training, interpretable, difficult to overfit | Captures only linear relationships | Fast baseline, few features, small dataset |
+
+## Walk-Forward Training Template (Critical)
+
+**Core principle: it is strictly forbidden to train on the full dataset and then predict the full dataset. That is future data leakage.**
+
+- You must use an expanding window or rolling window
+- `StandardScaler` must be `fit` on the training set only, then `transform` the test set
+- Predict only the current day (or a small forward slice) each time, then roll the window forward
+
+```python
+from sklearn.ensemble import RandomForestClassifier
+from sklearn.preprocessing import StandardScaler
+import numpy as np
+import pandas as pd
+
+def walk_forward_predict(
+ features: pd.DataFrame,
+ labels: pd.Series,
+ min_train_size: int = 252,
+ retrain_freq: int = 20,
+ model_type: str = "random_forest",
+) -> pd.Series:
+ """Walk-forward training and prediction to avoid future data leakage.
+
+ Args:
+ features: Feature matrix aligned with labels by row index.
+ labels: Binary labels (0/1), representing the direction of future N-day returns.
+ min_train_size: Minimum training-set size in trading days.
+ retrain_freq: Retrain the model every N days.
+ model_type: Model type, one of "random_forest" / "gradient_boosting" / "ridge".
+
+ Returns:
+ Predicted signal series with range [-1.0, 1.0].
+ """
+ predictions = pd.Series(0.0, index=features.index)
+ model = None
+ scaler = None
+
+ for i in range(min_train_size, len(features)):
+ # Retrain every retrain_freq days
+ if model is None or (i - min_train_size) % retrain_freq == 0:
+ # Expanding window: train on [0, i)
+ X_train = features.iloc[:i].values
+ y_train = labels.iloc[:i].values
+
+ # Drop rows with NaN
+ valid = ~(np.isnan(X_train).any(axis=1) | np.isnan(y_train))
+ X_train = X_train[valid]
+ y_train = y_train[valid]
+
+ if len(X_train) < 50:
+ continue
+
+ # Standardization: fit only on training set
+ scaler = StandardScaler()
+ X_train = scaler.fit_transform(X_train)
+
+ # Build the model
+ if model_type == "random_forest":
+ model = RandomForestClassifier(
+ n_estimators=100, max_depth=5, random_state=42
+ )
+ elif model_type == "gradient_boosting":
+ from sklearn.ensemble import GradientBoostingClassifier
+ model = GradientBoostingClassifier(
+ n_estimators=100, max_depth=3, learning_rate=0.05,
+ random_state=42
+ )
+ elif model_type == "ridge":
+ from sklearn.linear_model import LogisticRegression
+ model = LogisticRegression(penalty="l2", C=1.0, random_state=42)
+ else:
+ raise ValueError(f"Unsupported model_type: {model_type}")
+
+ model.fit(X_train, y_train)
+
+ # Predict today
+ X_today = features.iloc[i : i + 1].values
+ if np.isnan(X_today).any():
+ predictions.iloc[i] = 0.0
+ continue
+
+ X_today = scaler.transform(X_today)
+
+ if hasattr(model, "predict_proba"):
+ # predict_proba[:, 1] is in [0, 1], map it to [-1, 1]
+ prob = model.predict_proba(X_today)[0, 1]
+ predictions.iloc[i] = prob * 2 - 1 # [0,1] -> [-1,1]
+ else:
+ predictions.iloc[i] = float(model.predict(X_today)[0])
+
+ return predictions
+```
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| model_type | `"random_forest"` | Model type: `random_forest` / `gradient_boosting` / `ridge` |
+| min_train_size | 252 | Minimum training-set size (starting length of the expanding window) |
+| retrain_freq | 20 | Retraining frequency (every N trading days) |
+| prediction_horizon | 5 | Prediction horizon (future N-day return) |
+| n_estimators | 100 | Number of trees for tree-based models |
+| max_depth | 5 | Maximum tree depth (prevents overfitting) |
+| threshold | 0.0 | Signal filtering threshold (`abs(signal) < threshold` is set to 0) |
+
+## Common Pitfalls
+
+1. **Data leakage (most fatal)**: running `fit_transform` on the full dataset before backtesting means future information was used. Walk-forward is mandatory, and the training set must contain history only
+2. **Standardization leakage**: using `StandardScaler` on the full dataset to compute means and standard deviations, then transforming everything. The correct approach is `fit_transform` on the training set, then `transform` only on the test set
+3. **Overfitting**: trees that are too deep (`max_depth > 10`), too many features, or too small a training set. Keep `max_depth=3~5` and feature count `< 15`
+4. **Class imbalance**: in bull markets the up/down ratio may be 7:3, so the model may prefer predicting the majority class. Use `class_weight="balanced"` or SMOTE if needed
+5. **Feature noise**: irrelevant features add noise and reduce performance. Check `feature_importances_` after training and remove features with importance below 1%
+6. **Look-ahead bias (non-leakage form)**: computing features from today's close and predicting today's signal. Make sure features use only data from T-1 and earlier
+7. **Retraining frequency**: too frequent (daily) makes training slow and overfits recent data; too sparse (yearly) makes the model stale. Recommended `retrain_freq=20` (about one month)
+
+## Dependencies
+
+```bash
+pip install scikit-learn joblib pandas numpy
+```
+
+## Signal Convention
+
+- `predict_proba[:, 1]` mapped through `prob * 2 - 1` to `[-1.0, 1.0]` (continuous-strength signal)
+- Or discrete signals from `predict()` in `{-1, 0, 1}` (short, neutral, long)
+- Positive values = bullish direction, negative values = bearish direction, absolute value = confidence strength
diff --git a/agent/src/skills/multi-factor/SKILL.md b/agent/src/skills/multi-factor/SKILL.md
new file mode 100644
index 000000000..e6093d2aa
--- /dev/null
+++ b/agent/src/skills/multi-factor/SKILL.md
@@ -0,0 +1,56 @@
+---
+name: multi-factor
+description: Multi-factor cross-sectional stock ranking. Combines factor standardization, equal-weight or IC-weighted scoring, and TopN portfolio construction. Suitable for multi-instrument portfolio strategies.
+---
+# Multi-Factor Cross-Sectional Stock Ranking
+
+## Purpose
+
+On the same time cross-section, compute multiple factor values for many stocks, standardize them, combine them into a composite score, and select the top-ranked stocks to build a portfolio.
+
+## Signal Logic
+
+1. **Factor calculation**: calculate N factors for each stock (such as momentum, value, and quality)
+2. **Cross-sectional standardization**: standardize each factor on the cross-section with Z-score normalization (subtract mean, divide by standard deviation)
+3. **Composite scoring**: sum the factors with equal weights (or custom weights) to obtain a composite score
+4. **Rank and select**: go long the TopN names, with weight = 1/N for each
+
+## Built-In Factors
+
+| Factor Name | Calculation Method | Direction |
+|--------|---------|------|
+| momentum | Return over the past N days | Positive (higher is better) |
+| reversal | Return over the past 5 days | Negative (lower is better) |
+| volatility | Standard deviation of returns over the past N days | Negative (lower is better) |
+| volume_ratio | Today's volume / N-day average volume | Positive |
+
+If `extra_fields` are available (China A-shares), you can also add:
+- `pe_factor`: 1/PE (the larger, the cheaper)
+- `pb_factor`: 1/PB
+- `roe_factor`: ROE (the larger, the better)
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| momentum_window | 20 | Momentum lookback window |
+| vol_window | 20 | Volatility lookback window |
+| top_n | 3 | Number of selected stocks |
+| rebalance_freq | 20 | Rebalancing frequency (trading days) |
+
+## Common Pitfalls
+
+- Cross-sectional standardization requires at least 3 stocks, otherwise Z-scores are meaningless
+- Keep the previous signal unchanged between rebalance dates (do not rerank every day)
+- Factors have different directions: momentum is positively sorted, volatility is negatively sorted, so directions must be aligned before standardization
+- Portfolio weights must be normalized: each TopN stock gets 1/N, all others get 0
+
+## Dependencies
+
+```bash
+pip install pandas numpy
+```
+
+## Signal Convention
+
+- `1/N` = selected into TopN (equal-weight long), `0` = not selected
diff --git a/agent/src/skills/multi-factor/example_signal_engine.py b/agent/src/skills/multi-factor/example_signal_engine.py
new file mode 100644
index 000000000..4ac93fb5e
--- /dev/null
+++ b/agent/src/skills/multi-factor/example_signal_engine.py
@@ -0,0 +1,202 @@
+"""ๅคšๅ› ๅญๆˆช้ขๆŽ’ๅ้€‰่‚กไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅฏนๅคšๅช่‚ก็ฅจ่ฎก็ฎ—ๅŠจ้‡/ๆณขๅŠจ็އ/้‡ๆฏ”็ญ‰ๅ› ๅญ๏ผŒๆˆช้ขๆ ‡ๅ‡†ๅŒ–ๅŽ็ปผๅˆๆ‰“ๅˆ†๏ผŒ
+้€‰ๅ– TopN ็ญ‰ๆƒๅšๅคšใ€‚็บฏ pandas ๅฎž็Žฐใ€‚
+"""
+
+from typing import Dict, List
+
+import numpy as np
+import pandas as pd
+
+
+def zscore_cross_section(series_map: Dict[str, float]) -> Dict[str, float]:
+ """ๅฏนๆˆช้ขๆ•ฐๆฎๅš Z-score ๆ ‡ๅ‡†ๅŒ–ใ€‚
+
+ Args:
+ series_map: ๆ ‡็š„ไปฃ็ ๅˆฐๅ› ๅญๅ€ผ็š„ๆ˜ ๅฐ„ใ€‚
+
+ Returns:
+ ๆ ‡ๅ‡†ๅŒ–ๅŽ็š„ๆ˜ ๅฐ„๏ผˆๅ‡ๅ€ผ 0๏ผŒๆ ‡ๅ‡†ๅทฎ 1๏ผ‰ใ€‚
+ """
+ vals = [v for v in series_map.values() if not np.isnan(v)]
+ if len(vals) < 2:
+ return {k: 0.0 for k in series_map}
+ mean = np.mean(vals)
+ std = np.std(vals, ddof=1)
+ if std < 1e-12:
+ return {k: 0.0 for k in series_map}
+ return {k: (v - mean) / std if not np.isnan(v) else 0.0 for k, v in series_map.items()}
+
+
+class SignalEngine:
+ """ๅคšๅ› ๅญๆˆช้ขๆŽ’ๅไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ่ฎก็ฎ—ๅŠจ้‡ใ€ๅ่ฝฌใ€ๆณขๅŠจ็އใ€้‡ๆฏ”ๅ››ไธชๅ› ๅญ๏ผŒๆˆช้ขๆ ‡ๅ‡†ๅŒ–ๅŽ็ญ‰ๆƒๆ‰“ๅˆ†๏ผŒ
+ ้€‰ TopN ่‚ก็ฅจ็ญ‰ๆƒๅšๅคšใ€‚
+
+ Attributes:
+ momentum_window: ๅŠจ้‡ๅ›ž็œ‹็ช—ๅฃใ€‚
+ vol_window: ๆณขๅŠจ็އๅ›ž็œ‹็ช—ๅฃใ€‚
+ top_n: ้€‰่‚กๆ•ฐ้‡ใ€‚
+ rebalance_freq: ่ฐƒไป“้ข‘็އ๏ผˆไบคๆ˜“ๆ—ฅ๏ผ‰ใ€‚
+
+ Example:
+ >>> engine = SignalEngine(top_n=2, rebalance_freq=20)
+ >>> signals = engine.generate(data_map)
+ """
+
+ def __init__(
+ self,
+ momentum_window: int = 20,
+ vol_window: int = 20,
+ top_n: int = 3,
+ rebalance_freq: int = 20,
+ ):
+ """ๅˆๅง‹ๅŒ–ๅคšๅ› ๅญๅผ•ๆ“Žใ€‚
+
+ Args:
+ momentum_window: ๅŠจ้‡ๅ›ž็œ‹็ช—ๅฃใ€‚
+ vol_window: ๆณขๅŠจ็އๅ›ž็œ‹็ช—ๅฃใ€‚
+ top_n: ้€‰่‚กๆ•ฐ้‡ใ€‚
+ rebalance_freq: ่ฐƒไป“้ข‘็އ๏ผˆไบคๆ˜“ๆ—ฅ๏ผ‰ใ€‚
+ """
+ self.momentum_window = momentum_window
+ self.vol_window = vol_window
+ self.top_n = top_n
+ self.rebalance_freq = rebalance_freq
+
+ def _compute_factors(self, df: pd.DataFrame) -> pd.DataFrame:
+ """่ฎก็ฎ—ๅ•ๅช่‚ก็ฅจ็š„ๅ› ๅญๅ€ผใ€‚
+
+ Args:
+ df: OHLCV DataFrameใ€‚
+
+ Returns:
+ ๅŒ…ๅซๅ„ๅ› ๅญๅˆ—็š„ DataFrameใ€‚
+ """
+ close = df["close"]
+ volume = df["volume"]
+ returns = close.pct_change()
+
+ factors = pd.DataFrame(index=df.index)
+ # ๅŠจ้‡๏ผš่ฟ‡ๅŽป N ๆ—ฅ็ดฏ่ฎกๆ”ถ็›Š๏ผˆๆญฃๅ‘๏ผ‰
+ factors["momentum"] = close / close.shift(self.momentum_window) - 1
+ # ๅ่ฝฌ๏ผš่ฟ‡ๅŽป 5 ๆ—ฅๆ”ถ็›Š๏ผˆๅๅ‘๏ผŒๅ–่ดŸๆ•ฐไฝฟ"่ถŠไฝŽ่ถŠๅฅฝ"ๅ˜ๆˆ"่ถŠ้ซ˜่ถŠๅฅฝ"๏ผ‰
+ factors["reversal"] = -(close / close.shift(5) - 1)
+ # ๆณขๅŠจ็އ๏ผš่ฟ‡ๅŽป N ๆ—ฅๆ”ถ็›Šๆ ‡ๅ‡†ๅทฎ๏ผˆๅๅ‘๏ผŒๅ–่ดŸๆ•ฐ๏ผ‰
+ factors["volatility"] = -returns.rolling(self.vol_window).std()
+ # ้‡ๆฏ”๏ผšๅฝ“ๆ—ฅ้‡ / N ๆ—ฅๅ‡้‡๏ผˆๆญฃๅ‘๏ผ‰
+ factors["volume_ratio"] = volume / volume.rolling(self.vol_window).mean()
+
+ return factors
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆˆช้ขๆŽ’ๅ้€‰่‚ก๏ผŒTopN ็ญ‰ๆƒๅšๅคšใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1/N = ๅ…ฅ้€‰๏ผŒ0 = ๆœชๅ…ฅ้€‰๏ผ‰ใ€‚
+ """
+ codes = list(data_map.keys())
+ if len(codes) < 2:
+ # ๅ•ๅช่‚ก็ฅจๆ— ๆณ•ๅšๆˆช้ขๆŽ’ๅ
+ return {code: pd.Series(0.0, index=df.index) for code, df in data_map.items()}
+
+ # ่ฎก็ฎ—ๆ‰€ๆœ‰่‚ก็ฅจ็š„ๅ› ๅญ
+ factor_map: Dict[str, pd.DataFrame] = {}
+ for code, df in data_map.items():
+ factor_map[code] = self._compute_factors(df)
+
+ # ่Žทๅ–ๅ…ฌๅ…ฑๆ—ฅๆœŸ
+ all_dates = sorted(set().union(*(f.index for f in factor_map.values())))
+ date_index = pd.DatetimeIndex(all_dates)
+
+ signals = {code: pd.Series(0.0, index=date_index) for code in codes}
+ factor_names = ["momentum", "reversal", "volatility", "volume_ratio"]
+
+ last_selected: List[str] = []
+ for i, dt in enumerate(date_index):
+ # ้ž่ฐƒไป“ๆ—ฅ๏ผŒๆฒฟ็”จไธŠๆฌกไฟกๅท
+ if i % self.rebalance_freq != 0 and last_selected:
+ weight = 1.0 / len(last_selected) if last_selected else 0.0
+ for code in last_selected:
+ signals[code].at[dt] = weight
+ continue
+
+ # ่ฐƒไป“ๆ—ฅ๏ผšๆˆช้ขๆŽ’ๅ
+ composite_scores: Dict[str, float] = {}
+ for factor_name in factor_names:
+ raw_vals = {}
+ for code in codes:
+ if dt in factor_map[code].index:
+ raw_vals[code] = factor_map[code].at[dt, factor_name]
+ else:
+ raw_vals[code] = np.nan
+ z_vals = zscore_cross_section(raw_vals)
+ for code in codes:
+ composite_scores[code] = composite_scores.get(code, 0.0) + z_vals.get(code, 0.0)
+
+ # ๆŽ’ๅๅ– TopN
+ ranked = sorted(composite_scores.items(), key=lambda x: x[1], reverse=True)
+ effective_n = min(self.top_n, len([s for _, s in ranked if not np.isnan(s)]))
+ selected = [code for code, _ in ranked[:effective_n]]
+ last_selected = selected
+
+ if selected:
+ weight = 1.0 / len(selected)
+ for code in selected:
+ signals[code].at[dt] = weight
+
+ # ๅฏน้ฝๅˆฐๅŽŸๅง‹็ดขๅผ•
+ result = {}
+ for code, df in data_map.items():
+ result[code] = signals[code].reindex(df.index).fillna(0.0)
+ return result
+
+
+if __name__ == "__main__":
+ import requests
+
+ def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐใ€‚
+
+ Returns:
+ OHLCV DataFrameใ€‚
+ """
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT", "DOGE-USDT"]
+ data_map = {}
+ for sym in symbols:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+
+ engine = SignalEngine(top_n=2, rebalance_freq=20)
+ signals = engine.generate(data_map)
+
+ for sym in symbols:
+ sig = signals[sym]
+ active = (sig > 0).sum()
+ print(f"\n{sym}: selected {active}/{len(sig)} days")
+ if active > 0:
+ print(f" Avg weight when selected: {sig[sig > 0].mean():.2%}")
diff --git a/agent/src/skills/okx-market/SKILL.md b/agent/src/skills/okx-market/SKILL.md
new file mode 100644
index 000000000..0fca19872
--- /dev/null
+++ b/agent/src/skills/okx-market/SKILL.md
@@ -0,0 +1,69 @@
+---
+name: okx-market
+description: OKX cryptocurrency market data interface. Uses the OKX V5 REST API to retrieve spot, derivatives, index, and other crypto market data, including real-time prices, candlesticks, funding rates, open interest, and more. No authentication required, free to use.
+---
+# OKX Market
+
+## Overview
+
+The OKX V5 REST API provides comprehensive cryptocurrency market data covering spot, perpetual swaps, delivery futures, options, and more. All market-data endpoints are public and can be called directly without authentication. The data comes from OKX, the world's second-largest cryptocurrency exchange.
+
+## Quick Start
+
+- Install a Python runtime (Python 3.9+ recommended) and the required `requests` dependency.
+
+```bash
+pip install requests pandas
+```
+
+- No account registration or token configuration is required. Market-data endpoints are fully open.
+- Review the endpoint documentation below and locate the interface you need.
+- Use Python code to retrieve data according to the documentation. Example for the **spot ticker** endpoint:
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# Get the latest BTC-USDT market quote
+resp = requests.get(f"{BASE_URL}/market/ticker", params={"instId": "BTC-USDT"})
+data = resp.json()["data"][0]
+print(f"BTC last price: {data['last']} 24h change: {float(data['last'])/float(data['open24h'])*100-100:.2f}%")
+```
+
+## Parameter Format Reference
+
+- **Instrument format (`instId`)**:
+ - Spot: `BTC-USDT`, `ETH-USDT`
+ - Perpetual swap: `BTC-USDT-SWAP`, `ETH-USDT-SWAP`
+ - Delivery futures: `BTC-USDT-250328` (expiry date in `YYMMDD`)
+ - Options: `BTC-USD-250328-95000-C` (expiry-strike-C/P)
+ - Index: `BTC-USD`, `ETH-USD`
+- **Candlestick interval (`bar`)**: `1m`, `3m`, `5m`, `15m`, `30m`, `1H`, `2H`, `4H`, `6H`, `12H`, `1D`, `1W`, `1M`
+- **Instrument type (`instType`)**: `SPOT` (spot), `SWAP` (perpetual), `FUTURES` (delivery), `OPTION` (option)
+- **Timestamp**: millisecond Unix timestamp (for example `1773763200000`)
+- **Response format**: JSON. `code=0` indicates success, and data is returned in the `data` field
+
+## Python Script Examples
+
+- [Market data retrieval example](scripts/market_data_example.py)
+- [Candlestick data retrieval example](scripts/candle_data_example.py)
+
+## Market Data Endpoint List
+
+| ID | Endpoint Path | Title (Detailed Documentation) | Category | Description |
+| ---: | :--- | :--- | :--- | :--- |
+| 1 | /market/ticker | [Single Ticker](references/็Žฐ่ดง่กŒๆƒ…/ๅ•ไธช่กŒๆƒ….md) | Spot Market | Retrieve the latest market data for a single trading instrument, including last price, bid/ask, 24h volume, and more |
+| 2 | /market/tickers | [Batch Tickers](references/็Žฐ่ดง่กŒๆƒ…/ๆ‰น้‡่กŒๆƒ….md) | Spot Market | Retrieve all market data for a given instrument class (`SPOT`/`SWAP`/`FUTURES`/`OPTION`) in batch |
+| 3 | /market/candles | [Candlestick Data](references/็Žฐ่ดง่กŒๆƒ…/K็บฟๆ•ฐๆฎ.md) | Spot Market | Retrieve candlestick (OHLCV) data with multiple supported intervals |
+| 4 | /market/trades | [Recent Trades](references/็Žฐ่ดง่กŒๆƒ…/ๆœ€่ฟ‘ๆˆไบค.md) | Spot Market | Retrieve recent trade-level details |
+| 5 | /public/instruments | [Instrument List](references/็Žฐ่ดง่กŒๆƒ…/ไบคๆ˜“ไบงๅ“ๅˆ—่กจ.md) | Spot Market | Retrieve metadata for all tradable instruments, including minimum order size and price precision |
+| 6 | /market/books | [Order Book Depth](references/็Žฐ่ดง่กŒๆƒ…/ๆทฑๅบฆๆ•ฐๆฎ.md) | Spot Market | Retrieve bid/ask order book depth data |
+| 7 | /public/funding-rate | [Funding Rate](references/ๅˆ็บฆ่กŒๆƒ…/่ต„้‡‘่ดน็އ.md) | Derivatives Market | Retrieve current and historical funding rates for perpetual contracts |
+| 8 | /public/funding-rate-history | [Historical Funding Rate](references/ๅˆ็บฆ่กŒๆƒ…/ๅކๅฒ่ต„้‡‘่ดน็އ.md) | Derivatives Market | Retrieve historical funding-rate data for perpetual contracts |
+| 9 | /public/mark-price | [Mark Price](references/ๅˆ็บฆ่กŒๆƒ…/ๆ ‡่ฎฐไปทๆ ผ.md) | Derivatives Market | Retrieve mark prices for derivatives, used for PnL and liquidation calculations |
+| 10 | /public/open-interest | [Open Interest](references/ๅˆ็บฆ่กŒๆƒ…/ๆŒไป“้‡.md) | Derivatives Market | Retrieve open-interest data for derivatives |
+| 11 | /public/price-limit | [Price Limit](references/ๅˆ็บฆ่กŒๆƒ…/้™ไปท.md) | Derivatives Market | Retrieve the current maximum and minimum price limits for derivatives |
+| 12 | /market/index-tickers | [Index Tickers](references/ๆŒ‡ๆ•ฐ่กŒๆƒ…/ๆŒ‡ๆ•ฐ่กŒๆƒ….md) | Index Market | Retrieve index price market data |
+| 13 | /market/index-candles | [Index Candles](references/ๆŒ‡ๆ•ฐ่กŒๆƒ…/ๆŒ‡ๆ•ฐK็บฟ.md) | Index Market | Retrieve index candlestick data |
diff --git "a/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\345\216\206\345\217\262\350\265\204\351\207\221\350\264\271\347\216\207.md" "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\345\216\206\345\217\262\350\265\204\351\207\221\350\264\271\347\216\207.md"
new file mode 100644
index 000000000..5ca5ee0bb
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\345\216\206\345\217\262\350\265\204\351\207\221\350\264\271\347\216\207.md"
@@ -0,0 +1,50 @@
+## ๅކๅฒ่ต„้‡‘่ดน็އ
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/funding-rate-history
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฐธ็ปญๅˆ็บฆ็š„ๅކๅฒ่ต„้‡‘่ดน็އๆ•ฐๆฎ๏ผŒ็”จไบŽๅˆ†ๆž่ดน็އ่ถ‹ๅŠฟๅ’Œๅฅ—ๅˆฉๆœบไผšใ€‚
+้™้ข‘๏ผš10ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ๆฐธ็ปญๅˆ็บฆID๏ผŒๅฆ‚ `BTC-USDT-SWAP` |
+| after | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅ‰็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰ |
+| before | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅŽ็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰ |
+| limit | str | N | ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒ้ป˜่ฎค 100 |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instId | str | ๅˆ็บฆID |
+| instType | str | ไบงๅ“็ฑปๅž‹ |
+| fundingRate | str | ่ต„้‡‘่ดน็އ |
+| realizedRate | str | ๅฎž้™…ๆ”ถๅ–่ดน็އ |
+| fundingTime | str | ็ป“็ฎ—ๆ—ถ้—ด๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC ๆฐธ็ปญๅކๅฒ่ต„้‡‘่ดน็އ
+resp = requests.get(f"{BASE_URL}/public/funding-rate-history", params={
+ "instId": "BTC-USDT-SWAP",
+ "limit": "100"
+})
+rates = resp.json()["data"]
+
+df = pd.DataFrame(rates)
+df["fundingRate"] = df["fundingRate"].astype(float)
+df["fundingTime"] = pd.to_datetime(df["fundingTime"].astype(int), unit="ms")
+
+print(f"ๅนณๅ‡่ดน็އ: {df['fundingRate'].mean():.6f}")
+print(f"ๆœ€ๅคง่ดน็އ: {df['fundingRate'].max():.6f}")
+print(f"ๆœ€ๅฐ่ดน็އ: {df['fundingRate'].min():.6f}")
+print(df[["fundingTime", "fundingRate"]].head(10))
+```
diff --git "a/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\214\201\344\273\223\351\207\217.md" "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\214\201\344\273\223\351\207\217.md"
new file mode 100644
index 000000000..2bdd03843
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\214\201\344\273\223\351\207\217.md"
@@ -0,0 +1,41 @@
+## ๆŒไป“้‡๏ผˆOpen Interest๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/open-interest
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆ็บฆๆŒไป“้‡ๆ•ฐๆฎ๏ผŒๅๆ˜ ๅธ‚ๅœบไธญๆœชๅนณไป“ๅˆ็บฆ็š„ๆ€ป้‡ใ€‚ๆŒไป“้‡ๅ˜ๅŒ–ๆ˜ฏๅˆคๆ–ญๅธ‚ๅœบ่ถ‹ๅŠฟ็š„้‡่ฆๆŒ‡ๆ ‡ใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instType | str | Y | ไบงๅ“็ฑปๅž‹๏ผš`SWAP`ใ€`FUTURES`ใ€`OPTION` |
+| instId | str | N | ไบงๅ“ID๏ผˆๅฏ้€‰่ฟ‡ๆปค๏ผ‰ |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instType | str | ไบงๅ“็ฑปๅž‹ |
+| instId | str | ไบงๅ“ID |
+| oi | str | ๆŒไป“้‡๏ผˆๅˆ็บฆๅผ ๆ•ฐ๏ผ‰ |
+| oiCcy | str | ๆŒไป“้‡๏ผˆๅธ๏ผ‰ |
+| ts | str | ๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ–ๆ‰€ๆœ‰ๆฐธ็ปญๅˆ็บฆๆŒไป“้‡
+resp = requests.get(f"{BASE_URL}/public/open-interest", params={"instType": "SWAP"})
+oi_data = resp.json()["data"]
+
+df = pd.DataFrame(oi_data)
+df["oiCcy"] = df["oiCcy"].astype(float)
+df = df.sort_values("oiCcy", ascending=False)
+print(df[["instId", "oi", "oiCcy"]].head(10))
+```
diff --git "a/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\240\207\350\256\260\344\273\267\346\240\274.md" "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\240\207\350\256\260\344\273\267\346\240\274.md"
new file mode 100644
index 000000000..35622c533
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\346\240\207\350\256\260\344\273\267\346\240\274.md"
@@ -0,0 +1,43 @@
+## ๆ ‡่ฎฐไปทๆ ผ
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/mark-price
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆ็บฆ็š„ๆ ‡่ฎฐไปทๆ ผใ€‚ๆ ‡่ฎฐไปทๆ ผ็”จไบŽ่ฎก็ฎ—ๆœชๅฎž็Žฐ็›ˆไบๅ’Œๅผบๅˆถๅนณไป“๏ผŒๆฏ”ๆœ€ๆ–ฐๆˆไบคไปทๆ›ด็จณๅฎšใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instType | str | Y | ไบงๅ“็ฑปๅž‹๏ผš`SWAP`ใ€`FUTURES`ใ€`OPTION` |
+| instId | str | N | ไบงๅ“ID๏ผˆๅฏ้€‰่ฟ‡ๆปค๏ผ‰ |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instType | str | ไบงๅ“็ฑปๅž‹ |
+| instId | str | ไบงๅ“ID |
+| markPx | str | ๆ ‡่ฎฐไปทๆ ผ |
+| ts | str | ๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC ๆฐธ็ปญๆ ‡่ฎฐไปทๆ ผ
+resp = requests.get(f"{BASE_URL}/public/mark-price", params={
+ "instType": "SWAP",
+ "instId": "BTC-USDT-SWAP"
+})
+data = resp.json()["data"][0]
+print(f"BTC ๆฐธ็ปญๆ ‡่ฎฐไปทๆ ผ: {data['markPx']}")
+
+# ่Žทๅ–ๆ‰€ๆœ‰ๆฐธ็ปญๅˆ็บฆๆ ‡่ฎฐไปทๆ ผ
+resp = requests.get(f"{BASE_URL}/public/mark-price", params={"instType": "SWAP"})
+all_marks = resp.json()["data"]
+print(f"ๅˆ็บฆๆ•ฐ้‡: {len(all_marks)}")
+```
diff --git "a/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\350\265\204\351\207\221\350\264\271\347\216\207.md" "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\350\265\204\351\207\221\350\264\271\347\216\207.md"
new file mode 100644
index 000000000..1a337a73f
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\350\265\204\351\207\221\350\264\271\347\216\207.md"
@@ -0,0 +1,48 @@
+## ่ต„้‡‘่ดน็އ
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/funding-rate
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฐธ็ปญๅˆ็บฆ็š„ๅฝ“ๅ‰่ต„้‡‘่ดน็އๅŠไธ‹ๆฌก็ป“็ฎ—ๆ—ถ้—ดใ€‚่ต„้‡‘่ดน็އๆ˜ฏๆฐธ็ปญๅˆ็บฆ็š„ๆ ธๅฟƒๆœบๅˆถ๏ผŒๅๆ˜ ๅคš็ฉบๅŠ›้‡ๅฏนๆฏ”ใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ๆฐธ็ปญๅˆ็บฆID๏ผŒๅฆ‚ `BTC-USDT-SWAP` |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instId | str | ๅˆ็บฆID |
+| instType | str | ไบงๅ“็ฑปๅž‹๏ผˆSWAP๏ผ‰ |
+| fundingRate | str | ๅฝ“ๅ‰่ต„้‡‘่ดน็އ |
+| fundingTime | str | ไธ‹ๆฌก็ป“็ฎ—ๆ—ถ้—ด๏ผˆๆฏซ็ง’๏ผ‰ |
+| nextFundingRate | str | ้ข„ๆต‹ไธ‹ๆœŸ่ต„้‡‘่ดน็އ๏ผˆๅฏ่ƒฝไธบ็ฉบ๏ผ‰ |
+| nextFundingTime | str | ไธ‹ไธ‹ๆฌก็ป“็ฎ—ๆ—ถ้—ด๏ผˆๆฏซ็ง’๏ผ‰ |
+| settFundingRate | str | ไธŠๆฌกๅทฒ็ป“็ฎ—่ต„้‡‘่ดน็އ |
+| settState | str | ็ป“็ฎ—็Šถๆ€๏ผš`settled`๏ผˆๅทฒ็ป“็ฎ—๏ผ‰/ `processing`๏ผˆ็ป“็ฎ—ไธญ๏ผ‰ |
+| prevFundingTime | str | ไธŠๆฌก็ป“็ฎ—ๆ—ถ้—ด๏ผˆๆฏซ็ง’๏ผ‰ |
+| maxFundingRate | str | ๆœ€ๅคง่ต„้‡‘่ดน็އ |
+| minFundingRate | str | ๆœ€ๅฐ่ต„้‡‘่ดน็އ |
+| ts | str | ๆ•ฐๆฎๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+from datetime import datetime
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC ๆฐธ็ปญ่ต„้‡‘่ดน็އ
+resp = requests.get(f"{BASE_URL}/public/funding-rate", params={"instId": "BTC-USDT-SWAP"})
+data = resp.json()["data"][0]
+
+rate = float(data["fundingRate"])
+next_time = datetime.fromtimestamp(int(data["fundingTime"]) / 1000)
+print(f"ๅฝ“ๅ‰่ต„้‡‘่ดน็އ: {rate:.6f} ({rate*100:.4f}%)")
+print(f"ไธ‹ๆฌก็ป“็ฎ—ๆ—ถ้—ด: {next_time}")
+print(f"ๅนดๅŒ–่ดน็އ: {rate * 3 * 365 * 100:.2f}%") # ๆฏ8ๅฐๆ—ถ็ป“็ฎ—ไธ€ๆฌก
+```
diff --git "a/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\351\231\220\344\273\267.md" "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\351\231\220\344\273\267.md"
new file mode 100644
index 000000000..c918ad17f
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\345\220\210\347\272\246\350\241\214\346\203\205/\351\231\220\344\273\267.md"
@@ -0,0 +1,35 @@
+## ๅˆ็บฆ้™ไปท
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/price-limit
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆ็บฆ็š„ๅฝ“ๅ‰ๆœ€้ซ˜ๅ’Œๆœ€ไฝŽ้™ไปทใ€‚่ถ…ๅ‡บ้™ไปท่Œƒๅ›ด็š„่ฎขๅ•ไผš่ขซๆ‹’็ปใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ๅˆ็บฆID๏ผŒๅฆ‚ `BTC-USDT-SWAP` |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instType | str | ไบงๅ“็ฑปๅž‹ |
+| instId | str | ไบงๅ“ID |
+| buyLmt | str | ไนฐๅ…ฅ้™ไปท๏ผˆๆœ€้ซ˜ๅฏไนฐไปท๏ผ‰ |
+| sellLmt | str | ๅ–ๅ‡บ้™ไปท๏ผˆๆœ€ไฝŽๅฏๅ–ไปท๏ผ‰ |
+| ts | str | ๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+resp = requests.get(f"{BASE_URL}/public/price-limit", params={"instId": "BTC-USDT-SWAP"})
+data = resp.json()["data"][0]
+print(f"ไนฐๅ…ฅไธŠ้™: {data['buyLmt']}")
+print(f"ๅ–ๅ‡บไธ‹้™: {data['sellLmt']}")
+```
diff --git "a/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260K\347\272\277.md" "b/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260K\347\272\277.md"
new file mode 100644
index 000000000..29d780ba2
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260K\347\272\277.md"
@@ -0,0 +1,53 @@
+## ๆŒ‡ๆ•ฐK็บฟ
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/index-candles
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐ็š„K็บฟๆ•ฐๆฎ๏ผŒ็”จไบŽๅˆ†ๆžๅŸบๅ‡†ไปทๆ ผ่ตฐๅŠฟใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ๆŒ‡ๆ•ฐID๏ผŒๅฆ‚ `BTC-USD` |
+| bar | str | N | K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค `1m`ใ€‚ๅฏ้€‰๏ผš`1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M` |
+| after | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅ‰็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰ |
+| before | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅŽ็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰ |
+| limit | str | N | ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒ้ป˜่ฎค 100๏ผŒๆœ€ๅคง 100 |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+่ฟ”ๅ›žไบŒ็ปดๆ•ฐ็ป„๏ผŒๆฏๆกๆ•ฐๆฎ๏ผš
+
+| ็ดขๅผ• | ๆ่ฟฐ |
+| ---- | ---- |
+| 0 | ๅผ€็›˜ๆ—ถ้—ด๏ผˆๆฏซ็ง’ๆ—ถ้—ดๆˆณ๏ผ‰ |
+| 1 | ๅผ€็›˜ไปท |
+| 2 | ๆœ€้ซ˜ไปท |
+| 3 | ๆœ€ไฝŽไปท |
+| 4 | ๆ”ถ็›˜ไปท |
+| 5 | K็บฟ็Šถๆ€๏ผš`0`=ๆœชๅฎŒ็ป“๏ผŒ`1`=ๅทฒๅฎŒ็ป“ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC ๆŒ‡ๆ•ฐๆ—ฅK
+resp = requests.get(f"{BASE_URL}/market/index-candles", params={
+ "instId": "BTC-USD",
+ "bar": "1D",
+ "limit": "30"
+})
+candles = resp.json()["data"]
+
+columns = ["ts", "open", "high", "low", "close", "confirm"]
+df = pd.DataFrame(candles, columns=columns)
+df["ts"] = pd.to_datetime(df["ts"].astype(int), unit="ms")
+for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+print(df[["ts", "open", "high", "low", "close"]].head())
+```
diff --git "a/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260\350\241\214\346\203\205.md" "b/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..1b2431bd7
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\346\214\207\346\225\260\350\241\214\346\203\205/\346\214\207\346\225\260\350\241\214\346\203\205.md"
@@ -0,0 +1,45 @@
+## ๆŒ‡ๆ•ฐ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/index-tickers
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐไปทๆ ผ่กŒๆƒ…ใ€‚ๆŒ‡ๆ•ฐไปทๆ ผ็”ฑๅคšๅฎถไบคๆ˜“ๆ‰€็Žฐ่ดงไปทๆ ผๅŠ ๆƒ่ฎก็ฎ—๏ผŒ็”จไบŽ่ก็”Ÿๅ“ๅฎšไปทๅŸบๅ‡†ใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | N | ๆŒ‡ๆ•ฐID๏ผŒๅฆ‚ `BTC-USD`ใ€`ETH-USD`๏ผˆไธŽ quoteCcy ไบŒ้€‰ไธ€๏ผ‰ |
+| quoteCcy | str | N | ่ฎกไปท่ดงๅธ๏ผŒๅฆ‚ `USD`๏ผˆ่Žทๅ–ๆ‰€ๆœ‰ USD ๆŒ‡ๆ•ฐ๏ผ‰ |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instId | str | ๆŒ‡ๆ•ฐID |
+| idxPx | str | ๆœ€ๆ–ฐๆŒ‡ๆ•ฐไปทๆ ผ |
+| high24h | str | 24ๅฐๆ—ถๆœ€้ซ˜ |
+| low24h | str | 24ๅฐๆ—ถๆœ€ไฝŽ |
+| open24h | str | 24ๅฐๆ—ถๅผ€็›˜ไปท |
+| sodUtc0 | str | UTC 0็‚นๅผ€็›˜ไปท |
+| sodUtc8 | str | UTC+8 0็‚นๅผ€็›˜ไปท |
+| ts | str | ๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC ๆŒ‡ๆ•ฐไปทๆ ผ
+resp = requests.get(f"{BASE_URL}/market/index-tickers", params={"instId": "BTC-USD"})
+data = resp.json()["data"][0]
+print(f"BTC ๆŒ‡ๆ•ฐไปทๆ ผ: {data['idxPx']}")
+
+# ่Žทๅ–ๆ‰€ๆœ‰ USD ๆŒ‡ๆ•ฐ
+resp = requests.get(f"{BASE_URL}/market/index-tickers", params={"quoteCcy": "USD"})
+indexes = resp.json()["data"]
+for idx in indexes[:10]:
+ print(f" {idx['instId']:15s} {idx['idxPx']:>10s}")
+```
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/K\347\272\277\346\225\260\346\215\256.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/K\347\272\277\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..833c2e521
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/K\347\272\277\346\225\260\346\215\256.md"
@@ -0,0 +1,77 @@
+## K็บฟๆ•ฐๆฎ๏ผˆOHLCV๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/candles
+ๆ่ฟฐ๏ผš่Žทๅ–K็บฟๆ•ฐๆฎ๏ผŒๆ”ฏๆŒไปŽ1ๅˆ†้’Ÿๅˆฐ1ๆœˆๅคš็งๅ‘จๆœŸใ€‚ๆœ€ๅคš่ฟ”ๅ›ž1440ๆกๅކๅฒๆ•ฐๆฎใ€‚ๅฏ้€š่ฟ‡ after/before ๅ‚ๆ•ฐ็ฟป้กต่Žทๅ–ๆ›ดๆ—ฉๆ•ฐๆฎใ€‚
+้™้ข‘๏ผš40ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ `BTC-USDT` |
+| bar | str | N | K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค `1m`ใ€‚ๅฏ้€‰๏ผš`1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/1W/1M` |
+| after | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅ‰็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰๏ผŒ็”จไบŽ็ฟป้กต |
+| before | str | N | ่ฏทๆฑ‚ๆญคๆ—ถ้—ดๆˆณไน‹ๅŽ็š„ๆ•ฐๆฎ๏ผˆๆฏซ็ง’๏ผ‰ |
+| limit | str | N | ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒ้ป˜่ฎค 100๏ผŒๆœ€ๅคง 300 |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+่ฟ”ๅ›žไบŒ็ปดๆ•ฐ็ป„๏ผŒๆฏๆกๆ•ฐๆฎๆŒ‰ไปฅไธ‹้กบๅบๆŽ’ๅˆ—๏ผš
+
+| ็ดขๅผ• | ๆ่ฟฐ |
+| ---- | ---- |
+| 0 | ๅผ€็›˜ๆ—ถ้—ด๏ผˆๆฏซ็ง’ๆ—ถ้—ดๆˆณ๏ผ‰ |
+| 1 | ๅผ€็›˜ไปท๏ผˆOpen๏ผ‰ |
+| 2 | ๆœ€้ซ˜ไปท๏ผˆHigh๏ผ‰ |
+| 3 | ๆœ€ไฝŽไปท๏ผˆLow๏ผ‰ |
+| 4 | ๆ”ถ็›˜ไปท๏ผˆClose๏ผ‰ |
+| 5 | ๆˆไบค้‡๏ผˆๅธ๏ผ‰ |
+| 6 | ๆˆไบค้ข๏ผˆ่ฎกไปท่ดงๅธ๏ผ‰ |
+| 7 | ๆˆไบค้ข๏ผˆๆŠฅไปท่ดงๅธ๏ผ‰ |
+| 8 | K็บฟ็Šถๆ€๏ผš`0`=ๆœชๅฎŒ็ป“๏ผŒ`1`=ๅทฒๅฎŒ็ป“ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC-USDT ๆ—ฅ็บฟ๏ผŒๆœ€่ฟ‘30ๆ น
+resp = requests.get(f"{BASE_URL}/market/candles", params={
+ "instId": "BTC-USDT",
+ "bar": "1D",
+ "limit": "30"
+})
+candles = resp.json()["data"]
+
+# ่ฝฌไธบ DataFrame
+columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+df = pd.DataFrame(candles, columns=columns)
+df["ts"] = pd.to_datetime(df["ts"].astype(int), unit="ms")
+for col in ["open", "high", "low", "close", "vol"]:
+ df[col] = df[col].astype(float)
+print(df[["ts", "open", "high", "low", "close", "vol"]].head())
+
+# ่Žทๅ– ETH-USDT 4ๅฐๆ—ถK็บฟ
+resp = requests.get(f"{BASE_URL}/market/candles", params={
+ "instId": "ETH-USDT",
+ "bar": "4H",
+ "limit": "50"
+})
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+```json
+{
+ "code": "0",
+ "data": [
+ ["1773763200000", "73915.5", "74800", "71966", "72144.3", "5129.27", "377618988.24", "377618988.24", "0"],
+ ["1773676800000", "73269.1", "76011.8", "73158", "73917.4", "8631.72", "642101158.54", "642101158.54", "1"],
+ ["1773590400000", "71478.1", "74500", "71300", "73269.1", "8461.09", "620450708.74", "620450708.74", "1"]
+ ]
+}
+```
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\344\272\244\346\230\223\344\272\247\345\223\201\345\210\227\350\241\250.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\344\272\244\346\230\223\344\272\247\345\223\201\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..a573b2019
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\344\272\244\346\230\223\344\272\247\345\223\201\345\210\227\350\241\250.md"
@@ -0,0 +1,53 @@
+## ไบคๆ˜“ไบงๅ“ๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/public/instruments
+ๆ่ฟฐ๏ผš่Žทๅ–ๆ‰€ๆœ‰ๅฏไบคๆ˜“ไบงๅ“็š„ๅŸบ็ก€ไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌไบคๆ˜“ๅฏนๅ็งฐใ€ๆœ€ๅฐไธ‹ๅ•้‡ใ€ไปทๆ ผ็ฒพๅบฆใ€ๅˆ็บฆ้ขๅ€ผ็ญ‰ใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instType | str | Y | ไบงๅ“็ฑปๅž‹๏ผš`SPOT`ใ€`SWAP`ใ€`FUTURES`ใ€`OPTION` |
+| instId | str | N | ไบงๅ“ID๏ผŒๅฆ‚ `BTC-USDT`๏ผˆๅฏ้€‰่ฟ‡ๆปค๏ผ‰ |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instType | str | ไบงๅ“็ฑปๅž‹ |
+| instId | str | ไบงๅ“ID |
+| baseCcy | str | ๅŸบ็ก€่ดงๅธ๏ผˆๅฆ‚ BTC๏ผ‰ |
+| quoteCcy | str | ่ฎกไปท่ดงๅธ๏ผˆๅฆ‚ USDT๏ผ‰ |
+| tickSz | str | ๆœ€ๅฐไปทๆ ผๅ˜ๅŠจ๏ผˆไปทๆ ผ็ฒพๅบฆ๏ผ‰ |
+| lotSz | str | ๆœ€ๅฐไบคๆ˜“ๆ•ฐ้‡๏ผˆไธ‹ๅ•็ฒพๅบฆ๏ผ‰ |
+| minSz | str | ๆœ€ๅฐไธ‹ๅ•้‡ |
+| ctVal | str | ๅˆ็บฆ้ขๅ€ผ๏ผˆไป…ๅˆ็บฆ๏ผ‰ |
+| lever | str | ๆœ€ๅคงๆ ๆ†๏ผˆไป…ๅˆ็บฆ๏ผ‰ |
+| listTime | str | ไธŠๅธ‚ๆ—ถ้—ด |
+| state | str | ็Šถๆ€๏ผš`live`๏ผˆไบคๆ˜“ไธญ๏ผ‰/ `suspend`๏ผˆๆš‚ๅœ๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ–ๆ‰€ๆœ‰็Žฐ่ดงไบคๆ˜“ๅฏน
+resp = requests.get(f"{BASE_URL}/public/instruments", params={"instType": "SPOT"})
+instruments = resp.json()["data"]
+print(f"็Žฐ่ดงไบคๆ˜“ๅฏนๆ•ฐ้‡: {len(instruments)}")
+
+# ็ญ›้€‰ USDT ไบคๆ˜“ๅฏน
+usdt_pairs = [i for i in instruments if i["quoteCcy"] == "USDT"]
+df = pd.DataFrame(usdt_pairs)[["instId", "baseCcy", "minSz", "tickSz", "lotSz"]]
+print(df.head(10))
+
+# ่Žทๅ–ๆ‰€ๆœ‰ๆฐธ็ปญๅˆ็บฆ
+resp = requests.get(f"{BASE_URL}/public/instruments", params={"instType": "SWAP"})
+swaps = resp.json()["data"]
+print(f"ๆฐธ็ปญๅˆ็บฆๆ•ฐ้‡: {len(swaps)}")
+```
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\345\215\225\344\270\252\350\241\214\346\203\205.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\345\215\225\344\270\252\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..1edc9bef7
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\345\215\225\344\270\252\350\241\214\346\203\205.md"
@@ -0,0 +1,77 @@
+## ๅ•ไธชไบงๅ“่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/ticker
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ•ไธชไบคๆ˜“ไบงๅ“็š„ๆœ€ๆ–ฐ่กŒๆƒ…ๅฟซ็…ง๏ผŒๅŒ…ๆ‹ฌๆœ€ๆ–ฐๆˆไบคไปทใ€ไนฐไธ€ๅ–ไธ€ไปทใ€24ๅฐๆ—ถๆˆไบค้‡็ญ‰ๆ ธๅฟƒๆ•ฐๆฎใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ `BTC-USDT`ใ€`BTC-USDT-SWAP` |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instType | str | ไบงๅ“็ฑปๅž‹๏ผˆSPOT/SWAP/FUTURES/OPTION๏ผ‰ |
+| instId | str | ไบคๆ˜“ไบงๅ“ID |
+| last | str | ๆœ€ๆ–ฐๆˆไบคไปท |
+| lastSz | str | ๆœ€ๆ–ฐๆˆไบค้‡ |
+| askPx | str | ๅ–ไธ€ไปท |
+| askSz | str | ๅ–ไธ€้‡ |
+| bidPx | str | ไนฐไธ€ไปท |
+| bidSz | str | ไนฐไธ€้‡ |
+| open24h | str | 24ๅฐๆ—ถๅผ€็›˜ไปท |
+| high24h | str | 24ๅฐๆ—ถๆœ€้ซ˜ไปท |
+| low24h | str | 24ๅฐๆ—ถๆœ€ไฝŽไปท |
+| vol24h | str | 24ๅฐๆ—ถๆˆไบค้‡๏ผˆๅธ๏ผ‰ |
+| volCcy24h | str | 24ๅฐๆ—ถๆˆไบค้ข๏ผˆ่ฎกไปท่ดงๅธ๏ผ‰ |
+| sodUtc0 | str | UTC 0็‚นๅผ€็›˜ไปท |
+| sodUtc8 | str | UTC+8 0็‚นๅผ€็›˜ไปท |
+| ts | str | ๆ•ฐๆฎๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC-USDT ็Žฐ่ดง่กŒๆƒ…
+resp = requests.get(f"{BASE_URL}/market/ticker", params={"instId": "BTC-USDT"})
+data = resp.json()["data"][0]
+print(f"ๆœ€ๆ–ฐไปท: {data['last']}, 24h้‡: {data['vol24h']}")
+
+# ่Žทๅ– ETH-USDT ๆฐธ็ปญๅˆ็บฆ่กŒๆƒ…
+resp = requests.get(f"{BASE_URL}/market/ticker", params={"instId": "ETH-USDT-SWAP"})
+data = resp.json()["data"][0]
+print(f"ETHๆฐธ็ปญๆœ€ๆ–ฐไปท: {data['last']}")
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+```json
+{
+ "code": "0",
+ "data": [{
+ "instType": "SPOT",
+ "instId": "BTC-USDT",
+ "last": "72159",
+ "lastSz": "0.00005196",
+ "askPx": "72157.1",
+ "askSz": "1.44548635",
+ "bidPx": "72157",
+ "bidSz": "0.1012",
+ "open24h": "73554.5",
+ "high24h": "74883",
+ "low24h": "71966",
+ "volCcy24h": "443213018.596221053",
+ "vol24h": "6013.17760207",
+ "ts": "1773842459809",
+ "sodUtc0": "73904.3",
+ "sodUtc8": "73915.5"
+ }]
+}
+```
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\211\271\351\207\217\350\241\214\346\203\205.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\211\271\351\207\217\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..6c0bf93fd
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\211\271\351\207\217\350\241\214\346\203\205.md"
@@ -0,0 +1,44 @@
+## ๆ‰น้‡ไบงๅ“่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/tickers
+ๆ่ฟฐ๏ผšๆ‰น้‡่Žทๅ–ๆŸไธชไบงๅ“็ฑปๅž‹ไธ‹ๆ‰€ๆœ‰ไบงๅ“็š„่กŒๆƒ…ๆ•ฐๆฎใ€‚ไพ‹ๅฆ‚่Žทๅ–ๆ‰€ๆœ‰็Žฐ่ดงไบคๆ˜“ๅฏน็š„่กŒๆƒ…ใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instType | str | Y | ไบงๅ“็ฑปๅž‹๏ผš`SPOT`๏ผˆ็Žฐ่ดง๏ผ‰ใ€`SWAP`๏ผˆๆฐธ็ปญ๏ผ‰ใ€`FUTURES`๏ผˆไบคๅ‰ฒ๏ผ‰ใ€`OPTION`๏ผˆๆœŸๆƒ๏ผ‰ |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ไธŽๅ•ไธช่กŒๆƒ…ๆŽฅๅฃ็›ธๅŒ๏ผŒ่ฟ”ๅ›žๆ•ฐ็ป„ๅŒ…ๅซ่ฏฅ็ฑปๅž‹ไธ‹ๆ‰€ๆœ‰ไบงๅ“่กŒๆƒ…ใ€‚
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+import pandas as pd
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ–ๆ‰€ๆœ‰็Žฐ่ดง่กŒๆƒ…
+resp = requests.get(f"{BASE_URL}/market/tickers", params={"instType": "SPOT"})
+tickers = resp.json()["data"]
+
+# ่ฝฌไธบ DataFrame๏ผŒๆŒ‰24hๆˆไบค้ขๆŽ’ๅบ
+df = pd.DataFrame(tickers)
+df["volCcy24h"] = df["volCcy24h"].astype(float)
+df = df.sort_values("volCcy24h", ascending=False)
+print(df[["instId", "last", "volCcy24h"]].head(10))
+
+# ่Žทๅ–ๆ‰€ๆœ‰ๆฐธ็ปญๅˆ็บฆ่กŒๆƒ…
+resp = requests.get(f"{BASE_URL}/market/tickers", params={"instType": "SWAP"})
+swaps = resp.json()["data"]
+print(f"ๆฐธ็ปญๅˆ็บฆๆ•ฐ้‡: {len(swaps)}")
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+่ฟ”ๅ›ž็ป“ๆž„ไธŽๅ•ไธช่กŒๆƒ…็›ธๅŒ๏ผŒ`data` ไธบๆ•ฐ็ป„ๅฝขๅผ๏ผŒๅŒ…ๅซ่ฏฅ็ฑปๅž‹ไธ‹ๅ…จ้ƒจไบงๅ“ใ€‚
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\234\200\350\277\221\346\210\220\344\272\244.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\234\200\350\277\221\346\210\220\344\272\244.md"
new file mode 100644
index 000000000..59341c3a7
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\234\200\350\277\221\346\210\220\344\272\244.md"
@@ -0,0 +1,38 @@
+## ๆœ€่ฟ‘ๆˆไบค
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/trades
+ๆ่ฟฐ๏ผš่Žทๅ–ไบงๅ“ๆœ€่ฟ‘็š„ๆˆไบคๆ˜Ž็ป†ๆ•ฐๆฎใ€‚
+้™้ข‘๏ผš20ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ `BTC-USDT` |
+| limit | str | N | ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒ้ป˜่ฎค 100๏ผŒๆœ€ๅคง 500 |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| instId | str | ไบคๆ˜“ไบงๅ“ID |
+| tradeId | str | ๆˆไบคID |
+| px | str | ๆˆไบคไปทๆ ผ |
+| sz | str | ๆˆไบคๆ•ฐ้‡ |
+| side | str | ๆˆไบคๆ–นๅ‘๏ผš`buy`๏ผˆไนฐๅ…ฅ๏ผ‰/ `sell`๏ผˆๅ–ๅ‡บ๏ผ‰ |
+| ts | str | ๆˆไบคๆ—ถ้—ด๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC-USDT ๆœ€่ฟ‘ๆˆไบค
+resp = requests.get(f"{BASE_URL}/market/trades", params={"instId": "BTC-USDT", "limit": "10"})
+trades = resp.json()["data"]
+for t in trades:
+ print(f"{t['side']:4s} {t['px']:>10s} {t['sz']:>12s}")
+```
diff --git "a/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\267\261\345\272\246\346\225\260\346\215\256.md" "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\267\261\345\272\246\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..230fc4fa7
--- /dev/null
+++ "b/agent/src/skills/okx-market/references/\347\216\260\350\264\247\350\241\214\346\203\205/\346\267\261\345\272\246\346\225\260\346\215\256.md"
@@ -0,0 +1,41 @@
+## ๆทฑๅบฆๆ•ฐๆฎ๏ผˆOrderbook๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšGET /api/v5/market/books
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ไบงๅ“็š„ไนฐๅ–็›˜ๅฃๆทฑๅบฆๆ•ฐๆฎ๏ผŒๅฏๆŒ‡ๅฎš่ฟ”ๅ›žๆทฑๅบฆๆกฃไฝๆ•ฐใ€‚
+้™้ข‘๏ผš40ๆฌก/2s
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ |
+| ---- | ---- | ---- | ---- |
+| instId | str | Y | ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ `BTC-USDT` |
+| sz | str | N | ๆทฑๅบฆๆกฃไฝๆ•ฐ๏ผŒ้ป˜่ฎค 1๏ผŒๆœ€ๅคง 400 |
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+| ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ |
+| ---- | ---- | ---- |
+| asks | list | ๅ–็›˜ๆ•ฐ็ป„๏ผŒๆฏๆกฃ `[ไปทๆ ผ, ๆ•ฐ้‡, ๅทฒๅบŸๅผƒ, ่ฎขๅ•ๆ•ฐ]` |
+| bids | list | ไนฐ็›˜ๆ•ฐ็ป„๏ผŒๆฏๆกฃ `[ไปทๆ ผ, ๆ•ฐ้‡, ๅทฒๅบŸๅผƒ, ่ฎขๅ•ๆ•ฐ]` |
+| ts | str | ๆ—ถ้—ดๆˆณ๏ผˆๆฏซ็ง’๏ผ‰ |
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+import requests
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+# ่Žทๅ– BTC-USDT ๅ‰5ๆกฃๆทฑๅบฆ
+resp = requests.get(f"{BASE_URL}/market/books", params={"instId": "BTC-USDT", "sz": "5"})
+book = resp.json()["data"][0]
+
+print("== ๅ–็›˜๏ผˆAsks๏ผ‰==")
+for ask in book["asks"]:
+ print(f" ไปทๆ ผ: {ask[0]:>10s} ๆ•ฐ้‡: {ask[1]:>12s}")
+
+print("== ไนฐ็›˜๏ผˆBids๏ผ‰==")
+for bid in book["bids"]:
+ print(f" ไปทๆ ผ: {bid[0]:>10s} ๆ•ฐ้‡: {bid[1]:>12s}")
+```
diff --git a/agent/src/skills/okx-market/scripts/candle_data_example.py b/agent/src/skills/okx-market/scripts/candle_data_example.py
new file mode 100644
index 000000000..316605871
--- /dev/null
+++ b/agent/src/skills/okx-market/scripts/candle_data_example.py
@@ -0,0 +1,103 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""ๅŠ ๅฏ†่ดงๅธK็บฟๆ•ฐๆฎ่Žทๅ–็คบไพ‹่„šๆœฌใ€‚"""
+
+from typing import Optional
+
+import requests
+import pandas as pd
+from datetime import datetime
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+CANDLE_COLUMNS = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+INDEX_CANDLE_COLUMNS = ["ts", "open", "high", "low", "close", "confirm"]
+
+
+def get_candles(inst_id: str, bar: str = "1D", limit: int = 100) -> Optional[pd.DataFrame]:
+ """่Žทๅ–K็บฟๆ•ฐๆฎๅนถ่ฝฌไธบ DataFrameใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ BTC-USDTใ€‚
+ bar: K็บฟๅ‘จๆœŸ๏ผŒๅฆ‚ 1m/5m/1H/4H/1D/1Wใ€‚
+ limit: ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒๆœ€ๅคง300ใ€‚
+
+ Returns:
+ DataFrame (ts, open, high, low, close, vol)๏ผŒๅคฑ่ดฅ่ฟ”ๅ›ž Noneใ€‚
+ """
+ try:
+ resp = requests.get(f"{BASE_URL}/market/candles", params={
+ "instId": inst_id, "bar": bar, "limit": str(limit)
+ })
+ data = resp.json()
+ if data["code"] != "0":
+ print(f"API้”™่ฏฏ: {data['msg']}")
+ return None
+
+ df = pd.DataFrame(data["data"], columns=CANDLE_COLUMNS)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ for col in ["open", "high", "low", "close", "vol"]:
+ df[col] = df[col].astype(float)
+ df = df.sort_values("ts").reset_index(drop=True)
+ return df
+ except Exception as e:
+ print(f"่Žทๅ–K็บฟๅคฑ่ดฅ: {e}")
+ return None
+
+
+def get_index_candles(inst_id: str, bar: str = "1D", limit: int = 100) -> Optional[pd.DataFrame]:
+ """่Žทๅ–ๆŒ‡ๆ•ฐK็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ๆŒ‡ๆ•ฐID๏ผŒๅฆ‚ BTC-USDใ€‚
+ bar: K็บฟๅ‘จๆœŸใ€‚
+ limit: ่ฟ”ๅ›žๆกๆ•ฐ๏ผŒๆœ€ๅคง100ใ€‚
+
+ Returns:
+ DataFrame (ts, open, high, low, close)๏ผŒๅคฑ่ดฅ่ฟ”ๅ›ž Noneใ€‚
+ """
+ try:
+ resp = requests.get(f"{BASE_URL}/market/index-candles", params={
+ "instId": inst_id, "bar": bar, "limit": str(limit)
+ })
+ data = resp.json()
+ if data["code"] != "0":
+ print(f"API้”™่ฏฏ: {data['msg']}")
+ return None
+
+ df = pd.DataFrame(data["data"], columns=INDEX_CANDLE_COLUMNS)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df = df.sort_values("ts").reset_index(drop=True)
+ return df
+ except Exception as e:
+ print(f"่Žทๅ–ๆŒ‡ๆ•ฐK็บฟๅคฑ่ดฅ: {e}")
+ return None
+
+
+def main():
+ """ไธปๅ‡ฝๆ•ฐใ€‚"""
+ print("===== OKX K็บฟๆ•ฐๆฎ่Žทๅ–็คบไพ‹ =====\n")
+
+ # BTC ๆ—ฅ็บฟ
+ print("--- BTC-USDT ๆ—ฅ็บฟ (ๆœ€่ฟ‘10ๅคฉ) ---")
+ df = get_candles("BTC-USDT", "1D", 10)
+ if df is not None:
+ print(df[["ts", "open", "high", "low", "close", "vol"]].to_string(index=False))
+
+ # ETH 4ๅฐๆ—ถ็บฟ
+ print("\n--- ETH-USDT 4H็บฟ (ๆœ€่ฟ‘10ๆ น) ---")
+ df = get_candles("ETH-USDT", "4H", 10)
+ if df is not None:
+ print(df[["ts", "open", "high", "low", "close", "vol"]].to_string(index=False))
+
+ # BTC ๆŒ‡ๆ•ฐๆ—ฅK
+ print("\n--- BTC-USD ๆŒ‡ๆ•ฐๆ—ฅ็บฟ (ๆœ€่ฟ‘10ๅคฉ) ---")
+ df = get_index_candles("BTC-USD", "1D", 10)
+ if df is not None:
+ print(df[["ts", "open", "high", "low", "close"]].to_string(index=False))
+
+
+if __name__ == "__main__":
+ main()
diff --git a/agent/src/skills/okx-market/scripts/market_data_example.py b/agent/src/skills/okx-market/scripts/market_data_example.py
new file mode 100644
index 000000000..38380e30f
--- /dev/null
+++ b/agent/src/skills/okx-market/scripts/market_data_example.py
@@ -0,0 +1,112 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""ๅŠ ๅฏ†่ดงๅธ่กŒๆƒ…ๆ•ฐๆฎ่Žทๅ–็คบไพ‹่„šๆœฌใ€‚"""
+
+from typing import Optional
+
+import requests
+import pandas as pd
+from datetime import datetime
+
+BASE_URL = "https://www.okx.com/api/v5"
+
+
+def get_ticker(inst_id: str) -> Optional[dict]:
+ """่Žทๅ–ๅ•ไธชไบงๅ“็š„ๅฎžๆ—ถ่กŒๆƒ…ใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ไบงๅ“ID๏ผŒๅฆ‚ BTC-USDTใ€‚
+
+ Returns:
+ ่กŒๆƒ…ๆ•ฐๆฎๅญ—ๅ…ธ๏ผŒๅคฑ่ดฅ่ฟ”ๅ›ž Noneใ€‚
+ """
+ try:
+ resp = requests.get(f"{BASE_URL}/market/ticker", params={"instId": inst_id})
+ data = resp.json()
+ if data["code"] != "0":
+ print(f"API้”™่ฏฏ: {data['msg']}")
+ return None
+ ticker = data["data"][0]
+ last = float(ticker["last"])
+ open24h = float(ticker["open24h"])
+ chg = (last / open24h - 1) * 100
+ print(f"{inst_id} ๆœ€ๆ–ฐไปท: {last} 24hๆถจ่ทŒ: {chg:+.2f}% 24h้‡: {ticker['vol24h']}")
+ return ticker
+ except Exception as e:
+ print(f"่Žทๅ–่กŒๆƒ…ๅคฑ่ดฅ: {e}")
+ return None
+
+
+def get_top_tickers(inst_type: str = "SPOT", top_n: int = 10) -> Optional[pd.DataFrame]:
+ """่Žทๅ–ๆˆไบค้ขๆŽ’ๅๅ‰N็š„ไบคๆ˜“ๅฏนใ€‚
+
+ Args:
+ inst_type: ไบงๅ“็ฑปๅž‹๏ผŒSPOT/SWAP/FUTURES/OPTIONใ€‚
+ top_n: ่ฟ”ๅ›žๅ‰Nๅใ€‚
+
+ Returns:
+ DataFrame๏ผŒๅคฑ่ดฅ่ฟ”ๅ›ž Noneใ€‚
+ """
+ try:
+ resp = requests.get(f"{BASE_URL}/market/tickers", params={"instType": inst_type})
+ tickers = resp.json()["data"]
+ df = pd.DataFrame(tickers)
+ df["volCcy24h"] = df["volCcy24h"].astype(float)
+ df["last"] = df["last"].astype(float)
+ df = df.sort_values("volCcy24h", ascending=False).head(top_n)
+ print(f"\n{inst_type} ๆˆไบค้ข TOP {top_n}:")
+ print(df[["instId", "last", "volCcy24h"]].to_string(index=False))
+ return df
+ except Exception as e:
+ print(f"่Žทๅ–ๆ‰น้‡่กŒๆƒ…ๅคฑ่ดฅ: {e}")
+ return None
+
+
+def get_funding_rates(symbols: Optional[list] = None) -> Optional[pd.DataFrame]:
+ """่Žทๅ–ๆฐธ็ปญๅˆ็บฆ่ต„้‡‘่ดน็އใ€‚
+
+ Args:
+ symbols: ๅˆ็บฆIDๅˆ—่กจ๏ผŒๅฆ‚ ['BTC-USDT-SWAP']ใ€‚้ป˜่ฎค่Žทๅ–ไธปๆตๅธ็งใ€‚
+
+ Returns:
+ DataFrame๏ผŒๅคฑ่ดฅ่ฟ”ๅ›ž Noneใ€‚
+ """
+ if symbols is None:
+ symbols = ["BTC-USDT-SWAP", "ETH-USDT-SWAP", "SOL-USDT-SWAP", "DOGE-USDT-SWAP"]
+
+ rows = []
+ for sym in symbols:
+ try:
+ resp = requests.get(f"{BASE_URL}/public/funding-rate", params={"instId": sym})
+ data = resp.json()["data"][0]
+ rate = float(data["fundingRate"])
+ annual = rate * 3 * 365 * 100
+ rows.append({"instId": sym, "fundingRate": rate, "annualized": f"{annual:.2f}%"})
+ except Exception as e:
+ print(f"่Žทๅ– {sym} ่ต„้‡‘่ดน็އๅคฑ่ดฅ: {e}")
+
+ if rows:
+ df = pd.DataFrame(rows)
+ print("\nๆฐธ็ปญๅˆ็บฆ่ต„้‡‘่ดน็އ:")
+ print(df.to_string(index=False))
+ return df
+ return None
+
+
+def main():
+ """ไธปๅ‡ฝๆ•ฐใ€‚"""
+ print("===== OKX ๅŠ ๅฏ†่ดงๅธ่กŒๆƒ…่Žทๅ–็คบไพ‹ =====\n")
+
+ # ่Žทๅ–ไธปๆตๅธ็ง่กŒๆƒ…
+ for symbol in ["BTC-USDT", "ETH-USDT", "SOL-USDT"]:
+ get_ticker(symbol)
+
+ # ่Žทๅ–็Žฐ่ดงๆˆไบค้ข TOP 10
+ get_top_tickers("SPOT", 10)
+
+ # ่Žทๅ–่ต„้‡‘่ดน็އ
+ get_funding_rates()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/agent/src/skills/onchain-analysis/SKILL.md b/agent/src/skills/onchain-analysis/SKILL.md
new file mode 100644
index 000000000..c26c77859
--- /dev/null
+++ b/agent/src/skills/onchain-analysis/SKILL.md
@@ -0,0 +1,252 @@
+---
+name: onchain-analysis
+description: On-chain data analysis โ€” active addresses / whale tracking / TVL / DEX liquidity, interpretation and signal generation using on-chain valuation metrics such as MVRV / NVT / SOPR.
+---
+
+# On-Chain Data Analysis
+
+## Overview
+
+Use transparent public blockchain data for analysis, covering network activity, whale-behavior tracking, DeFi liquidity analysis, and on-chain valuation metrics. This provides crypto investing with data dimensions unavailable in traditional finance.
+
+## Network Activity Metrics
+
+### Core Activity Indicators
+
+| Metric | Meaning | Bullish Signal | Bearish Signal |
+|------|------|---------|---------|
+| Active addresses | Unique addresses interacting with the network each day | Sustained increase (network adoption rising) | Sustained decline |
+| New addresses | Addresses appearing for the first time each day | Accelerating growth (new users entering) | Shrinkage |
+| Transaction count | Number of on-chain transactions per day | Steady growth | Sharp decline |
+| Transfer value | Total value transferred on-chain per day | Large-value transfer activity | Inactive |
+| Activity / price ratio | Growth in active addresses vs growth in price | Activity growth outpaces price growth | Price rises but activity does not |
+
+### Activity Analysis Framework
+
+```
+Healthy bull market:
+ Priceโ†‘ + active addressesโ†‘ + new addressesโ†‘ = driven by real demand
+
+Bubble signal:
+ Priceโ†‘ + active addressesโ†“ or flat = capital-driven, not user-driven
+
+Bottoming signal:
+ Priceโ†“ + active addresses bottom out and stabilize = speculators exit, real users remain
+```
+
+### Historical Reference for BTC Active Addresses
+
+| Phase | Active Addresses (daily avg) | BTC Price | Meaning |
+|------|--------------|---------|------|
+| 2020 bear-to-bull transition | 0.8-1.0 million | $10k-$20k | Bottom stabilization |
+| 2021 bull market | 1.0-1.3 million | $30k-$69k | Healthy growth |
+| 2022 bear market | 0.8-0.9 million | $16k-$30k | Pulled back but did not collapse |
+| 2024 bull market | 0.9-1.2 million | $40k-$100k | Institution-driven |
+
+## Whale Tracking
+
+### Whale Definition
+
+| Tier | BTC Holdings | ETH Holdings | Estimated Count |
+|------|---------|---------|---------|
+| Super whales | >10,000 BTC | >100,000 ETH | ~100 |
+| Large whales | 1,000-10,000 BTC | 10,000-100,000 ETH | ~2,000 |
+| Mid whales | 100-1,000 BTC | 1,000-10,000 ETH | ~15,000 |
+| Small whales | 10-100 BTC | 100-1,000 ETH | ~150,000 |
+
+### Whale Behavior Signals
+
+```
+Bullish signals:
+1. Whales withdraw from exchanges -> intent to hold long term
+2. Whale-wallet count rises -> institutions / large holders accumulating
+3. Exchange BTC balance keeps falling -> lower available supply
+4. Long-term holder (LTH) balances rise -> smart money buying
+
+Bearish signals:
+1. Large whale transfers into exchanges -> preparing to sell
+2. Dormant addresses wake up and transfer -> early holders taking profits
+3. Exchange balances surge -> sell pressure is about to be released
+4. Miner balances fall and move to exchanges -> miner capitulation / profit taking
+```
+
+### Large Transfer Monitoring
+
+```
+Thresholds to watch:
+- BTC: single transfer > 500 BTC (about $50M)
+- ETH: single transfer > 10,000 ETH (about $30M)
+- USDT: single transfer > $50M
+
+Transfer-direction analysis:
+- Wallet -> exchange: potential selling (bearish)
+- Exchange -> wallet: withdrawal to hold (bullish)
+- Exchange -> exchange: arbitrage transfer (neutral)
+- Wallet -> wallet: OTC trade (watch follow-up behavior)
+```
+
+## DeFi Liquidity Analysis
+
+### TVL (Total Value Locked)
+
+```
+TVL = total value of assets locked in DeFi protocols
+
+TVL analysis dimensions:
+1. Total TVL trend: rising = capital flowing into the DeFi ecosystem
+2. Cross-chain TVL: market-share changes among ETH vs Solana vs Arbitrum
+3. Protocol TVL ranking: leading protocols such as Aave / Lido / Maker
+4. TVL / market cap ratio: similar to asset-utilization rate in traditional finance
+```
+
+### DEX Liquidity Metrics
+
+| Metric | Meaning | Focus |
+|------|------|--------|
+| DEX volume | Daily decentralized-exchange volume | Trend in DEX / CEX ratio |
+| Liquidity depth | Size of AMM liquidity pools | Bigger pools = lower slippage = better |
+| LP yield | Annualized return for liquidity providers | Abnormally high = unsustainable |
+| Impermanent loss | Opportunity cost for LPs | More severe when volatility is higher |
+
+### Stablecoin Liquidity
+
+```
+Stablecoin inflows = "dry powder" for the crypto market
+
+Metrics to watch:
+1. Changes in total USDT / USDC supply
+2. Stablecoin balances on exchanges
+3. Stablecoin mint / burn activity (Tether / Circle)
+4. Stablecoin market-cap share (lower = higher risk appetite)
+
+Signals:
+- Heavy stablecoin minting -> capital preparing to enter
+- Exchange stablecoin balances up -> buying power is accumulating
+- Stablecoin share rising quickly -> risk-off market (capital rotating from coins into stablecoins)
+```
+
+## On-Chain Valuation Metrics
+
+### MVRV (Market Value to Realized Value)
+
+```
+MVRV = market cap / realized cap
+
+Realized cap = ฮฃ(each UTXO ร— price at last movement)
+ = sum of all holders' cost basis
+
+| MVRV | Meaning | Historical Signal |
+|------|------|---------|
+| > 3.5 | Severely overvalued, large unrealized profits across holders | Historical top zone |
+| 2.0-3.5 | Richly valued, most holders in profit | Mid-to-late bull market |
+| 1.0-2.0 | Reasonable range | Normal market or early bull market |
+| < 1.0 | Undervalued, most holders underwater | Bear-market bottom zone |
+
+Signal logic: MVRV > 3.5 -> most holders have large unrealized gains -> strong incentive to sell -> potential top
+ MVRV < 1.0 -> most holders are losing money -> unwilling to sell -> potential bottom
+```
+
+### NVT (Network Value to Transactions)
+
+```
+NVT = market cap / daily on-chain transfer value
+
+Similar to a PE ratio in traditional finance:
+- High NVT: market cap is high relative to on-chain activity (overvalued or optimistic on future growth)
+- Low NVT: market cap is low relative to on-chain activity (undervalued or value-like)
+
+NVT Signal (improved):
+NVT_Signal = market cap / MA(90, daily on-chain transfer value)
+Use a 90-day moving average to smooth noise
+
+| NVT Signal | Meaning |
+|-----------|------|
+| > 150 | Severely overvalued |
+| 65-150 | Normal range |
+| < 65 | Undervalued |
+```
+
+### SOPR (Spent Output Profit Ratio)
+
+```
+SOPR = realized value of spent outputs / creation value of spent outputs
+
+Simply put: on average, are the coins sold today being sold at a profit or a loss?
+
+| SOPR | Meaning | Signal |
+|------|------|------|
+| > 1.05 | Sellers are realizing 5%+ profit on average | Profit-taking pressure |
+| 1.0-1.05 | Small-profit selling | Normal |
+| = 1.0 | Break-even | Key support / resistance |
+| < 1.0 | Selling at a loss | Panic selling (bottom signal) |
+
+In bull markets: a pullback to SOPR = 1.0 is a buy opportunity (cost-basis support)
+In bear markets: a rebound to SOPR = 1.0 is a sell opportunity (cost-basis resistance)
+```
+
+### Other On-Chain Valuation Metrics
+
+| Metric | Formula | Purpose |
+|------|------|------|
+| Puell Multiple | Daily miner revenue / MA(365, daily miner revenue) | Miner-income cycle |
+| Stock-to-Flow | stock / annual production | BTC scarcity model |
+| Reserve Risk | HODL Bank / price | Holder confidence |
+| Exchange balance | total BTC held on exchanges | Supply-side pressure |
+
+## Analysis Framework
+
+### Composite On-Chain Score
+
+```
+Score each indicator from 1 to 5 and combine with weights:
+
+| Dimension | Weight | Indicators |
+|------|------|------|
+| Valuation | 30% | MVRV, NVT |
+| Activity | 25% | active addresses, new addresses |
+| Capital flow | 25% | exchange balances, stablecoins |
+| Whale behavior | 20% | whale holdings, large transfers |
+
+Total score > 4.0: strongly bullish
+Total score 3.0-4.0: bullish bias
+Total score 2.0-3.0: neutral
+Total score < 2.0: bearish / leaning bearish
+```
+
+## Output Format
+
+```markdown
+## On-Chain Analysis Report: BTC
+
+### On-Chain Snapshot
+| Metric | Current Value | Historical Percentile | Signal |
+|------|--------|---------|------|
+| MVRV | 2.1 | 65% | Elevated but not at a top |
+| NVT Signal | 85 | 50% | Fair |
+| SOPR(7d avg) | 1.02 | 55% | Slight profit-taking state |
+| Active addresses | 950k/day | 45% | Relatively low |
+| Exchange balance | 2.30M BTC | 30% | Low level (bullish) |
+
+### Whale Activity
+- Last 7 days: net withdrawal of +15,000 BTC (bullish)
+- Large transfers: 3 transfers >1000 BTC into cold wallets
+- Miners: holdings stable, no major outflows observed
+
+### Composite Score: 3.5/5 (bullish bias)
+
+### Conclusion
+On-chain data is broadly bullish. MVRV is not yet in an extreme zone, exchange balances are low,
+and whales continue to accumulate. But active addresses remain soft, so monitor whether this is an
+"institution-driven bull market without retail participation". Maintain long exposure, but keep
+position sizing controlled and avoid leverage.
+```
+
+## Notes
+
+1. **Data-source limitations**: on-chain data is most reliable for BTC and ETH; data quality for other chains is uneven
+2. **Entity identification is difficult**: one entity can control multiple addresses, so whale analysis contains error
+3. **UTXO vs account model**: BTC (UTXO) analysis methods cannot be directly applied to ETH (account model)
+4. **Missing Layer-2 data**: many transactions occur on L2s (Arbitrum / Optimism), so L1 data is incomplete
+5. **On-chain data lag**: block confirmation takes time, so this is not suitable for short-term trading decisions
+6. **Data acquisition**: the built-in OKX data source provides candles / trade data, but on-chain data requires extra APIs (Glassnode / Nansen)
+7. **Metric desensitization**: as market structure changes (ETFization / institutionalization), historical thresholds may need adjustment
diff --git a/agent/src/skills/options-advanced/SKILL.md b/agent/src/skills/options-advanced/SKILL.md
new file mode 100644
index 000000000..7f1c2920a
--- /dev/null
+++ b/agent/src/skills/options-advanced/SKILL.md
@@ -0,0 +1,186 @@
+---
+name: options-advanced
+description: "Advanced options strategies: volatility-surface modeling (SABR / Local Vol), dynamic Greeks rebalancing, calendar spreads, volatility arbitrage and skew trading, and option market-making basics."
+---
+
+# Advanced Options Strategies
+
+## Overview
+
+Go beyond basic option strategies (`covered call` / `protective put`) and focus on trading opportunities along the volatility dimension. Core idea: option price = intrinsic value + time value, and advanced trading essentially trades the volatility expectations embedded behind that time value.
+
+Applicable scenarios:
+- Identifying arbitrage opportunities when the volatility surface is abnormal (`skew` / `term structure`)
+- Fine-grained management of portfolio Greeks exposures (not just Delta hedging)
+- Building structured strategies across maturities and strikes
+- Practical application in 50ETF / 300ETF / commodity options
+
+## Core Concepts
+
+### Volatility Surface
+
+Three-dimensional structure: strike ร— expiry ร— implied volatility.
+
+**Key dimensions**:
+| Dimension | Meaning | Typical Shape |
+|------|------|----------|
+| Smile / Skew | IV across strikes for the same expiry | China A-shares: left-skewed (`put IV > call IV`) |
+| Term Structure | IV across expiries for the same strike | Normal case: near-month IV < far-month IV |
+| Surface dynamics | Parallel or nonlinear movement of the entire surface | In panic, the whole surface lifts, and near-month IV lifts faster |
+
+**SABR model parameters**:
+```
+ฮฑ (alpha): initial volatility level, around 0.2-0.5
+ฮฒ (beta): CEV exponent, equities usually use 0.5-1.0
+ฯ (rho): correlation between volatility and the underlying, usually -0.3 to -0.7 in China A-shares (negative = left skew)
+ฮฝ (nu): volatility of volatility (vol of vol), around 0.3-0.8
+```
+
+**Local Vol vs SABR**:
+- Local Vol (Dupire): backed out from market prices, exact fit but unstable extrapolation
+- SABR: parameterized model, 4 parameters capture surface dynamics and extrapolate more reasonably
+
+### Dynamic Greeks Management
+
+**First-order Greeks**:
+| Greek | Meaning | Management Approach |
+|-------|------|----------|
+| Delta (ฮ”) | Sensitivity to underlying price | Hedge frequency: daily for ATM, every 2-3 days for OTM |
+| Vega (ฮฝ) | Sensitivity to IV | Calendar spreads can isolate Vega exposure |
+| Theta (ฮ˜) | Time decay | Short-option strategies are naturally positive Theta, but watch Gamma risk |
+| Rho (ฯ) | Sensitivity to rates | Relevant for long-dated options, usually ignorable for short-dated options |
+
+**Second-order Greeks**:
+| Greek | Meaning | Key Scenario |
+|-------|------|----------|
+| Gamma (ฮ“) | Rate of change of Delta | Highest near ATM and spikes before expiry |
+| Vanna | Sensitivity of Delta to IV | Core Greek for skew trading |
+| Volga / Vomma | Sensitivity of Vega to IV | Important when volatility moves sharply |
+
+**Delta hedge frequency decision**:
+```
+Hedging cost = trading frequency ร— slippage per rebalance
+Unhedged risk = Gamma exposure ร— underlying volatilityยฒ
+Optimal frequency (Zakamouline criterion):
+ Trigger hedge when Gamma ร— Sยฒ ร— ฯƒยฒ ร— ฮ”t > 2 ร— transaction_cost
+Practical rule: ATM Gamma is large -> hedge daily; OTM -> hedge weekly or on threshold triggers
+```
+
+## Analysis Framework
+
+### 1. Calendar Spread
+
+**Principle**: sell the near-month option and buy the far-month option at the same strike, profiting from faster near-month Theta decay.
+
+**Entry conditions**:
+- Normal term structure (`near-month IV โ‰ค far-month IV`)
+- Expect the underlying to stay in a narrow range
+- Open the position 20-30 days before near-month expiry
+
+**50ETF example**:
+```
+Underlying: 50ETF current price 2.80
+Sell: 50ETF near-month C2800 IV=18%, collect premium 0.045
+Buy: 50ETF far-month C2800 IV=20%, pay premium 0.082
+Net debit: 0.037 (max loss)
+Breakeven: profit if the underlying stays in the 2.76-2.84 range at near-month expiry
+Max profit: when near-month expires with the underlying right at 2.80, roughly 0.045 minus the time-decay differential
+```
+
+**Risk-control points**:
+- Large breakout in the underlying โ†’ stop loss (if loss exceeds 50% of net debit)
+- Near-month IV suddenly rises above far-month IV (term-structure inversion) โ†’ close position
+
+### 2. Volatility Arbitrage
+
+**Long Gamma strategy** (buy volatility):
+```
+Scenario: realized volatility is expected to exceed implied volatility
+Trade: buy ATM straddle + Delta hedge
+Profit source: Gamma-scalping gains > Theta decay
+Key metric:
+ Breakeven volatility = IV + Theta/Gamma cost
+ Example in 300ETF: buy straddle at IV=16%; if realized volatility >18%, the trade is profitable
+```
+
+**Short Gamma strategy** (sell volatility):
+```
+Scenario: realized volatility is expected to stay below implied volatility
+Trade: sell ATM straddle + Delta hedge
+Profit source: Theta income > hedging loss
+Risk control: set max loss = 2x premium received, close when hit
+```
+
+### 3. Skew Trade
+
+**Risk Reversal**:
+```
+Scenario: skew is too steep (put IV excessively high relative to call IV)
+Trade: sell OTM put + buy OTM call (zero-cost or slight net credit)
+Exposure: long skew (profit if skew mean-reverts)
+50ETF example:
+ Sell P2700 IV=22% collect 0.025
+ Buy C2900 IV=16% pay 0.018
+ Net credit 0.007, profiting from skew mean reversion
+```
+
+**Butterfly skew trade**:
+```
+Scenario: localized skew abnormality (IV deviation at a particular strike)
+Trade: build a butterfly centered on the abnormal strike
+ If IV is too high -> sell that strike (middle leg of the butterfly)
+ If IV is too low -> buy that strike
+```
+
+### 4. Option Market-Making Basics
+
+**Quoting strategy**:
+- Bid-ask spread = `f(Gamma risk, inventory skew, market volatility)`
+- Narrow spreads attract flow; wider spreads protect risk
+- Inventory-skew management: if Delta exceeds the limit, tilt quotes to induce the other side to offset inventory
+
+**Inventory management**:
+```
+Delta limit: ยฑ500 underlying-equivalent lots
+Gamma limit: daily Gamma PnL should not exceed 2% of account equity
+Vega limit: PnL from a 1% IV move should not exceed 1% of account equity
+When over the limit: hedge in the market first, adjust quotes second
+```
+
+## Output Format
+
+Volatility analysis report:
+```
+=== Volatility Surface Analysis ===
+Underlying: 50ETF Current price: 2.80
+ATM IV: 18.5% Historical percentile: 35% (relatively low)
+Skew (25D): -3.2% (put IV is 3.2% higher than call IV) Historical percentile: 70% (relatively steep)
+Term Structure: normal (near-month 17.8% < far-month 19.2%)
+
+=== Strategy Recommendation ===
+Opportunity: steep skew + low IV
+Strategy: Risk Reversal (sell put / buy call) + Calendar Spread
+Expectation: skew mean reversion + mild IV rise
+Risk control: keep Delta neutral, keep Gamma within ยฑ200 lots
+
+=== Greeks Monitoring ===
+Portfolio Delta: +15 (neutral)
+Portfolio Gamma: -180 (short Gamma, watch gap risk)
+Portfolio Vega: +3200 (long Vega, benefits from higher IV)
+Portfolio Theta: -450 / day
+```
+
+## Notes
+
+1. **China A-share option characteristics**: liquidity in 50ETF / 300ETF options is concentrated in near-month ATM ยฑ 3 strikes; deep OTM and far-month options are illiquid and have large slippage
+2. **Margin management**: short-option margin changes dynamically with the underlying; keep >30% buffer to avoid margin calls
+3. **Expiry-week effect**: Gamma rises sharply during the week before expiry, Pin Risk increases, and short-option traders should reduce size early
+4. **Market-making barrier**: real market making requires high-frequency infrastructure, low latency, and professional risk controls; retail traders should not attempt pure market making
+5. **SABR calibration**: calibrate parameters daily after the close with market data, then use prior-day parameters plus real-time adjustment at the open
+6. **Gamma scalping PnL**: actual profit = `0.5 ร— Gamma ร— (RVยฒ - IVยฒ) ร— Sยฒ ร— T`; realized volatility must exceed IV by a meaningful margin to cover transaction costs
+
+## Dependencies
+
+```bash
+pip install pandas numpy scipy
+```
diff --git a/agent/src/skills/options-payoff/SKILL.md b/agent/src/skills/options-payoff/SKILL.md
new file mode 100644
index 000000000..cfe46729c
--- /dev/null
+++ b/agent/src/skills/options-payoff/SKILL.md
@@ -0,0 +1,859 @@
+---
+name: options-payoff
+description: "Option P&L analysis methodology: payoff diagrams, breakeven calculation, multi-leg strategy visualization, and Greeks-based scenario analysis."
+---
+
+# Options Payoff โ€” Option P&L Analysis Methodology
+
+## Overview
+
+This skill is designed for option strategy analysis scenarios within the Vibe-Trading quantitative framework, covering:
+- P&L curve generation for single-leg and multi-leg option portfolios
+- Black-Scholes pricing and Greeks calculation
+- Implied volatility inversion
+- Strategy selection decision support
+
+**Constraint**: For research and backtesting only. Do not output live trading instructions, in line with the project's guardrails.
+
+---
+
+## 1. Supported Strategy Types
+
+### 1.1 Single-Leg Strategies
+
+| Strategy | Bias | Premium | Max Profit | Max Loss |
+|------|------|--------|----------|----------|
+| Long Call | Bullish | Paid | Unlimited | Premium |
+| Long Put | Bearish | Paid | Strike - premium | Premium |
+| Short Call | Neutral / mildly bearish | Received | Premium | Unlimited |
+| Short Put | Neutral / mildly bullish | Received | Premium | Strike - premium |
+
+### 1.2 Vertical Spreads
+
+| Strategy | Structure | Market View | Net Premium |
+|------|------|----------|----------|
+| Bull Call Spread | Long Call (lower K) + Short Call (higher K) | Moderately bullish | Net debit |
+| Bear Put Spread | Long Put (higher K) + Short Put (lower K) | Moderately bearish | Net debit |
+| Bull Put Spread | Short Put (higher K) + Long Put (lower K) | Moderately bullish | Net credit |
+| Bear Call Spread | Short Call (lower K) + Long Call (higher K) | Moderately bearish | Net credit |
+
+### 1.3 Straddles / Strangles (Volatility Strategies)
+
+| Strategy | Structure | Market View |
+|------|------|----------|
+| Long Straddle | Long Call (ATM) + Long Put (ATM) | Large move up or down, low volatility |
+| Short Straddle | Short Call (ATM) + Short Put (ATM) | Range-bound market, high volatility |
+| Long Strangle | Long Call (OTM) + Long Put (OTM) | Large move, lower cost than a straddle |
+| Short Strangle | Short Call (OTM) + Short Put (OTM) | Tight range, collect two-sided premium |
+
+### 1.4 Butterflies / Iron Butterflies
+
+| Strategy | Structure | Feature |
+|------|------|------|
+| Long Butterfly (Call) | Long Call (K1) + 2ร— Short Call (K2) + Long Call (K3) | Low-cost bet that the underlying expires near K2 |
+| Long Butterfly (Put) | Long Put (K3) + 2ร— Short Put (K2) + Long Put (K1) | Same logic, built with puts |
+| Iron Butterfly | Short Call (K2) + Short Put (K2) + Long Call (K3) + Long Put (K1) | Net credit, max profit at K2 |
+
+### 1.5 Condors / Iron Condors
+
+| Strategy | Structure | Feature |
+|------|------|------|
+| Long Condor (Call) | Long Call (K1) + Short Call (K2) + Short Call (K3) + Long Call (K4) | Bet that the underlying stays between K2 and K3 |
+| Iron Condor | Short Put (K2) + Long Put (K1) + Short Call (K3) + Long Call (K4) | Most common neutral strategy with capped risk on both sides |
+
+Here K1 < K2 < K3 < K4, and K2 / K3 are usually OTM.
+
+### 1.6 Calendar Spreads (Time Spreads)
+
+| Strategy | Structure | Market View |
+|------|------|----------|
+| Calendar Spread | Short near-month Call/Put (K) + Long far-month Call/Put (K) | Short-term range-bound market + rising forward volatility |
+| Diagonal Spread | Short near-month Call/Put (K1) + Long far-month Call/Put (K2) | Calendar spread with mild directional bias |
+
+Calendar spreads profit because near-month Theta decay is faster than far-month Theta decay.
+
+### 1.7 Ratio Spreads
+
+| Strategy | Structure | Feature |
+|------|------|------|
+| Ratio Call Spread | Long 1ร— Call (K1) + Short Nร— Call (K2), N>1 | Limited upside profit, losses if the upside move becomes extreme |
+| Ratio Put Spread | Long 1ร— Put (K2) + Short Nร— Put (K1) | Limited downside profit, losses if the downside move becomes extreme |
+| Call Back Spread | Short 1ร— Call (K1) + Long Nร— Call (K2), N>1 | Profits from extreme upside, loses on a modest rally |
+| Put Back Spread | Short 1ร— Put (K2) + Long Nร— Put (K1), N>1 | Profits from extreme downside, loses on a mild decline |
+
+### 1.8 Protective / Hedging Strategies
+
+| Strategy | Structure | Use Case |
+|------|------|------|
+| Covered Call | Long underlying + Short Call (K) | Generate income on an existing position, give up gains above K |
+| Protective Put | Long underlying + Long Put (K) | Downside protection on an existing position, pay an insurance premium |
+| Collar | Long underlying + Long Put (K1) + Short Call (K2) | Lock the position into a zero-cost / low-cost range |
+
+---
+
+## 2. Black-Scholes Pricing Model
+
+### 2.1 Core Assumptions
+
+- The underlying price follows geometric Brownian motion (lognormal distribution)
+- Risk-free rate `r` is constant
+- Volatility `ฯƒ` is constant (historical or implied)
+- No dividends, or adjust with a continuous dividend yield `q`
+- European options only (exercise at expiration)
+
+### 2.2 Full Formula
+
+```
+S = current underlying price
+K = strike price
+T = time to expiration (years)
+r = risk-free rate (annualized continuous compounding)
+q = continuous dividend yield (commonly used for China A-share / index options)
+ฯƒ = annualized volatility
+N = standard normal CDF
+
+d1 = [ln(S/K) + (r - q + ฯƒยฒ/2) ร— T] / (ฯƒ ร— โˆšT)
+d2 = d1 - ฯƒ ร— โˆšT
+
+Call = S ร— e^(-qT) ร— N(d1) - K ร— e^(-rT) ร— N(d2)
+Put = K ร— e^(-rT) ร— N(-d2) - S ร— e^(-qT) ร— N(-d1)
+```
+
+### 2.3 Put-Call Parity
+
+```
+Call - Put = S ร— e^(-qT) - K ร— e^(-rT)
+```
+
+Use this to verify pricing consistency and detect arbitrage. When dividends exist, replace `S` with `S ร— e^(-qT)`.
+
+### 2.4 Greeks Calculation
+
+#### Delta (Price Sensitivity)
+```
+Delta(Call) = e^(-qT) ร— N(d1)
+Delta(Put) = e^(-qT) ร— (N(d1) - 1)
+```
+- Range: Call [0, 1], Put [-1, 0]
+- ATM โ‰ˆ ยฑ0.5, deep ITM โ†’ ยฑ1, deep OTM โ†’ 0
+
+#### Gamma (Rate of Change of Delta)
+```
+Gamma = e^(-qT) ร— N'(d1) / (S ร— ฯƒ ร— โˆšT)
+
+N'(x) = (1/โˆš(2ฯ€)) ร— e^(-xยฒ/2) [standard normal PDF]
+```
+- Calls and puts have the same Gamma
+- Gamma is highest near ATM and explodes as expiration approaches
+
+#### Theta (Time Decay, per day)
+```
+Theta(Call) = [-S ร— e^(-qT) ร— N'(d1) ร— ฯƒ / (2โˆšT)
+ - r ร— K ร— e^(-rT) ร— N(d2)
+ + q ร— S ร— e^(-qT) ร— N(d1)] / 365
+
+Theta(Put) = [-S ร— e^(-qT) ร— N'(d1) ร— ฯƒ / (2โˆšT)
+ + r ร— K ร— e^(-rT) ร— N(-d2)
+ - q ร— S ร— e^(-qT) ร— N(-d1)] / 365
+```
+- Usually negative for option holders
+- ATM options near expiration have the largest Theta magnitude, which benefits option sellers the most
+
+#### Vega (Volatility Sensitivity, per 1% vol change)
+```
+Vega = S ร— e^(-qT) ร— N'(d1) ร— โˆšT / 100
+```
+- Calls and puts have the same Vega
+- ATM Vega is the largest, and Vega approaches 0 at expiration
+
+#### Rho (Interest Rate Sensitivity, per 1% rate change)
+```
+Rho(Call) = K ร— T ร— e^(-rT) ร— N(d2) / 100
+Rho(Put) = -K ร— T ร— e^(-rT) ร— N(-d2) / 100
+```
+- The rate effect is usually small and often negligible for short-dated options
+
+### 2.5 Implied Volatility Inversion (Newton-Raphson)
+
+Given a market price `P_market`, solve for `ฯƒ` such that `BS(ฯƒ) = P_market`:
+
+```
+Iteration:
+ฯƒ_{n+1} = ฯƒ_n - [BS(ฯƒ_n) - P_market] / Vega(ฯƒ_n)
+
+Stopping condition: |BS(ฯƒ_n) - P_market| < 1e-6
+
+Initial guess:
+ฯƒ_0 = โˆš(2ฯ€/T) ร— P_market/S (Brenner-Subrahmanyam approximation)
+
+Notes:
+- If Vega is close to 0 (deep OTM / ITM), switch to bisection
+- If the iteration does not converge (>100 rounds), return NaN and raise a warning
+- IV > 500% is usually an outlier and should be filtered
+```
+
+---
+
+## 3. Payoff Diagram Analysis
+
+### 3.1 Expiry Payoff Curve
+
+**Calculation logic**:
+```
+For each leg i (Call/Put, Long/Short, strike K_i, quantity n_i):
+ Payoff_i(S_T) = n_i ร— direction_i ร— max(0, S_T - K_i) # Call
+ Payoff_i(S_T) = n_i ร— direction_i ร— max(0, K_i - S_T) # Put
+
+Where direction = +1 (Long) / -1 (Short)
+
+Portfolio payoff = ฮฃ Payoff_i - net premium cost
+ (paid premium is positive, received premium is negative)
+```
+
+**X-axis range**: `[min(K) ร— 0.7, max(K) ร— 1.3]`, step size 0.5 or 1
+
+### 3.2 Theoretical Value Curve (Current Black-Scholes Pricing)
+
+For each underlying price `S`, hold `T`, `r`, and `ฯƒ` constant and compute current theoretical PnL using the Black-Scholes formula:
+```
+TheoValue(S) = ฮฃ n_i ร— direction_i ร— BS_price(S, K_i, T, r, ฯƒ, type_i) - net premium cost
+```
+
+The gap between the theoretical value curve and the expiry curve equals the remaining time value.
+
+### 3.3 Break-Even Points
+
+Numerically solve for the roots of `Payoff(S_T) = 0`:
+- Use `scipy.optimize.brentq` to solve within adjacent intervals where the sign changes
+- Single-leg strategies:
+ - Long Call BEP = K + premium
+ - Long Put BEP = K - premium
+ - Short Call BEP = K + premium received
+ - Short Put BEP = K - premium received
+- Multi-leg strategies: solve numerically, possibly resulting in 0 to 2 BEPs
+
+### 3.4 Max Profit / Max Loss
+
+```python
+max_profit = max(payoff_curve) # If inf, label as "Unlimited"
+max_loss = min(payoff_curve) # If -inf, label as "Unlimited"
+
+# Corresponding underlying price region
+profit_range = S_range[payoff_curve > 0]
+```
+
+### 3.5 P&L Under Different Volatility Scenarios
+
+Generate a `ฯƒ` scenario matrix using `current IV ร— [0.5, 0.75, 1.0, 1.25, 1.5]`.
+Plot one theoretical value curve for each `ฯƒ` and distinguish them by color to observe Vega sensitivity.
+
+---
+
+## 4. Python Code Templates
+
+### 4.1 Black-Scholes Pricing Functions
+
+```python
+import numpy as np
+from scipy.stats import norm
+from scipy.optimize import brentq
+from typing import Literal
+
+def bs_price(
+ S: float,
+ K: float,
+ T: float,
+ r: float,
+ sigma: float,
+ option_type: Literal["call", "put"],
+ q: float = 0.0,
+) -> float:
+ """Black-Scholes option pricing.
+
+ Args:
+ S: Current underlying price
+ K: Strike price
+ T: Time to expiration in years
+ r: Risk-free rate in annualized continuous compounding, e.g. 0.03
+ sigma: Annualized volatility, e.g. 0.20
+ option_type: "call" or "put"
+ q: Continuous dividend yield, defaults to 0
+
+ Returns:
+ Theoretical option price
+
+ Raises:
+ ValueError: If sigma <= 0
+ """
+ if T <= 0:
+ # After expiration, return intrinsic value directly.
+ if option_type == "call":
+ return max(0.0, S - K)
+ return max(0.0, K - S)
+ if sigma <= 0:
+ raise ValueError(f"sigma must be > 0, got {sigma}")
+
+ d1 = (np.log(S / K) + (r - q + 0.5 * sigma**2) * T) / (sigma * np.sqrt(T))
+ d2 = d1 - sigma * np.sqrt(T)
+
+ if option_type == "call":
+ price = S * np.exp(-q * T) * norm.cdf(d1) - K * np.exp(-r * T) * norm.cdf(d2)
+ else:
+ price = K * np.exp(-r * T) * norm.cdf(-d2) - S * np.exp(-q * T) * norm.cdf(-d1)
+
+ return float(price)
+
+
+def bs_greeks(
+ S: float,
+ K: float,
+ T: float,
+ r: float,
+ sigma: float,
+ option_type: Literal["call", "put"],
+ q: float = 0.0,
+) -> dict:
+ """Calculate the five major Greeks under the Black-Scholes model.
+
+ Returns:
+ A dict with keys: delta, gamma, theta, vega, rho.
+ Theta and Vega are already converted to per-day and per-1% units.
+ """
+ if T <= 1e-6:
+ return {"delta": 0.0, "gamma": 0.0, "theta": 0.0, "vega": 0.0, "rho": 0.0}
+
+ d1 = (np.log(S / K) + (r - q + 0.5 * sigma**2) * T) / (sigma * np.sqrt(T))
+ d2 = d1 - sigma * np.sqrt(T)
+ n_prime_d1 = norm.pdf(d1)
+ exp_qt = np.exp(-q * T)
+ exp_rt = np.exp(-r * T)
+
+ if option_type == "call":
+ delta = exp_qt * norm.cdf(d1)
+ rho = K * T * exp_rt * norm.cdf(d2) / 100
+ theta = (
+ -S * exp_qt * n_prime_d1 * sigma / (2 * np.sqrt(T))
+ - r * K * exp_rt * norm.cdf(d2)
+ + q * S * exp_qt * norm.cdf(d1)
+ ) / 365
+ else:
+ delta = exp_qt * (norm.cdf(d1) - 1)
+ rho = -K * T * exp_rt * norm.cdf(-d2) / 100
+ theta = (
+ -S * exp_qt * n_prime_d1 * sigma / (2 * np.sqrt(T))
+ + r * K * exp_rt * norm.cdf(-d2)
+ - q * S * exp_qt * norm.cdf(-d1)
+ ) / 365
+
+ gamma = exp_qt * n_prime_d1 / (S * sigma * np.sqrt(T))
+ vega = S * exp_qt * n_prime_d1 * np.sqrt(T) / 100
+
+ return {
+ "delta": round(delta, 6),
+ "gamma": round(gamma, 6),
+ "theta": round(theta, 6),
+ "vega": round(vega, 6),
+ "rho": round(rho, 6),
+ }
+
+
+def implied_volatility(
+ market_price: float,
+ S: float,
+ K: float,
+ T: float,
+ r: float,
+ option_type: Literal["call", "put"],
+ q: float = 0.0,
+ tol: float = 1e-6,
+ max_iter: int = 200,
+) -> float:
+ """Solve implied volatility with Newton-Raphson.
+
+ Args:
+ market_price: Observed market price
+ tol: Convergence tolerance
+ max_iter: Maximum number of iterations
+
+ Returns:
+ Annualized implied volatility. Returns np.nan on failure.
+
+ Raises:
+ ValueError: If the market price is below intrinsic value
+ """
+ # Check intrinsic value first.
+ intrinsic = max(0.0, S - K if option_type == "call" else K - S)
+ if market_price < intrinsic - 1e-6:
+ raise ValueError(f"Market price {market_price} is below intrinsic value {intrinsic}")
+
+ # Brenner-Subrahmanyam initial approximation.
+ sigma = np.sqrt(2 * np.pi / T) * market_price / S
+ sigma = max(0.001, min(sigma, 5.0))
+
+ for _ in range(max_iter):
+ price = bs_price(S, K, T, r, sigma, option_type, q)
+ vega = bs_greeks(S, K, T, r, sigma, option_type, q)["vega"] * 100 # restore per-1.0 unit
+
+ diff = price - market_price
+ if abs(diff) < tol:
+ return round(sigma, 6)
+
+ if abs(vega) < 1e-10:
+ # Vega is near zero, fall back to bisection.
+ try:
+ return float(brentq(
+ lambda v: bs_price(S, K, T, r, v, option_type, q) - market_price,
+ 1e-4, 10.0, xtol=tol, maxiter=200
+ ))
+ except ValueError:
+ return np.nan
+
+ sigma -= diff / vega
+ sigma = max(1e-4, min(sigma, 10.0)) # clamp to a reasonable range
+
+ return np.nan # did not converge
+```
+
+### 4.2 Multi-Leg Portfolio Payoff Calculation
+
+```python
+from dataclasses import dataclass
+import numpy as np
+
+@dataclass
+class OptionLeg:
+ """Single option leg definition.
+
+ Attributes:
+ option_type: "call" or "put"
+ K: Strike price
+ direction: +1 for Long / -1 for Short
+ quantity: Number of contracts, defaults to 1
+ premium: Actual traded premium, positive when paid and negative when received
+ T: Time to expiration in years, used for theoretical Black-Scholes pricing
+ sigma: Volatility used in pricing
+ """
+ option_type: Literal["call", "put"]
+ K: float
+ direction: int # +1 or -1
+ quantity: float = 1.0
+ premium: float = 0.0
+ T: float = 0.25
+ sigma: float = 0.20
+
+
+def compute_expiry_payoff(
+ legs: list[OptionLeg],
+ S_range: np.ndarray,
+) -> np.ndarray:
+ """Calculate the expiry payoff curve.
+
+ Args:
+ legs: Option legs
+ S_range: Array of underlying prices
+
+ Returns:
+ Payoff array aligned with S_range, including premium cost
+ """
+ total_payoff = np.zeros(len(S_range))
+ net_premium = sum(leg.direction * leg.quantity * leg.premium for leg in legs)
+
+ for leg in legs:
+ if leg.option_type == "call":
+ intrinsic = np.maximum(S_range - leg.K, 0)
+ else:
+ intrinsic = np.maximum(leg.K - S_range, 0)
+ total_payoff += leg.direction * leg.quantity * intrinsic
+
+ return total_payoff - net_premium
+
+
+def compute_theo_value(
+ legs: list[OptionLeg],
+ S_range: np.ndarray,
+ r: float = 0.03,
+ q: float = 0.0,
+) -> np.ndarray:
+ """Calculate the theoretical value curve under current Black-Scholes pricing.
+
+ Args:
+ legs: Option legs, each carrying T and sigma
+ S_range: Array of underlying prices
+ r: Risk-free rate
+ q: Continuous dividend yield
+
+ Returns:
+ Theoretical PnL array
+ """
+ total_value = np.zeros(len(S_range))
+ net_premium = sum(leg.direction * leg.quantity * leg.premium for leg in legs)
+
+ for leg in legs:
+ prices = np.array([
+ bs_price(S, leg.K, leg.T, r, leg.sigma, leg.option_type, q)
+ for S in S_range
+ ])
+ total_value += leg.direction * leg.quantity * prices
+
+ return total_value - net_premium
+
+
+def find_breakeven_points(
+ S_range: np.ndarray,
+ payoff: np.ndarray,
+) -> list[float]:
+ """Solve for break-even points numerically.
+
+ Returns:
+ A list of break-even points, from 0 to many depending on the structure
+ """
+ beps = []
+ for i in range(len(S_range) - 1):
+ if payoff[i] * payoff[i + 1] < 0:
+ bep = brentq(
+ lambda s: np.interp(s, S_range, payoff),
+ S_range[i], S_range[i + 1],
+ xtol=0.01
+ )
+ beps.append(round(bep, 2))
+ return beps
+```
+
+### 4.3 Matplotlib Payoff Diagram
+
+```python
+import matplotlib.pyplot as plt
+import matplotlib.ticker as mticker
+
+def plot_payoff_diagram(
+ legs: list[OptionLeg],
+ S_current: float,
+ r: float = 0.03,
+ q: float = 0.0,
+ title: str = "Option Payoff Diagram",
+ figsize: tuple = (10, 6),
+) -> plt.Figure:
+ """Plot the payoff diagram for an option portfolio.
+
+ Args:
+ legs: Option legs
+ S_current: Current underlying price
+ r: Risk-free rate
+ q: Continuous dividend yield
+ title: Chart title
+ figsize: Figure size
+
+ Returns:
+ A matplotlib Figure object
+ """
+ K_values = [leg.K for leg in legs]
+ S_lo = min(K_values) * 0.70
+ S_hi = max(K_values) * 1.30
+ S_range = np.linspace(S_lo, S_hi, 500)
+
+ expiry_pnl = compute_expiry_payoff(legs, S_range)
+ theo_pnl = compute_theo_value(legs, S_range, r, q)
+ beps = find_breakeven_points(S_range, expiry_pnl)
+
+ fig, ax = plt.subplots(figsize=figsize)
+
+ # Shade profit and loss regions.
+ ax.fill_between(S_range, expiry_pnl, 0,
+ where=(expiry_pnl >= 0), alpha=0.15, color="green", label="_nolegend_")
+ ax.fill_between(S_range, expiry_pnl, 0,
+ where=(expiry_pnl < 0), alpha=0.15, color="red", label="_nolegend_")
+
+ # Expiry payoff curve.
+ ax.plot(S_range, expiry_pnl, color="steelblue", linewidth=2.0, label="Expiry P&L")
+
+ # Theoretical value curve.
+ ax.plot(S_range, theo_pnl, color="darkorange", linewidth=1.5,
+ linestyle="--", label="Current theoretical value")
+
+ # Zero axis.
+ ax.axhline(0, color="black", linewidth=0.8, linestyle="-")
+
+ # Current price line.
+ ax.axvline(S_current, color="gray", linewidth=1.0, linestyle=":",
+ label=f"Spot {S_current:.2f}")
+
+ # Strike annotations.
+ for K in K_values:
+ ax.axvline(K, color="purple", linewidth=0.6, linestyle="--", alpha=0.5)
+ ax.text(K, ax.get_ylim()[0], f"K={K}", fontsize=8,
+ rotation=90, va="bottom", color="purple")
+
+ # Break-even points.
+ for bep in beps:
+ ax.scatter([bep], [0], color="red", zorder=5, s=50)
+ ax.annotate(f"BEP\n{bep:.2f}", xy=(bep, 0),
+ xytext=(bep, max(expiry_pnl) * 0.15),
+ fontsize=8, ha="center", color="red",
+ arrowprops=dict(arrowstyle="->", color="red", lw=0.8))
+
+ # Max profit / max loss summary.
+ max_p = max(expiry_pnl)
+ max_l = min(expiry_pnl)
+ stats_text = (
+ f"Max profit: {'Unlimited' if max_p > 1e6 else f'{max_p:.2f}'}\n"
+ f"Max loss: {'Unlimited' if max_l < -1e6 else f'{max_l:.2f}'}\n"
+ f"Break-even: {', '.join([str(b) for b in beps]) if beps else 'None'}"
+ )
+ ax.text(0.02, 0.97, stats_text, transform=ax.transAxes,
+ fontsize=9, va="top", bbox=dict(boxstyle="round", fc="white", alpha=0.8))
+
+ ax.set_xlabel("Underlying price")
+ ax.set_ylabel("P&L")
+ ax.set_title(title)
+ ax.legend(loc="upper right")
+ ax.yaxis.set_major_formatter(mticker.FuncFormatter(lambda x, _: f"{x:,.0f}"))
+ ax.grid(True, alpha=0.3)
+ plt.tight_layout()
+
+ return fig
+```
+
+### 4.4 Plotly Interactive Payoff Diagram (Recommended for Frontend Display)
+
+```python
+import plotly.graph_objects as go
+
+def plot_payoff_plotly(
+ legs: list[OptionLeg],
+ S_current: float,
+ r: float = 0.03,
+ q: float = 0.0,
+ title: str = "Option Payoff Diagram",
+ sigma_scenarios: list[float] | None = None,
+) -> go.Figure:
+ """Generate a Plotly interactive payoff diagram with optional multi-sigma scenarios.
+
+ Args:
+ sigma_scenarios: For example [0.10, 0.15, 0.20, 0.25, 0.30].
+ If None, use each leg's own sigma.
+ """
+ K_values = [leg.K for leg in legs]
+ S_range = np.linspace(min(K_values) * 0.70, max(K_values) * 1.30, 500)
+ expiry_pnl = compute_expiry_payoff(legs, S_range)
+
+ fig = go.Figure()
+
+ # Expiry payoff.
+ fig.add_trace(go.Scatter(
+ x=S_range, y=expiry_pnl,
+ name="Expiry P&L", line=dict(color="steelblue", width=2),
+ fill="tozeroy",
+ fillcolor="rgba(70,130,180,0.1)",
+ ))
+
+ # Theoretical value under multiple volatility scenarios.
+ if sigma_scenarios:
+ colors = ["#FF6B6B", "#FFA500", "#4CAF50", "#2196F3", "#9C27B0"]
+ for i, sigma in enumerate(sigma_scenarios):
+ scenario_legs = [
+ OptionLeg(
+ option_type=leg.option_type, K=leg.K,
+ direction=leg.direction, quantity=leg.quantity,
+ premium=leg.premium, T=leg.T, sigma=sigma
+ )
+ for leg in legs
+ ]
+ theo = compute_theo_value(scenario_legs, S_range, r, q)
+ fig.add_trace(go.Scatter(
+ x=S_range, y=theo,
+ name=f"IV={sigma*100:.0f}%",
+ line=dict(color=colors[i % len(colors)], width=1.5, dash="dash"),
+ ))
+ else:
+ theo_pnl = compute_theo_value(legs, S_range, r, q)
+ fig.add_trace(go.Scatter(
+ x=S_range, y=theo_pnl,
+ name="Current theoretical value",
+ line=dict(color="darkorange", width=1.5, dash="dash"),
+ ))
+
+ # Zero line and current price line.
+ fig.add_hline(y=0, line_dash="solid", line_color="black", line_width=0.8)
+ fig.add_vline(x=S_current, line_dash="dot", line_color="gray",
+ annotation_text=f"Spot {S_current:.2f}", annotation_position="top right")
+
+ # Strikes.
+ for K in set(K_values):
+ fig.add_vline(x=K, line_dash="dash", line_color="purple",
+ line_width=0.8, opacity=0.5)
+
+ fig.update_layout(
+ title=title,
+ xaxis_title="Underlying price",
+ yaxis_title="P&L",
+ hovermode="x unified",
+ template="plotly_white",
+ legend=dict(orientation="h", yanchor="bottom", y=1.02, xanchor="right", x=1),
+ )
+
+ return fig
+```
+
+### 4.5 Greeks Profile vs Underlying Price
+
+```python
+def plot_greeks_profile(
+ legs: list[OptionLeg],
+ S_current: float,
+ r: float = 0.03,
+ q: float = 0.0,
+ greeks_to_plot: list[str] | None = None,
+) -> go.Figure:
+ """Plot portfolio Greeks as functions of the underlying price.
+
+ Args:
+ greeks_to_plot: Defaults to ["delta", "gamma", "vega", "theta"]
+ """
+ if greeks_to_plot is None:
+ greeks_to_plot = ["delta", "gamma", "vega", "theta"]
+
+ K_values = [leg.K for leg in legs]
+ S_range = np.linspace(min(K_values) * 0.70, max(K_values) * 1.30, 300)
+
+ # Compute portfolio Greeks.
+ greek_values = {g: np.zeros(len(S_range)) for g in greeks_to_plot}
+ for leg in legs:
+ for j, S in enumerate(S_range):
+ g = bs_greeks(S, leg.K, leg.T, r, leg.sigma, leg.option_type, q)
+ for name in greeks_to_plot:
+ greek_values[name][j] += leg.direction * leg.quantity * g[name]
+
+ # Plot subplots.
+ from plotly.subplots import make_subplots
+ n = len(greeks_to_plot)
+ fig = make_subplots(rows=n, cols=1, shared_xaxes=True,
+ subplot_titles=[g.capitalize() for g in greeks_to_plot])
+
+ greek_colors = {"delta": "steelblue", "gamma": "green",
+ "theta": "red", "vega": "darkorange", "rho": "purple"}
+
+ for i, name in enumerate(greeks_to_plot, start=1):
+ fig.add_trace(
+ go.Scatter(x=S_range, y=greek_values[name],
+ name=name.capitalize(),
+ line=dict(color=greek_colors.get(name, "gray"), width=2)),
+ row=i, col=1
+ )
+ fig.add_hline(y=0, line_dash="dot", line_color="black",
+ line_width=0.5, row=i, col=1)
+ fig.add_vline(x=S_current, line_dash="dash", line_color="gray",
+ line_width=0.8, row=i, col=1)
+
+ fig.update_layout(
+ title="Greeks Profile",
+ height=200 * n,
+ showlegend=False,
+ template="plotly_white",
+ )
+
+ return fig
+```
+
+---
+
+## 5. Practical Usage
+
+### 5.1 Strategy Selection Decision Tree by Market View
+
+```
+Market view
+โ”œโ”€โ”€ Strongly bullish
+โ”‚ โ”œโ”€โ”€ Willing to pay premium โ†’ Long Call
+โ”‚ โ””โ”€โ”€ Want lower cost โ†’ Bull Call Spread
+โ”œโ”€โ”€ Moderately bullish
+โ”‚ โ”œโ”€โ”€ Already hold the underlying โ†’ Covered Call (income enhancement)
+โ”‚ โ””โ”€โ”€ No existing position โ†’ Bull Put Spread (net credit)
+โ”œโ”€โ”€ Moderately bearish
+โ”‚ โ”œโ”€โ”€ Already hold the underlying โ†’ Protective Put or Collar
+โ”‚ โ””โ”€โ”€ No existing position โ†’ Bear Call Spread (net credit)
+โ”œโ”€โ”€ Strongly bearish
+โ”‚ โ”œโ”€โ”€ Willing to pay premium โ†’ Long Put
+โ”‚ โ””โ”€โ”€ Want lower cost โ†’ Bear Put Spread
+โ”œโ”€โ”€ Range-bound market (low-IV environment)
+โ”‚ โ”œโ”€โ”€ Wide range โ†’ Short Strangle
+โ”‚ โ”œโ”€โ”€ Narrow range โ†’ Short Straddle
+โ”‚ โ””โ”€โ”€ Want limited risk โ†’ Iron Condor / Iron Butterfly
+โ””โ”€โ”€ Large move expected (low-IV environment)
+ โ”œโ”€โ”€ Direction unclear โ†’ Long Straddle / Long Strangle
+ โ””โ”€โ”€ Slight directional bias โ†’ Call / Put Back Spread
+```
+
+### 5.2 Volatility Environment โ†’ Strategy Mapping
+
+| IV Regime | Rule of Thumb | Suitable Strategies | Strategies to Avoid |
+|---------|----------|----------|----------|
+| Low IV (< 20th percentile) | IV Rank < 20 | Long Straddle, Long Strangle, Back Spread | Short strategies, because premium is too thin |
+| Normal IV (20th to 80th percentile) | IV Rank 20 to 80 | Vertical spreads, Calendar Spread, Diagonal | Single-leg positions with asymmetric risk |
+| High IV (> 80th percentile) | IV Rank > 80 | Short Straddle, Iron Condor, Covered Call | Long single-leg options due to rich premium |
+
+**IV Rank formula**:
+```python
+iv_rank = (current_iv - iv_52w_low) / (iv_52w_high - iv_52w_low) * 100
+```
+
+**IV Percentile**: The historical percentile rank of current IV over the last 252 trading days.
+
+### 5.3 When to Roll or Adjust
+
+#### Rolling
+- **Trigger**: Option Delta moves outside the target range, or time to expiration < 21 days
+- **Rolling Up / Down**: Close the current leg and reopen at a higher / lower strike while keeping the same directional bias
+- **Rolling Out**: Close the near-month leg and reopen further out on the curve to harvest additional time value
+- **Cost assessment**: Compare the net debit / credit of the roll with the payoff from simply holding to expiration
+
+#### Adjusting
+- **Delta-neutral rebalancing**: Hedge with underlying or options when portfolio Delta deviates from target by more than ยฑ0.10
+- **Gamma scalping**: Under a Long Gamma portfolio, hedge Delta after large underlying moves to lock in gains
+- **Stop-loss rule**: Force liquidation when losses reach 2ร— the initial premium received, a common rule for Iron Condors
+
+#### Common Adjustment Examples
+
+**Iron Condor gets breached**:
+```
+Underlying rallies above the short call:
+1. Close the call spread and realize the loss
+2. Reassess directional view:
+ - Still bullish โ†’ reopen a higher put spread to preserve neutrality
+ - Not bullish โ†’ close the entire portfolio
+```
+
+**Covered Call faces assignment risk**:
+```
+Underlying approaches the call strike:
+1. Assess whether you are willing to sell the underlying at that price
+ - Yes โ†’ allow assignment and keep premium + capital gain
+ - No โ†’ Roll Up & Out to a higher strike and/or later expiration
+```
+
+---
+
+## Quick Usage Example
+
+```python
+# Example: Iron Condor payoff diagram
+legs = [
+ OptionLeg("put", K=90, direction=-1, premium=1.5, T=0.083, sigma=0.20),
+ OptionLeg("put", K=85, direction=+1, premium=0.5, T=0.083, sigma=0.20),
+ OptionLeg("call", K=110, direction=-1, premium=1.5, T=0.083, sigma=0.20),
+ OptionLeg("call", K=115, direction=+1, premium=0.5, T=0.083, sigma=0.20),
+]
+
+fig = plot_payoff_plotly(
+ legs, S_current=100.0,
+ title="Iron Condor (85/90/110/115, 1 month)",
+ sigma_scenarios=[0.15, 0.20, 0.25, 0.30],
+)
+fig.show()
+
+# Implied volatility example
+iv = implied_volatility(
+ market_price=5.0, S=100, K=100,
+ T=0.25, r=0.03, option_type="call"
+)
+print(f"Implied volatility: {iv:.2%}") # about 0.20
+```
diff --git a/agent/src/skills/options-strategy/SKILL.md b/agent/src/skills/options-strategy/SKILL.md
new file mode 100644
index 000000000..d5044888e
--- /dev/null
+++ b/agent/src/skills/options-strategy/SKILL.md
@@ -0,0 +1,177 @@
+---
+name: options-strategy
+description: Options strategy framework supporting Black-Scholes pricing, Greeks analysis, and multi-leg backtesting. Suitable for cryptocurrency and equity options.
+---
+
+## Purpose
+
+Backtesting of option portfolio strategies. Starting from the underlying price, the engine synthesizes theoretical option prices with the Black-Scholes model, then simulates PnL, Greeks exposure, and expiration exercise for multi-leg option portfolios.
+
+Applicable scenarios:
+- Hedging strategies (`covered call`, `protective put`)
+- Volatility trading (`straddle`, `strangle`)
+- Spread strategies (`iron condor`, `butterfly`, `calendar spread`)
+- Option pricing analysis and Greeks sensitivity research
+
+## Supported Strategy Types
+
+| Strategy | Structure | Applicable Market View |
+|------|------|----------|
+| Covered Call | Hold underlying + short call | Mildly bullish, collect premium |
+| Protective Put | Hold underlying + long put | Bullish but wants downside protection |
+| Straddle | Buy same-strike call + put | Expect large movement, direction uncertain |
+| Strangle | Buy different-strike call + put | Expect large movement, lower cost |
+| Iron Condor | Sell put spread + sell call spread | Range-bound market, collect premium |
+| Butterfly | Buy low call + sell 2 middle calls + buy high call | Expect narrow-range movement |
+| Calendar Spread | Sell near-month + buy far-month at same strike | Exploit differences in time decay |
+
+## `OptionsSignalEngine` Interface
+
+Write the strategy in `code/signal_engine.py`, with class name `SignalEngine`, implementing the `generate` method:
+
+```python
+class SignalEngine:
+ """Option strategy signal engine."""
+
+ def generate(self, data_map: dict) -> list:
+ """Generate option trading instructions.
+
+ Args:
+ data_map: code -> DataFrame (columns: open, high, low, close, volume)
+
+ Returns:
+ List of trading instructions. Each instruction has the format:
+ {
+ "date": "2024-01-15", # Trading date
+ "action": "open" / "close", # Open or close position
+ "underlying": "BTC-USDT", # Underlying code
+ "legs": [ # List of option legs
+ {
+ "type": "call" / "put", # Option type
+ "strike": 50000, # Strike price
+ "expiry": "2024-02-15", # Expiration date
+ "qty": 1 # Quantity (positive = long, negative = short)
+ }
+ ]
+ }
+ """
+```
+
+### Multi-Leg Combination Example
+
+Iron Condor opening signal:
+
+```python
+{
+ "date": "2024-01-15",
+ "action": "open",
+ "underlying": "000300.SH",
+ "legs": [
+ {"type": "put", "strike": 3800, "expiry": "2024-02-15", "qty": -1}, # Sell put
+ {"type": "put", "strike": 3700, "expiry": "2024-02-15", "qty": 1}, # Buy protective put
+ {"type": "call", "strike": 4200, "expiry": "2024-02-15", "qty": -1}, # Sell call
+ {"type": "call", "strike": 4300, "expiry": "2024-02-15", "qty": 1}, # Buy protective call
+ ]
+}
+```
+
+## `config.json` Format
+
+```json
+{
+ "codes": ["000300.SH"],
+ "start_date": "2020-01-01",
+ "end_date": "2024-12-31",
+ "source": "tushare",
+ "engine": "options",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "options_config": {
+ "risk_free_rate": 0.05,
+ "iv_source": "historical",
+ "contract_multiplier": 1.0
+ }
+}
+```
+
+Key fields:
+- `engine` must be set to `"options"` so the runner selects the option backtest engine
+- `options_config.risk_free_rate`: risk-free rate, default `0.05`
+- `options_config.iv_source`: volatility source, currently supports `"historical"` (30-day rolling historical volatility computed from underlying closes)
+- `options_config.contract_multiplier`: contract multiplier, default `1.0`
+
+## BS Model Principles
+
+Black-Scholes formula (European options):
+
+```
+Call = S * N(d1) - K * e^(-rT) * N(d2)
+Put = K * e^(-rT) * N(-d2) - S * N(-d1)
+
+d1 = [ln(S/K) + (r + sigma^2/2) * T] / (sigma * sqrt(T))
+d2 = d1 - sigma * sqrt(T)
+```
+
+Where `S` = underlying price, `K` = strike, `T` = time to expiry in years, `r` = risk-free rate, `sigma` = volatility, and `N()` = cumulative distribution function of the standard normal.
+
+This engine starts from the underlying daily price series, substitutes historical volatility for implied volatility, and computes theoretical option prices through the BS formula. This is a synthetic-data mode, meaning no real option market data is required.
+
+## Greeks Meaning and Usage
+
+| Greek | Meaning | Usage |
+|-------|------|------|
+| Delta | Change in option price for a 1-unit move in the underlying | Directional exposure management, hedge-ratio calculation |
+| Gamma | Change in Delta for a 1-unit move in the underlying | Measures hedge stability; high Gamma = frequent rebalancing required |
+| Theta | Time decay of option value per day (usually negative) | Time-value management, source of return for short-option strategies |
+| Vega | Change in option price for a 1% volatility move | Core metric for volatility trading, measures volatility exposure |
+
+The backtest engine computes portfolio-level Greeks aggregates on each trading day and outputs them to `greeks.csv`.
+
+## Common Pitfalls
+
+### Volatility Smile
+
+The BS model assumes constant volatility, but in real markets implied volatility differs across strikes and expiries (volatility smile / skew). This engine approximates with historical volatility, so pricing may be biased for deep OTM / deep ITM options. Strategy design should avoid over-reliance on pricing precision at extreme strikes.
+
+### Time Decay (Theta Decay)
+
+Theta decay is not linear โ€” the closer the option is to expiry, the faster the decay. The last 30 days decay much faster than the prior 30 days. Short-vol strategies benefit from this, but Gamma risk also rises sharply near expiry.
+
+### Early Exercise
+
+This engine supports European options only (exercise only at expiry), not American options. In scenarios with meaningful early-exercise value (for example, deep ITM puts or calls on high-dividend underlyings), pricing will be biased.
+
+### Liquidity and Slippage
+
+In synthetic-data mode there are no bid-ask spreads or liquidity constraints. In real trading, deep OTM options have poor liquidity and wide spreads, so backtest results will be overly optimistic.
+
+### Contract Multiplier
+
+Option contract multipliers differ across markets (for example, China A-share ETF options often use a 10,000 multiplier, while crypto is typically 1). Make sure `options_config.contract_multiplier` is set correctly.
+
+## Artifact Description
+
+After backtesting, the following files are generated in the `artifacts/` directory:
+
+| File | Contents |
+|------|------|
+| `equity.csv` | Daily equity, cash, market value of holdings |
+| `metrics.csv` | Return, Sharpe ratio, maximum drawdown, and similar metrics |
+| `trades.csv` | Trade-by-trade records (open / close / exercise / expire) |
+| `greeks.csv` | Daily portfolio Greeks aggregates (`delta/gamma/theta/vega`) |
+| `ohlcv_{code}.csv` | Raw underlying candlestick data |
+
+## Pricing Tool
+
+The Agent can call the `options_pricing` tool for one-off pricing:
+
+```
+Call the options_pricing tool with:
+ spot: 50000
+ strike: 52000
+ expiry_days: 30
+ volatility: 0.6
+ option_type: "call"
+```
+
+It returns the theoretical price and Greeks, which is suitable for interactive analysis.
diff --git a/agent/src/skills/pair-trading/SKILL.md b/agent/src/skills/pair-trading/SKILL.md
new file mode 100644
index 000000000..76af19266
--- /dev/null
+++ b/agent/src/skills/pair-trading/SKILL.md
@@ -0,0 +1,79 @@
+---
+name: pair-trading
+description: Pair trading strategy. Trades mean reversion using the spread/ratio Z-score of two correlated instruments. Requires at least two instruments.
+---
+# Pair Trading Strategy
+
+## Purpose
+
+Select two highly correlated instruments (such as stocks from the same industry or BTC/ETH), monitor how far their price ratio (or spread) deviates from the mean, and trade against extreme deviations while waiting for mean reversion.
+
+## Signal Logic
+
+1. **Compute the price ratio**: `ratio = close_A / close_B`
+2. **Rolling mean and standard deviation**: `mean = ratio.rolling(lookback).mean()`, `std = ratio.rolling(lookback).std()`
+3. **Z-score**: `z = (ratio - mean) / std`
+4. **Signal generation**:
+ - Z < -entry_z โ†’ long A, short B (ratio is too low, expected to revert)
+ - Z > +entry_z โ†’ short A, long B (ratio is too high, expected to revert)
+ - |Z| < exit_z โ†’ close the position (reverted back near the mean)
+
+## Implementation Notes
+
+- Pair trading requires **exactly two instruments** (`codes` array length = 2)
+- The first instrument is A (`leg1`), and the second is B (`leg2`)
+- Signals for A and B are opposite: when A is long, B is short, and vice versa
+- **Equal-weight allocation only**: A and B each take 50% of capital, with no precise hedge-ratio calculation
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| lookback | 60 | Lookback window for mean and standard deviation |
+| entry_z | 2.0 | Entry Z-score threshold |
+| exit_z | 0.5 | Exit Z-score threshold |
+
+## Example `config.json`
+
+```json
+{
+ "source": "tushare",
+ "codes": ["601318.SH", "601628.SH"],
+ "start_date": "2023-01-01",
+ "end_date": "2024-12-31",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "extra_fields": null
+}
+```
+
+Cryptocurrency version:
+```json
+{
+ "source": "okx",
+ "codes": ["BTC-USDT", "ETH-USDT"],
+ "start_date": "2024-01-01",
+ "end_date": "2024-12-31",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "extra_fields": null
+}
+```
+
+## Common Pitfalls
+
+- `codes` must contain exactly 2 instruments, no more and no less
+- The date indexes of the two instruments must be aligned (use an inner join), otherwise the ratio calculation will be wrong
+- Before the lookback window is filled, Z-scores are `NaN`, so fill signals with 0
+- Do not generate same-direction signals for both A and B; pair trading is fundamentally a long-short hedge
+
+## Dependencies
+
+```bash
+pip install pandas numpy
+```
+
+## Signal Convention
+
+- Instrument A: `0.5` = long, `-0.5` = short, `0` = flat
+- Instrument B: direction is opposite to A
diff --git a/agent/src/skills/pair-trading/example_signal_engine.py b/agent/src/skills/pair-trading/example_signal_engine.py
new file mode 100644
index 000000000..1388f72c9
--- /dev/null
+++ b/agent/src/skills/pair-trading/example_signal_engine.py
@@ -0,0 +1,152 @@
+"""้…ๅฏนไบคๆ˜“็ญ–็•ฅไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽไธคไธช็›ธๅ…ณๆ ‡็š„็š„ไปทๆ ผๆฏ”ๅ€ผ Z-score ่ฟ›่กŒๅ‡ๅ€ผๅ›žๅฝ’ไบคๆ˜“ใ€‚
+้œ€่ฆๆฐๅฅฝไธคไธชๆ ‡็š„๏ผŒ็ญ‰ๆƒๅˆ†้…ใ€‚็บฏ pandas ๅฎž็Žฐใ€‚
+"""
+
+from typing import Dict
+
+import numpy as np
+import pandas as pd
+
+
+class SignalEngine:
+ """้…ๅฏนไบคๆ˜“ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ่ฎก็ฎ—ไธคไธชๆ ‡็š„็š„ไปทๆ ผๆฏ”ๅ€ผ๏ผŒ้€š่ฟ‡ Z-score ๅˆคๆ–ญๅ็ฆป็จ‹ๅบฆ๏ผŒ
+ ๅ็ฆป่ฟ‡ๅคงๆ—ถๅๅ‘ไบคๆ˜“็ญ‰ๅพ…ๅ›žๅฝ’ใ€‚
+
+ Attributes:
+ lookback: ๅ‡ๅ€ผๅ’Œๆ ‡ๅ‡†ๅทฎๅ›ž็œ‹็ช—ๅฃใ€‚
+ entry_z: ๅผ€ไป“ Z-score ้˜ˆๅ€ผใ€‚
+ exit_z: ๅนณไป“ Z-score ้˜ˆๅ€ผใ€‚
+
+ Example:
+ >>> engine = SignalEngine(lookback=60, entry_z=2.0)
+ >>> signals = engine.generate({"601318.SH": df1, "601628.SH": df2})
+ """
+
+ def __init__(
+ self,
+ lookback: int = 60,
+ entry_z: float = 2.0,
+ exit_z: float = 0.5,
+ ):
+ """ๅˆๅง‹ๅŒ–้…ๅฏนไบคๆ˜“ๅผ•ๆ“Žใ€‚
+
+ Args:
+ lookback: ๅ‡ๅ€ผๅ’Œๆ ‡ๅ‡†ๅทฎๅ›ž็œ‹็ช—ๅฃใ€‚
+ entry_z: ๅผ€ไป“ Z-score ้˜ˆๅ€ผใ€‚
+ exit_z: ๅนณไป“ Z-score ้˜ˆๅ€ผใ€‚
+ """
+ self.lookback = lookback
+ self.entry_z = entry_z
+ self.exit_z = exit_z
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎไปทๆ ผๆฏ”ๅ€ผ Z-score ็”Ÿๆˆ้…ๅฏนไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆฐๅฅฝไธคไธชๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„ใ€‚
+ ็ฌฌไธ€ไธชๆ ‡็š„๏ผš0.5=ๅšๅคš, -0.5=ๅš็ฉบ, 0=็ฉบไป“ใ€‚
+ ็ฌฌไบŒไธชๆ ‡็š„๏ผšๆ–นๅ‘ไธŽ็ฌฌไธ€ไธช็›ธๅใ€‚
+
+ Raises:
+ ValueError: ๅฝ“ๆ ‡็š„ๆ•ฐ้‡ไธไธบ 2 ๆ—ถใ€‚
+ """
+ codes = list(data_map.keys())
+ if len(codes) != 2:
+ raise ValueError(f"้…ๅฏนไบคๆ˜“้œ€่ฆๆฐๅฅฝ 2 ไธชๆ ‡็š„๏ผŒๅฝ“ๅ‰ {len(codes)} ไธช: {codes}")
+
+ code_a, code_b = codes[0], codes[1]
+ df_a, df_b = data_map[code_a], data_map[code_b]
+
+ # ๆ—ฅๆœŸๅฏน้ฝ๏ผˆinner join๏ผ‰
+ common_idx = df_a.index.intersection(df_b.index)
+ close_a = df_a.loc[common_idx, "close"]
+ close_b = df_b.loc[common_idx, "close"]
+
+ # ไปทๆ ผๆฏ”ๅ€ผ
+ ratio = close_a / close_b
+
+ # Z-score
+ mean = ratio.rolling(self.lookback).mean()
+ std = ratio.rolling(self.lookback).std()
+ z = (ratio - mean) / std
+
+ # ไฟกๅท็”Ÿๆˆ
+ sig_a = pd.Series(0.0, index=common_idx)
+ sig_b = pd.Series(0.0, index=common_idx)
+
+ # Z < -entry_z โ†’ ๅšๅคš Aใ€ๅš็ฉบ B๏ผˆๆฏ”ๅ€ผๅไฝŽ๏ผŒ้ข„ๆœŸๅ›žๅฝ’ๅ‘ไธŠ๏ผ‰
+ long_pair = z < -self.entry_z
+ sig_a[long_pair] = 0.5
+ sig_b[long_pair] = -0.5
+
+ # Z > +entry_z โ†’ ๅš็ฉบ Aใ€ๅšๅคš B๏ผˆๆฏ”ๅ€ผๅ้ซ˜๏ผŒ้ข„ๆœŸๅ›žๅฝ’ๅ‘ไธ‹๏ผ‰
+ short_pair = z > self.entry_z
+ sig_a[short_pair] = -0.5
+ sig_b[short_pair] = 0.5
+
+ # |Z| < exit_z โ†’ ๅนณไป“
+ flat = z.abs() < self.exit_z
+ sig_a[flat] = 0.0
+ sig_b[flat] = 0.0
+
+ # ๅกซๅ…… NaN๏ผˆlookback ็ช—ๅฃๅ‰ๆ— ๆ•ฐๆฎ๏ผ‰
+ sig_a = sig_a.fillna(0.0)
+ sig_b = sig_b.fillna(0.0)
+
+ # ๅฏน้ฝๅ›žๅŽŸๅง‹็ดขๅผ•
+ return {
+ code_a: sig_a.reindex(df_a.index).fillna(0.0),
+ code_b: sig_b.reindex(df_b.index).fillna(0.0),
+ }
+
+
+if __name__ == "__main__":
+ import requests
+
+ def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐใ€‚
+
+ Returns:
+ OHLCV DataFrameใ€‚
+ """
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+ pair = ["BTC-USDT", "ETH-USDT"]
+ data_map = {}
+ for sym in pair:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+
+ engine = SignalEngine(lookback=60, entry_z=2.0, exit_z=0.5)
+ signals = engine.generate(data_map)
+
+ for sym in pair:
+ sig = signals[sym]
+ print(f"\n{sym} ({len(sig)} bars)")
+ print(f" Long (0.5): {(sig == 0.5).sum()}")
+ print(f" Short (-0.5): {(sig == -0.5).sum()}")
+ print(f" Flat (0.0): {(sig == 0.0).sum()}")
diff --git a/agent/src/skills/performance-attribution/SKILL.md b/agent/src/skills/performance-attribution/SKILL.md
new file mode 100644
index 000000000..c1fa063c8
--- /dev/null
+++ b/agent/src/skills/performance-attribution/SKILL.md
@@ -0,0 +1,253 @@
+---
+name: performance-attribution
+description: Performance attribution analysis โ€” Brinson sector/stock-selection attribution, factor alpha/beta decomposition, market-timing evaluation, and benchmark comparison framework.
+---
+
+# Performance Attribution Analysis
+
+## Overview
+
+Decompose portfolio excess returns into explainable sources: sector allocation, stock selection, factor exposure, timing contribution, and more. This helps explain **why** a strategy made or lost money, rather than only **how much** it made or lost.
+
+## Brinson Attribution Model
+
+### Single-Period Brinson-Fachler Model
+
+```
+Total excess return = portfolio return - benchmark return
+
+Decomposed into three parts:
+1. Allocation effect: sector-weight deviation ร— sector benchmark return deviation
+2. Selection effect: stock selection within a sector ร— sector benchmark weight
+3. Interaction effect: weight deviation ร— stock-selection deviation
+```
+
+**Mathematical formulas**:
+
+```
+Let w_p,i = portfolio weight of sector i
+ w_b,i = benchmark weight of sector i
+ r_p,i = portfolio return of sector i
+ r_b,i = benchmark return of sector i
+ R_b = total benchmark return
+
+Allocation_i = (w_p,i - w_b,i) ร— (r_b,i - R_b)
+Selection_i = w_b,i ร— (r_p,i - r_b,i)
+Interaction_i = (w_p,i - w_b,i) ร— (r_p,i - r_b,i)
+
+Total excess = ฮฃ(Allocation_i) + ฮฃ(Selection_i) + ฮฃ(Interaction_i)
+```
+
+### Example Brinson Attribution
+
+```markdown
+### Brinson Sector Attribution
+
+| Sector | Portfolio Weight | Benchmark Weight | Portfolio Return | Benchmark Return | Allocation | Selection | Interaction |
+|------|---------|---------|---------|---------|---------|---------|---------|
+| Food & Beverage | 20% | 10% | 15% | 8% | +0.3% | +0.7% | +0.7% |
+| Electronics | 15% | 12% | 5% | 10% | -0.1% | -0.6% | +0.2% |
+| Banks | 5% | 20% | 3% | 2% | +0.3% | +0.2% | -0.2% |
+| Others | 60% | 58% | 8% | 7% | +0.0% | +0.6% | +0.0% |
+| **Total** | 100% | 100% | 9.5% | 6.2% | **+0.5%** | **+0.9%** | **+0.7%** |
+
+Excess return 3.3% = allocation effect 0.5% + selection effect 0.9% + interaction effect 0.7% + residual 0.2%
+```
+
+### Multi-Period Attribution (Linked Brinson)
+
+```
+Directly summing single-period attribution creates residuals (compounding effect). Common approaches:
+
+Method 1: arithmetic linking (simple sum of each period's attribution)
+ - Advantage: simple
+ - Disadvantage: residual remains
+
+Method 2: Carino logarithmic linking
+ - Advantage: no residual
+ - Disadvantage: more complex
+
+Practical recommendation: arithmetic linking is enough for monthly attribution; residuals are usually <0.1%
+```
+
+## Factor Attribution
+
+### Alpha-Beta Decomposition
+
+```
+R_p = ฮฑ + ฮฒ ร— R_m + ฮต
+
+ฮฑ (alpha): excess return, manager skill
+ฮฒ (beta): market exposure, systematic risk
+ฮต (epsilon): residual, idiosyncratic risk
+
+Regression method: OLS regression, with at least 60 data points
+```
+
+#### Multi-Factor Attribution (Fama-French Extension)
+
+```
+R_p - R_f = ฮฑ + ฮฒ_mkt ร— (R_m - R_f) + ฮฒ_smb ร— SMB + ฮฒ_hml ร— HML + ฮฒ_mom ร— MOM + ฮต
+
+| Factor | Meaning | China A-share Proxy |
+|------|------|--------|
+| MKT | Market | CSI 300 return |
+| SMB | Small-cap premium | CSI 500 - CSI 300 |
+| HML | Value premium | high-PB group - low-PB group |
+| MOM | Momentum | top past-12M winners - bottom group |
+```
+
+#### Factor Exposure Analysis Template
+
+```markdown
+### Factor Exposure Analysis
+
+| Factor | Beta | t-stat | Significance | Interpretation |
+|------|------|---------|--------|------|
+| Market (MKT) | 0.85 | 12.3 | *** | Below 1, defensive profile |
+| Small-cap (SMB) | 0.25 | 3.2 | ** | Small-cap tilt |
+| Value (HML) | -0.15 | -1.8 | * | Growth tilt |
+| Momentum (MOM) | 0.30 | 4.1 | *** | Significant momentum exposure |
+| **Alpha** | **0.8% / month** | **2.5** | ** | **Significant alpha** |
+
+Rยฒ = 0.72 โ†’ factors explain 72% of return variation
+Alpha = 0.8% / month = 10% / year, significant
+```
+
+## Market-Timing Evaluation
+
+### Treynor-Mazuy Model
+
+```
+R_p - R_f = ฮฑ + ฮฒ ร— (R_m - R_f) + ฮณ ร— (R_m - R_f)ยฒ + ฮต
+
+ฮณ > 0 and significant โ†’ timing ability exists (adds risk in bull markets, cuts risk in bear markets)
+ฮณ โ‰ค 0 โ†’ no timing ability
+```
+
+### Henriksson-Merton Model
+
+```
+R_p - R_f = ฮฑ + ฮฒ ร— (R_m - R_f) + ฮณ ร— max(R_m - R_f, 0) + ฮต
+
+ฮณ > 0 โ†’ portfolio beta is higher in bull markets (successful timing)
+```
+
+### Practical Timing Metrics
+
+| Metric | Calculation | Meaning |
+|------|------|------|
+| Bull capture ratio | portfolio return in bull markets / benchmark return | >100% = outperforming |
+| Bear capture ratio | portfolio return in bear markets / benchmark return | <100% = better downside defense |
+| Timing hit rate | proportion of months where market direction was called correctly | >55% = shows skill |
+| Correlation between position changes and market | `corr(position_change, future_return)` | >0 = timing is correct |
+
+## Benchmark Comparison Framework
+
+### Benchmark Selection
+
+| Strategy Type | Recommended Benchmark | China A-share Code |
+|---------|---------|---------|
+| China A-share large cap | CSI 300 | 000300.SH |
+| China A-share small cap | CSI 500 / CSI 1000 | 000905.SH |
+| China A-share broad market | CSI All Share | 000985.SH |
+| Hong Kong equities | Hang Seng Index | HSI |
+| US equities | S&P 500 | SPX |
+| Crypto | BTC | BTC-USDT |
+| Multi-asset | 60/40 portfolio | self-constructed |
+
+### Risk-Adjusted Performance Metrics
+
+| Metric | Formula | Excellent | Good | Average |
+|------|------|------|------|------|
+| Sharpe | `(R_p - R_f) / ฯƒ_p` | >1.5 | 1.0-1.5 | 0.5-1.0 |
+| Sortino | `(R_p - R_f) / ฯƒ_down` | >2.0 | 1.5-2.0 | 1.0-1.5 |
+| Calmar | `R_p / MaxDD` | >1.0 | 0.5-1.0 | 0.2-0.5 |
+| Information Ratio | `(R_p - R_b) / TE` | >1.0 | 0.5-1.0 | 0.2-0.5 |
+| Treynor | `(R_p - R_f) / ฮฒ` | used comparatively | | |
+
+### Rolling Analysis
+
+```
+Use rolling windows (such as 12 months) to analyze:
+- Rolling Sharpe: strategy stability
+- Rolling alpha: whether alpha persists
+- Rolling beta: whether market exposure is stable
+- Rolling information ratio: persistence of benchmark outperformance
+
+Suggested windows: 252 days for daily data, 12-36 months for monthly data
+```
+
+## Analysis Framework
+
+### Step 1: Aggregate Analysis
+
+```
+1. Cumulative return vs benchmark
+2. Excess-return decomposition (annual / monthly)
+3. Summary risk metrics (volatility / max drawdown / Sharpe)
+```
+
+### Step 2: Attribution Decomposition
+
+```
+1. Brinson attribution (if sector information is available)
+2. Factor attribution (alpha / beta / factor exposure)
+3. Timing attribution (TM / HM models)
+```
+
+### Step 3: Style Analysis
+
+```
+1. Large cap vs small cap exposure
+2. Growth vs value exposure
+3. Style drift detection (rolling style analysis)
+```
+
+### Step 4: Conclusions and Recommendations
+
+```
+1. Main sources of excess return
+2. Whether risk exposure is reasonable
+3. Suggested improvement directions
+```
+
+## Output Format
+
+```markdown
+## Performance Attribution Report
+
+### Performance Overview
+| Metric | Strategy | Benchmark | Excess |
+|------|------|------|------|
+| Cumulative return | +85.2% | +32.1% | +53.1% |
+| Annualized return | 12.5% | 5.8% | +6.7% |
+| Annualized volatility | 18.2% | 20.5% | - |
+| Sharpe | 0.69 | 0.28 | - |
+| Information Ratio | 0.82 | - | - |
+
+### Attribution Breakdown
+| Source | Contribution (annualized) | Share |
+|------|-----------|------|
+| Sector allocation | +2.1% | 31% |
+| Stock selection | +3.8% | 57% |
+| Timing | +0.8% | 12% |
+
+### Factor Exposure
+[factor exposure table]
+
+### Conclusion
+Excess return mainly comes from stock selection (57% contribution), followed by sector allocation.
+Alpha is significant (`t=2.5`), indicating real stock-picking ability.
+Watch the risk of excessive small-cap exposure (`SMB beta=0.25`).
+```
+
+## Notes
+
+1. **Attribution โ‰  prediction**: attribution explains the past; it does not guarantee persistence in the future
+2. **Benchmark selection affects attribution**: switch the benchmark and alpha may disappear, so benchmark choice must be appropriate
+3. **Data frequency**: daily attribution is noisy, monthly attribution is more stable but has fewer samples; recommended workflow is daily computation with monthly reporting
+4. **Survivorship bias**: delisted stocks may be excluded in backtests, creating false alpha
+5. **Multiple-testing problem**: if you test 100 strategies, about 5 may appear significant by chance (`p=0.05`); use multiple-comparison correction
+6. **Factor data requirement**: factor attribution requires factor return data, which can be obtained from `tushare` or self-constructed
+7. **Attribution in backtest reports**: `metrics.csv` already provides basic metrics after a backtest; this skill adds deeper attribution analysis
diff --git a/agent/src/skills/perp-funding-basis/SKILL.md b/agent/src/skills/perp-funding-basis/SKILL.md
new file mode 100644
index 000000000..74da0d279
--- /dev/null
+++ b/agent/src/skills/perp-funding-basis/SKILL.md
@@ -0,0 +1,251 @@
+---
+name: perp-funding-basis
+description: Perpetual futures funding rate analysis and cash-carry basis trading โ€” funding rate regimes, annualized basis signals, carry trade construction, and funding rate arbitrage between exchanges.
+---
+# Perpetual Funding Rate & Basis Trading
+
+## Overview
+
+Analyze perpetual futures funding rates and spot-futures basis to identify carry trade opportunities, market positioning extremes, and directional sentiment signals. Funding rates are the single most important microstructure indicator in crypto derivatives โ€” they reveal real-time leverage positioning and crowd sentiment.
+
+## Core Concepts
+
+### 1. Funding Rate Mechanics
+
+Perpetual futures have no expiry date. Instead, a **funding rate** is exchanged between longs and shorts every 8 hours (on most exchanges) to keep the perpetual price anchored to the spot price.
+
+```
+If perp price > spot price โ†’ funding rate positive โ†’ longs pay shorts
+If perp price < spot price โ†’ funding rate negative โ†’ shorts pay longs
+```
+
+**OKX funding rate schedule**: payments at 00:00, 08:00, 16:00 UTC
+
+**Annualized funding rate:**
+```python
+# OKX funding rate is per 8-hour period
+# Annualized = rate ร— 3 (per day) ร— 365
+funding_rate_8h = 0.01 # 0.01% per 8h
+annualized = funding_rate_8h * 3 * 365 # = 10.95% annualized
+```
+
+### 2. Funding Rate Signal Framework
+
+| Funding Rate (8h) | Annualized | Market State | Signal |
+|--------------------|------------|-------------|--------|
+| > +0.05% | > +54.75% | Extreme long crowding | Contrarian short / reduce longs |
+| +0.02% to +0.05% | +21.9% to +54.75% | Elevated long bias | Cautious, carry trade viable |
+| +0.005% to +0.02% | +5.5% to +21.9% | Mild long bias | Neutral to mild bullish |
+| -0.005% to +0.005% | -5.5% to +5.5% | Balanced | Neutral |
+| -0.02% to -0.005% | -21.9% to -5.5% | Mild short bias | Neutral to mild bearish |
+| < -0.02% | < -21.9% | Short squeeze territory | Contrarian long / reduce shorts |
+
+**Funding rate regime detection:**
+```python
+def funding_regime(rates_7d):
+ """Classify funding rate regime from 7-day history."""
+ avg = sum(rates_7d) / len(rates_7d)
+ consecutive_positive = all(r > 0 for r in rates_7d[-3:])
+ consecutive_negative = all(r < 0 for r in rates_7d[-3:])
+
+ if avg > 0.03 and consecutive_positive:
+ return "overheated_long" # High risk of long squeeze
+ elif avg > 0.01 and consecutive_positive:
+ return "bullish_carry" # Good carry trade environment
+ elif avg < -0.02 and consecutive_negative:
+ return "overheated_short" # High risk of short squeeze
+ elif avg < -0.005 and consecutive_negative:
+ return "bearish_carry" # Inverse carry trade
+ else:
+ return "neutral"
+```
+
+### 3. Spot-Futures Basis Analysis
+
+**Basis = Futures price - Spot price**
+
+For dated futures (quarterly), basis reflects cost-of-carry expectations:
+
+```python
+# Annualized basis
+def annualized_basis(futures_price, spot_price, days_to_expiry):
+ basis_pct = (futures_price - spot_price) / spot_price
+ annualized = basis_pct * (365 / days_to_expiry)
+ return annualized
+
+# Example: BTC spot $65,000, quarterly future $66,500, 45 days to expiry
+# Basis: 2.31%, Annualized: 18.7%
+```
+
+**Basis signal interpretation:**
+
+| Annualized Basis | Market State | Signal |
+|-----------------|-------------|--------|
+| > 30% | Extreme contango, euphoric leverage | Sell basis (cash-carry), top warning |
+| 15-30% | Elevated contango, bullish leverage | Carry trade attractive |
+| 5-15% | Normal contango | Neutral, mild bullish |
+| 0-5% | Flat basis | Low conviction, wait for direction |
+| < 0% (backwardation) | Bearish, forced selling | Contrarian long, extreme pessimism |
+
+### 4. Cash-Carry Arbitrage (Delta-Neutral)
+
+**Strategy: buy spot + sell perpetual futures โ†’ collect funding rate**
+
+```python
+# Cash-carry trade P&L
+def carry_trade_pnl(spot_entry, funding_rates, position_size):
+ """
+ Delta-neutral carry: long spot + short perp
+ P&L comes purely from funding rate collection.
+ """
+ total_funding_collected = 0
+ for rate in funding_rates:
+ if rate > 0: # Longs pay shorts โ†’ we collect as short
+ total_funding_collected += rate * position_size
+ else: # Shorts pay longs โ†’ we pay as short
+ total_funding_collected += rate * position_size # This is negative
+
+ return total_funding_collected
+
+# Example: $100,000 position, avg funding +0.015% per 8h, 30 days
+# Revenue: 0.015% ร— 3 ร— 30 ร— $100,000 = $1,350 (16.2% annualized)
+```
+
+**Carry trade execution on OKX:**
+1. Buy spot BTC-USDT on OKX spot market
+2. Open equal-sized short BTC-USDT-SWAP on OKX perpetual
+3. Net delta = 0 (spot long cancels perp short)
+4. Collect positive funding rate every 8 hours
+5. Close both legs when funding rate turns negative or basis compresses
+
+**Risk factors:**
+- Funding rate can flip negative โ†’ carry becomes a cost
+- Liquidation risk on short perp if insufficient margin (use 3-5x max leverage)
+- Exchange counterparty risk (keep position across 2-3 exchanges)
+- Basis can widen further before mean-reverting โ†’ mark-to-market loss on short leg
+
+### 5. Cross-Exchange Funding Arbitrage
+
+Different exchanges have different funding rates for the same asset. Arbitrage the spread:
+
+```python
+# Example: BTC-USDT perpetual funding rates
+exchange_rates = {
+ "OKX": 0.015, # +0.015% per 8h
+ "Binance": 0.020, # +0.020% per 8h
+ "Bybit": 0.025, # +0.025% per 8h
+}
+
+# Strategy: short on highest funding (Bybit) + long on lowest funding (OKX)
+# Net carry = 0.025% - 0.015% = 0.010% per 8h
+# Annualized: 0.010% ร— 3 ร— 365 = 10.95%
+# Risk: execution cost + potential for rates to converge/flip
+```
+
+### 6. Funding Rate as Directional Indicator
+
+**Divergence signals (most powerful):**
+
+| Price Action | Funding Rate | Interpretation | Signal |
+|-------------|-------------|----------------|--------|
+| Price making new highs | Funding declining | Longs not chasing โ†’ distribution | Bearish divergence |
+| Price making new lows | Funding rising (less negative) | Shorts not pressing โ†’ accumulation | Bullish divergence |
+| Price consolidating | Funding spiking positive | Leverage building without breakout | Squeeze risk |
+| Price consolidating | Funding deeply negative | Shorts paying heavy cost to maintain | Short squeeze imminent |
+
+**Historical pattern statistics (BTC):**
+- Funding > +0.05% for 3+ consecutive periods โ†’ 70% probability of a 5-10% correction within 7 days
+- Funding < -0.03% for 3+ consecutive periods โ†’ 65% probability of a 5-15% bounce within 7 days
+- These are contrarian signals; funding rate extremes indicate crowded positioning
+
+### 7. Open Interest ร— Funding Rate Matrix
+
+```python
+# Combined OI + Funding signal
+def oi_funding_matrix(oi_change_24h_pct, funding_rate):
+ if oi_change_24h_pct > 5 and funding_rate > 0.03:
+ return "leveraged_long_buildup" # High risk, squeeze potential
+ elif oi_change_24h_pct > 5 and funding_rate < -0.01:
+ return "leveraged_short_buildup" # Short squeeze potential
+ elif oi_change_24h_pct < -5 and funding_rate > 0:
+ return "long_liquidation" # Forced long closing
+ elif oi_change_24h_pct < -5 and funding_rate < 0:
+ return "short_liquidation" # Forced short closing
+ elif abs(oi_change_24h_pct) < 2 and abs(funding_rate) < 0.005:
+ return "quiet_market" # Low conviction, wait
+ else:
+ return "mixed"
+```
+
+## Data Access
+
+### Via OKX API
+
+```python
+# Funding rate history
+# GET /api/v5/public/funding-rate-history?instId=BTC-USDT-SWAP
+
+# Current funding rate
+# GET /api/v5/public/funding-rate?instId=BTC-USDT-SWAP
+
+# Open interest
+# GET /api/v5/public/open-interest?instType=SWAP&instId=BTC-USDT-SWAP
+```
+
+Use `load_skill("okx-market")` for OKX data retrieval patterns.
+
+### Key Metrics to Track
+
+| Metric | Source | Frequency | Alert Threshold |
+|--------|--------|-----------|-----------------|
+| BTC funding rate (8h) | OKX / Binance | Every 8h | > +0.05% or < -0.03% |
+| ETH funding rate (8h) | OKX / Binance | Every 8h | > +0.05% or < -0.03% |
+| Annualized basis (quarterly) | OKX | Continuous | > 30% or < 0% |
+| BTC open interest change | OKX | Hourly | > ยฑ5% in 24h |
+| Cross-exchange funding spread | Multi-exchange | Every 8h | Spread > 0.02% |
+
+## Output Format
+
+```
+## Funding Rate & Basis Analysis โ€” [Asset]
+
+### Current Funding Rates
+| Exchange | 8h Rate | Annualized | Regime |
+|----------|---------|------------|--------|
+| OKX | +0.015% | +16.4% | bullish_carry |
+| Binance | +0.020% | +21.9% | bullish_carry |
+
+### Basis Structure
+- **Spot price**: $XX,XXX
+- **Perp price**: $XX,XXX (premium: X.XX%)
+- **Quarterly futures**: $XX,XXX (annualized basis: X.X%)
+- **Basis regime**: [contango / flat / backwardation]
+
+### Funding History (7-day)
+- **Average**: +X.XXX%
+- **Trend**: [rising / stable / declining]
+- **Consecutive direction**: [X periods positive/negative]
+
+### Open Interest
+- **Current OI**: $X.XB
+- **24h change**: [+/-X%]
+- **OI ร— Funding signal**: [leveraged_long_buildup / quiet / etc.]
+
+### Carry Trade Opportunity
+- **Best carry**: [short on Exchange X, long spot]
+- **Expected annualized yield**: X.X%
+- **Risk**: [funding flip probability, liquidation distance]
+
+### Directional Signal
+- **Funding regime**: [overheated / bullish / neutral / bearish / oversold]
+- **Divergence**: [none / bullish / bearish]
+- **Confidence**: [high / medium / low]
+```
+
+## Notes
+
+- Funding rates are exchange-specific; always compare across OKX, Binance, and Bybit for the full picture
+- Extremely high funding rates are a **cost** for longs, not a bullish signal โ€” they indicate overcrowded positioning
+- Cash-carry trades have execution risk: slippage on entry/exit, funding rate flipping, and exchange downtime during volatility
+- Basis and funding rate signals work best when combined with on-chain data (MVRV, exchange flows)
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/quant-statistics/SKILL.md b/agent/src/skills/quant-statistics/SKILL.md
new file mode 100644
index 000000000..57d237eb4
--- /dev/null
+++ b/agent/src/skills/quant-statistics/SKILL.md
@@ -0,0 +1,449 @@
+---
+name: quant-statistics
+description: "Quantitative statistical methods: ADF unit-root / cointegration tests, GARCH volatility modeling, regression diagnostics (heteroskedasticity / autocorrelation), Bootstrap, and hypothesis testing."
+---
+
+# Quantitative Statistical Methods
+
+## Overview
+
+Common statistical methodology used in quantitative investing, covering time-series testing, volatility modeling, regression diagnostics, and statistical inference. Provides the statistical foundation for strategy development and factor research.
+
+## Time-Series Tests
+
+### 1. ADF Unit-Root Test (Stationarity Test)
+
+**Why it matters**: regressing non-stationary series directly can produce spurious regression, making conclusions unreliable.
+
+```python
+from statsmodels.tsa.stattools import adfuller
+
+def adf_test(series: pd.Series, significance: float = 0.05) -> dict:
+ """
+ ADF test: H0 = unit root exists (non-stationary), H1 = stationary
+
+ Args:
+ series: Time series
+ significance: Significance level
+ Returns:
+ Test result
+ """
+ result = adfuller(series.dropna(), autolag='AIC')
+ return {
+ 'adf_statistic': result[0],
+ 'p_value': result[1],
+ 'lags_used': result[2],
+ 'is_stationary': result[1] < significance,
+ 'critical_values': result[4], # 1%, 5%, 10%
+ }
+```
+
+**Decision rules**:
+
+| p-value | Conclusion | Action |
+|-----|------|------|
+| < 0.01 | Strongly stationary | Can be used directly for regression / modeling |
+| 0.01-0.05 | Stationary | Usable |
+| 0.05-0.10 | Weak evidence | Difference the series and retest |
+| > 0.10 | Non-stationary | Must difference or handle with cointegration |
+
+**Stationarity of common financial series**:
+
+| Series | Typical Result | Treatment |
+|------|---------|---------|
+| Price series | Non-stationary (unit root) | Use log returns |
+| Log returns | Stationary | Can be used directly |
+| PE / PB series | Usually non-stationary | Use changes or logs |
+| Volatility series | Usually stationary | Can be used directly |
+| Volume | May be non-stationary | Use logs or standardization |
+
+### 2. Cointegration Test
+
+**Purpose**: determine whether two non-stationary series share a long-run equilibrium relationship (the foundation of pair trading / statistical arbitrage).
+
+```python
+from statsmodels.tsa.stattools import coint
+
+def cointegration_test(y: pd.Series, x: pd.Series) -> dict:
+ """
+ Engle-Granger two-step cointegration test
+ H0: no cointegration relationship
+
+ Args:
+ y, x: Two price series
+ Returns:
+ Test result
+ """
+ score, p_value, critical = coint(y, x)
+ return {
+ 'test_statistic': score,
+ 'p_value': p_value,
+ 'is_cointegrated': p_value < 0.05,
+ 'critical_values': {'1%': critical[0], '5%': critical[1], '10%': critical[2]},
+ }
+```
+
+**Application in pair trading**:
+
+```python
+import statsmodels.api as sm
+
+def find_hedge_ratio(y: pd.Series, x: pd.Series) -> dict:
+ """
+ Compute hedge ratio: y = ฮฑ + ฮฒร—x + ฮต
+ Spread = y - ฮฒร—x
+ """
+ x_const = sm.add_constant(x)
+ model = sm.OLS(y, x_const).fit()
+
+ spread = y - model.params[1] * x
+
+ return {
+ 'hedge_ratio': model.params[1],
+ 'intercept': model.params[0],
+ 'spread_mean': spread.mean(),
+ 'spread_std': spread.std(),
+ 'half_life': compute_half_life(spread), # mean-reversion speed
+ }
+
+def compute_half_life(spread: pd.Series) -> float:
+ """Estimate half-life with OLS regression."""
+ spread_lag = spread.shift(1)
+ delta = spread - spread_lag
+ model = sm.OLS(delta.dropna(), sm.add_constant(spread_lag.dropna())).fit()
+ half_life = -np.log(2) / model.params[1]
+ return half_life
+```
+
+**Pair-trading signal**:
+
+```
+z_score = (spread - mean) / std
+
+| z_score | Signal |
+|---------|------|
+| > 2.0 | Short spread (sell y, buy x) |
+| > 1.5 | Small short spread |
+| < -1.5 | Small long spread |
+| < -2.0 | Long spread (buy y, sell x) |
+| Back near 0 | Close position |
+```
+
+### 3. Granger Causality Test
+
+```python
+from statsmodels.tsa.stattools import grangercausalitytests
+
+def granger_test(data: pd.DataFrame, x_col: str, y_col: str, max_lag: int = 5):
+ """
+ Test whether x Granger-causes y (whether historical x helps predict y).
+ Note: Granger causality is not true causality, only predictive causality.
+ """
+ results = grangercausalitytests(data[[y_col, x_col]].dropna(), maxlag=max_lag)
+ return {lag: results[lag][0]['ssr_ftest'][1] for lag in range(1, max_lag+1)}
+```
+
+## GARCH Volatility Modeling
+
+### GARCH(1,1) Model
+
+```
+Returns: r_t = ฮผ + ฮต_t
+Volatility: ฯƒยฒ_t = ฯ‰ + ฮฑร—ฮตยฒ_{t-1} + ฮฒร—ฯƒยฒ_{t-1}
+
+Parameter meanings:
+- ฯ‰ (omega): long-run variance baseline
+- ฮฑ (alpha): impact of yesterday's shock on today's volatility
+- ฮฒ (beta): persistence of yesterday's volatility into today
+- ฮฑ + ฮฒ: volatility persistence (usually 0.95-0.99)
+- Long-run volatility = sqrt(ฯ‰ / (1 - ฮฑ - ฮฒ))
+```
+
+```python
+from arch import arch_model
+
+def fit_garch(returns: pd.Series) -> dict:
+ """
+ Fit a GARCH(1,1) model.
+
+ Args:
+ returns: Daily return series (in percentage form)
+ Returns:
+ Model parameters and forecasts
+ """
+ model = arch_model(returns * 100, vol='Garch', p=1, q=1,
+ mean='Constant', dist='normal')
+ result = model.fit(disp='off')
+
+ # Forecast volatility for the next 5 days
+ forecast = result.forecast(horizon=5)
+
+ return {
+ 'omega': result.params['omega'],
+ 'alpha': result.params['alpha[1]'],
+ 'beta': result.params['beta[1]'],
+ 'persistence': result.params['alpha[1]'] + result.params['beta[1]'],
+ 'long_run_vol': np.sqrt(result.params['omega'] /
+ (1 - result.params['alpha[1]'] - result.params['beta[1]'])) / 100,
+ 'current_vol': np.sqrt(result.conditional_volatility[-1]) / 100,
+ 'forecast_vol_5d': np.sqrt(forecast.variance.values[-1, :]) / 100,
+ 'aic': result.aic,
+ 'bic': result.bic,
+ }
+```
+
+### GARCH Variants
+
+| Model | Characteristics | Applicable Scenario |
+|------|------|---------|
+| GARCH(1,1) | Baseline, symmetric shock response | Default choice |
+| EGARCH | Asymmetric (leverage effect) | Down-move volatility > up-move volatility |
+| GJR-GARCH | Another asymmetric form | Same use case as EGARCH, easier to interpret |
+| FIGARCH | Long memory | Volatility clustering persists for very long periods |
+
+**GARCH characteristics in China A-shares / crypto**:
+
+```
+China A-shares:
+- ฮฑ usually 0.05-0.15
+- ฮฒ usually 0.80-0.90
+- Clear leverage effect (EGARCH fits better)
+- Strong volatility clustering persistence
+
+BTC:
+- ฮฑ usually 0.05-0.20 (shocks matter more)
+- ฮฒ usually 0.75-0.90
+- More symmetric shocks (little difference between up/down volatility)
+- Long-run volatility around 60-80% annualized
+```
+
+## Regression Diagnostics
+
+### 1. Heteroskedasticity Test
+
+```python
+from statsmodels.stats.diagnostic import het_white, het_breuschpagan
+
+def heteroscedasticity_test(model_result) -> dict:
+ """
+ Test whether residuals are heteroskedastic.
+ H0: homoskedasticity
+ """
+ # White test
+ white_stat, white_p, _, _ = het_white(model_result.resid, model_result.model.exog)
+
+ # BP test
+ bp_stat, bp_p, _, _ = het_breuschpagan(model_result.resid, model_result.model.exog)
+
+ return {
+ 'white_p': white_p,
+ 'bp_p': bp_p,
+ 'has_heteroscedasticity': white_p < 0.05 or bp_p < 0.05,
+ 'fix': 'Use HAC standard errors (Newey-West) or WLS' if white_p < 0.05 else 'No adjustment needed',
+ }
+```
+
+**Heteroskedasticity fixes**:
+- Use `model.fit(cov_type='HAC', cov_kwds={'maxlags': 5})`
+- Or use weighted least squares (WLS)
+- Financial data is almost always heteroskedastic -> use HAC standard errors by default
+
+### 2. Autocorrelation Test
+
+```python
+from statsmodels.stats.diagnostic import acorr_ljungbox
+from statsmodels.stats.stattools import durbin_watson
+
+def autocorrelation_test(residuals: pd.Series, lags: int = 10) -> dict:
+ """
+ Test whether residuals are autocorrelated.
+ H0: no autocorrelation
+ """
+ # DW test (first-order only)
+ dw = durbin_watson(residuals)
+
+ # Ljung-Box test (multiple lags)
+ lb_result = acorr_ljungbox(residuals, lags=lags)
+
+ return {
+ 'durbin_watson': dw,
+ 'dw_interpretation': 'positive autocorrelation' if dw < 1.5 else 'no autocorrelation' if dw < 2.5 else 'negative autocorrelation',
+ 'ljung_box_p': lb_result['lb_pvalue'].values,
+ 'has_autocorrelation': any(lb_result['lb_pvalue'] < 0.05),
+ 'fix': 'Use Newey-West standard errors or include lag terms',
+ }
+```
+
+### 3. Multicollinearity Test
+
+```python
+from statsmodels.stats.outliers_influence import variance_inflation_factor
+
+def vif_test(X: pd.DataFrame) -> pd.DataFrame:
+ """
+ VIF test for multicollinearity
+ VIF > 10 -> severe collinearity
+ VIF > 5 -> needs attention
+ """
+ vif_data = pd.DataFrame()
+ vif_data['feature'] = X.columns
+ vif_data['VIF'] = [variance_inflation_factor(X.values, i) for i in range(X.shape[1])]
+ vif_data['concern'] = vif_data['VIF'].apply(
+ lambda x: 'severe' if x > 10 else 'watch' if x > 5 else 'normal'
+ )
+ return vif_data
+```
+
+### Regression Diagnostics Checklist
+
+```
+โ–ก 1. Linearity: residuals vs fitted values show no obvious pattern
+โ–ก 2. Normality: residual QQ plot is close to a straight line, Jarque-Bera p>0.05
+โ–ก 3. Heteroskedasticity: White / BP test p>0.05, or use HAC standard errors
+โ–ก 4. Autocorrelation: DWโ‰ˆ2, Ljung-Box p>0.05
+โ–ก 5. Multicollinearity: VIF<5
+โ–ก 6. Outliers: Cook's D < 4/n
+```
+
+## Bootstrap Methods
+
+### Nonparametric Bootstrap
+
+```python
+def bootstrap_statistic(data: np.ndarray, statistic_func,
+ n_bootstrap: int = 10000,
+ confidence: float = 0.95) -> dict:
+ """
+ Estimate a confidence interval for a statistic with Bootstrap.
+
+ Args:
+ data: Raw data
+ statistic_func: Statistic function (for example np.mean, np.median)
+ n_bootstrap: Number of Bootstrap resamples
+ confidence: Confidence level
+ Returns:
+ Point estimate and confidence interval
+ """
+ n = len(data)
+ bootstrap_stats = np.array([
+ statistic_func(np.random.choice(data, size=n, replace=True))
+ for _ in range(n_bootstrap)
+ ])
+
+ alpha = 1 - confidence
+ lower = np.percentile(bootstrap_stats, alpha/2 * 100)
+ upper = np.percentile(bootstrap_stats, (1 - alpha/2) * 100)
+
+ return {
+ 'point_estimate': statistic_func(data),
+ 'bootstrap_mean': np.mean(bootstrap_stats),
+ 'bootstrap_std': np.std(bootstrap_stats),
+ 'ci_lower': lower,
+ 'ci_upper': upper,
+ 'confidence': confidence,
+ }
+```
+
+### Bootstrap Applications in Quant
+
+| Scenario | Method | Purpose |
+|------|------|------|
+| Sharpe-ratio confidence interval | Bootstrap return series | Determine whether Sharpe is significantly >0 |
+| Factor return test | Bootstrap factor values | Whether factor premium is robust |
+| Maximum drawdown distribution | Bootstrap equity paths | Probability distribution of max drawdown |
+| Strategy comparison | Paired Bootstrap | Whether strategy A is significantly better than B |
+
+```python
+def bootstrap_sharpe(returns: pd.Series, n_bootstrap: int = 10000) -> dict:
+ """Bootstrap confidence interval for the Sharpe ratio."""
+ def sharpe(r):
+ return r.mean() / r.std() * np.sqrt(252) if r.std() > 0 else 0
+
+ result = bootstrap_statistic(returns.values, sharpe, n_bootstrap)
+ result['is_significant'] = result['ci_lower'] > 0 # 95% CI excludes 0
+ return result
+```
+
+## Hypothesis-Testing Framework
+
+### Quick Reference for Common Tests
+
+| Testing Goal | Test Method | Null Hypothesis |
+|---------|---------|--------|
+| Mean = 0 | t-test | `ฮผ = 0` |
+| Two means are equal | Independent t-test | `ฮผ1 = ฮผ2` |
+| Normality | Jarque-Bera | Normal distribution |
+| Stationarity | ADF | Has unit root (non-stationary) |
+| Autocorrelation | Ljung-Box | No autocorrelation |
+| Heteroskedasticity | White / BP | Homoskedasticity |
+| Cointegration | Engle-Granger | Not cointegrated |
+
+### Multiple-Testing Problem
+
+```
+Problem: test 100 factors and filter with p<0.05 -> expect 5 false positives
+
+Correction methods:
+1. Bonferroni: p_adj = p ร— n_tests (most conservative)
+2. Holm-Bonferroni: stepwise correction (fairly conservative)
+3. Benjamini-Hochberg (FDR): control false discovery rate (recommended)
+
+from statsmodels.stats.multitest import multipletests
+reject, p_adj, _, _ = multipletests(p_values, method='fdr_bh')
+```
+
+### Statistical Significance in Financial Backtests
+
+```
+Sharpe significance test:
+H0: Sharpe = 0 (strategy is ineffective)
+H1: Sharpe > 0
+
+Test statistic: t = Sharpe ร— sqrt(n) / sqrt(1 + 0.5ร—Sharpeยฒ)
+where n = number of observation periods (years)
+
+Rules of thumb:
+- Sharpe > 0.5 and backtest >5 years -> may be significant
+- Sharpe > 1.0 and backtest >3 years -> likely significant
+- Sharpe > 2.0 -> overfitting warning (hard to sustain in reality)
+```
+
+## Output Format
+
+```markdown
+## Statistical Testing Report
+
+### Stationarity Test
+| Series | ADF Statistic | p-value | Conclusion |
+|------|----------|-----|------|
+| Price | -1.23 | 0.65 | Non-stationary |
+| Return | -15.8 | 0.000 | Stationary *** |
+
+### Cointegration Test
+| Pair | Statistic | p-value | Cointegrated |
+|------|--------|-----|------|
+| 600519/000858 | -4.52 | 0.002 | Yes ** |
+
+### GARCH Model
+| Parameter | Value | Meaning |
+|------|-----|------|
+| ฮฑ | 0.08 | Shock effect |
+| ฮฒ | 0.88 | Volatility persistence |
+| Long-run volatility | 22.5% | Annualized |
+
+### Bootstrap Result
+| Metric | Point Estimate | 95% CI | Significant |
+|------|--------|--------|------|
+| Sharpe | 1.25 | [0.62, 1.88] | Yes |
+| Alpha (monthly) | 0.8% | [0.1%, 1.5%] | Yes |
+```
+
+## Notes
+
+1. **Financial data is non-normal**: almost all financial return series are fat-tailed, so be careful with tests assuming normality
+2. **Multiple testing**: when backtesting many strategies / factors, multiple-testing correction (FDR control) is mandatory
+3. **Out-of-sample validation**: statistical significance does not guarantee profitability; out-of-sample testing is still required
+4. **Cointegration can break down**: historical cointegration does not guarantee persistence, so pair trading needs ongoing monitoring
+5. **GARCH forecast horizon is limited**: volatility-forecast accuracy declines rapidly beyond 5-10 days
+6. **Be careful with small samples**: financial datasets may look large, but the number of independent observations can still be small (for example, annual data)
+7. **p-hacking risk**: do not keep adjusting until p<0.05; predefine the testing plan
diff --git a/agent/src/skills/regulatory-knowledge/SKILL.md b/agent/src/skills/regulatory-knowledge/SKILL.md
new file mode 100644
index 000000000..d866492df
--- /dev/null
+++ b/agent/src/skills/regulatory-knowledge/SKILL.md
@@ -0,0 +1,299 @@
+---
+name: regulatory-knowledge
+description: ้‡‘่ž็›‘็ฎก็Ÿฅ่ฏ†ๅบ“๏ผšA่‚กๆถจ่ทŒๅœ/ST้€€ๅธ‚ๆ–ฐ่ง„/่žๅˆธใ€ๆธฏ่‚กT+0/ๅš็ฉบๆœบๅˆถใ€็พŽ่‚กPDT/็†”ๆ–ญใ€ๅŠ ๅฏ†็›‘็ฎกๆ”ฟ็ญ–ใ€่ทจๅขƒ็จŽๅŠกๅŸบ็ก€
+---
+
+# ้‡‘่ž็›‘็ฎก็Ÿฅ่ฏ†ๅบ“
+
+## ๆฆ‚่ฟฐ
+
+้‡ๅŒ–ไบคๆ˜“ๅฟ…้กป็†่งฃ็š„ๅ„ๅธ‚ๅœบ็›‘็ฎก่ง„ๅˆ™ใ€‚้”™่ฏฏ็š„ไบคๆ˜“่ง„ๅˆ™ๅ‡่ฎพไผšๅฏผ่‡ดๅ›žๆต‹ๅคฑ็œŸ๏ผˆๅฆ‚A่‚กๅ›žๆต‹ไธ่€ƒ่™‘ๆถจ่ทŒๅœ้™ๅˆถ๏ผ‰ใ€ๅฎž็›˜่ฟ่ง„๏ผˆๅฆ‚็พŽ่‚กPDT้™ๅˆถ๏ผ‰ๆˆ–็จŽๅŠกๆŸๅคฑใ€‚
+
+้€‚็”จๅœบๆ™ฏ๏ผš
+- ๅ›žๆต‹ๅผ•ๆ“Žไธญๆญฃ็กฎๅฎž็Žฐไบคๆ˜“่ง„ๅˆ™็บฆๆŸ
+- ่ทจๅธ‚ๅœบ็ญ–็•ฅ็š„่ง„ๅˆ™ๅทฎๅผ‚ๅค„็†
+- ๅˆ่ง„้ฃŽๆŽงๅ‚ๆ•ฐ่ฎพ็ฝฎ
+- ็จŽๅŠกๅฝฑๅ“็บณๅ…ฅ็ญ–็•ฅๆ”ถ็›Š่ฎก็ฎ—
+
+## ๆ ธๅฟƒๆฆ‚ๅฟต
+
+### A่‚กไบคๆ˜“่ง„ๅˆ™
+
+**ๆถจ่ทŒๅœๅˆถๅบฆ**๏ผš
+| ๆฟๅ— | ๆถจ่ทŒๅœ | ๆ–ฐ่‚ก้ฆ–ๆ—ฅ | STๆถจ่ทŒๅœ |
+|------|--------|----------|----------|
+| ไธปๆฟ(ๆฒชๆทฑ) | ยฑ10% | +44%/-36% | ยฑ5% |
+| ๅˆ›ไธšๆฟ | ยฑ20% | ๅ‰5ๆ—ฅๆ— ้™ๅˆถ | ยฑ20% |
+| ็ง‘ๅˆ›ๆฟ | ยฑ20% | ๅ‰5ๆ—ฅๆ— ้™ๅˆถ | ยฑ20% |
+| ๅŒ—ไบคๆ‰€ | ยฑ30% | ๅ‰5ๆ—ฅๆ— ้™ๅˆถ | ยฑ30% |
+
+```
+ๅ›žๆต‹ๅฝฑๅ“:
+ ๆถจๅœๆ—ถไนฐๅ…ฅๅฏ่ƒฝๆ— ๆณ•ๆˆไบค๏ผˆๅฐๆฟ๏ผ‰โ†’ ไฟกๅทๅปถ่ฟŸ
+ ่ทŒๅœๆ—ถๅ–ๅ‡บๅฏ่ƒฝๆ— ๆณ•ๆˆไบค๏ผˆๅฐๆฟ๏ผ‰โ†’ ๆญขๆŸๅคฑๆ•ˆ
+
+ๅ›žๆต‹ๅฎž็Žฐ:
+ if daily_return >= limit_up:
+ buy_signalๆ— ๆณ•ๆ‰ง่กŒ, ๆŽจ่ฟŸๅˆฐๆฌกๆ—ฅ
+ if daily_return <= limit_down:
+ sell_signalๅฏ่ƒฝๆ— ๆณ•ๆ‰ง่กŒ, ็”จ่ทŒๅœไปทๆจกๆ‹Ÿๆˆไบค
+```
+
+**T+1ๅˆถๅบฆ**๏ผš
+```
+A่‚ก: Tๆ—ฅไนฐๅ…ฅ โ†’ T+1ๆ—ฅๆ‰่ƒฝๅ–ๅ‡บ
+ๅ›žๆต‹ๅฝฑๅ“: ไฟกๅทๅœจTๆ—ฅไบง็”Ÿ โ†’ T+1ๆ—ฅๅผ€็›˜ๆ‰ง่กŒไนฐๅ…ฅ โ†’ T+2ๆ—ฅๆœ€ๆ—ฉๅฏๅ–ๅ‡บ
+ๅธธ่ง้”™่ฏฏ: ๅ›žๆต‹ไธญTๆ—ฅไฟกๅทTๆ—ฅๅฐฑๅนณไป“ โ†’ ่™šๅขžๆ”ถ็›Š
+
+ไพ‹ๅค–:
+ - ่žๅˆธๅš็ฉบ: ๅฏT+0(่žๅˆธๅ–ๅ‡บๅฝ“ๆ—ฅไนฐๅˆธ่ฟ˜ๅˆธ)
+ - ETFๅฅ—ๅˆฉ: ไธ€็บงๅธ‚ๅœบ็”ณ่ตŽๅฏๅฎž็ŽฐT+0ๅ˜็›ธไบคๆ˜“
+ - ๅฏ่ฝฌๅ€บ: ๅฎž่กŒT+0ไบคๆ˜“
+```
+
+**่ž่ต„่žๅˆธ/่ฝฌ่ž้€š**๏ผš
+```
+่ž่ต„(ๆ ๆ†ๅšๅคš):
+ ไฟ่ฏ้‡‘ๆฏ”ไพ‹: โ‰ฅ100% (ๅณๆœ€ๅคงๆ ๆ†2ๅ€)
+ ็ปดๆŒๆ‹…ไฟๆฏ”ไพ‹: โ‰ฅ130% (ไฝŽไบŽๅˆ™่ฟฝไฟ; <110%ๅผบๅนณ)
+ ๆ ‡็š„่Œƒๅ›ด: ็บฆ1600ๅช(ๆตๅŠจๆ€งๅฅฝ็š„ไธปๆฟ/ๅˆ›ไธšๆฟ่‚ก็ฅจ)
+
+่žๅˆธ(ๅš็ฉบ):
+ ๅˆธๆบ: ่ฏๅˆธๅ…ฌๅธ่‡ชๆœ‰+่ฝฌ่ž้€šๅ€Ÿๅ…ฅ
+ ่ดน็އ: ๅนดๅŒ–8-10%(่ฟœ้ซ˜ไบŽ็พŽ่‚ก็š„1-2%)
+ ้™ๅˆถ: 2023ๅนดๅŽ้™ๅˆถ่žๅˆธT+0, ๅˆธๆบๅคงๅน…ๆ”ถ็ดง
+
+ๅ›žๆต‹ๅฝฑๅ“:
+ ๅš็ฉบ็ญ–็•ฅๅœจA่‚กๆˆๆœฌๆž้ซ˜, ้œ€ๆ‰ฃ้™ค8-10%/ๅนด็š„่žๅˆธ่ดน็”จ
+ ๅฎž้™…ๅฏ่žๅˆธๆ ‡็š„ < ็†่ฎบๆ ‡็š„ (ๅˆธๆบๆœ‰้™)
+```
+
+**้›†ๅˆ็ซžไปทไธŽ่ฟž็ปญ็ซžไปท**๏ผš
+```
+ๆ—ฉ็›˜้›†ๅˆ็ซžไปท: 9:15-9:25 (9:15-9:20ๅฏๆ’คๅ•, 9:20-9:25ไธๅฏๆ’คๅ•)
+ 9:25 ไบง็”Ÿๅผ€็›˜ไปท
+่ฟž็ปญ็ซžไปท: 9:30-11:30, 13:00-14:57
+ๅฐพ็›˜้›†ๅˆ็ซžไปท: 14:57-15:00 (ไธๅฏๆ’คๅ•)
+
+ๅ›žๆต‹ๅฝฑๅ“:
+ - ๆ—ฅ็บฟๅ›žๆต‹้ป˜่ฎค็”จT+1ๅผ€็›˜ไปทๆˆไบค
+ - ๅฐพ็›˜3ๅˆ†้’Ÿ้›†ๅˆ็ซžไปท: ๅคงๅ•้›†ไธญ, VWAP็ญ–็•ฅ้œ€ๆณจๆ„
+ - ้›†ๅˆ็ซžไปทๆœŸ้—ด็š„้™ไปทๅ•ๅฏ่ƒฝๅฝฑๅ“ๅผ€็›˜ไปท
+```
+
+**ๅคงๅฎ—ไบคๆ˜“**๏ผš
+```
+ๆ—ถ้—ด: 15:00-15:30 (ๆ”ถ็›˜ๅŽ)
+ๆŠ˜ไปท: ้€šๅธธๆŠ˜ไปท3-8% (็›ธๅฏนๆ”ถ็›˜ไปท)
+้™ๅˆถ: ไนฐๅ…ฅๅŽ6ไธชๆœˆๅ†…ไธ่ƒฝๅœจไบŒ็บงๅธ‚ๅœบๅ–ๅ‡บ(ๅคง่‚กไธœๅ‡ๆŒ็”จ)
+
+ไฟกๅทๆ„ไน‰:
+ ๅคงๅฎ—ไบคๆ˜“้ข‘็น + ๆŠ˜ไปทๅคง โ†’ ๅฏ่ƒฝๆœ‰ๅ‡ๆŒ้œ€ๆฑ‚(ๅˆฉ็ฉบ)
+ ๅคงๅฎ—ไบคๆ˜“ๅŽ6ไธชๆœˆ่งฃ็ฆ โ†’ ๅ…ณๆณจ่งฃ็ฆๆ—ฅๅ–ๅŽ‹
+```
+
+### ๆธฏ่‚กไบคๆ˜“่ง„ๅˆ™
+
+```
+ไบคๆ˜“ๆ—ถ้—ด:
+ ๆ—ฉ็›˜็ซžไปท: 9:00-9:30
+ ่ฟž็ปญไบคๆ˜“: 9:30-12:00, 13:00-16:00
+ ๆ”ถๅธ‚็ซžไปท: 16:00-16:10
+
+ๆ ธๅฟƒๅทฎๅผ‚(vs A่‚ก):
+ โœ“ T+0ไบคๆ˜“ (ๅฝ“ๆ—ฅไนฐๅฝ“ๆ—ฅๅฏๅ–)
+ โœ“ ๆ— ๆถจ่ทŒๅœ้™ๅˆถ (ไธช่‚กๅ•ๆ—ฅๅฏๆถจ่ทŒ50%+)
+ โœ“ ๅš็ฉบๆœบๅˆถๅฎŒๅ–„ (่žๅˆธๆˆๆœฌไฝŽ, ็บฆ1-3%/ๅนด)
+ โœ“ ๆš—็›˜ไบคๆ˜“ (IPOไธŠๅธ‚ๅ‰ไธ€ๆ™š็š„็ฐๅธ‚ไบคๆ˜“)
+ โœ— ๆตๅŠจๆ€งๅทฎ (ๆ—ฅๆˆไบค้ขไป…A่‚ก็š„1/10-1/5)
+ โœ— ไป™่‚กๅคš (ๅคง้‡่‚กไปท<0.1ๆธฏๅ…ƒ็š„ๅฐ็ฅจ)
+
+ๅš็ฉบ่ง„ๅˆ™:
+ - ๅช่ƒฝไปฅไธไฝŽไบŽๆœ€ไฝณๅ–็›˜ไปทๅš็ฉบ (uptick ruleๅ˜ไฝ“)
+ - ้œ€ๅ…ˆๅ€Ÿๅ…ฅ่‚กไปฝๆ‰่ƒฝๅš็ฉบ (naked short prohibited)
+ - ๅš็ฉบๅคดๅฏธ้œ€ๆฏๆ—ฅๆŠฅๅ‘Š (่พพๅˆฐ0.02%้˜ˆๅ€ผๆ—ถ)
+
+ไบคๆ”ถๅˆถๅบฆ:
+ T+2ไบคๆ”ถ (ไนฐๅ…ฅT+2ๆ—ฅๆ‰่ƒฝๆๅ–่‚กไปฝ)
+ ไฝ†ไบคๆ˜“ๅฏT+0 (้ข„ไป˜ๅˆถๅบฆไธ‹)
+
+ๅ›žๆต‹ๅฝฑๅ“:
+ - ๆ— ๆถจ่ทŒๅœ โ†’ ๆž็ซฏๆณขๅŠจๅคง, ๆญขๆŸๆ›ด้‡่ฆ
+ - T+0 โ†’ ๆ—ฅๅ†…็ญ–็•ฅๅฏ่กŒ
+ - ๆตๅŠจๆ€งไฝŽ โ†’ ๅฐ็›˜่‚กๆป‘็‚นๅคง, ๅ†ฒๅ‡ปๆˆๆœฌ้œ€็บณๅ…ฅ
+```
+
+### ็พŽ่‚กไบคๆ˜“่ง„ๅˆ™
+
+```
+ไบคๆ˜“ๆ—ถ้—ด(ๅŒ—ไบฌๆ—ถ้—ด):
+ ๅคไปคๆ—ถ: 21:30-04:00
+ ๅ†ฌไปคๆ—ถ: 22:30-05:00
+ ็›˜ๅ‰: 16:00-21:30 / 17:00-22:30
+ ็›˜ๅŽ: 04:00-08:00 / 05:00-09:00
+
+PDT่ง„ๅˆ™(Pattern Day Trader):
+ ๆกไปถ: 5ไธชไบคๆ˜“ๆ—ฅๅ†…ๆ—ฅๅ†…ไบคๆ˜“(ๅฝ“ๆ—ฅๅผ€ๅนณ) โ‰ฅ 4ๆฌก
+ ่งฆๅ‘ๅŽ: ่ดฆๆˆท้œ€็ปดๆŒ โ‰ฅ $25,000 ไฝ™้ข
+ ไฝŽไบŽ$25,000: ่ดฆๆˆท่ขซ้™ๅˆถ90ๅคฉๅช่ƒฝๅนณไป“
+
+ ่ง„้ฟๆ–นๆณ•:
+ - ไฝฟ็”จ็Žฐ้‡‘่ดฆๆˆท(Cash Account, T+2ไบคๆ”ถ, ๆ— PDT้™ๅˆถไฝ†่ต„้‡‘ๆ•ˆ็އไฝŽ)
+ - ่ดฆๆˆท็ปดๆŒ > $25,000
+ - ๆŽงๅˆถๆ—ฅๅ†…ไบคๆ˜“้ข‘็އ < 4ๆฌก/5ๆ—ฅ
+
+็†”ๆ–ญๆœบๅˆถ:
+ Level 1: S&P 500ไธ‹่ทŒ 7% โ†’ ๆš‚ๅœ15ๅˆ†้’Ÿ (15:25ๅŽไธ่งฆๅ‘)
+ Level 2: S&P 500ไธ‹่ทŒ13% โ†’ ๆš‚ๅœ15ๅˆ†้’Ÿ (15:25ๅŽไธ่งฆๅ‘)
+ Level 3: S&P 500ไธ‹่ทŒ20% โ†’ ๅฝ“ๆ—ฅๅœๆญขไบคๆ˜“
+
+ ไธช่‚กLULD(Limit Up-Limit Down):
+ ๆถจ่ทŒๅน…่ถ…่ฟ‡ๅ‚่€ƒไปทยฑ5%(ๅคง็›˜่‚ก)/ยฑ10%(ๅฐ็›˜่‚ก) โ†’ ๆš‚ๅœ5ๅˆ†้’Ÿ
+
+RegSHO(ๅš็ฉบ่ง„ๅˆ™):
+ - Locate requirement: ๅš็ฉบๅ‰ๅฟ…้กป็กฎ่ฎคๅฏๅ€Ÿๅˆฐ่‚กไปฝ
+ - Close-out: ่ฟž็ปญ13ๅคฉๆ— ๆณ•ไบคๅ‰ฒ โ†’ ๅผบๅˆถๅนณไป“
+ - Short Sale Circuit Breaker: ไธช่‚ก่ทŒ>10% โ†’ ๅฝ“ๆ—ฅ+ๆฌกๆ—ฅๅช่ƒฝuptickๅš็ฉบ
+
+ๅ›žๆต‹ๅฝฑๅ“:
+ - ็พŽ่‚กๆ— ๆ—ฅๅธธๆถจ่ทŒๅœ โ†’ ไฝ†ๆœ‰LULDๆš‚ๅœ
+ - T+0ไบคๆ˜“(ไฟ่ฏ้‡‘่ดฆๆˆท) โ†’ ๆ—ฅๅ†…็ญ–็•ฅๅฏ่กŒ
+ - ็›˜ๅ‰็›˜ๅŽไบคๆ˜“้‡ไฝŽ, ๆป‘็‚นๅคง
+```
+
+### ๅŠ ๅฏ†่ดงๅธ็›‘็ฎก
+
+```
+ไธป่ฆๅธ‚ๅœบๆ”ฟ็ญ–(ๆˆช่‡ณ2026):
+ ไธญๅ›ฝๅคง้™†: ็ฆๆญขไบคๆ˜“ๆ‰€่ฟ่ฅๅ’ŒICO, ไฝ†ๆŒๆœ‰ไธ่ฟๆณ•
+ ้ฆ™ๆธฏ: VASP็‰Œ็…งๅˆถๅบฆ, ๅˆ่ง„ไบคๆ˜“ๆ‰€(HashKey็ญ‰)
+ ็พŽๅ›ฝ: SEC/CFTCๅŒ้‡็›‘็ฎก, BTC/ETH็Žฐ่ดงETFๅทฒ่Žทๆ‰น
+ ๆฌง็›Ÿ: MiCAๆณ•่ง„2024ๅนดๅ…จ้ข็”Ÿๆ•ˆ
+ ๆ—ฅๆœฌ: FSA็›‘็ฎก, ไบคๆ˜“ๆ‰€้œ€ๆณจๅ†Œ
+ ๆ–ฐๅŠ ๅก: MAS็›‘็ฎก, Payment Services Act
+
+็จณๅฎšๅธ็›‘็ฎก่ถ‹ๅŠฟ:
+ - USDT: ๅ‚จๅค‡้‡‘้€ๆ˜Žๅบฆไบ‰่ฎฎ, ้ƒจๅˆ†ๅœฐๅŒบ้™ๅˆถ
+ - USDC: ๅˆ่ง„ๆ€งๆ›ดๅฅฝ, Circleๅ—็พŽๅ›ฝ็›‘็ฎก
+ - ๅ„ๅ›ฝๆŽจ่ฟ›ๅคฎ่กŒๆ•ฐๅญ—่ดงๅธ(CBDC)ๅฏ่ƒฝๆ›ฟไปฃ
+
+DeFiๅˆ่ง„:
+ - ๅคง้ƒจๅˆ†DeFiๅ่ฎฎ็›ฎๅ‰ๅค„ไบŽ็›‘็ฎก็ฐ่‰ฒๅœฐๅธฆ
+ - ่ถ‹ๅŠฟ: ่ฆๆฑ‚ๅ‰็ซฏKYC, ้“พไธŠไบคๆ˜“ไป่‡ช็”ฑ
+ - ้ฃŽ้™ฉ: ๆ™บ่ƒฝๅˆ็บฆ้ฃŽ้™ฉไธๅ—ๆŠ•่ต„่€…ไฟๆŠคๆณ•่ฆ†็›–
+
+ๅ›žๆต‹ๅฝฑๅ“:
+ - ๅŠ ๅฏ†ๅธ‚ๅœบ7ร—24ไบคๆ˜“, ๆ— ไผ‘ๅธ‚
+ - ๆ— ๆถจ่ทŒๅœ้™ๅˆถ, ๆž็ซฏๆณขๅŠจๅฏ่พพ50%+/ๆ—ฅ
+ - ไบคๆ˜“ๆ‰€้—ดไปทๅทฎๅฏ่พพ1-3%(ๅฅ—ๅˆฉๆœบไผšไฝ†ไนŸๆœ‰้ฃŽ้™ฉ)
+ - OKX็ญ‰ไธปๆตๆ‰€ๆ ๆ†ๆœ€้ซ˜125x(ๅˆ็บฆ), ๅ›žๆต‹้œ€ๆญฃ็กฎ่ฎก็ฎ—็ˆ†ไป“ไปท
+```
+
+## ๅˆ†ๆžๆก†ๆžถ
+
+### 1. ๅ›žๆต‹่ง„ๅˆ™็บฆๆŸ็Ÿฉ้˜ต
+
+```
+| ่ง„ๅˆ™ | A่‚ก | ๆธฏ่‚ก | ็พŽ่‚ก | ๅŠ ๅฏ†(OKX) |
+|------|-----|------|------|-----------|
+| ๆถจ่ทŒๅœ | ยฑ10/20/30% | ๆ—  | LULDๆš‚ๅœ | ๆ—  |
+| T+N | T+1 | T+0 | T+0(ไฟ่ฏ้‡‘) | T+0 |
+| ๅš็ฉบ | ่žๅˆธ(่ดต) | ๅฎนๆ˜“ | ๅฎนๆ˜“ | ๆฐธ็ปญๅˆ็บฆ |
+| ไบคๆ˜“ๆ—ถ้—ด | 4h/ๆ—ฅ | 5.5h/ๆ—ฅ | 6.5h/ๆ—ฅ | 24/7 |
+| ๆ‰‹็ปญ่ดน | 0.025%+ๅฐ่Šฑ็จŽ0.05% | 0.03%+ๅฐ่Šฑ็จŽ0.1% | $0(้ƒจๅˆ†) | 0.02-0.05% |
+| ๆœ€ๅฐไบคๆ˜“ๅ•ไฝ | 100่‚ก | 1ๆ‰‹(ไธ็ญ‰) | 1่‚ก | 0.001BTC |
+```
+
+### 2. ่ทจๅธ‚ๅœบ็ญ–็•ฅ็š„ๅˆ่ง„ๆฃ€ๆŸฅ
+
+```
+ๆฃ€ๆŸฅๆธ…ๅ•:
+ โ–ก ไบคๆ˜“ๆ—ถ้—ดๆ˜ฏๅฆ้‡ๅ (ๆ—ถๅŒบ่ฝฌๆข)
+ โ–ก ๅ„ๅธ‚ๅœบๅ‡ๆœŸๅทฎๅผ‚(A่‚กๆ˜ฅ่Š‚/ๅ›ฝๅบ† vs ็พŽ่‚กๅœฃ่ฏž/ๆ„Ÿๆฉ่Š‚)
+ โ–ก ๆฑ‡็އ้ฃŽ้™ฉๆ˜ฏๅฆ็บณๅ…ฅ(ไบบๆฐ‘ๅธ/ๆธฏๅธ/็พŽๅ…ƒ/USDT)
+ โ–ก ๅš็ฉบๅฏ่กŒๆ€ง(A่‚ก็ญ–็•ฅไธญๅš็ฉบไฟกๅท่ƒฝๅฆๆ‰ง่กŒ)
+ โ–ก ๆœ€ๅฐไบคๆ˜“ๅ•ไฝ็บฆๆŸ(A่‚ก100่‚กๆ•ดๆ‰‹ โ†’ ๅฐ่ต„้‡‘ๅฏ่ƒฝๆ— ๆณ•็ฒพ็กฎ้…ๆฏ”)
+ โ–ก ๅฐ่Šฑ็จŽ/่ฏ็ฎก่ดน็ญ‰้šๅซๆˆๆœฌๆ˜ฏๅฆ็บณๅ…ฅ
+
+A่‚ก็œŸๅฎžไบคๆ˜“ๆˆๆœฌ:
+ ไฝฃ้‡‘: 0.025% (ไธ‡2.5, ๆœ€ไฝŽ5ๅ…ƒ/็ฌ”)
+ ๅฐ่Šฑ็จŽ: 0.05% (ๅ–ๅ‡บๆ—ถ, 2023ๅนดๅ‡ๅŠ)
+ ่ฟ‡ๆˆท่ดน: 0.001%
+ ่ง„่ดน: 0.00687%
+ ๅˆ่ฎก(ๅ•่พน): ็บฆ0.08%
+ ๅˆ่ฎก(ๅŒ่พน): ็บฆ0.16%
+
+ ๅฝฑๅ“: ๆœˆๆขๆ‰‹1ๆฌก โ†’ ๅนดๅŒ–ๆˆๆœฌ็บฆ1.9%
+ ๆœˆๆขๆ‰‹4ๆฌก โ†’ ๅนดๅŒ–ๆˆๆœฌ็บฆ7.7%
+```
+
+### 3. ็จŽๅŠกๅฝฑๅ“
+
+```
+A่‚ก:
+ ่‚ก็ฅจไนฐๅ–: ๅ…ไธชไบบๆ‰€ๅพ—็จŽ๏ผˆ2024ๅนด็ปง็ปญๅ…ๅพ๏ผ‰
+ ่‚กๆฏ็จŽ: ๆŒๆœ‰>1ๅนดๅ…็จŽ; 1ไธชๆœˆ-1ๅนด=10%; <1ไธชๆœˆ=20%
+ ๅŸบ้‡‘ๅˆ†็บข: ๅ…ไธชไบบๆ‰€ๅพ—็จŽ
+
+ ๅ›žๆต‹ๅฝฑๅ“: ้ซ˜่‚กๆฏ็ญ–็•ฅ้œ€่€ƒ่™‘ๆŒๆœ‰ๆœŸ็š„็จŽๅŠกๅทฎๅผ‚
+ ๅนดๅŒ–่‚กๆฏ5% ร— 20%็จŽ็އ = 1%็š„็จŽๅŠกๆ‹–็ดฏ๏ผˆ็ŸญๆœŸๆŒๆœ‰ๆ—ถ๏ผ‰
+
+ๆธฏ่‚ก(้€š่ฟ‡ๆธฏ่‚ก้€š):
+ ่‚กๆฏ็จŽ: 20%๏ผˆH่‚ก๏ผ‰ๆˆ– 10%๏ผˆ็บข็ญน/ๆฐ‘ไผ๏ผ‰
+ ่ต„ๆœฌๅˆฉๅพ—: ๅ…็จŽ
+ ๆณจๆ„: ๆธฏ่‚ก้€š่‚กๆฏ็จŽ็”ฑไธญๅ›ฝ็ป“็ฎ—ไปฃๆ‰ฃ
+
+็พŽ่‚ก:
+ ่‚กๆฏ็จŽ: 10%(ไธญ็พŽ็จŽๆ”ถๅๅฎš)
+ ่ต„ๆœฌๅˆฉๅพ—: ็›ฎๅ‰ไธญๅ›ฝๅฑ…ๆฐ‘ๆš‚ๅ…, ไฝ†้œ€ๅ…ณๆณจๆ”ฟ็ญ–ๅ˜ๅŒ–
+ W-8BEN่กจๆ ผ: ๅˆธๅ•†่ฆๆฑ‚ๅกซๅ†™ไปฅไบซๅ—ๅๅฎš็จŽ็އ
+
+ๅŠ ๅฏ†่ดงๅธ:
+ ไธญๅ›ฝ: ๆš‚ๆ— ๆ˜Ž็กฎ็จŽๆ”ถ่ง„ๅฎš๏ผˆไฝ†ๅคง้ขไบคๆ˜“ๅฏ่ƒฝ่ขซ่ฟฝๆบฏ๏ผ‰
+ ็พŽๅ›ฝ: ่ต„ๆœฌๅˆฉๅพ—็จŽ(็ŸญๆœŸ=ๆ™ฎ้€šๆ”ถๅ…ฅ็จŽ็އ, ้•ฟๆœŸ=0/15/20%)
+
+ ๅ›žๆต‹ๅฝฑๅ“: ๅฆ‚่ฎกๅ…ฅ็จŽๅŠก, ้ข‘็นไบคๆ˜“็ญ–็•ฅ็š„ๅ‡€ๆ”ถ็›Šไธ‹้™ๆ˜พ่‘—
+```
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+ๅˆ่ง„ๆฃ€ๆŸฅๆŠฅๅ‘Š๏ผš
+```
+=== ็ญ–็•ฅๅˆ่ง„ๆฃ€ๆŸฅ ===
+็ญ–็•ฅ: A่‚ก+ๆธฏ่‚ก ๅคš็ฉบ้…ๅฏนไบคๆ˜“
+ๆ ‡็š„: 600519.SH (่ดตๅทž่Œ…ๅฐ) + 0700.HK (่…พ่ฎฏ)
+
+=== ่ง„ๅˆ™็บฆๆŸ ===
+A่‚กๅš็ฉบ: ้œ€่žๅˆธ โ†’ 600519่žๅˆธ่ดน็އ็บฆ8%/ๅนด, ๅˆธๆบๆœ‰้™
+ๆธฏ่‚กๅš็ฉบ: 0700.HKๅš็ฉบๆˆๆœฌ็บฆ1.5%/ๅนด, ๅˆธๆบๅ……่ถณ
+T+Nๅทฎๅผ‚: A่‚กT+1 vs ๆธฏ่‚กT+0 โ†’ ้…ๅฏนไฟกๅทๆ‰ง่กŒๆœ‰ๆ—ถๅทฎ
+ๆถจ่ทŒๅœ: A่‚กยฑ10% ๅฏ่ƒฝ้˜ปๆญขๆญขๆŸๆ‰ง่กŒ
+ไบคๆ˜“ๆ—ถ้—ด: A่‚ก9:30-15:00 vs ๆธฏ่‚ก9:30-16:00 โ†’ 14:57-16:00ๆธฏ่‚กๅ•่พนๆšด้œฒ
+
+=== ๆˆๆœฌไผฐ็ฎ— ===
+A่‚กไบคๆ˜“ๆˆๆœฌ: 0.16%/ๅŒ่พน
+ๆธฏ่‚กไบคๆ˜“ๆˆๆœฌ: 0.26%/ๅŒ่พน (ๅซๅฐ่Šฑ็จŽ0.1%)
+่žๅˆธๆˆๆœฌ(A่‚ก): 8%/ๅนด
+่žๅˆธๆˆๆœฌ(ๆธฏ่‚ก): 1.5%/ๅนด
+ๆฑ‡็އๅฏนๅ†ฒๆˆๆœฌ: ็บฆ1%/ๅนด
+
+=== ๅปบ่ฎฎ ===
+1. A่‚ก็ซฏ็”จ่‚กๆŒ‡ๆœŸ่ดงๆ›ฟไปฃ่žๅˆธๅš็ฉบ โ†’ ๆˆๆœฌ้™่‡ณ2-3%/ๅนด
+2. ้…ๅฏนไบคๆ˜“ไฟกๅทๅœจ14:57ๅ‰ๆ‰ง่กŒA่‚ก็ซฏ, ๆธฏ่‚ก็ซฏๅฏๅปถ่ฟŸ
+3. ๆฑ‡็އ้ฃŽ้™ฉ: ไบบๆฐ‘ๅธ/ๆธฏๅธๆณขๅŠจ็บฆยฑ3%/ๅนด, ๅฐไบŽ็ญ–็•ฅ้ข„ๆœŸๆ”ถ็›Šๅˆ™ๅฏไธๅฏนๅ†ฒ
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **่ง„ๅˆ™ๅŠจๆ€ๅ˜ๅŒ–**๏ผš็›‘็ฎก่ง„ๅˆ™้ข‘็น่ฐƒๆ•ด๏ผˆๅฆ‚2023ๅนดๅฐ่Šฑ็จŽๅ‡ๅŠใ€่žๅˆธT+0้™ๅˆถ๏ผ‰๏ผŒๅ›žๆต‹้œ€ๆŒ‰ๅކๅฒๆ—ถ็‚นไฝฟ็”จๅฏนๅบ”่ง„ๅˆ™
+2. **ๅ›žๆต‹ vs ๅฎž็›˜ๅทฎ่ท**๏ผšๆถจ่ทŒๅœๅฐๆฟๆ— ๆณ•ๆˆไบคๆ˜ฏๅ›žๆต‹ๆœ€ๅคงๅคฑ็œŸๆฅๆบ๏ผŒ้ซ˜ๆขๆ‰‹็ญ–็•ฅ้œ€ไธฅๆ ผๅปบๆจก
+3. **A่‚ก็‰นๆฎŠๆ—ถๆฎต**๏ผš้›†ๅˆ็ซžไปท9:15-9:25ๅ’Œๅฐพ็›˜14:57-15:00่ง„ๅˆ™ไธŽ่ฟž็ปญ็ซžไปทไธๅŒ๏ผŒไฟกๅทๆ‰ง่กŒ้œ€ๅŒบๅˆ†
+4. **่ทจๅธ‚ๅœบๅ‡ๆœŸ**๏ผšA่‚กๆ˜ฅ่Š‚ไผ‘ๅธ‚็บฆ10ๅคฉ๏ผŒๆœŸ้—ดๆธฏ็พŽ่‚กๅ’ŒๅŠ ๅฏ†ๅธ‚ๅœบๆญฃๅธธไบคๆ˜“๏ผŒ้œ€ๅค„็†ไฟกๅทไธญๆ–ญ
+5. **็›‘็ฎก้ฃŽ้™ฉๆบขไปท**๏ผšๅŠ ๅฏ†ๅธ‚ๅœบๆ”ฟ็ญ–ไธ็กฎๅฎšๆ€งๆœฌ่บซๆ˜ฏ้ฃŽ้™ฉๅ› ๅญ๏ผŒๅบ”ๅœจ็ญ–็•ฅไธญ็บณๅ…ฅ
+6. **ๅˆธๅ•†ๅทฎๅผ‚**๏ผšไธๅŒๅˆธๅ•†็š„ไฝฃ้‡‘็އใ€่žๅˆธ่ดน็އใ€็ณป็ปŸๅปถ่ฟŸๅทฎๅผ‚ๆ˜พ่‘—๏ผŒๅ›žๆต‹ๅ‚ๆ•ฐๅบ”ๅ–ไฟๅฎˆๅ€ผ
+
+## ไพ่ต–
+
+```bash
+pip install pandas numpy
+```
diff --git a/agent/src/skills/report-generate/SKILL.md b/agent/src/skills/report-generate/SKILL.md
new file mode 100644
index 000000000..659195aee
--- /dev/null
+++ b/agent/src/skills/report-generate/SKILL.md
@@ -0,0 +1,260 @@
+---
+name: report-generate
+description: Professional financial research report generation โ€” standard structure (summary / views / main body / risks / recommendation), Markdown formatting standards, rating system, and terminology guide.
+---
+
+# Professional Research Report Generation
+
+## Overview
+
+Generate structured, professional-grade financial research reports. Follow the conventions used by securities firms and asset managers, and output complete Markdown reports that can be used directly for investment research reference.
+
+## Report Types and Structure
+
+### Type Classification
+
+| Type | Length | Core Content | Trigger Scenario |
+|------|------|---------|---------|
+| Deep-dive stock report | 3000-5000 words | Company analysis + valuation + rating | "Analyze stock XX" |
+| Industry research | 2000-4000 words | Industry structure + trend + recommended names | "How is sector XX?" |
+| Strategy report | 1500-3000 words | Macro + strategy + allocation recommendation | "What is the market outlook?" |
+| Backtest report | 1000-2000 words | Strategy performance + risk + improvement suggestions | After a backtest is completed |
+| Flash comment / note | 500-1000 words | Event commentary + impact + action suggestion | "How should we view event XX?" |
+
+### Standard Structure Template
+
+```markdown
+# [Report Title]
+
+> **Rating**: Buy | **Target Price**: ยฅXX | **Current Price**: ยฅXX
+> **Analyst**: Vibe-Trading | **Date**: 2026-03-28
+
+## Summary
+
+3-5 key points, each 1-2 sentences, covering the core conclusion.
+Use explicit language such as bullish / bearish / neutral. Do not be vague.
+
+## Core Views
+
+### View 1: [One-line heading]
+2-3 paragraphs of discussion, supported by data.
+
+### View 2: [One-line heading]
+2-3 paragraphs of discussion, supported by data.
+
+### View 3: [One-line heading]
+2-3 paragraphs of discussion, supported by data.
+
+## Main Analysis
+
+### [Section 1: for example Industry analysis / Company fundamentals / Strategy logic]
+Detailed analysis...
+
+### [Section 2: for example Financial analysis / Competitive landscape / Backtest results]
+Detailed analysis...
+
+### [Section 3: for example Valuation analysis / Catalysts / Risk-reward]
+Detailed analysis...
+
+## Data Appendix
+
+Key data tables...
+
+## Risk Warnings
+
+1. [Risk 1]: specific description + trigger condition + impact level
+2. [Risk 2]: ...
+3. [Risk 3]: ...
+
+## Investment Recommendation
+
+Clear action recommendation, including direction, position size, and time horizon.
+
+---
+*Disclaimer: This report is generated by an AI quantitative system for research reference only and does not constitute investment advice.*
+```
+
+## Rating System
+
+### Equity Ratings
+
+| Rating | Definition | Expected Return (12 months) | Use Case |
+|------|------|-----------------|---------|
+| Strong Buy | Clearly bullish, high conviction | >30% | Undervalued + catalyst + favorable trend |
+| Buy | Bullish, reasonably high conviction | 15%-30% | Improving fundamentals + fair valuation |
+| Neutral | No clear directional edge | -5%~15% | Fair valuation but lacks catalysts |
+| Avoid | Bearish | <-5% | Overvaluation / deteriorating fundamentals |
+
+### Strategy Ratings
+
+| Rating | Definition | Applicable Standard |
+|------|------|------|
+| High allocation priority | Excellent risk-reward profile | Sharpe > 1.5, max drawdown < 20% |
+| Allocatable | Good risk-reward profile | Sharpe > 1.0, max drawdown < 30% |
+| Watch | Needs more validation | Sharpe 0.5-1.0 |
+| Not recommended | Poor risk-reward profile | Sharpe < 0.5 or drawdown > 40% |
+
+## Markdown Formatting Standards
+
+### Heading Hierarchy
+
+```
+# H1: Report title (only one)
+## H2: Main sections (summary / views / body / risks / recommendation)
+### H3: Subsections
+#### H4: Maximum depth; use bold text instead of deeper nesting
+```
+
+### Table Standards
+
+```markdown
+| Metric | 2024A | 2025E | 2026E | Notes |
+|------|-------|-------|-------|------|
+| Revenue (100m RMB) | 500.2 | 580.0 | 660.0 | +15% YoY |
+| Net profit (100m RMB) | 45.3 | 55.0 | 65.0 | +22% YoY |
+| PE(TTM) | 25.0x | 20.5x | 17.3x | Valuation compressing |
+```
+
+**Table rules**:
+- Right-align numbers where possible (when Markdown cannot do so, at least keep visual alignment clean)
+- Put units in the header (`100m / 10k / RMB`)
+- Forecast values use `E` (`2025E`), actual values use `A` (`2024A`)
+- Keep 1 decimal place for percentages and 1-2 decimal places for monetary values
+
+### Number Formatting Standards
+
+| Type | Format | Example |
+|------|------|------|
+| Percentage | `X.X%` | Return `12.5%` |
+| Large amount | `X,XXX.Xไบฟ` | Market cap `1,234.5ไบฟ` |
+| Small amount | `X.XXๅ…ƒ` | Stock price `25.80ๅ…ƒ` |
+| Multiple | `X.Xx` | PE `20.5x` |
+| Date | `YYYY-MM-DD` | `2026-03-28` |
+| Time range | `YYYY.MM-YYYY.MM` | `2024.01-2025.03` |
+
+### Chart Substitute (Text Description + Data Table)
+
+Since Markdown output cannot embed images, use the following substitute:
+
+```markdown
+### Equity Curve
+
+The strategy equity started at 1.00 in 2020-01, peaked at 1.85 in 2021-02,
+then suffered its largest drawdown from 2022.04 to 2022.10 (-25.3%), and
+recovered by 2023.06 to a new high of 2.10.
+
+| Time Point | Equity | Cumulative Return | Phase Event |
+|---------|------|---------|---------|
+| 2020-01 | 1.00 | 0% | Start |
+| 2021-02 | 1.85 | +85% | Bull-market peak |
+| 2022-10 | 1.38 | +38% | Drawdown low |
+| 2023-06 | 2.10 | +110% | Recovery to new high |
+| 2024-12 | 2.45 | +145% | Latest |
+```
+
+## Professional Terminology Guide
+
+### Terms You Should Use (to improve professionalism)
+
+| Scenario | Professional Expression | Avoid |
+|------|---------|---------|
+| Price down | pullback / correction / drawdown | dropped / fell |
+| Price up | strengthened / rebounded / recovered / climbed | rose / went up |
+| Uncertainty | uncertainty remains / needs monitoring | hard to say / cannot tell |
+| Recommend buying | recommend overweight / add | buy now |
+| Recommend selling | recommend underweight / avoid | sell now |
+| Undervalued | valuation offers a margin of safety | cheap |
+| Expensive | valuation premium is elevated | expensive |
+| Trend favorable | conditions are improving / trend is constructive | market looks okay |
+
+### Common Abbreviations
+
+| Abbreviation | Full Name | Chinese Meaning |
+|------|------|------|
+| YoY | Year over Year | ๅŒๆฏ” |
+| QoQ | Quarter over Quarter | ็Žฏๆฏ” |
+| MoM | Month over Month | ๆœˆ็Žฏๆฏ” |
+| TTM | Trailing Twelve Months | ๆปšๅŠจ12ไธชๆœˆ |
+| CAGR | Compound Annual Growth Rate | ๅคๅˆๅขž้•ฟ็އ |
+| ROE | Return on Equity | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ |
+| EPS | Earnings Per Share | ๆฏ่‚กๆ”ถ็›Š |
+| FCF | Free Cash Flow | ่‡ช็”ฑ็Žฐ้‡‘ๆต |
+
+## Backtest Report Template
+
+After a backtest is completed, read `metrics.csv` and `equity.csv` to generate:
+
+```markdown
+# Backtest Report: [Strategy Name]
+
+## Strategy Overview
+- **Strategy type**: momentum / mean reversion / multi-factor / ...
+- **Instruments**: 000001.SZ, 600519.SH, ...
+- **Backtest period**: 2016-01-01 to 2026-01-01
+- **Initial capital**: ยฅ1,000,000
+
+## Performance Summary
+
+| Metric | Strategy | Benchmark (CSI 300) | Excess |
+|------|------|-------------|------|
+| Cumulative return | +145.2% | +35.6% | +109.6% |
+| Annualized return | 9.8% | 3.2% | +6.6% |
+| Sharpe | 1.25 | 0.45 | - |
+| Max drawdown | -18.5% | -32.4% | - |
+| Calmar | 0.53 | 0.10 | - |
+| Win rate | 58.3% | - | - |
+| Trade count | 245 | - | - |
+
+## Annual Performance
+
+| Year | Return | Benchmark | Excess | Max Drawdown |
+|------|------|------|------|---------|
+| 2016 | +12.3% | -8.5% | +20.8% | -8.2% |
+| ... | ... | ... | ... | ... |
+
+## Risk Analysis
+[Insert output from the `risk-analysis` skill]
+
+## Improvement Suggestions
+1. Specific suggestion 1...
+2. Specific suggestion 2...
+
+## Rating: Allocatable
+Sharpe > 1.0 and max drawdown < 20%, indicating a good risk-reward profile.
+```
+
+## Analysis Framework
+
+### Preparation Before Writing
+
+1. **Clarify the report type**: stock / industry / strategy / backtest / flash note
+2. **Collect data**: backtest results, fundamentals, industry data
+3. **Determine the core view**: decide the conclusion first, then organize the supporting arguments
+4. **Choose the rating**: based on quantitative metrics + qualitative judgment
+
+### Writing Principles
+
+1. **Put the conclusion first**: the summary should contain the most important views, without too much buildup
+2. **Let data speak**: every view should have at least one supporting data point
+3. **Keep logic clear**: because A (data) โ†’ therefore B (judgment) โ†’ recommendation C (action)
+4. **Argue both sides**: even in bullish reports, discuss risks; even in bearish reports, mention possible catalysts
+5. **Be actionable**: recommendations should specify instruments / position sizing / time frame
+
+## Output Format
+
+Output the complete Markdown research report directly, following the template structure above. Ensure that:
+- it has a clear rating
+- it is supported by quantitative data
+- it includes at least 3 risk warnings
+- it contains concrete action recommendations
+- it ends with a disclaimer
+
+## Notes
+
+1. **Do not make overly precise forecasts**: use ranges rather than single points (`target price 25-30 RMB` instead of `target price 27.5 RMB`)
+2. **Data consistency**: all quoted numbers must be consistent throughout the report and never contradict each other
+3. **Mark timeliness**: state both the data cut-off date and the report generation date
+4. **Disclaimer is mandatory**: AI-generated reports must explicitly state that they are not investment advice
+5. **Avoid absolutes**: "likely" is better than "certain", and "may" is better than "will"
+6. **China A-share specific risks**: policy risk / delisting risk / goodwill impairment / major-shareholder selling / lock-up expiry
+7. **Crypto-specific risks**: regulation / smart-contract exploits / liquidity risk / rug pulls
diff --git a/agent/src/skills/risk-analysis/SKILL.md b/agent/src/skills/risk-analysis/SKILL.md
new file mode 100644
index 000000000..44cfad65d
--- /dev/null
+++ b/agent/src/skills/risk-analysis/SKILL.md
@@ -0,0 +1,313 @@
+---
+name: risk-analysis
+description: Risk measurement and stress testing โ€” VaR/CVaR/max drawdown calculation, Monte Carlo simulation, extreme-value tail-risk analysis, and historical scenario stress testing.
+---
+
+# Risk Measurement and Stress Testing
+
+## Overview
+
+Systematic risk-measurement methodology covering VaR/CVaR calculation, Monte Carlo simulation, stress-test design, and tail-risk analysis. It provides risk evaluation for backtest results and risk-control constraints for asset allocation.
+
+## Risk Measurement Methods
+
+### 1. VaR (Value at Risk)
+
+**Definition**: the maximum expected loss over a given horizon at a specified confidence level.
+
+#### Three Calculation Methods
+
+| Method | Formula / Steps | Advantages | Disadvantages |
+|------|----------|------|------|
+| Historical simulation | Sort historical returns and take the quantile | No distribution assumption | Depends on historical samples |
+| Parametric (normal) | `VaR = ฮผ - z_ฮฑ ร— ฯƒ` | Easy to compute | Assumes a normal distribution |
+| Monte Carlo | Simulate N paths and take the quantile | Flexible | Computationally intensive |
+
+#### Historical Simulation Implementation
+
+```python
+import numpy as np
+import pandas as pd
+
+def historical_var(returns: pd.Series, confidence: float = 0.95, horizon: int = 1) -> float:
+ """
+ Args:
+ returns: Daily return series
+ confidence: Confidence level, commonly 0.95 or 0.99
+ horizon: Holding period in days, default 1
+ Returns:
+ VaR value (positive means loss)
+ """
+ sorted_returns = returns.sort_values()
+ index = int((1 - confidence) * len(sorted_returns))
+ var_1d = -sorted_returns.iloc[index]
+ return var_1d * np.sqrt(horizon) # square-root-of-time rule
+```
+
+#### Parametric Implementation
+
+```python
+from scipy.stats import norm
+
+def parametric_var(returns: pd.Series, confidence: float = 0.95, horizon: int = 1) -> float:
+ mu = returns.mean()
+ sigma = returns.std()
+ z = norm.ppf(1 - confidence)
+ var_1d = -(mu + z * sigma)
+ return var_1d * np.sqrt(horizon)
+```
+
+### 2. CVaR / ES (Conditional VaR / Expected Shortfall)
+
+**Definition**: the average loss beyond the VaR threshold, more conservative than VaR.
+
+```python
+def historical_cvar(returns: pd.Series, confidence: float = 0.95) -> float:
+ """CVaR = the mean of all losses beyond VaR."""
+ var = historical_var(returns, confidence)
+ tail_losses = returns[returns < -var]
+ return -tail_losses.mean() if len(tail_losses) > 0 else var
+```
+
+**VaR vs CVaR comparison**:
+
+| Metric | VaR(95%) | CVaR(95%) | Meaning |
+|------|----------|-----------|------|
+| Typical value | -2.1% | -3.4% | CVaR is usually 1.3-1.8x VaR |
+| Subadditivity | Not satisfied | Satisfied | CVaR can be used for portfolio risk decomposition |
+| Regulation | Basel II | Basel III | Regulatory trend is shifting toward CVaR |
+
+### 3. Maximum Drawdown Analysis
+
+```python
+def max_drawdown_analysis(equity: pd.Series) -> dict:
+ """
+ Args:
+ equity: Net-value series
+ Returns:
+ dict: max_drawdown, peak_date, trough_date, recovery_date, duration
+ """
+ peak = equity.cummax()
+ drawdown = (equity - peak) / peak
+ max_dd = drawdown.min()
+ trough_idx = drawdown.idxmin()
+ peak_idx = equity[:trough_idx].idxmax()
+
+ # Recovery date
+ recovery = equity[trough_idx:][equity[trough_idx:] >= equity[peak_idx]]
+ recovery_date = recovery.index[0] if len(recovery) > 0 else None
+
+ return {
+ 'max_drawdown': max_dd,
+ 'peak_date': peak_idx,
+ 'trough_date': trough_idx,
+ 'recovery_date': recovery_date,
+ 'underwater_days': (trough_idx - peak_idx).days,
+ 'recovery_days': (recovery_date - trough_idx).days if recovery_date else None
+ }
+```
+
+### 4. Monte Carlo Simulation
+
+#### Geometric Brownian Motion (GBM)
+
+```python
+def monte_carlo_gbm(S0: float, mu: float, sigma: float,
+ T: int = 252, n_paths: int = 10000) -> np.ndarray:
+ """
+ Args:
+ S0: Initial price
+ mu: Annualized return
+ sigma: Annualized volatility
+ T: Number of simulation days
+ n_paths: Number of paths
+ Returns:
+ Price matrix of shape (n_paths, T)
+ """
+ dt = 1 / 252
+ Z = np.random.standard_normal((n_paths, T))
+ log_returns = (mu - 0.5 * sigma**2) * dt + sigma * np.sqrt(dt) * Z
+ prices = S0 * np.exp(np.cumsum(log_returns, axis=1))
+ return prices
+```
+
+#### Simulation Result Analysis
+
+```python
+def analyze_mc_results(paths: np.ndarray, confidence: float = 0.95) -> dict:
+ final_prices = paths[:, -1]
+ returns = final_prices / paths[:, 0] - 1
+
+ return {
+ 'mean_return': np.mean(returns),
+ 'median_return': np.median(returns),
+ 'std_return': np.std(returns),
+ 'var': -np.percentile(returns, (1 - confidence) * 100),
+ 'cvar': -np.mean(returns[returns < -np.percentile(returns, (1-confidence)*100)]),
+ 'prob_loss': np.mean(returns < 0),
+ 'worst_5pct': np.percentile(returns, 5),
+ 'best_5pct': np.percentile(returns, 95),
+ }
+```
+
+## Stress-Testing Framework
+
+### Historical Scenario Stress Tests
+
+| Scenario | Period | China A-share Drawdown | US Equity Drawdown | BTC Drawdown | 10Y Government Bonds |
+|------|--------|---------|---------|---------|---------|
+| 2008 financial crisis | 2008.01-2008.10 | -65% | -50% | N/A | yield โ†“ 100bp |
+| 2015 China equity crash | 2015.06-2015.08 | -45% | -10% | -20% | yield โ†“ 50bp |
+| 2018 trade war | 2018.01-2018.12 | -25% | -20% | -80% | yield โ†“ 30bp |
+| 2020 COVID shock | 2020.01-2020.03 | -15% | -35% | -50% | yield โ†“ 80bp |
+| 2022 hiking cycle | 2022.01-2022.10 | -20% | -25% | -65% | yield โ†‘ 200bp |
+
+### Hypothetical Scenario Design
+
+```python
+STRESS_SCENARIOS = {
+ 'rate_shock_up_100bp': {
+ 'equity': -0.10, # equities down 10%
+ 'bond_10y': -0.08, # 10-year bonds down 8%
+ 'bond_2y': -0.02, # short bonds down 2%
+ 'gold': +0.05, # gold up 5%
+ 'btc': -0.15, # BTC down 15%
+ },
+ 'credit_crisis': {
+ 'equity': -0.25,
+ 'bond_10y': +0.05, # government bonds act as a safe haven
+ 'credit_bond': -0.15,
+ 'gold': +0.10,
+ 'btc': -0.30,
+ },
+ 'liquidity_dry_up': {
+ 'equity': -0.20,
+ 'bond_10y': -0.05, # when liquidity is poor, everything falls
+ 'gold': -0.05,
+ 'btc': -0.40,
+ 'cash': 0.0,
+ },
+ 'geopolitical_conflict': {
+ 'equity': -0.15,
+ 'bond_10y': +0.03,
+ 'gold': +0.15,
+ 'oil': +0.30,
+ 'btc': -0.20,
+ },
+}
+```
+
+### Stress-Test Implementation Steps
+
+1. **Select a scenario**: either historical or hypothetical
+2. **Apply shocks**: multiply scenario shocks by the current positions
+3. **Compute portfolio loss**: `portfolio_loss = ฮฃ(weight_i ร— shock_i ร— position_i)`
+4. **Assess adequacy**: compare loss vs risk budget and whether stop-loss thresholds are triggered
+
+## Tail-Risk Analysis (Extreme Value Theory, EVT)
+
+### POT Method (Peaks Over Threshold)
+
+```python
+from scipy.stats import genpareto
+
+def fit_gpd_tail(returns: pd.Series, threshold_pct: float = 5.0) -> dict:
+ """
+ Fit the tail with a generalized Pareto distribution.
+ Args:
+ returns: Daily returns
+ threshold_pct: Threshold percentile (take the worst X%)
+ """
+ threshold = np.percentile(returns, threshold_pct)
+ exceedances = threshold - returns[returns < threshold] # make positive
+
+ # Fit GPD
+ shape, loc, scale = genpareto.fit(exceedances)
+
+ return {
+ 'threshold': threshold,
+ 'n_exceedances': len(exceedances),
+ 'shape_xi': shape, # ฮพ>0 fat tail, ฮพ=0 exponential tail, ฮพ<0 bounded tail
+ 'scale_sigma': scale,
+ 'tail_type': 'fat tail (dangerous)' if shape > 0 else 'thin tail (safer)',
+ }
+```
+
+### Tail-Risk Metrics
+
+| Metric | Calculation | Meaning |
+|------|------|------|
+| Kurtosis | `returns.kurtosis()` | >3 indicates fat tails; China A-shares are often in the 4-8 range |
+| Skewness | `returns.skew()` | <0 means left-skewed (large drops are more common than large rallies) |
+| Tail ratio | worst 5% / best 5% | >1 means larger downside risk |
+| Hill estimator | Tail index | `ฮฑ<2` implies extremely fat tails |
+
+## Analysis Framework
+
+### Input Requirements
+
+```
+Required:
+- Return series (daily or higher frequency) or net-value series
+- Portfolio weights (if it is a portfolio)
+
+Optional:
+- Benchmark returns (for relative risk analysis)
+- Risk budget / constraint settings
+```
+
+### Analysis Steps
+
+1. **Data preprocessing**: compute returns, check missing values, and handle outliers
+2. **Descriptive statistics**: mean / volatility / skewness / kurtosis / maximum drawdown
+3. **VaR/CVaR calculation**: compare three methods at both 95% and 99% confidence levels
+4. **Monte Carlo simulation**: 10,000 paths, output distribution statistics and VaR
+5. **Stress testing**: at least 3 historical scenarios + 2 hypothetical scenarios
+6. **Tail analysis**: fit GPD and determine tail type
+7. **Risk-control recommendations**: provide concrete recommendations based on the results
+
+## Output Format
+
+```markdown
+## Risk Analysis Report
+
+### Core Risk Metrics
+| Metric | Value |
+|------|-----|
+| Daily volatility | 1.85% |
+| Annualized volatility | 29.3% |
+| Maximum drawdown | -32.5% (2024.09.15 โ†’ 2024.11.20) |
+| VaR(95%, 1D) | -2.8% |
+| CVaR(95%, 1D) | -4.2% |
+| Skewness | -0.45 |
+| Kurtosis | 5.2 (fat tail) |
+
+### Stress-Test Results
+| Scenario | Portfolio Loss | Stop Triggered |
+|------|---------|----------|
+| 2020 COVID replay | -18.5% | No |
+| Rates +100bp | -12.3% | No |
+| Liquidity dry-up | -28.7% | Yes |
+
+### Monte Carlo Simulation (252 days, 10000 paths)
+| Statistic | Value |
+|------|-----|
+| Expected return | +8.2% |
+| Loss probability | 35% |
+| Worst 5% scenario | -22.4% |
+
+### Risk-Control Recommendations
+1. Recommend setting a portfolio stop-loss at -15%
+2. Tail risk is elevated; consider allocating 5% to gold as a hedge
+3. Correlations rise in stressed markets, so diversification benefits will be discounted
+```
+
+## Notes
+
+1. **VaR is not the maximum loss**: VaR only says "with 95% probability, losses will not exceed X"; the remaining 5% can be far worse
+2. **Normality assumption is dangerous**: financial returns are almost always fat-tailed, so parametric VaR underestimates risk
+3. **History does not equal the future**: historical simulation fails when structural breaks occur (for example, the first negative oil price)
+4. **Correlation is unstable**: correlation matrices observed in normal markets can collapse in crises (correlations trend toward 1)
+5. **Monte Carlo seed**: set a random seed for reproducibility, and use at least 10,000 paths for stability
+6. **Holding-period scaling**: the square-root-of-time rule only applies under i.i.d. returns; it becomes inaccurate under autocorrelation
+7. **Risk in backtests**: `metrics.csv` already includes `max_drawdown` and `sharpe`; this skill provides deeper analysis
diff --git a/agent/src/skills/seasonal/SKILL.md b/agent/src/skills/seasonal/SKILL.md
new file mode 100644
index 000000000..e5815fcc9
--- /dev/null
+++ b/agent/src/skills/seasonal/SKILL.md
@@ -0,0 +1,63 @@
+---
+name: seasonal
+description: Seasonal/calendar-effect strategy. Generates trading signals from time-based patterns such as month-of-year effects and day-of-week effects. Suitable for any OHLCV data.
+---
+# Seasonal / Calendar Effect Strategy
+
+## Purpose
+
+Uses time-based regularities in financial markets (month effects, day-of-week effects, and similar patterns) to generate trading signals. Examples include the China A-share "spring rally" (January-March) and the "sell in May" effect.
+
+## Signal Logic
+
+### Month Effect (Default)
+
+- Specified bullish months โ†’ go long
+- Specified bearish months โ†’ go short / stay out
+- All other months โ†’ stay flat
+
+### Day-of-Week Effect (Optional Overlay)
+
+- Monday / Friday effects
+- Start-of-month / end-of-month effects
+
+### Combined Mode
+
+Month signal ร— weekday signal; open a position only when both confirm.
+
+## Common Calendar Effects Reference
+
+| Effect | Description | Reference Configuration |
+|------|------|---------|
+| Spring rally | Higher probability of gains in China A-shares from January to March | bullish_months=[1,2,3] |
+| Sell in May | Weaker performance from May to October | bearish_months=[5,6,7,8,9,10] |
+| Year-end effect | Institutional rebalancing in December | bullish_months=[11,12] |
+| Monday effect | Lower returns on Mondays | bearish_weekdays=[0] |
+| Friday effect | Higher returns on Fridays | bullish_weekdays=[4] |
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| bullish_months | [1, 2, 3, 11, 12] | Bullish months |
+| bearish_months | [5, 6, 7, 8, 9] | Bearish months |
+| use_weekday | False | Whether to enable weekday effects |
+| bullish_weekdays | [4] | Bullish weekdays (0=Monday, 4=Friday) |
+| bearish_weekdays | [0] | Bearish weekdays |
+
+## Common Pitfalls
+
+- `pd.DatetimeIndex.month` starts from 1 (1=January)
+- `pd.DatetimeIndex.weekday` starts from 0 (0=Monday, 4=Friday)
+- Seasonal strategies are statistical regularities, not deterministic signals, so pay attention to sample size in backtests
+- Neutral months (neither in `bullish` nor `bearish`) should output 0 and must not be skipped
+
+## Dependencies
+
+```bash
+pip install pandas numpy
+```
+
+## Signal Convention
+
+- `1` = long (bullish window), `-1` = short (bearish window), `0` = stand aside
diff --git a/agent/src/skills/seasonal/example_signal_engine.py b/agent/src/skills/seasonal/example_signal_engine.py
new file mode 100644
index 000000000..c80b86bfe
--- /dev/null
+++ b/agent/src/skills/seasonal/example_signal_engine.py
@@ -0,0 +1,145 @@
+"""ๅญฃ่Š‚ๆ€ง/ๆ—ฅๅކๆ•ˆๅบ”็ญ–็•ฅไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽๆœˆไปฝๆ•ˆๅบ”ใ€ๅ‘จๅ†…ๆ•ˆๅบ”็ญ‰ๆ—ถ้—ด่ง„ๅพ‹็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+็บฏ pandas ๅฎž็Žฐ๏ผŒ้€‚็”จไบŽไปปไฝ• OHLCV ๆ•ฐๆฎใ€‚
+"""
+
+from typing import Dict, List
+
+import numpy as np
+import pandas as pd
+
+
+class SignalEngine:
+ """ๅญฃ่Š‚ๆ€งๆ—ฅๅކๆ•ˆๅบ”ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ๆ นๆฎๆœˆไปฝๅ’Œๅ‘จๅ†…ๆ•ˆๅบ”็”Ÿๆˆๅšๅคš/ๅš็ฉบไฟกๅทใ€‚
+
+ Attributes:
+ bullish_months: ็œ‹ๅคšๆœˆไปฝๅˆ—่กจใ€‚
+ bearish_months: ็œ‹็ฉบๆœˆไปฝๅˆ—่กจใ€‚
+ use_weekday: ๆ˜ฏๅฆๅฏ็”จๅ‘จๅ†…ๆ•ˆๅบ”ใ€‚
+ bullish_weekdays: ็œ‹ๅคšๆ˜ŸๆœŸๅˆ—่กจใ€‚
+ bearish_weekdays: ็œ‹็ฉบๆ˜ŸๆœŸๅˆ—่กจใ€‚
+
+ Example:
+ >>> engine = SignalEngine(bullish_months=[1, 2, 3], bearish_months=[5, 6, 7, 8, 9])
+ >>> signals = engine.generate({"000001.SZ": df})
+ """
+
+ def __init__(
+ self,
+ bullish_months: List[int] = None,
+ bearish_months: List[int] = None,
+ use_weekday: bool = False,
+ bullish_weekdays: List[int] = None,
+ bearish_weekdays: List[int] = None,
+ ):
+ """ๅˆๅง‹ๅŒ–ๅญฃ่Š‚ๆ€งๅผ•ๆ“Žใ€‚
+
+ Args:
+ bullish_months: ็œ‹ๅคšๆœˆไปฝ๏ผˆ1-12๏ผ‰๏ผŒ้ป˜่ฎค [1,2,3,11,12]ใ€‚
+ bearish_months: ็œ‹็ฉบๆœˆไปฝ๏ผˆ1-12๏ผ‰๏ผŒ้ป˜่ฎค [5,6,7,8,9]ใ€‚
+ use_weekday: ๆ˜ฏๅฆๅฏ็”จๅ‘จๅ†…ๆ•ˆๅบ”ใ€‚
+ bullish_weekdays: ็œ‹ๅคšๆ˜ŸๆœŸ๏ผˆ0=ๅ‘จไธ€, 4=ๅ‘จไบ”๏ผ‰๏ผŒ้ป˜่ฎค [4]ใ€‚
+ bearish_weekdays: ็œ‹็ฉบๆ˜ŸๆœŸ๏ผŒ้ป˜่ฎค [0]ใ€‚
+ """
+ self.bullish_months = bullish_months or [1, 2, 3, 11, 12]
+ self.bearish_months = bearish_months or [5, 6, 7, 8, 9]
+ self.use_weekday = use_weekday
+ self.bullish_weekdays = bullish_weekdays or [4]
+ self.bearish_weekdays = bearish_weekdays or [0]
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎๆ—ฅๅކๆ•ˆๅบ”็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for code, df in data_map.items():
+ result[code] = self._generate_one(df)
+ return result
+
+ def _generate_one(self, df: pd.DataFrame) -> pd.Series:
+ """ๅฏนๅ•ไธชๆ ‡็š„็”Ÿๆˆๆ—ฅๅކไฟกๅทใ€‚
+
+ Args:
+ df: OHLCV DataFrame๏ผŒindex ไธบ DatetimeIndexใ€‚
+
+ Returns:
+ ไฟกๅท Seriesใ€‚
+ """
+ idx = df.index
+ month = idx.month
+ signal = pd.Series(0, index=idx)
+
+ # ๆœˆไปฝๆ•ˆๅบ”
+ signal[month.isin(self.bullish_months)] = 1
+ signal[month.isin(self.bearish_months)] = -1
+
+ # ๅ‘จๅ†…ๆ•ˆๅบ”๏ผˆๅ ๅŠ ๆจกๅผ๏ผšๅŒ้‡็กฎ่ฎค๏ผ‰
+ if self.use_weekday:
+ weekday = idx.weekday
+ weekday_signal = pd.Series(0, index=idx)
+ weekday_signal[weekday.isin(self.bullish_weekdays)] = 1
+ weekday_signal[weekday.isin(self.bearish_weekdays)] = -1
+
+ # ๅŒ้‡็กฎ่ฎค๏ผšๆœˆไปฝๅ’Œๅ‘จๅ†…ๆ–นๅ‘ไธ€่‡ดๆ—ถๆ‰ๆœ‰ไฟกๅท
+ combined = signal + weekday_signal
+ signal = pd.Series(0, index=idx)
+ signal[combined >= 2] = 1 # ๆœˆไปฝ็œ‹ๅคš + ๅ‘จๅ†…็œ‹ๅคš
+ signal[combined <= -2] = -1 # ๆœˆไปฝ็œ‹็ฉบ + ๅ‘จๅ†…็œ‹็ฉบ
+
+ return signal.fillna(0).astype(int)
+
+
+if __name__ == "__main__":
+ import requests
+
+ def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐใ€‚
+
+ Returns:
+ OHLCV DataFrameใ€‚
+ """
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+ symbols = ["BTC-USDT", "ETH-USDT"]
+ data_map = {}
+ for sym in symbols:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+
+ engine = SignalEngine(
+ bullish_months=[1, 2, 3, 10, 11, 12],
+ bearish_months=[5, 6, 7, 8, 9],
+ )
+ signals = engine.generate(data_map)
+
+ for sym in symbols:
+ sig = signals[sym]
+ print(f"\n{sym} ({len(sig)} bars)")
+ print(f" Bullish days: {(sig == 1).sum()}")
+ print(f" Bearish days: {(sig == -1).sum()}")
+ print(f" Neutral days: {(sig == 0).sum()}")
diff --git a/agent/src/skills/sector-rotation/SKILL.md b/agent/src/skills/sector-rotation/SKILL.md
new file mode 100644
index 000000000..0dca80da2
--- /dev/null
+++ b/agent/src/skills/sector-rotation/SKILL.md
@@ -0,0 +1,191 @@
+---
+name: sector-rotation
+description: ่กŒไธš่ฝฎๅŠจๅˆ†ๆžโ€”โ€”็”ณไธ‡่กŒไธšๆ™ฏๆฐ”ๅบฆ่ฏ„ๅˆ†ใ€่กŒไธšๅŠจ้‡ๆŽ’ๅใ€ไบงไธš้“พไผ ๅฏผใ€ไผฐๅ€ผ/็›ˆๅˆฉ/่ต„้‡‘ๆตๅคš็ปดๆฏ”่พƒๆก†ๆžถ
+---
+
+# ่กŒไธš่ฝฎๅŠจๅˆ†ๆž
+
+## ๆฆ‚่ฟฐ
+
+ๅŸบไบŽA่‚ก็”ณไธ‡่กŒไธšๅˆ†็ฑปไฝ“็ณป๏ผŒ้€š่ฟ‡ๆ™ฏๆฐ”ๅบฆ่ฏ„ๅˆ†ใ€ๅŠจ้‡ๆŽ’ๅใ€ไผฐๅ€ผๆฏ”่พƒใ€่ต„้‡‘ๆตๅ‘ๅ››ไธช็ปดๅบฆ่ฟ›่กŒ่กŒไธš่ฝฎๅŠจๅˆ†ๆž๏ผŒ่พ“ๅ‡บ่กŒไธš่ถ…้…/ไฝŽ้…ๅปบ่ฎฎใ€‚
+
+## ็”ณไธ‡่กŒไธšๅˆ†็ฑปไฝ“็ณป
+
+### ไธ€็บง่กŒไธš๏ผˆ31ไธช๏ผ‰
+
+| ๅคง็ฑป | ่กŒไธš | ไปฃ็ ็คบไพ‹ |
+|------|------|---------|
+| ไธŠๆธธๅ‘จๆœŸ | ็…ค็‚ญใ€ๆœ‰่‰ฒใ€็Ÿณๆฒน็ŸณๅŒ–ใ€้’ข้“ใ€ๅŸบ็ก€ๅŒ–ๅทฅ | ็…ค็‚ญETF: 515220 |
+| ไธญๆธธๅˆถ้€  | ็”ตๅŠ›่ฎพๅค‡ใ€ๆœบๆขฐ่ฎพๅค‡ใ€ๅ›ฝ้˜ฒๅ†›ๅทฅใ€ๆฑฝ่ฝฆ | ๆ–ฐ่ƒฝๆบETF: 516160 |
+| ไธ‹ๆธธๆถˆ่ดน | ้ฃŸๅ“้ฅฎๆ–™ใ€ๅฎถ็”จ็”ตๅ™จใ€ๅŒป่ฏ็”Ÿ็‰ฉใ€็พŽๅฎนๆŠค็† | ๆถˆ่ดนETF: 510150 |
+| TMT | ็”ตๅญใ€่ฎก็ฎ—ๆœบใ€้€šไฟกใ€ไผ ๅช’ | ็ง‘ๆŠ€ETF: 515000 |
+| ้‡‘่žๅœฐไบง | ้“ถ่กŒใ€้ž้“ถ้‡‘่žใ€ๆˆฟๅœฐไบง | ้‡‘่žETF: 510230 |
+| ๅ…ฌ็”จไบ‹ไธš | ๅ…ฌ็”จไบ‹ไธšใ€ไบค้€š่ฟ่พ“ใ€็Žฏไฟ | ็บขๅˆฉETF: 510880 |
+
+### ่กŒไธšๅ‘จๆœŸๅฑžๆ€ง
+
+| ็ฑปๅž‹ | ่กŒไธš | ็‰นๅพ | ้ฉฑๅŠจๅ› ๅญ |
+|------|------|------|---------|
+| ๅผบๅ‘จๆœŸ | ็…ค็‚ญ/ๆœ‰่‰ฒ/้’ข้“/ๅŒ–ๅทฅ | ็›ˆๅˆฉๆณขๅŠจๅคง๏ผŒ่ทŸๅฎ่ง‚็ดงๅฏ† | PPIใ€PMIใ€ๅ•†ๅ“ไปทๆ ผ |
+| ๅผฑๅ‘จๆœŸ | ้ฃŸๅ“้ฅฎๆ–™/ๅŒป่ฏ/ๅ…ฌ็”จ | ็›ˆๅˆฉ็จณๅฎš๏ผŒ้˜ฒๅพกๅฑžๆ€ง | CPIใ€ๆถˆ่ดนๆ•ฐๆฎ |
+| ๆˆ้•ฟๅž‹ | ็”ตๅญ/่ฎก็ฎ—ๆœบ/็”ตๅŠ›่ฎพๅค‡ | ้ซ˜PE้ซ˜ๅขž้€Ÿ๏ผŒๆ”ฟ็ญ–ๆ•ๆ„Ÿ | ไบงไธšๆ”ฟ็ญ–ใ€ๆธ—้€็އ |
+| ้‡‘่ž | ้“ถ่กŒ/้ž้“ถ/ไฟ้™ฉ | ๅˆฉๅทฎ้ฉฑๅŠจ๏ผŒไธŽๅˆฉ็އๆญฃ็›ธๅ…ณ | ๅˆฉ็އใ€็คพ่žใ€ไฟก่ดท |
+
+## ๆ™ฏๆฐ”ๅบฆ่ฏ„ๅˆ†ๆก†ๆžถ
+
+### ่ฏ„ๅˆ†็ปดๅบฆ๏ผˆๆปกๅˆ†100๏ผ‰
+
+| ็ปดๅบฆ | ๆƒ้‡ | ๆŒ‡ๆ ‡ | ่ฏ„ๅˆ†่ง„ๅˆ™ |
+|------|------|------|---------|
+| ็›ˆๅˆฉๅขž้€Ÿ | 30% | ๅ‡€ๅˆฉๆถฆๅŒๆฏ”ๅขž้€Ÿ | >30%=30ๅˆ†, 15-30%=22ๅˆ†, 0-15%=15ๅˆ†, <0%=5ๅˆ† |
+| ็›ˆๅˆฉ่ถ‹ๅŠฟ | 20% | ่ฟž็ปญNๅญฃๅŠ ้€Ÿ | ๅŠ ้€Ÿ3ๅญฃ+=20ๅˆ†, 2ๅญฃ=14ๅˆ†, ๅ‡้€Ÿ=-5ๅˆ† |
+| ๆ™ฏๆฐ”ๆŒ‡ๆ ‡ | 20% | PMI/ๅผ€ๅทฅ็އ/ไปทๆ ผ | ้ซ˜ไฝ+ไธŠ่กŒ=20ๅˆ†, ้ซ˜ไฝๅ›ž่ฝ=12ๅˆ†, ไฝŽไฝ=5ๅˆ† |
+| ๆ”ฟ็ญ–ๆ”ฏๆŒ | 15% | ไบงไธšๆ”ฟ็ญ–ๅŠ›ๅบฆ | ๆ˜Ž็กฎๅˆฉๅฅฝ=15ๅˆ†, ไธญๆ€ง=8ๅˆ†, ๅˆฉ็ฉบ=2ๅˆ† |
+| ไผฐๅ€ผๅฎ‰ๅ…จ | 15% | PEๅކๅฒๅˆ†ไฝ | <30%ๅˆ†ไฝ=15ๅˆ†, 30-50%=10ๅˆ†, >70%=3ๅˆ† |
+
+### ๆ™ฏๆฐ”ๅบฆๅ˜ๅŒ–ไฟกๅท
+
+```
+ๆ™ฏๆฐ”ๅบฆไธŠ่กŒไฟกๅท๏ผˆ่ถ…้…๏ผ‰:
+1. ่กŒไธšPMI่ฟž็ปญ2ไธชๆœˆ>50ไธ”็Žฏๆฏ”ๆ”นๅ–„
+2. ้พ™ๅคดๅ…ฌๅธ่ฎขๅ•/ๆ”ถๅ…ฅๅŒๆฏ”ๅŠ ้€Ÿ
+3. ไบงๅ“ไปทๆ ผไธŠ่กŒ๏ผˆๆถจไปทๅ‘จๆœŸ๏ผ‰
+4. ไบง่ƒฝๅˆฉ็”จ็އ>80%ไธ”ๅœจๆๅ‡
+5. ๆ”ฟ็ญ–ๅ‚ฌๅŒ–๏ผˆ่กฅ่ดด/ๅ‡†ๅ…ฅ/ๅ›ฝไบงๆ›ฟไปฃ๏ผ‰
+
+ๆ™ฏๆฐ”ๅบฆไธ‹่กŒไฟกๅท๏ผˆไฝŽ้…๏ผ‰:
+1. ่กŒไธšPMI่ฟž็ปญ2ไธชๆœˆ<50
+2. ๅญ˜่ดงๅ‘จ่ฝฌๅคฉๆ•ฐไธŠๅ‡๏ผˆๅบ“ๅญ˜็งฏๅŽ‹๏ผ‰
+3. ไบงๅ“ไปทๆ ผไธ‹่กŒ
+4. ไบง่ƒฝ่ฟ‡ๅ‰ฉ๏ผˆๅˆฉ็”จ็އ<60%๏ผ‰
+5. ๆ”ฟ็ญ–ๆ”ถ็ดง๏ผˆ็Žฏไฟ/ๅๅž„ๆ–ญ/้›†้‡‡๏ผ‰
+```
+
+## ่กŒไธšๅŠจ้‡ๆŽ’ๅๆ–นๆณ•
+
+### ไปทๆ ผๅŠจ้‡
+
+```python
+def sector_momentum(sector_returns: pd.DataFrame, lookback: int = 60, skip: int = 5) -> pd.Series:
+ """
+ Args:
+ sector_returns: ่กŒไธšๆ—ฅๆ”ถ็›Š็އ๏ผŒcolumns=่กŒไธšๅ
+ lookback: ๅ›ž็œ‹็ช—ๅฃ๏ผˆไบคๆ˜“ๆ—ฅ๏ผ‰
+ skip: ่ทณ่ฟ‡ๆœ€่ฟ‘Nๅคฉ๏ผˆ้ฟๅ…็ŸญๆœŸๅ่ฝฌ๏ผ‰
+ Returns:
+ ่กŒไธšๅŠจ้‡ๅพ—ๅˆ†ๆŽ’ๅ
+ """
+ cum_return = (1 + sector_returns).rolling(lookback).apply(lambda x: x[:-skip].prod() - 1)
+ return cum_return.iloc[-1].rank(ascending=False)
+```
+
+### ็›ˆๅˆฉๅŠจ้‡
+
+```
+็›ˆๅˆฉๅŠจ้‡ = ๅฝ“ๅญฃROEๅŒๆฏ”ๅ˜ๅŒ– - ไธŠๅญฃROEๅŒๆฏ”ๅ˜ๅŒ–
+ๆญฃๅ€ผ = ็›ˆๅˆฉๅŠ ้€Ÿ๏ผˆ่ถ…้…ไฟกๅท๏ผ‰
+่ดŸๅ€ผ = ็›ˆๅˆฉๅ‡้€Ÿ๏ผˆๅ‡้…ไฟกๅท๏ผ‰
+```
+
+### ็ปผๅˆๅŠจ้‡ๆŽ’ๅ
+
+```
+็ปผๅˆๅพ—ๅˆ† = 0.4 ร— ไปทๆ ผๅŠจ้‡ๆŽ’ๅ + 0.3 ร— ็›ˆๅˆฉๅŠจ้‡ๆŽ’ๅ + 0.3 ร— ่ต„้‡‘ๆตๆŽ’ๅ
+ๅ– Top 5 ่กŒไธš่ถ…้…๏ผŒBottom 5 ่กŒไธšไฝŽ้…
+```
+
+## ไบงไธš้“พไธŠไธ‹ๆธธไผ ๅฏผ
+
+### ๅ…ธๅž‹ไผ ๅฏผ้“พๆก
+
+```
+ไธŠๆธธ๏ผˆๅŽŸๆๆ–™๏ผ‰โ†’ ไธญๆธธ๏ผˆๅˆถ้€ ๅŠ ๅทฅ๏ผ‰โ†’ ไธ‹ๆธธ๏ผˆๆถˆ่ดน/ๅบ”็”จ๏ผ‰
+
+็คบไพ‹1: ้”‚็”ตไบงไธš้“พ
+ ็ขณ้…ธ้”‚๏ผˆไธŠๆธธ๏ผ‰โ†’ ๆญฃๆžๆๆ–™๏ผˆไธญๆธธ๏ผ‰โ†’ ็”ตๆฑ ๏ผˆไธญๆธธ๏ผ‰โ†’ ๆ–ฐ่ƒฝๆบ่ฝฆ๏ผˆไธ‹ๆธธ๏ผ‰
+ ไผ ๅฏผ๏ผš้”‚ไปทโ†‘ โ†’ ๆญฃๆžๆˆๆœฌโ†‘ โ†’ ็”ตๆฑ ไปทๆ ผโ†‘ โ†’ ่ฝฆไผๆฏ›ๅˆฉ็އโ†“
+
+็คบไพ‹2: ๅŠๅฏผไฝ“ไบงไธš้“พ
+ ่ฎพๅค‡/ๆๆ–™๏ผˆไธŠๆธธ๏ผ‰โ†’ ๆ™ถๅœ†ๅˆถ้€ ๏ผˆไธญๆธธ๏ผ‰โ†’ ๅฐๆต‹๏ผˆไธญๆธธ๏ผ‰โ†’ ๆถˆ่ดน็”ตๅญ๏ผˆไธ‹ๆธธ๏ผ‰
+ ไผ ๅฏผ๏ผšๆ‰‹ๆœบ้œ€ๆฑ‚โ†‘ โ†’ ๅฐๆต‹่ฎขๅ•โ†‘ โ†’ ๆ™ถๅœ†ไบง่ƒฝ็ดง โ†’ ่ฎพๅค‡่ต„ๆœฌๅผ€ๆ”ฏโ†‘
+
+็คบไพ‹3: ๅœฐไบงไบงไธš้“พ
+ ๅœŸๅœฐ/่ž่ต„๏ผˆไธŠๆธธ๏ผ‰โ†’ ๅผ€ๅ‘ๅปบ่ฎพ๏ผˆไธญๆธธ๏ผ‰โ†’ ้”€ๅ”ฎ/็‰ฉไธš๏ผˆไธ‹ๆธธ๏ผ‰
+ ไผ ๅฏผ๏ผšๆ”ฟ็ญ–ๅฎฝๆพ โ†’ ้”€ๅ”ฎๅ›žๆš–(ไธ‹ๆธธๅ…ˆ) โ†’ ๆ–ฐๅผ€ๅทฅโ†‘(ไธญๆธธ) โ†’ ๆ‹ฟๅœฐโ†‘(ไธŠๆธธ)
+```
+
+### ไผ ๅฏผ่ง„ๅพ‹
+
+| ่ง„ๅพ‹ | ่ฏดๆ˜Ž | ๆŠ•่ต„ๅซไน‰ |
+|------|------|---------|
+| ้œ€ๆฑ‚้ฉฑๅŠจ่‡ชไธ‹่€ŒไธŠ | ไธ‹ๆธธ้œ€ๆฑ‚ โ†’ ไธญๆธธ่ฎขๅ• โ†’ ไธŠๆธธๅŽŸๆๆ–™ | ้œ€ๆฑ‚ๆ‹็‚น็œ‹ไธ‹ๆธธๅ…ˆๅŠจ |
+| ๆˆๆœฌไผ ๅฏผ่‡ชไธŠ่€Œไธ‹ | ไธŠๆธธๆถจไปท โ†’ ไธญๆธธๆˆๆœฌ โ†’ ไธ‹ๆธธๆไปท | ไธŠๆธธๆถจไปทๅˆฉๅฅฝไธŠๆธธ๏ผŒๅˆฉ็ฉบไธญๆธธ |
+| ๅบ“ๅญ˜ๅ‘จๆœŸไผ ๅฏผ | ไธปๅŠจ่กฅๅบ“โ†’่ขซๅŠจ่กฅๅบ“โ†’ไธปๅŠจๅŽปๅบ“โ†’่ขซๅŠจๅŽปๅบ“ | ่ขซๅŠจๅŽปๅบ“ๆ˜ฏไนฐๅ…ฅ็‚น |
+| ้ข†ๅ…ˆๆปžๅŽ | ไธŠๆธธ้ข†ๅ…ˆไธญๆธธ1-2ๅญฃๅบฆ๏ผŒไธญๆธธ้ข†ๅ…ˆไธ‹ๆธธ1-2ๅญฃๅบฆ | ๆๅ‰ๅธƒๅฑ€ไธ‹ไธ€็Žฏ่Š‚ |
+
+## ่กŒไธšๆฏ”่พƒๆก†ๆžถ
+
+### ไผฐๅ€ผๆฏ”่พƒ
+
+| ๆŒ‡ๆ ‡ | ็”จ้€” | ๆณจๆ„ไบ‹้กน |
+|------|------|---------|
+| PE(TTM) | ็›ˆๅˆฉไผฐๅ€ผ | ๅ‘จๆœŸ่‚กPEๅคฑ็œŸ๏ผˆไฝŽPEๅฏ่ƒฝๆ˜ฏ้กถ๏ผ‰ |
+| PB | ่ต„ไบงไผฐๅ€ผ | ้“ถ่กŒ/ๅœฐไบง/ๅ‘จๆœŸ่‚ก็”จPBๆ›ดๅˆ็† |
+| PEๅކๅฒๅˆ†ไฝ | ไผฐๅ€ผไฝ็ฝฎ | ็œ‹5ๅนดๅˆ†ไฝๆ•ฐ |
+| PEG | ๆˆ้•ฟไผฐๅ€ผ | <1ไธบไฝŽไผฐ๏ผŒ>2ไธบ้ซ˜ไผฐ |
+| ่‚กๆฏ็އ | ๆ”ถ็›Š็އ | ้ซ˜่‚กๆฏ=้˜ฒๅพก้…็ฝฎ |
+
+### ็›ˆๅˆฉๆฏ”่พƒ
+
+| ๆŒ‡ๆ ‡ | ๅซไน‰ |
+|------|------|
+| ROE | ็›ˆๅˆฉ่ƒฝๅŠ› |
+| ROEๅ˜ๅŒ– | ็›ˆๅˆฉ่ถ‹ๅŠฟ |
+| ๆฏ›ๅˆฉ็އ | ็ซžไบ‰ๆ ผๅฑ€ |
+| ๅ‡€ๅˆฉๆถฆๅขž้€Ÿ | ๆˆ้•ฟๆ€ง |
+| ็Žฐ้‡‘ๆต/ๅ‡€ๅˆฉๆถฆ | ็›ˆๅˆฉ่ดจ้‡ |
+
+### ่ต„้‡‘ๆตๆฏ”่พƒ
+
+| ๆŒ‡ๆ ‡ | ๆ•ฐๆฎๆบ | ไฟกๅท |
+|------|--------|------|
+| ๅŒ—ๅ‘่ต„้‡‘ๅ‡€ๆตๅ…ฅ | ๆฒชๆทฑๆธฏ้€š | ๅค–่ต„ๅๅฅฝ๏ผŒ้ข†ๅ…ˆ1-3ไธชๆœˆ |
+| ่ž่ต„ไฝ™้ขๅ˜ๅŒ– | ่ž่ต„่žๅˆธ | ๆ ๆ†่ต„้‡‘ๆ–นๅ‘ |
+| ETFๅ‡€็”ณ่ดญ | ๅŸบ้‡‘ๆ•ฐๆฎ | ๆœบๆž„้…็ฝฎๆ–นๅ‘ |
+| ๅคงๅฎ—ไบคๆ˜“ | ไบคๆ˜“ๆ‰€ | ๆœบๆž„่ฐƒไป“ไฟกๅท |
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+```markdown
+## ่กŒไธš่ฝฎๅŠจๅˆ†ๆž
+
+### ๆ™ฏๆฐ”ๅบฆๆŽ’ๅ Top 10
+| ๆŽ’ๅ | ่กŒไธš | ๆ™ฏๆฐ”ๅบฆ | ๅ˜ๅŒ– | ๆ ธๅฟƒ้€ป่พ‘ |
+|------|------|--------|------|---------|
+| 1 | ็”ตๅญ | 85 | โ†‘+8 | AI็ฎ—ๅŠ›้œ€ๆฑ‚็ˆ†ๅ‘ |
+| 2 | ๆฑฝ่ฝฆ | 80 | โ†‘+5 | ๅ‡บๅฃ+ๆ–ฐ่ƒฝๆบๅŒ่ฝฎ้ฉฑๅŠจ |
+| ... | ... | ... | ... | ... |
+
+### ่กŒไธš้…็ฝฎๅปบ่ฎฎ
+| ้…็ฝฎ | ่กŒไธš | ๆƒ้‡ๅปบ่ฎฎ | ๆ ธๅฟƒ้€ป่พ‘ |
+|------|------|---------|---------|
+| ่ถ…้… | ็”ตๅญใ€ๆฑฝ่ฝฆใ€้€šไฟก | ๅ„10-15% | ๆ™ฏๆฐ”ไธŠ่กŒ+ๆ”ฟ็ญ–ๅ‚ฌๅŒ– |
+| ๆ ‡้… | ้ฃŸๅ“้ฅฎๆ–™ใ€ๅŒป่ฏ | ๅ„5-8% | ้˜ฒๅพกๅฑžๆ€ง๏ผŒไผฐๅ€ผๅˆ็† |
+| ไฝŽ้… | ๅœฐไบงใ€ๅปบๆ | ๅ„0-3% | ๆ™ฏๆฐ”ไธ‹่กŒ๏ผŒๆ”ฟ็ญ–ๆ•ˆๆžœๅพ…่ง‚ๅฏŸ |
+
+### ไบงไธš้“พๆœบไผš
+- **AIไบงไธš้“พ**: ็ฎ—ๅŠ›(ไธŠๆธธ)โ†’ๆจกๅž‹(ไธญๆธธ)โ†’ๅบ”็”จ(ไธ‹ๆธธ)๏ผŒๅฝ“ๅ‰ไธŠๆธธๆœ€็กฎๅฎš
+- **ๆ–ฐ่ƒฝๆบ่ฝฆ**: ็ขณ้…ธ้”‚ไปทๆ ผ่งๅบ•๏ผŒ็”ตๆฑ ็Žฏ่Š‚็›ˆๅˆฉไฟฎๅค้ข„ๆœŸ
+
+### ้ฃŽ้™ฉๆ็คบ
+- ...
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **ๅ‘จๆœŸ่‚กไผฐๅ€ผ้™ท้˜ฑ**๏ผšไฝŽPEๅฏ่ƒฝๆ˜ฏ็›ˆๅˆฉ้กถ็‚น๏ผˆๅฆ‚2021ๅนด็…ค็‚ญPEไป…5xไฝ†ๆ˜ฏ้กถ้ƒจ๏ผ‰๏ผŒ็”จPBๆ›ดๅฎ‰ๅ…จ
+2. **ๆ”ฟ็ญ–ๅ˜้‡ๆƒ้‡ๅคง**๏ผšA่‚ก่กŒไธš่ฝฎๅŠจๅ—ๆ”ฟ็ญ–้ฉฑๅŠจๆ˜Žๆ˜พ๏ผˆ้›†้‡‡ใ€็ขณไธญๅ’Œใ€AI๏ผ‰๏ผŒๆ”ฟ็ญ–ๆ‹็‚น>ๅŸบๆœฌ้ขๆ‹็‚น
+3. **ไธป้ข˜ๆŠ•่ต„ๅนฒๆ‰ฐ**๏ผš็ŸญๆœŸไธป้ข˜็‚’ไฝœ๏ผˆๅฆ‚AIๆฆ‚ๅฟต๏ผ‰ไผšๆ‰ญๆ›ฒ่กŒไธšๅŠจ้‡ไฟกๅท๏ผŒๆณจๆ„ๅŒบๅˆ†ไธป้ข˜ vs ๆ™ฏๆฐ”
+4. **ๆ•ฐๆฎๆปžๅŽ**๏ผš่ดขๆŠฅๆ•ฐๆฎๆปžๅŽ1-2ไธชๆœˆ๏ผŒ้ซ˜้ข‘ๆ•ฐๆฎ๏ผˆPMI/ๅผ€ๅทฅ็އ/ไปทๆ ผ๏ผ‰ๆ›ดๅŠๆ—ถ
+5. **่กŒไธšETFๆ›ฟไปฃ**๏ผšๅปบ่ฎฎ็”จ่กŒไธšETFไปฃ็ ่€Œ้žไธช่‚กๅฎž็Žฐ่กŒไธš้…็ฝฎ๏ผŒ้™ไฝŽไธช่‚ก้ฃŽ้™ฉ
+6. **่ฝฎๅŠจ้ข‘็އ**๏ผš่กŒไธš่ฝฎๅŠจไธๅฎœๅคช้ข‘็น๏ผŒๆœˆๅบฆ/ๅญฃๅบฆ่ฐƒไป“ไธบๅฎœ
diff --git a/agent/src/skills/sentiment-analysis/SKILL.md b/agent/src/skills/sentiment-analysis/SKILL.md
new file mode 100644
index 000000000..121491236
--- /dev/null
+++ b/agent/src/skills/sentiment-analysis/SKILL.md
@@ -0,0 +1,272 @@
+---
+name: sentiment-analysis
+description: ๅธ‚ๅœบๆƒ…็ปชๅˆ†ๆžโ€”โ€”ๆ่ดชๆŒ‡ๆ•ฐ/Put-Call Ratio/่ž่ต„่žๅˆธ/ๅŒ—ๅ‘่ต„้‡‘ไฟกๅท่งฃ่ฏปใ€็คพไบคๅช’ไฝ“่ˆ†ๆƒ…้‡ๅŒ–ๆก†ๆžถ
+---
+
+# ๅธ‚ๅœบๆƒ…็ปชๅˆ†ๆž
+
+## ๆฆ‚่ฟฐ
+
+้‡ๅŒ–ๅธ‚ๅœบๆƒ…็ปช๏ผŒๅฐ†ไธป่ง‚็š„"่ดชๅฉชไธŽๆๆƒง"่ฝฌๅŒ–ไธบๅฏ่กก้‡็š„ๆŒ‡ๆ ‡ใ€‚่ฆ†็›–ๆ่ดชๆŒ‡ๆ•ฐใ€ๆœŸๆƒๆƒ…็ปชใ€ๆ ๆ†่ต„้‡‘ใ€ๅค–่ต„ๆตๅ‘ๅ’Œ็คพไบค่ˆ†ๆƒ…ไบ”ๅคง็ปดๅบฆใ€‚ๆƒ…็ปชๆŒ‡ๆ ‡ๅธธไฝœไธบๅๅ‘ๆŒ‡ๆ ‡ไฝฟ็”จใ€‚
+
+## ๆ่ดชๆŒ‡ๆ•ฐ
+
+### ๅŠ ๅฏ†ๆ่ดชๆŒ‡ๆ•ฐ๏ผˆCrypto Fear & Greed Index๏ผ‰
+
+```
+ๅˆ†ๅ€ผ่Œƒๅ›ด: 0-100
+
+| ๅˆ†ๅ€ผ | ๆƒ…็ปช็Šถๆ€ | ๅކๅฒไฟกๅท |
+|------|---------|---------|
+| 0-20 | ๆžๅบฆๆๆƒง | ๅบ•้ƒจๅŒบๅŸŸ๏ผˆ้€†ๅ‘ไนฐๅ…ฅ๏ผ‰|
+| 20-40 | ๆๆƒง | ๅๅบ•้ƒจ |
+| 40-60 | ไธญๆ€ง | ่ง‚ๆœ› |
+| 60-80 | ่ดชๅฉช | ๅ้กถ้ƒจ |
+| 80-100 | ๆžๅบฆ่ดชๅฉช | ้กถ้ƒจๅŒบๅŸŸ๏ผˆ้€†ๅ‘ๅ–ๅ‡บ๏ผ‰|
+
+ๆž„ๆˆๅ› ๅญ:
+- ๆณขๅŠจ็އ (25%): BTC 30ๅคฉ/90ๅคฉๆณขๅŠจ็އ
+- ๅธ‚ๅœบๅŠจ้‡ (25%): BTCไปทๆ ผ vs MA(30/90)
+- ็คพไบคๅช’ไฝ“ (15%): Twitter/Redditๆƒ…็ปช่ฏ้ข‘
+- ่ฐƒๆŸฅ (15%): ๆŠ•่ต„่€…่ฐƒๆŸฅ
+- ๆฏ”็‰นๅธๅธ‚ๅ ็އ (10%): BTC Dominance
+- Google่ถ‹ๅŠฟ (10%): "Bitcoin"ๆœ็ดข็ƒญๅบฆ
+```
+
+### A่‚กๆ่ดชๆŒ‡ๆ ‡
+
+A่‚กๆฒกๆœ‰็ปŸไธ€็š„ๆ่ดชๆŒ‡ๆ•ฐ๏ผŒ็”จไปฅไธ‹็ป„ๅˆๆ›ฟไปฃ๏ผš
+
+| ๆŒ‡ๆ ‡ | ๆ•ฐๆฎๆบ | ๆžๅบฆๆๆƒง | ๆžๅบฆ่ดชๅฉช |
+|------|--------|---------|---------|
+| ไธŠ่ฏๆขๆ‰‹็އ | ไบคๆ˜“ๆ‰€ | <0.5% | >2.5% |
+| ๆถจๅœๅฎถๆ•ฐ/่ทŒๅœๅฎถๆ•ฐ | ่กŒๆƒ…ๆ•ฐๆฎ | <0.3 | >5.0 |
+| ๆ–ฐๅขžๅผ€ๆˆทๆ•ฐ(ๅ‘จ) | ไธญ็™ป | <20ไธ‡ | >100ไธ‡ |
+| ่ž่ต„ไฝ™้ขๅ˜ๅŒ–(ๆœˆ) | ไบคๆ˜“ๆ‰€ | ๅ‡€ๆตๅ‡บ>500ไบฟ | ๅ‡€ๆตๅ…ฅ>1000ไบฟ |
+| ETFๅ‡€็”ณ่ดญ | ๅŸบ้‡‘ๆ•ฐๆฎ | ๅฎฝๅŸบETFๅ‡€็”ณ่ดญ๏ผˆๆŠ„ๅบ•๏ผ‰| ๅ‡€่ตŽๅ›ž๏ผˆ่Žทๅˆฉไบ†็ป“๏ผ‰|
+
+### ๆ่ดชๆŒ‡ๆ•ฐไฝฟ็”จๆ–นๆณ•
+
+```
+ๆ ธๅฟƒๅŽŸๅˆ™: ๅˆซไบบๆๆƒงๆ—ถ่ดชๅฉช๏ผŒๅˆซไบบ่ดชๅฉชๆ—ถๆๆƒง
+
+ๅฎžๆ“:
+1. ๆžๅบฆๆๆƒง๏ผˆ<20๏ผ‰: ๅˆ†ๆ‰นๅปบไป“ไฟกๅท
+ - ไธ่ฆไธ€ๆฌกๆ€งๅ…จไป“๏ผŒๅˆ†3-5ๆ‰น
+ - ็กฎ่ฎคๆœ‰ๅŸบๆœฌ้ขๆ”ฏๆ’‘๏ผˆไธๆ˜ฏๆšด้›ทๅฏผ่‡ด็š„ๆๆƒง๏ผ‰
+
+2. ๆžๅบฆ่ดชๅฉช๏ผˆ>80๏ผ‰: ้€ๆญฅๅ‡ไป“ไฟกๅท
+ - ไธ่ฆๅš็ฉบ๏ผˆ่ถ‹ๅŠฟๅฏ่ƒฝๆŒ็ปญ๏ผ‰
+ - ๅ‡ไป“ๅˆฐๅฎ‰ๅ…จๆฐดไฝ๏ผˆๅฆ‚ไปŽ80%ไป“ไฝ้™ๅˆฐ50%๏ผ‰
+
+3. ไธญๆ€งๅŒบ้—ด: ๆƒ…็ปชๆŒ‡ๆ ‡ๅคฑๆ•ˆ๏ผŒ็œ‹ๅ…ถไป–ๅ› ็ด 
+```
+
+## Put-Call Ratio
+
+### ๅฎšไน‰ไธŽ่งฃ่ฏป
+
+```
+Put-Call Ratio = PutๆœŸๆƒๆˆไบค้‡ / CallๆœŸๆƒๆˆไบค้‡
+
+| PCR | ๅซไน‰ | ไฟกๅท๏ผˆๅๅ‘ๆŒ‡ๆ ‡๏ผ‰|
+|-----|------|----------------|
+| > 1.5 | ๆžๅบฆ็œ‹็ฉบๆƒ…็ปช | ็œ‹ๅคš๏ผˆๆๆƒง่ฟ‡ๅบฆ๏ผ‰|
+| 1.0-1.5 | ๅ็ฉบ | ๅๅคš |
+| 0.7-1.0 | ไธญๆ€ง | ๆ— ๆ˜Ž็กฎไฟกๅท |
+| 0.5-0.7 | ๅๅคš | ๅ็ฉบ |
+| < 0.5 | ๆžๅบฆ็œ‹ๅคšๆƒ…็ปช | ็œ‹็ฉบ๏ผˆ่ดชๅฉช่ฟ‡ๅบฆ๏ผ‰|
+```
+
+### ไธๅŒๅธ‚ๅœบPCRๅ‚่€ƒ
+
+| ๅธ‚ๅœบ | ๆ•ฐๆฎๆบ | ๆญฃๅธธ่Œƒๅ›ด | ๆž็ซฏๅŒบ้—ด |
+|------|--------|---------|---------|
+| ็พŽ่‚ก๏ผˆCBOE๏ผ‰ | VIXๆœŸๆƒ | 0.7-1.2 | <0.5 ๆˆ– >1.5 |
+| A่‚ก๏ผˆไธŠ่ฏ50ETF๏ผ‰ | ไธŠไบคๆ‰€ | 0.5-1.5 | <0.3 ๆˆ– >2.0 |
+| BTC๏ผˆDeribit๏ผ‰ | Deribit | 0.3-0.8 | <0.2 ๆˆ– >1.2 |
+
+### PCRไธŽVIX้…ๅˆไฝฟ็”จ
+
+```
+PCR้ซ˜ + VIX้ซ˜ = ๆžๅบฆๆๆ…Œ๏ผˆๅผบ็ƒˆ็œ‹ๅคšๅ่ฝฌไฟกๅท๏ผ‰
+PCRไฝŽ + VIXไฝŽ = ๆžๅบฆ่‡ชๆปก๏ผˆ่ญฆๆƒ•้ป‘ๅคฉ้น…๏ผ‰
+PCR้ซ˜ + VIXไฝŽ = ๅฏนๅ†ฒ้œ€ๆฑ‚๏ผˆๆœบๆž„ๅœจไฟๆŠคๅคšๅคด๏ผ‰
+PCRไฝŽ + VIX้ซ˜ = ็Ÿ›็›พไฟกๅท๏ผˆ้œ€่ฆๆ›ดๅคš็กฎ่ฎค๏ผ‰
+```
+
+## ่ž่ต„่žๅˆธไฟกๅท๏ผˆA่‚ก๏ผ‰
+
+### ่ž่ต„ไฝ™้ขๅˆ†ๆž
+
+```
+่ž่ต„ = ๅ€Ÿ้’ฑไนฐ่‚ก๏ผˆ็œ‹ๅคšๆ ๆ†๏ผ‰
+่žๅˆธ = ๅ€Ÿ่‚กๅ–ๅ‡บ๏ผˆ็œ‹็ฉบๆ ๆ†๏ผ‰
+
+่ž่ต„ไฝ™้ขๆŒ‡ๆ ‡:
+- ็ปๅฏนๅ€ผ: ๅๆ˜ ๆ ๆ†่ต„้‡‘ๆ€ป้‡๏ผˆ2024ๅนด็บฆ1.5-1.8ไธ‡ไบฟ๏ผ‰
+- ๅ˜ๅŒ–็އ: ๅ‘จ็Žฏๆฏ”/ๆœˆ็Žฏๆฏ”๏ผŒๆ–นๅ‘ๆฏ”็ปๅฏนๅ€ผ้‡่ฆ
+- ๅ ๆฏ”: ่ž่ต„ไฝ™้ข/A่‚กๆ€ปๅธ‚ๅ€ผ๏ผŒ้€šๅธธ2-3%
+```
+
+### ่ž่ต„่žๅˆธไฟกๅท
+
+| ๆŒ‡ๆ ‡ | ็œ‹ๅคšไฟกๅท | ็œ‹็ฉบไฟกๅท |
+|------|---------|---------|
+| ่ž่ต„ไฝ™้ข | ๅบ•้ƒจไผ็จณๅŽ่ฟž็ปญๅขžๅŠ  | ้ซ˜ไฝๅŠ ้€ŸๅขžๅŠ ๏ผˆ่ฟ‡็ƒญ๏ผ‰ |
+| ่ž่ต„ๅ‡€ไนฐๅ…ฅ | ่ฟž็ปญ5ๅคฉๅ‡€ไนฐๅ…ฅ | ่ฟž็ปญ5ๅคฉๅ‡€ๅ–ๅ‡บ |
+| ่žๅˆธไฝ™้ข | ๅคงๅน…ๅขžๅŠ ๅŽๅ‡ๅฐ‘๏ผˆ็ฉบๅคดๅ›ž่กฅ๏ผ‰ | ็ช็„ถๅคงๅขž๏ผˆๆœ‰ไบบๅš็ฉบ๏ผ‰ |
+| ่ž่ต„/่žๅˆธๆฏ” | ๆฏ”ๅ€ผๅ›ž่ฝๅŽๅๅผน | ๆž็ซฏ้ซ˜ไฝ๏ผˆๆ ๆ†่ฟ‡้ซ˜๏ผ‰ |
+
+### ่ž่ต„ไฝ™้ขๅކๅฒ้˜ˆๅ€ผ๏ผˆA่‚ก๏ผ‰
+
+```
+2015ๅนด็‰›ๅธ‚้กถ้ƒจ: 2.27ไธ‡ไบฟ๏ผˆๆž็ซฏ๏ผ‰
+2018ๅนด็†Šๅธ‚ๅบ•้ƒจ: 0.76ไธ‡ไบฟ
+2020ๅนดๆญฃๅธธๅŒบ้—ด: 1.0-1.2ไธ‡ไบฟ
+2024ๅนดๆญฃๅธธๅŒบ้—ด: 1.4-1.8ไธ‡ไบฟ
+
+็ป้ชŒๆณ•ๅˆ™: ่ž่ต„ไฝ™้ขๆœˆๅขž>10% โ†’ ่ฟ‡็ƒญ่ญฆ็คบ
+ ่ž่ต„ไฝ™้ขๆœˆๅ‡>10% โ†’ ๆๆ…Œ่ญฆ็คบ
+```
+
+## ๅŒ—ๅ‘่ต„้‡‘ไฟกๅท๏ผˆA่‚ก๏ผ‰
+
+### ๅŒ—ๅ‘่ต„้‡‘ๅˆ†ๆžๆก†ๆžถ
+
+```
+ๅŒ—ๅ‘่ต„้‡‘ = ้€š่ฟ‡ๆฒชๆทฑๆธฏ้€šไนฐA่‚ก็š„ๅค–่ต„
+
+ๆ ธๅฟƒ็‰นๅพ:
+1. ่ง„ๆจก: ็ดฏ่ฎกๅ‡€ไนฐๅ…ฅ็บฆ2ไธ‡ไบฟ
+2. ้ฃŽๆ ผ: ๅๅฅฝ็™ฝ้ฉฌ๏ผˆๆถˆ่ดน+้‡‘่ž+็ง‘ๆŠ€้พ™ๅคด๏ผ‰
+3. ๅ‰็žปๆ€ง: ๅކๅฒไธŠๅคšๆฌกๅœจๅบ•้ƒจๅŠ ไป“
+4. ๅฑ€้™: 2023ๅนดๅŽไธปๅŠจๅž‹vs่ขซๅŠจๅž‹ๅˆ†ๅŒ–
+```
+
+### ๅŒ—ๅ‘่ต„้‡‘ไฟกๅท
+
+| ๆŒ‡ๆ ‡ | ็œ‹ๅคšไฟกๅท | ็œ‹็ฉบไฟกๅท |
+|------|---------|---------|
+| ๅ•ๆ—ฅๅ‡€ๆตๅ…ฅ | >100ไบฟ๏ผˆๅผบ็ƒˆไฟกๅท๏ผ‰ | <-100ไบฟ |
+| ่ฟž็ปญๆตๅ…ฅๅคฉๆ•ฐ | >10ๅคฉ่ฟž็ปญๆตๅ…ฅ | >10ๅคฉ่ฟž็ปญๆตๅ‡บ |
+| ๆœˆๅบฆๅ‡€ๆตๅ…ฅ | >500ไบฟ | <-500ไบฟ |
+| ๆŒไป“ๅ˜ๅŒ– | ๅขžๆŒไฝŽไผฐๅ€ผ็™ฝ้ฉฌ | ๅ‡ๆŒๅ‘จๆœŸ+ๆฆ‚ๅฟต่‚ก |
+
+### ๅŒ—ๅ‘่ต„้‡‘ไฝฟ็”จๆณจๆ„
+
+```
+2023ๅนดๅŽๅ˜ๅŒ–:
+1. ่ขซๅŠจ่ต„้‡‘(ETF)ๅ ๆฏ”ไธŠๅ‡๏ผŒไธปๅŠจ้€‰่‚กๅ‚่€ƒไปทๅ€ผไธ‹้™
+2. ๅ•ๆ—ฅๅคง้ขๆณขๅŠจๅฏ่ƒฝๆ˜ฏๅฏนๅ†ฒไบคๆ˜“๏ผˆ้žๆ–นๅ‘ๆ€ง๏ผ‰
+3. "ๅ‡ๅค–่ต„"๏ผˆๅ†…ๅœฐ่ต„้‡‘็ป•้“้ฆ™ๆธฏ๏ผ‰ๅนฒๆ‰ฐไฟกๅท
+
+ๅปบ่ฎฎ:
+- ็œ‹ๅ‘จๅบฆ/ๆœˆๅบฆ็ดฏ่ฎก๏ผŒๅฟฝ็•ฅๅ•ๆ—ฅๆณขๅŠจ
+- ๅŒบๅˆ†ไธปๅŠจๅž‹vs่ขซๅŠจๅž‹๏ผˆๆœ‰ไบ›ๆ•ฐๆฎๆบๅฏๆ‹†ๅˆ†๏ผ‰
+- ไธŽ่ž่ต„ไฝ™้ขใ€ETF็”ณ่ตŽไบคๅ‰้ชŒ่ฏ
+```
+
+## ็คพไบคๅช’ไฝ“่ˆ†ๆƒ…ๅˆ†ๆž
+
+### ่ˆ†ๆƒ…้‡ๅŒ–ๆก†ๆžถ
+
+```
+ๆ•ฐๆฎๆบ:
+- ไธญๆ–‡: ้›ช็ƒ/ไธœๆ–น่ดขๅฏŒ่‚กๅง/ๅพฎๅš/ๅพฎไฟกๅ…ฌไผ—ๅท
+- ่‹ฑๆ–‡: Twitter(X)/Reddit/Telegram
+- ๅŠ ๅฏ†: CryptoTwitter/Discord/Telegram็พค
+
+้‡ๅŒ–็ปดๅบฆ:
+1. ่ฎจ่ฎบ็ƒญๅบฆ: ๆๅŠ้ข‘ๆฌก / ๅŸบๅ‡†้ข‘ๆฌก
+2. ๆƒ…็ปชๅ€พๅ‘: ๆญฃ้ข/่ดŸ้ข/ไธญๆ€งๆฏ”ไพ‹
+3. ๆƒ…็ปชๅผบๅบฆ: ๆญฃ้ขๅ‡ๅ€ผ - ่ดŸ้ขๅ‡ๅ€ผ
+4. ๆƒ…็ปชๅ˜ๅŒ–: ่พƒไธŠๆœŸ็š„ๅ˜ๅŒ–ๆ–นๅ‘
+```
+
+### ่ˆ†ๆƒ…ๆŒ‡ๆ ‡
+
+| ๆŒ‡ๆ ‡ | ่ฎก็ฎ— | ๅๅ‘ไฟกๅท |
+|------|------|---------|
+| ็ƒญๅบฆๆŒ‡ๆ•ฐ | ๆœ็ดข้‡/่ฎจ่ฎบ้‡ vs MA(30) | ็ƒญๅบฆๆšดๅขž=่ฟ‡็ƒญ |
+| ็œ‹ๅคšๆฏ”ไพ‹ | ็œ‹ๅคšๅธ–ๅญ/ๆ€ปๅธ–ๅญ | >80%=ๆžๅบฆไน่ง‚(่ญฆๆƒ•) |
+| ๆ–ฐไบบๆŒ‡ๆ•ฐ | ๆ–ฐๆณจๅ†Œ่ดฆๅท่ฎจ่ฎบๅ ๆฏ” | >50%=ๆ•ฃๆˆทๆถŒๅ…ฅ(้กถ้ƒจ) |
+| KOLไธ€่‡ดๆ€ง | ๅคงV่ง‚็‚นไธ€่‡ดๅบฆ | ไธ€่‡ด็œ‹ๅคš=ๅฑ้™ฉ |
+
+### ็คพไบคๅช’ไฝ“ๆƒ…็ปชๅ‘จๆœŸ
+
+```
+ๅบ•้ƒจ: ๆ— ไบบ่ฎจ่ฎบ โ†’ ๅฐ‘ๆ•ฐไบบๆŠ„ๅบ• โ†’ ไบ‰่ฎฎๆœŸ
+ไธŠๆถจ: ่ฎจ่ฎบๅขžๅŠ  โ†’ ไน่ง‚่”“ๅปถ โ†’ ๆ–ฐไบบๆถŒๅ…ฅ
+้กถ้ƒจ: ๅ…จๆฐ‘่ฎจ่ฎบ โ†’ ๆžๅบฆไน่ง‚ โ†’ ไธ็œ‹ๅฅฝ่€…่ขซๅ˜ฒ็ฌ‘
+ไธ‹่ทŒ: ไบ‰่ฎฎ โ†’ ๆๆ…Œ โ†’ ๆ— ไบบ่ฎจ่ฎบ๏ผˆๅ›žๅˆฐๅบ•้ƒจ๏ผ‰
+
+ๅทด่ฒ็‰นๆŒ‡ๆ ‡: ๅ‡บ็งŸ่ฝฆๅธๆœบ/็†ๅ‘ๅธˆๅผ€ๅง‹่ฎจ่ฎบ่‚ก็ฅจ = ้กถ้ƒจ
+```
+
+## ็ปผๅˆๆƒ…็ปช่ฏ„ๅˆ†ๆก†ๆžถ
+
+### ่ฏ„ๅˆ†ๆจกๅž‹
+
+```
+็ปผๅˆๆƒ…็ปช = 0.25ร—ๆ่ดช + 0.20ร—PCR + 0.20ร—่ž่ต„ + 0.20ร—ๅŒ—ๅ‘ + 0.15ร—่ˆ†ๆƒ…
+
+ๆฏไธช็ปดๅบฆๆ ‡ๅ‡†ๅŒ–ๅˆฐ 0-100:
+0-20: ๆžๅบฆๆๆƒง
+20-40: ๆๆƒง
+40-60: ไธญๆ€ง
+60-80: ่ดชๅฉช
+80-100: ๆžๅบฆ่ดชๅฉช
+```
+
+### ๆƒ…็ปช โ†’ ๆ“ไฝœๆ˜ ๅฐ„
+
+| ็ปผๅˆๆƒ…็ปช | ไป“ไฝๅปบ่ฎฎ | ๆ“ไฝœ |
+|---------|---------|------|
+| 0-20 | 80-100% | ้€†ๅ‘ๆปกไป“ |
+| 20-40 | 60-80% | ้€ๆญฅๅŠ ไป“ |
+| 40-60 | 40-60% | ๆ ‡ๅ‡†ไป“ไฝ |
+| 60-80 | 20-40% | ้€ๆญฅๅ‡ไป“ |
+| 80-100 | 0-20% | ้€†ๅ‘ๆธ…ไป“ |
+
+## ่พ“ๅ‡บๆ ผๅผ
+
+```markdown
+## ๅธ‚ๅœบๆƒ…็ปชๅˆ†ๆž
+
+### ๆƒ…็ปชไปช่กจ็›˜
+| ๆŒ‡ๆ ‡ | ๅฝ“ๅ‰ๅ€ผ | ๅˆ†ไฝ | ไฟกๅท |
+|------|--------|------|------|
+| ๆ่ดชๆŒ‡ๆ•ฐ(ๅŠ ๅฏ†) | 72 | 75% | ่ดชๅฉช |
+| A่‚กๆขๆ‰‹็އ | 1.8% | 70% | ๅๆดป่ทƒ |
+| PCR(50ETF) | 0.65 | 35% | ๅไน่ง‚ |
+| ่ž่ต„ไฝ™้ขๅ˜ๅŒ–(ๅ‘จ) | +280ไบฟ | 80% | ๆ ๆ†ๅŠ ้€Ÿ |
+| ๅŒ—ๅ‘ๅ‡€ๆตๅ…ฅ(ๅ‘จ) | +120ไบฟ | 60% | ๅๆญฃ้ข |
+
+### ็ปผๅˆๆƒ…็ปช่ฏ„ๅˆ†: 68/100๏ผˆ่ดชๅฉชๅŒบ้—ด๏ผ‰
+
+### ๆƒ…็ปช่งฃ่ฏป
+ๅฝ“ๅ‰ๅธ‚ๅœบๆƒ…็ปชๅ่ดชๅฉช๏ผŒๅคšไธชๆŒ‡ๆ ‡ๆŒ‡ๅ‘ไน่ง‚:
+- ่ž่ต„ไฝ™้ขๅŠ ้€Ÿๅขž้•ฟ๏ผŒๆ ๆ†่ต„้‡‘็งฏๆž
+- ๅŒ—ๅ‘่ต„้‡‘ๆŒ็ปญๆตๅ…ฅ๏ผŒๅค–่ต„ๆ€ๅบฆๆญฃ้ข
+- ไฝ†PCRๅไฝŽ๏ผŒๆœŸๆƒๅธ‚ๅœบ็ผบไนๅฏนๅ†ฒๆ„่ฏ†
+
+### ๆ“ไฝœๅปบ่ฎฎ
+- ๅปบ่ฎฎไป“ไฝ: ้™่‡ณ40-50%
+- ไธ่ฟฝ้ซ˜๏ผŒ็ญ‰ๅ›ž่ฐƒๅ†ๅŠ ไป“
+- ๅฏ้€‚ๅฝ“ไนฐๅ…ฅ็œ‹่ทŒๆœŸๆƒๅฏนๅ†ฒ
+
+### ้ฃŽ้™ฉๆ็คบ
+- ๆƒ…็ปชๆŒ‡ๆ ‡ๆ˜ฏๅๅ‘ๆŒ‡ๆ ‡๏ผŒไธๆ˜ฏ็ฒพ็กฎๆ‹ฉๆ—ถๅทฅๅ…ท
+- ่ถ‹ๅŠฟๅผบๆ—ถๆƒ…็ปชๅฏไปฅๆŒ็ปญๆž็ซฏๅพˆไน…
+```
+
+## ๆณจๆ„ไบ‹้กน
+
+1. **ๅๅ‘ๆŒ‡ๆ ‡ไธๆ˜ฏ็ฒพ็กฎๆ‹ฉๆ—ถ**๏ผšๆƒ…็ปชๅฏไปฅๅœจๆž็ซฏๅŒบๅŸŸๆŒ็ปญๅพˆไน…๏ผŒไธ่ฆไป…ๅ‡ญๆƒ…็ปชๅš็ฉบ/ๅšๅคš
+2. **ๆƒ…็ปช+่ถ‹ๅŠฟ็ป“ๅˆ**๏ผšไธŠๅ‡่ถ‹ๅŠฟไธญ็š„่ดชๅฉชๆ˜ฏๆญฃๅธธ็š„๏ผŒไธ‹้™่ถ‹ๅŠฟไธญ็š„ๆๆƒงไนŸๆ˜ฏๆญฃๅธธ็š„
+3. **ไธๅŒๅธ‚ๅœบไธๅŒ้˜ˆๅ€ผ**๏ผšA่‚กใ€็พŽ่‚กใ€ๅŠ ๅฏ†็š„ๆƒ…็ปช้˜ˆๅ€ผๅทฎๅผ‚ๅคง
+4. **ๆ•ฐๆฎ่Žทๅ–้™ๅˆถ**๏ผš้ƒจๅˆ†ๆƒ…็ปชๆ•ฐๆฎ้œ€่ฆไป˜่ดนAPI๏ผˆๅฆ‚Bloombergๆƒ…็ปชๆŒ‡ๆ ‡ใ€Glassnode๏ผ‰
+5. **็คพไบคๅช’ไฝ“ๅ™ช้Ÿณๅคง**๏ผšๆœบๅ™จไบบ/่ฅ้”€ๅทไผšๅนฒๆ‰ฐ่ˆ†ๆƒ…ๅˆ†ๆž๏ผŒ้œ€่ฆ่ฟ‡ๆปค
+6. **ๅŒ—ๅ‘่ต„้‡‘ๅ˜ๅŒ–**๏ผš2023ๅนดๅŽๅŒ—ๅ‘ๆ•ฐๆฎๆŠซ้œฒ่ง„ๅˆ™ๅ˜ๅŒ–๏ผŒๅฎžๆ—ถๆ•ฐๆฎไธๅฆ‚ไปฅๅ‰้€ๆ˜Ž
+7. **่ž่ต„ๆ•ฐๆฎT+1**๏ผš่ž่ต„่žๅˆธๆ•ฐๆฎไธบT+1ๆ—ฅๅ…ฌๅธƒ๏ผŒๆœ‰ๆปžๅŽ
diff --git a/agent/src/skills/smc/SKILL.md b/agent/src/skills/smc/SKILL.md
new file mode 100644
index 000000000..bfe736e19
--- /dev/null
+++ b/agent/src/skills/smc/SKILL.md
@@ -0,0 +1,41 @@
+---
+name: smc
+description: Smart Money Concepts (ICT) signal engine. Uses the smartmoneyconcepts library to implement institutional-trading-school analysis of BOS, ChoCH, FVG, and order blocks (OB).
+---
+# Smart Money Concepts
+
+## Purpose
+
+The modern institutional trading school (ICT / Inner Circle Trader), built around the core idea of tracking the behavior of "smart money" (institutional capital):
+
+| Concept | English | Meaning |
+|------|------|------|
+| Break of structure | BOS (Break of Structure) | Trend continuation signal |
+| Change of character | ChoCH (Change of Character) | Trend reversal signal |
+| Fair value gap | FVG (Fair Value Gap) | Price refill target |
+| Order blocks | Order Blocks | Institutional order concentration zones |
+| Liquidity | Liquidity | Stop-hunt target zones |
+
+## Signal Logic
+
+Direction from ChoCH + confirmation from BOS + filtering by FVG:
+- **Long**: bullish ChoCH/BOS + bullish FVG exists
+- **Short**: bearish ChoCH/BOS + bearish FVG exists
+- **Stand aside**: no structural signal or conflicting directions
+
+## Dependencies
+
+```bash
+pip install smartmoneyconcepts pandas numpy requests
+```
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| swing_length | 10 | Window for swing high/low detection |
+| close_break | True | Whether BOS/ChoCH requires a closing-price break |
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/smc/example_signal_engine.py b/agent/src/skills/smc/example_signal_engine.py
new file mode 100644
index 000000000..a4a900305
--- /dev/null
+++ b/agent/src/skills/smc/example_signal_engine.py
@@ -0,0 +1,190 @@
+"""Smart Money Concepts (ICT) ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽ smartmoneyconcepts ๅบ“ๅฎž็Žฐๆœบๆž„ไบคๆ˜“ๅญฆๆดพ็š„ๆ ธๅฟƒๅˆ†ๆž๏ผš
+- ็ป“ๆž„็ช็ ด (BOS) / ๆ€ง่ดจ่ฝฌๅ˜ (ChoCH)
+- ๅ…ฌๅ…ไปทๅ€ผ็ผบๅฃ (FVG)
+
+ไฟกๅท้€ป่พ‘๏ผšChoCH ไผ˜ๅ…ˆ่งฆๅ‘ๆ–นๅ‘๏ผŒBOS ็กฎ่ฎค๏ผŒFVG ๅŒๅ‘่ฟ‡ๆปคใ€‚
+"""
+
+import os
+import sys
+from typing import Dict, Optional
+
+# smartmoneyconcepts prints emoji on import โ€” force UTF-8 on Windows
+if sys.platform == "win32":
+ os.environ.setdefault("PYTHONIOENCODING", "utf-8")
+ if hasattr(sys.stdout, "reconfigure"):
+ sys.stdout.reconfigure(encoding="utf-8")
+
+import numpy as np
+import pandas as pd
+from smartmoneyconcepts import smc
+
+
+def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX ่Žทๅ–K็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏน๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎคๆ—ฅ็บฟใ€‚
+ limit: ่Žทๅ–K็บฟๆ•ฐ้‡ใ€‚
+
+ Returns:
+ ๅŒ…ๅซ open/high/low/close/volume ๅˆ—็š„ DataFrame๏ผŒindex ไธบ datetimeใ€‚
+ """
+ import requests
+
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = [
+ "ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm",
+ ]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+class SignalEngine:
+ """Smart Money Concepts ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ๅŸบไบŽ BOS/ChoCH ็ป“ๆž„ไฟกๅท + FVG ่ฟ‡ๆปค๏ผŒ็”Ÿๆˆๅšๅคš/ๅš็ฉบ/่ง‚ๆœ›ไฟกๅทใ€‚
+
+ Attributes:
+ swing_length: Swing ้ซ˜ไฝŽ็‚นๆฃ€ๆต‹็ช—ๅฃๅคงๅฐใ€‚
+ close_break: BOS/ChoCH ๆ˜ฏๅฆ้œ€่ฆๆ”ถ็›˜ไปท็ช็ ด็กฎ่ฎคใ€‚
+
+ Example:
+ >>> engine = SignalEngine(swing_length=50)
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> print(signals["BTC-USDT"].value_counts())
+ """
+
+ def __init__(self, swing_length: int = 10, close_break: bool = True):
+ """ๅˆๅง‹ๅŒ– SMC ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ swing_length: Swing ้ซ˜ไฝŽ็‚นๆฃ€ๆต‹็ช—ๅฃ๏ผŒๅ€ผ่ถŠๅคงๆฃ€ๆต‹ๅˆฐ็š„็ป“ๆž„่ถŠๅฐ‘ไฝ†่ถŠๅฏ้ ใ€‚
+ close_break: ๆ˜ฏๅฆ่ฆๆฑ‚ๆ”ถ็›˜ไปท็ช็ ดๆ‰็ฎ—ๆœ‰ๆ•ˆ BOS/ChoCHใ€‚
+ """
+ self.swing_length = swing_length
+ self.close_break = close_break
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎ Smart Money Concepts ็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close/volume ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for code, df in data_map.items():
+ signal = pd.Series(0, index=df.index)
+
+ ohlc = df[["open", "high", "low", "close", "volume"]].copy()
+ ohlc.columns = ["open", "high", "low", "close", "volume"]
+
+ min_bars = self.swing_length * 2
+ if len(ohlc) < min_bars:
+ print(f" {code} K็บฟไธ่ถณ {min_bars} ๆ น๏ผŒ่ทณ่ฟ‡")
+ result[code] = signal
+ continue
+
+ try:
+ signal = self._compute_signal(ohlc, df.index)
+ except Exception as e:
+ print(f" {code} SMC่ฎก็ฎ—ๅผ‚ๅธธ: {e}")
+
+ result[code] = signal
+ return result
+
+ def _compute_signal(
+ self, ohlc: pd.DataFrame, original_index: pd.Index
+ ) -> pd.Series:
+ """ๅฏนๅ•ไธชๆ ‡็š„่ฎก็ฎ— SMC ไฟกๅทใ€‚
+
+ Args:
+ ohlc: ๆ ‡ๅ‡†ๅŒ–็š„ OHLCV DataFrameใ€‚
+ original_index: ๅŽŸๅง‹ DataFrame ็š„ index๏ผŒ็”จไบŽๅฏน้ฝ่พ“ๅ‡บใ€‚
+
+ Returns:
+ ไฟกๅท Series๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ signal = pd.Series(0, index=original_index)
+
+ # 1) Swing ้ซ˜ไฝŽ็‚นๆฃ€ๆต‹
+ swing_hl = smc.swing_highs_lows(ohlc, swing_length=self.swing_length)
+
+ # 2) BOS / ChoCH ็ป“ๆž„็ช็ ดๆฃ€ๆต‹
+ bos_choch = smc.bos_choch(
+ ohlc, swing_highs_lows=swing_hl, close_break=self.close_break
+ )
+
+ # 3) FVG ๅ…ฌๅ…ไปทๅ€ผ็ผบๅฃๆฃ€ๆต‹
+ fvg = smc.fvg(ohlc)
+
+ # ๆๅ–ไฟกๅทๅˆ—๏ผˆNaN ๅกซ 0๏ผ‰
+ bos_val = bos_choch["BOS"].fillna(0).astype(int)
+ choch_val = bos_choch["CHOCH"].fillna(0).astype(int)
+ fvg_val = fvg["FVG"].fillna(0).astype(int)
+
+ # ็ป“ๆž„ไฟกๅท๏ผšChoCH ไผ˜ๅ…ˆ๏ผŒBOS ่กฅๅ……
+ structure = choch_val.where(choch_val != 0, bos_val)
+
+ # FVG ่ฟ‡ๆปค๏ผšๅชๅœจ FVG ๅŒๅ‘ๆˆ–ไธญๆ€งๆ—ถๅ‡บไฟกๅท
+ buy = (structure == 1) & (fvg_val >= 0)
+ sell = (structure == -1) & (fvg_val <= 0)
+
+ raw_signal = buy.astype(int) - sell.astype(int)
+ signal[:] = raw_signal.values
+
+ return signal
+
+
+if __name__ == "__main__":
+ instruments = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+
+ print("=" * 50)
+ print("Smart Money Concepts ไฟกๅทๅผ•ๆ“Ž E2E ๆต‹่ฏ•")
+ print("=" * 50)
+
+ for inst in instruments:
+ print(f"\n่Žทๅ– {inst} ๆ—ฅ็บฟๆ•ฐๆฎ...")
+ try:
+ data_map[inst] = _fetch_okx(inst, bar="1D", limit=300)
+ print(f" {inst}: {len(data_map[inst])} ๆ นK็บฟ")
+ except Exception as e:
+ print(f" {inst} ่Žทๅ–ๅคฑ่ดฅ: {e}")
+
+ if not data_map:
+ print("ๆ— ๆ•ฐๆฎ๏ผŒ้€€ๅ‡บ")
+ exit(1)
+
+ engine = SignalEngine(swing_length=10, close_break=True)
+ signals = engine.generate(data_map)
+
+ print("\n" + "=" * 50)
+ print("ไฟกๅท็ปŸ่ฎก")
+ print("=" * 50)
+ for code, sig in signals.items():
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"\n{code} ({len(data_map[code])} ๆ นK็บฟ)")
+ print(f" ๅšๅคšไฟกๅท: {len(buys)} ไธช")
+ print(f" ๅš็ฉบไฟกๅท: {len(sells)} ไธช")
+ if len(buys) > 0:
+ print(f" ๆœ€่ฟ‘ๅšๅคš: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" ๆœ€่ฟ‘ๅš็ฉบ: {sells.index[-1]:%Y-%m-%d}")
diff --git "a/agent/src/skills/smc/references/\347\273\223\346\236\204\347\252\201\347\240\264.md" "b/agent/src/skills/smc/references/\347\273\223\346\236\204\347\252\201\347\240\264.md"
new file mode 100644
index 000000000..cf3607c45
--- /dev/null
+++ "b/agent/src/skills/smc/references/\347\273\223\346\236\204\347\252\201\347\240\264.md"
@@ -0,0 +1,24 @@
+# ็ป“ๆž„็ช็ ด (BOS) ไธŽๆ€ง่ดจ่ฝฌๅ˜ (ChoCH)
+
+## BOS (Break of Structure)
+
+็ป“ๆž„็ช็ ดๆ˜ฏๅธ‚ๅœบ่ถ‹ๅŠฟๅปถ็ปญ็š„ไฟกๅท๏ผš
+- **็œ‹ๆถจBOS**๏ผšไปทๆ ผ็ช็ ดๅ‰ไธ€ไธชswing้ซ˜็‚น๏ผŒ็กฎ่ฎคไธŠๆถจ่ถ‹ๅŠฟๅปถ็ปญ
+- **็œ‹่ทŒBOS**๏ผšไปทๆ ผ่ทŒ็ ดๅ‰ไธ€ไธชswingไฝŽ็‚น๏ผŒ็กฎ่ฎคไธ‹่ทŒ่ถ‹ๅŠฟๅปถ็ปญ
+
+BOS่กจๆ˜Žๅฝ“ๅ‰่ถ‹ๅŠฟๆ–นๅ‘ไป็„ถๆœ‰ๆ•ˆ๏ผŒๆœบๆž„่ต„้‡‘ไปๅœจๅŒไธ€ๆ–นๅ‘่ฟไฝœใ€‚
+
+## ChoCH (Change of Character)
+
+ๆ€ง่ดจ่ฝฌๅ˜ๆ˜ฏ่ถ‹ๅŠฟๅฏ่ƒฝๅ่ฝฌ็š„ไฟกๅท๏ผš
+- **็œ‹ๆถจChoCH**๏ผšๅœจไธ‹่ทŒ่ถ‹ๅŠฟไธญ๏ผŒไปทๆ ผ็ช็ ดๅ‰ไธ€ไธชswing้ซ˜็‚น
+- **็œ‹่ทŒChoCH**๏ผšๅœจไธŠๆถจ่ถ‹ๅŠฟไธญ๏ผŒไปทๆ ผ่ทŒ็ ดๅ‰ไธ€ไธชswingไฝŽ็‚น
+
+ChoCHๆ˜ฏๆฏ”BOSๆ›ดๅผบ็š„ไฟกๅท๏ผŒๅ› ไธบๅฎƒ่กจ็คบๅธ‚ๅœบ็ป“ๆž„ๅ‘็”Ÿไบ†ๆ นๆœฌๆ€งๅ˜ๅŒ–ใ€‚
+
+## ไฟกๅทๆƒ้‡
+
+ๅœจๆœฌๅผ•ๆ“Žไธญ๏ผš
+- ChoCH ไฟกๅทๆƒ้‡ๆœ€้ซ˜๏ผˆ่ถ‹ๅŠฟๅ่ฝฌ๏ผ‰
+- BOS ไฟกๅท็”จไบŽ็กฎ่ฎค๏ผˆ่ถ‹ๅŠฟๅปถ็ปญ๏ผ‰
+- ไธค่€…็ป“ๅˆ FVG ่ฟ‡ๆปค๏ผŒๅ‡ๅฐ‘ๅ‡ไฟกๅท
diff --git "a/agent/src/skills/smc/references/\350\256\242\345\215\225\345\235\227\344\270\216\347\274\272\345\217\243.md" "b/agent/src/skills/smc/references/\350\256\242\345\215\225\345\235\227\344\270\216\347\274\272\345\217\243.md"
new file mode 100644
index 000000000..745d85ab4
--- /dev/null
+++ "b/agent/src/skills/smc/references/\350\256\242\345\215\225\345\235\227\344\270\216\347\274\272\345\217\243.md"
@@ -0,0 +1,28 @@
+# ่ฎขๅ•ๅ— (Order Blocks) ไธŽๅ…ฌๅ…ไปทๅ€ผ็ผบๅฃ (FVG)
+
+## Order Blocks (่ฎขๅ•ๅ—)
+
+่ฎขๅ•ๅ—ๆ˜ฏๆœบๆž„ๅคง้‡ๅปบไป“็š„ๅŒบๅŸŸ๏ผŒ้€šๅธธ่กจ็Žฐไธบ๏ผš
+- ไปทๆ ผๅฟซ้€Ÿ็ฆปๅผ€ๆŸไธชไปทๆ ผๅŒบๅŸŸ
+- ่ฏฅๅŒบๅŸŸ้šๅŽๆˆไธบๅผบๆ”ฏๆ’‘ๆˆ–้˜ปๅŠ›
+- ๅฝ“ไปทๆ ผๅ›žๆต‹่ฎขๅ•ๅ—ๆ—ถ๏ผŒๅพ€ๅพ€ไผšๅ‡บ็Žฐๅๅบ”
+
+### ็œ‹ๆถจ่ฎขๅ•ๅ—
+ไธ‹่ทŒ่ถ‹ๅŠฟไธญๆœ€ๅŽไธ€ๆ น้˜ด็บฟ็š„ๅŒบๅŸŸ๏ผŒ้šๅŽไปทๆ ผๅผบๅŠ›ไธŠๆถจใ€‚
+
+### ็œ‹่ทŒ่ฎขๅ•ๅ—
+ไธŠๆถจ่ถ‹ๅŠฟไธญๆœ€ๅŽไธ€ๆ น้˜ณ็บฟ็š„ๅŒบๅŸŸ๏ผŒ้šๅŽไปทๆ ผๅผบๅŠ›ไธ‹่ทŒใ€‚
+
+## FVG (Fair Value Gap / ๅ…ฌๅ…ไปทๅ€ผ็ผบๅฃ)
+
+FVGๆ˜ฏไธ‰ๆ นK็บฟไธญ้—ดๅ‡บ็Žฐ็š„ไปทๆ ผ็ผบๅฃ๏ผš
+- **็œ‹ๆถจFVG**๏ผš็ฌฌไธ‰ๆ นK็บฟ็š„ไฝŽ็‚น > ็ฌฌไธ€ๆ นK็บฟ็š„้ซ˜็‚น๏ผˆไธญ้—ด็•™ไธ‹็ฉบ็™ฝ๏ผ‰
+- **็œ‹่ทŒFVG**๏ผš็ฌฌไธ‰ๆ นK็บฟ็š„้ซ˜็‚น < ็ฌฌไธ€ๆ นK็บฟ็š„ไฝŽ็‚น
+
+FVGไปฃ่กจไนฐๅ–ๅŠ›้‡็š„ๆžๅบฆไธๅนณ่กก๏ผŒไปทๆ ผ้€šๅธธไผšๅ›žๆฅ"ๅกซ่กฅ"่ฟ™ไธช็ผบๅฃใ€‚
+
+## ๅœจไฟกๅทไธญ็š„ไฝœ็”จ
+
+FVGไฝœไธบ่ฟ‡ๆปคๅ™จไฝฟ็”จ๏ผš
+- ๅฝ“ๅญ˜ๅœจ็œ‹ๆถจFVGๆ—ถ๏ผŒๅšๅคšไฟกๅทๆ›ดๅฏ้ ๏ผˆ่กจๆ˜Žไนฐๆ–นๅŠ›้‡ๅผบๅŠฒ๏ผ‰
+- ๅฝ“ๅญ˜ๅœจ็œ‹่ทŒFVGๆ—ถ๏ผŒๅš็ฉบไฟกๅทๆ›ดๅฏ้ ๏ผˆ่กจๆ˜Žๅ–ๆ–นๅŠ›้‡ๅผบๅŠฒ๏ผ‰
diff --git a/agent/src/skills/social-media-intelligence/SKILL.md b/agent/src/skills/social-media-intelligence/SKILL.md
new file mode 100644
index 000000000..d3aac215c
--- /dev/null
+++ b/agent/src/skills/social-media-intelligence/SKILL.md
@@ -0,0 +1,1294 @@
+---
+name: social-media-intelligence
+description: "Social media intelligence: financial signal extraction from Twitter/X, Telegram, Discord, and Reddit for sentiment-driven trading strategies."
+---
+
+# Social Media Intelligence
+
+> This skill integrates financial-intelligence collection methods and quantitative applications across Twitter/X, Telegram, Discord, and Reddit.
+> Inspired by `himself65/finance-skills` modules such as `discord-reader`, `telegram-reader`, and `twitter-reader`.
+
+---
+
+## 1. Overview of the Four Major Financial Social Platforms
+
+### 1.1 Twitter/X โ€” The FinTwit Ecosystem
+
+**Core roles**
+
+| Role Type | Representative Account Traits | Signal Value |
+|---------|------------|---------|
+| Sell-side analyst | Institutional backing, dense posting around earnings | Medium, somewhat lagging |
+| Fund manager | Holdings views, industry judgment | High, but mixed with subjective opinion |
+| Macro commentator | Fed interpretation, macro-data reaction | High, a good sentiment barometer |
+| Crypto KOL | On-chain interpretation, project endorsement | Highly volatile, high manipulation risk |
+| Retail noise | Meme spread, herd sentiment | Contrarian signal value at extremes |
+
+**Core FinTwit circles**
+- `$TICKER` cashtag system directly maps discussion to the asset
+- Earnings-season sentiment patterns before and after reports
+- Real-time reaction speed to policy / macro events, often 15-60 minutes ahead of traditional media
+
+---
+
+### 1.2 Telegram โ€” The Core Venue for Crypto Intelligence
+
+**Channel types**
+
+| Channel Type | Content Traits | How to Use |
+|---------|---------|---------|
+| Signal channels | Specific buy/sell levels, stop-loss / take-profit | Use as a sentiment thermometer, not for blind copy-trading |
+| Research push channels | Institutional PDF reports, on-chain data | Aggregate information and extract key numbers |
+| Macro flash channels | Real-time interpretation of FOMC, CPI, etc. | Event-driven signals |
+| Official project channels | Tokenomics updates, partnership announcements | Potential alpha, but requires filtering |
+| Whale alert channels | Large on-chain transfer alerts | Capital-flow signal |
+
+---
+
+### 1.3 Discord โ€” Quant Communities and Project Ecosystems
+
+**Important community types**
+- Quant / DeFi research communities such as Degen Spartan and Messari Research
+- Official crypto project Discords with governance discussion and development progress
+- Trader communities focused on options flow and on-chain analysis
+- NFT / GameFi projects with floor-price alerts and activity monitoring
+
+**Distinctive value of Discord**
+- Community activity directly reflects project health
+- Developer channels such as `#dev` and `#build` show implementation activity
+- Governance participation indicates the willingness of token holders to stay involved
+
+---
+
+### 1.4 Reddit โ€” A Barometer of Retail Sentiment
+
+**Core subreddits**
+
+| Subreddit | Core User Base | Main Signal |
+|-------|---------|---------|
+| r/wallstreetbets | Retail options traders | Meme-stock heat, abnormal options chatter |
+| r/investing | Value-oriented retail investors | Long-horizon sentiment, ETF flow |
+| r/cryptocurrency | Crypto retail | BTC / ETH cycle sentiment |
+| r/stocks | General stock discussants | Earnings-season sentiment |
+| r/options | Options-strategy community | Unusual IV-related topics |
+
+---
+
+## 2. Data Collection Methods
+
+### 2.1 Twitter/X Data Collection
+
+**Tooling options**
+
+```python
+# Option A: Official API v2 (paid, basic tier starts at $100/month)
+# Best for: production environments where compliance is the priority
+from tweepy import Client
+
+client = Client(bearer_token=os.getenv("TWITTER_BEARER_TOKEN"))
+
+# Search tweets discussing a cashtag over the last 7 days
+def fetch_cashtag_tweets(ticker: str, max_results: int = 100) -> list[dict]:
+ """Collect Twitter discussion data for a given ticker.
+
+ Args:
+ ticker: Ticker symbol such as AAPL or BTC
+ max_results: Max number of returned tweets, between 10 and 100
+
+ Returns:
+ List of tweets, each containing id / text / created_at / public_metrics
+ """
+ query = f"${ticker} -is:retweet lang:en"
+ tweets = client.search_recent_tweets(
+ query=query,
+ max_results=max_results,
+ tweet_fields=["created_at", "public_metrics", "author_id"],
+ )
+ return [t.data for t in tweets.data or []]
+
+
+# Option B: ntscraper (unofficial, free, rate-limited)
+# Best for: research / historical backtesting
+# pip install ntscraper
+from ntscraper import Nitter
+
+scraper = Nitter()
+tweets = scraper.get_tweets("$AAPL", mode="term", number=50)
+```
+
+**Data schema (Twitter JSON Schema)**
+
+```json
+{
+ "platform": "twitter",
+ "collected_at": "2026-03-29T08:00:00Z",
+ "query": "$AAPL",
+ "items": [
+ {
+ "id": "tweet_id_string",
+ "text": "tweet text",
+ "created_at": "ISO8601 timestamp",
+ "author": {
+ "id": "user_id",
+ "username": "handle",
+ "followers_count": 50000,
+ "verified": false
+ },
+ "metrics": {
+ "like_count": 120,
+ "retweet_count": 45,
+ "reply_count": 23,
+ "quote_count": 8
+ },
+ "sentiment_score": null,
+ "tags": ["$AAPL", "#earnings"]
+ }
+ ]
+}
+```
+
+**Suggested collection frequency**
+- Earnings season / major events: real time, poll every 5 minutes
+- Routine monitoring: hourly
+- Historical backfill: daily batch
+
+---
+
+### 2.2 Telegram Data Collection
+
+**Tooling**
+
+```python
+# Telethon โ€” official MTProto client, requires API_ID + API_HASH
+# pip install telethon
+from telethon.sync import TelegramClient
+from telethon import functions
+
+API_ID = int(os.getenv("TELEGRAM_API_ID"))
+API_HASH = os.getenv("TELEGRAM_API_HASH")
+
+async def fetch_channel_messages(
+ channel_username: str,
+ limit: int = 200,
+ offset_date: datetime | None = None,
+) -> list[dict]:
+ """Collect historical messages from a Telegram channel.
+
+ Args:
+ channel_username: Channel username without @, e.g. "whale_alert"
+ limit: Maximum number of messages
+ offset_date: Start time to backtrack from
+
+ Returns:
+ List of messages containing id / text / date / views / forwards
+ """
+ async with TelegramClient("session", API_ID, API_HASH) as client:
+ messages = []
+ async for msg in client.iter_messages(
+ channel_username, limit=limit, offset_date=offset_date
+ ):
+ if msg.text:
+ messages.append({
+ "id": msg.id,
+ "text": msg.text,
+ "date": msg.date.isoformat(),
+ "views": getattr(msg, "views", 0),
+ "forwards": getattr(msg, "forwards", 0),
+ })
+ return messages
+```
+
+**Data schema (Telegram JSON Schema)**
+
+```json
+{
+ "platform": "telegram",
+ "channel": "whale_alert",
+ "collected_at": "2026-03-29T08:00:00Z",
+ "items": [
+ {
+ "id": 12345,
+ "text": "message text",
+ "date": "ISO8601 timestamp",
+ "views": 85000,
+ "forwards": 320,
+ "has_media": false,
+ "reply_to_msg_id": null,
+ "sentiment_score": null
+ }
+ ]
+}
+```
+
+**Suggested collection frequency**
+- Whale-alert / flash channels: real-time push, webhook mode
+- Signal channels: every 30 minutes
+- Research channels: daily
+
+---
+
+### 2.3 Discord Data Collection
+
+**Tooling**
+
+```python
+# discord.py โ€” official Bot API, requires Bot Token + server invitation permission
+# pip install discord.py
+import discord
+from discord.ext import commands
+
+async def fetch_channel_history(
+ channel_id: int,
+ limit: int = 500,
+ after: datetime | None = None,
+) -> list[dict]:
+ """Collect message history from a Discord channel.
+
+ Args:
+ channel_id: Discord channel ID
+ limit: Maximum number of messages, capped at 500 per request
+ after: Start timestamp to backtrack from
+
+ Returns:
+ List of messages containing id / content / timestamp / author / reactions
+ """
+ bot = commands.Bot(command_prefix="!")
+ messages = []
+
+ @bot.event
+ async def on_ready():
+ channel = bot.get_channel(channel_id)
+ async for msg in channel.history(limit=limit, after=after):
+ messages.append({
+ "id": str(msg.id),
+ "content": msg.content,
+ "timestamp": msg.created_at.isoformat(),
+ "author": {
+ "id": str(msg.author.id),
+ "name": msg.author.name,
+ "bot": msg.author.bot,
+ },
+ "reaction_count": sum(r.count for r in msg.reactions),
+ "attachments": len(msg.attachments),
+ })
+ await bot.close()
+
+ await bot.start(os.getenv("DISCORD_BOT_TOKEN"))
+ return messages
+```
+
+**Data schema (Discord JSON Schema)**
+
+```json
+{
+ "platform": "discord",
+ "guild_id": "server_id_string",
+ "channel_id": "channel_id_string",
+ "channel_name": "general-trading",
+ "collected_at": "2026-03-29T08:00:00Z",
+ "items": [
+ {
+ "id": "message_id_string",
+ "content": "message text",
+ "timestamp": "ISO8601 timestamp",
+ "author": {
+ "id": "user_id_string",
+ "name": "username#1234",
+ "roles": ["Member", "Whale"],
+ "bot": false
+ },
+ "reaction_count": 42,
+ "thread_count": 3,
+ "sentiment_score": null
+ }
+ ]
+}
+```
+
+**Suggested collection frequency**
+- Active trading communities: hourly
+- Official project channels: every 4 hours
+- Governance channels: daily
+
+---
+
+### 2.4 Reddit Data Collection
+
+**Tooling**
+
+```python
+# PRAW โ€” official Reddit Python wrapper, free API
+# pip install praw
+import praw
+
+def fetch_subreddit_posts(
+ subreddit_name: str,
+ mode: str = "hot",
+ limit: int = 100,
+ time_filter: str = "day",
+) -> list[dict]:
+ """Collect hot posts and related metadata from a subreddit.
+
+ Args:
+ subreddit_name: Subreddit name, e.g. "wallstreetbets"
+ mode: Sort mode: "hot" / "new" / "top" / "rising"
+ limit: Maximum number of posts
+ time_filter: Time filter for top mode, e.g. "hour" / "day" / "week"
+
+ Returns:
+ List of posts containing id / title / score / comments / created_utc
+ """
+ reddit = praw.Reddit(
+ client_id=os.getenv("REDDIT_CLIENT_ID"),
+ client_secret=os.getenv("REDDIT_CLIENT_SECRET"),
+ user_agent="vibe-trading/1.0",
+ )
+ subreddit = reddit.subreddit(subreddit_name)
+ posts = []
+
+ fetch_fn = {
+ "hot": subreddit.hot,
+ "new": subreddit.new,
+ "top": lambda limit: subreddit.top(time_filter=time_filter, limit=limit),
+ "rising": subreddit.rising,
+ }[mode]
+
+ for post in fetch_fn(limit=limit):
+ posts.append({
+ "id": post.id,
+ "title": post.title,
+ "selftext": post.selftext[:500], # truncated body
+ "score": post.score,
+ "upvote_ratio": post.upvote_ratio,
+ "num_comments": post.num_comments,
+ "created_utc": post.created_utc,
+ "url": post.url,
+ "flair": post.link_flair_text,
+ })
+ return posts
+```
+
+**Data schema (Reddit JSON Schema)**
+
+```json
+{
+ "platform": "reddit",
+ "subreddit": "wallstreetbets",
+ "collected_at": "2026-03-29T08:00:00Z",
+ "items": [
+ {
+ "id": "post_id",
+ "title": "post title",
+ "selftext": "body summary (500 chars)",
+ "score": 12500,
+ "upvote_ratio": 0.94,
+ "num_comments": 847,
+ "created_utc": 1743206400.0,
+ "flair": "YOLO",
+ "mentioned_tickers": ["GME", "AMC"],
+ "sentiment_score": null
+ }
+ ]
+}
+```
+
+**Suggested collection frequency**
+- r/wallstreetbets around the market open: every 30 minutes
+- r/investing / r/stocks: every 4 hours
+- r/cryptocurrency: hourly
+
+---
+
+### 2.5 Compliance and Privacy Notes
+
+**Must comply with**
+- Twitter API terms: do not resell data to third parties; obey rate limits such as the basic-tier 500,000 tweets/month allowance
+- Telegram personal messages must not be collected; only public channels / groups are in scope
+- Discord must be accessed through the official Bot API; self-bots violate ToS and may get banned
+- Reddit PRAW rate limit: 60 requests/minute for authenticated users
+
+**Data storage rules**
+- Store user IDs in masked form such as hashes; do not retain raw usernames
+- Store raw text locally only and do not expose it through public APIs
+- Periodically purge raw data older than 30 days and keep only aggregated metrics
+
+---
+
+## 3. Sentiment Quantification Methodology
+
+### 3.1 Text Sentiment Scoring
+
+#### Option A: VADER (Lightweight, English, Good for Short Social Posts)
+
+```python
+# pip install vaderSentiment
+from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
+
+def vader_score(text: str) -> dict:
+ """Score the sentiment of social-media text using VADER.
+
+ Args:
+ text: Raw social-media text such as a tweet, post, or message
+
+ Returns:
+ {'pos': float, 'neg': float, 'neu': float, 'compound': float}
+ compound is in [-1, 1], where > 0.05 is positive and < -0.05 is negative
+ """
+ analyzer = SentimentIntensityAnalyzer()
+ return analyzer.polarity_scores(text)
+```
+
+**Characteristics**: No GPU required, suitable for high-frequency batch processing; weaker on finance-specific slang such as "bull" or "moon".
+
+#### Option B: FinBERT (Finance-Specific BERT)
+
+```python
+# pip install transformers torch
+from transformers import pipeline
+
+_finbert = None
+
+def get_finbert():
+ """Lazily load the FinBERT model. First call takes roughly 1-2 seconds."""
+ global _finbert
+ if _finbert is None:
+ _finbert = pipeline(
+ "text-classification",
+ model="ProsusAI/finbert",
+ tokenizer="ProsusAI/finbert",
+ )
+ return _finbert
+
+def finbert_score(text: str) -> dict:
+ """Classify sentiment in finance text using FinBERT.
+
+ Args:
+ text: Finance-related text, truncated to 512 tokens
+
+ Returns:
+ {'label': 'positive'|'negative'|'neutral', 'score': float}
+ """
+ result = get_finbert()(text[:512])[0]
+ score_map = {"positive": 1.0, "neutral": 0.0, "negative": -1.0}
+ return {
+ "label": result["label"],
+ "score": score_map[result["label"]] * result["score"],
+ }
+```
+
+**Characteristics**: Stronger understanding of finance terms such as earnings, guidance, beat/miss; GPU acceleration is preferred for large batches.
+
+#### Option C: LLM-Based (Highest Precision, Best for Long and Complex Text)
+
+```python
+def llm_sentiment(text: str, ticker: str | None = None) -> dict:
+ """Use an LLM to analyze sentiment in complex finance text.
+
+ Args:
+ text: Raw text such as a report summary or Discord thread
+ ticker: Related asset symbol, if available
+
+ Returns:
+ {'score': float[-1,1], 'label': str, 'reason': str}
+
+ Note:
+ Each call consumes roughly 500 tokens.
+ Use only on samples where VADER / FinBERT confidence is below 0.6.
+ """
+ context = f"Ticker: {ticker}\n" if ticker else ""
+ prompt = f"""{context}Analyze the sentiment of the following finance text and return JSON:
+{{"score": <float from -1 to 1>, "label": <"bullish"|"bearish"|"neutral">, "reason": <one-sentence explanation>}}
+
+Text: {text[:1000]}"""
+ # Call the current agent's LLM interface
+ from src.providers.base import get_llm
+ response = get_llm().invoke(prompt)
+ import json
+ return json.loads(response.content)
+```
+
+**Recommendation by scenario**
+
+| Scenario | Recommended Method | Reason |
+|-----|---------|------|
+| Real-time Twitter / Reddit batch processing | VADER | Low latency, no GPU required |
+| Earnings-related text | FinBERT | Strong finance-term understanding |
+| Telegram research summaries | LLM-based | Better on long-form and nuanced meaning |
+| Multi-turn Discord discussion | FinBERT + LLM | Good balance of precision and cost |
+
+---
+
+### 3.2 Discussion-Buzz Metrics
+
+```python
+import pandas as pd
+import numpy as np
+
+def compute_buzz_metrics(df: pd.DataFrame, window: str = "1H") -> pd.DataFrame:
+ """Compute time-series discussion-buzz metrics.
+
+ Args:
+ df: Message DataFrame containing timestamp / platform / ticker columns
+ window: Aggregation window, such as "1H" / "4H" / "1D"
+
+ Returns:
+ Time-series DataFrame with:
+ - msg_count: message volume
+ - unique_authors: count of distinct active users
+ - topic_freq: topic frequency as ticker volume / total message volume
+ - engagement_score: weighted interaction count
+ - buzz_zscore: message-volume Z-score for anomaly detection
+ """
+ df["timestamp"] = pd.to_datetime(df["timestamp"])
+ df = df.set_index("timestamp").sort_index()
+
+ result = df.resample(window).agg(
+ msg_count=("text", "count"),
+ unique_authors=("author_id", "nunique"),
+ total_engagement=("engagement", "sum"),
+ )
+
+ # Topic frequency, i.e. relative buzz.
+ total = df.resample(window)["text"].count()
+ result["topic_freq"] = result["msg_count"] / total.replace(0, np.nan)
+
+ # Z-score anomaly detection using a 30-window rolling baseline.
+ roll_mean = result["msg_count"].rolling(30, min_periods=5).mean()
+ roll_std = result["msg_count"].rolling(30, min_periods=5).std()
+ result["buzz_zscore"] = (result["msg_count"] - roll_mean) / roll_std.replace(0, np.nan)
+
+ return result
+```
+
+**Key buzz metrics**
+- `msg_count`: raw message count, measures absolute attention
+- `unique_authors`: distinct users, reduces bot / spam distortion
+- `buzz_zscore > 2.0`: abnormal buzz, triggers alerts
+- `topic_freq`: relative buzz, controls for broad market-wide sentiment amplification
+
+---
+
+### 3.3 Sentiment Extremes (Fear / Greed Indicator)
+
+```python
+def compute_fear_greed_index(
+ sentiment_series: pd.Series,
+ buzz_series: pd.Series,
+ lookback: int = 30,
+) -> pd.Series:
+ """Construct a CNN-style fear-and-greed index.
+
+ Args:
+ sentiment_series: Daily average sentiment in [-1, 1]
+ buzz_series: Daily message-volume series
+ lookback: Historical window in days used for percentile ranking
+
+ Returns:
+ Fear-and-greed index in [0, 100]
+ 0-20: extreme fear
+ 20-40: fear
+ 40-60: neutral
+ 60-80: greed
+ 80-100: extreme greed
+
+ Note:
+ Extreme greed (>80) is often a short-term top signal.
+ Extreme fear (<20) is often a short-term bottom signal.
+ """
+ # Normalize sentiment by percentile rank.
+ sentiment_rank = sentiment_series.rolling(lookback).rank(pct=True) * 100
+
+ # Normalize buzz by percentile rank.
+ buzz_rank = buzz_series.rolling(lookback).rank(pct=True) * 100
+
+ # Weighted combination: 60% sentiment + 40% buzz.
+ fear_greed = 0.6 * sentiment_rank + 0.4 * buzz_rank
+
+ return fear_greed.clip(0, 100)
+```
+
+**Extreme-sentiment thresholds**
+
+| Range | State | Historical Meaning | Trading Interpretation |
+|---------|-----|---------|---------|
+| 0-20 | Extreme fear | Panic selling, liquidity stress | Contrarian long candidate |
+| 20-40 | Fear | Pessimism spreading | Wait and watch for stabilization |
+| 40-60 | Neutral | Balanced sentiment | Let fundamentals lead |
+| 60-80 | Greed | Optimism dominant | Candidate for trimming risk |
+| 80-100 | Extreme greed | FOMO-driven retail influx | Contrarian short candidate |
+
+---
+
+### 3.4 Retail vs Institutional Sentiment
+
+```python
+def classify_author_type(author: dict) -> str:
+ """Classify an account as retail / institutional / KOL using profile traits.
+
+ Args:
+ author: Dict containing followers_count / verified / account_age_days /
+ tweet_count / following_count
+
+ Returns:
+ 'institutional': institutional account
+ 'kol': high-impact KOL
+ 'retail': retail user
+ 'bot_risk': suspected bot
+
+ Note:
+ Institutional sentiment should carry more weight than KOL,
+ and KOL more than retail. Retail extremes often have contrarian value.
+ """
+ followers = author.get("followers_count", 0)
+ verified = author.get("verified", False)
+ age_days = author.get("account_age_days", 0)
+ tweet_count = author.get("tweet_count", 0)
+
+ # Bot-risk detection
+ if age_days < 30 and tweet_count > 1000:
+ return "bot_risk"
+ if tweet_count > 0 and (tweet_count / max(age_days, 1)) > 50:
+ return "bot_risk"
+
+ # Institutional characteristics: verified plus large audience
+ if verified and followers > 100_000:
+ return "institutional"
+
+ # KOL: large following but not necessarily verified
+ if followers > 10_000:
+ return "kol"
+
+ return "retail"
+
+
+def weighted_sentiment(
+ df: pd.DataFrame,
+ weights: dict | None = None,
+) -> pd.Series:
+ """Compute weighted sentiment by author category.
+
+ Args:
+ df: DataFrame containing sentiment_score / author_type / timestamp
+ weights: Optional category weights, defaults to institutional:3, kol:2, retail:1
+
+ Returns:
+ Daily weighted sentiment time series
+ """
+ if weights is None:
+ weights = {"institutional": 3.0, "kol": 2.0, "retail": 1.0, "bot_risk": 0.0}
+
+ df["weight"] = df["author_type"].map(weights).fillna(1.0)
+ df["weighted_sentiment"] = df["sentiment_score"] * df["weight"]
+
+ return (
+ df.groupby(df["timestamp"].dt.date)
+ .apply(lambda g: g["weighted_sentiment"].sum() / g["weight"].sum())
+ .rename("weighted_sentiment")
+ )
+```
+
+---
+
+## 4. Using Social Signals as Factors
+
+### 4.1 Social-Sentiment Factor Construction and IC / ICIR Testing
+
+```python
+import pandas as pd
+import numpy as np
+from scipy.stats import spearmanr
+
+def compute_ic(
+ factor_series: pd.Series,
+ forward_return: pd.Series,
+ method: str = "spearman",
+) -> float:
+ """Compute one-period factor IC (information coefficient).
+
+ Args:
+ factor_series: Cross-sectional factor values, e.g. same-day sentiment by ticker
+ forward_return: Matching forward N-day returns
+ method: "spearman" for rank correlation or "pearson"
+
+ Returns:
+ IC in [-1, 1]. |IC| > 0.05 is useful and > 0.1 is strong.
+ """
+ aligned = pd.concat([factor_series, forward_return], axis=1).dropna()
+ if len(aligned) < 5:
+ return np.nan
+
+ if method == "spearman":
+ ic, _ = spearmanr(aligned.iloc[:, 0], aligned.iloc[:, 1])
+ else:
+ ic = aligned.iloc[:, 0].corr(aligned.iloc[:, 1])
+ return ic
+
+
+def compute_icir(ic_series: pd.Series) -> float:
+ """Compute ICIR, the information ratio of IC.
+
+ Args:
+ ic_series: Time series of IC values
+
+ Returns:
+ ICIR = mean(IC) / std(IC), where > 0.5 is useful and > 1.0 is strong
+ """
+ return ic_series.mean() / ic_series.std() if ic_series.std() > 0 else np.nan
+
+
+# Example factor-construction workflow
+def build_sentiment_factor(
+ raw_data: pd.DataFrame,
+ forward_days: int = 5,
+) -> dict:
+ """Build a complete social-sentiment factor and test its effectiveness.
+
+ Args:
+ raw_data: Raw data containing date / ticker / sentiment_score / author_type
+ forward_days: Forward return horizon in days
+
+ Returns:
+ {'factor': DataFrame, 'ic_series': Series, 'icir': float}
+ """
+ # 1. Cross-sectional standardization
+ factor = (
+ raw_data.groupby("date")["sentiment_score"]
+ .transform(lambda x: (x - x.mean()) / (x.std() + 1e-8))
+ )
+
+ # 2. Compute period-by-period IC
+ ic_list = []
+ dates = raw_data["date"].unique()
+ for date in sorted(dates)[:-forward_days]:
+ fwd_date = dates[dates > date][:forward_days][-1]
+ f = raw_data[raw_data["date"] == date].set_index("ticker")["sentiment_norm"]
+ r = raw_data[raw_data["date"] == fwd_date].set_index("ticker")["return"]
+ ic_list.append((date, compute_ic(f, r)))
+
+ ic_series = pd.Series(dict(ic_list))
+ return {
+ "factor": factor,
+ "ic_series": ic_series,
+ "ic_mean": ic_series.mean(),
+ "icir": compute_icir(ic_series),
+ }
+```
+
+**IC / ICIR grading**
+
+| Metric | Weak | Useful | Strong |
+|-----|----|----|---|
+| \|IC\| | < 0.03 | 0.03-0.08 | > 0.08 |
+| ICIR | < 0.3 | 0.3-0.8 | > 0.8 |
+| IC positive-rate | < 50% | 50-60% | > 60% |
+
+---
+
+### 4.2 Orthogonalization Against Traditional Factors
+
+```python
+def orthogonalize_sentiment(
+ sentiment_factor: pd.Series,
+ traditional_factors: pd.DataFrame,
+) -> pd.Series:
+ """Orthogonalize the sentiment factor against traditional factors.
+
+ Args:
+ sentiment_factor: Raw sentiment factor after cross-sectional normalization
+ traditional_factors: Matrix of traditional factors such as size / momentum / valuation
+
+ Returns:
+ Pure sentiment factor after removing shared components, i.e. the residual
+
+ Note:
+ Orthogonalization often lowers IC, but improves factor independence
+ and reduces double-counting in multi-factor portfolios.
+ """
+ from sklearn.linear_model import LinearRegression
+ import numpy as np
+
+ # Regress on the traditional factors and keep the residual.
+ X = traditional_factors.fillna(0).values
+ y = sentiment_factor.fillna(0).values
+
+ reg = LinearRegression(fit_intercept=True).fit(X, y)
+ residual = y - reg.predict(X)
+
+ return pd.Series(residual, index=sentiment_factor.index)
+```
+
+---
+
+### 4.3 Cross-Platform Sentiment Aggregation Weights
+
+```python
+PLATFORM_WEIGHTS = {
+ # Weight basis: historical IC contribution + information quality
+ "twitter_institutional": 0.35,
+ "twitter_kol": 0.20,
+ "telegram_signal": 0.15,
+ "telegram_research": 0.15,
+ "discord_community": 0.10,
+ "reddit_wsb": 0.05,
+}
+
+def aggregate_platform_sentiment(platform_scores: dict[str, float]) -> float:
+ """Aggregate sentiment scores from multiple platforms using weights.
+
+ Args:
+ platform_scores: Dict of {platform_key: sentiment_score} with scores in [-1, 1]
+
+ Returns:
+ Aggregated sentiment score in [-1, 1]
+ """
+ total_weight = 0.0
+ weighted_sum = 0.0
+
+ for platform, score in platform_scores.items():
+ weight = PLATFORM_WEIGHTS.get(platform, 0.05)
+ weighted_sum += score * weight
+ total_weight += weight
+
+ return weighted_sum / total_weight if total_weight > 0 else 0.0
+```
+
+---
+
+### 4.4 Sentiment-Reversal Signals
+
+```python
+def detect_sentiment_reversal(
+ fg_index: pd.Series,
+ price_series: pd.Series,
+ extreme_threshold: float = 80.0,
+ fear_threshold: float = 20.0,
+ confirmation_days: int = 3,
+) -> pd.DataFrame:
+ """Detect reversal signals from sentiment extremes.
+
+ Args:
+ fg_index: Fear-and-greed index in [0, 100]
+ price_series: Corresponding price series
+ extreme_threshold: Extreme-greed threshold, default 80
+ fear_threshold: Extreme-fear threshold, default 20
+ confirmation_days: Number of days required for confirmation
+
+ Returns:
+ DataFrame containing signal / direction / strength
+ signal = 1: short signal due to sustained extreme greed
+ signal = -1: long signal due to sustained extreme fear
+ signal = 0: no signal
+
+ Note:
+ Sentiment reversals usually lag the exact top or bottom,
+ but can still lead by roughly 3-10 trading days.
+ Use together with price momentum or volume anomalies.
+ """
+ signals = pd.DataFrame(index=fg_index.index)
+ signals["fg"] = fg_index
+ signals["signal"] = 0
+ signals["direction"] = ""
+ signals["strength"] = 0.0
+
+ # Sustained extreme greed โ†’ short signal
+ greed_mask = (fg_index > extreme_threshold).rolling(confirmation_days).sum() == confirmation_days
+ signals.loc[greed_mask, "signal"] = 1
+ signals.loc[greed_mask, "direction"] = "short"
+ signals.loc[greed_mask, "strength"] = (fg_index - extreme_threshold).clip(0) / 20
+
+ # Sustained extreme fear โ†’ long signal
+ fear_mask = (fg_index < fear_threshold).rolling(confirmation_days).sum() == confirmation_days
+ signals.loc[fear_mask, "signal"] = -1
+ signals.loc[fear_mask, "direction"] = "long"
+ signals.loc[fear_mask, "strength"] = (fear_threshold - fg_index).clip(0) / 20
+
+ return signals
+```
+
+---
+
+## 5. Platform-Specific Analysis
+
+### 5.1 Twitter: KOL Influence Tracking + Earnings Sentiment
+
+**KOL influence quantification**
+
+```python
+def compute_kol_influence_score(author: dict, recent_tweets: list[dict]) -> float:
+ """Quantify the market influence of a Twitter KOL.
+
+ Args:
+ author: Account metadata including follower count, verification, and age
+ recent_tweets: Most recent 20 tweets including engagement metrics
+
+ Returns:
+ Influence score in [0, 100]
+
+ Note:
+ KOLs with scores above 70 tend to lift 1-hour realized volatility
+ of the related asset by roughly 15% after posting.
+ """
+ # Follower-quality score, using log follower count
+ follower_score = min(np.log10(max(author["followers_count"], 1)) / 7, 1.0) * 40
+
+ # Engagement rate = recent average engagement / follower count
+ avg_engagement = np.mean([
+ t["metrics"]["like_count"] + t["metrics"]["retweet_count"] * 2
+ for t in recent_tweets
+ ])
+ engagement_rate = avg_engagement / max(author["followers_count"], 1)
+ engagement_score = min(engagement_rate * 1000, 1.0) * 30
+
+ # Account-age credibility score
+ age_score = min(author["account_age_days"] / 1825, 1.0) * 20 # full score at 5 years
+
+ # Verification bonus
+ verified_bonus = 10 if author["verified"] else 0
+
+ return follower_score + engagement_score + age_score + verified_bonus
+```
+
+**Pre/post-earnings sentiment shift**
+
+```python
+def analyze_earnings_sentiment_shift(
+ ticker: str,
+ earnings_date: str,
+ sentiment_df: pd.DataFrame,
+ window_days: int = 5,
+) -> dict:
+ """Analyze Twitter sentiment changes before and after earnings.
+
+ Args:
+ ticker: Stock ticker
+ earnings_date: Earnings date in YYYY-MM-DD
+ sentiment_df: Daily time series containing date / sentiment_score
+ window_days: Observation window on each side of the earnings date
+
+ Returns:
+ {
+ 'pre_sentiment': float,
+ 'post_sentiment': float,
+ 'shift': float,
+ 'signal': str # 'beat_expected' / 'miss_expected' / 'neutral'
+ }
+ """
+ ed = pd.Timestamp(earnings_date)
+ pre = sentiment_df[
+ (sentiment_df.index >= ed - pd.Timedelta(days=window_days)) &
+ (sentiment_df.index < ed)
+ ]["sentiment_score"].mean()
+ post = sentiment_df[
+ (sentiment_df.index > ed) &
+ (sentiment_df.index <= ed + pd.Timedelta(days=window_days))
+ ]["sentiment_score"].mean()
+
+ shift = post - pre
+ signal = "neutral"
+ if shift > 0.2:
+ signal = "beat_expected"
+ elif shift < -0.2:
+ signal = "miss_expected"
+
+ return {"pre_sentiment": pre, "post_sentiment": post, "shift": shift, "signal": signal}
+```
+
+---
+
+### 5.2 Telegram: Crypto Project Alpha + Airdrop / IDO Buzz
+
+**Alpha-signal quality filter**
+
+Signal quality varies widely across crypto Telegram channels. Filter with rules like the following:
+
+```python
+ALPHA_QUALITY_RULES = {
+ # Low-quality signals to filter out directly
+ "spam_patterns": [
+ r"100x guaranteed",
+ r"private sale",
+ r"limited spots",
+ r"DM me",
+ r"pump incoming",
+ ],
+ # High-quality signals that deserve extra weight
+ "quality_signals": [
+ r"on-chain data",
+ r"tokenomics analysis",
+ r"team background",
+ r"audit report",
+ r"TVL growing",
+ ],
+}
+
+def score_telegram_alpha(message: str) -> dict:
+ """Score the quality of alpha in Telegram crypto-channel messages.
+
+ Args:
+ message: Raw channel message
+
+ Returns:
+ {'quality_score': int[0-10], 'is_spam': bool, 'alpha_type': str}
+ """
+ import re
+ text_lower = message.lower()
+
+ # Spam detection
+ for pattern in ALPHA_QUALITY_RULES["spam_patterns"]:
+ if re.search(pattern, text_lower):
+ return {"quality_score": 0, "is_spam": True, "alpha_type": "spam"}
+
+ # Quality score
+ score = 5
+ for pattern in ALPHA_QUALITY_RULES["quality_signals"]:
+ if re.search(pattern, text_lower):
+ score += 1
+
+ alpha_type = "research" if score >= 7 else "signal" if score >= 5 else "noise"
+ return {"quality_score": min(score, 10), "is_spam": False, "alpha_type": alpha_type}
+```
+
+**Airdrop / IDO buzz tracking**
+
+- Monitor keyword frequency for tags such as `#airdrop`, `#IDO`, and `#whitelist`
+- Buzz peaks where topic frequency exceeds 3ร— baseline often lead token-price moves by 2-5 days
+- Important caveat: high-buzz IDOs often face heavy Day-1 sell pressure from participants taking quick profits
+
+---
+
+### 5.3 Discord: Community Activity โ†’ Project Health
+
+**Project health index**
+
+```python
+def compute_project_health_index(
+ discord_stats: dict,
+ lookback_days: int = 30,
+) -> dict:
+ """Build a project-community health index from Discord statistics.
+
+ Args:
+ discord_stats: {
+ 'daily_messages': list[int],
+ 'daily_active_users': list[int],
+ 'new_members': list[int],
+ 'dev_commits': list[int],
+ }
+ lookback_days: Historical window used as the baseline
+
+ Returns:
+ {
+ 'health_score': float[0-100],
+ 'trend': 'growing'|'stable'|'declining',
+ 'flags': list[str]
+ }
+ """
+ msgs = np.array(discord_stats["daily_messages"][-lookback_days:])
+ users = np.array(discord_stats["daily_active_users"][-lookback_days:])
+ members = np.array(discord_stats["new_members"][-lookback_days:])
+
+ # Component scores
+ msg_trend = np.polyfit(range(len(msgs)), msgs, 1)[0]
+ user_trend = np.polyfit(range(len(users)), users, 1)[0]
+
+ msg_score = min(50 + msg_trend / max(msgs.mean(), 1) * 500, 100)
+ user_score = min(50 + user_trend / max(users.mean(), 1) * 500, 100)
+ retention = (users.mean() / max(members[-7:].sum(), 1)) * 20
+
+ health_score = 0.4 * msg_score + 0.4 * user_score + 0.2 * min(retention, 100)
+
+ # Warning flags
+ flags = []
+ if msgs[-7:].mean() < msgs[-30:].mean() * 0.5:
+ flags.append("Message volume has collapsed: 7-day average is below 50% of the 30-day average")
+ if users[-3:].mean() < users[-30:].mean() * 0.3:
+ flags.append("Active users have plunged: possible project-abandonment warning")
+
+ trend = "growing" if msg_trend > 0 and user_trend > 0 else \
+ "declining" if msg_trend < 0 and user_trend < 0 else "stable"
+
+ return {"health_score": health_score, "trend": trend, "flags": flags}
+```
+
+**Whale-discussion monitoring**
+
+- Monitor channels such as `#whale-watch` and `#large-transactions`
+- Keywords to watch: `whale alert`, `large transfer`, `moved X BTC`
+- Cross-check with Whale Alert Telegram bot data
+
+---
+
+### 5.4 Reddit: WSB Meme-Stock Buzz + Options-Flow Abnormalities
+
+**Meme-stock momentum detection**
+
+```python
+def detect_meme_stock_momentum(
+ wsb_posts: list[dict],
+ top_n: int = 10,
+) -> pd.DataFrame:
+ """Detect meme-stock momentum on WSB and identify short-squeeze candidates.
+
+ Args:
+ wsb_posts: List of WSB posts collected through PRAW
+ top_n: Number of top hot tickers to return
+
+ Returns:
+ DataFrame containing ticker / mention_count / avg_score / option_buzz
+
+ Note:
+ mention_count > 200 in one day plus sentiment > 0.5 is one early short-squeeze warning condition.
+ A full squeeze setup still requires short interest above 20%.
+ """
+ import re
+ from collections import defaultdict
+
+ ticker_stats = defaultdict(lambda: {"count": 0, "scores": [], "option_buzz": 0})
+
+ # Common U.S. ticker regex: 2-5 uppercase letters
+ ticker_pattern = re.compile(r"\b([A-Z]{2,5})\b")
+ option_keywords = ["calls", "puts", "options", "IV", "yolo", "FDs"]
+
+ for post in wsb_posts:
+ text = f"{post['title']} {post['selftext']}"
+ tickers_found = ticker_pattern.findall(text)
+
+ # Filter common non-ticker words
+ stop_words = {"THE", "FOR", "AND", "BUT", "NOT", "ARE", "YOU", "ALL", "CAN"}
+ tickers_found = [t for t in tickers_found if t not in stop_words]
+
+ has_options = any(kw.lower() in text.lower() for kw in option_keywords)
+
+ for ticker in set(tickers_found):
+ ticker_stats[ticker]["count"] += 1
+ ticker_stats[ticker]["scores"].append(post["score"])
+ if has_options:
+ ticker_stats[ticker]["option_buzz"] += 1
+
+ rows = []
+ for ticker, stats in ticker_stats.items():
+ rows.append({
+ "ticker": ticker,
+ "mention_count": stats["count"],
+ "avg_score": np.mean(stats["scores"]),
+ "option_buzz": stats["option_buzz"],
+ })
+
+ df = pd.DataFrame(rows).sort_values("mention_count", ascending=False)
+ return df.head(top_n)
+```
+
+**WSB short-squeeze checklist**
+
+| Condition | Data Source | Threshold |
+|-----|---------|-----|
+| WSB mentions | Reddit PRAW | > 200 per day |
+| WSB options-discussion heat | Reddit PRAW | option_buzz > 30% |
+| Short interest (SI) | Finviz / IEX | > 20% |
+| Borrow tightness | Securities-lending data | CTB > 5% |
+| Unusual options open interest | Option-chain data | OI day-over-day change > 50% |
+
+---
+
+## 6. Data-Pipeline Integration
+
+### 6.1 Unified Data Collection Interface
+
+```python
+# Reference implementation: agent/src/tools/social_media_tool.py
+
+from dataclasses import dataclass
+from enum import Enum
+
+class Platform(str, Enum):
+ TWITTER = "twitter"
+ TELEGRAM = "telegram"
+ DISCORD = "discord"
+ REDDIT = "reddit"
+
+@dataclass
+class SocialMediaQuery:
+ """Social-media query parameters."""
+ platform: Platform
+ query: str
+ limit: int = 100
+ start_time: str | None = None
+ include_sentiment: bool = True
+
+def collect_social_signals(query: SocialMediaQuery) -> dict:
+ """Unified entrypoint for collecting social-media data.
+
+ Args:
+ query: Query parameters including platform, keyword, time window, and limit
+
+ Returns:
+ Standardized JSON data containing platform / items / metadata
+
+ Raises:
+ ValueError: Unsupported platform or invalid parameters
+ RuntimeError: API call failed, with retry guidance attached
+ """
+ collectors = {
+ Platform.TWITTER: _collect_twitter,
+ Platform.TELEGRAM: _collect_telegram,
+ Platform.DISCORD: _collect_discord,
+ Platform.REDDIT: _collect_reddit,
+ }
+ collector = collectors.get(query.platform)
+ if not collector:
+ raise ValueError(f"Unsupported platform: {query.platform}")
+
+ raw_data = collector(query)
+
+ if query.include_sentiment:
+ raw_data = _enrich_with_sentiment(raw_data)
+
+ return raw_data
+```
+
+### 6.2 Environment Variables
+
+```bash
+# Add the following to .env
+TWITTER_BEARER_TOKEN=xxx
+TELEGRAM_API_ID=xxx
+TELEGRAM_API_HASH=xxx
+DISCORD_BOT_TOKEN=xxx
+REDDIT_CLIENT_ID=xxx
+REDDIT_CLIENT_SECRET=xxx
+
+# Sentiment model selection: vader / finbert / llm
+SENTIMENT_MODEL=finbert
+```
+
+### 6.3 Factor Storage Schema
+
+```sql
+-- Social-sentiment factor table (DuckDB / SQLite)
+CREATE TABLE social_sentiment_factors (
+ date DATE NOT NULL,
+ ticker VARCHAR(20) NOT NULL,
+ platform VARCHAR(20) NOT NULL,
+ sentiment FLOAT, -- [-1, 1]
+ buzz_zscore FLOAT, -- Buzz Z-score
+ fear_greed FLOAT, -- [0, 100]
+ msg_count INTEGER,
+ author_type VARCHAR(20), -- institutional / kol / retail
+ PRIMARY KEY (date, ticker, platform)
+);
+```
+
+---
+
+## 7. Caveats and Limitations
+
+1. **Limited lead value**: Social sentiment usually has IC around 0.03-0.06 on broad indices. It works best as a supporting factor, not a primary one.
+2. **Manipulation risk**: Telegram and Discord signal channels in crypto contain many paid signal groups and pump rings. Source-quality scoring is mandatory.
+3. **Language bias**: VADER and FinBERT are mainly built for English. Chinese social platforms such as Xueqiu or Guba need separate model adaptation.
+4. **API cost control**: Twitter API v2 basic tier allows 500,000 tweets/month, and upgrading from $100 to $5000/month changes economics significantly. Budget collection volume explicitly.
+5. **Latency vs quality trade-off**: Real-time collection is noisier, while daily aggregation gives cleaner signals. Choose based on the strategy horizon.
+6. **Factor decay**: Social-sentiment factor effectiveness decays as more market participants exploit the same signal. Re-test IC regularly.
+
+---
+
+*Version: v1.0 | Created: 2026-03-29 | Scope: quantitative research / factor mining (not for direct live-trading signals)*
diff --git a/agent/src/skills/stablecoin-flow/SKILL.md b/agent/src/skills/stablecoin-flow/SKILL.md
new file mode 100644
index 000000000..015db59a0
--- /dev/null
+++ b/agent/src/skills/stablecoin-flow/SKILL.md
@@ -0,0 +1,248 @@
+---
+name: stablecoin-flow
+description: Stablecoin supply and flow analysis โ€” USDT/USDC mint-burn signals, exchange stablecoin reserves, on-chain stablecoin velocity, and capital rotation indicators for crypto market timing.
+---
+# Stablecoin Flow Analysis
+
+## Overview
+
+Track stablecoin supply changes, exchange reserve movements, and on-chain velocity to gauge crypto market capital flows. Stablecoins (USDT, USDC, DAI, etc.) are the "dry powder" of crypto โ€” minting signals new capital entering, burning signals capital leaving, and exchange reserve changes reveal buying/selling intent.
+
+## Core Concepts
+
+### 1. Stablecoin Supply as Market Indicator
+
+**Total stablecoin market cap is the single best proxy for crypto market liquidity.**
+
+```python
+# Stablecoin supply growth โ†’ crypto market liquidity expansion
+# Historical correlation: BTC price and total stablecoin supply r > 0.85
+
+stablecoin_supply = {
+ "USDT": 140_000_000_000, # ~$140B (dominant, ~65% share)
+ "USDC": 45_000_000_000, # ~$45B (~20% share)
+ "DAI": 5_000_000_000, # ~$5B (decentralized)
+ "FDUSD": 3_000_000_000, # ~$3B (Binance ecosystem)
+ "USDS": 2_000_000_000, # ~$2B (Sky/MakerDAO)
+}
+total = sum(stablecoin_supply.values())
+```
+
+**Supply change signals:**
+
+| Supply Change (30d) | Interpretation | Signal |
+|--------------------|----------------|--------|
+| > +5% | Rapid minting, new capital rushing in | Strong bullish |
+| +2% to +5% | Steady capital inflow | Bullish |
+| 0% to +2% | Stable, no significant new capital | Neutral |
+| -2% to 0% | Mild redemptions | Cautious |
+| < -2% | Capital exiting crypto ecosystem | Bearish |
+
+### 2. Mint/Burn Event Analysis
+
+**USDT (Tether) minting signals:**
+- Tether mints new USDT โ†’ deposits to exchanges โ†’ precedes buying activity
+- Large mints ($500M+) historically precede BTC rallies by 1-7 days
+- Minting often happens in batches: "pre-mint to Tether treasury" โ†’ later distributed to exchanges
+
+**USDC (Circle) signals:**
+- USDC is more regulated and institutional-oriented
+- USDC net minting = institutional/TradFi capital entering
+- USDC net burning = institutional capital exiting (redeeming for USD)
+- USDC/USDT ratio rising = more institutional participation (bullish for market maturity)
+
+```python
+def mint_burn_signal(mint_events, burn_events, lookback_days=7):
+ """Analyze recent stablecoin mint/burn events."""
+ net_mint = sum(e.amount for e in mint_events if e.days_ago <= lookback_days)
+ net_burn = sum(e.amount for e in burn_events if e.days_ago <= lookback_days)
+ net_flow = net_mint - net_burn
+
+ if net_flow > 1_000_000_000: # >$1B net mint in 7 days
+ return "large_capital_inflow"
+ elif net_flow > 500_000_000:
+ return "moderate_inflow"
+ elif net_flow > 0:
+ return "mild_inflow"
+ elif net_flow > -500_000_000:
+ return "mild_outflow"
+ else:
+ return "large_capital_outflow"
+```
+
+### 3. Exchange Stablecoin Reserves
+
+**Stablecoins on exchanges = "buy power sitting on the sidelines"**
+
+```python
+# Exchange stablecoin reserve interpretation
+def exchange_reserve_signal(reserve_change_7d_pct, total_reserve_usd):
+ """
+ Rising exchange stablecoin reserves = buying power accumulating
+ Falling exchange stablecoin reserves = capital deployed or withdrawn
+ """
+ if reserve_change_7d_pct > 5:
+ return "buy_power_accumulating" # Dry powder building up
+ elif reserve_change_7d_pct > 2:
+ return "mild_accumulation"
+ elif reserve_change_7d_pct < -5:
+ return "deployed_or_withdrawn" # Either bought crypto or left exchange
+ elif reserve_change_7d_pct < -2:
+ return "mild_deployment"
+ else:
+ return "stable"
+```
+
+**Combined with BTC price action:**
+
+| Exchange Stable Reserves | BTC Price Action | Interpretation |
+|-------------------------|-----------------|----------------|
+| Rising | Rising | Capital inflow + active buying = strong bull |
+| Rising | Falling | Capital parking, waiting for bottom = accumulation |
+| Falling | Rising | Capital being deployed into BTC = buying pressure |
+| Falling | Falling | Capital leaving exchanges entirely = risk-off |
+
+### 4. Stablecoin Dominance
+
+**Stablecoin dominance = total stablecoin market cap / total crypto market cap**
+
+```python
+# Stablecoin dominance as a contrarian indicator
+stablecoin_dominance = total_stablecoin_mcap / total_crypto_mcap * 100
+
+if stablecoin_dominance > 12:
+ signal = "high_cash_allocation" # Market fearful, lots of cash on sidelines
+ contrarian = "bullish" # Cash will eventually re-enter
+elif stablecoin_dominance > 8:
+ signal = "moderate_cash"
+ contrarian = "neutral"
+elif stablecoin_dominance < 5:
+ signal = "low_cash_allocation" # Market fully invested, little dry powder
+ contrarian = "bearish" # No marginal buyers left
+```
+
+### 5. On-Chain Stablecoin Velocity
+
+**Velocity = on-chain transfer volume / supply**
+
+High velocity = stablecoins are being actively used (trading, DeFi, payments)
+Low velocity = stablecoins are sitting idle (holding, waiting)
+
+```python
+def velocity_signal(transfer_volume_7d, supply):
+ velocity = transfer_volume_7d / supply
+ velocity_annualized = velocity * 52 # Weekly to annual
+
+ if velocity_annualized > 50:
+ return "high_activity" # Very active usage, likely bull market
+ elif velocity_annualized > 20:
+ return "moderate_activity"
+ elif velocity_annualized < 10:
+ return "low_activity" # Stablecoins idle, bear market / accumulation
+```
+
+### 6. Chain-Level Stablecoin Distribution
+
+Track where stablecoins are flowing across different blockchains:
+
+| Chain | Primary Stablecoins | What Inflows Signal |
+|-------|-------------------|---------------------|
+| Ethereum | USDT, USDC, DAI | DeFi activity, institutional usage |
+| Tron | USDT (dominant) | OTC trading, emerging market transfers |
+| Solana | USDC | High-frequency DeFi, memecoin activity |
+| Arbitrum | USDC, USDT | L2 DeFi growth |
+| Base | USDC | Coinbase ecosystem growth |
+| BSC | USDT, FDUSD | Binance ecosystem, retail trading |
+
+**Cross-chain flow signals:**
+- USDT migrating from Tron โ†’ Ethereum: capital moving from OTC/P2P to DeFi (more sophisticated usage)
+- Stablecoins flooding into Solana: memecoin season / speculative frenzy
+- Stablecoins moving to L2s (Arbitrum, Base, Optimism): DeFi activity shifting to lower-cost chains
+
+### 7. Composite Stablecoin Signal
+
+```python
+stablecoin_score = {
+ "supply_growth": 0, # -2 to +2: 30-day total supply change
+ "mint_burn_net": 0, # -2 to +2: recent large mint/burn events
+ "exchange_reserves": 0, # -2 to +2: exchange stablecoin reserve change
+ "dominance": 0, # -2 to +2: stablecoin dominance level (contrarian)
+ "velocity": 0, # -2 to +2: on-chain activity level
+}
+# Total range: -10 to +10
+# > +5: strong liquidity expansion โ†’ bullish for crypto
+# +2 to +5: moderate inflow โ†’ mild bullish
+# -2 to +2: neutral
+# < -2: liquidity contraction โ†’ bearish
+# < -5: capital flight โ†’ strong bearish
+```
+
+## Data Sources
+
+| Source | Access | Data Available |
+|--------|--------|---------------|
+| DeFi Llama (Stablecoins page) | Free | Total supply by chain, mint/burn history |
+| Glassnode | Paid (limited free) | Exchange reserves, on-chain velocity |
+| CryptoQuant | Paid (limited free) | Exchange stablecoin reserves, flow metrics |
+| Tether Transparency | Free | USDT reserves and attestation |
+| Circle USDC Stats | Free | USDC supply and redemption data |
+| Dune Analytics | Free | Custom stablecoin queries |
+| Nansen | Paid | Smart money stablecoin flows |
+
+Use `read_url` tool to access web-based data sources.
+
+## Output Format
+
+```
+## Stablecoin Flow Analysis โ€” [Date Range]
+
+### Supply Overview
+| Stablecoin | Supply | 7d Change | 30d Change |
+|------------|--------|-----------|------------|
+| USDT | $XXX B | +X.X% | +X.X% |
+| USDC | $XX B | +X.X% | +X.X% |
+| Total | $XXX B | +X.X% | +X.X% |
+
+### Mint/Burn Events (7 days)
+- **Net minting**: +$X.X B
+- **Largest events**: [Tether minted $500M on DATE, Circle burned $200M on DATE]
+- **Signal**: [large capital inflow / mild / outflow]
+
+### Exchange Reserves
+- **Total stablecoins on exchanges**: $XX B
+- **7d change**: [+/- X.X%]
+- **Interpretation**: [buy power accumulating / deployed / withdrawn]
+
+### Stablecoin Dominance
+- **Current**: X.X%
+- **30d ago**: X.X%
+- **Signal**: [high cash = contrarian bullish / low cash = contrarian bearish]
+
+### Chain Distribution Shifts
+- **Inflow chains**: [Solana +$XM, Arbitrum +$XM]
+- **Outflow chains**: [Tron -$XM]
+- **Interpretation**: [DeFi expansion / speculative activity / capital consolidation]
+
+### Composite Signal
+| Dimension | Score (-2~+2) | Basis |
+|-----------|---------------|-------|
+| Supply growth | +2 | +4% in 30 days |
+| Mint/burn | +1 | Net $1.2B minted this week |
+| Exchange reserves | +1 | Reserves up 3% |
+| Dominance | 0 | 8.5%, neutral range |
+| Velocity | +1 | Rising on-chain activity |
+
+### Market Implication
+- **Liquidity outlook**: [expanding / stable / contracting]
+- **Direction**: [bullish / neutral / bearish]
+- **Key watch**: [next large mint event, USDC/USDT ratio trend]
+```
+
+## Notes
+
+- Stablecoin supply data is publicly verifiable on-chain; it is one of the most transparent indicators in crypto
+- USDT on Tron is heavily used for OTC and P2P trading in emerging markets; it does not necessarily correlate with exchange trading activity
+- "Pre-minting" by Tether (minting to Tether treasury before distributing) creates false positive signals; track only exchange-deployed mints
+- Stablecoin depegging events (e.g., USDC in March 2023) create temporary but severe market disruptions
+- Regulatory actions on stablecoin issuers (BUSD shutdown, USDC regulatory clarity) can trigger supply shifts between stablecoins
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/strategy-generate/SKILL.md b/agent/src/skills/strategy-generate/SKILL.md
new file mode 100644
index 000000000..9ec3cee20
--- /dev/null
+++ b/agent/src/skills/strategy-generate/SKILL.md
@@ -0,0 +1,172 @@
+---
+name: strategy-generate
+description: Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.
+---
+
+## Workflow
+
+1. **Requirements parsing**: parse user intent, extract instrument codes, time range, and strategy logic, then write `config.json`
+2. **Strategy design**: think through the 5 questions of data / signal / position sizing / backtest / validation
+3. **Strategy coding**: write `code/signal_engine.py` (following the `SignalEngine` contract)
+4. **Syntax check**: `bash("python -c \"import ast; ast.parse(open('code/signal_engine.py').read()); print('OK')\"")`
+5. **Run backtest**: call the `backtest` tool (built into the engine; no need to write `run_backtest.py`)
+6. **Evaluate results**: read `artifacts/metrics.csv` and judge by the review criteria
+7. **Iterative fixing**: if results are poor, modify with `edit_file` โ†’ run `backtest` โ†’ re-evaluate
+
+**You only need to write `signal_engine.py` and `config.json`. The `backtest` tool automatically handles data loading and backtest execution.**
+
+## Requirements Parsing
+
+Extract the following from the user's description:
+- **Instrument codes**: process them according to the normalization rules below
+- **Time range**: if the user does not specify dates, default to **10 years back from today** (for example, if today is `2026-03-18`, then `start_date=2016-03-18`, `end_date=2026-03-18`)
+- **Strategy logic**: entry / exit conditions and indicator parameters
+
+**If critical information is missing, you must ask the user instead of guessing:**
+- Instrument not specified โ†’ ask which instrument they want to backtest (offer several popular suggestions)
+- Strategy description is vague (for example, "help me build a strategy") โ†’ provide 2-3 strategy directions for the user to choose from
+- Mixed markets but not clearly specified โ†’ confirm the data source
+
+**Write `config.json` first, then write code.** `config.json` must be placed in the root of `run_dir`.
+
+## Strategy Design
+
+Before writing code, think through these 5 questions:
+
+1. **Data requirements**: what fields are needed (basic OHLCV only? or fundamentals such as `pe/pb/roe` as well?), data frequency (daily), and market (which determines the data source)
+2. **Signal logic**: what are the entry conditions? What are the exit conditions? Direction (long / short / long-short)? Are there filters (volume, trend confirmation, and so on)?
+3. **Position management**: equal-weight allocation or scaling in/out? Risk control (stop-loss, maximum position)? In portfolio strategies, once top N names are selected, each weight = 1/N
+4. **Backtest parameters**: time range, initial capital (default 1,000,000), commission (default 0.1%)
+5. **Validation checklist**: signal consistency (no NaN signals), position check (normalized to prevent leverage), and completeness of generated artifacts
+
+There is no need to output a JSON design document. Express these design decisions directly in code.
+
+## `SignalEngine` Contract
+
+```python
+class SignalEngine:
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """
+ Args:
+ data_map: code -> DataFrame (columns: open, high, low, close, volume, DatetimeIndex)
+ If config.extra_fields is specified, pe, pb, roe, and similar columns will also be present.
+ Returns:
+ code -> signal Series, value range [-1.0, 1.0]
+ 1.0 = fully long, 0.5 = half position, 0.0 = flat, -1.0 = fully short
+ Portfolio strategy: selected stocks split weights equally (for example top 10 -> each 0.1)
+ Legacy integer signals {-1, 0, 1} remain compatible (treated as -100% / 0% / 100%)
+ """
+```
+
+**Hard constraints:**
+- The signal `Series` index must align exactly with the input `DataFrame` index
+- Include all required imports (`numpy`, `pandas`, and so on)
+- Do not hardcode dates or stock codes (read them from `config.json`)
+- Do not include an `if __name__ == "__main__"` block
+- Pure pandas / numpy implementation, with no external signal libraries
+- Output plain Python code, not Markdown fences
+
+## Quality Checklist
+
+Self-check after writing `signal_engine.py`:
+- [ ] All imports are included (`numpy`, `pandas`, `typing`, and so on)
+- [ ] No undefined variables
+- [ ] Signal logic is consistent with the strategy description
+- [ ] Boundary handling: for empty data or insufficient history before the lookback window, use `fillna(0)` or skip
+- [ ] Portfolio strategy: once N stocks are selected, each weight = 1/N (for example top 10 โ†’ each 0.1), unselected names = 0
+- [ ] Signal values stay within `[-1.0, 1.0]`
+
+## Instrument Code Normalization
+
+- 6-digit China A-share codes โ†’ automatically append suffix: codes starting with `600/601/603` โ†’ `.SH`, all others โ†’ `.SZ`
+- US stocks: uppercase letters + `.US`, such as `AAPL.US` (`yfinance` converts automatically)
+- Hong Kong stocks: digits + `.HK`, such as `700.HK` (`yfinance` converts automatically)
+- Cryptocurrencies: `BTC-USDT` format (OKX spot pairs, **must use the hyphen `-`, not slash `/`**)
+ - The user may write `BTC/USDT`, but `config.json` must use `"BTC-USDT"`
+
+## Cryptocurrency Notes
+
+- **Code format**: must be `XXX-USDT` (uppercase + hyphen), such as `BTC-USDT` and `ETH-USDT`
+- **source**: must be set to `"okx"`
+- **extra_fields**: must be `null` (OKX does not support fundamentals)
+- **Data format**: `DataLoader` has already normalized the output to match China A-shares exactly: `open, high, low, close, volume` + `DatetimeIndex`
+- **No special handling needed in strategy code**: `signal_engine.py` should be written the same way as for China A-shares; do not add extra data conversion for OKX
+
+## Market Detection and Data Sources
+
+| Pattern | Market | source | Extra Fields |
+|------|------|--------|----------|
+| `^\d{6}\.(SZ\|SH\|BJ)$` | China A-shares | tushare | pe, pb, pe_ttm, ps_ttm, dv_ttm, total_mv, circ_mv, roe |
+| `^[A-Z]+\.US$` | US stocks | yfinance | - |
+| `^\d{3,5}\.HK$` | Hong Kong stocks | yfinance | - |
+| `^[A-Z]+-USDT$` | Cryptocurrency | okx | - |
+
+**`extra_fields` selection logic**: only China A-shares (`tushare`) support fundamentals. If the strategy needs `PE/PB/ROE` and similar fields, specify them in `config.json.extra_fields` and `DataLoader` will retrieve them automatically. Hong Kong stocks, US stocks, and crypto do not support `extra_fields`.
+
+## `config.json` Format
+
+```json
+{
+ "source": "auto",
+ "codes": ["000001.SZ"],
+ "start_date": "2016-03-18",
+ "end_date": "2026-03-18",
+ "interval": "1D",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "extra_fields": null,
+ "optimizer": null,
+ "optimizer_params": {},
+ "engine": "daily"
+}
+```
+
+- `source`: `"auto"` (recommended, auto-select by code format) / `"tushare"` / `"yfinance"` / `"okx"`
+ - `"auto"` supports mixed instruments. For example, `["000001.SZ", "BTC-USDT"]` will be automatically routed to `tushare` and `okx`
+- `interval`: candlestick interval, default `"1D"`. Supported values: `"1m"` / `"5m"` / `"15m"` / `"30m"` / `"1H"` / `"4H"` / `"1D"`
+ - The annualization factor for minute backtests is inferred automatically from `source` (252 trading days for China A-shares, 365 calendar days for crypto)
+ - Minute backtests can be very data-heavy. Recommended limits are no more than 30 days for `1m`, or 1 year for `1H`
+- `extra_fields`: China A-shares can use values such as `["pe", "pb", "roe"]`; other markets should use `null`
+- `optimizer`: optional, one of `"equal_volatility"` / `"risk_parity"` / `"mean_variance"` / `"max_diversification"` / `null` (equal-weight by default)
+- `optimizer_params`: optimizer parameters, such as `{"lookback": 60}`. `mean_variance` additionally supports `{"risk_free": 0.0}`
+- `engine`: backtest engine, default `"daily"`. For options strategies, set `"options"` (requires `OptionsSignalEngine`)
+- `initial_cash`: default 1,000,000
+- `commission`: default 0.1%
+
+## Review Criteria
+
+### Hard Gates (any failure โ†’ `passed=false`)
+
+1. `artifacts/metrics.csv` exists and is non-empty
+2. `artifacts/equity.csv` exists and is non-empty
+3. `exit_code == 0` (backtest exits normally)
+4. The `equity` column in `equity.csv` contains no `NaN` values
+5. `trade_count > 0` (zero trades = signal bug)
+
+### Scoring Rules
+
+- Successful backtest + complete artifacts + at least 1 trade โ†’ `score โ‰ฅ 60` โ†’ **passed**
+- Poor return / low Sharpe alone should not push the score below 60; they are optimization suggestions only
+- `score โ‰ฅ 60` = `passed=true`
+
+### Bug Categories (reduce the score)
+
+1. **Zero trades** (`trade_count=0`): signal-logic bug, conditions may be too strict
+2. **Late first trade** (first trade > 2 years after backtest start): data-filtering bug or overly long lookback window
+3. **Capital utilization < 50%**: position-management bug, portfolio is flat most of the time
+4. **Open position at the end** (positions still open when backtest ends): exit-signal timing bug
+
+### `action_items` Format
+
+If improvements are needed after evaluation, write `action_items`:
+- Format: `"Change X from A to B"` or `"Add X logic in signal_engine.py"`
+- Must be specific down to parameter values, file names, and function names
+- At least 2 items
+- Examples:
+ - `"Change short MA from 5 to 10 days to reduce whipsaw signals"`
+ - `"Add stop-loss: force close when loss exceeds 5%"`
+ - `"Add volume filter in signal_engine.py: only trigger buy on high volume"`
+
+## Supporting Files
+
+- [examples.md](examples.md) โ€” example call sequence
diff --git a/agent/src/skills/strategy-generate/examples.md b/agent/src/skills/strategy-generate/examples.md
new file mode 100644
index 000000000..0edceea89
--- /dev/null
+++ b/agent/src/skills/strategy-generate/examples.md
@@ -0,0 +1,49 @@
+# Strategy Generate โ€” Examples
+
+## Example 1: A-share dual MA crossover (tushare)
+
+User: "็”จ000001.SZๅšๅŒๅ‡็บฟ้‡‘ๅ‰็ญ–็•ฅ๏ผŒ็ŸญๆœŸ5ๆ—ฅ้•ฟๆœŸ20ๆ—ฅ๏ผŒๅ›žๆต‹2024ๅนด"
+
+Tool call sequence:
+1. load_skill("strategy-generate") โ†’ ่Žทๅพ—ๅทฅไฝœๆตๆŒ‡ๅผ•
+2. write_file("config.json") โ†’ ้…็ฝฎๆ ‡็š„/ๆ—ฅๆœŸ/ๅ‚ๆ•ฐ
+ ```json
+ {"source": "tushare", "codes": ["000001.SZ"], "start_date": "2024-01-01", "end_date": "2024-12-31", "initial_cash": 1000000, "commission": 0.001, "extra_fields": null}
+ ```
+3. write_file("code/signal_engine.py") โ†’ ๅŒๅ‡็บฟ็ญ–็•ฅไปฃ็ 
+4. bash("python -c \"import ast; ast.parse(open('code/signal_engine.py').read()); print('OK')\"") โ†’ AST ่ฏญๆณ•ๆฃ€ๆŸฅ
+5. backtest(run_dir=...) โ†’ ๆ‰ง่กŒๅ›žๆต‹๏ผˆๅผ•ๆ“Žๅ†…็ฝฎ๏ผ‰
+6. read_file("artifacts/metrics.csv") โ†’ ๆŸฅ็œ‹็ป“ๆžœ๏ผŒๆŒ‰่ฏ„ๅฎกๆ ‡ๅ‡†ๅˆคๆ–ญ
+7. (ๅฆ‚้œ€ไฟฎๅค) edit_file("code/signal_engine.py", ...) โ†’ backtest โ†’ read_file
+
+## Example 2: US stock RSI strategy (yfinance)
+
+User: "Build RSI strategy on AAPL, buy when RSI<30 sell when RSI>70, backtest 2024"
+
+Tool call sequence:
+1. load_skill("strategy-generate") โ†’ ่Žทๅพ—ๅทฅไฝœๆตๆŒ‡ๅผ•
+2. write_file("config.json") โ†’ ้…็ฝฎ
+ ```json
+ {"source": "yfinance", "codes": ["AAPL.US"], "start_date": "2024-01-01", "end_date": "2024-12-31", "initial_cash": 1000000, "commission": 0.001, "extra_fields": null}
+ ```
+3. write_file("code/signal_engine.py") โ†’ RSI ็ญ–็•ฅไปฃ็ 
+4. bash("python -c \"import ast; ast.parse(open('code/signal_engine.py').read()); print('OK')\"") โ†’ AST ๆฃ€ๆŸฅ
+5. backtest(run_dir=...) โ†’ ๆ‰ง่กŒๅ›žๆต‹๏ผˆๅผ•ๆ“Žๅ†…็ฝฎ๏ผ‰
+6. read_file("artifacts/metrics.csv") โ†’ ๆŸฅ็œ‹็ป“ๆžœ
+7. (ๅฆ‚้œ€ไฟฎๅค) edit_file โ†’ backtest โ†’ read_file
+
+## Example 3: Crypto trend strategy (okx)
+
+User: "BTC-USDT่ถ‹ๅŠฟ่ทŸ่ธช็ญ–็•ฅ๏ผŒๅ›žๆต‹2024ๅนด"
+
+Tool call sequence:
+1. load_skill("strategy-generate") โ†’ ่Žทๅพ—ๅทฅไฝœๆตๆŒ‡ๅผ•
+2. write_file("config.json") โ†’ ้…็ฝฎ
+ ```json
+ {"source": "okx", "codes": ["BTC-USDT"], "start_date": "2024-01-01", "end_date": "2024-12-31", "initial_cash": 1000000, "commission": 0.001, "extra_fields": null}
+ ```
+3. write_file("code/signal_engine.py") โ†’ ่ถ‹ๅŠฟ็ญ–็•ฅไปฃ็ 
+4. bash("python -c \"import ast; ast.parse(open('code/signal_engine.py').read()); print('OK')\"") โ†’ AST ๆฃ€ๆŸฅ
+5. backtest(run_dir=...) โ†’ ๆ‰ง่กŒๅ›žๆต‹๏ผˆๅผ•ๆ“Žๅ†…็ฝฎ๏ผ‰
+6. read_file("artifacts/metrics.csv") โ†’ ๆŸฅ็œ‹็ป“ๆžœ
+7. (ๅฆ‚้œ€ไฟฎๅค) edit_file โ†’ backtest โ†’ read_file
diff --git a/agent/src/skills/technical-basic/SKILL.md b/agent/src/skills/technical-basic/SKILL.md
new file mode 100644
index 000000000..734a9e2db
--- /dev/null
+++ b/agent/src/skills/technical-basic/SKILL.md
@@ -0,0 +1,56 @@
+---
+name: technical-basic
+description: Core technical indicator collection (trend EMA/ADX + mean-reversion BB/RSI + volume-price OBV/volume ratio), generates a composite signal via three-dimensional voting. Pure pandas implementation for any OHLCV data.
+---
+# Core Technical Indicator Collection
+
+## Purpose
+
+Combines three classic Western technical analysis approaches into one composite signal engine:
+
+| Dimension | Indicators | Purpose |
+|------|------|------|
+| Trend | EMA(12/26) + ADX(14) | Determine direction and trend strength |
+| Mean reversion | Bollinger Bands(20,2) + RSI(14) | Detect overbought and oversold conditions |
+| Volume-price | OBV + volume ratio | Confirm volume participation |
+
+## Signal Logic
+
+Three-dimensional voting mechanism:
+- **Long**: trend is bullish + RSI is not overbought + OBV is rising
+- **Short**: trend is bearish + RSI is not oversold + OBV is falling
+- **Stand aside**: mixed signals
+
+## Key Implementation Details
+
+- RSI and ADX use **Wilder EWM** (`ewm(alpha=1/period)`), not a rolling mean
+- Full ADX chain: +DM/-DM โ†’ TR โ†’ +DI/-DI โ†’ DX โ†’ ADX
+- OBV = `(volume * sign(close.diff())).cumsum()`
+
+## Parameters
+
+All parameters have default values and can be overridden at instantiation time:
+
+| Parameter | Default | Description |
+|------|--------|------|
+| ema_fast | 12 | Fast EMA period |
+| ema_slow | 26 | Slow EMA period |
+| adx_period | 14 | ADX calculation period |
+| adx_threshold | 25.0 | ADX trend-strength threshold |
+| bb_window | 20 | Bollinger Band window |
+| bb_std | 2.0 | Bollinger Band standard deviation multiplier |
+| rsi_period | 14 | RSI period |
+| rsi_oversold | 30 | RSI oversold threshold |
+| rsi_overbought | 70 | RSI overbought threshold |
+| vol_ma_period | 20 | Volume moving-average period |
+| obv_ma_period | 20 | OBV moving-average period |
+
+## Dependencies
+
+```bash
+pip install pandas numpy requests
+```
+
+## Signal Convention
+
+- `1` = long, `-1` = short, `0` = stand aside
diff --git a/agent/src/skills/technical-basic/example_signal_engine.py b/agent/src/skills/technical-basic/example_signal_engine.py
new file mode 100644
index 000000000..219585486
--- /dev/null
+++ b/agent/src/skills/technical-basic/example_signal_engine.py
@@ -0,0 +1,302 @@
+"""ๆŠ€ๆœฏ้ขๅŸบ็ก€ๆŒ‡ๆ ‡ๅˆ้›†ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅฐ†่ถ‹ๅŠฟ๏ผˆEMA/ADX๏ผ‰ใ€ๅ‡ๅ€ผๅ›žๅฝ’๏ผˆBB/RSI๏ผ‰ใ€้‡ไปท๏ผˆOBV/้‡ๆฏ”๏ผ‰ไธ‰็ปดๅบฆๅˆๅนถ๏ผŒ
+้€š่ฟ‡ๆŠ•็ฅจๆœบๅˆถ็”Ÿๆˆ็ปผๅˆไบคๆ˜“ไฟกๅทใ€‚็บฏ pandas ๅฎž็Žฐ๏ผŒ้€‚็”จไบŽไปปไฝ• OHLCV ๆ•ฐๆฎใ€‚
+"""
+
+from typing import Dict
+
+import numpy as np
+import pandas as pd
+
+
+def compute_rsi(close: pd.Series, period: int = 14) -> pd.Series:
+ """่ฎก็ฎ— RSI๏ผˆWilder EWM ๅนณๆป‘๏ผ‰ใ€‚
+
+ Args:
+ close: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ period: RSI ๅ‘จๆœŸใ€‚
+
+ Returns:
+ RSI ๅ€ผๅบๅˆ—๏ผŒ่Œƒๅ›ด 0-100ใ€‚
+ """
+ delta = close.diff()
+ gain = delta.clip(lower=0)
+ loss = (-delta).clip(lower=0)
+ avg_gain = gain.ewm(alpha=1 / period, min_periods=period).mean()
+ avg_loss = loss.ewm(alpha=1 / period, min_periods=period).mean()
+ rs = avg_gain / avg_loss
+ return 100 - 100 / (1 + rs)
+
+
+def compute_adx(
+ high: pd.Series, low: pd.Series, close: pd.Series, period: int = 14
+) -> pd.DataFrame:
+ """่ฎก็ฎ— ADX ๅŠ +DI/-DI๏ผˆWilder EWM ๅนณๆป‘ๅ…จ้“พ่ทฏ๏ผ‰ใ€‚
+
+ ้“พ่ทฏ๏ผš+DM/-DM โ†’ TR โ†’ Wilder ๅนณๆป‘ โ†’ +DI/-DI โ†’ DX โ†’ ADXใ€‚
+
+ Args:
+ high: ๆœ€้ซ˜ไปทๅบๅˆ—ใ€‚
+ low: ๆœ€ไฝŽไปทๅบๅˆ—ใ€‚
+ close: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ period: ADX ๅ‘จๆœŸใ€‚
+
+ Returns:
+ ๅŒ…ๅซ plus_diใ€minus_diใ€adx ๅˆ—็š„ DataFrameใ€‚
+ """
+ prev_high = high.shift(1)
+ prev_low = low.shift(1)
+ prev_close = close.shift(1)
+
+ # +DM / -DM
+ up_move = high - prev_high
+ down_move = prev_low - low
+
+ plus_dm = pd.Series(0.0, index=high.index)
+ minus_dm = pd.Series(0.0, index=high.index)
+ plus_dm[(up_move > down_move) & (up_move > 0)] = up_move
+ minus_dm[(down_move > up_move) & (down_move > 0)] = down_move
+
+ # True Range
+ tr1 = high - low
+ tr2 = (high - prev_close).abs()
+ tr3 = (low - prev_close).abs()
+ tr = pd.concat([tr1, tr2, tr3], axis=1).max(axis=1)
+
+ # Wilder ๅนณๆป‘
+ alpha = 1 / period
+ smoothed_tr = tr.ewm(alpha=alpha, min_periods=period).mean()
+ smoothed_plus_dm = plus_dm.ewm(alpha=alpha, min_periods=period).mean()
+ smoothed_minus_dm = minus_dm.ewm(alpha=alpha, min_periods=period).mean()
+
+ # +DI / -DI
+ plus_di = 100 * smoothed_plus_dm / smoothed_tr
+ minus_di = 100 * smoothed_minus_dm / smoothed_tr
+
+ # DX โ†’ ADX
+ di_sum = plus_di + minus_di
+ di_sum = di_sum.replace(0, np.nan)
+ dx = 100 * (plus_di - minus_di).abs() / di_sum
+ adx = dx.ewm(alpha=alpha, min_periods=period).mean()
+
+ return pd.DataFrame({"plus_di": plus_di, "minus_di": minus_di, "adx": adx})
+
+
+def compute_bollinger(
+ close: pd.Series, window: int = 20, num_std: float = 2.0
+) -> pd.DataFrame:
+ """่ฎก็ฎ—ๅธƒๆž—ๅธฆใ€‚
+
+ Args:
+ close: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ window: ็งปๅŠจๅนณๅ‡็ช—ๅฃใ€‚
+ num_std: ๆ ‡ๅ‡†ๅทฎๅ€ๆ•ฐใ€‚
+
+ Returns:
+ ๅŒ…ๅซ bb_midใ€bb_upperใ€bb_lower ๅˆ—็š„ DataFrameใ€‚
+ """
+ mid = close.rolling(window).mean()
+ std = close.rolling(window).std()
+ return pd.DataFrame({
+ "bb_mid": mid,
+ "bb_upper": mid + num_std * std,
+ "bb_lower": mid - num_std * std,
+ })
+
+
+def compute_obv(close: pd.Series, volume: pd.Series) -> pd.Series:
+ """่ฎก็ฎ— OBV๏ผˆ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡๏ผ‰ใ€‚
+
+ Args:
+ close: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ volume: ๆˆไบค้‡ๅบๅˆ—ใ€‚
+
+ Returns:
+ OBV ๅบๅˆ—ใ€‚
+ """
+ sign = close.diff().apply(lambda x: 1 if x > 0 else (-1 if x < 0 else 0))
+ return (volume * sign).cumsum()
+
+
+class SignalEngine:
+ """ๆŠ€ๆœฏ้ขๅŸบ็ก€ๆŒ‡ๆ ‡ๅˆ้›†ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ไธ‰็ปดๅบฆๆŠ•็ฅจ๏ผš่ถ‹ๅŠฟ๏ผˆEMAไบคๅ‰+ADXๅผบๅบฆ๏ผ‰ใ€ๅ‡ๅ€ผๅ›žๅฝ’๏ผˆBB+RSI๏ผ‰ใ€้‡ไปท๏ผˆOBV+้‡ๆฏ”๏ผ‰๏ผŒ
+ ็ปผๅˆ็”Ÿๆˆๅšๅคš/ๅš็ฉบ/่ง‚ๆœ›ไฟกๅทใ€‚
+
+ Attributes:
+ ema_fast: ๅฟซ็บฟ EMA ๅ‘จๆœŸใ€‚
+ ema_slow: ๆ…ข็บฟ EMA ๅ‘จๆœŸใ€‚
+ adx_period: ADX ่ฎก็ฎ—ๅ‘จๆœŸใ€‚
+ adx_threshold: ADX ่ถ‹ๅŠฟๅผบๅบฆ้˜ˆๅ€ผใ€‚
+ bb_window: ๅธƒๆž—ๅธฆ็ช—ๅฃใ€‚
+ bb_std: ๅธƒๆž—ๅธฆๆ ‡ๅ‡†ๅทฎๅ€ๆ•ฐใ€‚
+ rsi_period: RSI ๅ‘จๆœŸใ€‚
+ rsi_oversold: RSI ่ถ…ๅ–้˜ˆๅ€ผใ€‚
+ rsi_overbought: RSI ่ถ…ไนฐ้˜ˆๅ€ผใ€‚
+ vol_ma_period: ๆˆไบค้‡ๅ‡็บฟๅ‘จๆœŸใ€‚
+ obv_ma_period: OBV ๅ‡็บฟๅ‘จๆœŸใ€‚
+
+ Example:
+ >>> engine = SignalEngine()
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+
+ def __init__(
+ self,
+ ema_fast: int = 12,
+ ema_slow: int = 26,
+ adx_period: int = 14,
+ adx_threshold: float = 25.0,
+ bb_window: int = 20,
+ bb_std: float = 2.0,
+ rsi_period: int = 14,
+ rsi_oversold: float = 30,
+ rsi_overbought: float = 70,
+ vol_ma_period: int = 20,
+ obv_ma_period: int = 20,
+ ):
+ """ๅˆๅง‹ๅŒ–ๆŠ€ๆœฏ้ขไฟกๅทๅผ•ๆ“Žใ€‚
+
+ Args:
+ ema_fast: ๅฟซ็บฟ EMA ๅ‘จๆœŸใ€‚
+ ema_slow: ๆ…ข็บฟ EMA ๅ‘จๆœŸใ€‚
+ adx_period: ADX ่ฎก็ฎ—ๅ‘จๆœŸใ€‚
+ adx_threshold: ADX ่ถ‹ๅŠฟๅผบๅบฆ้˜ˆๅ€ผใ€‚
+ bb_window: ๅธƒๆž—ๅธฆ็ช—ๅฃใ€‚
+ bb_std: ๅธƒๆž—ๅธฆๆ ‡ๅ‡†ๅทฎๅ€ๆ•ฐใ€‚
+ rsi_period: RSI ๅ‘จๆœŸใ€‚
+ rsi_oversold: RSI ่ถ…ๅ–้˜ˆๅ€ผใ€‚
+ rsi_overbought: RSI ่ถ…ไนฐ้˜ˆๅ€ผใ€‚
+ vol_ma_period: ๆˆไบค้‡ๅ‡็บฟๅ‘จๆœŸใ€‚
+ obv_ma_period: OBV ๅ‡็บฟๅ‘จๆœŸใ€‚
+ """
+ self.ema_fast = ema_fast
+ self.ema_slow = ema_slow
+ self.adx_period = adx_period
+ self.adx_threshold = adx_threshold
+ self.bb_window = bb_window
+ self.bb_std = bb_std
+ self.rsi_period = rsi_period
+ self.rsi_oversold = rsi_oversold
+ self.rsi_overbought = rsi_overbought
+ self.vol_ma_period = vol_ma_period
+ self.obv_ma_period = obv_ma_period
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎไธ‰็ปดๅบฆๆŒ‡ๆ ‡ๆŠ•็ฅจ็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+ DataFrame ้œ€ๅŒ…ๅซ open/high/low/close/volume ๅˆ—๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for code, df in data_map.items():
+ result[code] = self._generate_one(df)
+ return result
+
+ def _generate_one(self, df: pd.DataFrame) -> pd.Series:
+ """ๅฏนๅ•ไธชๆ ‡็š„็”Ÿๆˆไฟกๅทใ€‚
+
+ Args:
+ df: OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚
+
+ Returns:
+ ไฟกๅท Series๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ close = df["close"]
+ high = df["high"]
+ low = df["low"]
+ volume = df["volume"]
+
+ # --- ่ถ‹ๅŠฟ็ปดๅบฆ ---
+ ema_f = close.ewm(span=self.ema_fast, adjust=False).mean()
+ ema_s = close.ewm(span=self.ema_slow, adjust=False).mean()
+ adx_df = compute_adx(high, low, close, self.adx_period)
+ adx = adx_df["adx"]
+
+ trend_bull = (ema_f > ema_s) & (adx > self.adx_threshold)
+ trend_bear = (ema_f < ema_s) & (adx > self.adx_threshold)
+
+ # --- ๅ‡ๅ€ผๅ›žๅฝ’็ปดๅบฆ ---
+ bb = compute_bollinger(close, self.bb_window, self.bb_std)
+ rsi = compute_rsi(close, self.rsi_period)
+
+ mr_oversold = (close < bb["bb_lower"]) & (rsi < self.rsi_oversold)
+ mr_overbought = (close > bb["bb_upper"]) & (rsi > self.rsi_overbought)
+
+ # --- ้‡ไปท็ปดๅบฆ ---
+ obv = compute_obv(close, volume)
+ obv_ma = obv.rolling(self.obv_ma_period).mean()
+
+ vol_bull = obv > obv_ma
+ vol_bear = obv < obv_ma
+
+ # --- ไธ‰็ปดๅบฆๆŠ•็ฅจ ---
+ buy = (trend_bull | mr_oversold) & vol_bull & ~mr_overbought
+ sell = (trend_bear | mr_overbought) & vol_bear & ~mr_oversold
+
+ signal = buy.astype(int) - sell.astype(int)
+ signal = signal.fillna(0).astype(int)
+ return signal
+
+
+def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸ๏ผŒ้ป˜่ฎค "1D"ใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐ๏ผŒ้ป˜่ฎค 300ใ€‚
+
+ Returns:
+ OHLCV DataFrame๏ผŒindex ไธบ datetimeใ€‚
+ """
+ import requests
+
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = [
+ "ts", "open", "high", "low", "close",
+ "vol", "volCcy", "volCcyQuote", "confirm",
+ ]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+
+if __name__ == "__main__":
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+ for sym in symbols:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+
+ engine = SignalEngine()
+ signals = engine.generate(data_map)
+
+ for sym in symbols:
+ sig = signals[sym]
+ n_bars = len(data_map[sym])
+ buys = sig[sig == 1]
+ sells = sig[sig == -1]
+ print(f"\n{sym} ({n_bars} bars)")
+ print(f" Buy signals: {len(buys)}")
+ print(f" Sell signals: {len(sells)}")
+ print(f" Neutral: {n_bars - len(buys) - len(sells)}")
+ if len(buys) > 0:
+ print(f" Last buy: {buys.index[-1]:%Y-%m-%d}")
+ if len(sells) > 0:
+ print(f" Last sell: {sells.index[-1]:%Y-%m-%d}")
diff --git a/agent/src/skills/token-unlock-treasury/SKILL.md b/agent/src/skills/token-unlock-treasury/SKILL.md
new file mode 100644
index 000000000..caa6e0f58
--- /dev/null
+++ b/agent/src/skills/token-unlock-treasury/SKILL.md
@@ -0,0 +1,271 @@
+---
+name: token-unlock-treasury
+description: Token unlock schedule analysis and project treasury tracking โ€” vesting cliffs, linear unlocks, team/investor/ecosystem token releases, treasury diversification, and sell pressure forecasting.
+---
+# Token Unlock & Treasury Analysis
+
+## Overview
+
+Track token vesting schedules, upcoming unlock events, and project treasury holdings to forecast sell pressure and assess project sustainability. Token unlocks are one of the most predictable and high-impact supply-side events in crypto โ€” large unlocks consistently create short-term selling pressure.
+
+## Core Concepts
+
+### 1. Token Distribution Taxonomy
+
+**Standard allocation categories:**
+
+| Category | Typical % | Lock Period | Vesting | Sell Pressure Risk |
+|----------|-----------|------------|---------|-------------------|
+| Team / Founders | 15-25% | 12-24 months cliff | 2-4 year linear | High (sell to fund lifestyle / diversify) |
+| Investors (Seed) | 5-15% | 6-12 months cliff | 1-2 year linear | Very high (VC fund lifecycle: must return capital) |
+| Investors (Series A+) | 10-20% | 6-12 months cliff | 1-2 year linear | Very high |
+| Ecosystem / Community | 20-40% | Variable | Ongoing emissions | Medium (depends on incentive design) |
+| Treasury / Foundation | 10-20% | None (discretionary) | DAO-governed | Low-medium (depends on governance) |
+| Public Sale / Airdrop | 5-15% | None | Immediately liquid | Initial dump, then stabilizes |
+| Advisors | 2-5% | 6-12 months cliff | 1-2 year linear | Medium |
+
+### 2. Unlock Event Types
+
+**Cliff unlock:**
+- Large one-time release after lock period expires
+- Most impactful: 5-30% of supply unlocking in a single event
+- Typical impact: -5% to -20% price decline in the 7 days around a cliff unlock
+
+**Linear / continuous unlock:**
+- Steady stream of tokens released over time (daily/weekly/monthly)
+- Creates persistent but predictable sell pressure
+- Impact depends on rate relative to trading volume
+
+**Milestone-based unlock:**
+- Triggered by protocol metrics (TVL target, user count, etc.)
+- Less predictable but usually positive signal (means protocol is growing)
+
+### 3. Unlock Impact Assessment
+
+```python
+def assess_unlock_impact(unlock_amount, circulating_supply, daily_volume, recipient_type):
+ """
+ Assess the market impact of an upcoming token unlock.
+ """
+ # Unlock as % of circulating supply
+ supply_pct = unlock_amount / circulating_supply * 100
+
+ # Unlock as multiple of daily volume
+ volume_multiple = unlock_amount / daily_volume
+
+ # Base impact score
+ if supply_pct > 10:
+ base_impact = "critical" # >10% of supply = very high impact
+ elif supply_pct > 5:
+ base_impact = "high"
+ elif supply_pct > 2:
+ base_impact = "medium"
+ elif supply_pct > 0.5:
+ base_impact = "low"
+ else:
+ base_impact = "negligible"
+
+ # Adjust for recipient type (who receives the tokens)
+ recipient_multiplier = {
+ "team": 0.7, # Team sells ~70% within 6 months historically
+ "investor_seed": 0.8, # VCs must return capital, sell aggressively
+ "investor_later": 0.6,
+ "ecosystem": 0.3, # Ecosystem tokens often re-staked or used
+ "treasury": 0.2, # Treasury rarely dumps (governance constraints)
+ "community": 0.5, # Mixed behavior
+ }
+
+ effective_sell_pressure = supply_pct * recipient_multiplier.get(recipient_type, 0.5)
+
+ # Volume absorption capacity
+ if volume_multiple > 5:
+ absorption = "illiquid" # Market cannot absorb easily
+ elif volume_multiple > 2:
+ absorption = "difficult"
+ elif volume_multiple > 0.5:
+ absorption = "manageable"
+ else:
+ absorption = "easily_absorbed"
+
+ return {
+ "supply_impact_pct": supply_pct,
+ "base_impact": base_impact,
+ "effective_sell_pct": effective_sell_pressure,
+ "volume_absorption": absorption,
+ }
+```
+
+### 4. Historical Unlock Price Patterns
+
+**Empirical observations (2021-2025 data):**
+
+| Unlock Size (% of circ.) | Pre-unlock (7d) | Post-unlock (7d) | Post-unlock (30d) |
+|--------------------------|-----------------|------------------|-------------------|
+| >10% | -8 to -15% | -5 to -20% | -10 to -30% (often no recovery) |
+| 5-10% | -3 to -8% | -3 to -10% | Mixed (depends on market regime) |
+| 2-5% | -1 to -5% | -2 to -5% | Usually recovers within 30d |
+| <2% | Minimal | -1 to -3% | Negligible long-term impact |
+
+**Key patterns:**
+1. **Pre-unlock front-running**: market starts selling 3-7 days before known unlock dates
+2. **Post-unlock recovery**: if broader market is bullish, 2-5% unlocks often fully recover within 2-4 weeks
+3. **Continuous unlock drag**: tokens with >5% monthly emission rate tend to underperform BTC by 10-20% annualized
+4. **Cliff + bear market = disaster**: large cliff unlocks during bear markets create cascading selling
+
+### 5. Treasury Health Analysis
+
+**Treasury assessment framework:**
+
+```python
+treasury_health = {
+ "total_value_usd": 500_000_000, # Total treasury value
+ "runway_months": 36, # Treasury / monthly burn
+ "diversification": {
+ "native_token_pct": 60, # % held in own token (risky)
+ "stablecoins_pct": 25, # USDC/USDT/DAI (safe)
+ "eth_btc_pct": 10, # Blue-chip crypto
+ "other_pct": 5, # Other assets
+ },
+ "monthly_burn_usd": 5_000_000, # Operating expenses per month
+ "revenue_coverage": 0.6, # Revenue / burn ratio
+}
+
+def treasury_signal(health):
+ # Runway assessment
+ if health["runway_months"] < 12:
+ runway_signal = "critical" # Less than 1 year of funding
+ elif health["runway_months"] < 24:
+ runway_signal = "concerning"
+ else:
+ runway_signal = "healthy"
+
+ # Diversification assessment
+ native_pct = health["diversification"]["native_token_pct"]
+ if native_pct > 80:
+ diversity_signal = "concentrated_risk" # Treasury value crashes with token price
+ elif native_pct > 50:
+ diversity_signal = "moderate_risk"
+ else:
+ diversity_signal = "diversified" # Healthy treasury management
+
+ # Revenue sustainability
+ if health["revenue_coverage"] > 1.0:
+ revenue_signal = "self_sustaining" # Revenue covers all expenses
+ elif health["revenue_coverage"] > 0.5:
+ revenue_signal = "partially_funded"
+ else:
+ revenue_signal = "treasury_dependent" # Fully reliant on treasury
+
+ return runway_signal, diversity_signal, revenue_signal
+```
+
+**Red flags in treasury management:**
+1. Treasury >80% in native token โ†’ death spiral risk (token drops โ†’ treasury drops โ†’ must sell more)
+2. Runway < 12 months โ†’ protocol may cut development or do emergency token sale
+3. Large OTC sales by treasury โ†’ dilution signal (often sold at 20-30% discount)
+4. Treasury spending on non-core activities (acquisitions, marketing burns) โ†’ poor capital allocation
+5. No revenue or declining revenue โ†’ unsustainable token emissions subsidizing usage
+
+### 6. Emission Rate Analysis
+
+```python
+def emission_analysis(token):
+ """Analyze ongoing token emission sustainability."""
+ # Monthly emission rate
+ monthly_new_tokens = token.monthly_unlock + token.staking_rewards + token.mining_rewards
+ monthly_emission_pct = monthly_new_tokens / token.circulating_supply * 100
+
+ # Inflation-adjusted real yield
+ staking_yield_nominal = token.staking_apy
+ inflation_rate = monthly_emission_pct * 12 # Annualized
+ real_yield = staking_yield_nominal - inflation_rate
+
+ # Assessment
+ if monthly_emission_pct > 5:
+ emission_verdict = "hyperinflation" # Unsustainable
+ elif monthly_emission_pct > 2:
+ emission_verdict = "high_inflation" # Significant dilution
+ elif monthly_emission_pct > 0.5:
+ emission_verdict = "moderate" # Manageable
+ else:
+ emission_verdict = "low_emission" # Minimal dilution
+
+ if real_yield < 0:
+ yield_verdict = "negative_real_yield" # Staking rewards < inflation = value destruction
+ else:
+ yield_verdict = "positive_real_yield"
+
+ return emission_verdict, yield_verdict, real_yield
+```
+
+### 7. Major Protocol Unlock Calendars
+
+**Tier 1 protocols to track:**
+
+| Protocol | Token | Key Unlock Events | Data Source |
+|----------|-------|-------------------|-------------|
+| Solana | SOL | Foundation + early investor unlocks | Token Unlocks |
+| Aptos | APT | Monthly investor/team unlocks | Token Unlocks |
+| Arbitrum | ARB | Massive team + investor cliff (Mar 2025) | Token Unlocks |
+| Sui | SUI | Investor and contributor unlocks | Token Unlocks |
+| Celestia | TIA | Investor cliff unlock | Token Unlocks |
+| Starknet | STRK | Large early investor vesting | Token Unlocks |
+| Optimism | OP | Ongoing core contributor vesting | Token Unlocks |
+| dYdX | DYDX | Trading rewards + team vesting | Token Unlocks |
+
+**Data sources:**
+- tokenunlocks.app โ€” most comprehensive unlock calendar
+- messari.io/asset/{token}/profile โ€” tokenomics breakdown
+- Protocol governance forums โ€” treasury proposals and spending
+
+## Output Format
+
+```
+## Token Unlock & Treasury Analysis โ€” [Protocol/Token]
+
+### Tokenomics Overview
+- **Total supply**: X,XXX,XXX,XXX
+- **Circulating supply**: X,XXX,XXX,XXX (X% of total)
+- **Fully diluted valuation (FDV)**: $X.XB
+- **Market cap / FDV ratio**: X.X% (lower = more future dilution)
+
+### Upcoming Unlocks (next 90 days)
+| Date | Amount | % of Circ. | Recipient | Impact |
+|------|--------|-----------|-----------|--------|
+| YYYY-MM-DD | X,XXX,XXX | X.X% | Team | High |
+| YYYY-MM-DD | X,XXX,XXX | X.X% | Investor | Medium |
+
+### Emission Rate
+- **Monthly new supply**: X.X% of circulating
+- **Annualized inflation**: X.X%
+- **Staking nominal yield**: X.X%
+- **Real yield (yield - inflation)**: X.X%
+- **Verdict**: [hyperinflation / high / moderate / low]
+
+### Treasury Health
+- **Total value**: $XXX M
+- **Composition**: X% native token, X% stablecoins, X% ETH/BTC
+- **Monthly burn**: $X.X M
+- **Runway**: XX months
+- **Revenue coverage**: X.X%
+- **Diversification risk**: [concentrated / moderate / diversified]
+
+### Sell Pressure Forecast
+- **Next 30 days**: [X tokens unlocking โ†’ $X.XM at current price โ†’ X days of volume]
+- **Next 90 days**: [summary]
+- **Absorption capacity**: [easily / manageable / difficult / illiquid]
+
+### Signal
+- **Short-term (pre-unlock)**: [avoid / reduce / hold / accumulate]
+- **Medium-term (post-unlock)**: [recovery expected / persistent pressure / unclear]
+- **Long-term (tokenomics health)**: [sustainable / concerning / unsustainable]
+```
+
+## Notes
+
+- Token unlock data requires external sources (tokenunlocks.app, protocol docs); not available via OKX API
+- Unlock dates can change if governance votes to modify vesting schedules
+- Market cap / FDV ratio < 30% means >70% of tokens are still locked โ€” significant future dilution risk
+- Always compare unlock impact relative to daily trading volume, not just supply percentage
+- Some protocols have buyback / burn mechanisms that offset emissions โ€” check net inflation, not gross
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/tushare/SKILL.md b/agent/src/skills/tushare/SKILL.md
new file mode 100644
index 000000000..b4c7dc059
--- /dev/null
+++ b/agent/src/skills/tushare/SKILL.md
@@ -0,0 +1,287 @@
+---
+name: tushare
+description: tushareๆ˜ฏไธ€ไธช่ดข็ปๆ•ฐๆฎๆŽฅๅฃๅŒ…๏ผŒๆ‹ฅๆœ‰ไธฐๅฏŒ็š„ๆ•ฐๆฎๅ†…ๅฎน๏ผŒๅฆ‚่‚ก็ฅจใ€ๅŸบ้‡‘ใ€ๆœŸ่ดงใ€ๆ•ฐๅญ—่ดงๅธ็ญ‰่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅ…ฌๅธ่ดขๅŠกใ€ๅŸบ้‡‘็ป็†็ญ‰ๅŸบๆœฌ้ขๆ•ฐๆฎใ€‚่ฏฅๆจกๅ—้€š่ฟ‡ๆ ‡ๅ‡†ๅŒ–APIๆ–นๅผ็ปŸไธ€ไบ†ๆ•ฐๆฎ่ต„ไบง็š„ๅฏนๅค–ๆœๅŠกๆ–นๅผ๏ผŒไปฅๅธฎๅŠฉๆœ‰้œ€่ฆ็š„ๆŠ€ๆœฏ็”จๆˆทๆ›ดๅฎžๆ—ถใ€็ฎ€ๆดใ€่ฝป้‡็š„ไฝฟ็”จ็›ธๅ…ณๆ•ฐๆฎใ€‚
+---
+# Tushare
+
+## ๆฆ‚่ฟฐ
+
+tushareๆ˜ฏไธ€ไธช่ดข็ปๆ•ฐๆฎๆŽฅๅฃๅŒ…๏ผŒๆ‹ฅๆœ‰ไธฐๅฏŒ็š„ๆ•ฐๆฎๅ†…ๅฎน๏ผŒๅฆ‚่‚ก็ฅจใ€ๅŸบ้‡‘ใ€ๆœŸ่ดงใ€ๆ•ฐๅญ—่ดงๅธ็ญ‰่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅ…ฌๅธ่ดขๅŠกใ€ๅŸบ้‡‘็ป็†็ญ‰ๅŸบๆœฌ้ขๆ•ฐๆฎใ€‚่ฏฅๆจกๅ—้€š่ฟ‡ๆ ‡ๅ‡†ๅŒ–APIๆ–นๅผ็ปŸไธ€ไบ†ๆ•ฐๆฎ่ต„ไบง็š„ๅฏนๅค–ๆœๅŠกๆ–นๅผ๏ผŒไปฅๅธฎๅŠฉๆœ‰้œ€่ฆ็š„ๆŠ€ๆœฏ็”จๆˆทๆ›ดๅฎžๆ—ถใ€็ฎ€ๆดใ€่ฝป้‡็š„ไฝฟ็”จ็›ธๅ…ณๆ•ฐๆฎใ€‚
+
+## ๅฟซ้€ŸไธŠๆ‰‹
+
+- ๅฎ‰่ฃ…python่ฟ่กŒ็Žฏๅขƒ(ๆŽจ่python3.7+)๏ผŒๅนถๅฎ‰่ฃ…tushareไพ่ต–ๅŒ…(ๆŽจ่ไปŽๆธ…ๅŽpypi้•œๅƒๅฎ‰่ฃ…)ใ€‚
+
+```bash
+pip install tushare -i https://pypi.tuna.tsinghua.edu.cn/simple
+```
+
+- Tushareๅฎ˜็ฝ‘ๆณจๅ†Œ๏ผŒ่Žทๅ–token๏ผŒๅนถ้…็ฝฎ็Žฏๅขƒๅ˜้‡ใ€‚ [ๆณจๅ†Œๅœฐๅ€](https://tushare.pro/register)
+
+```bash
+export TUSHARE_TOKEN=your_token
+```
+
+- ๆŸฅ่ฏขTushareๆŽฅๅฃๆ–‡ๆกฃ๏ผŒๆ‰พๅˆฐๅฏนๅบ”็š„ๆŽฅๅฃใ€‚ [ๅœจ็บฟๆ•ฐๆฎๆŽฅๅฃๆ–‡ๆกฃ](https://tushare.pro/document/2)
+- ๆ นๆฎๆŽฅๅฃๆ–‡ๆกฃ๏ผŒไฝฟ็”จpythonไปฃ็ ่Žทๅ–ๆ•ฐๆฎใ€‚๏ผˆๅฆ‚**่‚ก็ฅจๅˆ—่กจ**ๆŽฅๅฃ๏ผ‰
+
+```python
+import os
+import tushare as ts
+
+# ่ฏปๅ–็Žฏๅขƒๅ˜้‡ไธญ็š„token, ๆˆ–่€…่ฏปๅ–ๆœฌๅœฐ่ฎฐๅฝ•็š„token
+token = os.getenv('TUSHARE_TOKEN') or ts.get_token()
+
+# ๅˆๅง‹ๅŒ–proๆŽฅๅฃๅฎžไพ‹
+pro = ts.pro_api(token)
+
+# ๆŸฅ่ฏขๆ•ฐๆฎๆŽฅๅฃ๏ผˆ*่‚ก็ฅจๅˆ—่กจ*๏ผ‰๏ผŒ่Žทๅ–ไธŠๅธ‚ไบคๆ˜“็š„่‚ก็ฅจๅˆ—่กจ
+df = pro.stock_basic(list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
+print(df)
+```
+
+## ๅ‚ๆ•ฐๆ ผๅผ่ฏดๆ˜Ž
+
+- ๆ—ฅๆœŸ๏ผšYYYYMMDD๏ผˆๅฆ‚ 20241231๏ผ‰
+- ่‚ก็ฅจไปฃ็ ๏ผšts_code ๆ ผๅผ๏ผˆๅฆ‚ 000001.SZ, 600000.SH๏ผ‰
+- ่ฟ”ๅ›žๆ ผๅผ๏ผšpandas DataFrame
+
+## python่„šๆœฌ็คบไพ‹
+
+- [่‚ก็ฅจๆ•ฐๆฎ่Žทๅ–็คบไพ‹](scripts/stock_data_example.py)
+- [ๅŸบ้‡‘ๆ•ฐๆฎ่Žทๅ–็คบไพ‹](scripts/fund_data_example.py)
+
+## ๆ•ฐๆฎๆŽฅๅฃๅˆ—่กจ
+
+
+| ID | ๆŽฅๅฃๅ | ๆ ‡้ข˜(่ฏฆ็ป†ๆ–‡ๆกฃ) | ๅˆ†็ฑป | ๆ่ฟฐ |
+| ----: | :------------------- | :--------------------------------------------------------------------------------------------------------- | :---------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| 416 | rt_min | [ETFๅฎžๆ—ถๅˆ†้’Ÿ](references/ETFไธ“้ข˜/ETFๅฎžๆ—ถๅˆ†้’Ÿ.md) | ETFไธ“้ข˜ | ่Žทๅ–ETFๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min |
+| 400 | rt_etf_k | [ETFๅฎžๆ—ถๆ—ฅ็บฟ](references/ETFไธ“้ข˜/ETFๅฎžๆ—ถๆ—ฅ็บฟ.md) | ETFไธ“้ข˜ | ่Žทๅ–ETFๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰ETFไปฃ็ ๆˆ–ไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจETFๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ… |
+| 387 | stk_mins | [ETFๅކๅฒๅˆ†้’Ÿ](references/ETFไธ“้ข˜/ETFๅކๅฒๅˆ†้’Ÿ.md) | ETFไธ“้ข˜ | ่Žทๅ–ETFๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ |
+| 386 | etf_index | [ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐ](references/ETFไธ“้ข˜/ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐ.md) | ETFไธ“้ข˜ | ่Žทๅ–ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐๅˆ—่กจไฟกๆฏ |
+| 385 | etf_basic | [ETFๅŸบๆœฌไฟกๆฏ](references/ETFไธ“้ข˜/ETFๅŸบๆœฌไฟกๆฏ.md) | ETFไธ“้ข˜ | ่Žทๅ–ๅ›ฝๅ†…ETFๅŸบ็ก€ไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌไบ†QDIIใ€‚ๆ•ฐๆฎๆฅๆบไธŽๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ…ฌๅผ€ๆŠซ้œฒไฟกๆฏใ€‚ |
+| 199 | fund_adj | [ETFๅคๆƒๅ› ๅญ](references/ETFไธ“้ข˜/ETFๅคๆƒๅ› ๅญ.md) | ETFไธ“้ข˜ | ่Žทๅ–ๅŸบ้‡‘ๅคๆƒๅ› ๅญ๏ผŒ็”จไบŽ่ฎก็ฎ—ๅŸบ้‡‘ๅคๆƒ่กŒๆƒ… |
+| 127 | fund_daily | [ETFๆ—ฅ็บฟ่กŒๆƒ…](references/ETFไธ“้ข˜/ETFๆ—ฅ็บฟ่กŒๆƒ….md) | ETFไธ“้ข˜ | ่Žทๅ–ETF่กŒๆƒ…ๆฏๆ—ฅๆ”ถ็›˜ๅŽๆˆไบคๆ•ฐๆฎ๏ผŒๅކๅฒ่ถ…่ฟ‡10ๅนด |
+| 408 | etf_share_size | [ETFไปฝ้ข่ง„ๆจก](references/ETFไธ“้ข˜/ETFไปฝ้ข่ง„ๆจก.md) | ETFไธ“้ข˜ | ่Žทๅ–ๆฒชๆทฑETFๆฏๆ—ฅไปฝ้ขๅ’Œ่ง„ๆจกๆ•ฐๆฎ๏ผŒ่ƒฝไฝ“็Žฐ่ง„ๆจกไปฝ้ข็š„ๅ˜ๅŒ–๏ผŒๆŽŒๆกETF่ต„้‡‘ๅŠจๅ‘๏ผŒๅŒๆ—ถๆไพ›ๆฏๆ—ฅๅ‡€ๅ€ผๅ’Œๆ”ถ็›˜ไปท๏ผ›ๆ•ฐๆฎๆŒ‡ๆ ‡ๆ˜ฏๅˆ†ๆ‰นๅ…ฅๅบ“๏ผŒๅปบ่ฎฎๅœจๆฏๆ—ฅ19็‚นๅŽๆๅ–๏ผ›ๅฆๅค–๏ผŒๆถ‰ๅŠๆตทๅค–็š„ETFๆ•ฐๆฎๆ›ดๆ–ฐไผšๆ™šไธ€ไบ›ๅฑžไบŽๆญฃๅธธๆƒ…ๅ†ตใ€‚ |
+| 322 | bc_otcqt | [ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท](references/ๅ€บๅˆธไธ“้ข˜/ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท.md) | ๅ€บๅˆธไธ“้ข˜ | ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท |
+| 305 | cb_rate | [ๅฏ่ฝฌๅ€บ็ฅจ้ขๅˆฉ็އ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บ็ฅจ้ขๅˆฉ็އ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บ็ฅจ้ขๅˆฉ็އ |
+| 272 | bond_blk_detail | [ๅคงๅฎ—ไบคๆ˜“ๆ˜Ž็ป†](references/ๅ€บๅˆธไธ“้ข˜/ๅคงๅฎ—ไบคๆ˜“ๆ˜Ž็ป†.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ€บๅˆธๅคงๅฎ—ไบคๆ˜“ๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚ |
+| 271 | bond_blk | [ๅคงๅฎ—ไบคๆ˜“](references/ๅ€บๅˆธไธ“้ข˜/ๅคงๅฎ—ไบคๆ˜“.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ€บๅˆธๅคงๅฎ—ไบคๆ˜“ๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚ |
+| 269 | cb_call | [ๅฏ่ฝฌๅ€บ่ตŽๅ›žไฟกๆฏ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บ่ตŽๅ›žไฟกๆฏ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บๅˆฐๆœŸ่ตŽๅ›žใ€ๅผบๅˆถ่ตŽๅ›ž็ญ‰ไฟกๆฏใ€‚ๆ•ฐๆฎๆฅๆบไบŽๅ…ฌๅผ€ๆŠซ้œฒๆธ ้“๏ผŒไพ›ไธชไบบๅ’Œๆœบๆž„็ ”็ฉถไฝฟ็”จ๏ผŒ่ฏทไธ่ฆ็”จไบŽๆ•ฐๆฎๅ•†ไธš็›ฎ็š„ใ€‚ |
+| 256 | repo_daily | [ๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ…](references/ๅ€บๅˆธไธ“้ข˜/ๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ….md) | ๅ€บๅˆธไธ“้ข˜ | ๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ… |
+| 323 | bc_bestotcqt | [ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท](references/ๅ€บๅˆธไธ“้ข˜/ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท.md) | ๅ€บๅˆธไธ“้ข˜ | ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท |
+| 392 | cb_factor_pro | [ๅฏ่ฝฌๅ€บๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ)](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ).md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๅฏ่ฝฌๅ€บๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒ_qfq่กจ็คบๅ‰ๅคๆƒ _hfq่กจ็คบๅŽๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ |
+| 246 | cb_price_chg | [ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ |
+| 233 | eco_cal | [ๅ…จ็ƒ่ดข็ปไบ‹ไปถ](references/ๅ€บๅˆธไธ“้ข˜/ๅ…จ็ƒ่ดข็ปไบ‹ไปถ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅ…จ็ƒ่ดข็ปๆ—ฅๅކใ€ๅŒ…ๆ‹ฌ็ปๆตŽไบ‹ไปถๆ•ฐๆฎๆ›ดๆ–ฐ |
+| 201 | yc_cb | [ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ](references/ๅ€บๅˆธไธ“้ข˜/ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ไธญๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ๏ผŒ็›ฎๅ‰ๅฏ่Žทๅ–ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅณๆœŸๅ’ŒๅˆฐๆœŸๆ”ถ็›Š็އๆ›ฒ็บฟๆ•ฐๆฎ |
+| 187 | cb_daily | [ๅฏ่ฝฌๅ€บ่กŒๆƒ…](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บ่กŒๆƒ….md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บ่กŒๆƒ… |
+| 186 | cb_issue | [ๅฏ่ฝฌๅ€บๅ‘่กŒ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บๅ‘่กŒ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บๅ‘่กŒๆ•ฐๆฎ |
+| 185 | cb_basic | [ๅฏ่ฝฌๅ€บๅŸบ็ก€ไฟกๆฏ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บๅŸบ็ก€ไฟกๆฏ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บๅŸบๆœฌไฟกๆฏ |
+| 247 | cb_share | [ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ](references/ๅ€บๅˆธไธ“้ข˜/ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ.md) | ๅ€บๅˆธไธ“้ข˜ | ่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ |
+| 208 | fund_manager | [ๅŸบ้‡‘็ป็†](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘็ป็†.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘็ป็†ๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๅŸบ้‡‘็ป็†็ฎ€ๅކ็ญ‰ๆ•ฐๆฎ |
+| 207 | fund_share | [ๅŸบ้‡‘่ง„ๆจก](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘่ง„ๆจก.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅŸบ้‡‘่ง„ๆจกๆ•ฐๆฎ๏ผŒๅŒ…ๅซไธŠๆตทๅ’ŒๆทฑๅœณETFๅŸบ้‡‘ |
+| 121 | fund_portfolio | [ๅŸบ้‡‘ๆŒไป“](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘ๆŒไป“.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๆŒไป“ๆ•ฐๆฎ๏ผŒๅญฃๅบฆๆ›ดๆ–ฐ |
+| 120 | fund_div | [ๅŸบ้‡‘ๅˆ†็บข](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘ๅˆ†็บข.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅˆ†็บขๆ•ฐๆฎ |
+| 119 | fund_nav | [ๅŸบ้‡‘ๅ‡€ๅ€ผ](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘ๅ‡€ๅ€ผ.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ |
+| 118 | fund_company | [ๅŸบ้‡‘็ฎก็†ไบบ](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘็ฎก็†ไบบ.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘็ฎก็†ไบบๅˆ—่กจ |
+| 19 | fund_basic | [ๅŸบ้‡‘ๅˆ—่กจ](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘ๅˆ—่กจ.md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๆ•ฐๆฎๅˆ—่กจ๏ผŒๅŒ…ๆ‹ฌๅœบๅ†…ๅ’Œๅœบๅค–ๅŸบ้‡‘ |
+| 359 | fund_factor_pro | [ๅŸบ้‡‘ๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ)](references/ๅ…ฌๅ‹ŸๅŸบ้‡‘/ๅŸบ้‡‘ๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ).md) | ๅ…ฌๅ‹ŸๅŸบ้‡‘ | ่Žทๅ–ๅœบๅ†…ๅŸบ้‡‘ๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๅœบๅ†…ๅŸบ้‡‘ๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ |
+| 178 | fx_obasic | [ๅค–ๆฑ‡ๅŸบ็ก€ไฟกๆฏ(ๆตทๅค–)](references/ๅค–ๆฑ‡ๆ•ฐๆฎ/ๅค–ๆฑ‡ๅŸบ็ก€ไฟกๆฏ(ๆตทๅค–).md) | ๅค–ๆฑ‡ๆ•ฐๆฎ | ่Žทๅ–ๆตทๅค–ๅค–ๆฑ‡ๅŸบ็ก€ไฟกๆฏ๏ผŒ็›ฎๅ‰ๅชๆœ‰FXCMไบคๆ˜“ๅ•†็š„ๆ•ฐๆฎ |
+| 179 | fx_daily | [ๅค–ๆฑ‡ๆ—ฅ็บฟ่กŒๆƒ…](references/ๅค–ๆฑ‡ๆ•ฐๆฎ/ๅค–ๆฑ‡ๆ—ฅ็บฟ่กŒๆƒ….md) | ๅค–ๆฑ‡ๆ•ฐๆฎ | ่Žทๅ–ๅค–ๆฑ‡ๆ—ฅ็บฟ่กŒๆƒ… |
+| 415 | research_report | [ๅˆธๅ•†็ ”็ฉถๆŠฅๅ‘Š](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๅˆธๅ•†็ ”็ฉถๆŠฅๅ‘Š.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅˆธๅ•†็ ”็ฉถๆŠฅๅ‘Š-ไธช่‚กใ€่กŒไธš็ญ‰๏ผŒๅކๅฒๆ•ฐๆฎไปŽ20170101ๅผ€ๅง‹ๆไพ›๏ผŒๅขž้‡ๆฏๅคฉไธคๆฌกๆ›ดๆ–ฐ |
+| 143 | news | [ๆ–ฐ้—ปๅฟซ่ฎฏ(็Ÿญ่ฎฏ)](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๆ–ฐ้—ปๅฟซ่ฎฏ(็Ÿญ่ฎฏ).md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ไธปๆตๆ–ฐ้—ป็ฝ‘็ซ™็š„ๅฟซ่ฎฏๆ–ฐ้—ปๆ•ฐๆฎ,ๆไพ›่ถ…่ฟ‡6ๅนดไปฅไธŠๅކๅฒๆ–ฐ้—ปใ€‚ |
+| 154 | cctv_news | [ๆ–ฐ้—ป่”ๆ’ญๆ–‡ๅญ—็จฟ](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๆ–ฐ้—ป่”ๆ’ญๆ–‡ๅญ—็จฟ.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๆ–ฐ้—ป่”ๆ’ญๆ–‡ๅญ—็จฟๆ•ฐๆฎ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2017ๅนดใ€‚ |
+| 176 | anns_d | [ไธŠๅธ‚ๅ…ฌๅธๅ…ฌๅ‘Š](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ไธŠๅธ‚ๅ…ฌๅธๅ…ฌๅ‘Š.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅ…จ้‡ๅ…ฌๅ‘Šๆ•ฐๆฎ๏ผŒๆไพ›pdfไธ‹่ฝฝURL |
+| 367 | irm_qa_sz | [ๆทฑ่ฏๆ˜“ไบ’ๅŠจ้—ฎ็ญ”](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๆทฑ่ฏๆ˜“ไบ’ๅŠจ้—ฎ็ญ”.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | |
+| 366 | irm_qa_sh | [ไธŠ่ฏeไบ’ๅŠจ้—ฎ็ญ”](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ไธŠ่ฏeไบ’ๅŠจ้—ฎ็ญ”.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | |
+| 195 | major_news | [ๆ–ฐ้—ป้€š่ฎฏ(้•ฟ็ฏ‡)](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๆ–ฐ้—ป้€š่ฎฏ(้•ฟ็ฏ‡).md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–้•ฟ็ฏ‡้€š่ฎฏไฟกๆฏ๏ผŒ่ฆ†็›–ไธป่ฆๆ–ฐ้—ป่ต„่ฎฏ็ฝ‘็ซ™๏ผŒๆไพ›่ถ…่ฟ‡8ๅนดๅކๅฒๆ–ฐ้—ปใ€‚ |
+| 406 | npr | [ๅ›ฝๅฎถๆ”ฟ็ญ–ๅบ“](references/ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ/ๅ›ฝๅฎถๆ”ฟ็ญ–ๅบ“.md) | ๅคงๆจกๅž‹่ฏญๆ–™ไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅ›ฝๅฎถ่กŒๆ”ฟๆœบๅ…ณๅ…ฌๅผ€ๆŠซ้œฒ็š„ๅ„็ฑปๆณ•่ง„ใ€ๆกไพ‹ๆ”ฟ็ญ–ใ€ๆ‰นๅคใ€้€š็Ÿฅ็ญ‰ๆ–‡ๆœฌๆ•ฐๆฎใ€‚ |
+| 245 | cn_ppi | [ๅทฅไธš็”Ÿไบง่€…ๅ‡บๅŽ‚ไปทๆ ผๆŒ‡ๆ•ฐ(PPI)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ไปทๆ ผๆŒ‡ๆ•ฐ/ๅทฅไธš็”Ÿไบง่€…ๅ‡บๅŽ‚ไปทๆ ผๆŒ‡ๆ•ฐ(PPI).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ไปทๆ ผๆŒ‡ๆ•ฐ | ่Žทๅ–PPIๅทฅไธš็”Ÿไบง่€…ๅ‡บๅŽ‚ไปทๆ ผๆŒ‡ๆ•ฐๆ•ฐๆฎ |
+| 228 | cn_cpi | [ๅฑ…ๆฐ‘ๆถˆ่ดนไปทๆ ผๆŒ‡ๆ•ฐ(CPI)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ไปทๆ ผๆŒ‡ๆ•ฐ/ๅฑ…ๆฐ‘ๆถˆ่ดนไปทๆ ผๆŒ‡ๆ•ฐ(CPI).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ไปทๆ ผๆŒ‡ๆ•ฐ | ่Žทๅ–CPIๅฑ…ๆฐ‘ๆถˆ่ดนไปทๆ ผๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๅ…จๅ›ฝใ€ๅŸŽๅธ‚ๅ’Œๅ†œๆ‘็š„ๆ•ฐๆฎ |
+| 149 | shibor | [Shiborๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/Shiborๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | shiborๅˆฉ็އ |
+| 151 | shibor_lpr | [LPR่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/LPR่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | LPR่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ |
+| 152 | libor | [Liborๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/Liborๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | Liborๆ‹†ๅ€Ÿๅˆฉ็އ |
+| 150 | shibor_quote | [ShiborๆŠฅไปทๆ•ฐๆฎ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/ShiborๆŠฅไปทๆ•ฐๆฎ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | ShiborๆŠฅไปทๆ•ฐๆฎ |
+| 173 | wz_index | [ๆธฉๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/ๆธฉๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | ๆธฉๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ๏ผŒๅณๆธฉๅทžๆŒ‡ๆ•ฐ |
+| 153 | hibor | [Hiborๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/Hiborๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | Hiborๅˆฉ็އ |
+| 174 | gz_index | [ๅนฟๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅˆฉ็އๆ•ฐๆฎ/ๅนฟๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅˆฉ็އๆ•ฐๆฎ | ๅนฟๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ |
+| 227 | cn_gdp | [ๅ›ฝๅ†…็”Ÿไบงๆ€ปๅ€ผ(GDP)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๅ›ฝๆฐ‘็ปๆตŽ/ๅ›ฝๅ†…็”Ÿไบงๆ€ปๅ€ผ(GDP).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๅ›ฝๆฐ‘็ปๆตŽ | ่Žทๅ–ๅ›ฝๆฐ‘็ปๆตŽไน‹GDPๆ•ฐๆฎ |
+| 325 | cn_pmi | [้‡‡่ดญ็ป็†ๆŒ‡ๆ•ฐ(PMI)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/ๆ™ฏๆฐ”ๅบฆ/้‡‡่ดญ็ป็†ๆŒ‡ๆ•ฐ(PMI).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,ๆ™ฏๆฐ”ๅบฆ | ้‡‡่ดญ็ป็†ไบบๆŒ‡ๆ•ฐ |
+| 310 | sf_month | [็คพ่žๅขž้‡(ๆœˆๅบฆ)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/้‡‘่ž/็คพไผš่ž่ต„/็คพ่žๅขž้‡(ๆœˆๅบฆ).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,้‡‘่ž,็คพไผš่ž่ต„ | ่Žทๅ–ๆœˆๅบฆ็คพไผš่ž่ต„ๆ•ฐๆฎ |
+| 242 | cn_m | [่ดงๅธไพ›ๅบ”้‡(ๆœˆ)](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝๅ†…ๅฎ่ง‚/้‡‘่ž/่ดงๅธไพ›ๅบ”้‡/่ดงๅธไพ›ๅบ”้‡(ๆœˆ).md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝๅ†…ๅฎ่ง‚,้‡‘่ž,่ดงๅธไพ›ๅบ”้‡ | ่Žทๅ–่ดงๅธไพ›ๅบ”้‡ไน‹ๆœˆๅบฆๆ•ฐๆฎ |
+| 221 | us_tbr | [็ŸญๆœŸๅ›ฝๅ€บๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝ้™…ๅฎ่ง‚/็พŽๅ›ฝๅˆฉ็އ/็ŸญๆœŸๅ›ฝๅ€บๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝ้™…ๅฎ่ง‚,็พŽๅ›ฝๅˆฉ็އ | ่Žทๅ–็พŽๅ›ฝ็ŸญๆœŸๅ›ฝๅ€บๅˆฉ็އๆ•ฐๆฎ |
+| 220 | us_trycr | [ๅ›ฝๅ€บๅฎž้™…ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝ้™…ๅฎ่ง‚/็พŽๅ›ฝๅˆฉ็އ/ๅ›ฝๅ€บๅฎž้™…ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝ้™…ๅฎ่ง‚,็พŽๅ›ฝๅˆฉ็އ | ๅ›ฝๅ€บๅฎž้™…ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ |
+| 222 | us_tltr | [ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝ้™…ๅฎ่ง‚/็พŽๅ›ฝๅˆฉ็އ/ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝ้™…ๅฎ่ง‚,็พŽๅ›ฝๅˆฉ็އ | ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އ |
+| 223 | us_trltr | [ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އๅนณๅ‡ๅ€ผ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝ้™…ๅฎ่ง‚/็พŽๅ›ฝๅˆฉ็އ/ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އๅนณๅ‡ๅ€ผ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝ้™…ๅฎ่ง‚,็พŽๅ›ฝๅˆฉ็އ | ๅ›ฝๅ€บๅฎž้™…้•ฟๆœŸๅˆฉ็އๅนณๅ‡ๅ€ผ |
+| 219 | us_tycr | [ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ](references/ๅฎ่ง‚็ปๆตŽ/ๅ›ฝ้™…ๅฎ่ง‚/็พŽๅ›ฝๅˆฉ็އ/ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ.md) | ๅฎ่ง‚็ปๆตŽ,ๅ›ฝ้™…ๅฎ่ง‚,็พŽๅ›ฝๅˆฉ็އ | ่Žทๅ–็พŽๅ›ฝๆฏๆ—ฅๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ |
+| 420 | rt_idx_min | [ๆŒ‡ๆ•ฐๅฎžๆ—ถๅˆ†้’Ÿ](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๅฎžๆ—ถๅˆ†้’Ÿ.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min |
+| 419 | idx_mins | [ๆŒ‡ๆ•ฐๅކๅฒๅˆ†้’Ÿ](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๅކๅฒๅˆ†้’Ÿ.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ |
+| 215 | daily_info | [ๆฒชๆทฑๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“็ปŸ่ฎก](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆฒชๆทฑๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“็ปŸ่ฎก.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ไบคๆ˜“ๆ‰€่‚ก็ฅจไบคๆ˜“็ปŸ่ฎก๏ผŒๅŒ…ๆ‹ฌๅ„ๆฟๅ—ๆ˜Ž็ป† |
+| 211 | index_global | [ๅ›ฝ้™…ไธป่ฆๆŒ‡ๆ•ฐ](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๅ›ฝ้™…ไธป่ฆๆŒ‡ๆ•ฐ.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๅ›ฝ้™…ไธป่ฆๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ… |
+| 181 | index_classify | [็”ณไธ‡่กŒไธšๅˆ†็ฑป](references/ๆŒ‡ๆ•ฐไธ“้ข˜/็”ณไธ‡่กŒไธšๅˆ†็ฑป.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–็”ณไธ‡่กŒไธšๅˆ†็ฑป๏ผŒๅฏไปฅ่Žทๅ–็”ณไธ‡2014ๅนด็‰ˆๆœฌ๏ผˆ28ไธชไธ€็บงๅˆ†็ฑป๏ผŒ104ไธชไบŒ็บงๅˆ†็ฑป๏ผŒ227ไธชไธ‰็บงๅˆ†็ฑป๏ผ‰ๅ’Œ2021ๅนดๆœฌ็‰ˆ๏ผˆ31ไธชไธ€็บงๅˆ†็ฑป๏ผŒ134ไธชไบŒ็บงๅˆ†็ฑป๏ผŒ346ไธชไธ‰็บงๅˆ†็ฑป๏ผ‰ๅˆ—่กจไฟกๆฏ |
+| 268 | sz_daily_info | [ๆทฑๅœณๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“ๆƒ…ๅ†ต](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆทฑๅœณๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“ๆƒ…ๅ†ต.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆทฑๅœณๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“ๆฆ‚ๅ†ต |
+| 128 | index_dailybasic | [ๅคง็›˜ๆŒ‡ๆ•ฐๆฏๆ—ฅๆŒ‡ๆ ‡](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๅคง็›˜ๆŒ‡ๆ•ฐๆฏๆ—ฅๆŒ‡ๆ ‡.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ็›ฎๅ‰ๅชๆไพ›ไธŠ่ฏ็ปผๆŒ‡๏ผŒๆทฑ่ฏๆˆๆŒ‡๏ผŒไธŠ่ฏ50๏ผŒไธญ่ฏ500๏ผŒไธญๅฐๆฟๆŒ‡๏ผŒๅˆ›ไธšๆฟๆŒ‡็š„ๆฏๆ—ฅๆŒ‡ๆ ‡ๆ•ฐๆฎ |
+| 403 | rt_idx_k | [ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅ็บฟ](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅ็บฟ.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅ็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰ไปฃ็ ๆˆ–ไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ… |
+| 96 | index_weight | [ๆŒ‡ๆ•ฐๆˆๅˆ†ๅ’Œๆƒ้‡](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๆˆๅˆ†ๅ’Œๆƒ้‡.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๅ„็ฑปๆŒ‡ๆ•ฐๆˆๅˆ†ๅ’Œๆƒ้‡๏ผŒ**ๆœˆๅบฆๆ•ฐๆฎ** ๏ผŒๅปบ่ฎฎ่พ“ๅ…ฅๅ‚ๆ•ฐ้‡Œๅผ€ๅง‹ๆ—ฅๆœŸๅ’Œ็ป“ๆŸๆ—ฅๅˆ†ๅˆซ่พ“ๅ…ฅๅฝ“ๆœˆ็ฌฌไธ€ๅคฉๅ’Œๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸใ€‚ |
+| 373 | ci_index_member | [ไธญไฟก่กŒไธšๆˆๅˆ†](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ไธญไฟก่กŒไธšๆˆๅˆ†.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ๆŒ‰ไธ‰็บงๅˆ†็ฑปๆๅ–ไธญไฟก่กŒไธšๆˆๅˆ†๏ผŒๅฏๆไพ›ๆŸไธชๅˆ†็ฑป็š„ๆ‰€ๆœ‰ๆˆๅˆ†๏ผŒไนŸๅฏๆŒ‰่‚ก็ฅจไปฃ็ ๆๅ–ๆ‰€ๅฑžๅˆ†็ฑป๏ผŒๅ‚ๆ•ฐ็ตๆดป |
+| 358 | idx_factor_pro | [ๆŒ‡ๆ•ฐๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ)](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ).md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆŒ‡ๆ•ฐๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๆŒ‡ๆ•ฐๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ๏ผŒๆŒ‡ๆ•ฐๅŒ…ๆ‹ฌๅคง็›˜ๆŒ‡ๆ•ฐ ็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐ ไธญไฟกๆŒ‡ๆ•ฐ |
+| 335 | index_member_all | [็”ณไธ‡่กŒไธšๆˆๅˆ†(ๅˆ†็บง)](references/ๆŒ‡ๆ•ฐไธ“้ข˜/็”ณไธ‡่กŒไธšๆˆๅˆ†(ๅˆ†็บง).md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ๆŒ‰ไธ‰็บงๅˆ†็ฑปๆๅ–็”ณไธ‡่กŒไธšๆˆๅˆ†๏ผŒๅฏๆไพ›ๆŸไธชๅˆ†็ฑป็š„ๆ‰€ๆœ‰ๆˆๅˆ†๏ผŒไนŸๅฏๆŒ‰่‚ก็ฅจไปฃ็ ๆๅ–ๆ‰€ๅฑžๅˆ†็ฑป๏ผŒๅ‚ๆ•ฐ็ตๆดป |
+| 417 | rt_sw_k | [็”ณไธ‡ๅฎžๆ—ถ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/็”ณไธ‡ๅฎžๆ—ถ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐ็š„ๆœ€ๆ–ฐๆˆช้ขๆ•ฐๆฎ |
+| 172 | index_monthly | [ๆŒ‡ๆ•ฐๆœˆ็บฟ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๆœˆ็บฟ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆŒ‡ๆ•ฐๆœˆ็บฟ่กŒๆƒ…,ๆฏๆœˆๆ›ดๆ–ฐไธ€ๆฌก |
+| 308 | ci_daily | [ไธญไฟก่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ไธญไฟก่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ไธญไฟก่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ… |
+| 171 | index_weekly | [ๆŒ‡ๆ•ฐๅ‘จ็บฟ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๅ‘จ็บฟ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆŒ‡ๆ•ฐๅ‘จ็บฟ่กŒๆƒ… |
+| 327 | sw_daily | [็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–็”ณไธ‡่กŒไธšๆ—ฅ็บฟ่กŒๆƒ…๏ผˆ้ป˜่ฎคๆ˜ฏ็”ณไธ‡2021็‰ˆ่กŒๆƒ…๏ผ‰ |
+| 95 | index_daily | [ๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ…](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ….md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆŒ‡ๆ•ฐๆฏๆ—ฅ่กŒๆƒ…๏ผŒ่ฟ˜ๅฏไปฅ้€š่ฟ‡barๆŽฅๅฃ่Žทๅ–ใ€‚็”ฑไบŽๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็›ฎๅ‰่ง„ๅˆ™ๆ˜ฏๅ•ๆฌก่ฐƒๅ–ๆœ€ๅคšๅ–8000่กŒ่ฎฐๅฝ•๏ผŒๅฏไปฅ่ฎพ็ฝฎstartๅ’Œendๆ—ฅๆœŸ่กฅๅ…จใ€‚ๆŒ‡ๆ•ฐ่กŒๆƒ…ไนŸๅฏไปฅ้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**](https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŽ |
+| 94 | index_basic | [ๆŒ‡ๆ•ฐๅŸบๆœฌไฟกๆฏ](references/ๆŒ‡ๆ•ฐไธ“้ข˜/ๆŒ‡ๆ•ฐๅŸบๆœฌไฟกๆฏ.md) | ๆŒ‡ๆ•ฐไธ“้ข˜ | ่Žทๅ–ๆŒ‡ๆ•ฐๅŸบ็ก€ไฟกๆฏใ€‚ |
+| 341 | opt_mins | [ๆœŸๆƒๅˆ†้’Ÿ่กŒๆƒ…](references/ๆœŸๆƒๆ•ฐๆฎ/ๆœŸๆƒๅˆ†้’Ÿ่กŒๆƒ….md) | ๆœŸๆƒๆ•ฐๆฎ | ่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸๆƒๅˆ็บฆๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผใ€‚ |
+| 159 | opt_daily | [ๆœŸๆƒๆ—ฅ็บฟ่กŒๆƒ…](references/ๆœŸๆƒๆ•ฐๆฎ/ๆœŸๆƒๆ—ฅ็บฟ่กŒๆƒ….md) | ๆœŸๆƒๆ•ฐๆฎ | ่Žทๅ–ๆœŸๆƒๆ—ฅ็บฟ่กŒๆƒ… |
+| 158 | opt_basic | [ๆœŸๆƒๅˆ็บฆไฟกๆฏ](references/ๆœŸๆƒๆ•ฐๆฎ/ๆœŸๆƒๅˆ็บฆไฟกๆฏ.md) | ๆœŸๆƒๆ•ฐๆฎ | ่Žทๅ–ๆœŸๆƒๅˆ็บฆไฟกๆฏ |
+| 216 | fut_weekly_detail | [ๆœŸ่ดงไธป่ฆๅ“็งไบคๆ˜“ๅ‘จๆŠฅ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆœŸ่ดงไธป่ฆๅ“็งไบคๆ˜“ๅ‘จๆŠฅ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆœŸ่ดงไบคๆ˜“ๆ‰€ไธป่ฆๅ“็งๆฏๅ‘จไบคๆ˜“็ปŸ่ฎกไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2010ๅนด3ๆœˆๅผ€ๅง‹ |
+| 368 | ft_limit | [ๆœŸ่ดงๅˆ็บฆๆถจ่ทŒๅœไปทๆ ผ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆœŸ่ดงๅˆ็บฆๆถจ่ทŒๅœไปทๆ ผ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆ‰€ๆœ‰ๆœŸ่ดงๅˆ็บฆๆฏๅคฉ็š„ๆถจ่ทŒๅœไปทๆ ผๅŠๆœ€ไฝŽไฟ่ฏ้‡‘็އ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2005ๅนดใ€‚ |
+| 340 | rt_fut_min | [ๅฎžๆ—ถๅˆ†้’Ÿ่กŒๆƒ…](references/ๆœŸ่ดงๆ•ฐๆฎ/ๅฎžๆ—ถๅˆ†้’Ÿ่กŒๆƒ….md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸ่ดงๅˆ็บฆๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKใ€ http Restful APIๅ’Œwebsocketไธ‰็งๆ–นๅผ๏ผŒๅฆ‚ๆžœ้œ€่ฆไธปๅŠ›ๅˆ็บฆๅˆ†้’Ÿ๏ผŒ่ฏทๅ…ˆ้€š่ฟ‡ไธปๅŠ›[mapping](https://tushare.pro/document/2?doc_id=189)ๆŽฅๅฃ่Žทๅ–ๅฏนๅบ”็š„ๅˆ็บฆไปฃ็ ๅŽๆๅ–ๅˆ†้’Ÿใ€‚ |
+| 135 | fut_basic | [ๅˆ็บฆไฟกๆฏ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๅˆ็บฆไฟกๆฏ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆœŸ่ดงๅˆ็บฆๅˆ—่กจๆ•ฐๆฎ |
+| 137 | trade_cal | [ไบคๆ˜“ๆ—ฅๅކ](references/ๆœŸ่ดงๆ•ฐๆฎ/ไบคๆ˜“ๆ—ฅๅކ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๅ„ๅคงๆœŸ่ดงไบคๆ˜“ๆ‰€ไบคๆ˜“ๆ—ฅๅކๆ•ฐๆฎ |
+| 138 | fut_daily | [ๆ—ฅ็บฟ่กŒๆƒ…](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆ—ฅ็บฟ่กŒๆƒ….md) | ๆœŸ่ดงๆ•ฐๆฎ | ๆœŸ่ดงๆ—ฅ็บฟ่กŒๆƒ…ๆ•ฐๆฎ |
+| 139 | fut_holding | [ๆฏๆ—ฅๆŒไป“ๆŽ’ๅ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆฏๆ—ฅๆŒไป“ๆŽ’ๅ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆฏๆ—ฅๆˆไบคๆŒไป“ๆŽ’ๅๆ•ฐๆฎ |
+| 140 | fut_wsr | [ไป“ๅ•ๆ—ฅๆŠฅ](references/ๆœŸ่ดงๆ•ฐๆฎ/ไป“ๅ•ๆ—ฅๆŠฅ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ไป“ๅ•ๆ—ฅๆŠฅๆ•ฐๆฎ๏ผŒไบ†่งฃๅ„ไป“ๅบ“/ๅŽ‚ๅบ“็š„ไป“ๅ•ๅ˜ๅŒ– |
+| 141 | fut_settle | [ๆฏๆ—ฅ็ป“็ฎ—ๅ‚ๆ•ฐ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆฏๆ—ฅ็ป“็ฎ—ๅ‚ๆ•ฐ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆฏๆ—ฅ็ป“็ฎ—ๅ‚ๆ•ฐๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌไบคๆ˜“ๅ’Œไบคๅ‰ฒ่ดน็އ็ญ‰ |
+| 155 | index_daily | [ๅ—ๅŽๆœŸ่ดงๆŒ‡ๆ•ฐ่กŒๆƒ…](references/ๆœŸ่ดงๆ•ฐๆฎ/ๅ—ๅŽๆœŸ่ดงๆŒ‡ๆ•ฐ่กŒๆƒ….md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๅ—ๅŽๆŒ‡ๆ•ฐๆฏๆ—ฅ่กŒๆƒ…๏ผŒๆŒ‡ๆ•ฐ่กŒๆƒ…ไนŸๅฏไปฅ้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**](https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŽ |
+| 189 | fut_mapping | [ๆœŸ่ดงไธปๅŠ›ไธŽ่ฟž็ปญๅˆ็บฆ](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆœŸ่ดงไธปๅŠ›ไธŽ่ฟž็ปญๅˆ็บฆ.md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๆœŸ่ดงไธปๅŠ›๏ผˆๆˆ–่ฟž็ปญ๏ผ‰ๅˆ็บฆไธŽๆœˆๅˆ็บฆๆ˜ ๅฐ„ๆ•ฐๆฎ |
+| 313 | ft_mins | [ๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…](references/ๆœŸ่ดงๆ•ฐๆฎ/ๅކๅฒๅˆ†้’Ÿ่กŒๆƒ….md) | ๆœŸ่ดงๆ•ฐๆฎ | ่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸ่ดงๅˆ็บฆๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ๏ผŒๅฆ‚ๆžœ้œ€่ฆไธปๅŠ›ๅˆ็บฆๅˆ†้’Ÿ๏ผŒ่ฏทๅ…ˆ้€š่ฟ‡ไธปๅŠ›[mapping](https://tushare.pro/document/2?doc_id=189)ๆŽฅๅฃ่Žทๅ–ๅฏนๅบ”็š„ๅˆ็บฆไปฃ็ ๅŽๆๅ–ๅˆ†้’Ÿใ€‚ |
+| 337 | fut_weekly_monthly | [ๆœŸ่ดงๅ‘จๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)](references/ๆœŸ่ดงๆ•ฐๆฎ/ๆœŸ่ดงๅ‘จๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ).md) | ๆœŸ่ดงๆ•ฐๆฎ | ๆœŸ่ดงๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ) |
+| 391 | hk_cashflow | [ๆธฏ่‚ก็Žฐ้‡‘ๆต้‡่กจ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚ก็Žฐ้‡‘ๆต้‡่กจ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจๆ•ฐๆฎ |
+| 390 | hk_balancesheet | [ๆธฏ่‚ก่ต„ไบง่ดŸๅ€บ่กจ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚ก่ต„ไบง่ดŸๅ€บ่กจ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ |
+| 389 | hk_income | [ๆธฏ่‚กๅˆฉๆถฆ่กจ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅˆฉๆถฆ่กจ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ |
+| 388 | hk_fina_indicator | [ๆธฏ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž200ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚ |
+| 401 | hk_adjfactor | [ๆธฏ่‚กๅคๆƒๅ› ๅญ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅคๆƒๅ› ๅญ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กๆฏๆ—ฅๅคๆƒๅ› ๅญๆ•ฐๆฎ๏ผŒๆฏๅคฉๆปšๅŠจๅˆทๆ–ฐ |
+| 339 | hk_daily_adj | [ๆธฏ่‚กๅคๆƒ่กŒๆƒ…](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅคๆƒ่กŒๆƒ….md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กๅคๆƒ่กŒๆƒ…๏ผŒๆไพ›่‚ก็ฅจ่‚กๆœฌใ€ๅธ‚ๅ€ผๅ’ŒๆˆไบคๅŠๆขๆ‰‹ๅคšไธชๆ•ฐๆฎๆŒ‡ๆ ‡ |
+| 383 | rt_hk_k | [ๆธฏ่‚กๅฎžๆ—ถๆ—ฅ็บฟ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅฎžๆ—ถๆ—ฅ็บฟ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰่‚ก็ฅจไปฃ็ ๅŠ่‚ก็ฅจไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจ่‚ก็ฅจๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ… |
+| 191 | hk_basic | [ๆธฏ่‚กๅŸบ็ก€ไฟกๆฏ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅŸบ็ก€ไฟกๆฏ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กๅˆ—่กจไฟกๆฏ |
+| 192 | hk_daily | [ๆธฏ่‚กๆ—ฅ็บฟ่กŒๆƒ…](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๆ—ฅ็บฟ่กŒๆƒ….md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚กๆฏๆ—ฅๅขž้‡ๅ’Œๅކๅฒ่กŒๆƒ…๏ผŒๆฏๆ—ฅ18็‚นๅทฆๅณๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ |
+| 304 | hk_mins | [ๆธฏ่‚กๅˆ†้’Ÿ่กŒๆƒ…](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กๅˆ†้’Ÿ่กŒๆƒ….md) | ๆธฏ่‚กๆ•ฐๆฎ | ๆธฏ่‚กๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ |
+| 250 | hk_tradecal | [ๆธฏ่‚กไบคๆ˜“ๆ—ฅๅކ](references/ๆธฏ่‚กๆ•ฐๆฎ/ๆธฏ่‚กไบคๆ˜“ๆ—ฅๅކ.md) | ๆธฏ่‚กๆ•ฐๆฎ | ่Žทๅ–ไบคๆ˜“ๆ—ฅๅކ |
+| 285 | sge_daily | [ไธŠๆตท้ป„้‡‘็Žฐ่ดงๆ—ฅ่กŒๆƒ…](references/็Žฐ่ดงๆ•ฐๆฎ/ไธŠๆตท้ป„้‡‘็Žฐ่ดงๆ—ฅ่กŒๆƒ….md) | ็Žฐ่ดงๆ•ฐๆฎ | ่Žทๅ–ไธŠๆตท้ป„้‡‘ไบคๆ˜“ๆ‰€็Žฐ่ดงๅˆ็บฆๆ—ฅ็บฟ่กŒๆƒ… |
+| 284 | sge_basic | [ไธŠๆตท้ป„้‡‘ๅŸบ็ก€ไฟกๆฏ](references/็Žฐ่ดงๆ•ฐๆฎ/ไธŠๆตท้ป„้‡‘ๅŸบ็ก€ไฟกๆฏ.md) | ็Žฐ่ดงๆ•ฐๆฎ | ่Žทๅ–ไธŠๆตท้ป„้‡‘ไบคๆ˜“ๆ‰€็Žฐ่ดงๅˆ็บฆๅŸบ็ก€ไฟกๆฏ |
+| 393 | us_fina_indicator | [็พŽ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚กใ€‚ไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž200ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚ |
+| 402 | us_adjfactor | [็พŽ่‚กๅคๆƒๅ› ๅญ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กๅคๆƒๅ› ๅญ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กๆฏๆ—ฅๅคๆƒๅ› ๅญๆ•ฐๆฎ๏ผŒๅœจๆฏๅคฉ็พŽ่‚กๆ”ถ็›˜ๅŽๆปšๅŠจๅˆทๆ–ฐ |
+| 396 | us_cashflow | [็พŽ่‚ก็Žฐ้‡‘ๆต้‡่กจ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚ก็Žฐ้‡‘ๆต้‡่กจ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจๆ•ฐๆฎ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰ |
+| 395 | us_balancesheet | [็พŽ่‚ก่ต„ไบง่ดŸๅ€บ่กจ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚ก่ต„ไบง่ดŸๅ€บ่กจ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰ |
+| 394 | us_income | [็พŽ่‚กๅˆฉๆถฆ่กจ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กๅˆฉๆถฆ่กจ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰ |
+| 254 | us_daily | [็พŽ่‚กๆ—ฅ็บฟ่กŒๆƒ…](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กๆ—ฅ็บฟ่กŒๆƒ….md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚ก่กŒๆƒ…๏ผˆๆœชๅคๆƒ๏ผ‰๏ผŒๅŒ…ๆ‹ฌๅ…จ้ƒจ่‚ก็ฅจๅ…จๅކๅฒ่กŒๆƒ…๏ผŒไปฅๅŠ้‡่ฆ็š„ๅธ‚ๅœบๅ’Œไผฐๅ€ผๆŒ‡ๆ ‡ |
+| 253 | us_tradecal | [็พŽ่‚กไบคๆ˜“ๆ—ฅๅކ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กไบคๆ˜“ๆ—ฅๅކ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กไบคๆ˜“ๆ—ฅๅކไฟกๆฏ |
+| 252 | us_basic | [็พŽ่‚กๅŸบ็ก€ไฟกๆฏ](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กๅŸบ็ก€ไฟกๆฏ.md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กๅˆ—่กจไฟกๆฏ |
+| 338 | us_daily_adj | [็พŽ่‚กๅคๆƒ่กŒๆƒ…](references/็พŽ่‚กๆ•ฐๆฎ/็พŽ่‚กๅคๆƒ่กŒๆƒ….md) | ็พŽ่‚กๆ•ฐๆฎ | ่Žทๅ–็พŽ่‚กๅคๆƒ่กŒๆƒ…๏ผŒๆ”ฏๆŒ็พŽ่‚กๅ…จๅธ‚ๅœบ่‚ก็ฅจ๏ผŒๆไพ›่‚กๆœฌใ€ๅธ‚ๅ€ผใ€ๅคๆƒๅ› ๅญๅ’Œๆˆไบคไฟกๆฏ็ญ‰ๅคšไธชๆ•ฐๆฎๆŒ‡ๆ ‡ |
+| 326 | margin_secs | [่ž่ต„่žๅˆธๆ ‡็š„(็›˜ๅ‰)](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ž่ต„่žๅˆธๆ ‡็š„(็›˜ๅ‰).md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่Žทๅ–ๆฒชๆทฑไบฌไธ‰ๅคงไบคๆ˜“ๆ‰€่ž่ต„่žๅˆธๆ ‡็š„๏ผˆๅŒ…ๆ‹ฌETF๏ผ‰๏ผŒๆฏๅคฉ็›˜ๅ‰ๆ›ดๆ–ฐ |
+| 331 | slb_len | [่ฝฌ่ž่ต„ไบคๆ˜“ๆฑ‡ๆ€ป](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ฝฌ่ž่ต„ไบคๆ˜“ๆฑ‡ๆ€ป.md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่ฝฌ่ž้€š่ž่ต„ๆฑ‡ๆ€ป |
+| 332 | slb_sec | [่ฝฌ่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป(ๅœ)](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ฝฌ่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป(ๅœ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่ฝฌ่ž้€š่ฝฌ่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป |
+| 333 | slb_sec_detail | [่ฝฌ่žๅˆธไบคๆ˜“ๆ˜Ž็ป†(ๅœ)](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ฝฌ่žๅˆธไบคๆ˜“ๆ˜Ž็ป†(ๅœ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่ฝฌ่žๅˆธไบคๆ˜“ๆ˜Ž็ป† |
+| 59 | margin_detail | [่ž่ต„่žๅˆธไบคๆ˜“ๆ˜Ž็ป†](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ž่ต„่žๅˆธไบคๆ˜“ๆ˜Ž็ป†.md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่Žทๅ–ๆฒชๆทฑไธคๅธ‚ๆฏๆ—ฅ่ž่ต„่žๅˆธๆ˜Ž็ป† |
+| 58 | margin | [่ž่ต„่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/่ž่ต„่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป.md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ่Žทๅ–่ž่ต„่žๅˆธๆฏๆ—ฅไบคๆ˜“ๆฑ‡ๆ€ปๆ•ฐๆฎ |
+| 334 | slb_len_mm | [ๅšๅธ‚ๅ€Ÿๅˆธไบคๆ˜“ๆฑ‡ๆ€ป(ๅœ)](references/่‚ก็ฅจๆ•ฐๆฎ/ไธค่žๅŠ่ฝฌ่ž้€š/ๅšๅธ‚ๅ€Ÿๅˆธไบคๆ˜“ๆฑ‡ๆ€ป(ๅœ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ไธค่žๅŠ่ฝฌ่ž้€š | ๅšๅธ‚ๅ€Ÿๅˆธไบคๆ˜“ๆฑ‡ๆ€ป |
+| 124 | repurchase | [่‚ก็ฅจๅ›ž่ดญ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚ก็ฅจๅ›ž่ดญ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ›ž่ดญ่‚ก็ฅจๆ•ฐๆฎ |
+| 110 | pledge_stat | [่‚กๆƒ่ดจๆŠผ็ปŸ่ฎกๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚กๆƒ่ดจๆŠผ็ปŸ่ฎกๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจ่ดจๆŠผ็ปŸ่ฎกๆ•ฐๆฎ |
+| 160 | share_float | [้™ๅ”ฎ่‚ก่งฃ็ฆ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/้™ๅ”ฎ่‚ก่งฃ็ฆ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–้™ๅ”ฎ่‚ก่งฃ็ฆ |
+| 161 | block_trade | [ๅคงๅฎ—ไบคๆ˜“](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/ๅคงๅฎ—ไบคๆ˜“.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ๅคงๅฎ—ไบคๆ˜“ |
+| 164 | stk_account | [่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ(ๅœ)](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ(ๅœ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎ๏ผŒ็ปŸ่ฎกๅ‘จๆœŸไธบไธ€ๅ‘จ |
+| 165 | stk_account_old | [่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ(ๆ—ง)](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ(ๆ—ง).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎๆ—ง็‰ˆๆ ผๅผๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไปŽ2008ๅนด1ๆœˆๅผ€ๅง‹๏ผŒๅˆฐ2015ๅนด5ๆœˆ29๏ผŒๆ–ฐๆ•ฐๆฎ่ฏท้€š่ฟ‡[่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ](https://tushare.pro/document/2?doc_id=164)่Žทๅ–ใ€‚ |
+| 166 | stk_holdernumber | [่‚กไธœไบบๆ•ฐ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚กไธœไบบๆ•ฐ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่‚กไธœๆˆทๆ•ฐๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไธๅฎšๆœŸๅ…ฌๅธƒ |
+| 175 | stk_holdertrade | [่‚กไธœๅขžๅ‡ๆŒ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚กไธœๅขžๅ‡ๆŒ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅขžๅ‡ๆŒๆ•ฐๆฎ๏ผŒไบ†่งฃ้‡่ฆ่‚กไธœ่ฟ‘ๆœŸๅŠๅކๅฒไธŠ็š„่‚กไปฝๅขžๅ‡ๅ˜ๅŒ– |
+| 61 | top10_holders | [ๅ‰ๅๅคง่‚กไธœ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/ๅ‰ๅๅคง่‚กไธœ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ‰ๅๅคง่‚กไธœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๆŒๆœ‰ๆ•ฐ้‡ๅ’Œๆฏ”ไพ‹็ญ‰ไฟกๆฏ |
+| 111 | pledge_detail | [่‚กๆƒ่ดจๆŠผๆ˜Ž็ป†ๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/่‚กๆƒ่ดจๆŠผๆ˜Ž็ป†ๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจ่ดจๆŠผๆ˜Ž็ป†ๆ•ฐๆฎ |
+| 62 | top10_floatholders | [ๅ‰ๅๅคงๆต้€š่‚กไธœ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅ‚่€ƒๆ•ฐๆฎ/ๅ‰ๅๅคงๆต้€š่‚กไธœ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅ‚่€ƒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ‰ๅๅคงๆต้€š่‚กไธœๆ•ฐๆฎ |
+| 423 | st | [ST้ฃŽ้™ฉ่ญฆ็คบๆฟ่‚ก็ฅจ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ST้ฃŽ้™ฉ่ญฆ็คบๆฟ่‚ก็ฅจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ST้ฃŽ้™ฉ่ญฆ็คบๆฟ่‚ก็ฅจๅˆ—่กจ |
+| 398 | stock_hsgt | [ๆฒชๆทฑๆธฏ้€š่‚ก็ฅจๅˆ—่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ๆฒชๆทฑๆธฏ้€š่‚ก็ฅจๅˆ—่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๆฒชๆทฑๆธฏ้€š่‚ก็ฅจๅˆ—่กจ |
+| 397 | stock_st | [ST่‚ก็ฅจๅˆ—่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ST่‚ก็ฅจๅˆ—่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ST่‚ก็ฅจๅˆ—่กจ๏ผŒๅฏๆ นๆฎไบคๆ˜“ๆ—ฅๆœŸ่Žทๅ–ๅކๅฒไธŠๆฏๅคฉ็š„STๅˆ—่กจ |
+| 375 | bse_mapping | [ๅŒ—ไบคๆ‰€ๆ–ฐๆ—งไปฃ็ ๅฏน็…ง](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ๅŒ—ไบคๆ‰€ๆ–ฐๆ—งไปฃ็ ๅฏน็…ง.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๅŒ—ไบคๆ‰€่‚ก็ฅจไปฃ็ ๅ˜ๆ›ดๅŽๆ–ฐๆ—งไปฃ็ ๆ˜ ๅฐ„่กจๆ•ฐๆฎ |
+| 329 | stk_premarket | [ๆฏๆ—ฅ่‚กๆœฌ(็›˜ๅ‰)](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ๆฏๆ—ฅ่‚กๆœฌ(็›˜ๅ‰).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ๆฏๆ—ฅๅผ€็›˜ๅ‰่Žทๅ–ๅฝ“ๆ—ฅ่‚ก็ฅจ็š„่‚กๆœฌๆƒ…ๅ†ต๏ผŒๅŒ…ๆ‹ฌๆ€ป่‚กๆœฌๅ’Œๆต้€š่‚กๆœฌ๏ผŒๆถจ่ทŒๅœไปทๆ ผ็ญ‰ใ€‚ |
+| 123 | new_share | [IPOๆ–ฐ่‚กไธŠๅธ‚](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/IPOๆ–ฐ่‚กไธŠๅธ‚.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๆ–ฐ่‚กไธŠๅธ‚ๅˆ—่กจๆ•ฐๆฎ |
+| 194 | stk_rewards | [็ฎก็†ๅฑ‚่–ช้…ฌๅ’ŒๆŒ่‚ก](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/็ฎก็†ๅฑ‚่–ช้…ฌๅ’ŒๆŒ่‚ก.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚่–ช้…ฌๅ’ŒๆŒ่‚ก |
+| 193 | stk_managers | [ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚ |
+| 112 | stock_company | [ไธŠๅธ‚ๅ…ฌๅธๅŸบๆœฌไฟกๆฏ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ไธŠๅธ‚ๅ…ฌๅธๅŸบๆœฌไฟกๆฏ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅŸบ็ก€ไฟกๆฏ๏ผŒๅ•ๆฌกๆๅ–4500ๆก๏ผŒๅฏไปฅๆ นๆฎไบคๆ˜“ๆ‰€ๅˆ†ๆ‰นๆๅ– |
+| 100 | namechange | [่‚ก็ฅจๆ›พ็”จๅ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/่‚ก็ฅจๆ›พ็”จๅ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ๅކๅฒๅ็งฐๅ˜ๆ›ด่ฎฐๅฝ• |
+| 26 | trade_cal | [ไบคๆ˜“ๆ—ฅๅކ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/ไบคๆ˜“ๆ—ฅๅކ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๅ„ๅคงไบคๆ˜“ๆ‰€ไบคๆ˜“ๆ—ฅๅކๆ•ฐๆฎ,้ป˜่ฎคๆๅ–็š„ๆ˜ฏไธŠไบคๆ‰€ |
+| 25 | stock_basic | [่‚ก็ฅจๅˆ—่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/่‚ก็ฅจๅˆ—่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๅŸบ็ก€ไฟกๆฏๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ่‚ก็ฅจไปฃ็ ใ€ๅ็งฐใ€ไธŠๅธ‚ๆ—ฅๆœŸใ€้€€ๅธ‚ๆ—ฅๆœŸ็ญ‰ |
+| 262 | bak_basic | [่‚ก็ฅจๅކๅฒๅˆ—่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/ๅŸบ็ก€ๆ•ฐๆฎ/่‚ก็ฅจๅކๅฒๅˆ—่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๅŸบ็ก€ๆ•ฐๆฎ | ่Žทๅ–ๅค‡็”จๅŸบ็ก€ๅˆ—่กจ๏ผŒๆ•ฐๆฎไปŽ2016ๅนดๅผ€ๅง‹ |
+| 382 | dc_daily | [ไธœ่ดขๆฆ‚ๅฟตๅ’Œ่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ไธœ่ดขๆฆ‚ๅฟตๅ’Œ่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ไธœ่ดขๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšๆŒ‡ๆ•ฐๆฟๅ—ใ€ๅœฐๅŸŸๆฟๅ—่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅކๅฒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2020ๅนด |
+| 321 | dc_hot | [ไธœๆ–น่ดขๅฏŒApp็ƒญๆฆœ](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ไธœๆ–น่ดขๅฏŒApp็ƒญๆฆœ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒApp็ƒญๆฆœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌA่‚กๅธ‚ๅœบใ€ETFๅŸบ้‡‘ใ€ๆธฏ่‚กๅธ‚ๅœบใ€็พŽ่‚กๅธ‚ๅœบ็ญ‰็ญ‰๏ผŒๆฏๆ—ฅ็›˜ไธญๆๅ–4ๆฌก๏ผŒๆ”ถ็›˜ๅŽ4ๆฌก๏ผŒๆœ€ๆ™š22็‚นๆๅ–ไธ€ๆฌกใ€‚ |
+| 298 | limit_list_d | [ๆถจ่ทŒๅœๅ’Œ็‚ธๆฟๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๆถจ่ทŒๅœๅ’Œ็‚ธๆฟๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–A่‚กๆฏๆ—ฅๆถจ่ทŒๅœใ€็‚ธๆฟๆ•ฐๆฎๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎไปŽ2020ๅนดๅผ€ๅง‹๏ผˆไธๆไพ›ST่‚ก็ฅจ็š„็ปŸ่ฎก๏ผ‰ |
+| 311 | hm_list | [ๅธ‚ๅœบๆธธ่ต„ๆœ€ๅ…จๅๅฝ•](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅธ‚ๅœบๆธธ่ต„ๆœ€ๅ…จๅๅฝ•.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๆธธ่ต„ๅˆ†็ฑปๅๅฝ•ไฟกๆฏ |
+| 347 | kpl_list | [ๆฆœๅ•ๆ•ฐๆฎ(ๅผ€็›˜ๅ•ฆ)](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๆฆœๅ•ๆ•ฐๆฎ(ๅผ€็›˜ๅ•ฆ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅผ€็›˜ๅ•ฆๆถจๅœใ€่ทŒๅœใ€็‚ธๆฟ็ญ‰ๆฆœๅ•ๆ•ฐๆฎ |
+| 261 | ths_member | [ๅŒ่Šฑ้กบ่กŒไธšๆฆ‚ๅฟตๆˆๅˆ†](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅŒ่Šฑ้กบ่กŒไธšๆฆ‚ๅฟตๆˆๅˆ†.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—ๆˆๅˆ†ๅˆ—่กจๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบใ€‚ |
+| 260 | ths_daily | [ๅŒ่Šฑ้กบๆฆ‚ๅฟตๅ’Œ่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅŒ่Šฑ้กบๆฆ‚ๅฟตๅ’Œ่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบๆฟๅ—ๆŒ‡ๆ•ฐ่กŒๆƒ…ใ€‚ๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบ๏ผŒๅฆ‚้œ€ๅธฎๅŠฉ่ฏท่”็ณปๅพฎไฟก๏ผšwaditu_a |
+| 259 | ths_index | [ๅŒ่Šฑ้กบ่กŒไธšๆฆ‚ๅฟตๆฟๅ—](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅŒ่Šฑ้กบ่กŒไธšๆฆ‚ๅฟตๆฟๅ—.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบๆฟๅ—ๆŒ‡ๆ•ฐใ€‚ๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบ๏ผŒๅฆ‚้œ€ๅธฎๅŠฉ่ฏท่”็ณปๅพฎไฟก๏ผšwaditu_a |
+| 107 | top_inst | [้พ™่™Žๆฆœๆœบๆž„ไบคๆ˜“ๅ•](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้พ™่™Žๆฆœๆœบๆž„ไบคๆ˜“ๅ•.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ้พ™่™Žๆฆœๆœบๆž„ๆˆไบคๆ˜Ž็ป† |
+| 351 | kpl_concept_cons | [้ข˜ๆๆˆๅˆ†(ๅผ€็›˜ๅ•ฆ)](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้ข˜ๆๆˆๅˆ†(ๅผ€็›˜ๅ•ฆ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅผ€็›˜ๅ•ฆๆฆ‚ๅฟต้ข˜ๆ็š„ๆˆๅˆ†่‚ก |
+| 355 | limit_list_ths | [ๅŒ่Šฑ้กบๆถจ่ทŒๅœๆฆœๅ•](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅŒ่Šฑ้กบๆถจ่ทŒๅœๆฆœๅ•.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบๆฏๆ—ฅๆถจ่ทŒๅœๆฆœๅ•ๆ•ฐๆฎ๏ผŒๅކๅฒๆ•ฐๆฎไปŽ20231101ๅผ€ๅง‹ๆไพ›๏ผŒๅขž้‡ๆฏๅคฉ16็‚นๅทฆๅณๆ›ดๆ–ฐ |
+| 356 | limit_step | [ๆถจๅœ่‚ก็ฅจ่ฟžๆฟๅคฉๆขฏ](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๆถจๅœ่‚ก็ฅจ่ฟžๆฟๅคฉๆขฏ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๆฏๅคฉ่ฟžๆฟไธชๆ•ฐๆ™‹็บง็š„่‚ก็ฅจ๏ผŒๅฏไปฅๅˆ†ๆžๅ‡บๆฏๅคฉ่ฟž็ปญๆถจๅœ่ฟ›้˜ถไธชๆ•ฐ๏ผŒๅˆคๆ–ญๅผบๅŠฟ็ƒญๅบฆ |
+| 357 | limit_cpt_list | [ๆถจๅœๆœ€ๅผบๆฟๅ—็ปŸ่ฎก](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๆถจๅœๆœ€ๅผบๆฟๅ—็ปŸ่ฎก.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๆฏๅคฉๆถจๅœ่‚ก็ฅจๆœ€ๅคšๆœ€ๅผบ็š„ๆฆ‚ๅฟตๆฟๅ—๏ผŒๅฏไปฅๅˆ†ๆžๅผบๅŠฟๆฟๅ—็š„่ฝฎๅŠจ๏ผŒๅˆคๆ–ญ่ต„้‡‘ๅŠจๅ‘ |
+| 362 | dc_index | [ไธœๆ–น่ดขๅฏŒๆฆ‚ๅฟตๆฟๅ—](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ไธœๆ–น่ดขๅฏŒๆฆ‚ๅฟตๆฟๅ—.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฏไธชไบคๆ˜“ๆ—ฅ็š„ๆฆ‚ๅฟตๆฟๅ—ๆ•ฐๆฎ๏ผŒๆ”ฏๆŒๆŒ‰ๆ—ฅๆœŸๆŸฅ่ฏข |
+| 363 | dc_member | [ไธœๆ–น่ดขๅฏŒๆฆ‚ๅฟตๆˆๅˆ†](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ไธœๆ–น่ดขๅฏŒๆฆ‚ๅฟตๆˆๅˆ†.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฟๅ—ๆฏๆ—ฅๆˆๅˆ†ๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆฆ‚ๅฟตๆฟๅ—ไปฃ็ ๅ’Œไบคๆ˜“ๆ—ฅๆœŸ๏ผŒ่Žทๅ–ๅކๅฒๆˆๅˆ† |
+| 369 | stk_auction | [ๅผ€็›˜็ซžไปทๆˆไบค(ๅฝ“ๆ—ฅ)](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅผ€็›˜็ซžไปทๆˆไบค(ๅฝ“ๆ—ฅ).md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅฝ“ๆ—ฅไธช่‚กๅ’ŒETF็š„้›†ๅˆ็ซžไปทๆˆไบคๆƒ…ๅ†ต๏ผŒๆฏๅคฉ9็‚น25~29ๅˆ†ไน‹้—ดๅฏไปฅ่Žทๅ–ๅฝ“ๆ—ฅ็š„้›†ๅˆ็ซžไปทๆˆไบคๆ•ฐๆฎ |
+| 376 | tdx_index | [้€š่พพไฟกๆฟๅ—ไฟกๆฏ](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้€š่พพไฟกๆฟๅ—ไฟกๆฏ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–้€š่พพไฟกๆฟๅ—ๅŸบ็ก€ไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšใ€้ฃŽๆ ผใ€ๅœฐๅŸŸ็ญ‰ |
+| 106 | top_list | [้พ™่™Žๆฆœๆฏๆ—ฅ็ปŸ่ฎกๅ•](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้พ™่™Žๆฆœๆฏๆ—ฅ็ปŸ่ฎกๅ•.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ้พ™่™Žๆฆœๆฏๆ—ฅไบคๆ˜“ๆ˜Ž็ป† |
+| 377 | tdx_member | [้€š่พพไฟกๆฟๅ—ๆˆๅˆ†](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้€š่พพไฟกๆฟๅ—ๆˆๅˆ†.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–้€š่พพไฟกๅ„ๆฟๅ—ๆˆๅˆ†่‚กไฟกๆฏ |
+| 378 | tdx_daily | [้€š่พพไฟกๆฟๅ—่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/้€š่พพไฟกๆฟๅ—่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–้€š่พพไฟกๅ„ๆฟๅ—่กŒๆƒ…๏ผŒๅŒ…ๆ‹ฌๆˆไบคๅ’Œไผฐๅ€ผ็ญ‰ๆ•ฐๆฎ |
+| 312 | hm_detail | [ๆธธ่ต„ไบคๆ˜“ๆฏๆ—ฅๆ˜Ž็ป†](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๆธธ่ต„ไบคๆ˜“ๆฏๆ—ฅๆ˜Ž็ป†.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๆฏๆ—ฅๆธธ่ต„ไบคๆ˜“ๆ˜Ž็ป†๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2022ๅนด8ใ€‚ๆธธ่ต„ๅˆ†็ฑปๅๅฝ•๏ผŒ่ฏท็‚นๅ‡ป<a href="https://tushare.pro/document/2?doc_id=311">ๆธธ่ต„ๅๅฝ•</a> |
+| 320 | ths_hot | [ๅŒ่Šฑ้กบApp็ƒญๆฆœๆ•ฐ](references/่‚ก็ฅจๆ•ฐๆฎ/ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ/ๅŒ่Šฑ้กบApp็ƒญๆฆœๆ•ฐ.md) | ่‚ก็ฅจๆ•ฐๆฎ,ๆ‰“ๆฟไธ“้ข˜ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบApp็ƒญๆฆœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ็ƒญ่‚กใ€ๆฆ‚ๅฟตๆฟๅ—ใ€ETFใ€ๅฏ่ฝฌๅ€บใ€ๆธฏ็พŽ่‚ก็ญ‰็ญ‰๏ผŒๆฏๆ—ฅ็›˜ไธญๆๅ–4ๆฌก๏ผŒๆ”ถ็›˜ๅŽ4ๆฌก๏ผŒๆœ€ๆ™š22็‚นๆๅ–ไธ€ๆฌกใ€‚ |
+| 364 | stk_nineturn | [็ฅžๅฅ‡ไน่ฝฌๆŒ‡ๆ ‡](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/็ฅžๅฅ‡ไน่ฝฌๆŒ‡ๆ ‡.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ็ฅžๅฅ‡ไน่ฝฌ๏ผˆๅˆ็งฐโ€œไน่ฝฌๅบๅˆ—โ€๏ผ‰ๆ˜ฏไธ€็งๅŸบไบŽๆŠ€ๆœฏๅˆ†ๆž็š„่‚ก็ฅจ่ถ‹ๅŠฟๅ่ฝฌๆŒ‡ๆ ‡๏ผŒๅ…ถๆ€ๆƒณๆฅๆบไบŽๆŠ€ๆœฏๅˆ†ๆžๅคงๅธˆๆฑคๅง†ยท่ฟช้ฉฌๅ…‹๏ผˆTom DeMark๏ผ‰็š„TDๅบๅˆ—ใ€‚่ฏฅๆŒ‡ๆ ‡็š„ๆ ธๅฟƒๅŠŸ่ƒฝๆ˜ฏ้€š่ฟ‡่ฏ†ๅˆซ่‚กไปทๅœจไธŠๆถจๆˆ–ไธ‹่ทŒ่ฟ‡็จ‹ไธญ่ฟž็ปญ9ๅคฉ็š„็‰นๅฎš่ตฐๅŠฟ๏ผŒๆฅๅˆคๆ–ญ่‚กไปท็š„ๆฝœๅœจๅ่ฝฌ็‚น๏ผŒไปŽ่€ŒๅธฎๅŠฉๆŠ•่ต„่€…ๆ้ซ˜ๆŠ„ๅบ•ๅ’Œ้€ƒ้กถ็š„ๆˆๅŠŸ็އ๏ผŒๆ—ฅ็บฟ็บงๅˆซ้…ๅˆ60min็š„ไน่ฝฌๆ•ˆๆžœๆ›ดๅฅฝ๏ผŒๆ•ฐๆฎไปŽ20230101ๅผ€ๅง‹ใ€‚ |
+| 188 | hk_hold | [ๆฒชๆทฑ่‚ก้€šๆŒ่‚กๆ˜Ž็ป†](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๆฒชๆทฑ่‚ก้€šๆŒ่‚กๆ˜Ž็ป†.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ๆฒชๆทฑๆธฏ่‚ก้€šๆŒ่‚กๆ˜Ž็ป†๏ผŒๆ•ฐๆฎๆฅๆบๆธฏไบคๆ‰€ใ€‚ |
+| 267 | broker_recommend | [ๅˆธๅ•†ๆœˆๅบฆ้‡‘่‚ก](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๅˆธๅ•†ๆœˆๅบฆ้‡‘่‚ก.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ๅˆธๅ•†ๆœˆๅบฆ้‡‘่‚ก๏ผŒไธ€่ˆฌ1ๆ—ฅ~3ๆ—ฅๅ†…ๆ›ดๆ–ฐๅฝ“ๆœˆๆ•ฐๆฎ |
+| 274 | ccass_hold_detail | [ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆ˜Ž็ป†](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆ˜Ž็ป†.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆœบๆž„ๅธญไฝๆŒ่‚กๆ˜Ž็ป†๏ผŒๆ•ฐๆฎ่ฆ†็›–**ๅ…จๅކๅฒ**๏ผŒๆ นๆฎไบคๆ˜“ๆ‰€ๆŠซ้œฒๆ—ถ้—ด๏ผŒๅฝ“ๆ—ฅๆ•ฐๆฎๅœจไธ‹ไธ€ไบคๆ˜“ๆ—ฅๆ—ฉไธŠ9็‚นๅ‰ๅฎŒๆˆ |
+| 275 | stk_surv | [ๆœบๆž„่ฐƒ็ ”ๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๆœบๆž„่ฐƒ็ ”ๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๆœบๆž„่ฐƒ็ ”่ฎฐๅฝ•ๆ•ฐๆฎ |
+| 292 | report_rc | [ๅˆธๅ•†็›ˆๅˆฉ้ข„ๆต‹ๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๅˆธๅ•†็›ˆๅˆฉ้ข„ๆต‹ๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ๅˆธๅ•†๏ผˆๅ–ๆ–น๏ผ‰ๆฏๅคฉ็ ”ๆŠฅ็š„็›ˆๅˆฉ้ข„ๆต‹ๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไปŽ2010ๅนดๅผ€ๅง‹๏ผŒๆฏๆ™š19~22็‚นๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ |
+| 293 | cyq_perf | [ๆฏๆ—ฅ็ญน็ ๅŠ่ƒœ็އ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๆฏๆ—ฅ็ญน็ ๅŠ่ƒœ็އ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–A่‚กๆฏๆ—ฅ็ญน็ ๅนณๅ‡ๆˆๆœฌๅ’Œ่ƒœ็އๆƒ…ๅ†ต๏ผŒๆฏๅคฉ18~19็‚นๅทฆๅณๆ›ดๆ–ฐ๏ผŒๆ•ฐๆฎไปŽ2018ๅนดๅผ€ๅง‹ |
+| 294 | cyq_chips | [ๆฏๆ—ฅ็ญน็ ๅˆ†ๅธƒ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ๆฏๆ—ฅ็ญน็ ๅˆ†ๅธƒ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–A่‚กๆฏๆ—ฅ็š„็ญน็ ๅˆ†ๅธƒๆƒ…ๅ†ต๏ผŒๆไพ›ๅ„ไปทไฝๅ ๆฏ”๏ผŒๆ•ฐๆฎไปŽ2018ๅนดๅผ€ๅง‹๏ผŒๆฏๅคฉ18~19็‚นไน‹้—ดๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ |
+| 295 | ccass_hold | [ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚ก็ปŸ่ฎก](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚ก็ปŸ่ฎก.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆฑ‡ๆ€ปๆ•ฐๆฎ๏ผŒ่ฆ†็›–ๅ…จ้ƒจๅކๅฒๆ•ฐๆฎ๏ผŒๆ นๆฎไบคๆ˜“ๆ‰€ๆŠซ้œฒๆ—ถ้—ด๏ผŒๅฝ“ๆ—ฅๆ•ฐๆฎๅœจไธ‹ไธ€ไบคๆ˜“ๆ—ฅๆ—ฉไธŠ9็‚นๅ‰ๅฎŒๆˆๅ…ฅๅบ“ |
+| 353 | stk_auction_o | [่‚ก็ฅจๅผ€็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/่‚ก็ฅจๅผ€็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่‚ก็ฅจๅผ€็›˜9:30้›†ๅˆ็ซžไปทๆ•ฐๆฎ๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ |
+| 354 | stk_auction_c | [่‚ก็ฅจๆ”ถ็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/่‚ก็ฅจๆ”ถ็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่‚ก็ฅจๆ”ถ็›˜15:00้›†ๅˆ็ซžไปทๆ•ฐๆฎ๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ |
+| 399 | stk_ah_comparison | [AH่‚กๆฏ”ไปท](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/AH่‚กๆฏ”ไปท.md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | AH่‚กๆฏ”ไปทๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎไบคๆ˜“ๆ—ฅๆœŸ่Žทๅ–ๅކๅฒ |
+| 328 | stk_factor_pro | [่‚ก็ฅจๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ)](references/่‚ก็ฅจๆ•ฐๆฎ/็‰น่‰ฒๆ•ฐๆฎ/่‚ก็ฅจๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ).md) | ่‚ก็ฅจๆ•ฐๆฎ,็‰น่‰ฒๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธช่‚ก็ฅจๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒ_qfq่กจ็คบๅ‰ๅคๆƒ _hfq่กจ็คบๅŽๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ |
+| 27 | daily | [ๅކๅฒๆ—ฅ็บฟ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅކๅฒๆ—ฅ็บฟ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–่‚ก็ฅจ่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๆˆ–้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**](https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŒๅŒ…ๅซไบ†ๅ‰ๅŽๅคๆƒๆ•ฐๆฎ |
+| 146 | pro_bar | [ๅคๆƒ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅคๆƒ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | |
+| 145 | monthly | [ๆœˆ็บฟ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆœˆ็บฟ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–A่‚กๆœˆ็บฟๆ•ฐๆฎ |
+| 374 | rt_min | [ๅฎžๆ—ถๅˆ†้’Ÿ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅฎžๆ—ถๅˆ†้’Ÿ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๅ…จA่‚ก็ฅจๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min |
+| 372 | rt_k | [ๅฎžๆ—ถๆ—ฅ็บฟ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅฎžๆ—ถๆ—ฅ็บฟ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰่‚ก็ฅจไปฃ็ ๅŠ่‚ก็ฅจไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจ่‚ก็ฅจๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ… |
+| 370 | stk_mins | [ๅކๅฒๅˆ†้’Ÿ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅކๅฒๅˆ†้’Ÿ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–A่‚กๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ |
+| 365 | stk_week_month_adj | [ๅ‘จๆœˆ็บฟๅคๆƒ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅ‘จๆœˆ็บฟๅคๆƒ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ).md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๅคๆƒ--ๆฏๆ—ฅๆ›ดๆ–ฐ) |
+| 336 | stk_weekly_monthly | [ๅ‘จๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅ‘จๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ).md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ) |
+| 255 | bak_daily | [ๅค‡็”จ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅค‡็”จ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๅค‡็”จ่กŒๆƒ…๏ผŒๅŒ…ๆ‹ฌ็‰นๅฎš็š„่กŒๆƒ…ๆŒ‡ๆ ‡(ๆ•ฐๆฎไปŽ2017ๅนดไธญๅทฆๅณๅผ€ๅง‹๏ผŒๆ—ฉๆœŸๆœ‰ๅ‡ ๅคฉๆ•ฐๆฎ็ผบๅคฑ๏ผŒ่ฟ‘ๆœŸๆญฃๅธธ) |
+| 144 | weekly | [ๅ‘จ็บฟ่กŒๆƒ…](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅ‘จ็บฟ่กŒๆƒ….md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–A่‚กๅ‘จ็บฟ่กŒๆƒ…๏ผŒๆœฌๆŽฅๅฃๆฏๅ‘จๆœ€ๅŽไธ€ไธชไบคๆ˜“ๆ—ฅๆ›ดๆ–ฐ๏ผŒๅฆ‚้œ€่ฆไฝฟ็”จๆฏๅคฉๆ›ดๆ–ฐ็š„ๅ‘จ็บฟๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จ[ๆ—ฅๅบฆๆ›ดๆ–ฐ็š„ๅ‘จ็บฟ่กŒๆƒ…ๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=336)ใ€‚ |
+| 214 | suspend_d | [ๆฏๆ—ฅๅœๅค็‰Œไฟกๆฏ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆฏๆ—ฅๅœๅค็‰Œไฟกๆฏ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ๆŒ‰ๆ—ฅๆœŸๆ–นๅผ่Žทๅ–่‚ก็ฅจๆฏๆ—ฅๅœๅค็‰Œไฟกๆฏ |
+| 196 | ggt_daily | [ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบค็ปŸ่ฎก](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบค็ปŸ่ฎก.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบคไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2014ๅนดๅผ€ๅง‹ |
+| 183 | stk_limit | [ๆฏๆ—ฅๆถจ่ทŒๅœไปทๆ ผ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆฏๆ—ฅๆถจ่ทŒๅœไปทๆ ผ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๅ…จๅธ‚ๅœบ๏ผˆๅŒ…ๅซA/B่‚กๅ’ŒๅŸบ้‡‘๏ผ‰ๆฏๆ—ฅๆถจ่ทŒๅœไปทๆ ผ๏ผŒๅŒ…ๆ‹ฌๆถจๅœไปทๆ ผ๏ผŒ่ทŒๅœไปทๆ ผ็ญ‰๏ผŒๆฏไธชไบคๆ˜“ๆ—ฅ8็‚น40ๅทฆๅณๆ›ดๆ–ฐๅฝ“ๆ—ฅ่‚ก็ฅจๆถจ่ทŒๅœไปทๆ ผใ€‚ |
+| 109 | pro_bar | [้€š็”จ่กŒๆƒ…ๆŽฅๅฃ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/้€š็”จ่กŒๆƒ…ๆŽฅๅฃ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | |
+| 49 | ggt_top10 | [ๆธฏ่‚ก้€šๅๅคงๆˆไบค่‚ก](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆธฏ่‚ก้€šๅๅคงๆˆไบค่‚ก.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบคๆ•ฐๆฎ๏ผŒๅ…ถไธญๅŒ…ๆ‹ฌๆฒชๅธ‚ใ€ๆทฑๅธ‚่ฏฆ็ป†ๆ•ฐๆฎ๏ผŒๆฏๅคฉ18~20็‚นไน‹้—ดๅฎŒๆˆๅฝ“ๆ—ฅๆ›ดๆ–ฐ |
+| 48 | hsgt_top10 | [ๆฒชๆทฑ่‚ก้€šๅๅคงๆˆไบค่‚ก](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆฒชๆทฑ่‚ก้€šๅๅคงๆˆไบค่‚ก.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๆฒช่‚ก้€šใ€ๆทฑ่‚ก้€šๆฏๆ—ฅๅ‰ๅๅคงๆˆไบค่ฏฆ็ป†ๆ•ฐๆฎ๏ผŒๆฏๅคฉ18~20็‚นไน‹้—ดๅฎŒๆˆๅฝ“ๆ—ฅๆ›ดๆ–ฐ |
+| 32 | daily_basic | [ๆฏๆ—ฅๆŒ‡ๆ ‡](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆฏๆ—ฅๆŒ‡ๆ ‡.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ่Žทๅ–ๅ…จ้ƒจ่‚ก็ฅจๆฏๆ—ฅ้‡่ฆ็š„ๅŸบๆœฌ้ขๆŒ‡ๆ ‡๏ผŒๅฏ็”จไบŽ้€‰่‚กๅˆ†ๆžใ€ๆŠฅ่กจๅฑ•็คบ็ญ‰ใ€‚ๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž6000ๆกๆ•ฐๆฎ๏ผŒๅฏๆŒ‰ๆ—ฅ็บฟๅพช็Žฏๆๅ–ๅ…จ้ƒจๅކๅฒใ€‚ |
+| 28 | adj_factor | [ๅคๆƒๅ› ๅญ](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๅคๆƒๅ› ๅญ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ๆœฌๆŽฅๅฃ็”ฑTushare่‡ช่กŒ็”Ÿไบง๏ผŒ่Žทๅ–่‚ก็ฅจๅคๆƒๅ› ๅญ๏ผŒๅฏๆๅ–ๅ•ๅช่‚ก็ฅจๅ…จ้ƒจๅކๅฒๅคๆƒๅ› ๅญ๏ผŒไนŸๅฏไปฅๆๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจ็š„ๅคๆƒๅ› ๅญใ€‚ |
+| 197 | ggt_monthly | [ๆธฏ่‚ก้€šๆฏๆœˆๆˆไบค็ปŸ่ฎก](references/่‚ก็ฅจๆ•ฐๆฎ/่กŒๆƒ…ๆ•ฐๆฎ/ๆธฏ่‚ก้€šๆฏๆœˆๆˆไบค็ปŸ่ฎก.md) | ่‚ก็ฅจๆ•ฐๆฎ,่กŒๆƒ…ๆ•ฐๆฎ | ๆธฏ่‚ก้€šๆฏๆœˆๆˆไบคไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2014ๅนดๅผ€ๅง‹ |
+| 33 | income | [ๅˆฉๆถฆ่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/ๅˆฉๆถฆ่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ |
+| 44 | cashflow | [็Žฐ้‡‘ๆต้‡่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/็Žฐ้‡‘ๆต้‡่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจ |
+| 36 | balancesheet | [่ต„ไบง่ดŸๅ€บ่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/่ต„ไบง่ดŸๅ€บ่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ |
+| 46 | express | [ไธš็ปฉๅฟซๆŠฅ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/ไธš็ปฉๅฟซๆŠฅ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธไธš็ปฉๅฟซๆŠฅ |
+| 79 | fina_indicator | [่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž100ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚ |
+| 81 | fina_mainbz | [ไธป่ฅไธšๅŠกๆž„ๆˆ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/ไธป่ฅไธšๅŠกๆž„ๆˆ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅพ—ไธŠๅธ‚ๅ…ฌๅธไธป่ฅไธšๅŠกๆž„ๆˆ๏ผŒๅˆ†ๅœฐๅŒบๅ’Œไบงๅ“ไธค็งๆ–นๅผ |
+| 103 | dividend | [ๅˆ†็บข้€่‚กๆ•ฐๆฎ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/ๅˆ†็บข้€่‚กๆ•ฐๆฎ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ๅˆ†็บข้€่‚กๆ•ฐๆฎ |
+| 162 | disclosure_date | [่ดขๆŠฅๆŠซ้œฒๆ—ฅๆœŸ่กจ](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/่ดขๆŠฅๆŠซ้œฒๆ—ฅๆœŸ่กจ.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–่ดขๆŠฅๆŠซ้œฒ่ฎกๅˆ’ๆ—ฅๆœŸ |
+| 45 | forecast | [ไธš็ปฉ้ข„ๅ‘Š](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/ไธš็ปฉ้ข„ๅ‘Š.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธš็ปฉ้ข„ๅ‘Šๆ•ฐๆฎ |
+| 80 | fina_audit | [่ดขๅŠกๅฎก่ฎกๆ„่ง](references/่‚ก็ฅจๆ•ฐๆฎ/่ดขๅŠกๆ•ฐๆฎ/่ดขๅŠกๅฎก่ฎกๆ„่ง.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ดขๅŠกๆ•ฐๆฎ | ่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅฎšๆœŸ่ดขๅŠกๅฎก่ฎกๆ„่งๆ•ฐๆฎ |
+| 47 | moneyflow_hsgt | [ๆฒชๆทฑๆธฏ้€š่ต„้‡‘ๆตๅ‘](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ๆฒชๆทฑๆธฏ้€š่ต„้‡‘ๆตๅ‘.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ๆฒช่‚ก้€šใ€ๆทฑ่‚ก้€šใ€ๆธฏ่‚ก้€šๆฏๆ—ฅ่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆฌกๆœ€ๅคš่ฟ”ๅ›ž300ๆก่ฎฐๅฝ•๏ผŒๆ€ป้‡ไธ้™ๅˆถใ€‚ |
+| 170 | moneyflow | [ไธช่‚ก่ต„้‡‘ๆตๅ‘](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ไธช่‚ก่ต„้‡‘ๆตๅ‘.md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ๆฒชๆทฑA่‚ก็ฅจ่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๅˆ†ๆžๅคงๅ•ๅฐๅ•ๆˆไบคๆƒ…ๅ†ต๏ผŒ็”จไบŽๅˆคๅˆซ่ต„้‡‘ๅŠจๅ‘๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2010ๅนดใ€‚ |
+| 343 | moneyflow_ind_ths | [่กŒไธš่ต„้‡‘ๆตๅ‘(THS)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/่กŒไธš่ต„้‡‘ๆตๅ‘(THS).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบ่กŒไธš่ต„้‡‘ๆตๅ‘๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ |
+| 344 | moneyflow_ind_dc | [ๆฟๅ—่ต„้‡‘ๆตๅ‘(DC)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ๆฟๅ—่ต„้‡‘ๆตๅ‘(DC).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฟๅ—่ต„้‡‘ๆตๅ‘๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ |
+| 345 | moneyflow_mkt_dc | [ๅคง็›˜่ต„้‡‘ๆตๅ‘(DC)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ๅคง็›˜่ต„้‡‘ๆตๅ‘(DC).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒๅคง็›˜่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ |
+| 348 | moneyflow_ths | [ไธช่‚ก่ต„้‡‘ๆตๅ‘(THS)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ไธช่‚ก่ต„้‡‘ๆตๅ‘(THS).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบไธช่‚ก่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ |
+| 349 | moneyflow_dc | [ไธช่‚ก่ต„้‡‘ๆตๅ‘(DC)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ไธช่‚ก่ต„้‡‘ๆตๅ‘(DC).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ไธœๆ–น่ดขๅฏŒไธช่‚ก่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ20230911 |
+| 371 | moneyflow_cnt_ths | [ๆฟๅ—่ต„้‡‘ๆตๅ‘(THS)](references/่‚ก็ฅจๆ•ฐๆฎ/่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ/ๆฟๅ—่ต„้‡‘ๆตๅ‘(THS).md) | ่‚ก็ฅจๆ•ฐๆฎ,่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ | ่Žทๅ–ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—ๆฏๆ—ฅ่ต„้‡‘ๆตๅ‘ |
+| 156 | film_record | [ๅ…จๅ›ฝ็”ตๅฝฑๅ‰งๆœฌๅค‡ๆกˆๆ•ฐๆฎ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/ๅ…จๅ›ฝ็”ตๅฝฑๅ‰งๆœฌๅค‡ๆกˆๆ•ฐๆฎ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–ๅ…จๅ›ฝ็”ตๅฝฑๅ‰งๆœฌๅค‡ๆกˆ็š„ๅ…ฌ็คบๆ•ฐๆฎ |
+| 180 | teleplay_record | [ๅ…จๅ›ฝ็”ต่ง†ๅ‰งๅค‡ๆกˆๅ…ฌ็คบๆ•ฐๆฎ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/ๅ…จๅ›ฝ็”ต่ง†ๅ‰งๅค‡ๆกˆๅ…ฌ็คบๆ•ฐๆฎ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–2009ๅนดไปฅๆฅๅ…จๅ›ฝๆ‹ๆ‘„ๅˆถไฝœ็”ต่ง†ๅ‰งๅค‡ๆกˆๅ…ฌ็คบๆ•ฐๆฎ |
+| 87 | tmt_twincomedetail | [ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถๆ˜Ž็ป†](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถๆ˜Ž็ป†.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–ๅฐๆนพTMT่กŒไธšไธŠๅธ‚ๅ…ฌๅธๅ„็ฑปไบงๅ“ๆœˆๅบฆ่ฅๆ”ถๆƒ…ๅ†ตใ€‚ |
+| 88 | tmt_twincome | [ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–ๅฐๆนพTMT็”ตๅญไบงไธš้ข†ๅŸŸๅ„็ฑปไบงๅ“ๆœˆๅบฆ่ฅๆ”ถๆ•ฐๆฎใ€‚ |
+| 113 | bo_monthly | [็”ตๅฝฑๆœˆๅบฆ็ฅจๆˆฟ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/็”ตๅฝฑๆœˆๅบฆ็ฅจๆˆฟ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–็”ตๅฝฑๆœˆๅบฆ็ฅจๆˆฟๆ•ฐๆฎ |
+| 115 | bo_daily | [็”ตๅฝฑๆ—ฅๅบฆ็ฅจๆˆฟ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/็”ตๅฝฑๆ—ฅๅบฆ็ฅจๆˆฟ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–็”ตๅฝฑๆ—ฅๅบฆ็ฅจๆˆฟ |
+| 116 | bo_cinema | [ๅฝฑ้™ขๆ—ฅๅบฆ็ฅจๆˆฟ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/ๅฝฑ้™ขๆ—ฅๅบฆ็ฅจๆˆฟ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–ๆฏๆ—ฅๅ„ๅฝฑ้™ข็š„็ฅจๆˆฟๆ•ฐๆฎ |
+| 114 | bo_weekly | [็”ตๅฝฑๅ‘จๅบฆ็ฅจๆˆฟ](references/่กŒไธš็ปๆตŽ/TMT่กŒไธš/็”ตๅฝฑๅ‘จๅบฆ็ฅจๆˆฟ.md) | ่กŒไธš็ปๆตŽ,TMT่กŒไธš | ่Žทๅ–ๅ‘จๅบฆ็ฅจๆˆฟๆ•ฐๆฎ |
+| 265 | fund_sales_ratio | [ๅ„ๆธ ้“ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๅ ๆฏ”](references/่ดขๅฏŒ็ฎก็†/ๅŸบ้‡‘้”€ๅ”ฎ่กŒไธšๆ•ฐๆฎ/ๅ„ๆธ ้“ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๅ ๆฏ”.md) | ่ดขๅฏŒ็ฎก็†,ๅŸบ้‡‘้”€ๅ”ฎ่กŒไธšๆ•ฐๆฎ | ่Žทๅ–ๅ„ๆธ ้“ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๅ ๆฏ”ๆ•ฐๆฎ๏ผŒๅนดๅบฆๆ›ดๆ–ฐ |
+| 266 | fund_sales_vol | [้”€ๅ”ฎๆœบๆž„ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจก](references/่ดขๅฏŒ็ฎก็†/ๅŸบ้‡‘้”€ๅ”ฎ่กŒไธšๆ•ฐๆฎ/้”€ๅ”ฎๆœบๆž„ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจก.md) | ่ดขๅฏŒ็ฎก็†,ๅŸบ้‡‘้”€ๅ”ฎ่กŒไธšๆ•ฐๆฎ | ่Žทๅ–้”€ๅ”ฎๆœบๆž„ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๆ•ฐๆฎ๏ผŒๆœฌๆ•ฐๆฎไปŽ2021ๅนดQ1ๅผ€ๅง‹ๅ…ฌๅธƒ๏ผŒๅญฃๅบฆๆ›ดๆ–ฐ |
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\344\273\275\351\242\235\350\247\204\346\250\241.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\344\273\275\351\242\235\350\247\204\346\250\241.md"
new file mode 100644
index 000000000..6167ca510
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\344\273\275\351\242\235\350\247\204\346\250\241.md"
@@ -0,0 +1,61 @@
+# ETFไปฝ้ข่ง„ๆจก
+
+
+### ๆŽฅๅฃไป‹็ป
+ๆŽฅๅฃ๏ผšetf_share_size
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑETFๆฏๆ—ฅไปฝ้ขๅ’Œ่ง„ๆจกๆ•ฐๆฎ๏ผŒ่ƒฝไฝ“็Žฐ่ง„ๆจกไปฝ้ข็š„ๅ˜ๅŒ–๏ผŒๆŽŒๆกETF่ต„้‡‘ๅŠจๅ‘๏ผŒๅŒๆ—ถๆไพ›ๆฏๆ—ฅๅ‡€ๅ€ผๅ’Œๆ”ถ็›˜ไปท๏ผ›ๆ•ฐๆฎๆŒ‡ๆ ‡ๆ˜ฏๅˆ†ๆ‰นๅ…ฅๅบ“๏ผŒๅปบ่ฎฎๅœจๆฏๆ—ฅ19็‚นๅŽๆๅ–๏ผ›ๅฆๅค–๏ผŒๆถ‰ๅŠๆตทๅค–็š„ETFๆ•ฐๆฎๆ›ดๆ–ฐไผšๆ™šไธ€ไบ›ๅฑžไบŽๆญฃๅธธๆƒ…ๅ†ตใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000ๆก๏ผŒๅฏๆ นๆฎไปฃ็ ๆˆ–ๆ—ฅๆœŸๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš้œ€่ฆ8000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+
+### ่พ“ๅ…ฅๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็  ๏ผˆๅฏไปŽETFๅŸบ็ก€ไฟกๆฏๆŽฅๅฃๆๅ–๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆSSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€๏ผ‰
+
+<br>
+
+### ่พ“ๅ‡บๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ETFไปฃ็ 
+etf_name | str | Y | ๅŸบ้‡‘ๅ็งฐ
+total_share | float | Y | ๆ€ปไปฝ้ข๏ผˆไธ‡ไปฝ๏ผ‰
+total_size | float | Y | ๆ€ป่ง„ๆจก๏ผˆไธ‡ๅ…ƒ๏ผ‰
+nav | float | N | ๅŸบ้‡‘ไปฝ้ขๅ‡€ๅ€ผ(ๅ…ƒ)
+close | float | N | ๆ”ถ็›˜ไปท๏ผˆๅ…ƒ๏ผ‰
+exchange | str | Y | ไบคๆ˜“ๆ‰€๏ผˆSSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€ BSEๅŒ—ไบคๆ‰€๏ผ‰
+
+
+
+### ไปฃ็ ็คบไพ‹
+```python
+
+#่Žทๅ–โ€ๆฒชๆทฑ300ETFๅŽๅคโ€ETF2025ๅนดไปฅๆฅๆฏไธชไบคๆ˜“ๆ—ฅ็š„ไปฝ้ขๅ’Œ่ง„ๆจกๆƒ…ๅ†ต
+df = pro.etf_share_size(ts_code='510330.SH', start_date='20250101', end_date='20251224')
+
+#่Žทๅ–2025ๅนด12ๆœˆ24ๆ—ฅไธŠไบคๆ‰€็š„ๆ‰€ๆœ‰ETFไปฝ้ขๅ’Œ่ง„ๆจกๆƒ…ๅ†ต
+df = pro.etf_share_size(trade_date='20251224', exchange='SSE')
+
+```
+
+### ๆ•ฐๆฎ็ป“ๆžœ
+
+ trade_date ts_code etf_name total_share total_size exchange
+ 0 20251224 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4741854.98 2.287898e+07 SSE
+ 1 20251222 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4746894.98 2.279127e+07 SSE
+ 2 20251219 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4756974.98 2.262512e+07 SSE
+ 3 20251218 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4757514.98 2.253778e+07 SSE
+ 4 20251217 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4756884.98 2.266418e+07 SSE
+ .. ... ... ... ... ... ...
+ 232 20250108 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4032384.98 1.599808e+07 SSE
+ 233 20250107 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 4009164.98 1.592962e+07 SSE
+ 234 20250106 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 3999084.98 1.577239e+07 SSE
+ 235 20250103 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 3994674.98 1.578176e+07 SSE
+ 236 20250102 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 3986754.98 1.593905e+07 SSE
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\216\206\345\217\262\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\216\206\345\217\262\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..56d786d98
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\216\206\345\217\262\345\210\206\351\222\237.md"
@@ -0,0 +1,84 @@
+## ETFๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšstk_mins
+ๆ่ฟฐ๏ผš่Žทๅ–ETFๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๅ’Œๆ—ถ้—ดๅพช็Žฏ่Žทๅ–๏ผŒๆœฌๆŽฅๅฃๅฏไปฅๆไพ›่ถ…่ฟ‡10ๅนดETFๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+ๆƒ้™๏ผšๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u>
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ETFไปฃ็ ๏ผŒe.g. 159001.SZ
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2025-06-01 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2025-06-20 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ETFไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆฒชๆทฑ300ETFๅŽๅค510330.SH็š„ๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.stk_mins(ts_code='510330.SH', freq='1min', start_date='2025-06-20 09:00:00', end_date='2025-06-20 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_time close open high low vol amount
+ 0 510330.SH 2025-06-20 15:00:00 3.991 3.991 3.992 3.990 800600.0 3194805.0
+ 1 510330.SH 2025-06-20 14:59:00 3.991 3.990 3.991 3.989 182500.0 728177.0
+ 2 510330.SH 2025-06-20 14:58:00 3.990 3.992 3.992 3.990 113700.0 453763.0
+ 3 510330.SH 2025-06-20 14:57:00 3.992 3.992 3.992 3.991 17400.0 69460.0
+ 4 510330.SH 2025-06-20 14:56:00 3.992 3.992 3.992 3.991 447500.0 1786373.0
+ .. ... ... ... ... ... ... ... ...
+ 236 510330.SH 2025-06-20 09:34:00 3.994 3.994 3.995 3.994 2528100.0 10097818.0
+ 237 510330.SH 2025-06-20 09:33:00 3.994 3.991 3.994 3.991 143300.0 572084.0
+ 238 510330.SH 2025-06-20 09:32:00 3.992 3.990 3.993 3.990 1118500.0 4463264.0
+ 239 510330.SH 2025-06-20 09:31:00 3.988 3.984 3.992 3.984 1176100.0 4691600.0
+ 240 510330.SH 2025-06-20 09:30:00 3.983 3.983 3.983 3.983 20700.0 82448.0
+
+
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\345\207\206\346\214\207\346\225\260.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\345\207\206\346\214\207\346\225\260.md"
new file mode 100644
index 000000000..7f5175ba1
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\345\207\206\346\214\207\346\225\260.md"
@@ -0,0 +1,63 @@
+## ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšetf_index
+ๆ่ฟฐ๏ผš่Žทๅ–ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐๅˆ—่กจไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž5000่กŒๆ•ฐๆฎ๏ผˆๅฝ“ๅ‰ๆœช่ถ…่ฟ‡2000ไธช๏ผ‰
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ8000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ 
+pub_date | str | N | ๅ‘ๅธƒๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+base_date | str | N | ๆŒ‡ๆ•ฐๅŸบๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+indx_name | str | Y | ๆŒ‡ๆ•ฐๅ…จ็งฐ
+indx_csname | str | Y | ๆŒ‡ๆ•ฐ็ฎ€็งฐ
+pub_party_name | str | Y | ๆŒ‡ๆ•ฐๅ‘ๅธƒๆœบๆž„
+pub_date | str | Y | ๆŒ‡ๆ•ฐๅ‘ๅธƒๆ—ฅๆœŸ
+base_date | str | Y | ๆŒ‡ๆ•ฐๅŸบๆ—ฅ
+bp | float | Y | ๆŒ‡ๆ•ฐๅŸบ็‚น(็‚น)
+adj_circle | str | Y | ๆŒ‡ๆ•ฐๆˆไปฝ่ฏๅˆธ่ฐƒๆ•ดๅ‘จๆœŸ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๅ‰ETF่ทŸ่ธช็š„ๅŸบๅ‡†ๆŒ‡ๆ•ฐๅˆ—่กจ
+df = pro.etf_index(fields='ts_code,indx_name,pub_date,bp')
+
+
+```
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code indx_name pub_date bp
+ 0 000068.SH ไธŠ่ฏ่‡ช็„ถ่ต„ๆบๆŒ‡ๆ•ฐ 20100528 1000.000000
+ 1 000001.SH ไธŠ่ฏ็ปผๅˆๆŒ‡ๆ•ฐ 19910715 100.000000
+ 2 000989.SH ไธญ่ฏๅ…จๆŒ‡ๅฏ้€‰ๆถˆ่ดนๆŒ‡ๆ•ฐ 20110802 1000.000000
+ 3 000990.CSI ไธญ่ฏๅ…จๆŒ‡ไธป่ฆๆถˆ่ดนๆŒ‡ๆ•ฐ 20110802 1000.000000
+ 4 000043.SH ไธŠ่ฏ่ถ…็บงๅคง็›˜ๆŒ‡ๆ•ฐ 20090423 1000.000000
+ ... ... ... ... ...
+ 1458 932368.CSI ไธญ่ฏ800่‡ช็”ฑ็Žฐ้‡‘ๆตๆŒ‡ๆ•ฐ 20241211 1000.000000
+ 1460 000680.SH ไธŠ่ฏ็ง‘ๅˆ›ๆฟ็ปผๅˆๆŒ‡ๆ•ฐ 20250120 1000.000000
+ 1461 000681.SH ไธŠ่ฏ็ง‘ๅˆ›ๆฟ็ปผๅˆไปทๆ ผๆŒ‡ๆ•ฐ 20250120 1000.000000
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\346\234\254\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\346\234\254\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..b2b3e6358
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\237\272\346\234\254\344\277\241\346\201\257.md"
@@ -0,0 +1,109 @@
+## ETFๅŸบ็ก€ไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšetf_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ›ฝๅ†…ETFๅŸบ็ก€ไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌไบ†QDIIใ€‚ๆ•ฐๆฎๆฅๆบไธŽๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ…ฌๅผ€ๆŠซ้œฒไฟกๆฏใ€‚
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคงๆ”พๅ›ž5000ๆกๆ•ฐๆฎ๏ผˆๅฝ“ๅ‰ETFๆ€ปๆ•ฐๆœช่ถ…่ฟ‡2000๏ผ‰
+ๆƒ้™๏ผš็”จๆˆท็งฏ8000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ETFไปฃ็ ๏ผˆๅธฆ.SZ/.SHๅŽ็ผ€็š„6ไฝๆ•ฐๅญ—๏ผŒๅฆ‚๏ผš159526.SZ๏ผ‰
+index_code | str | N | ่ทŸ่ธชๆŒ‡ๆ•ฐไปฃ็ 
+list_date | str | N | ไธŠๅธ‚ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+list_status | str | N | ไธŠๅธ‚็Šถๆ€๏ผˆLไธŠๅธ‚ D้€€ๅธ‚ Pๅพ…ไธŠๅธ‚๏ผ‰
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆSHไธŠไบคๆ‰€ SZๆทฑไบคๆ‰€๏ผ‰
+mgr | str | N | ็ฎก็†ไบบ๏ผˆ็ฎ€็งฐ๏ผŒe.g.ๅŽๅคๅŸบ้‡‘)
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅŸบ้‡‘ไบคๆ˜“ไปฃ็ 
+csname | str | Y | ETFไธญๆ–‡็ฎ€็งฐ
+extname | str | Y | ETFๆ‰ฉไฝ็ฎ€็งฐ(ๅฏนๅบ”ไบคๆ˜“ๆ‰€็ฎ€็งฐ)
+cname | str | Y | ๅŸบ้‡‘ไธญๆ–‡ๅ…จ็งฐ
+index_code | str | Y | ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐไปฃ็ 
+index_name | str | Y | ETFๅŸบๅ‡†ๆŒ‡ๆ•ฐไธญๆ–‡ๅ…จ็งฐ
+setup_date | str | Y | ่ฎพ็ซ‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+list_status | str | Y | ๅญ˜็ปญ็Šถๆ€๏ผˆLไธŠๅธ‚ D้€€ๅธ‚ Pๅพ…ไธŠๅธ‚๏ผ‰
+exchange | str | Y | ไบคๆ˜“ๆ‰€๏ผˆไธŠไบคๆ‰€SH ๆทฑไบคๆ‰€SZ๏ผ‰
+mgr_name | str | Y | ๅŸบ้‡‘็ฎก็†ไบบ็ฎ€็งฐ
+custod_name | str | Y | ๅŸบ้‡‘ๆ‰˜็ฎกไบบๅ็งฐ
+mgt_fee | float | Y | ๅŸบ้‡‘็ฎก็†ไบบๆ”ถๅ–็š„่ดน็”จ
+etf_type | str | Y | ๅŸบ้‡‘ๆŠ•่ต„้€š้“็ฑปๅž‹๏ผˆๅขƒๅ†…ใ€QDII๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๅ‰ๆ‰€ๆœ‰ไธŠๅธ‚็š„ETFๅˆ—่กจ
+df = pro.etf_basic(list_status='L', fields='ts_code,extname,index_code,index_name,exchange,mgr_name')
+
+
+#่Žทๅ–โ€œๅ˜‰ๅฎžๅŸบ้‡‘โ€ๆ‰€ๆœ‰ไธŠๅธ‚็š„ETFๅˆ—่กจ
+df = pro.etf_basic(mgr='ๅ˜‰ๅฎžๅŸบ้‡‘'๏ผŒ list_status='L', fields='ts_code,extname,index_code,index_name,exchange,etf_type')
+
+
+#่Žทๅ–โ€œๅ˜‰ๅฎžๅŸบ้‡‘โ€ๅœจๆทฑไบคๆ‰€ไธŠๅธ‚็š„ๆ‰€ๆœ‰ETFๅˆ—่กจ
+df = pro.etf_basic(mgr='ๅ˜‰ๅฎžๅŸบ้‡‘'๏ผŒ list_status='L', exchange='SZ', fields='ts_code,extname,index_code,index_name,exchange,etf_type')
+
+
+#่Žทๅ–ไปฅๆฒชๆทฑ300ๆŒ‡ๆ•ฐไธบ่ทŸ่ธชๆŒ‡ๆ•ฐ็š„ๆ‰€ๆœ‰ไธŠๅธ‚็š„ETFๅˆ—่กจ
+df = pro.etf_basic(index_code='000300.SH', fields='ts_code,extname,index_code,index_name,exchange,mgr_name')
+
+```
+
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code extname index_code index_name exchange mgr_name
+ 0 159238.SZ 300ETFๅขžๅผบ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ๆ™ฏ้กบ้•ฟๅŸŽๅŸบ้‡‘
+ 1 159300.SZ 300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ๅฏŒๅ›ฝๅŸบ้‡‘
+ 2 159330.SZ ๆฒชๆทฑ300ETFๅŸบ้‡‘ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ่ฅฟ่—ไธœ่ดขๅŸบ้‡‘
+ 3 159393.SZ ๆฒชๆทฑ300ๆŒ‡ๆ•ฐETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ไธ‡ๅฎถๅŸบ้‡‘
+ 4 159673.SZ ๆฒชๆทฑ300ETF้นๅŽ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ้นๅŽๅŸบ้‡‘
+ 5 159919.SZ ๆฒชๆทฑ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ๅ˜‰ๅฎžๅŸบ้‡‘
+ 6 159925.SZ ๆฒชๆทฑ300ETFๅ—ๆ–น 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ๅ—ๆ–นๅŸบ้‡‘
+ 7 159927.SZ ้นๅŽๆฒชๆทฑ300ๆŒ‡ๆ•ฐ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SZ ้นๅŽๅŸบ้‡‘
+ 8 510300.SH ๆฒชๆทฑ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅŽๆณฐๆŸ็‘žๅŸบ้‡‘
+ 9 510310.SH ๆฒชๆทฑ300ETFๆ˜“ๆ–น่พพ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆ˜“ๆ–น่พพๅŸบ้‡‘
+ 10 510320.SH ๆฒชๆทฑ300ETFไธญ้‡‘ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ไธญ้‡‘ๅŸบ้‡‘
+ 11 510330.SH ๆฒชๆทฑ300ETFๅŽๅค 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅŽๅคๅŸบ้‡‘
+ 12 510350.SH ๆฒชๆทฑ300ETFๅทฅ้“ถ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅทฅ้“ถ็‘žไฟกๅŸบ้‡‘
+ 13 510360.SH ๆฒชๆทฑ300ETFๅŸบ้‡‘ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅนฟๅ‘ๅŸบ้‡‘
+ 14 510370.SH 300ๆŒ‡ๆ•ฐETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅ…ดไธšๅŸบ้‡‘
+ 15 510380.SH ๅ›ฝๅฏฟ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅ›ฝๅฏฟๅฎ‰ไฟๅŸบ้‡‘
+ 16 510390.SH ๆฒชๆทฑ300ETFๅนณๅฎ‰ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅนณๅฎ‰ๅŸบ้‡‘
+ 17 515130.SH ๆฒชๆทฑ300ETFๅšๆ—ถ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅšๆ—ถๅŸบ้‡‘
+ 18 515310.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆฑ‡ๆทปๅฏŒๅŸบ้‡‘
+ 19 515330.SH ๆฒชๆทฑ300ETFๅคฉๅผ˜ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅคฉๅผ˜ๅŸบ้‡‘
+ 20 515350.SH ๆฐ‘็”ŸๅŠ ้“ถ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆฐ‘็”ŸๅŠ ้“ถๅŸบ้‡‘
+ 21 515360.SH ๆ–นๆญฃๆฒชๆทฑ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆ–นๆญฃๅฏŒ้‚ฆๅŸบ้‡‘
+ 22 515380.SH ๆฒชๆทฑ300ETFๆณฐๅบท 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆณฐๅบทๅŸบ้‡‘
+ 23 515390.SH ๆฒชๆทฑ300ETFๆŒ‡ๆ•ฐๅŸบ้‡‘ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅŽๅฎ‰ๅŸบ้‡‘
+ 24 515660.SH ๆฒชๆทฑ300ETFๅ›ฝ่”ๅฎ‰ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅ›ฝ่”ๅฎ‰ๅŸบ้‡‘
+ 25 515930.SH ๆฐธ่ตขๆฒชๆทฑ300ETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆฐธ่ตขๅŸบ้‡‘
+ 26 561000.SH ๆฒชๆทฑ300ETFๅขžๅผบๅŸบ้‡‘ 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅŽๅฎ‰ๅŸบ้‡‘
+ 27 561300.SH 300ๅขžๅผบETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๅ›ฝๆณฐๅŸบ้‡‘
+ 28 561930.SH ๆฒชๆทฑ300ETFๆ‹›ๅ•† 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆ‹›ๅ•†ๅŸบ้‡‘
+ 29 561990.SH ๆฒชๆทฑ300ๅขžๅผบETF 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆ‹›ๅ•†ๅŸบ้‡‘
+ 30 563520.SH ๆฒชๆทฑ300ETFๆฐธ่ตข 000300.SH ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ SH ๆฐธ่ตขๅŸบ้‡‘
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\244\215\346\235\203\345\233\240\345\255\220.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\244\215\346\235\203\345\233\240\345\255\220.md"
new file mode 100644
index 000000000..9f2b909f9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\244\215\346\235\203\345\233\240\345\255\220.md"
@@ -0,0 +1,80 @@
+## ๅŸบ้‡‘ๅคๆƒๅ› ๅญ
+----
+
+ๆŽฅๅฃ๏ผšfund_adj
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŸบ้‡‘ๅคๆƒๅ› ๅญ๏ผŒ็”จไบŽ่ฎก็ฎ—ๅŸบ้‡‘ๅคๆƒ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–2000่กŒ่ฎฐๅฝ•๏ผŒๅฏๅพช็Žฏๆๅ–๏ผŒๆ•ฐๆฎๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ่ถ…่ฟ‡5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+<!--
+**ๅคๆƒ่กŒๆƒ…ๅฎž็Žฐๅ‚่€ƒ๏ผš**
+
+ๅŽๅคๆƒ = ๅฝ“ๆ—ฅๆœ€ๆ–ฐไปท ร— ๅฝ“ๆ—ฅๅคๆƒๅ› ๅญ
+ๅ‰ๅคๆƒ = ๅฝ“ๆ—ฅๆœ€ๆ–ฐไปท รท ๆœ€ๆ–ฐๅคๆƒๅ› ๅญ
+-->
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๅŸบ้‡‘ไปฃ็ ๏ผˆๆ”ฏๆŒๅคšๅชๅŸบ้‡‘่พ“ๅ…ฅ๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšyyyymmdd๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+offset | str | N | ๅผ€ๅง‹่กŒๆ•ฐ
+limit | str | N | ๆœ€ๅคง่กŒๆ•ฐ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | tsๅŸบ้‡‘ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+adj_factor | float | Y | ๅคๆƒๅ› ๅญ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.fund_adj(ts_code='513100.SH', start_date='20190101', end_date='20190926')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date adj_factor
+ 0 513100.SH 20190926 1.0
+ 1 513100.SH 20190925 1.0
+ 2 513100.SH 20190924 1.0
+ 3 513100.SH 20190923 1.0
+ 4 513100.SH 20190920 1.0
+ 5 513100.SH 20190919 1.0
+ 6 513100.SH 20190918 1.0
+ 7 513100.SH 20190917 1.0
+ 8 513100.SH 20190916 1.0
+ 9 513100.SH 20190912 1.0
+ 10 513100.SH 20190911 1.0
+ 11 513100.SH 20190910 1.0
+ 12 513100.SH 20190909 1.0
+ 13 513100.SH 20190906 1.0
+ 14 513100.SH 20190905 1.0
+ 15 513100.SH 20190904 1.0
+ 16 513100.SH 20190903 1.0
+ 17 513100.SH 20190902 1.0
+ 18 513100.SH 20190830 1.0
+ 19 513100.SH 20190829 1.0
+ 20 513100.SH 20190828 1.0
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..826dfb265
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\345\210\206\351\222\237.md"
@@ -0,0 +1,65 @@
+## ETFๅฎžๆ—ถๅˆ†้’Ÿ
+----
+
+ๆŽฅๅฃ๏ผšrt_min
+ๆ่ฟฐ๏ผš่Žทๅ–ETFๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ETFไปฃ็ ๆๅ–ๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ้€—ๅทๅˆ†้š”็š„ๅคšไธชไปฃ็ ๅŒๆ—ถๆๅ–
+ๆƒ้™๏ผšๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u>
+
+ๆณจ๏ผšๆ”ฏๆŒ่‚ก็ฅจๅฝ“ๆ—ฅๅผ€็›˜ไปฅๆฅ็š„ๆ‰€ๆœ‰ETFๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎๆๅ–๏ผŒๆŽฅๅฃๅ๏ผšrt_min_daily๏ผˆไป…ๆ”ฏๆŒไธ€ไธชไธชไปฃ็ ๆๅ–๏ผŒไธๅŒๅŒๆ—ถๆๅ–ๅคšไธช๏ผ‰๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+freq | str | Y | 1MIN,5MIN,15MIN,30MIN,60MIN ๏ผˆๅคงๅ†™๏ผ‰
+ts_code | str | Y | ๆ”ฏๆŒๅ•ไธชๅ’Œๅคšไธช๏ผš589960.SH ๆˆ–่€… 589960.SH,159100.SZ
+
+
+<br>
+<br>
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1MIN | 1ๅˆ†้’Ÿ
+5MIN | 5ๅˆ†้’Ÿ
+15MIN | 15ๅˆ†้’Ÿ
+30MIN | 30ๅˆ†้’Ÿ
+60MIN | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+time | None | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡(่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆๅ…ƒ๏ผ‰
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็ง‘ๅˆ›ๆ–ฐ่ƒฝๆบETFๆ˜“ๆ–น่พพ589960.SH็š„ๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.rt_min(ts_code='589960.SH', freq='1MIN')
+
+```
+
+<br>
+<br>
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\346\227\245\347\272\277.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\346\227\245\347\272\277.md"
new file mode 100644
index 000000000..f32dca531
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\345\256\236\346\227\266\346\227\245\347\272\277.md"
@@ -0,0 +1,77 @@
+## ETFๅฎžๆ—ถๆ—ฅ็บฟ
+----
+
+ๆŽฅๅฃ๏ผšrt_etf_k
+ๆ่ฟฐ๏ผš่Žทๅ–ETFๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰ETFไปฃ็ ๆˆ–ไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจETFๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆ”ฏๆŒ้€š้…็ฌฆๆ–นๅผ๏ผŒe.g. 5\*.SHใ€15\*.SZใ€159101.SZ
+topic | str | Y | ๅˆ†็ฑปๅ‚ๆ•ฐ๏ผŒๅ–ไธŠๆตทETFๆ—ถ๏ผŒ้œ€่ฆ่พ“ๅ…ฅ'HQ_FND_TICK'๏ผŒๅ‚่€ƒไธ‹้ขไพ‹ๅญ
+
+<br>
+ๆณจ๏ผšts_codeไปฃ็ ไธ€ๅฎš่ฆๅธฆ<font color="red">.SH/.SZ/.BJ</font>ๅŽ็ผ€
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ETFไปฃ็ 
+name | None | Y | ETFๅ็งฐ
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท๏ผˆๆœ€ๆ–ฐไปท๏ผ‰
+vol | int | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+amount | int | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+num | int | Y | ๅผ€็›˜ไปฅๆฅๆˆไบค็ฌ”ๆ•ฐ
+ask_volume1 | int | N | ๅง”ๆ‰˜ๅ–็›˜๏ผˆ่‚ก๏ผ‰
+bid_volume1 | int | N | ๅง”ๆ‰˜ไนฐ็›˜๏ผˆ่‚ก๏ผ‰
+trade_time | str | N | ไบคๆ˜“ๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไปŠๆ—ฅๆ‰€ๆœ‰ๆทฑๅธ‚ETFๅฎžๆ—ถๆ—ฅ็บฟๅ’Œๆˆไบค็ฌ”ๆ•ฐ
+df = pro.rt_etf_k(ts_code='1*.SZ')
+
+#่Žทๅ–ไปŠๆ—ฅๆฒชๅธ‚ๆ‰€ๆœ‰ETFๅฎžๆ—ถๆ—ฅ็บฟๅ’Œๆˆไบค็ฌ”ๆ•ฐ
+df = pro.rt_etf_k(ts_code='5*.SH', topic='HQ_FND_TICK')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name pre_close high open low close vol amount num
+ 0 520860.SH ๆธฏ่‚ก้€š็ง‘ 1.024 1.054 1.048 1.041 1.048 15071600 15780985 307
+ 1 515320.SH ็”ตๅญ50 1.173 1.211 1.184 1.184 1.206 1830600 2191339 98
+ 2 511600.SH ่ดงๅธETF 100.008 100.003 100.002 99.999 100.000 12022 1202204 28
+ 3 501075.SH ็ง‘ๅˆ›ไธป้ข˜ 2.350 2.400 2.357 2.357 2.400 4200 10040 11
+ 4 589990.SH ็ง‘ๅˆ›ๆฟ็ปผ 1.282 1.311 1.280 1.280 1.305 4178600 5413728 147
+ .. ... ... ... ... ... ... ... ... ... ...
+ 933 516590.SH ็”ตๅŠจๆฑฝ่ฝฆ 1.244 1.277 1.252 1.252 1.270 1380800 1748398 79
+ 934 502048.SH 50LOF 1.224 1.238 1.235 1.214 1.218 3200 3908 5
+ 935 515850.SH ่ฏๅˆธ้พ™ๅคด 1.519 1.538 1.523 1.520 1.523 11460000 17484157 688
+ 936 515790.SH ๅ…‰ไผETF 0.912 0.929 0.919 0.910 0.923 411566128 379094370 14939
+ 937 516190.SH ๆ–‡ๅจฑETF 1.137 1.154 1.151 1.146 1.151 1031700 1186303 87
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..926ccc4ab
--- /dev/null
+++ "b/agent/src/skills/tushare/references/ETF\344\270\223\351\242\230/ETF\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,75 @@
+## ETFๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšfund_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ETF่กŒๆƒ…ๆฏๆ—ฅๆ”ถ็›˜ๅŽๆˆไบคๆ•ฐๆฎ๏ผŒๅކๅฒ่ถ…่ฟ‡10ๅนด
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000่กŒ่ฎฐๅฝ•๏ผŒๅฏไปฅๆ นๆฎETFไปฃ็ ๅ’Œๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–ๅކๅฒ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš้œ€่ฆ่‡ณๅฐ‘5000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†้ข‘ๆฌกๆ›ด้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท(ๅ…ƒ)
+high | float | Y | ๆœ€้ซ˜ไปท(ๅ…ƒ)
+low | float | Y | ๆœ€ไฝŽไปท(ๅ…ƒ)
+close | float | Y | ๆ”ถ็›˜ไปท(ๅ…ƒ)
+pre_close | float | Y | ๆ˜จๆ”ถ็›˜ไปท(ๅ…ƒ)
+change | float | Y | ๆถจ่ทŒ้ข(ๅ…ƒ)
+pct_chg | float | Y | ๆถจ่ทŒๅน…(%)
+vol | float | Y | ๆˆไบค้‡(ๆ‰‹)
+amount | float | Y | ๆˆไบค้ข(ๅƒๅ…ƒ)
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–โ€ๆฒชๆทฑ300ETFๅŽๅคโ€ETF2025ๅนดไปฅๆฅ็š„่กŒๆƒ…๏ผŒๅนถ้€š่ฟ‡fieldsๅ‚ๆ•ฐๆŒ‡ๅฎš่พ“ๅ‡บไบ†้ƒจๅˆ†ๅญ—ๆฎต
+df = pro.fund_daily(ts_code='510330.SH', start_date='20250101', end_date='20250618', fields='trade_date,open,high,low,close,vol,amount')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date open high low close vol amount
+ 0 20250618 4.008 4.024 3.996 4.017 382896.00 153574.446
+ 1 20250617 4.015 4.022 4.000 4.014 440272.04 176617.125
+ 2 20250616 4.000 4.018 3.996 4.015 423526.00 169788.251
+ 3 20250613 4.023 4.028 3.992 4.004 1216787.53 487632.318
+ 4 20250612 4.023 4.039 4.005 4.032 574727.00 231356.321
+ .. ... ... ... ... ... ... ...
+ 104 20250108 3.971 3.992 3.908 3.963 3200416.00 1267465.456
+ 105 20250107 3.939 3.974 3.929 3.973 2239739.00 885818.954
+ 106 20250106 3.950 3.964 3.917 3.943 1583794.00 624004.760
+ 107 20250103 4.002 4.013 3.944 3.963 2025111.00 805573.289
+ 108 20250102 4.110 4.117 3.973 4.001 1768592.00 714820.885
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\200\272\345\210\270\345\233\236\350\264\255\346\227\245\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\200\272\345\210\270\345\233\236\350\264\255\346\227\245\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..6fb4b0050
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\200\272\345\210\270\345\233\236\350\264\255\346\227\245\350\241\214\346\203\205.md"
@@ -0,0 +1,106 @@
+## ๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšrepo_daily
+ๆ่ฟฐ๏ผšๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ็ดฏ็งฏ2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+repo_maturity | str | Y | ๆœŸ้™ๅ“็ง
+pre_close | float | Y | ๅ‰ๆ”ถ็›˜(%)
+open | float | Y | ๅผ€็›˜ไปท(%)
+high | float | Y | ๆœ€้ซ˜ไปท(%)
+low | float | Y | ๆœ€ไฝŽไปท(%)
+close | float | Y | ๆ”ถ็›˜ไปท(%)
+weight | float | Y | ๅŠ ๆƒไปท(%)
+weight_r | float | Y | ๅŠ ๆƒไปท(ๅˆฉ็އๅ€บ)(%)
+amount | float | Y | ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+num | int | Y | ๆˆไบค็ฌ”ๆ•ฐ(็ฌ”)
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2020ๅนด8ๆœˆ4ๆ—ฅๅ€บๅˆธๅ›ž่ดญๆ—ฅ่กŒๆƒ…
+df = pro.repo_daily(trade_date='20200804')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date repo_maturity weight amount
+ 0 131800.SZ 20200804 R-003 2.02150000 42783.000000
+ 1 131801.SZ 20200804 R-007 2.23240000 618050.300000
+ 2 131802.SZ 20200804 R-014 2.24820000 59506.300000
+ 3 131803.SZ 20200804 R-028 2.35080000 21210.700000
+ 4 131805.SZ 20200804 R-091 2.35550000 2566.000000
+ 5 131806.SZ 20200804 R-182 2.10840000 113.200000
+ 6 131809.SZ 20200804 R-004 2.06990000 24218.900000
+ 7 131810.SZ 20200804 R-001 2.03600000 10748048.000000
+ 8 131811.SZ 20200804 R-002 2.01270000 39459.200000
+ 9 131981.SZ 20200804 RR-001 6.70000000 1000.000000
+ 10 131982.SZ 20200804 RR-007 6.05000000 22800.000000
+ 11 131983.SZ 20200804 RR-014 5.82000000 18500.000000
+ 12 131985.SZ 20200804 RR-1M 7.00000000 4900.000000
+ 13 204001.SH 20200804 GC001 2.10000000 85393260.000000
+ 14 204002.SH 20200804 GC002 2.09200000 488300.000000
+ 15 204003.SH 20200804 GC003 2.11900000 1260240.000000
+ 16 204004.SH 20200804 GC004 2.16500000 352040.000000
+ 17 204007.SH 20200804 GC007 2.21200000 13110650.000000
+ 18 204014.SH 20200804 GC014 2.25900000 2318820.000000
+ 19 204028.SH 20200804 GC028 2.32100000 1204850.000000
+ 20 204091.SH 20200804 GC091 2.41500000 16330.000000
+ 21 204182.SH 20200804 GC182 2.25800000 80.000000
+ 22 206001.SH 20200804 R001 4.00300000 66518.000000
+ 23 206007.SH 20200804 R007 4.36600000 530473.000000
+ 24 206014.SH 20200804 R014 5.16900000 344245.000000
+ 25 206021.SH 20200804 R021 5.97600000 17976.000000
+ 26 206030.SH 20200804 R1M 5.33200000 56671.000000
+ 27 206090.SH 20200804 R3M 7.59900000 9285.000000
+ 28 207007.SH 20200804 TPR007 2.29900000 37500.000000
+ 29 DR001.IB 20200804 DR001 1.90740000 196463895.000000
+ 30 DR007.IB 20200804 DR007 2.11440000 8751142.000000
+ 31 DR014.IB 20200804 DR014 1.99320000 2810816.000000
+ 32 DR021.IB 20200804 DR021 2.08610000 1800794.000000
+ 33 DR1M.IB 20200804 DR1M 2.02160000 239369.000000
+ 34 DR3M.IB 20200804 DR3M 2.58500000 49956.000000
+ 35 DR6M.IB 20200804 DR6M 2.60000000 10000.000000
+ 36 OR001.IB 20200804 OR001 1.91850000 2677840.000000
+ 37 OR007.IB 20200804 OR007 2.05950000 358750.000000
+ 38 OR014.IB 20200804 OR014 2.41020000 129650.000000
+ 39 OR021.IB 20200804 OR021 1.76630000 42000.000000
+ 40 OR1M.IB 20200804 OR1M 2.36910000 34000.000000
+ 41 R001.IB 20200804 R001 1.96000000 350750823.000000
+ 42 R007.IB 20200804 R007 2.17850000 42502804.000000
+ 43 R014.IB 20200804 R014 2.24390000 8123663.000000
+ 44 R021.IB 20200804 R021 1.97400000 6072093.000000
+ 45 R1M.IB 20200804 R1M 2.44950000 1163185.000000
+ 46 R2M.IB 20200804 R2M 3.91140000 37170.000000
+ 47 R3M.IB 20200804 R3M 2.92950000 88436.000000
+ 48 R4M.IB 20200804 R4M 6.50000000 1750.000000
+ 49 R6M.IB 20200804 R6M 2.60000000 10000.000000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\205\250\347\220\203\350\264\242\347\273\217\344\272\213\344\273\266.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\205\250\347\220\203\350\264\242\347\273\217\344\272\213\344\273\266.md"
new file mode 100644
index 000000000..06e881fa6
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\205\250\347\220\203\350\264\242\347\273\217\344\272\213\344\273\266.md"
@@ -0,0 +1,100 @@
+## ่ดข็ปๆ—ฅๅކ
+----
+
+ๆŽฅๅฃ๏ผšeco_cal
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จ็ƒ่ดข็ปๆ—ฅๅކใ€ๅŒ…ๆ‹ฌ็ปๆตŽไบ‹ไปถๆ•ฐๆฎๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่Žทๅ–100่กŒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๅฏ่ฐƒๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+currency | str | N | ่ดงๅธไปฃ็ 
+country | str | N | ๅ›ฝๅฎถ๏ผˆๆฏ”ๅฆ‚๏ผšไธญๅ›ฝใ€็พŽๅ›ฝ๏ผ‰
+event | str | N | ไบ‹ไปถ ๏ผˆๆ”ฏๆŒๆจก็ณŠๅŒน้…๏ผš \*้žๅ†œ\*๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+time | str | Y | ๆ—ถ้—ด
+currency | str | Y | ่ดงๅธไปฃ็ 
+country | str | Y | ๅ›ฝๅฎถ
+event | str | Y | ็ปๆตŽไบ‹ไปถ
+value | str | Y | ไปŠๅ€ผ
+pre_value | str | Y | ๅ‰ๅ€ผ
+fore_value | str | Y | ้ข„ๆต‹ๅ€ผ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๆ—ฅๆœŸๅ…จ็ƒ็ปๆตŽๆ—ฅๅކ
+df = pro.eco_cal(date='20200403')
+
+
+#่Žทๅ–ไธญๅ›ฝ็ปๆตŽไบ‹ไปถ
+df = pro.eco_cal(country='ไธญๅ›ฝ')
+
+#่Žทๅ–็พŽๅ›ฝ้žๅ†œๆ•ฐๆฎ
+df = pro.eco_cal(event='็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œ*', fields='date,time,country,event,value,pre_value,fore_value')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date time country event value pre_value fore_value
+ 0 20200410 09:30 ไธญๅ›ฝ ไธญๅ›ฝPPIๅนด็އ(%)(ๅนดๅบฆ)(ไธ‰ๆœˆ) -0.4% -1.1%
+ 1 20200410 09:30 ไธญๅ›ฝ ไธญๅ›ฝCPIๆœˆ็އ(%)(ๆœˆๅบฆ)(ไธ‰ๆœˆ) 0.8% -0.7%
+ 2 20200410 09:30 ไธญๅ›ฝ ไธญๅ›ฝCPIๅนด็އ(%)(ๅนดๅบฆ)(ไธ‰ๆœˆ) 5.2% 4.9%
+ 3 20200407 15:00 ไธญๅ›ฝ ไธญๅ›ฝๅค–ๆฑ‡ๅ‚จๅค‡(็พŽๅ…ƒ) 3.107T
+ 4 20200403 09:45 ไธญๅ›ฝ ไธญๅ›ฝ่ดขๆ–ฐๆœๅŠกไธšPMI(ไธ‰ๆœˆ) 43.0 26.5
+ .. ... ... ... ... ... ... ...
+ 95 20200229 09:00 ไธญๅ›ฝ ไธญๅ›ฝๅฎ˜ๆ–น้žๅˆถ้€ ไธšPMI(ไบŒๆœˆ) 29.6 54.1
+ 96 20200229 09:00 ไธญๅ›ฝ ไธญๅ›ฝๅฎ˜ๆ–นๅˆถ้€ ไธšPMI(ไบŒๆœˆ) 35.7 50.0 46.0
+ 97 20200229 09:00 ไธญๅ›ฝ ไธญๅ›ฝๅฎ˜ๆ–น็ปผๅˆPMI(ไบŒๆœˆ) 28.9 53.0
+ 98 20200308 00:17 ไธญๅ›ฝ ไธญๅ›ฝ่ดธๆ˜“ๅธ(็พŽๅ…ƒ)(ไบŒๆœˆ) 47.21B 12.75B
+ 99 20200308 00:17 ไธญๅ›ฝ ไธญๅ›ฝ่ฟ›ๅฃๅนด็އ-็พŽๅ…ƒ่ฎกไปท(%)(ๅนดๅบฆ)(ไบŒๆœˆ) 16.5% -9.0%
+
+
+<br>
+<br>
+
+็พŽๅ›ฝ้žๅ†œๆ•ฐๆฎ๏ผš
+
+
+ date time country event value pre_value fore_value
+ 0 20200403 20:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไธ‰ๆœˆ) -701K 275K -100K
+ 1 20200403 20:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไธ‰ๆœˆ) 273K -100K
+ 2 20200403 20:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไธ‰ๆœˆ) 273K -124K
+ 3 20200403 20:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไธ‰ๆœˆ) 273K -100K
+ 4 20200403 20:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไธ‰ๆœˆ) 273K -123K
+ .. ... ... ... ... ... ... ...
+ 95 20190308 21:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไบŒๆœˆ) 304K 181K
+ 96 20190308 21:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไบŒๆœˆ) 304K 180K
+ 97 20190308 21:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไบŒๆœˆ) 304K 185K
+ 98 20190308 21:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไบŒๆœˆ) 304K 180K
+ 99 20190308 21:30 ็พŽๅ›ฝ ็พŽๅ›ฝๅญฃ่ฐƒๅŽ้žๅ†œๅฐฑไธšไบบๅฃๅ˜ๅŠจ(ไบŒๆœˆ) 304K 185K
+
+
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\217\221\350\241\214.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\217\221\350\241\214.md"
new file mode 100644
index 000000000..943340573
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\217\221\350\241\214.md"
@@ -0,0 +1,100 @@
+## ๅฏ่ฝฌๅ€บๅ‘่กŒ
+----
+
+ๆŽฅๅฃ๏ผšcb_issue
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บๅ‘่กŒๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+ann_date | str | N | ๅ‘่กŒๅ…ฌๅ‘Šๆ—ฅ
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+ann_date | str | Y | ๅ‘่กŒๅ…ฌๅ‘Šๆ—ฅ
+res_ann_date | str | Y | ๅ‘่กŒ็ป“ๆžœๅ…ฌๅ‘Šๆ—ฅ
+plan_issue_size | float | Y | ่ฎกๅˆ’ๅ‘่กŒๆ€ป้ข๏ผˆๅ…ƒ๏ผ‰
+issue_size | float | Y | ๅ‘่กŒๆ€ป้ข๏ผˆๅ…ƒ๏ผ‰
+issue_price | float | Y | ๅ‘่กŒไปทๆ ผ
+issue_type | str | Y | ๅ‘่กŒๆ–นๅผ
+issue_cost | float | N | ๅ‘่กŒ่ดน็”จ๏ผˆๅ…ƒ๏ผ‰
+onl_code | str | Y | ็ฝ‘ไธŠ็”ณ่ดญไปฃ็ 
+onl_name | str | Y | ็ฝ‘ไธŠ็”ณ่ดญ็ฎ€็งฐ
+onl_date | str | Y | ็ฝ‘ไธŠๅ‘่กŒๆ—ฅๆœŸ
+onl_size | float | Y | ็ฝ‘ไธŠๅ‘่กŒๆ€ป้ข๏ผˆๅผ ๏ผ‰
+onl_pch_vol | float | Y | ็ฝ‘ไธŠๅ‘่กŒๆœ‰ๆ•ˆ็”ณ่ดญๆ•ฐ้‡๏ผˆๅผ ๏ผ‰
+onl_pch_num | int | Y | ็ฝ‘ไธŠๅ‘่กŒๆœ‰ๆ•ˆ็”ณ่ดญๆˆทๆ•ฐ
+onl_pch_excess | float | Y | ็ฝ‘ไธŠๅ‘่กŒ่ถ…้ข่ฎค่ดญๅ€ๆ•ฐ
+onl_winning_rate | float | N | ็ฝ‘ไธŠๅ‘่กŒไธญ็ญพ็އ๏ผˆ%๏ผ‰
+shd_ration_code | str | Y | ่€่‚กไธœ้…ๅ”ฎไปฃ็ 
+shd_ration_name | str | Y | ่€่‚กไธœ้…ๅ”ฎ็ฎ€็งฐ
+shd_ration_date | str | Y | ่€่‚กไธœ้…ๅ”ฎๆ—ฅ
+shd_ration_record_date | str | Y | ่€่‚กไธœ้…ๅ”ฎ่‚กๆƒ็™ป่ฎฐๆ—ฅ
+shd_ration_pay_date | str | Y | ่€่‚กไธœ้…ๅ”ฎ็ผดๆฌพๆ—ฅ
+shd_ration_price | float | Y | ่€่‚กไธœ้…ๅ”ฎไปทๆ ผ
+shd_ration_ratio | float | Y | ่€่‚กไธœ้…ๅ”ฎๆฏ”ไพ‹
+shd_ration_size | float | Y | ่€่‚กไธœ้…ๅ”ฎๆ•ฐ้‡๏ผˆๅผ ๏ผ‰
+shd_ration_vol | float | N | ่€่‚กไธœ้…ๅ”ฎๆœ‰ๆ•ˆ็”ณ่ดญๆ•ฐ้‡๏ผˆๅผ ๏ผ‰
+shd_ration_num | int | N | ่€่‚กไธœ้…ๅ”ฎๆœ‰ๆ•ˆ็”ณ่ดญๆˆทๆ•ฐ
+shd_ration_excess | float | N | ่€่‚กไธœ้…ๅ”ฎ่ถ…้ข่ฎค่ดญๅ€ๆ•ฐ
+offl_size | float | Y | ็ฝ‘ไธ‹ๅ‘่กŒๆ€ป้ข๏ผˆๅผ ๏ผ‰
+offl_deposit | float | N | ็ฝ‘ไธ‹ๅ‘่กŒๅฎš้‡‘ๆฏ”ไพ‹๏ผˆ%๏ผ‰
+offl_pch_vol | float | N | ็ฝ‘ไธ‹ๅ‘่กŒๆœ‰ๆ•ˆ็”ณ่ดญๆ•ฐ้‡๏ผˆๅผ ๏ผ‰
+offl_pch_num | int | N | ็ฝ‘ไธ‹ๅ‘่กŒๆœ‰ๆ•ˆ็”ณ่ดญๆˆทๆ•ฐ
+offl_pch_excess | float | N | ็ฝ‘ไธ‹ๅ‘่กŒ่ถ…้ข่ฎค่ดญๅ€ๆ•ฐ
+offl_winning_rate | float | N | ็ฝ‘ไธ‹ๅ‘่กŒไธญ็ญพ็އ
+lead_underwriter | str | N | ไธปๆ‰ฟ้”€ๅ•†
+lead_underwriter_vol | float | N | ไธปๆ‰ฟ้”€ๅ•†ๅŒ…้”€ๆ•ฐ้‡๏ผˆๅผ ๏ผ‰
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–ๅฏ่ฝฌๅ€บๅ‘่กŒๆ•ฐๆฎ
+df = pro.cb_issue(ann_date='20190612')
+
+
+#่Žทๅ–ๅฏ่ฝฌๅ€บๅ‘่กŒๆ•ฐๆฎ๏ผŒ่‡ชๅฎšไน‰ๅญ—ๆฎต
+df = pro.cb_issue(fields='ts_code,ann_date,issue_size')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date issue_size
+ 0 110072.SH 20200814 33.7000
+ 1 113600.SH 20200811 5.9500
+ 2 113598.SH 20200729 3.3000
+ 3 113038.SH 20200729 50.0000
+ 4 128125.SZ 20200728 4.5000
+ .. ... ... ...
+ 489 100009.SH 20000223 13.5000
+ 490 125302.SZ 19990727 15.0000
+ 491 125301.SZ 19980826 2.0000
+ 492 100001.SH 19980730 1.5000
+ 493 125009.SZ None 5.0000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\237\272\347\241\200\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\237\272\347\241\200\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..2067a5990
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\345\237\272\347\241\200\344\277\241\346\201\257.md"
@@ -0,0 +1,89 @@
+## ๅฏ่ฝฌๅ€บๅŸบๆœฌไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšcb_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บๅŸบๆœฌไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒไฝ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่ฝฌๅ€บไปฃ็ 
+list_date | str | N | ไธŠๅธ‚ๆ—ฅๆœŸ
+exchange | str | N | ไธŠๅธ‚ไบคๆ˜“ๆ‰€
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+bond_full_name | str | Y | ่ฝฌๅ€บๅ็งฐ
+bond_short_name | str | Y | ่ฝฌๅ€บ็ฎ€็งฐ
+cb_code | str | Y | ่ฝฌ่‚ก็”ณๆŠฅไปฃ็ 
+stk_code | str | Y | ๆญฃ่‚กไปฃ็ 
+stk_short_name | str | Y | ๆญฃ่‚ก็ฎ€็งฐ
+maturity | float | Y | ๅ‘่กŒๆœŸ้™๏ผˆๅนด๏ผ‰
+par | float | Y | ้ขๅ€ผ
+issue_price | float | Y | ๅ‘่กŒไปทๆ ผ
+issue_size | float | Y | ๅ‘่กŒๆ€ป้ข๏ผˆๅ…ƒ๏ผ‰
+remain_size | float | Y | ๅ€บๅˆธไฝ™้ข๏ผˆๅ…ƒ๏ผ‰
+value_date | str | Y | ่ตทๆฏๆ—ฅๆœŸ
+maturity_date | str | Y | ๅˆฐๆœŸๆ—ฅๆœŸ
+rate_type | str | Y | ๅˆฉ็އ็ฑปๅž‹
+coupon_rate | float | Y | ็ฅจ้ขๅˆฉ็އ๏ผˆ%๏ผ‰
+add_rate | float | Y | ่กฅๅฟๅˆฉ็އ๏ผˆ%๏ผ‰
+pay_per_year | int | Y | ๅนดไป˜ๆฏๆฌกๆ•ฐ
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+delist_date | str | Y | ๆ‘˜็‰Œๆ—ฅ
+exchange | str | Y | ไธŠๅธ‚ไบคๆ˜“ๆ‰€
+conv_start_date | str | Y | ่ฝฌ่‚ก่ตทๅง‹ๆ—ฅ
+conv_end_date | str | Y | ่ฝฌ่‚กๆˆชๆญขๆ—ฅ
+conv_stop_date | str | Y | ๅœๆญข่ฝฌ่‚กๆ—ฅ(ๆๅ‰ๅˆฐๆœŸ)
+first_conv_price | float | Y | ๅˆๅง‹่ฝฌ่‚กไปท
+conv_price | float | Y | ๆœ€ๆ–ฐ่ฝฌ่‚กไปท
+rate_clause | str | Y | ๅˆฉ็އ่ฏดๆ˜Ž
+put_clause | str | N | ่ตŽๅ›žๆกๆฌพ
+maturity_put_price | str | N | ๅˆฐๆœŸ่ตŽๅ›žไปทๆ ผ(ๅซ็จŽ)
+call_clause | str | N | ๅ›žๅ”ฎๆกๆฌพ
+reset_clause | str | N | ็‰นๅˆซๅ‘ไธ‹ไฟฎๆญฃๆกๆฌพ
+conv_clause | str | N | ่ฝฌ่‚กๆกๆฌพ
+guarantor | str | N | ๆ‹…ไฟไบบ
+guarantee_type | str | N | ๆ‹…ไฟๆ–นๅผ
+issue_rating | str | N | ๅ‘่กŒไฟก็”จ็ญ‰็บง
+newest_rating | str | N | ๆœ€ๆ–ฐไฟก็”จ็ญ‰็บง
+rating_comp | str | N | ๆœ€ๆ–ฐ่ฏ„็บงๆœบๆž„
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api(your token)
+#่Žทๅ–ๅฏ่ฝฌๅ€บๅŸบ็ก€ไฟกๆฏๅˆ—่กจ
+df = pro.cb_basic(fields="ts_code,bond_short_name,stk_code,stk_short_name,list_date,delist_date")
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code bond_short_name stk_code stk_short_name list_date delist_date
+ 0 125002.SZ ไธ‡็ง‘่ฝฌๅ€บ 000002.SZ ไธ‡็ง‘๏ผก 2002-06-28 2004-04-30
+ 1 125009.SZ ๅฎๅฎ‰่ฝฌๅˆธ 000009.SZ ไธญๅ›ฝๅฎๅฎ‰ 1993-02-10 1996-01-01
+ 2 125069.SZ ไพจๅŸŽ่ฝฌๅ€บ 000069.SZ ๅŽไพจๅŸŽ๏ผก 2004-01-16 2005-04-29
+ 3 125301.SZ ไธ็ปธ่ฝฌๅ€บ 000301.SZ ไธœๆ–น็››่™น 1998-09-15 2003-08-28
+ 4 126301.SZ ไธ็ปธ่ฝฌ2 000301.SZ ไธœๆ–น็››่™น 2002-09-24 2006-09-18
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
new file mode 100644
index 000000000..15081c444
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
@@ -0,0 +1,143 @@
+## ๅฏ่ฝฌๅ€บๆŠ€ๆœฏๅ› ๅญ(ไธ“ไธš็‰ˆ)
+----
+
+ๆŽฅๅฃ๏ผšcb_factor_pro
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๅฏ่ฝฌๅ€บๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒ_qfq่กจ็คบๅ‰ๅคๆƒ _hfq่กจ็คบๅŽๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ
+้™้‡๏ผšๅ•ๆฌก่ฐƒๅ–ๆœ€ๅคš่ฟ”ๅ›ž10000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚30ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅฏ่ฝฌๅ€บไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน… ๏ผˆๆœชๅคๆƒ๏ผŒๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จย ้€š็”จ่กŒๆƒ…ๆŽฅๅฃย ๏ผ‰
+vol | float | Y | ๆˆไบค้‡ ๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+asi_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+atr_bfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+bbi_bfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=20
+bias1_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+boll_lower_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+brar_ar_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+cci_bfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cr_bfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+dfma_dif_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dmi_adx_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+downdays | float | Y | ่ฟž่ทŒๅคฉๆ•ฐ
+updays | float | Y | ่ฟžๆถจๅคฉๆ•ฐ
+dpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+ema_bfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_bfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_bfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_bfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_bfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_bfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_bfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+emv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+expma_12_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+kdj_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+ktn_down_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+lowdays | float | Y | LOWRANGE(LOW)่กจ็คบๅฝ“ๅ‰ๆœ€ไฝŽไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€ไฝŽไปท็š„ๆœ€ๅฐๅ€ผ
+topdays | float | Y | TOPRANGE(HIGH)่กจ็คบๅฝ“ๅ‰ๆœ€้ซ˜ไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€้ซ˜ไปท็š„ๆœ€ๅคงๅ€ผ
+ma_bfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_bfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_bfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_bfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_bfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_bfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_bfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+macd_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mfi_bfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mtm_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+obv_bfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+psy_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+rsi_bfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_bfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_bfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+taq_down_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+trix_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+vr_bfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+wr_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+xsii_td1_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–้นค21่ฝฌๅ€บ113632.SHๆ‰€ไปฅๆœ‰ๅކๅฒๅ› ๅญๆ•ฐๆฎ
+df = pro.cb_factor_pro(ts_code=113632.SH')
+
+#่Žทๅ–ไบคๆ˜“ๆ—ฅๆœŸไธบ20250724ๅฝ“ๅคฉๆ‰€ๆœ‰ๅฏ่ฝฌๅ€บ็š„ๅ› ๅญๆ•ฐๆฎ
+df = pro.hk_income(trade_date='20250724')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date open ... xsii_td2_bfq xsii_td3_bfq xsii_td4_bfq
+ 0 113632.SH 20250724 129.050 ... 125.93711 133.15621 115.73390
+ 1 113632.SH 20250723 129.323 ... 125.15884 132.97290 115.57458
+ 2 113632.SH 20250722 128.783 ... 124.46147 132.83027 115.45061
+ 3 113632.SH 20250721 126.404 ... 123.75651 132.68214 115.32186
+ 4 113632.SH 20250718 126.229 ... 123.16743 132.56631 115.22119
+ .. ... ... ... ... ... ... ...
+ 873 113632.SH 20211215 130.950 ... 128.94497 139.66710 121.39290
+ 874 113632.SH 20211214 131.010 ... NaN 140.18070 121.83930
+ 875 113632.SH 20211213 133.890 ... NaN 141.11160 122.64840
+ 876 113632.SH 20211210 129.990 ... NaN 143.65820 124.86180
+ 877 113632.SH 20211209 127.000 ... NaN 140.12720 121.79280
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\347\245\250\351\235\242\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\347\245\250\351\235\242\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..27e01d692
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\347\245\250\351\235\242\345\210\251\347\216\207.md"
@@ -0,0 +1,58 @@
+## ๅฏ่ฝฌๅ€บ็ฅจ้ขๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšcb_rate
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บ็ฅจ้ขๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘5000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅ€ผ่พ“ๅ…ฅ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+rate_freq | int | N | ไป˜ๆฏ้ข‘็އ(ๆฌก/ๅนด)
+rate_start_date | str | N | ไป˜ๆฏๅผ€ๅง‹ๆ—ฅๆœŸ
+rate_end_date | str | N | ไป˜ๆฏ็ป“ๆŸๆ—ฅๆœŸ
+coupon_rate | float | N | ็ฅจ้ขๅˆฉ็އ(%)
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api(your token)
+#่Žทๅ–ๅฏ่ฝฌๅ€บๅŸบ็ก€ไฟกๆฏๅˆ—่กจ
+df = pro.cb_rate(ts_code='123046.SZ,127064.SZ',fields="ts_code,rate_freq,rate_start_date,rate_end_date,coupon_rate")
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code rate_freq rate_start_date rate_end_date coupon_rate
+ 0 123046.SZ 1 20200319 20210318 0.500000
+ 1 123046.SZ 1 20210319 20220318 0.700000
+ 2 123046.SZ 1 20220319 20230318 1.000000
+ 3 123046.SZ 1 20230319 20240318 1.500000
+ 4 123046.SZ 1 20240319 20250318 2.500000
+ 5 123046.SZ 1 20250319 20260318 3.000000
+ 6 127064.SZ 1 20220519 20230518 0.200000
+ 7 127064.SZ 1 20230519 20240518 0.400000
+ 8 127064.SZ 1 20240519 20250518 0.600000
+ 9 127064.SZ 1 20250519 20260518 1.500000
+ 10 127064.SZ 1 20260519 20270518 1.800000
+ 11 127064.SZ 1 20270519 20280518 2.000000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..642996d05
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\241\214\346\203\205.md"
@@ -0,0 +1,111 @@
+## ๅฏ่ฝฌๅ€บ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšcb_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+pre_close | float | Y | ๆ˜จๆ”ถ็›˜ไปท(ๅ…ƒ)
+open | float | Y | ๅผ€็›˜ไปท(ๅ…ƒ)
+high | float | Y | ๆœ€้ซ˜ไปท(ๅ…ƒ)
+low | float | Y | ๆœ€ไฝŽไปท(ๅ…ƒ)
+close | float | Y | ๆ”ถ็›˜ไปท(ๅ…ƒ)
+change | float | Y | ๆถจ่ทŒ(ๅ…ƒ)
+pct_chg | float | Y | ๆถจ่ทŒๅน…(%)
+vol | float | Y | ๆˆไบค้‡(ๆ‰‹)
+amount | float | Y | ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+bond_value | float | N | ็บฏๅ€บไปทๅ€ผ
+bond_over_rate | float | N | ็บฏๅ€บๆบขไปท็އ(%)
+cb_value | float | N | ่ฝฌ่‚กไปทๅ€ผ
+cb_over_rate | float | N | ่ฝฌ่‚กๆบขไปท็އ(%)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–ๅฏ่ฝฌๅ€บ่กŒๆƒ…
+df = pro.cb_daily(trade_date='20190719', fields='ts_code,trade_date, pre_close,open,high,low,close')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date pre_close open high low close \
+ 0 110030.SH 20190719 104.700 104.710 104.960 104.540 104.660
+ 1 113008.SH 20190719 112.600 113.390 113.600 112.800 113.200
+ 2 110031.SH 20190719 107.500 107.500 107.940 107.380 107.520
+ 3 123001.SZ 20190719 114.300 115.500 120.780 114.884 118.879
+ 4 110033.SH 20190719 111.910 111.640 112.500 111.640 112.200
+ 5 110034.SH 20190719 102.360 102.230 102.500 102.230 102.320
+ 6 113009.SH 20190719 107.500 108.000 108.200 107.790 107.800
+ 7 128010.SZ 20190719 100.900 100.900 101.300 100.897 101.000
+ 8 128012.SZ 20190719 97.021 97.013 97.200 97.007 97.029
+ 9 127003.SZ 20190719 101.850 101.850 102.896 101.850 102.399
+ 10 128013.SZ 20190719 96.500 96.307 96.647 96.306 96.500
+ 11 113011.SH 20190719 109.680 109.780 110.990 109.780 110.530
+ 12 113012.SH 20190719 101.330 101.710 103.000 101.590 101.810
+ 13 128014.SZ 20190719 97.000 97.498 97.498 97.103 97.158
+ 14 127004.SZ 20190719 92.252 92.256 92.450 92.256 92.262
+ 15 128015.SZ 20190719 92.799 92.799 93.060 92.790 92.920
+ 16 113013.SH 20190719 113.840 113.860 114.770 113.860 114.060
+ 17 128016.SZ 20190719 114.000 114.125 114.742 112.021 113.800
+ 18 113014.SH 20190719 96.910 96.790 97.230 96.780 96.880
+ 19 128017.SZ 20190719 109.501 109.501 111.880 109.011 109.501
+ 20 113015.SH 20190719 130.070 131.500 132.800 130.000 131.250
+
+
+ change pct_chg vol amount
+ 0 -0.040 -0.0382 3576.0 374.1486
+ 1 0.600 0.5329 5347.0 605.9335
+ 2 0.020 0.0186 16.0 1.7213
+ 3 4.579 4.0061 85105.8 10134.7401
+ 4 0.290 0.2591 5453.0 611.6870
+ 5 -0.040 -0.0391 3330.0 340.9462
+ 6 0.300 0.2791 9004.0 972.8459
+ 7 0.100 0.0991 2037.3 205.7750
+ 8 0.008 0.0082 4909.5 476.4216
+ 9 0.549 0.5390 3961.0 405.5685
+ 10 0.000 0.0000 6175.4 596.0637
+ 11 0.850 0.7750 140352.0 15524.5109
+ 12 0.480 0.4737 2005.0 204.9667
+ 13 0.158 0.1629 174.0 16.9261
+ 14 0.010 0.0108 3853.0 355.7765
+ 15 0.121 0.1304 9438.1 877.6806
+ 16 0.220 0.1933 19904.0 2278.7127
+ 17 -0.200 -0.1754 21462.9 2434.8231
+ 18 -0.030 -0.0310 1750.0 169.4889
+ 19 0.000 0.0000 364.2 40.3436
+ 20 1.180 0.9072 30730.0 4047.7157
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\265\216\345\233\236\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\265\216\345\233\236\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..d44708ba5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\265\216\345\233\236\344\277\241\346\201\257.md"
@@ -0,0 +1,63 @@
+## ๅฏ่ฝฌๅ€บ่ตŽๅ›žไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšcb_call๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บๅˆฐๆœŸ่ตŽๅ›žใ€ๅผบๅˆถ่ตŽๅ›ž็ญ‰ไฟกๆฏใ€‚ๆ•ฐๆฎๆฅๆบไบŽๅ…ฌๅผ€ๆŠซ้œฒๆธ ้“๏ผŒไพ›ไธชไบบๅ’Œๆœบๆž„็ ”็ฉถไฝฟ็”จ๏ผŒ่ฏทไธ่ฆ็”จไบŽๆ•ฐๆฎๅ•†ไธš็›ฎ็š„ใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆœฌๆŽฅๅฃ้œ€5000็งฏๅˆ†ใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่ฝฌๅ€บไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅ€ผ่พ“ๅ…ฅ
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+call_type | str | Y | ่ตŽๅ›ž็ฑปๅž‹๏ผšๅˆฐ่ตŽใ€ๅผบ่ตŽ
+is_call | str | Y | ๆ˜ฏๅฆ่ตŽๅ›ž๏ผšๅทฒๆปก่ถณๅผบ่ตŽๆกไปถใ€ๅ…ฌๅ‘Šๆ็คบๅผบ่ตŽใ€ๅ…ฌๅ‘Šๅฎžๆ–ฝๅผบ่ตŽใ€ๅ…ฌๅ‘ŠๅˆฐๆœŸ่ตŽๅ›žใ€ๅ…ฌๅ‘Šไธๅผบ่ตŽ
+ann_date | str | Y | ๅ…ฌๅ‘Š/ๆ็คบๆ—ฅๆœŸ
+call_date | str | Y | ่ตŽๅ›žๆ—ฅๆœŸ
+call_price | float | Y | ่ตŽๅ›žไปทๆ ผ(ๅซ็จŽ๏ผŒๅ…ƒ/ๅผ )
+call_price_tax | float | Y | ่ตŽๅ›žไปทๆ ผ(ๆ‰ฃ็จŽ๏ผŒๅ…ƒ/ๅผ )
+call_vol | float | Y | ่ตŽๅ›žๅ€บๅˆธๆ•ฐ้‡(ๅผ )
+call_amount | float | Y | ่ตŽๅ›ž้‡‘้ข(ไธ‡ๅ…ƒ)
+payment_date | str | Y | ่กŒๆƒๅŽๆฌพ้กนๅˆฐ่ดฆๆ—ฅ
+call_reg_date | str | Y | ่ตŽๅ›ž็™ป่ฎฐๆ—ฅ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+#่Žทๅ–ๅฏ่ฝฌๅ€บ่กŒๆƒ…
+df = pro.cb_call(fields='ts_code,call_type,is_call,ann_date,call_date,call_price')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code call_type is_call ann_date call_date call_price
+ 0 123069.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šไธๅผบ่ตŽ 20210821 None None
+ 1 113621.SH ๅผบ่ตŽ ๅ…ฌๅ‘Šไธๅผบ่ตŽ 20210821 None None
+ 2 113528.SH ๅผบ่ตŽ ๅ…ฌๅ‘Šไธๅผบ่ตŽ 20210821 None None
+ 3 113012.SH ๅผบ่ตŽ ๅ…ฌๅ‘Šๅผบ่ตŽ 20210818 20210903 100.6700
+ 4 128113.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šไธๅผบ่ตŽ 20210818 None None
+ .. ... ... ... ... ... ...
+ 466 125069.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šๅผบ่ตŽ 20050429 20050422 101.8000
+ 467 125630.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šไธๅผบ่ตŽ 20040624 None None
+ 468 100009.SH ๅผบ่ตŽ ๅ…ฌๅ‘Šๅผบ่ตŽ 20040511 20040423 100.1300
+ 469 125002.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šๅผบ่ตŽ 20040430 20040423 101.5000
+ 470 125629.SZ ๅผบ่ตŽ ๅ…ฌๅ‘Šๅผบ่ตŽ 20040414 20040406 105.0000
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\344\273\267\345\217\230\345\212\250.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\344\273\267\345\217\230\345\212\250.md"
new file mode 100644
index 000000000..a4dc36b58
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\344\273\267\345\217\230\345\212\250.md"
@@ -0,0 +1,51 @@
+## ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ
+----
+
+ๆŽฅๅฃ๏ผšcb_price_chg
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=290)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅ€ผ่พ“ๅ…ฅ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ 
+bond_short_name | str | Y | ่ฝฌๅ€บ็ฎ€็งฐ
+publish_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+change_date | str | Y | ๅ˜ๅŠจๆ—ฅๆœŸ
+convert_price_initial | float | Y | ๅˆๅง‹่ฝฌ่‚กไปทๆ ผ
+convertprice_bef | float | Y | ไฟฎๆญฃๅ‰่ฝฌ่‚กไปทๆ ผ
+convertprice_aft | float | Y | ไฟฎๆญฃๅŽ่ฝฌ่‚กไปทๆ ผ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api(your token)
+#่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚กไปทๅ˜ๅŠจ
+df = pro.cb_price_chg(ts_code="113556.SH,128114.SZ,128110.SZ",fields="ts_code,bond_short_name,change_date,convert_price_initial,convertprice_bef,convertprice_aft")
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code bond_short_name change_date convert_price_initial convertprice_bef convertprice_aft
+ 0 113556.SH ่‡ณ็บฏ่ฝฌๅ€บ 20191220 29.4700 None None
+ 1 113556.SH ่‡ณ็บฏ่ฝฌๅ€บ 20200629 29.4700 29.4700 29.3800
+ 2 128110.SZ ๆฐธๅ…ด่ฝฌๅ€บ 20200609 17.1600 None None
+ 3 128114.SZ ๆญฃ้‚ฆ่ฝฌๅ€บ 20200617 16.0900 None None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\347\273\223\346\236\234.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\347\273\223\346\236\234.md"
new file mode 100644
index 000000000..417334365
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\217\257\350\275\254\345\200\272\350\275\254\350\202\241\347\273\223\346\236\234.md"
@@ -0,0 +1,74 @@
+## ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ
+----
+
+ๆŽฅๅฃ๏ผšcb_share
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒไฝ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่ฝฌๅ€บไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅ€ผ่พ“ๅ…ฅ
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅ€บๅˆธไปฃ็ 
+bond_short_name | str | Y | ๅ€บๅˆธ็ฎ€็งฐ
+publish_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ็ปŸ่ฎกๆˆชๆญขๆ—ฅๆœŸ
+issue_size | float | Y | ๅฏ่ฝฌๅ€บๅ‘่กŒๆ€ป้ข
+convert_price_initial | float | Y | ๅˆๅง‹่ฝฌๆขไปทๆ ผ
+convert_price | float | Y | ๆœฌๆฌก่ฝฌๆขไปทๆ ผ
+convert_val | float | Y | ๆœฌๆฌก่ฝฌ่‚ก้‡‘้ข
+convert_vol | float | Y | ๆœฌๆฌก่ฝฌ่‚กๆ•ฐ้‡
+convert_ratio | float | Y | ๆœฌๆฌก่ฝฌ่‚กๆฏ”ไพ‹
+acc_convert_val | float | Y | ็ดฏ่ฎก่ฝฌ่‚ก้‡‘้ข
+acc_convert_vol | float | Y | ็ดฏ่ฎก่ฝฌ่‚กๆ•ฐ้‡
+acc_convert_ratio | float | Y | ็ดฏ่ฎก่ฝฌ่‚กๆฏ”ไพ‹
+remain_size | float | Y | ๅฏ่ฝฌๅ€บๅ‰ฉไฝ™้‡‘้ข
+total_shares | float | Y | ่ฝฌ่‚กๅŽๆ€ป่‚กๆœฌ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api(your token)
+#่Žทๅ–ๅฏ่ฝฌๅ€บ่ฝฌ่‚ก็ป“ๆžœ
+df = pro.cb_share(ts_code="113001.SH,110027.SH",fields="ts_code,end_date,convert_price,convert_val,convert_ratio,acc_convert_ratio")
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code end_date convert_price convert_val convert_ratio acc_convert_ratio
+ 0 110027.SH 2015-02-16 12.0000 117572928.00 2.939323 99.9126
+ 1 110027.SH 2015-02-13 12.0000 521211288.00 13.030282 96.9733
+ 2 110027.SH 2015-02-12 12.0000 486077580.00 12.151940 83.9430
+ 3 110027.SH 2015-02-11 12.0000 304362204.00 7.609055 71.7910
+ 4 110027.SH 2015-02-10 12.0000 334752476.00 8.368812 64.1820
+ .. ... ... ... ... ... ...
+ 244 113001.SH 2010-12-10 3.7800 5998.86 0.000015 0.0002
+ 245 113001.SH 2010-12-09 3.7800 5998.86 0.000015 0.0002
+ 246 113001.SH 2010-12-06 3.7800 18994.50 0.000047 0.0002
+ 247 113001.SH 2010-12-03 3.7800 12991.86 0.000032 0.0001
+ 248 113001.SH 2010-12-02 3.7800 33982.20 0.000085 0.0001
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277.md"
new file mode 100644
index 000000000..233598241
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277.md"
@@ -0,0 +1,67 @@
+## ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ
+----
+
+ๆŽฅๅฃ๏ผšyc_cb
+ๆ่ฟฐ๏ผš่Žทๅ–ไธญๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ๏ผŒ็›ฎๅ‰ๅฏ่Žทๅ–ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅณๆœŸๅ’ŒๅˆฐๆœŸๆ”ถ็›Š็އๆ›ฒ็บฟๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏๅพช็Žฏๆๅ–
+ๆƒ้™๏ผšๅฑžไบŽๅ•็‹ฌ็š„ๆƒ้™ๆŽฅๅฃ๏ผŒ่ฏทๅœจ็พค้‡Œ่”็ณป็พคไธปๆˆ–็ฎก็†ๅ‘˜
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆ”ถ็›Š็އๆ›ฒ็บฟ็ผ–็ ๏ผš1001.CB-ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ
+curve_type | str | N | ๆ›ฒ็บฟ็ฑปๅž‹๏ผš0-ๅˆฐๆœŸ๏ผŒ1-ๅณๆœŸ
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๆŸฅ่ฏข่ตทๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŸฅ่ฏข็ป“ๆŸๆ—ฅๆœŸ
+curve_term | float | N | ๆœŸ้™
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๆ›ฒ็บฟ็ผ–็ 
+curve_name | str | Y | ๆ›ฒ็บฟๅ็งฐ
+curve_type | str | Y | ๆ›ฒ็บฟ็ฑปๅž‹๏ผš0-ๅˆฐๆœŸ๏ผŒ1-ๅณๆœŸ
+curve_term | float | Y | ๆœŸ้™(ๅนด)
+yield | float | Y | ๆ”ถ็›Š็އ(%)
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+pro = ts.pro_api(your token)
+#่Žทๅ–ไธญๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ
+df = pro.yc_cb(ts_code='1001.CB',curve_type='0',trade_date='20200203')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code curve_name curve_type curve_term yield
+ 0 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 0 0.0000 1.697300
+ 1 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 0 0.0800 1.770000
+ 2 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 0 0.1000 1.770100
+ 3 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 0 0.1700 1.770300
+ 4 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 0 0.2000 1.772300
+ ... ... ... ... ... ... ...
+ 1001 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 1 49.6000 3.774100
+ 1002 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 1 49.7000 3.774700
+ 1003 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 1 49.8000 3.775400
+ 1004 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 1 49.9000 3.776100
+ 1005 20200203 101 ไธญๅ€บๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟ 1 50.0000 3.776800
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223.md"
new file mode 100644
index 000000000..85d9bbe99
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223.md"
@@ -0,0 +1,67 @@
+## ๅ€บๅˆธๅคงๅฎ—ไบคๆ˜“
+----
+
+ๆŽฅๅฃ๏ผšbond_blk
+ๆƒ้™๏ผš็”จๆˆทๆปก5000็งฏๅˆ†ๆœ‰ๆ•ฐๆฎๆƒ้™๏ผŒๅ•ๆฌกๆœ€ๅคง1000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ€บๅˆธๅคงๅฎ—ไบคๆ˜“ๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅ€บๅˆธไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๅ€บๅˆธไปฃ็ 
+name | str | Y | ๅ€บๅˆธๅ็งฐ
+price | float | Y | ๆˆไบคไปท๏ผˆๅ…ƒ๏ผ‰
+vol | float | Y | ็ดฏ่ฎกๆˆไบคๆ•ฐ้‡๏ผˆไธ‡่‚ก/ไธ‡ไปฝ/ไธ‡ๅผ /ไธ‡ๆ‰‹๏ผ‰
+amount | float | Y | ็ดฏ่ฎกๆˆไบค้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.bond_blk(start_date='20210701', end_date='20210930')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ trade_date ts_code name price vol amount
+ 0 20210930 152497.SH 20้ป”่ฅฟๅ— 75.00 35.00 2625.00
+ 1 20210930 152497.SH 20้ป”่ฅฟๅ— 75.00 20.00 1500.00
+ 2 20210930 152497.SH 20้ป”่ฅฟๅ— 75.00 19.20 1440.00
+ 3 20210930 152497.SH 20้ป”่ฅฟๅ— 75.00 18.00 1350.00
+ 4 20210930 152497.SH 20้ป”่ฅฟๅ— 75.00 17.00 1275.00
+ .. ... ... ... ... ... ...
+ 995 20210917 136225.SZ 21ๅฅฅๅˆ›A 99.98 6.50 649.90
+ 996 20210917 133073.SZ 21็ปๅผ€02 99.34 10.00 993.40
+ 997 20210917 133068.SZ 21ไนๆฑŸ01 100.18 50.00 5009.05
+ 998 20210917 133063.SZ 21ๆ–ฐๆฒ‚04 100.56 6.47 650.63
+ 999 20210917 133050.SZ 21ๆฑŸๆปจ01 100.25 50.00 5012.50
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..6f803c10b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\345\244\247\345\256\227\344\272\244\346\230\223\346\230\216\347\273\206.md"
@@ -0,0 +1,67 @@
+## ๅคงๅฎ—ไบคๆ˜“ๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšbond_blk_detail
+ๆƒ้™๏ผš็”จๆˆทๆปก5000็งฏๅˆ†ๆœ‰ๆ•ฐๆฎๆƒ้™๏ผŒๅ•ๆฌกๆœ€ๅคง1000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑไบคๆ˜“ๆ‰€ๅ€บๅˆธๅคงๅฎ—ไบคๆ˜“ๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+
+**ๆณจ๏ผšๆœฌๆŽฅๅฃ็›ฎๅ‰ๅชๆœ‰ๆทฑไบคๆ‰€็š„ๅคงๅฎ—ไบคๆ˜“ๆ˜Ž็ป†๏ผŒไธŠไบคๆ‰€ๆ˜Ž็ป†ๅทฒ็ปๅŒ…ๅซๅœจๅคงๅฎ—ไบคๆ˜“ๆŽฅๅฃ้‡Œ๏ผŒๆœชๅ•็‹ฌ็ฝ—ๅˆ—ใ€‚**
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅ€บๅˆธไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๅ€บๅˆธไปฃ็ 
+name | str | Y | ๅ€บๅˆธๅ็งฐ
+price | float | Y | ๆˆไบคไปท๏ผˆๅ…ƒ๏ผ‰
+vol | float | Y | ๆˆไบคๆ•ฐ้‡๏ผˆไธ‡่‚ก/ไธ‡ไปฝ/ไธ‡ๅผ /ไธ‡ๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_dp | str | Y | ไนฐๆ–น่ฅไธš้ƒจ
+sell_dp | str | Y | ๅ–ๆ–น่ฅไธš้ƒจ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.bond_blk_detail(start_date='20210701', end_date='20210930')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name price vol amount buy_dp sell_dp
+ 0 20210930 149642.SZ 21้•ฟๅŸŽ08 100.07 50.00 5003.50 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ 1 20210930 149642.SZ 21้•ฟๅŸŽ08 100.00 65.00 6500.00 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ 2 20210930 149641.SZ 21้•ฟๅŸŽ07 100.00 100.00 10000.00 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ 3 20210930 149633.SZ 21ๅนฟๅ‘10 99.83 25.00 2495.75 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ 4 20210930 149633.SZ 21ๅนฟๅ‘10 99.82 25.00 2495.50 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ .. ... ... ... ... ... ... ... ...
+ 995 20210924 138246.SZ ไธœ้“02D1 110.17 26.30 2897.47 ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้ป„ๆตฆๅŒบๆน–ๆปจ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 996 20210924 137995.SZ 21ๅณๅขจA3 101.75 15.00 1526.25 ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธดๆฒ‚้‡‘้›€ๅฑฑ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 997 20210924 137995.SZ 21ๅณๅขจA3 101.74 15.00 1526.10 ๆœบๆž„ไธ“็”จ ๆœบๆž„ไธ“็”จ
+ 998 20210924 137995.SZ 21ๅณๅขจA3 101.73 15.00 1525.95 ๆœบๆž„ไธ“็”จ ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฑฑไธœๅˆ†ๅ…ฌๅธ
+ 999 20210924 137942.SZ ็พŽๆปก03ๆฌก 103.61 30.00 3108.30 ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้ป„ๆตฆๅŒบๆน–ๆปจ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\212\245\344\273\267.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\212\245\344\273\267.md"
new file mode 100644
index 000000000..0de0559b6
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\212\245\344\273\267.md"
@@ -0,0 +1,63 @@
+## ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท
+----
+
+ๆŽฅๅฃ๏ผšbc_otcqt
+ๆ่ฟฐ๏ผšๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ่ฐƒๅ–๏ผŒ2000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+ts_code | str | N | TSไปฃ็ 
+bank | str | N | ๆŠฅไปทๆœบๆž„
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | N | ๆŠฅไปทๆ—ฅๆœŸ
+qt_time | str | N | ๆŠฅไปทๆ—ถ้—ด
+bank | str | N | ๆŠฅไปทๆœบๆž„
+ts_code | str | N | ๅ€บๅˆธ็ผ–็ 
+name | str | N | ๅ€บๅˆธ็ฎ€็งฐ
+maturity | str | N | ๆœŸ้™
+remain_maturity | str | N | ๅ‰ฉไฝ™ๆœŸ้™
+bond_type | str | N | ๅ€บๅˆธ็ฑปๅž‹
+coupon_rate | float | N | ็ฅจ้ขๅˆฉ็އ๏ผˆ%๏ผ‰
+buy_price | float | N | ๆŠ•่ต„่€…ไนฐๅ…ฅๅ…จไปท
+sell_price | float | N | ๆŠ•่ต„่€…ๅ–ๅ‡บๅ…จไปท
+buy_yield | float | N | ๆŠ•่ต„่€…ไนฐๅ…ฅๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆ%๏ผ‰
+sell_yield | float | N | ๆŠ•่ต„่€…ๅ–ๅ‡บๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆ%๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+pro = ts.pro_api(your token)
+#ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆŠฅไปท
+df = pro.bc_otcqt(start_date='20240325',end_date='20240329',ts_code='200013.BC',fields='trade_date,qt_time,bank,ts_code,name,remain_maturity,buy_yield,sell_yield')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date qt_time bank ts_code name remain_maturity buy_yield sell_yield
+ 0 20240329 08:11:02 ๆตฆๅ‘้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.9263 1.7977
+ 1 20240329 09:05:28 ๆ‹›ๅ•†้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.8950 1.8350
+ 2 20240329 09:10:24 ๅทฅๅ•†้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.8850 1.8528
+ 3 20240329 09:14:48 ๅปบ่ฎพ้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.8837 1.8451
+ 4 20240329 09:18:18 ไธญๅ›ฝ้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.9040 1.8200
+ 5 20240329 10:40:09 ๅŒ—ไบฌ้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.9043 1.8271
+ 6 20240329 15:46:38 ๅ†œไธš้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.8697 1.8054
+ 7 20240329 18:36:29 ไบค้€š้“ถ่กŒ 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ 1.8464 1.8142
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\234\200\344\274\230\346\212\245\344\273\267.md" "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\234\200\344\274\230\346\212\245\344\273\267.md"
new file mode 100644
index 000000000..8c68378f5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\200\272\345\210\270\344\270\223\351\242\230/\346\237\234\345\217\260\346\265\201\351\200\232\345\274\217\345\200\272\345\210\270\346\234\200\344\274\230\346\212\245\344\273\267.md"
@@ -0,0 +1,57 @@
+## ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท
+----
+
+ๆŽฅๅฃ๏ผšbc_bestotcqt
+ๆ่ฟฐ๏ผšๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ่ฐƒๅ–๏ผŒ2000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ๆŠฅไปทๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+ts_code | str | N | TSไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | N | ๆŠฅไปทๆ—ฅๆœŸ
+ts_code | str | N | ๅ€บๅˆธ็ผ–็ 
+name | str | N | ๅ€บๅˆธ็ฎ€็งฐ
+remain_maturity | str | N | ๅ‰ฉไฝ™ๆœŸ้™
+bond_type | str | N | ๅ€บๅˆธ็ฑปๅž‹
+best_buy_bank | str | N | ๆœ€ไผ˜ๆŠฅไนฐไปทๆ–น
+best_buy_yield | float | N | ๆŠ•่ต„่€…ๆœ€ไผ˜ไนฐๅ…ฅไปทๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆ%๏ผ‰
+best_buy_price | float | N | ๆŠ•่ต„่€…ๆœ€ไผ˜ไนฐๅ…ฅๅ…จไปท
+best_sell_bank | str | N | ๆœ€ไผ˜ๅ–ๆŠฅไปทๆ–น
+best_sell_yield | float | N | ๆŠ•่ต„่€…ๆœ€ไผ˜ๅ–ๅ‡บไปทๅˆฐๆœŸๆ”ถ็›Š็އ๏ผˆ%๏ผ‰
+best_sell_price | float | N | ๆŠ•่ต„่€…ๆœ€ไผ˜ๅ–ๅ‡บๅ…จไปท
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+pro = ts.pro_api(your token)
+#่Žทๅ–ๆŸœๅฐๆต้€šๅผๅ€บๅˆธๆœ€ไผ˜ๆŠฅไปท
+df = pro.bc_bestotcqt(ts_code='200013.BC',start_date='20240325',end_date='20240329',fields='trade_date,ts_code,name,remain_maturity,best_buy_bank,best_buy_yield,best_sell_bank,best_sell_yield')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code name remain_maturity best_buy_bank best_buy_yield best_sell_bank best_sell_yield
+ 0 20240325 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด211ๅคฉ ๅปบ่ฎพ้“ถ่กŒ 1.9041 ๅทฅๅ•†้“ถ่กŒ 1.9227
+ 1 20240326 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด210ๅคฉ ๅทฅๅ•†้“ถ่กŒ 1.8813 ๅทฅๅ•†้“ถ่กŒ 1.9133
+ 2 20240327 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด209ๅคฉ ๅทฅๅ•†้“ถ่กŒ 1.8718 ๅทฅๅ•†้“ถ่กŒ 1.9039
+ 3 20240328 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด208ๅคฉ ๅทฅๅ•†้“ถ่กŒ 1.8623 ๅปบ่ฎพ้“ถ่กŒ 1.8921
+ 4 20240329 200013.BC 20้™„ๆฏๅ›ฝๅ€บ13 1ๅนด207ๅคฉ ๅทฅๅ•†้“ถ่กŒ 1.8528 ไบค้€š้“ถ่กŒ 1.8464
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\207\200\345\200\274.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\207\200\345\200\274.md"
new file mode 100644
index 000000000..4b89ccec0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\207\200\345\200\274.md"
@@ -0,0 +1,58 @@
+## ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅ‡€ๅ€ผ
+----
+
+ๆŽฅๅฃ๏ผšfund_nav๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๅŸบ้‡‘ไปฃ็  ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+nav_date | str | N | ๅ‡€ๅ€ผๆ—ฅๆœŸ ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+market | str | N | Eๅœบๅ†… Oๅœบๅค–
+start_date | str | N | ๅ‡€ๅ€ผๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ‡€ๅ€ผ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+nav_date | str | Y | ๅ‡€ๅ€ผๆ—ฅๆœŸ
+unit_nav | float | Y | ๅ•ไฝๅ‡€ๅ€ผ
+accum_nav | float | Y | ็ดฏ่ฎกๅ‡€ๅ€ผ
+accum_div | float | Y | ็ดฏ่ฎกๅˆ†็บข
+net_asset | float | Y | ่ต„ไบงๅ‡€ๅ€ผ
+total_netasset | float | Y | ๅˆ่ฎก่ต„ไบงๅ‡€ๅ€ผ
+adj_nav | float | Y | ๅคๆƒๅ•ไฝๅ‡€ๅ€ผ
+
+
+**ไปฃ็ ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_nav(ts_code='165509.SZ')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date nav_date unit_nav accum_nav accum_div \
+ 0 165509.SZ 20181019 20181018 1.104 1.587 None
+ 1 165509.SZ 20181018 20181017 1.110 1.587 None
+ 2 165509.SZ 20181017 20181016 1.110 1.587 None
+ 3 165509.SZ 20181016 20181015 1.110 1.587 None
+ 4 165509.SZ 20181013 20181012 1.110 1.587 None
+ 5 165509.SZ 20181012 20181011 1.110 1.587 None
+ 6 165509.SZ 20181011 20181010 1.110 1.587 None
+ 7 165509.SZ 20181010 20181009 1.110 1.587 None
+ 8 165509.SZ 20181009 20181008 1.109 1.586 None
+ 9 165509.SZ 20180929 20180928 1.109 1.586 None
+ 10 165509.SZ 20180928 20180927 1.109 1.586 None
+
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\206\347\272\242.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\206\347\272\242.md"
new file mode 100644
index 000000000..92ed9b03d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\206\347\272\242.md"
@@ -0,0 +1,70 @@
+## ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅˆ†็บข
+----
+
+ๆŽฅๅฃ๏ผšfund_div
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅˆ†็บขๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘400็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅ๏ผˆไปฅไธ‹ๅ‚ๆ•ฐๅ››้€‰ไธ€๏ผ‰
+ex_date | str | N | ้™คๆฏๆ—ฅ
+pay_date | str | N | ๆดพๆฏๆ—ฅ
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+imp_anndate | str | Y | ๅˆ†็บขๅฎžๆ–ฝๅ…ฌๅ‘Šๆ—ฅ
+base_date | str | Y | ๅˆ†้…ๆ”ถ็›ŠๅŸบๅ‡†ๆ—ฅ
+div_proc | str | Y | ๆ–นๆกˆ่ฟ›ๅบฆ
+record_date | str | Y | ๆƒ็›Š็™ป่ฎฐๆ—ฅ
+ex_date | str | Y | ้™คๆฏๆ—ฅ
+pay_date | str | Y | ๆดพๆฏๆ—ฅ
+earpay_date | str | Y | ๆ”ถ็›Šๆ”ฏไป˜ๆ—ฅ
+net_ex_date | str | Y | ๅ‡€ๅ€ผ้™คๆƒๆ—ฅ
+div_cash | float | Y | ๆฏ่‚กๆดพๆฏ(ๅ…ƒ)
+base_unit | float | Y | ๅŸบๅ‡†ๅŸบ้‡‘ไปฝ้ข(ไธ‡ไปฝ)
+ear_distr | float | Y | ๅฏๅˆ†้…ๆ”ถ็›Š(ๅ…ƒ)
+ear_amount | float | Y | ๆ”ถ็›Šๅˆ†้…้‡‘้ข(ๅ…ƒ)
+account_date | str | Y | ็บขๅˆฉๅ†ๆŠ•่ต„ๅˆฐ่ดฆๆ—ฅ
+base_year | str | Y | ไปฝ้ขๅŸบๅ‡†ๅนดๅบฆ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_div(ann_date='20181018')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date imp_anndate base_date div_proc record_date ex_date \
+ 0 161618.OF 20181018 20181018 20180928 ๅฎžๆ–ฝ 20181022 20181022
+ 1 161619.OF 20181018 20181018 20180928 ๅฎžๆ–ฝ 20181022 20181022
+ 2 005485.OF 20181018 20181018 20181015 ๅฎžๆ–ฝ 20181022 20181022
+ 3 519330.OF 20181018 20181018 20181012 ๅฎžๆ–ฝ 20181022 20181022
+ 4 519331.OF 20181018 20181018 20181012 ๅฎžๆ–ฝ 20181022 20181022
+ 5 164702.SZ 20181018 20181018 20180930 ๅฎžๆ–ฝ 20181022 20181023
+ 6 005068.OF 20181018 20181018 20181016 ๅฎžๆ–ฝ 20181022 20181022
+ 7 519953.OF 20181018 20181018 20181016 ๅฎžๆ–ฝ 20181022 20181022
+
+ pay_date earpay_date net_ex_date div_cash base_unit ear_distr \
+ 0 20181024 None None 0.0170 14982.2740 5018943.83
+ 1 20181024 None None 0.0150 2894.7015 823800.02
+ 2 20181024 None None 0.0180 101004.4450 18689411.19
+ 3 20181024 None None 0.0060 219742.3332 65922699.95
+ 4 20181024 None None 0.0050 4.8656 1216.42
+ 5 20181024 None None 0.0150 41287.3653 8058271.35
+ 6 20181024 None None 0.0237 4953.9392 1174773.90
+ 7 20181024 None None 0.0191 23038.2415 4408682.75
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\227\350\241\250.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..ccf156a71
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\345\210\227\350\241\250.md"
@@ -0,0 +1,69 @@
+## ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšfund_basic๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๆ•ฐๆฎๅˆ—่กจ๏ผŒๅŒ…ๆ‹ฌๅœบๅ†…ๅ’Œๅœบๅค–ๅŸบ้‡‘
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–15000ๆกๆ•ฐๆฎ๏ผŒ5000็งฏๅˆ†ไปฅไธŠๆƒ้™ๆ›ด้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็ 
+market | str | N | ไบคๆ˜“ๅธ‚ๅœบ: Eๅœบๅ†… Oๅœบๅค–๏ผˆ้ป˜่ฎคE๏ผ‰
+status | str | N | ๅญ˜็ปญ็Šถๆ€ Dๆ‘˜็‰Œ Iๅ‘่กŒ LไธŠๅธ‚ไธญ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅŸบ้‡‘ไปฃ็ 
+name | str | Y | ็ฎ€็งฐ
+management | str | Y | ็ฎก็†ไบบ
+custodian | str | Y | ๆ‰˜็ฎกไบบ
+fund_type | str | Y | ๆŠ•่ต„็ฑปๅž‹
+found_date | str | Y | ๆˆ็ซ‹ๆ—ฅๆœŸ
+due_date | str | Y | ๅˆฐๆœŸๆ—ฅๆœŸ
+list_date | str | Y | ไธŠๅธ‚ๆ—ถ้—ด
+issue_date | str | Y | ๅ‘่กŒๆ—ฅๆœŸ
+delist_date | str | Y | ้€€ๅธ‚ๆ—ฅๆœŸ
+issue_amount | float | Y | ๅ‘่กŒไปฝ้ข(ไบฟ)
+m_fee | float | Y | ็ฎก็†่ดน
+c_fee | float | Y | ๆ‰˜็ฎก่ดน
+duration_year | float | Y | ๅญ˜็ปญๆœŸ
+p_value | float | Y | ้ขๅ€ผ
+min_amount | float | Y | ่ตท็‚น้‡‘้ข(ไธ‡ๅ…ƒ)
+exp_return | float | Y | ้ข„ๆœŸๆ”ถ็›Š็އ
+benchmark | str | Y | ไธš็ปฉๆฏ”่พƒๅŸบๅ‡†
+status | str | Y | ๅญ˜็ปญ็Šถๆ€Dๆ‘˜็‰Œ Iๅ‘่กŒ LๅทฒไธŠๅธ‚
+invest_type | str | Y | ๆŠ•่ต„้ฃŽๆ ผ
+type | str | Y | ๅŸบ้‡‘็ฑปๅž‹
+trustee | str | Y | ๅ—ๆ‰˜ไบบ
+purc_startdate | str | Y | ๆ—ฅๅธธ็”ณ่ดญ่ตทๅง‹ๆ—ฅ
+redm_startdate | str | Y | ๆ—ฅๅธธ่ตŽๅ›ž่ตทๅง‹ๆ—ฅ
+market | str | Y | Eๅœบๅ†…Oๅœบๅค–
+
+
+**ๆŽฅๅฃ็”จไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_basic(market='E')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name management custodian fund_type found_date \
+ 1 512850.SH ไธญไฟกๅปบๆŠ•ๅŒ—ไบฌ50ETF ไธญไฟกๅปบๆŠ•ๅŸบ้‡‘ ๆ‹›ๅ•†้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180927
+ 2 168601.SZ ๆฑ‡ๅฎ‰่ฃ•้˜ณไธ‰ๅนดๅฎšๆœŸๅผ€ๆ”พ ๆฑ‡ๅฎ‰ๅŸบ้‡‘ ไธญๅ›ฝๅ…‰ๅคง้“ถ่กŒ ๆททๅˆๅž‹ 20180927
+ 3 512860.SH ๅŽๅฎ‰ไธญๅ›ฝA่‚กETF ๅŽๅฎ‰ๅŸบ้‡‘ ไธญๅ›ฝๅ†œไธš้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180927
+ 4 159960.SZ ๆ’็”Ÿๅ›ฝไผ ๅนณๅฎ‰ๅคงๅŽๅŸบ้‡‘ ไธญๅ›ฝ้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180921
+ 5 501062.SH ๅ—ๆ–น็‘žๅˆไธ‰ๅนด ๅ—ๆ–นๅŸบ้‡‘ ไธญๅ›ฝๅปบ่ฎพ้“ถ่กŒ ๆททๅˆๅž‹ 20180906
+ 6 510600.SH ๆฒช50ETF ็”ณไธ‡่ฑไฟกๅŸบ้‡‘ ไธญๅ›ฝๅทฅๅ•†้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180903
+ 7 501061.SH ้‡‘้€‰300C ไธญ้‡‘ๅŸบ้‡‘ ไธญๅ›ฝๅปบ่ฎพ้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180830
+ 8 501060.SH ้‡‘้€‰300A ไธญ้‡‘ๅŸบ้‡‘ ไธญๅ›ฝๅปบ่ฎพ้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180830
+ 9 166802.SZ ๆต™ๅ•†300 ๆต™ๅ•†ๅŸบ้‡‘ ๅŽๅค้“ถ่กŒ ่‚ก็ฅจๅž‹ 20180820
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
new file mode 100644
index 000000000..d947f602e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
@@ -0,0 +1,113 @@
+## ๅœบๅ†…ๅŸบ้‡‘ๆŠ€ๆœฏๅ› ๅญ(ไธ“ไธš็‰ˆ)
+----
+
+ๆŽฅๅฃ๏ผšfund_factor_pro
+ๆ่ฟฐ๏ผš่Žทๅ–ๅœบๅ†…ๅŸบ้‡‘ๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๅœบๅ†…ๅŸบ้‡‘ๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚30ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅŸบ้‡‘ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+trade_date_doris | None | Y | ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน… ๏ผˆๆœชๅคๆƒ๏ผŒๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จย ้€š็”จ่กŒๆƒ…ๆŽฅๅฃย ๏ผ‰
+vol | float | Y | ๆˆไบค้‡ ๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้ข ๏ผˆๅƒๅ…ƒ๏ผ‰
+asi_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+atr_bfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+bbi_bfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=20
+bias1_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+boll_lower_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+brar_ar_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+cci_bfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cr_bfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+dfma_dif_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dmi_adx_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+downdays | float | Y | ่ฟž่ทŒๅคฉๆ•ฐ
+updays | float | Y | ่ฟžๆถจๅคฉๆ•ฐ
+dpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+ema_bfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_bfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_bfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_bfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_bfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_bfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_bfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+emv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+expma_12_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+kdj_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+ktn_down_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+lowdays | float | Y | LOWRANGE(LOW)่กจ็คบๅฝ“ๅ‰ๆœ€ไฝŽไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€ไฝŽไปท็š„ๆœ€ๅฐๅ€ผ
+topdays | float | Y | TOPRANGE(HIGH)่กจ็คบๅฝ“ๅ‰ๆœ€้ซ˜ไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€้ซ˜ไปท็š„ๆœ€ๅคงๅ€ผ
+ma_bfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_bfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_bfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_bfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_bfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_bfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_bfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+macd_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mfi_bfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mtm_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+obv_bfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+psy_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+rsi_bfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_bfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_bfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+taq_down_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+trix_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+vr_bfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+wr_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+xsii_td1_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\214\201\344\273\223.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\214\201\344\273\223.md"
new file mode 100644
index 000000000..1055a3e63
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\346\214\201\344\273\223.md"
@@ -0,0 +1,71 @@
+## ๅ…ฌๅ‹ŸๅŸบ้‡‘ๆŒไป“ๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšfund_portfolio
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘ๆŒไป“ๆ•ฐๆฎ๏ผŒๅญฃๅบฆๆ›ดๆ–ฐ
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ่ฏทๆฑ‚200ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ่ฏทๆฑ‚500ๆฌก๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็  (ts_code,ann_date,period่‡ณๅฐ‘่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ)
+symbol | str | N | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+period | str | N | ๅญฃๅบฆ๏ผˆๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20131231่กจ็คบ2013ๅนดๅนดๆŠฅ๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๅŸบ้‡‘ไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆˆชๆญขๆ—ฅๆœŸ
+symbol | str | Y | ่‚ก็ฅจไปฃ็ 
+mkv | float | Y | ๆŒๆœ‰่‚ก็ฅจๅธ‚ๅ€ผ(ๅ…ƒ)
+amount | float | Y | ๆŒๆœ‰่‚ก็ฅจๆ•ฐ้‡๏ผˆ่‚ก๏ผ‰
+stk_mkv_ratio | float | Y | ๅ ่‚ก็ฅจๅธ‚ๅ€ผๆฏ”
+stk_float_ratio | float | Y | ๅ ๆต้€š่‚กๆœฌๆฏ”ไพ‹
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_portfolio(ts_code='001753.OF')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date end_date symbol mkv amount \
+ 0 001753.OF 20180823 20180630 603019.SH 3130994.46 68258.0
+ 1 001753.OF 20180718 20180630 600845.SH 3594140.00 136400.0
+ 2 001753.OF 20180718 20180630 600596.SH 5428107.30 335690.0
+ 3 001753.OF 20180718 20180630 600588.SH 3811672.65 155515.0
+ 4 001753.OF 20180718 20180630 600271.SH 3770284.00 149200.0
+ 5 001753.OF 20180823 20180630 300616.SZ 10900.00 100.0
+ 6 001753.OF 20180718 20180630 300577.SZ 4544793.54 110257.0
+ 7 001753.OF 20180718 20180630 300476.SZ 3783780.00 245700.0
+ 8 001753.OF 20180823 20180630 300409.SZ 2895942.00 72200.0
+ 9 001753.OF 20180718 20180630 300208.SZ 5768280.00 588000.0
+ 10 001753.OF 20180823 20180630 300188.SZ 2535922.50 138575.0
+
+ stk_mkv_ratio stk_float_ratio
+ 0 4.37 0.01
+ 1 5.02 0.02
+ 2 7.57 0.05
+ 3 5.32 0.01
+ 4 5.26 0.01
+ 5 0.02 0.00
+ 6 6.34 0.17
+ 7 5.28 0.07
+ 8 4.04 0.05
+ 9 8.05 0.10
+ 10 3.54 0.03
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\256\241\347\220\206\344\272\272.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\256\241\347\220\206\344\272\272.md"
new file mode 100644
index 000000000..8282ee3cc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\256\241\347\220\206\344\272\272.md"
@@ -0,0 +1,60 @@
+## ๅ…ฌๅ‹ŸๅŸบ้‡‘ๅ…ฌๅธ
+----
+
+ๆŽฅๅฃ๏ผšfund_company
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘็ฎก็†ไบบๅˆ—่กจ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ1500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๆ— ๏ผŒๅฏๆๅ–ๅ…จ้ƒจ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+name | str | Y | ๅŸบ้‡‘ๅ…ฌๅธๅ็งฐ
+shortname | str | Y | ็ฎ€็งฐ
+short_enname | str | N | ่‹ฑๆ–‡็ผฉๅ†™
+province | str | Y | ็œไปฝ
+city | str | Y | ๅŸŽๅธ‚
+address | str | Y | ๆณจๅ†Œๅœฐๅ€
+phone | str | Y | ็”ต่ฏ
+office | str | Y | ๅŠžๅ…ฌๅœฐๅ€
+website | str | Y | ๅ…ฌๅธ็ฝ‘ๅ€
+chairman | str | Y | ๆณ•ไบบไปฃ่กจ
+manager | str | Y | ๆ€ป็ป็†
+reg_capital | float | Y | ๆณจๅ†Œ่ต„ๆœฌ
+setup_date | str | Y | ๆˆ็ซ‹ๆ—ฅๆœŸ
+end_date | str | Y | ๅ…ฌๅธ็ปˆๆญขๆ—ฅๆœŸ
+employees | float | Y | ๅ‘˜ๅทฅๆ€ปๆ•ฐ
+main_business | str | Y | ไธป่ฆไบงๅ“ๅŠไธšๅŠก
+org_code | str | Y | ็ป„็ป‡ๆœบๆž„ไปฃ็ 
+credit_code | str | Y | ็ปŸไธ€็คพไผšไฟก็”จไปฃ็ 
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_company()
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ name shortname province city \
+ 0 ๅŒ—ไบฌๅนฟ่ƒฝๆŠ•่ต„ๅŸบ้‡‘็ฎก็†ๆœ‰้™ๅ…ฌๅธ ๅนฟ่ƒฝๅŸบ้‡‘ ๅŒ—ไบฌ ๅŒ—ไบฌๅธ‚
+ 1 ๅนณๅฎ‰้“ถ่กŒ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅนณๅฎ‰้“ถ่กŒ ๅนฟไธœ ๆทฑๅœณๅธ‚
+ 2 ๅฎๆบ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅฎๆบ่ฏๅˆธ ๆ–ฐ็–† ไนŒ้ฒๆœจ้ฝๅธ‚
+ 3 ้™•่ฅฟ็œๅ›ฝ้™…ไฟกๆ‰˜่‚กไปฝๆœ‰้™ๅ…ฌๅธ ้™•ๅ›ฝๆŠ• ้™•่ฅฟ ่ฅฟๅฎ‰ๅธ‚
+ 4 ไธœๅŒ—่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ไธœๅŒ—่ฏๅˆธ ๅ‰ๆž— ้•ฟๆ˜ฅๅธ‚
+ 5 ๅ›ฝๅ…ƒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅ›ฝๅ…ƒ่ฏๅˆธ ๅฎ‰ๅพฝ ๅˆ่‚ฅๅธ‚
+ 6 ๅ›ฝๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅ›ฝๆตท่ฏๅˆธ ๅนฟ่ฅฟ ๆก‚ๆž—ๅธ‚
+ 7 ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅนฟๅ‘่ฏๅˆธ ๅนฟไธœ ๅนฟๅทžๅธ‚
+ 8 ้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ้•ฟๆฑŸ่ฏๅˆธ ๆน–ๅŒ— ๆญฆๆฑ‰ๅธ‚
+ 9 ไธŠๆตทๆตฆไธœๅ‘ๅฑ•้“ถ่กŒ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๆตฆๅ‘้“ถ่กŒ ไธŠๆตท ไธŠๆตทๅธ‚
+ 10 ไธœๆ–น้‡‘้’ฐ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ไธœๆ–น้‡‘้’ฐ ๆน–ๅŒ— ้„‚ๅทžๅธ‚
+ 11 ๅ›ฝ้‡‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ ๅ›ฝ้‡‘่ฏๅˆธ ๅ››ๅท ๆˆ้ƒฝๅธ‚
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\273\217\347\220\206.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\273\217\347\220\206.md"
new file mode 100644
index 000000000..0561745ca
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\347\273\217\347\220\206.md"
@@ -0,0 +1,65 @@
+## ๅŸบ้‡‘็ป็†
+----
+
+ๆŽฅๅฃ๏ผšfund_manager
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…ฌๅ‹ŸๅŸบ้‡‘็ป็†ๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๅŸบ้‡‘็ป็†็ฎ€ๅކ็ญ‰ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000๏ผŒๆ”ฏๆŒๅˆ†้กตๆๅ–ๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆทๆœ‰500็งฏๅˆ†ๅฏ่Žทๅ–ๆ•ฐๆฎ๏ผŒ2000็งฏๅˆ†ไปฅไธŠๅฏไปฅๆ้ซ˜่ฎฟ้—ฎ้ข‘ๆฌก
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅŸบ้‡‘ไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅชๅŸบ้‡‘๏ผŒ้€—ๅทๅˆ†้š”
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผŒๆ ผๅผ๏ผšYYYYMMDD
+name | str | N | ๅŸบ้‡‘็ป็†ๅง“ๅ
+offset | intint | N | ๅผ€ๅง‹่กŒๆ•ฐ
+limit | int | N | ๆฏ้กต่กŒๆ•ฐ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅŸบ้‡‘ไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+name | str | Y | ๅŸบ้‡‘็ป็†ๅง“ๅ
+gender | str | Y | ๆ€งๅˆซ
+birth_year | str | Y | ๅ‡บ็”Ÿๅนดไปฝ
+edu | str | Y | ๅญฆๅކ
+nationality | str | Y | ๅ›ฝ็ฑ
+begin_date | str | Y | ไปป่Œๆ—ฅๆœŸ
+end_date | str | Y | ็ฆปไปปๆ—ฅๆœŸ
+resume | str | Y | ็ฎ€ๅކ
+
+<br>
+<br>
+
+**ไปฃ็ ็คบไพ‹**
+
+```python
+#ๅˆๅง‹ๆŽฅๅฃ
+pro = ts.pro_api()
+
+#ๅ•ๅชๅŸบ้‡‘
+df = pro.fund_manager(ts_code='150018.SZ')
+
+#ๅคšๅชๅŸบ้‡‘
+df = pro.fund_manager(ts_code='150018.SZ,150008.SZ')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date name gender birth_year edu nationality begin_date end_date resume
+ 0 150018.SZ 20100508 ๅ‘จๆฏ… M None ็ก•ๅฃซ ็พŽๅ›ฝ 20100507 None CFA๏ผŒ็ก•ๅฃซๅญฆไฝ๏ผ›ๆฏ•ไธšไบŽๅŒ—ไบฌๅคงๅญฆ๏ผŒ็พŽๅ›ฝๅ—ๅก็ฝ—่Žฑ็บณๅคงๅญฆ๏ผŒ็พŽๅ›ฝ็บฆ็ฟฐ้œๆ™ฎ้‡‘ๆ–ฏๅคงๅญฆใ€‚ๆ›พไปป็พŽๅ›ฝๆ™ฎๅŽๆฐธ้“...
+ 1 150018.SZ 20190831 ๅผ ๅ‡ฏ M None ็ก•ๅฃซ ไธญๅ›ฝ 20190829 None CFA๏ผŒ็ก•ๅฃซๅญฆไฝ๏ผŒๆฏ•ไธšไบŽๆธ…ๅŽๅคงๅญฆใ€‚2009ๅนด7ๆœˆๅŠ ็›Ÿ้“ถๅŽๅŸบ้‡‘็ฎก็†ๆœ‰้™ๅ…ฌๅธ๏ผŒไปŽไบ‹้‡ๅŒ–็ญ–็•ฅ็ ”ๅ‘ๅ’Œ...
+ 2 150018.SZ 20100927 ่ทฏๅฟ—ๅˆš M 1969 ๅšๅฃซ ไธญๅ›ฝ 20100507 20100927 ๆšจๅ—ๅคงๅญฆ้‡‘่žๅญฆๅšๅฃซใ€‚ๆ›พไปปๅนฟไธœๅปบ่ฎพๅฎžไธš้›†ๅ›ขๅ…ฌๅธ่ดขๅŠกไธป็ฎก๏ผŒๅนฟๅทž่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅ‘่กŒ้ƒจใ€่ฅไธš้ƒจ็ป็†๏ผŒ้‡‘...
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\350\247\204\346\250\241.md" "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\350\247\204\346\250\241.md"
new file mode 100644
index 000000000..03a5f9bf8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\205\254\345\213\237\345\237\272\351\207\221/\345\237\272\351\207\221\350\247\204\346\250\241.md"
@@ -0,0 +1,72 @@
+## ๅŸบ้‡‘่ง„ๆจกๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšfund_share๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŸบ้‡‘่ง„ๆจกๆ•ฐๆฎ๏ผŒๅŒ…ๅซไธŠๆตทๅ’ŒๆทฑๅœณETFๅŸบ้‡‘
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–2000่กŒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก่พƒ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๅŸบ้‡‘ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+market | str | N | ๅธ‚ๅœบไปฃ็ ๏ผˆSHไธŠไบคๆ‰€ ๏ผŒSZๆทฑไบคๆ‰€๏ผ‰
+
+<br>
+<br>
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅŸบ้‡‘ไปฃ็ ๏ผŒๆ”ฏๆŒๅคšๅชๅŸบ้‡‘ๅŒๆ—ถๆๅ–๏ผŒ็”จ้€—ๅทๅˆ†้š”
+trade_date | str | Y | ไบคๆ˜“๏ผˆๅ˜ๅŠจ๏ผ‰ๆ—ฅๆœŸ๏ผŒๆ ผๅผYYYYMMDD
+fd_share | float | Y | ๅŸบ้‡‘ไปฝ้ข๏ผˆไธ‡๏ผ‰
+
+
+
+<br>
+<br>
+
+**ไปฃ็ ็คบไพ‹**
+
+```python
+#ๅˆๅง‹ๆŽฅๅฃ
+pro = ts.pro_api()
+
+#ๅ•ๅชๅŸบ้‡‘
+df = pro.fund_share(ts_code='150018.SZ')
+
+#ๅคšๅชๅŸบ้‡‘
+df = pro.fund_share(ts_code='150018.SZ,150008.SZ')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date fd_share
+ 0 150018.SZ 20200214 206733.2898
+ 1 150018.SZ 20200213 209274.0911
+ 2 150018.SZ 20200212 211859.8666
+ 3 150018.SZ 20200211 215224.2959
+ 4 150018.SZ 20200210 216739.3881
+ ... ... ... ...
+ 1995 150018.SZ 20111129 319525.0658
+ 1996 150018.SZ 20111128 317324.2829
+ 1997 150018.SZ 20111125 317324.2131
+ 1998 150018.SZ 20111124 316113.2233
+ 1999 150018.SZ 20111123 314305.3576
+
+
diff --git "a/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\345\237\272\347\241\200\344\277\241\346\201\257(\346\265\267\345\244\226).md" "b/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\345\237\272\347\241\200\344\277\241\346\201\257(\346\265\267\345\244\226).md"
new file mode 100644
index 000000000..3724672a0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\345\237\272\347\241\200\344\277\241\346\201\257(\346\265\267\345\244\226).md"
@@ -0,0 +1,87 @@
+## ๅค–ๆฑ‡ๅŸบ็ก€ไฟกๆฏ๏ผˆๆตทๅค–๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšfx_obasic
+ๆ่ฟฐ๏ผš่Žทๅ–ๆตทๅค–ๅค–ๆฑ‡ๅŸบ็ก€ไฟกๆฏ๏ผŒ็›ฎๅ‰ๅชๆœ‰FXCMไบคๆ˜“ๅ•†็š„ๆ•ฐๆฎ
+ๆ•ฐ้‡๏ผšๅ•ๆฌกๅฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+exchange | str | N | ไบคๆ˜“ๅ•†
+classify | str | N | ๅˆ†็ฑป
+ts_code | str | N | TSไปฃ็ 
+
+<br>
+<br>
+
+classifyๅˆ†็ฑป่ฏดๆ˜Ž
+
+ๅบๅท|ๅˆ†็ฑปไปฃ็ |ๅˆ†็ฑปๅ็งฐ|ๆ ทไพ‹
+---- | ----- | ---- | ----
+1 | FX | ๅค–ๆฑ‡่ดงๅธๅฏน | USDCNH๏ผˆ็พŽๅ…ƒไบบๆฐ‘ๅธๅฏน๏ผ‰
+2 | INDEX | ๆŒ‡ๆ•ฐ | US30๏ผˆ็พŽๅ›ฝ้“็ผๆ–ฏๅทฅไธšๅนณๅ‡ๆŒ‡ๆ•ฐ๏ผ‰
+3 | COMMODITY | ๅคงๅฎ—ๅ•†ๅ“ | SOYF๏ผˆๅคง่ฑ†๏ผ‰
+4 | METAL | ้‡‘ๅฑž | XAUUSD ๏ผˆ้ป„้‡‘๏ผ‰
+5 | BUND | ๅ›ฝๅบ“ๅ€บๅˆธ | Bund๏ผˆ้•ฟๆœŸๆฌงๅ…ƒๅ€บๅˆธ๏ผ‰
+6 | CRYPTO | ๅŠ ๅฏ†ๆ•ฐๅญ—่ดงๅธ | BTCUSD (ๆฏ”็‰นๅธ)
+7 | FX_BASKET | ๅค–ๆฑ‡็ฏฎๅญ | USDOLLAR ๏ผˆ็พŽๅ…ƒๆŒ‡ๆ•ฐ๏ผ‰
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅค–ๆฑ‡ไปฃ็ 
+name | str | Y | ๅ็งฐ
+classify | str | Y | ๅˆ†็ฑป
+exchange | str | Y | ไบคๆ˜“ๅ•†
+min_unit | float | Y | ๆœ€ๅฐไบคๆ˜“ๅ•ไฝ
+max_unit | float | Y | ๆœ€ๅคงไบคๆ˜“ๅ•ไฝ
+pip | float | Y | ็‚น
+pip_cost | float | Y | ็‚นๅ€ผ
+traget_spread | float | Y | ็›ฎๆ ‡ๅทฎไปท
+min_stop_distance | float | Y | ๆœ€ๅฐๆญขๆŸ่ท็ฆป๏ผˆ็‚นๅญ๏ผ‰
+trading_hours | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+break_time | str | Y | ไผ‘ๅธ‚ๆ—ถ้—ด
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅทฎไปทๅˆ็บฆ(CFD)ไธญๆŒ‡ๆ•ฐไบง็š„ๅŸบ็ก€ไฟกๆฏ
+df = pro.fx_obasic(exchange='FXCM', classify='INDEX', fields='ts_code,name,min_unit,max_unit,pip,pip_cost')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name min_unit max_unit pip pip_cost
+ 0 AUS200.FXCM ๆพณๅคงๅˆฉไบšๆ ‡ๅ‡†ๆ™ฎๅฐ”200ๆŒ‡ๆ•ฐ 1.0 2000.0 1.0 0.1
+ 1 CHN50.FXCM ๅฏŒๆ—ถไธญๅ›ฝA50ๆŒ‡ๆ•ฐ 1.0 100.0 1.0 0.1
+ 2 ESP35.FXCM ่ฅฟ็ญ็‰™IBEX35ๆŒ‡ๆ•ฐ 1.0 5000.0 1.0 0.1
+ 3 EUSTX50.FXCM ๆฌงๆดฒๆ–ฏๆ‰˜ๅ…‹50ๆŒ‡ๆ•ฐ 1.0 5000.0 1.0 0.1
+ 4 FRA40.FXCM ๆณ•ๅ›ฝCAC40ๆŒ‡ๆ•ฐ 1.0 5000.0 1.0 0.1
+ 5 GER30.FXCM ๅพทๅ›ฝDAXๆŒ‡ๆ•ฐ 1.0 1000.0 1.0 0.1
+ 6 HKG33.FXCM ้ฆ™ๆธฏๆ’็”ŸๆŒ‡ๆ•ฐ 1.0 300.0 1.0 1.0
+ 7 JPN225.FXCM ๆ—ฅ็ป225ๆŒ‡ๆ•ฐ 10.0 1000.0 1.0 10.0
+ 8 NAS100.FXCM ็พŽๅ›ฝ็บณๆ–ฏ่พพๅ…‹100ๆŒ‡ๆ•ฐ 1.0 5000.0 1.0 0.1
+ 9 SPX500.FXCM ็พŽๅ›ฝๆ ‡ๆ™ฎ500ๆŒ‡ๆ•ฐ 1.0 5000.0 0.1 0.1
+ 10 UK100.FXCM ่‹ฑๅ›ฝๅฏŒๆ—ถ100ๆŒ‡ๆ•ฐ 1.0 4000.0 1.0 0.1
+ 11 US30.FXCM ้“็ผๆ–ฏๅทฅไธšๅนณๅ‡ๆŒ‡ๆ•ฐ 1.0 4000.0 1.0 0.1
+ 12 US2000.FXCM ็พŽๅ›ฝ็ฝ—็ด 2000ๆŒ‡ๆ•ฐ 1.0 5000.0 0.1 0.1
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..9babf2420
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\226\346\261\207\346\225\260\346\215\256/\345\244\226\346\261\207\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,107 @@
+## ๅค–ๆฑ‡ๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšfx_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๅค–ๆฑ‡ๆ—ฅ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–1000่กŒ่ฎฐๅฝ•๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒไฝ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆGMT๏ผŒๆ—ฅๆœŸๆ˜ฏๆ ผๆž—ๅฐผๆฒปๆ—ถ้—ด๏ผŒๆฏ”ๅŒ—ไบฌๆ—ถ้—ดๆ™šไธ€ๅคฉ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆGMT๏ผ‰
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ๏ผˆGMT๏ผ‰
+exchange | str | N | ไบคๆ˜“ๅ•†๏ผŒ็›ฎๅ‰ๅชๆœ‰FXCM
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅค–ๆฑ‡ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+bid_open | float | Y | ไนฐๅ…ฅๅผ€็›˜ไปท
+bid_close | float | Y | ไนฐๅ…ฅๆ”ถ็›˜ไปท
+bid_high | float | Y | ไนฐๅ…ฅๆœ€้ซ˜ไปท
+bid_low | float | Y | ไนฐๅ…ฅๆœ€ไฝŽไปท
+ask_open | float | Y | ๅ–ๅ‡บๅผ€็›˜ไปท
+ask_close | float | Y | ๅ–ๅ‡บๆ”ถ็›˜ไปท
+ask_high | float | Y | ๅ–ๅ‡บๆœ€้ซ˜ไปท
+ask_low | float | Y | ๅ–ๅ‡บๆœ€ไฝŽไปท
+tick_qty | int | Y | ๆŠฅไปท็ฌ”ๆ•ฐ
+exchange | str | N | ไบคๆ˜“ๅ•†
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–็พŽๅ…ƒไบบๆฐ‘ๅธไบคๆ˜“ๅฏน็š„ๆ—ฅ็บฟ่กŒๆƒ…
+df = pro.fx_daily(ts_code='USDCNH.FXCM', start_date='20190101', end_date='20190524')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date bid_open bid_close bid_high bid_low ask_open \
+ 0 USDCNH.FXCM 20190524 6.9261 6.9326 6.9342 6.9248 6.9277
+ 1 USDCNH.FXCM 20190523 6.9309 6.9261 6.9431 6.9253 6.9376
+ 2 USDCNH.FXCM 20190522 6.9334 6.9309 6.9409 6.9236 6.9348
+ 3 USDCNH.FXCM 20190521 6.9373 6.9334 6.9463 6.9205 6.9408
+ 4 USDCNH.FXCM 20190520 6.9366 6.9373 6.9459 6.9358 6.9373
+ 5 USDCNH.FXCM 20190517 6.9259 6.9476 6.9489 6.9211 6.9313
+ 6 USDCNH.FXCM 20190516 6.9029 6.9259 6.9315 6.9011 6.9079
+ 7 USDCNH.FXCM 20190515 6.9029 6.9029 6.9173 6.8937 6.9050
+ 8 USDCNH.FXCM 20190514 6.9114 6.9029 6.9191 6.8872 6.9128
+ 9 USDCNH.FXCM 20190513 6.8628 6.9114 6.9183 6.8628 6.8642
+ 10 USDCNH.FXCM 20190510 6.8341 6.8424 6.8646 6.8166 6.8409
+ 11 USDCNH.FXCM 20190509 6.8052 6.8341 6.8636 6.8012 6.8096
+ 12 USDCNH.FXCM 20190508 6.7941 6.8052 6.8101 6.7810 6.7958
+ 13 USDCNH.FXCM 20190507 6.7699 6.7941 6.8021 6.7699 6.7772
+ 14 USDCNH.FXCM 20190506 6.8017 6.7699 6.8213 6.7679 6.8037
+ 15 USDCNH.FXCM 20190503 6.7451 6.7335 6.7508 6.7333 6.7457
+ 16 USDCNH.FXCM 20190502 6.7322 6.7471 6.7476 6.7250 6.7343
+ 17 USDCNH.FXCM 20190501 6.7360 6.7322 6.7409 6.7177 6.7379
+ 18 USDCNH.FXCM 20190430 6.7383 6.7360 6.7485 6.7347 6.7393
+ 19 USDCNH.FXCM 20190429 6.7357 6.7383 6.7447 6.7325 6.7362
+ 20 USDCNH.FXCM 20190426 6.7488 6.7342 6.7503 6.7280 6.7515
+
+ ask_close ask_high ask_low tick_qty
+ 0 6.9330 6.9347 6.9252 18080
+ 1 6.9277 6.9436 6.9261 105229
+ 2 6.9376 6.9414 6.9242 111350
+ 3 6.9348 6.9468 6.9209 222996
+ 4 6.9408 6.9465 6.9362 79531
+ 5 6.9490 6.9495 6.9217 157554
+ 6 6.9313 6.9328 6.9021 120162
+ 7 6.9079 6.9179 6.8943 121021
+ 8 6.9050 6.9201 6.8880 300896
+ 9 6.9128 6.9186 6.8639 155367
+ 10 6.8469 6.8651 6.8177 229059
+ 11 6.8409 6.8639 6.8016 205422
+ 12 6.8096 6.8105 6.7815 147058
+ 13 6.7958 6.8026 6.7722 310025
+ 14 6.7772 6.8224 6.7685 165912
+ 15 6.7351 6.7528 6.7339 88842
+ 16 6.7478 6.7483 6.7256 99287
+ 17 6.7343 6.7442 6.7183 94834
+ 18 6.7379 6.7491 6.7362 163001
+ 19 6.7393 6.7452 6.7331 60621
+ 20 6.7437 6.7515 6.7285 133640
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\205\254\345\221\212.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\205\254\345\221\212.md"
new file mode 100644
index 000000000..7cb8cef58
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\205\254\345\221\212.md"
@@ -0,0 +1,63 @@
+## ไธŠๅธ‚ๅ…ฌๅธๅ…จ้‡ๅ…ฌๅ‘Š
+----
+
+ๆŽฅๅฃ๏ผšanns_d
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จ้‡ๅ…ฌๅ‘Šๆ•ฐๆฎ๏ผŒๆไพ›pdfไธ‹่ฝฝURL
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆกๆ•ฐ๏ผŒๅฏไปฅ่ทŸ่ฟ›ๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–ๅ…จ้‡
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃไธบๅ•็‹ฌๆƒ้™๏ผŒ่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆyyyymmddๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+title | str | Y | ๆ ‡้ข˜
+url | str | Y | URL๏ผŒๅŽŸๆ–‡ไธ‹่ฝฝ้“พๆŽฅ
+rec_time | datetime | N | ๅ‘ๅธƒๆ—ถ้—ด
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.anns_d(ann_date='20230621')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ann_date ts_code name title
+ 0 20230621 600590.SH ๆณฐ่ฑช็ง‘ๆŠ€ ็ฌฌๅ…ซๅฑŠ่‘ฃไบ‹ไผš็ฌฌๅไบ”ๆฌกไผš่ฎฎๅ†ณ่ฎฎๅ…ฌๅ‘Š
+ 1 20230621 300504.SZ ๅคฉ้‚‘่‚กไปฝ ๅคฉ้‚‘่‚กไปฝ๏ผšๅ…ณไบŽๅ›ž่ดญๆณจ้”€้ƒจๅˆ†้™ๅˆถๆ€ง่‚ก็ฅจ็š„ๅ…ฌๅ‘Š
+ 2 20230621 002815.SZ ๅด‡่พพๆŠ€ๆœฏ ๅด‡่พพๆŠ€ๆœฏ๏ผšไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ…ณไบŽๅด‡่พพๆŠ€ๆœฏ่‚กไปฝๆœ‰้™ๅ…ฌๅธ2022ๅนด้™ๅˆถๆ€ง่‚ก็ฅจๆฟ€ๅŠฑ่ฎกๅˆ’้ฆ–ๆฌกๆŽˆ...
+ 3 20230621 600212.SH ็ปฟ่ƒฝๆ…งๅ…… ็ปฟ่ƒฝๆ…งๅ……2022ๅนดๅนดๅบฆ่‚กไธœๅคงไผšไผš่ฎฎ่ต„ๆ–™
+ 4 20230621 002508.SZ ่€ๆฟ็”ตๅ™จ ่€ๆฟ็”ตๅ™จ๏ผšๅ…ณไบŽๅ‘ๆฟ€ๅŠฑๅฏน่ฑกๆŽˆไบˆ่‚ก็ฅจๆœŸๆƒ็š„ๅ…ฌๅ‘Š
+ ... ... ... ... ...
+ 1995 20230620 600152.SH ็ปด็ง‘ๆŠ€ๆœฏ ็ปด็ง‘ๆŠ€ๆœฏๅ…ณไบŽๅ‘2022ๅนด่‚ก็ฅจๆœŸๆƒๆฟ€ๅŠฑ่ฎกๅˆ’ๆฟ€ๅŠฑๅฏน่ฑกๆŽˆไบˆ้ข„็•™้ƒจๅˆ†่‚ก็ฅจๆœŸๆƒ๏ผˆ็ฌฌไบŒๆ‰นๆฌก๏ผ‰็š„ๅ…ฌๅ‘Š
+ 1996 20230620 301290.SZ ไธœๆ˜ŸๅŒป็–— ไธœๆ˜ŸๅŒป็–—๏ผšๅ…ณไบŽๅฏนๆทฑๅœณ่ฏๅˆธไบคๆ˜“ๆ‰€ๅ…ณๆณจๅ‡ฝ็š„ๅ›žๅคๅ…ฌๅ‘Š
+ 1997 20230620 600998.SH ไนๅทž้€š ไนๅทž้€šๅ…ณไบŽๆŽง่‚ก่‚กไธœ2022ๅนด้žๅ…ฌๅผ€ๅ‘่กŒๅฏไบคๆขๅ…ฌๅธๅ€บๅˆธ๏ผˆ็ฌฌไบŒใ€ไธ‰ๆœŸ๏ผ‰่ฟ›ๅ…ฅๆข่‚กๆœŸ็š„ๆ็คบๆ€งๅ…ฌๅ‘Š
+ 1998 20230620 300371.SZ ๆฑ‡ไธญ่‚กไปฝ ๆฑ‡ไธญ่‚กไปฝ๏ผšๅ…ณไบŽๅญๅ…ฌๅธๅฎŒๆˆๅทฅๅ•†ๅ˜ๆ›ด็š„ๅ…ฌๅ‘Š
+ 1999 20230620 300061.SZ ๆ——ๅคฉ็ง‘ๆŠ€ ๆ——ๅคฉ็ง‘ๆŠ€๏ผšๅ…ณไบŽไธบๅญๅ…ฌๅธๆไพ›ๆ‹…ไฟ็š„ๅ…ฌๅ‘Š
+
+ [2000 rows x 4 columns]
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\350\257\201e\344\272\222\345\212\250\351\227\256\347\255\224.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\350\257\201e\344\272\222\345\212\250\351\227\256\347\255\224.md"
new file mode 100644
index 000000000..106e97db2
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\212\350\257\201e\344\272\222\345\212\250\351\227\256\347\255\224.md"
@@ -0,0 +1,72 @@
+## ไธŠ่ฏEไบ’ๅŠจ
+----
+
+**ๆŽฅๅฃ**๏ผširm_qa_sh๏ผŒๅކๅฒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2023ๅนด6ๆœˆใ€‚
+**ๆ่ฟฐ**๏ผš่Žทๅ–ไธŠไบคๆ‰€eไบ’ๅŠจ่‘ฃ็ง˜้—ฎ็ญ”ๆ–‡ๆœฌๆ•ฐๆฎใ€‚ไธŠ่ฏeไบ’ๅŠจๆ˜ฏ็”ฑไธŠๆตท่ฏๅˆธไบคๆ˜“ๆ‰€ๅปบ็ซ‹ใ€ไธŠๆตท่ฏๅˆธๅธ‚ๅœบๆ‰€ๆœ‰ๅ‚ไธŽไธปไฝ“ๆ— ๅฟไฝฟ็”จ็š„ๆฒŸ้€šๅนณๅฐ,ๆ—จๅœจๅผ•ๅฏผๅ’Œไฟƒ่ฟ›ไธŠๅธ‚ๅ…ฌๅธใ€ๆŠ•่ต„่€…็ญ‰ๅ„ๅธ‚ๅœบๅ‚ไธŽไธปไฝ“ไน‹้—ด็š„ไฟกๆฏๆฒŸ้€š,ๆž„ๅปบ้›†ไธญใ€ไพฟๆท็š„ไบ’ๅŠจๆธ ้“ใ€‚ๆœฌๆŽฅๅฃๆ•ฐๆฎ่ฎฐๅฝ•ไบ†ไปฅไธŠๆฒŸ้€š้—ฎ็ญ”็š„ๆ–‡ๆœฌๆ•ฐๆฎใ€‚
+**้™้‡**๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž3000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ๏ผŒๆ—ฅๆœŸ็ญ‰ๅ‚ๆ•ฐๅพช็Žฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+**ๆƒ้™**๏ผš็”จๆˆทๅŽ120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ๏ผŒๆญฃๅผๆƒ้™ไธบ10000็งฏๅˆ†๏ผŒๆˆ–็”ณ่ฏทๅ•็‹ฌๅผ€ๆƒ้™๏ผŒ่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+pub_date | str | N | ๅ‘ๅธƒๅผ€ๅง‹ๆ—ฅๆœŸ(ๆ ผๅผ๏ผš2025-06-03 16:43:03)
+pub_date | str | N | ๅ‘ๅธƒ็ป“ๆŸๆ—ฅๆœŸ(ๆ ผๅผ๏ผš2025-06-03 18:43:23)
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ๅ…ฌๅธๅ็งฐ
+trade_date | str | Y | ๆ—ฅๆœŸ
+q | str | Y | ้—ฎ้ข˜
+a | str | Y | ๅ›žๅค
+pub_time | datetime | Y | ๅ›žๅคๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2025ๅนด2ๆœˆ12ๆ—ฅไธŠ่ฏeไบ’ๅŠจ็š„้—ฎ็ญ”ๆ–‡ๆœฌ
+df = pro.irm_qa_sh(ann_date='20250212')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+<img src='https://tushare.pro/files/web/e.png'>
+
+
+ ts_code name q a
+ 0 601121.SH ๅฎๅœฐ็Ÿฟไธš ่‚กไปทๅˆฉๅคšๅ› ็ด ไธป่ฆ็œ‹ๅŸบๆœฌ้ข๏ผŒๅ…ณ้”ฎๆ˜ฏไธš็ปฉ๏ผŒๅˆฉ็ฉบๅ› ็ด ๅฐฑๆ˜ฏๅ‡ๆŒๅ’ŒไฝŽไปทๅขžๅ‘๏ผŒ็›ฎๅ‰ๅฎๅœฐ็š„ไธš็ปฉ้šพไปฅๆŠตๆถˆ่‚กไธœ... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผ่กทๅฟƒๆ„Ÿ่ฐขๆ‚จๅฏนๅฎๅœฐ็Ÿฟไธš็š„ๅ…ณๆณจไธŽ้žญ็ญ–ใ€‚ๅ…ฌๅธๅฐ†ๅŠ ๅฟซๆŽจ่ฟ›้‡็‚น้กน็›ฎๅปบ่ฎพ๏ผŒๅšๅฅฝ็”Ÿไบง็ป...
+ 1 600615.SH ไธฐๅŽ่‚กไปฝ ๆ‚จๅฅฝ๏ผๆˆ‘ๆ˜ฏไธ€ๅๅŸŽๅธ‚ๅฑ…ๆฐ‘๏ผŒ้•ฟๆœŸๅ…ณๆณจ็ฉบๆฐ”ๆฑกๆŸ“้—ฎ้ข˜ใ€‚ๆƒณ่ฏท้—ฎ่ดตๅ…ฌๅธๅœจๆ—ฅๅธธ็ป่ฅ่ฟ‡็จ‹ไธญ๏ผŒๆ˜ฏๅฆ้‡‡ๅ–ไบ†ๆœ‰ๆ•ˆ็š„... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผๅ…ฌๅธไธๅฑžไบŽ้‡็‚นๆŽ’ๆฑกๅ•ไฝใ€‚ๅ…ฌๅธ้ซ˜ๅบฆ้‡่ง†็ŽฏๅขƒไฟๆŠคๅทฅไฝœ๏ผŒ้‡‡ๅ–ๆœ‰ๆ•ˆๆŽชๆ–ฝไธๆ–ญๆ้ซ˜็Žฏๅขƒ...
+ 2 600615.SH ไธฐๅŽ่‚กไปฝ ๅ…ฌๅธ้•ๅˆ้‡‘็ญ‰ๆๆ–™ๅœจๆœบๅ™จไบบ่กŒไธšๅบ”็”จๅ‰ๆ™ฏ่ฟœๅคงใ€‚ๅ…ฌๅธๆ˜ฏไธๆ˜ฏๅฏไปฅ่€ƒ่™‘ๅŠ ๅคงๅœจๆœบๅ™จไบบๆ–น้ข็š„ๆˆ˜็•ฅๅธƒๅฑ€๏ผŸ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผ้•ๅˆ้‡‘ๆๆ–™ๅœจ่ฝป้‡ๅŒ–ๆ–น้ขๅบ”็”จ้ข†ๅŸŸๅฎฝๆณ›๏ผŒ็›ฎๅ‰ๅ…ฌๅธ็š„้•ๅˆ้‡‘ไบงๅ“ไธป่ฆๅบ”็”จไบŽไบค้€šๅทฅๅ…ท...
+ 3 601121.SH ๅฎๅœฐ็Ÿฟไธš ๅฆ‚ๆžœๅฎๅœฐ็Ÿฟไธš่‘ฃไบ‹ไผš็œ‹ๅฅฝ่‡ชๅทฑๅ…ฌๅธ็š„ๆŠ•่ต„ไปทๅ€ผ๏ผŒไธบไป€ไนˆๅฎๅฏๅง”ๆ‰˜็”ณไธ‡ๅฎๆบ่ฏๅˆธๆŠ•่ต„็†่ดข๏ผŒไนŸไธ็”จ่‡ชๆœ‰่ต„้‡‘... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝใ€‚ๆ„Ÿ่ฐขๆ‚จๅฏนๅฎๅœฐ็Ÿฟไธš็š„ๅ…ณๆณจไธŽๅปบ่ฎฎใ€‚ๅ…ฌๅธๅง‹็ปˆ็ง‰ๆŒ็จณๅฅ็š„่ดขๅŠก็ฎก็†ๅ’Œ่ต„้‡‘ไฝฟ็”จๅŽŸๅˆ™๏ผŒ...
+ 4 600615.SH ไธฐๅŽ่‚กไปฝ ๅฐŠๆ•ฌ็š„่‘ฃ็ง˜ๆ‚จๅฅฝ๏ผŒๆฎๆŠฅ้“ไบบๅฝขๆœบๅ™จไบบๆ‰€ไฝฟ็”จ้™คpeekๆๆ–™ไน‹ๅค–๏ผŒๆœ€ๅคš็š„ๅฐฑๆ˜ฏ้•ๅˆ้‡‘็›ธๅ…ณๆ่ดจ๏ผŒ่ฏท้—ฎๅ…ฌๅธ... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผ็›ฎๅ‰ๅ…ฌๅธๆฒกๆœ‰ไบบๅฝขๆœบๅ™จไบบ้กน็›ฎๅ‚จๅค‡๏ผŒๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจ๏ผ
+ .. ... ... ... ...
+ 95 600423.SH ๆŸณๅŒ–่‚กไปฝ ้ข†ๅฏผๆ‚จๅฅฝ๏ผๆˆ‘ๆ˜ฏไธ€ๅๅฟƒ็ณป็Žฏๅขƒ็š„ๆ™ฎ้€šๅฑ…ๆฐ‘๏ผŒ้•ฟๆœŸๅฏน็ฉบๆฐ”ๆฑกๆŸ“้—ฎ้ข˜ไฟๆŒ้ซ˜ๅบฆๅ…ณๆณจใ€‚่ฏท้—ฎ่ดตๅ…ฌๅธๅœจ็”Ÿไบง่ฟ‡็จ‹ไธญ... ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผๅ…ฌๅธๅๅˆ†้‡่ง†็Žฏๅขƒ้—ฎ้ข˜๏ผŒ็งฏๆžๆŽจๅŠจ่Š‚่ƒฝๅ‡ๆŽ’็†ๅฟต๏ผŒไธ‰ๅบŸๆŽ’ๆ”พไธฅๆ ผๆŒ‰็…งๅ›ฝๅฎถๆ ‡ๅ‡†ๆ‰ง่กŒ๏ผŒๅ…ทไฝ“...
+ 96 600190.SH ST้”ฆๆธฏ ๅ…ฌๅธ่‘ฃไบ‹ไผš๏ผŒไฝ ๅ…ฌๅธ2024ไน‹ๅ‰้—ฎ้ข˜ๅพˆๅคง๏ผŒๆถ‰ๅˆ‘ไบ‹็ญ‰ไผ—ๅคš้—ฎ้ข˜๏ผŒๅ…ฌๅธๅฟ…้กปๅ‘ๅธƒๆˆ–้…ๅˆๅฝปๆŸฅไธš็ปฉๅทจไบ้—ฎ้ข˜... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผๅ…ฌๅธๅฏน็›ธๅ…ณไบ‹้กน่ฟ›ๅฑ•ๅฐ†ๅŠๆ—ถๅฑฅ่กŒไฟกๆฏๆŠซ้œฒไน‰ๅŠก๏ผŒ่ฏทไปฅๅ…ฌๅธๅฏนๅค–ๆŠซ้œฒ็š„ๅ…ฌๅ‘Šไธบๅ‡†๏ผŒๆ„Ÿ...
+ 97 688120.SH ๅŽๆตทๆธ…็ง‘ ไฝ ๅ…ฌๅธๅœจๅ›ฝๅ†…่กŒไธš็š„็ซžไบ‰ไผ˜ๅŠฟๆœ‰ๅ“ชไบ›๏ผŸๆ˜ฏๅฆๅฐ†่ฟ™ไบ›ไผ˜ๅŠฟ่ฝฌๅŒ–ไธบไบ†ๅ…ฌๅธ็š„ๅ‘ๅฑ•ๆˆๆžœ๏ผŸ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผๅ…ฌๅธๆ˜ฏไธ€ๅฎถๆ‹ฅๆœ‰ๆ ธๅฟƒ่‡ชไธป็Ÿฅ่ฏ†ไบงๆƒ็š„้ซ˜็ซฏๅŠๅฏผไฝ“่ฃ…ๅค‡ๅˆถ้€ ๅ•†๏ผŒไบงๅ“ไธป่ฆๅบ”็”จไบŽ่Šฏ็‰‡ๅˆถ...
+ 98 688120.SH ๅŽๆตทๆธ…็ง‘ ไฝ ๅ…ฌๅธ่ขซ็œ‹ๅฅฝๆˆ–่ฎคๅฏ็š„ๅœฐๆ–นๅœจๅ“ช้‡Œ๏ผŸ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผๅ…ฌๅธๆ˜ฏไธ€ๅฎถๆ‹ฅๆœ‰ๆ ธๅฟƒ่‡ชไธป็Ÿฅ่ฏ†ไบงๆƒ็š„้ซ˜็ซฏๅŠๅฏผไฝ“่ฃ…ๅค‡ๅˆถ้€ ๅ•†๏ผŒไบงๅ“ไธป่ฆๅบ”็”จไบŽ่Šฏ็‰‡ๅˆถ...
+ 99 600630.SH ้พ™ๅคด่‚กไปฝ ่ฏท้—ฎๅ…ฌๅธๆŽฅๅ…ฅๅพฎไฟกๅฐๅบ—ๅทฒๆœ‰ไธ€ๆฎตๆ—ถ้—ด๏ผŒ่ฏท้—ฎๅพฎไฟกๅฐๅบ—็š„้”€ๅ”ฎๆƒ…ๅ†ตๅฆ‚ไฝ•๏ผŸ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผๅ…ฌๅธๆ——ไธ‹ไธ‰ๆžชๅ“็‰Œ็›ฎๅ‰ๅทฒๅ…ฅ้ฉปๅพฎไฟก็ฌฌไธ‰ๆ–นๅนณๅฐๆœ‰่ตžๅ•†ๅŸŽใ€‚ๆ‚จๅฏๅœจๅพฎไฟกๅฐ็จ‹ๅบๆœ็ดขโ€œ...
+
+
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\210\270\345\225\206\347\240\224\347\251\266\346\212\245\345\221\212.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\210\270\345\225\206\347\240\224\347\251\266\346\212\245\345\221\212.md"
new file mode 100644
index 000000000..1d42edc01
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\210\270\345\225\206\347\240\224\347\251\266\346\212\245\345\221\212.md"
@@ -0,0 +1,71 @@
+# ๅˆธๅ•†็ ”็ฉถๆŠฅๅ‘Š
+
+
+ๆŽฅๅฃ๏ผšresearch_report
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆธๅ•†็ ”็ฉถๆŠฅๅ‘Š-ไธช่‚กใ€่กŒไธš็ญ‰๏ผŒๅކๅฒๆ•ฐๆฎไปŽ20170101ๅผ€ๅง‹ๆไพ›๏ผŒๅขž้‡ๆฏๅคฉไธคๆฌกๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–ๅˆธๅ•†ๅ็งฐไปฃ็ ๅพช็Žฏๆๅ–๏ผŒๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ็ ”ๆŠฅๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ็ ”ๆŠฅๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ ”ๆŠฅ็ป“ๆŸๆ—ฅๆœŸ
+report_type | str | N | ็ ”ๆŠฅ็ฑปๅˆซ๏ผšไธช่‚ก็ ”ๆŠฅ/่กŒไธš็ ”ๆŠฅ
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+inst_csname | str | N | ๅˆธๅ•†ๅ็งฐ
+ind_name | str | N | ่กŒไธšๅ็งฐ
+
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+trade_date | str | Y | ็ ”ๆŠฅๅ‘ๅธƒๆ—ถ้—ด
+abstr | str | Y | ็ ”ๆŠฅๆ‘˜่ฆ
+title | str | Y | ็ ”ๆŠฅๆ ‡้ข˜
+report_type | str | Y | ็ ”ๆŠฅ็ฑปๅˆซ
+author | str | Y | ไฝœ่€…
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+inst_csname | str | Y | ๆœบๆž„็ฎ€็งฐ
+ind_name | str | Y | ่กŒไธšๅ็งฐ
+url | str | Y | ไธ‹่ฝฝ้“พๆŽฅ
+
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2026ๅนด1ๆœˆ21ๆ—ฅๅˆธๅ•†็ ”ๆŠฅๆ•ฐๆฎ
+df = pro.research_report(trade_date='20260121', fields='trade_date,file_name,author,inst_csname')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date file_name author inst_csname
+ 0 20260121 ไธœๅด่ฏๅˆธ_2025ๅนดไธš็ปฉ้ข„ๅขž็‚น่ฏ„๏ผšฮฑไธŽฮฒๅ…ฑๆŒฏ๏ผŒ้ชŒ่ฏ้‡‘่žไฟกๆฏๆœๅŠก้พ™ๅคด้ซ˜ๅผนๆ€ง_20260121.pdf ๅญ™ๅฉท,ๅผ ่‰ฏๅซ,ๆญฆๆฌฃๅง ไธœๅด่ฏๅˆธ
+ 1 20260121 ไธ–็บช่ฏๅˆธ_TMT่กŒไธšๅ‘จๆŠฅ๏ผˆ1ๆœˆ็ฌฌ2ๅ‘จ๏ผ‰๏ผš้˜ฟ้‡ŒๅทดๅทดไธพๅŠžๅƒ้—ฎไบงๅ“ๅ‘ๅธƒไผš_20260121.pdf ๆŽๆ—ถๆจŸ,็ฝ—ๆ™ด ไธ–็บช่ฏๅˆธ
+ 2 20260121 ไธญ้“ถ่ฏๅˆธ_ๆ”ถ่ดญDFSๅคงไธญๅŽๅŒบไธšๅŠก๏ผŒๆบๆ‰‹LVMH๏ผŒๅ…จ้ขๆทฑๅŒ–ๅ›ฝ้™…ไธšๅŠกๅธƒๅฑ€_20260121.pdf ๆŽๅฐๆฐ‘,ๅฎ‹็Žฏ็ฟ” ไธญ้“ถ่ฏๅˆธ
+ 3 20260121 ๅ›ฝ้‡‘่ฏๅˆธ_ๆ”ถ่ดญDFSๅคงไธญๅŽๅŒบไธšๅŠก๏ผŒๆˆ˜็•ฅๅˆไฝœLVMH_20260121.pdf ไบŽๅฅ,่ฐทไบฆๆธ… ๅ›ฝ้‡‘่ฏๅˆธ
+ 4 20260121 ๅคชๅนณๆด‹_ไธœๆ˜ŸๅŒป็–—๏ผšๅพฎๅˆ›ๅค–็ง‘ๅนณๅฐๅž‹ๅฐๅทจไบบ๏ผŒๅคšๅ…ƒๅธƒๅฑ€ไฟƒๅ‘ๅฑ•_20260121.pdf ่ฐญ็ดซๅชš,ๆŽๅ•ธๅฒฉ ๅคชๅนณๆด‹
+ .. ... ... ... ...
+ 80 20260121 ไธญๅ›ฝ้“ถๆฒณ_ๅ•†ไธš่ˆชๅคฉ็ณปๅˆ—ๆŠฅๅ‘Šไน‹ไธ€๏ผšไปฐๆœ›ๆ˜Ÿ็ฉบ๏ผŒๅ‘ๅคฉ็ชๅ›ด_20260121.pdf ๆŽ่‰ฏ,่ƒกๆตฉๆทผ ไธญๅ›ฝ้“ถๆฒณ
+ 81 20260121 ่…พๆ™ฏๆ•ฐ็ ”_2025ๅนดๅ…จ็ƒๆธ…ๆด็”ตๅ™จๅ‘ๅฑ•ๆŠฅๅ‘Š๏ผšๅธ‚ๅœบๆˆ้•ฟ้•ฟๆœŸๅ‘ๅฅฝ ่กŒไธš่ฟ›ๅŒ–ๅ€ผๅพ—ๆœŸๅพ…_2026012... ้ฉฌไฝณ ่…พๆ™ฏๆ•ฐ็ ”
+ 82 20260121 ๅคชๅนณๆด‹_ๅ†œไธšๅ‘จๆŠฅ๏ผš็Œชไปทๆ—บๅญฃๅๅผน๏ผŒไบง่ƒฝๆŒ็ปญๅŽปๅŒ–_20260121.pdf ็จ‹ๆ™“ไธœ ๅคชๅนณๆด‹
+ 83 20260121 ไธœๅด่ฏๅˆธ_2025ๅนดไธš็ปฉ้ข„ๅ‘Š็‚น่ฏ„๏ผš่ดŸๆž็›ˆๅˆฉๆ‹็‚นๅทฒ็Žฐ๏ผŒๅคšไธšๅŠกๆฟๅ—ๆŒ็ปญๅ‘ๅฅฝ_20260121.pdf ๆ›พๆœต็บข,้˜ฎๅทง็‡•,ๅฒณๆ–ฏ็‘ถ ไธœๅด่ฏๅˆธ
+ 84 20260121 ไธญๅ›ฝ้“ถๆฒณ_ๆบๆ‰‹DFS+LVMH๏ผŒ้ซ˜็ซฏๅค่‹+ๅ›ฝ่ดงๅ‡บๆตทๅนณๅฐ้€ป่พ‘ๅผบๅŒ–_20260121.pdf ้กพ็†น้—ฝ ไธญๅ›ฝ้“ถๆฒณ
+
+ [85 rows x 4 columns]
+
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\233\275\345\256\266\346\224\277\347\255\226\345\272\223.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\233\275\345\256\266\346\224\277\347\255\226\345\272\223.md"
new file mode 100644
index 000000000..c4710b15f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\345\233\275\345\256\266\346\224\277\347\255\226\345\272\223.md"
@@ -0,0 +1,68 @@
+# ๅ›ฝๅฎถๆ”ฟ็ญ–ๆณ•่ง„ๅบ“
+
+### ๆŽฅๅฃไป‹็ป
+<font color="red">
+ไธบๆ›ดๅฅฝๅœฐๅญฆไน ๅ’Œ็†Ÿๆ‚‰ๅ›ฝๅฎถๆœ‰ๅ…ณ้ƒจ้—จๅ‘ๅธƒ็š„ๆ”ฟ็ญ–ๆณ•่ง„ๅ’Œๅ„็ฑปๆ‰นๅคๆ„่ง๏ผŒๅŒๆ—ถไธบๅคง่ฏญ่จ€ๆจกๅž‹ๆไพ›ๆ›ด็ฒพๅ‡†็š„่ฏญๆ–™ๅ’Œไธ“ไธš็Ÿฅ่ฏ†ๅบ“๏ผŒๆˆ‘ไปฌๆœ้›†ๆ•ด็†ไบ†็”ฑๅ›ฝๅฎถๆœ‰ๅ…ณ้ƒจ้—จ**ๅ…ฌๅผ€ๆŠซ้œฒ**็š„ๆ”ฟ็ญ–ๆณ•่ง„ๆ–‡ไปถ๏ผŒๆ‰€ๆœ‰ๆ–‡ๅญ—ๅ‡ไธบๅŽŸๅง‹่พ“ๅ‡บ๏ผŒๆœชไฝœไปปไฝ•ไบŒๆฌกๅŠ ๅทฅๅค„็†๏ผŒๅŒๆ—ถๆไพ›ๅŽŸๅง‹ๅ‡บๅค„ใ€‚
+</font>
+
+ๆŽฅๅฃ๏ผšnpr๏ผŒ๏ผˆNational Policy Repository๏ผ‰
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ›ฝๅฎถ่กŒๆ”ฟๆœบๅ…ณๅ…ฌๅผ€ๆŠซ้œฒ็š„ๅ„็ฑปๆณ•่ง„ใ€ๆกไพ‹ๆ”ฟ็ญ–ใ€ๆ‰นๅคใ€้€š็Ÿฅ็ญ‰ๆ–‡ๆœฌๆ•ฐๆฎใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง500ๆก๏ผŒๅฏๆ นๆฎๅ‚ๆ•ฐๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+
+### ่พ“ๅ…ฅๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ | ๅฏ้€‰ๅ†…ๅฎน
+---- | ----- | ---- | ---- | ----
+org | str | N | ๅ‘ๅธƒๆœบๆž„ | ๅ›ฝๅŠก้™ขๅŠžๅ…ฌๅŽ…/ๅ›ฝๅŠก้™ขๅŠžๅ…ฌๅŽ…/ๅ›ฝๅŠก้™ขใ€ไธญๅคฎๅ†›ๅง”/ๅ›ฝๅŠก้™ขๅบ”ๆ€ฅ็ฎก็†ๅŠžๅ…ฌๅฎค
+start_date | datetime | N | ๅ‘ๅธƒๅผ€ๅง‹ๆ—ถ้—ด | ๆ ผๅผๆ ทไพ‹๏ผš2024-11-21 00:00:00
+end_date | datetime | N | ๅ‘ๅธƒ็ป“ๆŸๆ—ถ้—ด| ๆ ผๅผๆ ทไพ‹๏ผš2024-11-28 00:00:00
+ptype | str | N | ็ฑปๅž‹ | ๅฏนๅค–็ป่ดธๅˆไฝœ/ๅ†œไธšใ€็•œ็‰งไธšใ€ๆธ”ไธš/ๆตทๅ…ณ/ๅŸŽๅธ‚่ง„ๅˆ’/ๅœŸๅœฐ/็ง‘ๆŠ€/ๆ•™่‚ฒ/ๅซ็”Ÿ/ๆฐ‘่ˆช ็ญ‰110็ฑป
+
+<br>
+
+### ่พ“ๅ‡บๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+pubtime | datetime | Y | ๅ‘ๅธƒๆ—ถ้—ด
+title | str | Y | ๆ ‡้ข˜
+url | str | N | ๆ”ฟ็ญ–ๆ–‡ไปถurl
+content_html | str | N | ๆญฃๆ–‡ๅ†…ๅฎน
+pcode | str | Y | ๅ‘ๆ–‡ๅญ—ๅท
+puborg | str | Y | ๅ‘ๆ–‡ๆœบๅ…ณ
+ptype | str | Y | ไธป้ข˜ๅˆ†็ฑป
+
+<br>
+
+### ไปฃ็ ็คบไพ‹
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็”ฑๅ›ฝๅŠก้™ขๅ‘ๅธƒ็š„็›ธๅ…ณๆ”ฟ็ญ–ๆ–‡ไปถ
+df = pro.npr(org='ๅ›ฝๅŠก้™ข')
+
+#่Žทๅ–็”ฑโ€œๅ›ฝๅŠก้™ขโ€ๅ‘ๅธƒ็š„โ€œ็ง‘ๆŠ€โ€็›ธๅ…ณๆ”ฟ็ญ–ๅ’Œๆ‰นๅคๆ–‡ไปถ
+df = pro.npr(org='ๅ›ฝๅŠก้™ข',
+ ptype='็ง‘ๆŠ€',
+ end_date='2025-08-26 17:00:00',
+ fields='pubtime,title,pcode')
+```
+<br>
+
+
+### ๆ•ฐๆฎ็ป“ๆžœ
+
+ pubtime title pcode
+ 0 2025-08-26 17:00:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽๆทฑๅ…ฅๅฎžๆ–ฝโ€œไบบๅทฅๆ™บ่ƒฝ+โ€่กŒๅŠจ็š„ๆ„่ง ๅ›ฝๅ‘ใ€”2025ใ€•11ๅท
+ 1 2024-11-14 19:00:00 ๅ›ฝๅฎถ่‡ช็„ถ็ง‘ๅญฆๅŸบ้‡‘ๆกไพ‹ ๅ›ฝไปค็ฌฌ796ๅท
+ 2 2024-05-30 18:57:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽไฟฎๆ”นใ€Šๅ›ฝๅฎถ็ง‘ๅญฆๆŠ€ๆœฏๅฅ–ๅŠฑๆกไพ‹ใ€‹็š„ๅ†ณๅฎš ๅ›ฝไปค็ฌฌ782ๅท
+ 3 2023-08-29 16:55:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽๅฐๅ‘ใ€Šๆฒณๅฅ—ๆทฑๆธฏ็ง‘ๆŠ€ๅˆ›ๆ–ฐๅˆไฝœๅŒบๆทฑๅœณๅ›ญๅŒบๅ‘ๅฑ•่ง„ๅˆ’ใ€‹็š„้€š็Ÿฅ ๅ›ฝๅ‘ใ€”2023ใ€•12ๅท
+ 4 2023-06-16 16:57:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽๅŒๆ„้˜ฟๅ…‹่‹้˜ฟๆ‹‰ๅฐ”้ซ˜ๆ–ฐๆŠ€ๆœฏไบงไธšๅผ€ๅ‘ๅŒบๅ‡็บงไธบๅ›ฝๅฎถ้ซ˜ๆ–ฐๆŠ€ๆœฏไบงไธšๅผ€ๅ‘ๅŒบ็š„ๆ‰นๅค ๅ›ฝๅ‡ฝใ€”2023ใ€•48ๅท
+ .. ... ... ...
+ 111 2008-03-28 08:00:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽๅŒๆ„ไธŠๆตท้ซ˜ๆ–ฐๆŠ€ๆœฏไบงไธšๅผ€ๅ‘ๅŒบๆ›ดๅไธบไธŠๆตทๅผ ๆฑŸ้ซ˜ๆ–ฐๆŠ€ๆœฏไบงไธšๅผ€ๅ‘ๅŒบ็š„ๆ‰นๅค ๅ›ฝๅ‡ฝใ€”2006ใ€•14ๅท
+ 112 2008-03-28 08:00:00 ๅ›ฝๅฎถ่‡ช็„ถ็ง‘ๅญฆๅŸบ้‡‘ๆกไพ‹ ๅ›ฝไปค็ฌฌ487ๅท
+ 113 2008-03-28 08:00:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽ2002ๅนดๅบฆๅ›ฝๅฎถ็ง‘ๅญฆๆŠ€ๆœฏๅฅ–ๅŠฑ็š„ๅ†ณๅฎš ๅ›ฝๅ‘ใ€”2003ใ€•4ๅท
+ 114 2008-03-28 08:00:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽๅฐๅ‘ๅ…จๆฐ‘็ง‘ๅญฆ็ด ่ดจ่กŒๅŠจ่ฎกๅˆ’็บฒ่ฆ(2006โ€”2010โ€”2020ๅนด)็š„้€š็Ÿฅ ๅ›ฝๅ‘ใ€”2006ใ€•7ๅท
+ 115 2008-03-28 08:00:00 ๅ›ฝๅŠก้™ขๅ…ณไบŽ2005ๅนดๅบฆๅ›ฝๅฎถ็ง‘ๅญฆๆŠ€ๆœฏๅฅ–ๅŠฑ็š„ๅ†ณๅฎš ๅ›ฝๅ‘ใ€”2006ใ€•2ๅท
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\345\277\253\350\256\257(\347\237\255\350\256\257).md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\345\277\253\350\256\257(\347\237\255\350\256\257).md"
new file mode 100644
index 000000000..10a91991c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\345\277\253\350\256\257(\347\237\255\350\256\257).md"
@@ -0,0 +1,76 @@
+## ๆ–ฐ้—ปๅฟซ่ฎฏ
+----
+
+ๆŽฅๅฃ๏ผšnews
+ๆ่ฟฐ๏ผš่Žทๅ–ไธปๆตๆ–ฐ้—ป็ฝ‘็ซ™็š„ๅฟซ่ฎฏๆ–ฐ้—ปๆ•ฐๆฎ,ๆไพ›่ถ…่ฟ‡6ๅนดไปฅไธŠๅކๅฒๆ–ฐ้—ปใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1500ๆกๆ–ฐ้—ป๏ผŒๅฏๆ นๆฎๆ—ถ้—ดๅ‚ๆ•ฐๅพช็Žฏๆๅ–ๅކๅฒ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+start_date | datetime | Y | ๅผ€ๅง‹ๆ—ฅๆœŸ(ๆ ผๅผ๏ผš2018-11-20 09:00:00๏ผ‰
+end_date | datetime | Y | ็ป“ๆŸๆ—ฅๆœŸ
+src | str | Y | ๆ–ฐ้—ปๆฅๆบ ่งไธ‹่กจ
+
+<br>
+
+ๆ•ฐๆฎๆบ
+
+| ๆฅๆบๅ็งฐ | srcๆ ‡่ฏ† | ๆ่ฟฐ |
+| -------- | -------- | -------- |
+| ๆ–ฐๆตช่ดข็ป | sina | ่Žทๅ–ๆ–ฐๆตช่ดข็ปๅฎžๆ—ถ่ต„่ฎฏ |
+| ๅŽๅฐ”่ก—่ง้—ป | wallstreetcn | ๅŽๅฐ”่ก—่ง้—ปๅฟซ่ฎฏ |
+| ๅŒ่Šฑ้กบ | 10jqka | ๅŒ่Šฑ้กบ่ดข็ปๆ–ฐ้—ป |
+| ไธœๆ–น่ดขๅฏŒ | eastmoney | ไธœๆ–น่ดขๅฏŒ่ดข็ปๆ–ฐ้—ป
+| ไบ‘่ดข็ป | yuncaijing | ไบ‘่ดข็ปๆ–ฐ้—ป
+| ๅ‡คๅ‡ฐๆ–ฐ้—ป | fenghuang | ๅ‡คๅ‡ฐๆ–ฐ้—ป
+| ้‡‘่ž็•Œ | jinrongjie | ้‡‘่ž็•Œๆ–ฐ้—ป
+| ่ดข่”็คพ | cls| ่ดข่”็คพๅฟซ่ฎฏ
+| ็ฌฌไธ€่ดข็ป | yicai | ็ฌฌไธ€่ดข็ปๅฟซ่ฎฏ
+
+
+<br>
+<br>
+ๆ—ฅๆœŸ่พ“ๅ…ฅ่ฏดๆ˜Ž๏ผš
+<br><br>
+
+* ๆ—ถ้—ดๅ‚ๆ•ฐๆ ผๅผไพ‹ๅญ๏ผšstart_date='2018-11-20 09:00:00', end_date='2018-11-20 22:05:03'
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+datetime | str | Y | ๆ–ฐ้—ปๆ—ถ้—ด
+content | str | Y | ๅ†…ๅฎน
+title | str | Y | ๆ ‡้ข˜
+channels | str | N | ๅˆ†็ฑป
+
+
+<br><br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.news(src='sina', start_date='2018-11-21 09:00:00', end_date='2018-11-22 10:10:00')
+
+```
+
+<br><br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+<img src="https://tushare.pro/files/img/news_sp.png">
+
+<br><br>
+
+ๆ›ดๅคšๆ•ฐๆฎ้ข„่งˆ๏ผŒ่ฏท็‚นๅ‡ป็ฝ‘็ซ™ๅคด้ƒจ่œๅ•็š„[่ต„่ฎฏๆ•ฐๆฎ](https://tushare.pro/news)ใ€‚
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\350\201\224\346\222\255\346\226\207\345\255\227\347\250\277.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\350\201\224\346\222\255\346\226\207\345\255\227\347\250\277.md"
new file mode 100644
index 000000000..55242514b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\350\201\224\346\222\255\346\226\207\345\255\227\347\250\277.md"
@@ -0,0 +1,74 @@
+## ๆ–ฐ้—ป่”ๆ’ญ
+----
+<font color="red">
+ไธบไบ†ๆ›ดๅŠ ๆทฑๅ…ฅๅœฐๅญฆไน ่ดฏๅฝปๆˆ‘ๅ…š็š„้‡่ฆๆŒ‡็คบ็ฒพ็ฅž๏ผŒๅˆฉ็”จๆ–ฐๆ—ถไปฃ็š„ๆ–ฐๆŠ€ๆœฏๅผ˜ๆ‰ฌ็คพไผšไธปไน‰ๆ–ฐไปทๅ€ผ่ง‚๏ผŒ็‰นๅœฐๆ•ด็†ไบ†่ฟ‡ๅŽปๅๅนดๆ–ฐ้—ป่”ๆ’ญ็š„ๆ–‡ๅญ—็จฟไพ›ๅคงๅฎถ็ ”็ฉถใ€ๅ‚่€ƒๅญฆไน ใ€‚ๅธŒๆœ›ๅคงๅฎถ้ข†ๆ‚Ÿๅœจๅฟƒ๏ผŒๅฎžๅŠกๅœจ่กŒ๏ผŒๅŒๆ—ถไนŸๅˆซๅฟ˜ไบ†ๆŠ“ไฝๆŠ•่ต„ๆœบไผšใ€‚
+</font>
+
+<br>
+<br>
+
+ๆŽฅๅฃ๏ผšcctv_news
+ๆ่ฟฐ๏ผš่Žทๅ–ๆ–ฐ้—ป่”ๆ’ญๆ–‡ๅญ—็จฟๆ•ฐๆฎ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2017ๅนดใ€‚
+้™้‡๏ผšๅฏๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ๏ผˆ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD ๆฏ”ๅฆ‚๏ผš20181211๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+title | str | Y | ๆ ‡้ข˜
+content | str | Y | ๅ†…ๅฎน
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2018ๅนด12ๆœˆ11ๆ—ฅๆ–ฐ้—ป่”ๆ’ญๆ–‡ๅญ—็จฟๅ†…ๅฎน
+df = pro.cctv_news(date='20181211')
+
+```
+
+<br><br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ๆˆ‘ไปฌๅฏนๆ–ฐ้—ป่”ๆ’ญ่ฟ›่กŒไบ†ๅˆ†ๆฎตๅค„็†๏ผŒๅณๆฏไธ€ไธชๅคงๆฎต้ƒฝๅŠ ไบ†ๆ ‡้ข˜ๅค„็†๏ผŒไพฟไบŽๅคงๅฎถ้€‰ๆ‹ฉๅ’Œ่ฟ‡ๆปค๏ผŒไนŸๅฏไปฅๅˆๆˆๅˆฐไธ€่ตท่ฟ›่กŒๅˆ†ๆžใ€‚
+
+<img src="https://tushare.pro/files/img/cctv_news.png">
+
+
+<br>
+<br>
+
+ content
+ 0 ไธญๅ…ฑไธญๅคฎๅ…šๅฒๅ’Œๆ–‡็Œฎ็ ”็ฉถ้™ข็ผ–่พ‘็š„ใ€Šไน ่ฟ‘ๅนณ่ฐˆโ€œไธ€ๅธฆไธ€่ทฏโ€ใ€‹ไธ€ไนฆ๏ผŒๅทฒ็”ฑไธญๅคฎๆ–‡็Œฎๅ‡บ็‰ˆ็คพๅ‡บ็‰ˆ๏ผŒๅณๆ—ฅ่ตทๅœจ...
+ 1 ไน ่ฟ‘ๅนณๆ€ปไนฆ่ฎฐ่ง†ๅฏŸๅŒ—ไบฌๆ—ถๅผบ่ฐƒ๏ผŒ่ฆๅšๆŒไบบๆฐ‘ๅŸŽๅธ‚ไธบไบบๆฐ‘๏ผŒไปฅๅŒ—ไบฌๅธ‚ๆฐ‘ๆœ€ๅ…ณๅฟƒ็š„้—ฎ้ข˜ไธบๅฏผๅ‘๏ผŒๅฏนๅคงๆฐ”ๆฑกๆŸ“ใ€...
+ 2 ไธญๅ…ฑไธญๅคฎๆ”ฟๆฒปๅฑ€ๅธธๅง”ใ€ๅ…จๅ›ฝๆ”ฟๅไธปๅธญใ€ไธญๅคฎไปฃ่กจๅ›ขๅ›ข้•ฟๆฑชๆด‹๏ผŒ11ๆ—ฅ็އไธญๅคฎไปฃ่กจๅ›ขไธ€ๅˆ†ๅ›ขๅœจๅ—ๅฎ็œ‹ๆœ›ๆ…ฐ้—ฎ...
+ 3 ่ฟ‘ๆ—ฅ๏ผŒๅ›ฝๅŠก้™ขๅŠžๅ…ฌๅŽ…ๅฐๅ‘ใ€Šๅ…ณไบŽๅ›ฝๅฎถ็ปผๅˆๆ€งๆถˆ้˜ฒๆ•‘ๆด่ฝฆ่พ†ๆ‚ฌๆŒ‚ๅบ”ๆ€ฅๆ•‘ๆดไธ“็”จๅท็‰Œๆœ‰ๅ…ณไบ‹้กน็š„้€š็Ÿฅใ€‹๏ผŒๅฏนๅบ”...
+ 4 ๆ”น้ฉๅผ€ๆ”พ40ๅนด๏ผŒๆˆ‘ๅ›ฝๅฏนๅค–่ดธๆ˜“ๅฎž็Žฐๅކๅฒๆ€ง่ทจ่ถŠ๏ผŒๅค–ๅ•†ๆŠ•่ต„็ŽฏๅขƒๆŒ็ปญๆ”นๅ–„๏ผŒๅฏนๅค–ๆŠ•่ต„ๅˆไฝœๆทฑๅ…ฅๆŽจ่ฟ›ใ€‚ไปŠๅคฉ...
+ 5 ๆญฃๅœจๅ›ฝๅฎถๅš็‰ฉ้ฆ†ไธพ่กŒ็š„ไผŸๅคง็š„ๅ˜้ฉ--ๅบ†็ฅๆ”น้ฉๅผ€ๆ”พ40ๅ‘จๅนดๅคงๅž‹ๅฑ•่งˆ๏ผŒ็”จไธ€ไธชไธชไฝ ๆˆ‘ๅฐๅฎถ็š„ๅ˜ๅŒ–๏ผŒ่ฎฐๅฝ•...
+ 6 ไธบ้š†้‡ๅบ†็ฅๆ”น้ฉๅผ€ๆ”พ40ๅ‘จๅนด๏ผŒๅ…จๆ–นไฝๅฑ•็คบๆ”น้ฉๅผ€ๆ”พๆณขๆพœๅฃฎ้˜”็š„ไผŸๅคงๅކ็จ‹๏ผŒ็”ฑไธญๅคฎๅฎฃไผ ้ƒจใ€ไธญๅคฎๆ”น้ฉๅŠžใ€...
+ 7 ๅ‘ๅฑ•ไธŽๆ”น้ฉ็š„็›ฎๆ ‡๏ผŒๆ˜ฏ่ฎฉ็™พๅง“ๆœ‰ๅนธ็ฆใ€ๅพ—ๅฎžๆƒ ใ€‚ๅœจๅนฟ่ฅฟ๏ผŒ่ฟž็ปญๆŽจ่ฟ›็š„ๆฐ‘็”Ÿๅปบ่ฎพ๏ผŒๆŠŠๆ”นๅ–„ไบบๆฐ‘็”Ÿๆดปใ€ๅขž่ฟ›็™พ...
+ 8 ๅ›ฝๅŠก้™ขๆ–ฐ้—ปๅŠžๅ…ฌๅฎคไปŠๅคฉๅฐฑโ€œๆ”น้ฉๅผ€ๆ”พไธŽ็Ÿฅ่ฏ†ไบงๆƒไบ‹ไธšๅ‘ๅฑ•โ€ไธพ่กŒไธญๅค–่ฎฐ่€…่ง้ขไผš๏ผŒๅ›ฝๅฎถ็Ÿฅ่ฏ†ไบงๆƒ้ข†ๅŸŸไปฃ่กจ...
+ 9 ไธ‰ๅญฃๅบฆๅ›ฝๅฎถ้‡ๅคงๆ”ฟ็ญ–ๆŽชๆ–ฝ่ฝๅฎžๆƒ…ๅ†ต่ทŸ่ธชๅฎก่ฎก็ป“ๆžœๅ‘ๅธƒไธ‰ๅญฃๅบฆๅ›ฝๅฎถ้‡ๅคงๆ”ฟ็ญ–ๆŽชๆ–ฝ่ฝๅฎžๆƒ…ๅ†ต่ทŸ่ธชๅฎก่ฎก็ป“ๆžœ10...
+ 10 10ๆ—ฅ๏ผŒๅœจๆณขๅ…ฐๅกๆ‰˜็ปดๅ…นไธพ่กŒ็š„่”ๅˆๅ›ฝๆฐ”ๅ€™ๅ˜ๅŒ–ๅคงไผšๆœŸ้—ด๏ผŒ็”ฑไธญๅ›ฝๅ‘่ตทๆˆ็ซ‹็š„ๅ…จ็ƒ่ƒฝๆบไบ’่”็ฝ‘ๅ‘ๅฑ•ๅˆไฝœ็ป„...
+ 11 ่‹ฑๅ›ฝ่ฎฎไผšไธ‹้™ขๅŽŸๅฎšไบŽ11ๆ—ฅๅฐฑ่‹ฑๅ›ฝๆ”ฟๅบœไธŽๆฌง็›Ÿๆญคๅ‰่พพๆˆ็š„โ€œ่„ฑๆฌงโ€ๅ่ฎฎ่‰ๆกˆ่ฟ›่กŒๆŠ•็ฅจ่กจๅ†ณ๏ผŒไธ่ฟ‡่‹ฑๅ›ฝ้ฆ–็›ธ...
+ 12 ไนŒๅฐ†็ปˆๆญขใ€ŠไนŒไฟ„ๅ‹ๅฅฝๆก็บฆใ€‹ ไฟ„่กจ้—ๆ†พไนŒๅ…‹ๅ…ฐๆ€ป็ปŸๆณข็ฝ—็”ณ็ง‘10ๆ—ฅ็ญพ็ฝฒไบ†ๅ…ณไบŽไนŒๆ–นๅ†ณๅฎšไธๅ†ๅปถ้•ฟใ€ŠไนŒไฟ„ๅ‹...
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\351\200\232\350\256\257(\351\225\277\347\257\207).md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\351\200\232\350\256\257(\351\225\277\347\257\207).md"
new file mode 100644
index 000000000..ddbd665a7
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\226\260\351\227\273\351\200\232\350\256\257(\351\225\277\347\257\207).md"
@@ -0,0 +1,70 @@
+## ๆ–ฐ้—ป้€š่ฎฏ
+----
+
+ๆŽฅๅฃ๏ผšmajor_news
+ๆ่ฟฐ๏ผš่Žทๅ–้•ฟ็ฏ‡้€š่ฎฏไฟกๆฏ๏ผŒ่ฆ†็›–ไธป่ฆๆ–ฐ้—ป่ต„่ฎฏ็ฝ‘็ซ™๏ผŒๆไพ›่ถ…่ฟ‡8ๅนดๅކๅฒๆ–ฐ้—ปใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง400่กŒ่ฎฐๅฝ•๏ผŒๅฏๅพช็Žฏๆๅ–ไฟๅญ˜ๅˆฐๆœฌๅœฐใ€‚
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃ้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผˆ่ทŸ็งฏๅˆ†ๆฒกๅ…ณ็ณป๏ผ‰๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br><br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+src | str | N | ๆ–ฐ้—ปๆฅๆบ๏ผˆๆ–ฐๅŽ็ฝ‘ใ€ๅ‡คๅ‡ฐ่ดข็ปใ€ๅŒ่Šฑ้กบใ€ๆ–ฐๆตช่ดข็ปใ€ๅŽๅฐ”่ก—่ง้—ปใ€ไธญ่ฏ็ฝ‘ใ€่ดขๆ–ฐ็ฝ‘ใ€็ฌฌไธ€่ดข็ปใ€่ดข่”็คพ๏ผ‰
+start_date | str | N | ๆ–ฐ้—ปๅ‘ๅธƒๅผ€ๅง‹ๆ—ถ้—ด๏ผŒe.g. 2018-11-21 00:00:00
+end_date | str | N | ๆ–ฐ้—ปๅ‘ๅธƒ็ป“ๆŸๆ—ถ้—ด๏ผŒe.g. 2018-11-22 00:00:00
+
+<br><br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+title | str | Y | ๆ ‡้ข˜
+content | str | N | ๅ†…ๅฎน (้ป˜่ฎคไธๆ˜พ็คบ๏ผŒ้œ€่ฆๅœจfields้‡ŒๆŒ‡ๅฎš)
+pub_time | str | Y | ๅ‘ๅธƒๆ—ถ้—ด
+src | str | Y | ๆฅๆบ็ฝ‘็ซ™
+
+
+<br><br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.major_news(src='ๆ–ฐๆตช่ดข็ป', start_date='2018-11-21 00:00:00', end_date='2018-11-22 00:00:00')
+
+#ๆๅ–ๆ–ฐ้—ปๅ†…ๅฎน
+df = pro.major_news(src='ๆ–ฐๆตช่ดข็ป', start_date='2018-11-21 00:00:00', end_date='2018-11-22 00:00:00', fields='title,content')
+```
+
+<br><br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ title ... src_site
+ 0 ๆ—บ่ƒฝ็Žฏๅขƒ๏ผšไธญๆ ‡2.5ไบฟๅ…ƒ่šŒๅŸ ๅธ‚้คๅŽจๅบŸๅผƒ็‰ฉๅŠๆฑกๆณฅๅค„็†็‰น่ฎธ็ป่ฅ้กน็›ฎ ... ็›Š็›Ÿๆ“็›˜ๆ‰‹
+ 1 ๅšไฟก่‚กไปฝ๏ผšๆ‹Ÿ6900ไธ‡ๅ…ƒๅ‡บๅ”ฎๅšๆˆๅธ‚ๆ”ฟ100%่‚กๆƒ ... ็›Š็›Ÿๆ“็›˜ๆ‰‹
+ 2 ็›’้ฉฌ้ฒœ็”Ÿโ€œๆ ‡็ญพ้—จโ€ไพต็Šฏไบ†่ฐ๏ผŸ ... ๆ–ฐๆตช่ดข็ป
+ 3 ็ปๆตŽๆ€งไธไฝณๆˆ–่‡ด็พŽๅคšๅบงๆ ธ็”ต็ซ™ๆๅ‰ๅ…ณๅœ ... ไธญๅ›ฝๅ‚จ่ƒฝ็ฝ‘
+ 4 ๆฑŸๆฃฎ่‡ชๆŽง๏ผšๆ–ฐๆ—ถไปฃๆ™บๆ…งๅŒป้™ข็™ฝ็šฎไนฆ๏ผˆ้™„ไธ‹่ฝฝ๏ผ‰ ... 199IT
+ 5 Gartner L2๏ผšๅชๆœ‰13%็š„ไผไธš่ƒฝๆไพ›ๅ…ทๆœ‰้ซ˜ๅบฆ้’ˆๅฏนๆ€ง็š„ๆถˆๆฏ ... 199IT
+ 6 ๆ‡‚่ฝฆๅธ๏ผš2018ๆฑฝ่ฝฆ่กŒไธšๅคงๆ•ฐๆฎๆŠฅๅ‘Š๏ผˆ้™„ไธ‹่ฝฝ๏ผ‰ ... 199IT
+ 7 ไบ‰่ฎฎไบ”ๆ˜Ÿ้…’ๅบ—โ€œ2000ๅ…ƒโ€็ฝšๅ• ... ๅŒ—ไบฌๅ•†ๆŠฅ
+ 8 ๆŽ่ถ…๏ผšๅŠ ๅฟซๆŽจๅŠจ่ต„ๆœฌๅธ‚ๅœบๆ•ฐๅญ—ๅŒ–่ฝฌๅž‹ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 9 ่ดข้™ฉๅธ‚ๅœบๅ˜้ฉโ€œๅ†ฒๅ‡ปโ€ไผ ็ปŸไผฐๅ€ผๆจกๅž‹ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 10 A่‚กๆ˜ฏ้‡่ฆๆŠ•่ต„ๆ–นๅ‘ไธป่ฆๅ…ณๆณจไธคไธช้ข†ๅŸŸ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 11 ไธ‰ๅญฃๅบฆ็ฝ‘่ดทไบคๆ˜“้‡ๆ™ฎ่ทŒๆ‹ๆ‹่ดทใ€ไนไฟกๆŠ—่ทŒ่ƒฝๅŠ›ๅผบ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 12 ๆœบๆž„ๅ‡็บงๆ™บ่ƒฝไบคๆ˜“ ไธ€้”ฎ่ถ…้ขๅฟซ่ตŽ่ดงๅธๅŸบ้‡‘ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 13 ๅ‘่กŒ่‚กไปฝ้‡็ป„ๅœ็‰Œๆ—ถ้—ดไธ่ถ…่ฟ‡10ไธชไบคๆ˜“ๆ—ฅ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 14 ๆทฑๆฒช่ฏๅˆธๅธ‚ๅœบๆฏๆ—ฅ่กŒๆƒ… ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 15 ๅ…ณไบŽๆ–ฐๅŽๆ’็จณๆทปๅˆฉๅ€บๅˆธๅž‹่ฏๅˆธๆŠ•่ต„ๅŸบ้‡‘ๅขžๅŠ A็ฑปไปฝ้ขๅนถไฟฎๆ”นๅŸบ้‡‘ๅˆๅŒๅ’Œๆ‰˜็ฎกๅ่ฎฎ็š„ๅ…ฌๅ‘Š ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 16 ๅ…ณไบŽๆ–ฐๅขž่ฏบไบšๆญฃ่กŒ๏ผˆไธŠๆตท๏ผ‰ๅŸบ้‡‘้”€ๅ”ฎๆŠ•่ต„้กพ้—ฎๆœ‰้™ๅ…ฌๅธไธบๅฏŒๅฎ‰่พพๆ–ฐๅ…ดๆˆ้•ฟ็ตๆดป้…็ฝฎๆททๅˆๅž‹่ฏๅˆธๆŠ•่ต„ๅŸบ้‡‘ไปฃ... ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 17 ๅŽๅฎๅŸบ้‡‘็ฎก็†ๆœ‰้™ๅ…ฌๅธๅ…ฌๅ‘Š๏ผˆ็ณปๅˆ—๏ผ‰ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 18 ๅ…ดไธš้‘ซๅคฉ็›ˆ่ดงๅธๅธ‚ๅœบๅŸบ้‡‘่ฐƒๆ•ดๅคง้ข็”ณ่ดญ(ๅซ่ฝฌๆข่ฝฌๅ…ฅๅ’ŒๅฎšๆœŸๅฎš้ขๆŠ•่ต„)้™้ข็š„ๅ…ฌๅ‘Š ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 19 ่ดตๅทž็™พ็ตไผไธš้›†ๅ›ขๅˆถ่ฏ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ…ณไบŽ้ƒจๅˆ†่‘ฃไบ‹ใ€็›‘ไบ‹ใ€้ซ˜็บง็ฎก็†ไบบๅ‘˜ใ€่ฏๅˆธไบ‹ๅŠกไปฃ่กจๅขžๆŒๅ…ฌๅธ่‚กไปฝ่ฎก... ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
+ 20 ๅนฟๅทžๆ™บๅ…‰็”ตๆฐ”่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ…ณไบŽๅฌๅผ€ๅ…ฌๅธ2018ๅนด็ฌฌไบ”ๆฌกไธดๆ—ถ่‚กไธœๅคงไผš็š„้€š็Ÿฅ ... ่ฏๅˆธๆ—ถๆŠฅ็ฝ‘
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\267\261\350\257\201\346\230\223\344\272\222\345\212\250\351\227\256\347\255\224.md" "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\267\261\350\257\201\346\230\223\344\272\222\345\212\250\351\227\256\347\255\224.md"
new file mode 100644
index 000000000..580ab3710
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\244\247\346\250\241\345\236\213\350\257\255\346\226\231\344\270\223\351\242\230\346\225\260\346\215\256/\346\267\261\350\257\201\346\230\223\344\272\222\345\212\250\351\227\256\347\255\224.md"
@@ -0,0 +1,82 @@
+## ๆทฑ่ฏไบ’ๅŠจๆ˜“
+----
+
+**ๆŽฅๅฃ**๏ผširm_qa_sz๏ผŒๅކๅฒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2010ๅนด10ๆœˆใ€‚
+**ๆ่ฟฐ**๏ผšไบ’ๅŠจๆ˜“ๆ˜ฏ็”ฑๆทฑไบคๆ‰€ๅฎ˜ๆ–นๆŽจๅ‡บ,ไพ›ๆŠ•่ต„่€…ไธŽไธŠๅธ‚ๅ…ฌๅธ็›ดๆŽฅๆฒŸ้€š็š„ๅนณๅฐ,ไธ€็ซ™ๅผๅ…ฌๅธ่ต„่ฎฏๆฑ‡้›†,ๆไพ›็ฌฌไธ€ๆ‰‹็š„ไบ’ๅŠจ้—ฎ็ญ”ใ€ๆŠ•่ต„่€…ๅ…ณ็ณปไฟกๆฏใ€ๅ…ฌๅธๅฃฐ้Ÿณ็ญ‰ๅ†…ๅฎนใ€‚
+**้™้‡**๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž3000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ๏ผŒๆ—ฅๆœŸ็ญ‰ๅ‚ๆ•ฐๅพช็Žฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+**ๆƒ้™**๏ผš็”จๆˆทๅŽ120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ๏ผŒๆญฃๅผๆƒ้™ไธบ10000็งฏๅˆ†๏ผŒๆˆ–็”ณ่ฏทๅ•็‹ฌๅผ€ๆƒ้™๏ผŒ่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+pub_date | str | N | ๅ‘ๅธƒๅผ€ๅง‹ๆ—ฅๆœŸ(ๆ ผๅผ๏ผš2025-06-03 16:43:03)
+pub_date | str | N | ๅ‘ๅธƒ็ป“ๆŸๆ—ฅๆœŸ(ๆ ผๅผ๏ผš2025-06-03 18:43:23)
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ๅ…ฌๅธๅ็งฐ
+trade_date | str | Y | ๅ‘ๅธƒๆ—ถ้—ด
+q | str | Y | ้—ฎ้ข˜
+a | str | Y | ๅ›žๅค
+pub_time | str | Y | ็ญ”ๅคๆ—ถ้—ด
+industry | str | Y | ๆถ‰ๅŠ่กŒไธš
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2025ๅนด2ๆœˆ12ๆ—ฅๆทฑ่ฏไบ’ๅŠจๆ˜“็š„้—ฎ็ญ”ๆ–‡ๆœฌ
+df = pro.irm_qa_sz(ann_date='20250212')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+<img src='https://tushare.pro/files/web/e.png'>
+
+ ts_code name trade_date q a pub_time industry
+ 0 002254 ๆณฐๅ’Œๆ–ฐๆ 20250212 ่ฏท้—ฎๅฎ‹ๆ€ปๅ…ฌๅธๆœ‰ๆ— F12่Šณ็บถ็š„็ ”็ฉถๆˆๆžœ๏ผŒๆœ‰ๆ— ้€‰ๆ‹ฉไธ€ๅฎถๅพˆๆœ‰ๅ‘ๅฑ•ๅ‰้€”็š„ๅ…ฌๅธๅนถ่ดญ้‡็ป„๏ผŒๆŠŠๅ…ฌๅธๅšๅคงๅšๅผบใ€‚ ๆ‚จๅฅฝ๏ผŒ้žๅธธๆ„Ÿ่ฐขๆ‚จๅฏนๅ…ฌๅธ็š„ๅ…ณๆณจใ€‚ๅ…ฌๅธๆญฃ็ ”ๅ‘็ฑปไผผไบงๅ“๏ผŒไปฅไธฐๅฏŒๅ…ฌๅธ็š„ไบงๅ“ๅ“็ฑปใ€‚่ฐข่ฐข๏ผ 2025-02-12 21:46:32 ๅˆถ้€ ไธš
+ 1 002122 ๆฑ‡ๆดฒๆ™บ่ƒฝ 20250212 ๅฐŠๆ•ฌ็š„่‘ฃ็ง˜๏ผŒ่ƒฝๅฆๅ›ž็ญ”ไธ€ไธ‹๏ผŒๅ…ฌๅธๆŽง่‚กๅญ™ๅ…ฌๅธ็ƒญ็ƒญๆ–‡ๅŒ–ไธŽๅนปๆ–น้‡ๅŒ–ๆ˜ฏๅฆๆœ‰ๅˆไฝœ๏ผŸ ๆ‚จๅฅฝ๏ผŒ็ปๆ ธๆŸฅ๏ผŒๅ…ฌๅธๅŠๆŽง่‚กๅ…ฌๅธ็ƒญ็ƒญๆ–‡ๅŒ–ไธŽโ€œๅนปๆ–น้‡ๅŒ–โ€ๆ— ๅˆไฝœๅ…ณ็ณปใ€‚ใ€Š่ฏๅˆธๆ—ถๆŠฅใ€‹ๅ’Œๅทจๆฝฎ่ต„่ฎฏ็ฝ‘๏ผˆht... 2025-02-12 15:02:17 ๅˆถ้€ ไธš
+ 2 300675 ๅปบ็ง‘้™ข 20250212 ๅ…ฌๅธๅญๅ…ฌๅธ้›„ๅฎ‰็ปฟ็ ”ๆ™บๅบ“ๆœ‰ๆฒกๆทฑๅบฆๅ‚ไธŽ้ƒจ็ฝฒ้›„ๅฎ‰ไธญๅฟƒdeepseekๅปบๆจก๏ผŸ ๆ‚จๅฅฝ๏ผŒๅ…ฌๅธๅŠๅญๅ…ฌๅธ้›„ๅฎ‰็ปฟ็ ”ๆ™บๅบ“ๆœ‰้™ๅ…ฌๅธๆœช็Ÿฅๆ‚‰้—ฎ้ข˜ๆ‰€ๆถ‰ไบ‹้กนใ€‚ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจใ€‚ 2025-02-12 18:31:18 ็ง‘ๅญฆ็ ”็ฉถๅ’ŒๆŠ€ๆœฏๆœๅŠกไธš
+ 3 002531 ๅคฉ้กบ้ฃŽ่ƒฝ 20250212 ๆœฑๆ€ปใ€ๅ’ฑๅ…ฌๅธๅพทๅ›ฝ็š„็”ŸไบงๅŸบๅœฐ่ฟ›ๅฑ•ๅฆ‚ไฝ•โ€ฆ๏ผŸไป€ไนˆๆ—ถๅ€™้‡ไบง๏ผŸๅ’ฑๅ…ฌๅธ่„š่ธๅฎžๅœฐ็จณๆญฅๅ‰่กŒโ€ฆๆ˜ฏๅฆๆ‰“็ฎ—ๅ‘ไธœ็›Ÿๆ‰ฉ... ๆŠ•่ต„่€…ไฝ ๅฅฝ๏ผŒๅพทๅ›ฝๅŸบๅœฐๅปบ่ฎพ้กบๅˆฉๆŽจ่ฟ›๏ผŒๅ…ทไฝ“ๆŠ•ไบงๆ—ถ้—ดไปฅๅฎšๆœŸๆŠฅๅ‘ŠๆŠซ้œฒไธบๅ‡†ใ€‚็›ฎๅ‰ๅ…ฌๅธๆš‚ๆ— ไธœ็›Ÿ็”ŸไบงๅŸบๅœฐไปฅ... 2025-02-12 17:59:40 ๅˆถ้€ ไธš
+ 4 301162 ๅ›ฝ่ƒฝๆ—ฅๆ–ฐ 20250212 ๅฐŠๆ•ฌ็š„่‘ฃ็ง˜ๆ‚จๅฅฝ๏ผŒ็›ฎๅ‰ๅ›ฝๅ†…ไปฅDEEPSEEKไธบไปฃ่กจ็š„ไบบๅทฅๆ™บ่ƒฝๅฟซ้€Ÿๅ‘ๅฑ•๏ผŒๅ…ฌๅธไฝœไธบๅŠŸ็އ้ข„ๆต‹็›ธๅ…ณ็š„ๆœ... ๆ‚จๅฅฝ๏ผŒDeepSeekๅ›ฝไบงๅผ€ๆบๅคงๆจกๅž‹ๅฐ†ไธบไผ—ๅคš็š„่กŒไธšๅบ”็”จๅœจๆŠ€ๆœฏๅˆ›ๆ–ฐไผ˜ๅŒ–ใ€ๆˆๆœฌๆŽงๅˆถๅ’ŒๆœๅŠก่ƒฝๅŠ›ไธŠๅธฆ... 2025-02-12 17:34:33 ไฟกๆฏไผ ่พ“ใ€่ฝฏไปถๅ’ŒไฟกๆฏๆŠ€ๆœฏๆœๅŠกไธš
+ 5 300856 ็ง‘ๆ€่‚กไปฝ 20250212 ่ฏท้—ฎ๏ผŒๆˆช่‡ณ2025ๅนดไบŒๆœˆ 10ๆ—ฅๅ…ฌๅธ็š„่‚กไธœๆ€ปๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ่ฐข่ฐข ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผๆˆช่‡ณ2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅ…ฌๅธ่‚กไธœไบบๆ•ฐไธบ22,400ไฝ™ๆˆทใ€‚ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจ๏ผ 2025-02-12 17:33:46 ๅˆถ้€ ไธš
+ 6 300558 ่ด่พพ่ฏไธš 20250212 ่ฏท้—ฎ่ดตๅ…ฌๅธๆœ€่ฟ‘่‚กไปท็ฆปๅฅ‡่ฟž็ปญๆšด่ทŒ๏ผŒๅ…ฌๅธๆ˜ฏๅฆๅญ˜ๅœจ้‡ๅคง็ป่ฅ้—ฎ้ข˜ๆœชๆŠซ้œฒ๏ผŸ\nๅฆๅค–๏ผŒๅ…ฌๅธๅœจ่ฏ็‰ฉ็ ”ๅ‘ไธŠๆ˜ฏ... ๆ‚จๅฅฝ๏ผ็›ฎๅ‰๏ผŒๅ…ฌๅธ็”Ÿไบง็ป่ฅๆดปๅŠจไธ€ๅˆ‡ๆญฃๅธธ๏ผŒไธๅญ˜ๅœจๅบ”ๆŠซ้œฒๆœชๆŠซ้œฒไบ‹้กนใ€‚็ŸญๆœŸๅ†…่‚กไปทๅ—ๅธ‚ๅœบๅ› ็ด ็ญ‰ๅฝฑๅ“่€Œๆณข... 2025-02-12 17:09:35 ๅˆถ้€ ไธš
+ 7 301399 ่‹ฑ็‰น็ง‘ๆŠ€ 20250212 ๅ…ฌๅธ็›ฎๅ‰่‚กไธœไบบๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ ๆ‚จๅฅฝ๏ผŒๆ นๆฎๅ…ฌๅธ2024ๅนด็ฌฌไธ‰ๅญฃๅบฆๆŠฅๅ‘Š๏ผŒๆŠฅๅ‘ŠๆœŸๆœซๆ™ฎ้€š่‚ก่‚กไธœๆ€ปๆ•ฐไธบ11,007ๆˆทใ€‚ๅ…ฌๅธ่‚กไธœๆˆทๆ•ฐๅฐ†... 2025-02-12 16:02:15 ๅˆถ้€ ไธš
+ 8 300597 ๅ‰ๅคง้€šไฟก 20250212 ไฝ ๅฅฝ๏ผŒ่ฏท้—ฎ่ดตๅ…ฌๅธๆ˜ฏๅฆไธŽ้˜ฟ้‡Œๅทดๅทดๆœ‰ๅˆไฝœ๏ผŸ ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจ๏ผๆˆช่‡ณ็›ฎๅ‰ๅ…ฌๅธไธŽ้˜ฟ้‡Œๅทดๅทดๆš‚ๆ— ็›ดๆŽฅๅˆไฝœใ€‚ 2025-02-12 15:59:17 ไฟกๆฏไผ ่พ“ใ€่ฝฏไปถๅ’ŒไฟกๆฏๆŠ€ๆœฏๆœๅŠกไธš
+ 9 002926 ๅŽ่ฅฟ่ฏๅˆธ 20250212 ๅฐŠๆ•ฌ็š„่‘ฃ็ง˜๏ผŒ่ฏท้—ฎๆˆชๆญข2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๆœ€ๆ–ฐ็š„่‚กไธœๆˆทๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŒ่ฐข่ฐขใ€‚ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๅ…ฌๅธๅœจๅฎšๆœŸๆŠฅๅ‘ŠไธญๆŠซ้œฒ่‚กไธœไบบๆ•ฐ๏ผŒ่ฏท็•™ๆ„ๅ…ฌๅธๅฎšๆœŸๆŠฅๅ‘Šใ€‚ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจใ€‚ 2025-02-12 15:58:48 ้‡‘่žไธš
+ 10 002480 ๆ–ฐ็ญ‘่‚กไปฝ 20250212 ่ฏท้—ฎๆˆชๆญข2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅ…ฌๅธ่‚กไธœไบบๆ•ฐๅคšๅฐ‘๏ผŸ ๆ‚จๅฅฝ๏ผŒๆˆชๆญข2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅ…ฌๅธ่‚กไธœๆˆทๆ•ฐไธบ32,833๏ผŒ่ฐข่ฐขใ€‚ 2025-02-12 15:56:08 ๅˆถ้€ ไธš
+ 11 301125 ่…พไบš็ฒพๅทฅ 20250212 ่ฏท้—ฎ๏ผŒๆˆช่‡ณ2025ๅนดไบŒๆœˆ 10ๆ—ฅๅ…ฌๅธ็š„่‚กไธœๆ€ปๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ่ฐข่ฐข ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผŒๆ นๆฎไธญๅ›ฝ่ฏๅˆธ็™ป่ฎฐ็ป“็ฎ—ๆœ‰้™่ดฃไปปๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธๆœ€ๆ–ฐไธ‹ๅ‘็š„่‚กไธœๅๅ†Œ๏ผŒๆˆช่‡ณ202... 2025-02-12 15:55:07 ๅˆถ้€ ไธš
+ 12 002203 ๆตทไบฎ่‚กไปฝ 20250212 ่‘ฃ็ง˜๏ผš่ดตๅธๆ˜ฏๅ›ฝๅ†…ๅŒ่กŒไธš็š„ๅคด้ƒจไผไธš๏ผŒไธ”ๅœจๅ›ฝ้™…็›ธๅ…ณ่กŒไธšๅ‘ๅฑ•ไธญๆ‹ฅๆœ‰่พƒๅผบ็š„็ซžไบ‰ๅŠ›ๅœฐไฝใ€‚็‰นๅˆซๆ˜ฏ่ฟ‘ๅนดๆฅ๏ผŒ... ๆ‚จๅฅฝ๏ผ้žๅธธๆ„Ÿ่ฐขๆ‚จๅฏนๅ…ฌๅธ็š„ๅ…ณๆณจใ€‚ๅ…ฌๅธ่‚กไปทๅ—ๅคš้‡ๅ› ็ด ๅฝฑๅ“๏ผŒๅญ˜ๅœจ็ŸญๆœŸไธ็กฎๅฎšๆ€งใ€‚ๅ…ฌๅธไธ“ๆณจ่‡ช่บซไธšๅŠกๅ‘ๅฑ•... 2025-02-12 17:02:11 ๅˆถ้€ ไธš
+ 13 003041 ็œŸ็ˆฑ็พŽๅฎถ 20250212 ่ฏท้—ฎ๏ผŒๆˆช่‡ณ2025ๅนดไบŒๆœˆ 10ๆ—ฅๅ…ฌๅธ็š„่‚กไธœๆ€ปๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ่ฐข่ฐข ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผš ๆ„Ÿ่ฐขๆ‚จๅฏน็œŸ็ˆฑ็พŽๅฎถ็š„ๅ…ณๆณจ๏ผ ๆ นๆฎไธญ่ฏ็™ปๆœ€ๆ–ฐๆ•ฐๆฎ๏ผŒๆˆช่‡ณ2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅˆๅนถ... 2025-02-12 15:53:38 ๅˆถ้€ ไธš
+ 14 002182 ๅฎๆญฆ้•ไธš 20250212 ๆ‚จๅฅฝ๏ผ่ฏท้—ฎๆˆช่‡ณ2ๆœˆ10ๆ—ฅๆ”ถ็›˜ๅ…ฌๅธ่‚กไธœไบบๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŒ่ฐข่ฐข๏ผ ๆ‚จๅฅฝ,ๆˆช่‡ณ2025ๅนด2ๆœˆ10ๆ—ฅ็š„่‚กไธœๆˆทๆ•ฐไธบ59093,่ฐข่ฐขใ€‚ 2025-02-12 15:52:07 ๅˆถ้€ ไธš
+ 15 300534 ้™‡็ฅžๆˆŽๅ‘ 20250212 ่‘ฃ็ง˜ๆ‚จๅฅฝ๏ผŒ่ฏท้—ฎๆˆชๆญขๅˆฐ2ๆœˆ10ๆ—ฅๅ…ฌๅธ่‚กไธœไบบๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ่ฐข่ฐขใ€‚ ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…ๆ‚จๅฅฝ๏ผๆ นๆฎไธญๅ›ฝ่ฏๅˆธ็™ป่ฎฐ็ป“็ฎ—ๆœ‰้™่ดฃไปปๅ…ฌๅธๆไพ›็š„ๆ•ฐๆฎ๏ผŒๆˆชๆญข2025ๅนด2ๆœˆ10ๆ—ฅๅ…ฌๅธ่‚ก... 2025-02-12 15:48:30 ๅˆถ้€ ไธš
+ 16 300760 ่ฟˆ็‘žๅŒป็–— 20250212 ๅ…ฌๅธAiๅบ”็”จๆ˜ฏๅฆๅฏไปฅๆŽฅๅ…ฅๆˆ–ๅทฒ็ปๆŽฅๅ…ฅdeepseek๏ผŸ ๆ‚จๅฅฝ๏ผŒ่ฐข่ฐขๅ…ณๆณจใ€‚่ฟˆ็‘ž่‡ดๅŠ›ไบŽๆ‰“้€ ็ง‘ๅฎค็บงๅบ”็”จ็š„ๅž‚็›ดๅคงๆจกๅž‹๏ผŒไปŽๅŸบๅบงๅˆฐๅž‚็›ดๅบ”็”จ๏ผŒ่ฟ™ๆ˜ฏๅ‘ๆŒฅ่ฟˆ็‘žไธดๅบŠไผ˜ๅŠฟ... 2025-02-12 16:56:09 ๅˆถ้€ ไธš
+ 17 000785 ๅฑ…็„ถๆ™บๅฎถ 20250212 ่ดตๅธ้™คไบ†ๅœจๆพณ้—จ๏ผŒๆ–ฐๅŠ ๅกๅ’ŒๆŸฌๅŸ”ๅฏจๆœ‰ๅ–ๅœบ๏ผŒๆŽฅไธ‹ๆฅๅ‡ ๅนด้‡Œ๏ผŒ่ฟ˜ๆœ‰ๆ‰“็ฎ—ๅœจๅ“ชไบ›ๅœฐๆ–นๅผ€ๅบ—็š„่ฎกๅˆ’ๅ—๏ผŸ่ƒฝๅฆ้€้œฒ... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„ไบบๆ‚จๅฅฝ๏ผŒ2024ๅนดๅ…ฌๅธๅ…ˆๅŽๅœจๆŸฌๅŸ”ๅฏจๅ’Œๆพณ้—จๅผ€่ฎพไธคๅฎถๅ–ๅœบ๏ผŒๆ–ฐๅŠ ๅกๆฒกๆœ‰ๅ–ๅœบใ€‚่ฏฆๆƒ…่ฏทๅ…ณๆณจๅ…ฌ... 2025-02-12 15:35:57 ็งŸ่ตๅ’Œๅ•†ๅŠกๆœๅŠกไธš
+ 18 002250 ่”ๅŒ–็ง‘ๆŠ€ 20250212 ๅ…ฌๅธ็š„็ฉบๅ†ท่ฎพๅค‡่ƒฝไธ่ƒฝๅบ”็”จไบŽๆ•ฐๆฎไธญๅฟƒๅ†ทๅด๏ผŸ ๆ‚จๅฅฝ๏ผๅ…ฌๅธไผš็งฏๆžๅขžๅผบ็ ”ๅ‘ๅฎžๅŠ›ๅ’ŒๆŠ€ๆœฏๅ‚จๅค‡๏ผŒๅšๅคงๅšๅผบๅ…ฌๅธไธšๅŠกใ€‚ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจ๏ผ 2025-02-12 16:41:46 ๅˆถ้€ ไธš
+ 19 002387 ็ปดไฟก่ฏบ 20250212 ๅ…ฌๅธ็Žฐๅœจ๏ผŒ่ฟ˜ๆœ‰ๅคšๅฐ‘่‚กๆฐ‘ใ€‚้‡็ป„่ฟ›ๅฑ•ๅˆฐ้‚ฃไธช้˜ถๆฎตไบ†ใ€‚ ๆ„Ÿ่ฐขๆ‚จ็š„ๅ…ณๆณจใ€‚ๆˆช่‡ณ2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅ…ฌๅธ่‚กไธœไบบๆ•ฐไธบ74,343ๆˆทใ€‚ๅ…ฌๅธๆญฃๅœจๆŒ็ปญๆŽจ่ฟ›้‡ๅคง่ต„... 2025-02-12 15:34:59 ๅˆถ้€ ไธš
+ 20 002250 ่”ๅŒ–็ง‘ๆŠ€ 20250212 ่ดตๅธๆœ‰ๆฒกๆœ‰ๆŽฅๅ…ฅDeepseek ๅคงๆจกๅž‹๏ผŸ ๆ‚จๅฅฝ๏ผๅ…ฌๅธๆš‚ๆœชๆŽฅๅ…ฅDeepseek๏ผŒๅ…ฌๅธไผš็งฏๆžๅขžๅผบ็ ”ๅ‘ๅฎžๅŠ›ๅ’ŒๆŠ€ๆœฏๅ‚จๅค‡๏ผŒๅšๅคงๅšๅผบๅ…ฌๅธไธšๅŠกใ€‚ๆ„Ÿ่ฐข... 2025-02-12 16:41:21 ๅˆถ้€ ไธš
+ 21 002567 ๅ”ไบบ็ฅž 20250212 ่‘ฃ็ง˜ไฝ ๅฅฝ ่ฏท้—ฎๅ…ฌๅธ2025ๅนด็”Ÿ็ŒชๅฎŒๅ…จๅ…ปๆฎ–ๆˆๆœฌ็›ฎๆ ‡ๆ˜ฏๅคšๅฐ‘ ่ฐข่ฐขๆ‚จ็š„ๅ…ณๆณจใ€‚ๅ…ฌๅธๅง‹็ปˆ่‡ดๅŠ›ไบŽไฝŽๆˆๆœฌ็”Ÿไบงไฝ“็ณปๅปบ่ฎพ๏ผŒ็›ฎๅ‰ๅ…ฌๅธไธป่ฆ้€š่ฟ‡ไผ˜ๅŒ–้ฅฒๆ–™้…ๆ–นใ€้™ไฝŽๅŽŸๆ–™้‡‡่ดญไปท... 2025-02-12 15:34:27 ๅˆถ้€ ไธš
+ 22 300989 ่•พๅฅฅ่ง„ๅˆ’ 20250212 ่ฏท้—ฎ๏ผŒๆˆช่‡ณ2025ๅนดไบŒๆœˆ 10ๆ—ฅๅ…ฌๅธ็š„่‚กไธœๆ€ปๆ•ฐๆ˜ฏๅคšๅฐ‘๏ผŸ่ฐข่ฐข ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝ๏ผๆˆชๆญข่‡ณ2025ๅนด2ๆœˆ10ๆ—ฅ๏ผŒๅ…ฌๅธ่‚กไธœๆ€ปๆˆทๆ•ฐ9,267ๆˆท๏ผŒๅ…ถไธญๆœบๆž„่‚กไธœๆ€ปๆˆท... 2025-02-12 15:30:46 ็ง‘ๅญฆ็ ”็ฉถๅ’ŒๆŠ€ๆœฏๆœๅŠกไธš
+ 23 003031 ไธญ็“ท็”ตๅญ 20250212 ่‘ฃ็ง˜่พ›่‹ฆไบ†๏ผŒ็ฒพๅฏ†้™ถ็“ท้›ถ้ƒจไปถ็”จๆฐงๅŒ–้“ใ€ๆฐฎๅŒ–้“ๆ ธๅฟƒๆๆ–™ๅ’Œ้…ๅฅ—็š„้‡‘ๅฑžๅŒ–ไฝ“็ณปๅœจๅฆ‚็ซๅฆ‚่ผ็š„ๅŠๅฏผไฝ“ไบงไธšๆœ‰... ๅฐŠๆ•ฌ็š„ๆŠ•่ต„่€…๏ผŒๆ‚จๅฅฝใ€‚ๅ…ฌๅธ็ฒพๅฏ†้™ถ็“ท้›ถ้ƒจไปถๆ˜ฏ้‡‡็”จๆฐงๅŒ–้“ใ€ๆฐฎๅŒ–้“็ญ‰ๅ…ˆ่ฟ›้™ถ็“ท็ป็ฒพๅฏ†ๅŠ ๅทฅๅŽๅˆถๅค‡็š„ๅŠๅฏผไฝ“... 2025-02-12 16:25:55 ๅˆถ้€ ไธš
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\261\205\346\260\221\346\266\210\350\264\271\344\273\267\346\240\274\346\214\207\346\225\260(CPI).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\261\205\346\260\221\346\266\210\350\264\271\344\273\267\346\240\274\346\214\207\346\225\260(CPI).md"
new file mode 100644
index 000000000..94cb5d083
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\261\205\346\260\221\346\266\210\350\264\271\344\273\267\346\240\274\346\214\207\346\225\260(CPI).md"
@@ -0,0 +1,77 @@
+## ๅฑ…ๆฐ‘ๆถˆ่ดนไปทๆ ผๆŒ‡ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšcn_cpi
+ๆ่ฟฐ๏ผš่Žทๅ–CPIๅฑ…ๆฐ‘ๆถˆ่ดนไปทๆ ผๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๅ…จๅ›ฝใ€ๅŸŽๅธ‚ๅ’Œๅ†œๆ‘็š„ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000่กŒ๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ600็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+m | str | N | ๆœˆไปฝ๏ผˆYYYYMM๏ผŒไธ‹ๅŒ๏ผ‰๏ผŒๆ”ฏๆŒๅคšไธชๆœˆไปฝๅŒๆ—ถ่พ“ๅ…ฅ๏ผŒ้€—ๅทๅˆ†้š”
+start_m | str | N | ๅผ€ๅง‹ๆœˆไปฝ
+end_m | str | N | ็ป“ๆŸๆœˆไปฝ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ๆœˆไปฝYYYYMM
+nt_val | float | Y | ๅ…จๅ›ฝๅฝ“ๆœˆๅ€ผ
+nt_yoy | float | Y | ๅ…จๅ›ฝๅŒๆฏ”๏ผˆ%๏ผ‰
+nt_mom | float | Y | ๅ…จๅ›ฝ็Žฏๆฏ”๏ผˆ%๏ผ‰
+nt_accu | float | Y | ๅ…จๅ›ฝ็ดฏ่ฎกๅ€ผ
+town_val | float | Y | ๅŸŽๅธ‚ๅฝ“ๆœˆๅ€ผ
+town_yoy | float | Y | ๅŸŽๅธ‚ๅŒๆฏ”๏ผˆ%๏ผ‰
+town_mom | float | Y | ๅŸŽๅธ‚็Žฏๆฏ”๏ผˆ%๏ผ‰
+town_accu | float | Y | ๅŸŽๅธ‚็ดฏ่ฎกๅ€ผ
+cnt_val | float | Y | ๅ†œๆ‘ๅฝ“ๆœˆๅ€ผ
+cnt_yoy | float | Y | ๅ†œๆ‘ๅŒๆฏ”๏ผˆ%๏ผ‰
+cnt_mom | float | Y | ๅ†œๆ‘็Žฏๆฏ”๏ผˆ%๏ผ‰
+cnt_accu | float | Y | ๅ†œๆ‘็ดฏ่ฎกๅ€ผ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.cn_cpi(start_m='201801', end_m='201903')
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.cn_cpi(start_q='201801', end_q='201903', fields='month,nt_val,nt_yoy')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ month nt_val nt_yoy nt_mom nt_accu town_val town_yoy town_mom town_accu cnt_val cnt_yoy cnt_mom cnt_accu
+ 0 201903 102.30 2.30 -0.40 101.80 102.30 2.30 -0.40 101.90 102.30 2.30 -0.30 101.80
+ 1 201902 101.50 1.50 1.00 101.60 101.50 1.50 1.00 101.60 101.40 1.40 0.90 101.50
+ 2 201901 101.70 1.70 0.50 101.70 101.80 1.80 0.50 101.80 101.70 1.70 0.40 101.70
+ 3 201812 101.90 1.90 0.00 102.10 101.90 1.90 0.00 102.10 101.90 1.90 0.00 102.10
+ 4 201811 102.20 2.20 -0.30 102.10 102.20 2.20 -0.40 102.10 102.20 2.20 -0.30 102.10
+ 5 201810 102.50 2.50 0.20 102.10 102.50 2.50 0.20 102.10 102.60 2.60 0.20 102.10
+ 6 201809 102.50 2.50 0.70 102.10 102.40 2.40 0.70 102.10 102.50 2.50 0.80 102.00
+ 7 201808 102.30 2.30 0.70 102.00 102.30 2.30 0.60 102.00 102.30 2.30 0.80 102.00
+ 8 201807 102.10 2.10 0.30 102.00 102.10 2.10 0.40 102.00 102.00 2.00 0.10 101.90
+ 9 201806 101.90 1.90 -0.10 102.00 101.80 1.80 0.00 102.00 101.90 1.90 -0.10 101.90
+ 10 201805 101.80 1.80 -0.20 102.00 101.80 1.80 -0.20 102.00 101.70 1.70 -0.10 101.90
+ 11 201804 101.80 1.80 -0.20 102.10 101.80 1.80 -0.20 102.10 101.70 1.70 -0.30 101.90
+ 12 201803 102.10 2.10 -1.10 102.10 102.10 2.10 -1.10 102.20 101.90 1.90 -1.20 102.00
+ 13 201802 102.90 2.90 1.20 102.20 103.00 3.00 1.30 102.20 102.70 2.70 1.10 102.10
+ 14 201801 101.50 1.50 0.60 101.50 101.50 1.50 0.60 101.50 101.50 1.50 0.60 101.50
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\267\245\344\270\232\347\224\237\344\272\247\350\200\205\345\207\272\345\216\202\344\273\267\346\240\274\346\214\207\346\225\260(PPI).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\267\245\344\270\232\347\224\237\344\272\247\350\200\205\345\207\272\345\216\202\344\273\267\346\240\274\346\214\207\346\225\260(PPI).md"
new file mode 100644
index 000000000..c6ef77cdb
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\344\273\267\346\240\274\346\214\207\346\225\260/\345\267\245\344\270\232\347\224\237\344\272\247\350\200\205\345\207\272\345\216\202\344\273\267\346\240\274\346\214\207\346\225\260(PPI).md"
@@ -0,0 +1,90 @@
+## ๅทฅไธš็”Ÿไบง่€…ๅ‡บๅŽ‚ไปทๆ ผๆŒ‡ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšcn_ppi
+ๆ่ฟฐ๏ผš่Žทๅ–PPIๅทฅไธš็”Ÿไบง่€…ๅ‡บๅŽ‚ไปทๆ ผๆŒ‡ๆ•ฐๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท600็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+m | str | N | ๆœˆไปฝ๏ผˆYYYYMM๏ผŒไธ‹ๅŒ๏ผ‰๏ผŒๆ”ฏๆŒๅคšไธชๆœˆไปฝๅŒๆ—ถ่พ“ๅ…ฅ๏ผŒ้€—ๅทๅˆ†้š”
+start_m | str | N | ๅผ€ๅง‹ๆœˆไปฝ
+end_m | str | N | ็ป“ๆŸๆœˆไปฝ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ๆœˆไปฝYYYYMM
+ppi_yoy | float | Y | PPI๏ผšๅ…จ้ƒจๅทฅไธšๅ“๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_mp_yoy | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_mp_qm_yoy | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผš้‡‡ๆŽ˜ไธš๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_mp_rm_yoy | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŽŸๆ–™ไธš๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_mp_p_yoy | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŠ ๅทฅไธš๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_cg_yoy | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_cg_f_yoy | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš้ฃŸๅ“็ฑป๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_cg_c_yoy | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่กฃ็€็ฑป๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_cg_adu_yoy | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผšไธ€่ˆฌๆ—ฅ็”จๅ“็ฑป๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_cg_dcg_yoy | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่€็”จๆถˆ่ดนๅ“็ฑป๏ผšๅฝ“ๆœˆๅŒๆฏ”
+ppi_mom | float | Y | PPI๏ผšๅ…จ้ƒจๅทฅไธšๅ“๏ผš็Žฏๆฏ”
+ppi_mp_mom | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผš็Žฏๆฏ”
+ppi_mp_qm_mom | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผš้‡‡ๆŽ˜ไธš๏ผš็Žฏๆฏ”
+ppi_mp_rm_mom | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŽŸๆ–™ไธš๏ผš็Žฏๆฏ”
+ppi_mp_p_mom | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŠ ๅทฅไธš๏ผš็Žฏๆฏ”
+ppi_cg_mom | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš็Žฏๆฏ”
+ppi_cg_f_mom | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš้ฃŸๅ“็ฑป๏ผš็Žฏๆฏ”
+ppi_cg_c_mom | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่กฃ็€็ฑป๏ผš็Žฏๆฏ”
+ppi_cg_adu_mom | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผšไธ€่ˆฌๆ—ฅ็”จๅ“็ฑป๏ผš็Žฏๆฏ”
+ppi_cg_dcg_mom | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่€็”จๆถˆ่ดนๅ“็ฑป๏ผš็Žฏๆฏ”
+ppi_accu | float | Y | PPI๏ผšๅ…จ้ƒจๅทฅไธšๅ“๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_mp_accu | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_mp_qm_accu | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผš้‡‡ๆŽ˜ไธš๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_mp_rm_accu | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŽŸๆ–™ไธš๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_mp_p_accu | float | Y | PPI๏ผš็”Ÿไบง่ต„ๆ–™๏ผšๅŠ ๅทฅไธš๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_cg_accu | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_cg_f_accu | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš้ฃŸๅ“็ฑป๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_cg_c_accu | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่กฃ็€็ฑป๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_cg_adu_accu | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผšไธ€่ˆฌๆ—ฅ็”จๅ“็ฑป๏ผš็ดฏ่ฎกๅŒๆฏ”
+ppi_cg_dcg_accu | float | Y | PPI๏ผš็”Ÿๆดป่ต„ๆ–™๏ผš่€็”จๆถˆ่ดนๅ“็ฑป๏ผš็ดฏ่ฎกๅŒๆฏ”
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.cn_ppi(start_m='201905', end_m='202005')
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.cn_ppi(start_m='201905', end_m='202005', fields='month,ppi_yoy,ppi_mom,ppi_accu')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ month ppi_yoy ppi_mom ppi_accu
+ 0 202005 -3.70 -0.40 -1.70
+ 1 202004 -3.10 -1.30 -1.20
+ 2 202003 -1.50 -1.00 -0.60
+ 3 202002 -0.40 -0.50 -0.20
+ 4 202001 0.10 0.00 0.10
+ 5 201912 -0.50 0.00 -0.30
+ 6 201911 -1.40 -0.10 -0.30
+ 7 201910 -1.60 0.10 -0.20
+ 8 201909 -1.20 0.10 0.00
+ 9 201908 -0.80 -0.10 0.10
+ 10 201907 -0.30 -0.20 0.20
+ 11 201906 0.00 -0.30 0.30
+ 12 201905 0.60 0.20 0.40
+
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Hibor\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Hibor\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..15679d164
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Hibor\345\210\251\347\216\207.md"
@@ -0,0 +1,100 @@
+## Hiborๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšhibor
+ๆ่ฟฐ๏ผšHiborๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000่กŒๆ•ฐๆฎ๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅˆ†ๆฎต่Žทๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+> HIBOR (Hongkong InterBank Offered Rate)๏ผŒๆ˜ฏ้ฆ™ๆธฏ้“ถ่กŒๅŒ่กŒไธšๆ‹†ๅ€Ÿๅˆฉ็އใ€‚ๆŒ‡้ฆ™ๆธฏ่ดงๅธๅธ‚ๅœบไธŠ๏ผŒ้“ถ่กŒไธŽ้“ถ่กŒไน‹้—ด็š„ไธ€ๅนดๆœŸไปฅไธ‹็š„็ŸญๆœŸ่ต„้‡‘ๅ€Ÿ่ดทๅˆฉ็އ๏ผŒไปŽไผฆๆ•ฆๅŒไธšๆ‹†ๅ€Ÿๅˆฉ็އ๏ผˆLIBOR๏ผ‰ๅ˜ๅŒ–ๅ‡บๆฅ็š„ใ€‚
+
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ (ๆ—ฅๆœŸ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+on | float | Y | ้š”ๅคœ
+1w | float | Y | 1ๅ‘จ
+2w | float | Y | 2ๅ‘จ
+1m | float | Y | 1ไธชๆœˆ
+2m | float | Y | 2ไธชๆœˆ
+3m | float | Y | 3ไธชๆœˆ
+6m | float | Y | 6ไธชๆœˆ
+12m | float | Y | 12ไธชๆœˆ
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.hibor(start_date='20180101', end_date='20181130')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date on 1w 2w 1m 2m 3m 6m \
+ 0 20181130 1.52500 1.10125 1.08000 1.20286 1.83030 2.03786 2.32821
+ 1 20181129 0.76143 0.95643 1.01036 1.12357 1.80493 2.01018 2.31643
+ 2 20181128 0.66786 0.95607 0.99929 1.10964 1.77104 1.97643 2.30143
+ 3 20181127 0.71357 0.95536 0.99786 1.09321 1.76321 1.98351 2.30374
+ 4 20181126 0.68821 0.92821 0.99107 1.08214 1.75161 1.97742 2.29957
+ 5 20181123 0.68571 0.84000 0.91036 1.08214 1.75304 1.97591 2.30088
+ 6 20181122 0.47161 0.59750 0.76750 1.01214 1.73125 1.96500 2.29250
+ 7 20181121 0.36893 0.56571 0.74429 0.98929 1.71071 1.96569 2.29286
+ 8 20181120 0.38964 0.58214 0.75464 1.01107 1.70839 1.96571 2.28893
+ 9 20181119 0.39672 0.59893 0.77464 1.04143 1.71143 1.96643 2.28643
+ 10 20181116 0.44429 0.60321 0.75214 1.04429 1.71500 1.96750 2.28893
+ 11 20181115 0.39179 0.63571 0.77857 1.04627 1.71722 1.97607 2.28697
+ 12 20181114 0.34571 0.64026 0.78821 1.06393 1.72875 2.00000 2.29554
+ 13 20181113 0.59232 0.82643 0.91643 1.09286 1.77786 2.06920 2.30982
+ 14 20181112 0.53571 0.75419 0.83321 1.03536 1.75734 2.08286 2.29929
+ 15 20181109 0.51571 0.75393 0.83321 1.03464 1.76018 2.08179 2.30283
+ 16 20181108 0.60536 0.75293 0.85179 1.03357 1.75866 2.08107 2.29907
+ 17 20181107 0.58071 0.72679 0.83107 1.04714 1.74804 2.08467 2.30446
+ 18 20181106 0.48714 0.67750 0.78786 1.02536 1.72821 2.08071 2.30589
+ 19 20181105 0.44929 0.68500 0.80214 1.04321 1.72500 2.08179 2.31941
+ 20 20181102 0.45571 0.73542 0.87679 1.10536 1.73732 2.10018 2.33276
+
+ 12m
+ 0 2.65929
+ 1 2.65500
+ 2 2.65643
+ 3 2.65571
+ 4 2.65446
+ 5 2.65375
+ 6 2.64750
+ 7 2.64618
+ 8 2.63946
+ 9 2.63960
+ 10 2.64321
+ 11 2.64286
+ 12 2.64857
+ 13 2.66286
+ 14 2.65607
+ 15 2.65857
+ 16 2.65357
+ 17 2.65596
+ 18 2.65464
+ 19 2.65857
+ 20 2.67857
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/LPR\350\264\267\346\254\276\345\237\272\347\241\200\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/LPR\350\264\267\346\254\276\345\237\272\347\241\200\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..e500a8c1d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/LPR\350\264\267\346\254\276\345\237\272\347\241\200\345\210\251\347\216\207.md"
@@ -0,0 +1,78 @@
+## LPR่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšshibor_lpr
+ๆ่ฟฐ๏ผšLPR่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000(็›ธๅฝ“ไบŽๅ•ๆฌกๅฏๆๅ–18ๅนดๅކๅฒ)๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅˆ†ๆฎต่Žทๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+
+**LPRไป‹็ป**
+
+> ่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ๏ผˆLoan Prime Rate๏ผŒ็ฎ€็งฐLPR๏ผ‰๏ผŒๆ˜ฏๅŸบไบŽๆŠฅไปท่กŒ่‡ชไธปๆŠฅๅ‡บ็š„ๆœ€ไผ˜่ดทๆฌพๅˆฉ็އ่ฎก็ฎ—ๅนถๅ‘ๅธƒ็š„่ดทๆฌพๅธ‚ๅœบๅ‚่€ƒๅˆฉ็އใ€‚็›ฎๅ‰๏ผŒๅฏน็คพไผšๅ…ฌๅธƒ1ๅนดๆœŸ่ดทๆฌพๅŸบ็ก€ๅˆฉ็އใ€‚
+>
+> LPRๆŠฅไปท้“ถ่กŒๅ›ข็Žฐ็”ฑ10ๅฎถๅ•†ไธš้“ถ่กŒ็ป„ๆˆใ€‚ๆŠฅไปท้“ถ่กŒๅบ”็ฌฆๅˆ่ดขๅŠก็กฌ็บฆๆŸๆกไปถๅ’Œๅฎ่ง‚ๅฎกๆ…Žๆ”ฟ็ญ–ๆก†ๆžถ่ฆๆฑ‚๏ผŒ็ณป็ปŸ้‡่ฆๆ€ง็จ‹ๅบฆ้ซ˜ใ€ๅธ‚ๅœบๅฝฑๅ“ๅŠ›ๅคงใ€็ปผๅˆๅฎžๅŠ›ๅผบ๏ผŒๅทฒๅปบ็ซ‹ๅ†…้ƒจๆ”ถ็›Š็އๆ›ฒ็บฟๅ’Œๅ†…้ƒจ่ฝฌ็งปๅฎšไปทๆœบๅˆถ๏ผŒๅ…ทๆœ‰่พƒๅผบ็š„่‡ชไธปๅฎšไปท่ƒฝๅŠ›๏ผŒๅทฒๅˆถๅฎšๆœฌ่กŒ่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ็ฎก็†ๅŠžๆณ•๏ผŒไปฅๅŠๆœ‰ๅˆฉไบŽๅผ€ๅฑ•ๆŠฅไปทๅทฅไฝœ็š„ๅ…ถไป–ๆกไปถใ€‚ๅธ‚ๅœบๅˆฉ็އๅฎšไปท่‡ชๅพ‹ๆœบๅˆถไพๆฎใ€Š่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ้›†ไธญๆŠฅไปทๅ’Œๅ‘ๅธƒ่ง„ๅˆ™ใ€‹็กฎๅฎšๅ’Œ่ฐƒๆ•ดๆŠฅไปท่กŒๆˆๅ‘˜๏ผŒ็›‘็ฃๅ’Œ็ฎก็†่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ่ฟ่กŒ๏ผŒ่ง„่ŒƒๆŠฅไปท่กŒไธŽๆŒ‡ๅฎšๅ‘ๅธƒไบบ่กŒไธบใ€‚
+>
+> ๅ…จๅ›ฝ้“ถ่กŒ้—ดๅŒไธšๆ‹†ๅ€Ÿไธญๅฟƒๅ—ๆƒ่ดทๆฌพๅŸบ็ก€ๅˆฉ็އ็š„ๆŠฅไปท่ฎก็ฎ—ๅ’Œไฟกๆฏๅ‘ๅธƒใ€‚ๆฏไธชไบคๆ˜“ๆ—ฅๆ นๆฎๅ„ๆŠฅไปท่กŒ็š„ๆŠฅไปท๏ผŒๅ‰”้™คๆœ€้ซ˜ใ€ๆœ€ไฝŽๅ„1ๅฎถๆŠฅไปท๏ผŒๅฏนๅ…ถไฝ™ๆŠฅไปท่ฟ›่กŒๅŠ ๆƒๅนณๅ‡่ฎก็ฎ—ๅŽ๏ผŒๅพ—ๅ‡บ่ดทๆฌพๅŸบ็ก€ๅˆฉ็އๆŠฅไปทๅนณๅ‡ๅˆฉ็އ๏ผŒๅนถไบŽ11:30ๅฏนๅค–ๅ‘ๅธƒใ€‚
+
+
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ (ๆ—ฅๆœŸ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+1y | float | Y | 1ๅนด่ดทๆฌพๅˆฉ็އ
+5y | float | Y | 5ๅนด่ดทๆฌพๅˆฉ็އ
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.shibor_lpr(start_date='20180101', end_date='20181130', fields='date,1y')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date 1y
+ 0 20181130 4.31
+ 1 20181129 4.31
+ 2 20181128 4.31
+ 3 20181127 4.31
+ 4 20181126 4.31
+ 5 20181123 4.31
+ 6 20181122 4.31
+ 7 20181121 4.31
+ 8 20181120 4.31
+ 9 20181119 4.31
+ 10 20181116 4.31
+ 11 20181115 4.31
+ 12 20181114 4.31
+ 13 20181113 4.31
+ 14 20181112 4.31
+ 15 20181109 4.31
+ 16 20181108 4.31
+ 17 20181107 4.31
+ 18 20181106 4.31
+ 19 20181105 4.31
+ 20 20181102 4.31
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Libor\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Libor\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..91ed85a45
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Libor\345\210\251\347\216\207.md"
@@ -0,0 +1,102 @@
+## Liborๆ‹†ๅ€Ÿๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšlibor
+ๆ่ฟฐ๏ผšLiborๆ‹†ๅ€Ÿๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000่กŒๆ•ฐๆฎ๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅˆ†ๆฎต่Žทๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+> Libor๏ผˆLondon Interbank Offered Rate ๏ผ‰๏ผŒๅณไผฆๆ•ฆๅŒไธšๆ‹†ๅ€Ÿๅˆฉ็އ๏ผŒๆ˜ฏๆŒ‡ไผฆๆ•ฆ็š„็ฌฌไธ€ๆต้“ถ่กŒไน‹้—ด็ŸญๆœŸ่ต„้‡‘ๅ€Ÿ่ดท็š„ๅˆฉ็އ๏ผŒๆ˜ฏๅ›ฝ้™…้‡‘่žๅธ‚ๅœบไธญๅคงๅคšๆ•ฐๆตฎๅŠจๅˆฉ็އ็š„ๅŸบ็ก€ๅˆฉ็އใ€‚ไฝœไธบ้“ถ่กŒไปŽๅธ‚ๅœบไธŠ็ญน้›†่ต„้‡‘่ฟ›่กŒ่ฝฌ่ดท็š„่ž่ต„ๆˆๆœฌ๏ผŒ่ดทๆฌพๅ่ฎฎไธญ่ฎฎๅฎš็š„LIBOR้€šๅธธๆ˜ฏ็”ฑๅ‡ ๅฎถๆŒ‡ๅฎš็š„ๅ‚่€ƒ้“ถ่กŒ๏ผŒๅœจ่ง„ๅฎš็š„ๆ—ถ้—ด๏ผˆไธ€่ˆฌๆ˜ฏไผฆๆ•ฆๆ—ถ้—ดไธŠๅˆ11๏ผš00๏ผ‰ๆŠฅไปท็š„ๅนณๅ‡ๅˆฉ็އใ€‚
+
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ (ๆ—ฅๆœŸ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+curr_type | str | N | ่ดงๅธไปฃ็  (USD็พŽๅ…ƒ EURๆฌงๅ…ƒ JPYๆ—ฅๅ…ƒ GBP่‹ฑ้•‘ CHF็‘ž้ƒŽ๏ผŒ้ป˜่ฎคๆ˜ฏUSD)
+
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+curr_type | str | Y | ่ดงๅธ
+on | float | Y | ้š”ๅคœ
+1w | float | Y | 1ๅ‘จ
+1m | float | Y | 1ไธชๆœˆ
+2m | float | Y | 2ไธชๆœˆ
+3m | float | Y | 3ไธชๆœˆ
+6m | float | Y | 6ไธชๆœˆ
+12m | float | Y | 12ไธชๆœˆ
+
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.libor(curr_type='USD', start_date='20180101', end_date='20181130')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date curr_type on 1w 1m 2m 3m 6m \
+ 0 20181130 USD 2.17750 2.22131 2.34694 2.51006 2.73613 2.89463
+ 1 20181129 USD 2.18275 2.22881 2.34925 2.51125 2.73813 2.88519
+ 2 20181128 USD 2.18250 2.22450 2.34463 2.49500 2.70663 2.88663
+ 3 20181127 USD 2.17850 2.23494 2.34931 2.49900 2.70600 2.88444
+ 4 20181126 USD 2.18300 2.21900 2.33675 2.49525 2.70681 2.89275
+ 5 20181123 USD 2.17700 2.22188 2.32188 2.49538 2.69119 2.88625
+ 6 20181122 USD NaN 2.22213 2.31488 2.48013 2.68925 2.88725
+ 7 20181121 USD 2.18050 2.22100 2.31513 2.47313 2.67694 2.88588
+ 8 20181120 USD 2.17288 2.21638 2.30550 2.45850 2.65313 2.86325
+ 9 20181119 USD 2.18075 2.21725 2.30025 2.45769 2.64581 2.86575
+ 10 20181116 USD 2.17538 2.21225 2.30088 2.45213 2.64450 2.86263
+ 11 20181115 USD 2.17938 2.21125 2.30250 2.44913 2.64000 2.86019
+ 12 20181114 USD 2.17575 2.20963 2.31038 2.44531 2.62900 2.86344
+ 13 20181113 USD 2.17788 2.21613 2.30650 2.44413 2.61613 2.85500
+ 14 20181112 USD NaN 2.21550 2.30663 2.44525 2.61413 2.85538
+ 15 20181109 USD 2.17500 2.21913 2.31438 2.45513 2.61813 2.85800
+ 16 20181108 USD 2.17988 2.21619 2.31844 2.45863 2.61463 2.85763
+ 17 20181107 USD 2.17725 2.21588 2.31531 2.44550 2.60113 2.84350
+ 18 20181106 USD 2.17663 2.21138 2.31688 2.42863 2.59125 2.84150
+ 19 20181105 USD 2.17525 2.21425 2.31600 2.42950 2.58925 2.83575
+ 20 20181102 USD 2.17463 2.21400 2.31788 2.42625 2.59238 2.82888
+
+ 12m
+ 0 3.12025
+ 1 3.11869
+ 2 3.13413
+ 3 3.13075
+ 4 3.12838
+ 5 3.12075
+ 6 3.10950
+ 7 3.11038
+ 8 3.09713
+ 9 3.10738
+ 10 3.12363
+ 11 3.11838
+ 12 3.12963
+ 13 3.13206
+ 14 3.13475
+ 15 3.14413
+ 16 3.14075
+ 17 3.12513
+ 18 3.11638
+ 19 3.11688
+ 20 3.10488
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..4a18888d2
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\345\210\251\347\216\207.md"
@@ -0,0 +1,85 @@
+## Shiborๅˆฉ็އๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšshibor
+ๆ่ฟฐ๏ผšshiborๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅˆ†ๆฎต่Žทๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+
+**Shiborๅˆฉ็އไป‹็ป**
+
+> ไธŠๆตท้“ถ่กŒ้—ดๅŒไธšๆ‹†ๆ”พๅˆฉ็އ๏ผˆShanghai Interbank Offered Rate๏ผŒ็ฎ€็งฐShibor๏ผ‰๏ผŒไปฅไฝไบŽไธŠๆตท็š„ๅ…จๅ›ฝ้“ถ่กŒ้—ดๅŒไธšๆ‹†ๅ€ŸไธญๅฟƒไธบๆŠ€ๆœฏๅนณๅฐ่ฎก็ฎ—ใ€ๅ‘ๅธƒๅนถๅ‘ฝๅ๏ผŒๆ˜ฏ็”ฑไฟก็”จ็ญ‰็บง่พƒ้ซ˜็š„้“ถ่กŒ็ป„ๆˆๆŠฅไปทๅ›ข่‡ชไธปๆŠฅๅ‡บ็š„ไบบๆฐ‘ๅธๅŒไธšๆ‹†ๅ‡บๅˆฉ็އ่ฎก็ฎ—็กฎๅฎš็š„็ฎ—ๆœฏๅนณๅ‡ๅˆฉ็އ๏ผŒๆ˜ฏๅ•ๅˆฉใ€ๆ— ๆ‹…ไฟใ€ๆ‰นๅ‘ๆ€งๅˆฉ็އใ€‚็›ฎๅ‰๏ผŒๅฏน็คพไผšๅ…ฌๅธƒ็š„Shiborๅ“็งๅŒ…ๆ‹ฌ้š”ๅคœใ€1ๅ‘จใ€2ๅ‘จใ€1ไธชๆœˆใ€3ไธชๆœˆใ€6ไธชๆœˆใ€9ไธชๆœˆๅŠ1ๅนดใ€‚
+>
+> ShiborๆŠฅไปท้“ถ่กŒๅ›ข็Žฐ็”ฑ18ๅฎถๅ•†ไธš้“ถ่กŒ็ป„ๆˆใ€‚ๆŠฅไปท้“ถ่กŒๆ˜ฏๅ…ฌๅผ€ๅธ‚ๅœบไธ€็บงไบคๆ˜“ๅ•†ๆˆ–ๅค–ๆฑ‡ๅธ‚ๅœบๅšๅธ‚ๅ•†๏ผŒๅœจไธญๅ›ฝ่ดงๅธๅธ‚ๅœบไธŠไบบๆฐ‘ๅธไบคๆ˜“็›ธๅฏนๆดป่ทƒใ€ไฟกๆฏๆŠซ้œฒๆฏ”่พƒๅ……ๅˆ†็š„้“ถ่กŒใ€‚ไธญๅ›ฝไบบๆฐ‘้“ถ่กŒๆˆ็ซ‹Shiborๅทฅไฝœๅฐ็ป„๏ผŒไพๆฎใ€ŠไธŠๆตท้“ถ่กŒ้—ดๅŒไธšๆ‹†ๆ”พๅˆฉ็އ๏ผˆShibor๏ผ‰ๅฎžๆ–ฝๅ‡†ๅˆ™ใ€‹็กฎๅฎšๅ’Œ่ฐƒๆ•ดๆŠฅไปท้“ถ่กŒๅ›ขๆˆๅ‘˜ใ€็›‘็ฃๅ’Œ็ฎก็†Shibor่ฟ่กŒใ€่ง„่ŒƒๆŠฅไปท่กŒไธŽๆŒ‡ๅฎšๅ‘ๅธƒไบบ่กŒไธบใ€‚
+>
+> ๅ…จๅ›ฝ้“ถ่กŒ้—ดๅŒไธšๆ‹†ๅ€Ÿไธญๅฟƒๅ—ๆƒShibor็š„ๆŠฅไปท่ฎก็ฎ—ๅ’Œไฟกๆฏๅ‘ๅธƒใ€‚ๆฏไธชไบคๆ˜“ๆ—ฅๆ นๆฎๅ„ๆŠฅไปท่กŒ็š„ๆŠฅไปท๏ผŒๅ‰”้™คๆœ€้ซ˜ใ€ๆœ€ไฝŽๅ„4ๅฎถๆŠฅไปท๏ผŒๅฏนๅ…ถไฝ™ๆŠฅไปท่ฟ›่กŒ็ฎ—ๆœฏๅนณๅ‡่ฎก็ฎ—ๅŽ๏ผŒๅพ—ๅ‡บๆฏไธ€ๆœŸ้™ๅ“็ง็š„Shibor๏ผŒๅนถไบŽ11:00ๅฏนๅค–ๅ‘ๅธƒใ€‚
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ (ๆ—ฅๆœŸ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+on | float | Y | ้š”ๅคœ
+1w | float | Y | 1ๅ‘จ
+2w | float | Y | 2ๅ‘จ
+1m | float | Y | 1ไธชๆœˆ
+3m | float | Y | 3ไธชๆœˆ
+6m | float | Y | 6ไธชๆœˆ
+9m | float | Y | 9ไธชๆœˆ
+1y | float | Y | 1ๅนด
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.shibor(start_date='20180101', end_date='20181101')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date on 1w 2w 1m 3m 6m 9m 1y
+ 0 20181101 2.5470 2.6730 2.6910 2.6960 2.9760 3.2970 3.5040 3.5500
+ 1 20181031 2.3700 2.7150 2.7300 2.6890 2.9630 3.2980 3.5040 3.5500
+ 2 20181030 1.5660 2.5980 2.6400 2.6630 2.9570 3.2950 3.5010 3.5500
+ 3 20181029 1.8520 2.6090 2.6510 2.6720 2.9580 3.2970 3.5020 3.5500
+ 4 20181026 2.0670 2.6180 2.6500 2.6730 2.9520 3.2970 3.5020 3.5500
+ 5 20181025 2.2150 2.6300 2.6510 2.6750 2.9480 3.2970 3.5050 3.5520
+ 6 20181024 2.3930 2.6310 2.6530 2.6750 2.9240 3.2960 3.4980 3.5440
+ 7 20181023 2.4510 2.6350 2.6530 2.6720 2.9030 3.2890 3.4880 3.5320
+ 8 20181022 2.4750 2.6320 2.6500 2.6630 2.8710 3.2770 3.4710 3.5160
+ 9 20181019 2.4450 2.6220 2.6480 2.6550 2.8420 3.2670 3.4560 3.5070
+ 10 20181018 2.4270 2.6110 2.6370 2.6510 2.8320 3.2600 3.4530 3.5040
+ 11 20181017 2.3530 2.6040 2.6320 2.6510 2.8180 3.2540 3.4500 3.5050
+ 12 20181016 2.3730 2.6030 2.6330 2.6580 2.8000 3.2530 3.4500 3.5050
+ 13 20181015 2.3770 2.6120 2.6370 2.6680 2.8010 3.2530 3.4510 3.5050
+ 14 20181012 2.4390 2.6150 2.6440 2.6820 2.8000 3.2500 3.4530 3.5050
+ 15 20181011 2.3600 2.6110 2.6500 2.6920 2.8010 3.2510 3.4550 3.5060
+ 16 20181010 2.3980 2.6180 2.6730 2.7050 2.8100 3.2530 3.4590 3.5020
+ 17 20181009 2.5020 2.6330 2.7030 2.7340 2.8160 3.2580 3.4640 3.5040
+ 18 20181008 2.5360 2.6570 2.7660 2.7810 2.8360 3.2690 3.4760 3.5120
+ 19 20180930 2.6530 2.7660 3.4730 2.8020 2.8470 3.2870 3.4890 3.5210
+ 20 20180929 2.0730 2.7830 3.3100 2.8020 2.8460 3.2850 3.4890 3.5210
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\346\212\245\344\273\267\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\346\212\245\344\273\267\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..02b80fa51
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/Shibor\346\212\245\344\273\267\346\225\260\346\215\256.md"
@@ -0,0 +1,106 @@
+## ShiborๆŠฅไปทๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšshibor_quote
+ๆ่ฟฐ๏ผšShiborๆŠฅไปทๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000่กŒๆ•ฐๆฎ๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅˆ†ๆฎต่Žทๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ (ๆ—ฅๆœŸ่พ“ๅ…ฅๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+bank | str | N | ้“ถ่กŒๅ็งฐ ๏ผˆไธญๆ–‡ๅ็งฐ๏ผŒไพ‹ๅฆ‚ ๅ†œไธš้“ถ่กŒ๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+bank | str | Y | ๆŠฅไปท้“ถ่กŒ
+on_b | float | Y | ้š”ๅคœ_Bid
+on_a | float | Y | ้š”ๅคœ_Ask
+1w_b | float | Y | 1ๅ‘จ_Bid
+1w_a | float | Y | 1ๅ‘จ_Ask
+2w_b | float | Y | 2ๅ‘จ_Bid
+2w_a | float | Y | 2ๅ‘จ_Ask
+1m_b | float | Y | 1ๆœˆ_Bid
+1m_a | float | Y | 1ๆœˆ_Ask
+3m_b | float | Y | 3ๆœˆ_Bid
+3m_a | float | Y | 3ๆœˆ_Ask
+6m_b | float | Y | 6ๆœˆ_Bid
+6m_a | float | Y | 6ๆœˆ_Ask
+9m_b | float | Y | 9ๆœˆ_Bid
+9m_a | float | Y | 9ๆœˆ_Ask
+1y_b | float | Y | 1ๅนด_Bid
+1y_a | float | Y | 1ๅนด_Ask
+
+
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.shibor_quote(start_date='20180101', end_date='20181101')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date bank on_b on_a 1w_b 1w_a 2w_b 2w_a 1m_b 1m_a \
+ 0 20181101 ๆฐ‘็”Ÿ้“ถ่กŒ 2.540 2.540 2.65 2.65 2.67 2.67 2.680 2.680
+ 1 20181101 ๅ›ฝๅผ€่กŒ 2.570 2.570 2.71 2.71 2.75 2.75 2.690 2.690
+ 2 20181101 ้‚ฎๅ‚จ้“ถ่กŒ 2.550 2.550 2.72 2.72 2.72 2.72 2.690 2.690
+ 3 20181101 ๅนฟๅ‘้“ถ่กŒ 2.560 2.560 2.66 2.66 2.68 2.68 2.720 2.720
+ 4 20181101 ๅŽๅค้“ถ่กŒ 2.550 2.550 2.72 2.72 2.73 2.73 2.690 2.690
+ 5 20181101 ๆฑ‡ไธฐไธญๅ›ฝ 2.550 2.550 2.65 2.65 2.68 2.68 2.690 2.690
+ 6 20181101 ไธŠๆตท้“ถ่กŒ 2.560 2.560 2.70 2.70 2.73 2.73 2.690 2.690
+ 7 20181101 ๅŒ—ไบฌ้“ถ่กŒ 2.570 2.570 2.67 2.67 2.65 2.65 2.600 2.600
+ 8 20181101 ๆตฆๅ‘้“ถ่กŒ 2.560 2.560 2.75 2.75 2.65 2.65 2.700 2.700
+ 9 20181101 ๅ…ดไธš้“ถ่กŒ 2.530 2.530 2.65 2.65 2.60 2.60 2.500 2.500
+ 10 20181101 ๅ…‰ๅคง้“ถ่กŒ 2.540 2.540 2.65 2.65 2.70 2.70 2.720 2.720
+ 11 20181101 ไธญไฟก้“ถ่กŒ 2.550 2.550 2.65 2.65 2.70 2.70 2.700 2.700
+ 12 20181101 ๆ‹›ๅ•†้“ถ่กŒ 2.540 2.540 2.67 2.67 2.65 2.65 2.700 2.700
+ 13 20181101 ไบค้€š้“ถ่กŒ 2.540 2.540 2.68 2.68 2.72 2.72 2.690 2.690
+ 14 20181101 ๅปบ่ฎพ้“ถ่กŒ 2.530 2.530 2.67 2.67 2.68 2.68 2.720 2.720
+ 15 20181101 ไธญๅ›ฝ้“ถ่กŒ 2.540 2.540 2.65 2.65 2.66 2.66 2.680 2.680
+ 16 20181101 ๅ†œไธš้“ถ่กŒ 2.550 2.550 2.70 2.70 2.75 2.75 2.760 2.760
+ 17 20181101 ๅทฅๅ•†้“ถ่กŒ 2.500 2.500 2.68 2.68 2.70 2.70 2.720 2.720
+ 18 20181031 ๆฐ‘็”Ÿ้“ถ่กŒ 2.310 2.310 2.72 2.72 2.73 2.73 2.730 2.730
+ 19 20181031 ๅ›ฝๅผ€่กŒ 2.370 2.370 2.75 2.75 2.76 2.76 2.690 2.690
+ 20 20181031 ้‚ฎๅ‚จ้“ถ่กŒ 2.350 2.350 2.73 2.73 2.72 2.72 2.670 2.670
+
+ 3m_b 3m_a 6m_b 6m_a 9m_b 9m_a 1y_b 1y_a
+ 0 2.960 2.960 3.290 3.290 3.510 3.510 3.550 3.550
+ 1 2.970 2.970 3.320 3.320 3.530 3.530 3.570 3.570
+ 2 2.960 2.960 3.300 3.300 3.500 3.500 3.550 3.550
+ 3 3.000 3.000 3.250 3.250 3.500 3.500 3.550 3.550
+ 4 2.970 2.970 3.300 3.300 3.510 3.510 3.550 3.550
+ 5 2.970 2.970 3.300 3.300 3.500 3.500 3.550 3.550
+ 6 2.960 2.960 3.300 3.300 3.510 3.510 3.550 3.550
+ 7 3.000 3.000 3.400 3.400 3.550 3.550 3.600 3.600
+ 8 2.960 2.960 3.300 3.300 3.500 3.500 3.550 3.550
+ 9 2.950 2.950 3.100 3.100 3.400 3.400 3.500 3.500
+ 10 3.000 3.000 3.300 3.300 3.500 3.500 3.550 3.550
+ 11 3.000 3.000 3.300 3.300 3.550 3.550 3.550 3.550
+ 12 3.100 3.100 3.300 3.300 3.550 3.550 3.550 3.550
+ 13 2.970 2.970 3.300 3.300 3.510 3.510 3.560 3.560
+ 14 3.000 3.000 3.260 3.260 3.500 3.500 3.550 3.550
+ 15 2.940 2.940 3.280 3.280 3.480 3.480 3.520 3.520
+ 16 3.000 3.000 3.300 3.300 3.500 3.500 3.550 3.550
+ 17 2.880 2.880 3.240 3.240 3.420 3.420 3.470 3.470
+ 18 2.970 2.970 3.300 3.300 3.500 3.500 3.550 3.550
+ 19 2.960 2.960 3.320 3.320 3.520 3.520 3.560 3.560
+ 20 2.960 2.960 3.300 3.300 3.500 3.500 3.550 3.550
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\345\271\277\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\345\271\277\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..996ab08fc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\345\271\277\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md"
@@ -0,0 +1,74 @@
+## ๅนฟๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšgz_index
+ๆ่ฟฐ๏ผšๅนฟๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ
+้™้‡๏ผšไธ้™้‡๏ผŒไธ€ๆฌกๅฏๅ–ๅ…จ้ƒจๆŒ‡ๆ ‡ๅ…จ้ƒจๅކๅฒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ็งฏๆ”’2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+ๆ•ฐๆฎๆฅๆบ๏ผšๅนฟๅทžๆฐ‘้—ด้‡‘่ž่ก—
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+d10_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆๅๅคฉ๏ผ‰ ๏ผˆๅ•ไฝ๏ผš%๏ผŒไธ‹ๅŒ๏ผ‰
+m1_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆไธ€ๆœˆๆœŸ๏ผ‰
+m3_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆไธ‰ๆœˆๆœŸ๏ผ‰
+m6_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆๅ…ญๆœˆๆœŸ๏ผ‰
+m12_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆไธ€ๅนดๆœŸ๏ผ‰
+long_rate | float | Y | ๅฐ้ข่ดทๅธ‚ๅœบๅนณๅ‡ๅˆฉ็އ๏ผˆ้•ฟๆœŸ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.gz_index(start_date='20180101', end_date='20190401')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date d10_rate m1_rate m3_rate m6_rate m12_rate long_rate
+ 0 20180327 12.00 19.20 19.20 12.77 14.40 12.00
+ 1 20180404 12.00 19.20 19.20 13.27 14.40 12.00
+ 2 20180410 12.00 19.20 19.20 13.35 14.40 12.00
+ 3 20180802 12.00 15.90 15.85 14.35 14.40 15.00
+ 4 20180822 12.00 19.20 19.20 13.35 14.40 12.00
+ 5 20180920 13.00 14.41 13.55 12.03 9.78 11.46
+ 6 20180925 13.00 14.94 13.59 12.24 9.47 11.55
+ 7 20180926 13.00 14.79 13.60 12.29 9.56 11.42
+ 8 20180927 13.00 13.74 13.62 12.26 9.57 11.52
+ 9 20180928 19.00 13.58 13.63 12.41 9.69 11.31
+ 10 20180929 19.05 13.41 13.66 12.42 10.34 10.83
+ 11 20180930 19.05 13.23 13.66 12.44 10.31 10.90
+ 12 20181009 17.41 12.28 13.64 12.58 10.97 11.22
+ 13 20181015 17.20 11.91 13.63 11.61 11.46 11.50
+ 14 20181016 16.55 11.56 13.59 11.64 11.45 11.40
+ 15 20181017 16.55 11.18 13.58 11.63 11.50 11.26
+ 16 20181018 16.55 11.08 13.59 12.45 11.55 11.21
+ 17 20181019 16.55 10.95 13.60 12.44 11.31 11.14
+ 18 20181020 15.71 10.71 13.57 12.44 11.31 11.25
+ 19 20181021 15.71 10.71 13.52 12.46 11.28 11.10
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\346\270\251\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\346\270\251\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..602e6dbfe
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\210\251\347\216\207\346\225\260\346\215\256/\346\270\251\345\267\236\346\260\221\351\227\264\345\200\237\350\264\267\345\210\251\347\216\207.md"
@@ -0,0 +1,107 @@
+## ๆธฉๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšwz_index
+ๆ่ฟฐ๏ผšๆธฉๅทžๆฐ‘้—ดๅ€Ÿ่ดทๅˆฉ็އ๏ผŒๅณๆธฉๅทžๆŒ‡ๆ•ฐ
+้™้‡๏ผšไธ้™้‡๏ผŒไธ€ๆฌกๅฏๅ–ๅ…จ้ƒจๆŒ‡ๆ ‡ๅ…จ้ƒจๅކๅฒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ็งฏๆ”’2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+ๆ•ฐๆฎๆฅๆบ๏ผšๆธฉๅทžๆŒ‡ๆ•ฐ็ฝ‘
+<br>
+ๆณจ๏ผš
+ๆธฉๅทžๆŒ‡ๆ•ฐ ๏ผŒๅณๆธฉๅทžๆฐ‘้—ด่ž่ต„็ปผๅˆๅˆฉ็އๆŒ‡ๆ•ฐ๏ผŒ่ฏฅๆŒ‡ๆ•ฐๅŠๆ—ถๅๆ˜ ๆฐ‘้—ด้‡‘่žไบคๆ˜“ๆดป่ทƒๅบฆๅ’Œไบคๆ˜“ไปทๆ ผใ€‚่ฏฅๆŒ‡ๆ•ฐๆ ทๆฟๆ•ฐๆฎไธป่ฆ้‡‡้›†ไบŽๅ››ไธชๆ–น้ข๏ผš็”ฑๆธฉๅทžๅธ‚่ฎพ็ซ‹็š„ๅ‡ ็™พๅฎถไผไธšๆต‹ๆŠฅ็‚น๏ผŒๆŠŠๅ„่‡ชๅ€Ÿๅ…ฅ็š„ๆฐ‘้—ด่ต„ๆœฌๅˆฉ็އ้€š่ฟ‡ๅ„ๅœฐๆ–น้‡‘่žๅŠžไธ่ฎฐๅ็”ณๆŠฅๆ”ถ้›†่ตทๆฅ๏ผ›ๅฏนๅ„ๅฐ้ข่ดทๆฌพๅ…ฌๅธๅ€Ÿๅ‡บ็š„ๅˆฉ็އ่ฟ›่กŒๅŠ ๆƒๅนณๅ‡๏ผ›่ž่ต„ๆ€งๆ‹…ไฟๅ…ฌๅธๅฆ‚ๅ…ธๅฝ“่กŒๅœจ่ž่ต„่ฟ‡็จ‹ไธญ็š„ๅˆฉ็އ๏ผŒ็”ฑๆธฉๅทž็ปไฟกๅง”ๅ’Œๅ•†ๅŠกๅฑ€่ดŸ่ดฃๆต‹ๆŠฅ๏ผ›ๆฐ‘้—ดๅ€Ÿ่ดทๆœๅŠกไธญๅฟƒ็š„ๅฎžๆ—ถๅˆฉ็އใ€‚่ฟ™ไบ›ๅˆฉ็އ่ฟ›่กŒๅŠ ๆƒๅนณๅ‡๏ผŒๅฐฑๅพ—ๅ‡บไบ†โ€œๆธฉๅทžๆŒ‡ๆ•ฐโ€ใ€‚ๅฎƒๆ˜ฏๆธฉๅทžๆฐ‘้—ด่ž่ต„ๅˆฉ็އ็š„้ฃŽๅ‘ๆ ‡ใ€‚2012ๅนด12ๆœˆ7ๆ—ฅ๏ผŒๆธฉๅทžๆŒ‡ๆ•ฐๆญฃๅผๅฏนๅค–ๅ‘ๅธƒใ€‚
+<br>
+<img src="https://tushare.pro/files/img/wz_idx.png">
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+comp_rate | float | Y | ๆธฉๅทžๆฐ‘้—ด่ž่ต„็ปผๅˆๅˆฉ็އๆŒ‡ๆ•ฐ (%๏ผŒไธ‹ๅŒ)
+center_rate | float | Y | ๆฐ‘้—ดๅ€Ÿ่ดทๆœๅŠกไธญๅฟƒๅˆฉ็އ
+micro_rate | float | Y | ๅฐ้ข่ดทๆฌพๅ…ฌๅธๆ”พๆฌพๅˆฉ็އ
+cm_rate | float | Y | ๆฐ‘้—ด่ต„ๆœฌ็ฎก็†ๅ…ฌๅธ่ž่ต„ไปทๆ ผ
+sdb_rate | float | Y | ็คพไผš็›ดๆŽฅๅ€Ÿ่ดทๅˆฉ็އ
+om_rate | float | Y | ๅ…ถไป–ๅธ‚ๅœบไธปไฝ“ๅˆฉ็އ
+aa_rate | float | Y | ๅ†œๆ‘ไบ’ๅŠฉไผšไบ’ๅŠฉ้‡‘่ดน็އ
+m1_rate | float | Y | ๆธฉๅทžๅœฐๅŒบๆฐ‘้—ดๅ€Ÿ่ดทๅˆ†ๆœŸ้™ๅˆฉ็އ๏ผˆไธ€ๆœˆๆœŸ๏ผ‰
+m3_rate | float | Y | ๆธฉๅทžๅœฐๅŒบๆฐ‘้—ดๅ€Ÿ่ดทๅˆ†ๆœŸ้™ๅˆฉ็އ๏ผˆไธ‰ๆœˆๆœŸ๏ผ‰
+m6_rate | float | Y | ๆธฉๅทžๅœฐๅŒบๆฐ‘้—ดๅ€Ÿ่ดทๅˆ†ๆœŸ้™ๅˆฉ็އ๏ผˆๅ…ญๆœˆๆœŸ๏ผ‰
+m12_rate | float | Y | ๆธฉๅทžๅœฐๅŒบๆฐ‘้—ดๅ€Ÿ่ดทๅˆ†ๆœŸ้™ๅˆฉ็އ๏ผˆไธ€ๅนดๆœŸ๏ผ‰
+long_rate | float | Y | ๆธฉๅทžๅœฐๅŒบๆฐ‘้—ดๅ€Ÿ่ดทๅˆ†ๆœŸ้™ๅˆฉ็އ๏ผˆ้•ฟๆœŸ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.wz_index(start_date='20180101', end_date='20190401')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date comp_rate center_rate micro_rate cm_rate sdb_rate om_rate \
+ 0 20180102 15.05 16.58 14.74 15.0 14.43 22.99
+ 1 20180103 15.58 14.72 15.59 15.0 14.43 22.99
+ 2 20180104 15.91 15.73 15.91 15.0 14.43 22.99
+ 3 20180105 15.26 17.19 13.89 15.0 14.23 23.02
+ 4 20180108 16.26 16.70 16.30 15.0 14.23 23.02
+ 5 20180109 16.42 19.01 17.14 15.0 14.23 23.02
+ 6 20180110 15.92 13.30 16.97 15.0 14.23 23.02
+ 7 20180111 15.98 15.57 15.47 15.0 14.23 23.02
+ 8 20180112 15.44 15.46 15.85 15.0 13.91 20.48
+ 9 20180115 15.27 13.82 16.38 15.0 13.91 20.48
+ 10 20180116 15.12 14.94 15.84 15.0 13.91 20.48
+ 11 20180117 15.13 14.13 14.34 15.0 13.91 20.48
+ 12 20180118 15.33 16.31 15.19 15.0 13.91 20.48
+ 13 20180119 15.36 13.97 17.09 15.0 14.19 22.27
+ 14 20180122 16.03 14.66 18.18 15.0 14.19 22.27
+ 15 20180123 16.18 14.57 18.29 15.0 14.19 22.27
+ 16 20180124 15.25 15.82 15.38 15.0 14.19 22.27
+ 17 20180125 15.17 16.12 15.90 15.0 14.19 22.27
+ 18 20180126 15.99 14.15 17.40 15.0 14.67 23.11
+ 19 20180129 16.02 14.08 15.17 15.0 14.67 23.11
+
+ aa_rate m1_rate m3_rate m6_rate m12_rate long_rate
+ 0 12.26 17.35 16.72 14.87 12.97 15.78
+ 1 12.87 20.93 15.94 15.07 14.04 15.91
+ 2 14.11 20.79 16.33 15.12 14.23 16.22
+ 3 15.82 21.09 14.71 14.04 14.30 13.86
+ 4 15.22 21.35 18.79 13.42 15.02 13.88
+ 5 14.78 21.03 18.01 14.46 15.28 13.64
+ 6 14.56 21.24 17.94 14.19 14.42 13.27
+ 7 13.44 20.82 17.66 14.08 14.62 13.31
+ 8 15.66 19.70 15.14 15.33 13.27 15.71
+ 9 15.37 19.59 14.66 14.48 14.17 15.49
+ 10 13.32 18.30 17.20 14.73 13.52 14.97
+ 11 13.15 19.33 14.18 13.95 14.23 16.98
+ 12 13.28 19.99 14.60 14.23 14.06 17.46
+ 13 13.97 21.34 14.27 14.85 14.03 16.88
+ 14 15.79 20.81 17.37 14.88 14.08 16.03
+ 15 13.15 21.43 16.25 14.91 14.14 15.60
+ 16 12.48 21.41 15.48 14.88 13.58 16.07
+ 17 14.94 21.24 16.57 14.47 13.84 16.28
+ 18 14.71 21.34 15.13 15.52 14.61 15.08
+ 19 14.71 21.44 17.47 14.88 13.87 14.49
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\233\275\346\260\221\347\273\217\346\265\216/\345\233\275\345\206\205\347\224\237\344\272\247\346\200\273\345\200\274(GDP).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\233\275\346\260\221\347\273\217\346\265\216/\345\233\275\345\206\205\347\224\237\344\272\247\346\200\273\345\200\274(GDP).md"
new file mode 100644
index 000000000..c98b4a4a1
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\345\233\275\346\260\221\347\273\217\346\265\216/\345\233\275\345\206\205\347\224\237\344\272\247\346\200\273\345\200\274(GDP).md"
@@ -0,0 +1,72 @@
+## GDPๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšcn_gdp
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ›ฝๆฐ‘็ปๆตŽไน‹GDPๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง10000๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ600็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+q | str | N | ๅญฃๅบฆ๏ผˆ2019Q1่กจ็คบ๏ผŒ2019ๅนด็ฌฌไธ€ๅญฃๅบฆ๏ผ‰
+start_q | str | N | ๅผ€ๅง‹ๅญฃๅบฆ
+end_q | str | N | ็ป“ๆŸๅญฃๅบฆ
+fields | str | N | ๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต๏ผˆe.g. fields='quarter,gdp,gdp_yoy'๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+quarter | str | Y | ๅญฃๅบฆ
+gdp | float | Y | GDP็ดฏ่ฎกๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+gdp_yoy | float | Y | ๅฝ“ๅญฃๅŒๆฏ”ๅขž้€Ÿ๏ผˆ%๏ผ‰
+pi | float | Y | ็ฌฌไธ€ไบงไธš็ดฏ่ฎกๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+pi_yoy | float | Y | ็ฌฌไธ€ไบงไธšๅŒๆฏ”ๅขž้€Ÿ๏ผˆ%๏ผ‰
+si | float | Y | ็ฌฌไบŒไบงไธš็ดฏ่ฎกๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+si_yoy | float | Y | ็ฌฌไบŒไบงไธšๅŒๆฏ”ๅขž้€Ÿ๏ผˆ%๏ผ‰
+ti | float | Y | ็ฌฌไธ‰ไบงไธš็ดฏ่ฎกๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+ti_yoy | float | Y | ็ฌฌไธ‰ไบงไธšๅŒๆฏ”ๅขž้€Ÿ๏ผˆ%๏ผ‰
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.cn_gdp(start_q='2018Q1', end_q='2019Q3')
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.cn_gdp(start_q='2018Q1', end_q='2019Q3', fields='quarter,gdp,gdp_yoy')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ quarter gdp gdp_yoy pi pi_yoy si si_yoy ti ti_yoy
+ 0 2019Q4 990865.1000 6.10 70466.7000 3.10 386165.3000 5.70 534233.1000 6.90
+ 1 2019Q3 712845.4000 6.20 43005.0000 2.90 276912.5000 5.60 392927.9000 7.00
+ 2 2019Q2 460636.7000 6.30 23207.0000 3.00 179122.1000 5.80 258307.5000 7.00
+ 3 2019Q1 218062.8000 6.40 8769.4000 2.70 81806.5000 6.10 127486.9000 7.00
+ 4 2018Q4 900309.5000 6.60 64734.0000 3.50 366000.9000 5.80 469574.6000 7.60
+ .. ... ... ... ... ... ... ... ... ...
+ 147 1956Q4 1028.0000 15.00 443.9000 4.70 280.7000 34.50 303.4000 14.10
+ 148 1955Q4 910.0000 6.80 421.0000 7.90 222.2000 7.60 266.8000 4.60
+ 149 1954Q4 859.0000 4.20 392.0000 1.70 211.7000 15.70 255.3000 -0.60
+ 150 1953Q4 824.0000 15.60 378.0000 1.90 192.5000 35.80 253.5000 27.30
+ 151 1952Q4 679.0000 None 342.9000 None 141.8000 None 194.3000 None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\346\231\257\346\260\224\345\272\246/\351\207\207\350\264\255\347\273\217\347\220\206\346\214\207\346\225\260(PMI).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\346\231\257\346\260\224\345\272\246/\351\207\207\350\264\255\347\273\217\347\220\206\346\214\207\346\225\260(PMI).md"
new file mode 100644
index 000000000..03c5ce153
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\346\231\257\346\260\224\345\272\246/\351\207\207\350\264\255\347\273\217\347\220\206\346\214\207\346\225\260(PMI).md"
@@ -0,0 +1,112 @@
+## ้‡‡่ดญ็ป็†ไบบๆŒ‡ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšcn_pmi
+ๆ่ฟฐ๏ผš้‡‡่ดญ็ป็†ไบบๆŒ‡ๆ•ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ2000็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+m | str | N | ๆœˆๅบฆ๏ผˆ202401่กจ็คบ๏ผŒ2024ๅนด1ๆœˆ๏ผ‰
+start_m | str | N | ๅผ€ๅง‹ๆœˆๅบฆ
+end_m | str | N | ็ป“ๆŸๆœˆๅบฆ๏ผˆe.g. fields='month,pmi010000,pmi010400'๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | N | ๆœˆไปฝYYYYMM
+pmi010000 | float | N | ๅˆถ้€ ไธšPMI
+pmi010100 | float | N | ๅˆถ้€ ไธšPMI:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010200 | float | N | ๅˆถ้€ ไธšPMI:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010300 | float | N | ๅˆถ้€ ไธšPMI:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010400 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/็”ŸไบงๆŒ‡ๆ•ฐ
+pmi010401 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/็”ŸไบงๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010402 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/็”ŸไบงๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010403 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/็”ŸไบงๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010500 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ
+pmi010501 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010502 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010503 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010600 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไพ›ๅบ”ๅ•†้…้€ๆ—ถ้—ดๆŒ‡ๆ•ฐ
+pmi010601 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไพ›ๅบ”ๅ•†้…้€ๆ—ถ้—ดๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010602 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไพ›ๅบ”ๅ•†้…้€ๆ—ถ้—ดๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010603 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไพ›ๅบ”ๅ•†้…้€ๆ—ถ้—ดๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010700 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๅŽŸๆๆ–™ๅบ“ๅญ˜ๆŒ‡ๆ•ฐ
+pmi010701 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๅŽŸๆๆ–™ๅบ“ๅญ˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010702 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๅŽŸๆๆ–™ๅบ“ๅญ˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010703 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ๅŽŸๆๆ–™ๅบ“ๅญ˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010800 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ
+pmi010801 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅคงๅž‹ไผไธš
+pmi010802 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ไธญๅž‹ไผไธš
+pmi010803 | float | N | ๅˆถ้€ ไธšPMI:ๆž„ๆˆๆŒ‡ๆ•ฐ/ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ:ไผไธš่ง„ๆจก/ๅฐๅž‹ไผไธš
+pmi010900 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/ๆ–ฐๅ‡บๅฃ่ฎขๅ•
+pmi011000 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/่ฟ›ๅฃ
+pmi011100 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/้‡‡่ดญ้‡
+pmi011200 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/ไธป่ฆๅŽŸๆๆ–™่ดญ่ฟ›ไปทๆ ผ
+pmi011300 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/ๅ‡บๅŽ‚ไปทๆ ผ
+pmi011400 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/ไบงๆˆๅ“ๅบ“ๅญ˜
+pmi011500 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/ๅœจๆ‰‹่ฎขๅ•
+pmi011600 | float | N | ๅˆถ้€ ไธšPMI:ๅ…ถไป–/็”Ÿไบง็ป่ฅๆดปๅŠจ้ข„ๆœŸ
+pmi011700 | float | N | ๅˆถ้€ ไธšPMI:ๅˆ†่กŒไธš/่ฃ…ๅค‡ๅˆถ้€ ไธš
+pmi011800 | float | N | ๅˆถ้€ ไธšPMI:ๅˆ†่กŒไธš/้ซ˜ๆŠ€ๆœฏๅˆถ้€ ไธš
+pmi011900 | float | N | ๅˆถ้€ ไธšPMI:ๅˆ†่กŒไธš/ๅŸบ็ก€ๅŽŸๆๆ–™ๅˆถ้€ ไธš
+pmi012000 | float | N | ๅˆถ้€ ไธšPMI:ๅˆ†่กŒไธš/ๆถˆ่ดนๅ“ๅˆถ้€ ไธš
+pmi020100 | float | N | ้žๅˆถ้€ ไธšPMI:ๅ•†ๅŠกๆดปๅŠจ
+pmi020101 | float | N | ้žๅˆถ้€ ไธšPMI:ๅ•†ๅŠกๆดปๅŠจ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020102 | float | N | ้žๅˆถ้€ ไธšPMI:ๅ•†ๅŠกๆดปๅŠจ:ๅˆ†่กŒไธš/ๆœๅŠกไธšไธš
+pmi020200 | float | N | ้žๅˆถ้€ ไธšPMI:ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ
+pmi020201 | float | N | ้žๅˆถ้€ ไธšPMI:ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020202 | float | N | ้žๅˆถ้€ ไธšPMI:ๆ–ฐ่ฎขๅ•ๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๆœๅŠกไธš
+pmi020300 | float | N | ้žๅˆถ้€ ไธšPMI:ๆŠ•ๅ…ฅๅ“ไปทๆ ผๆŒ‡ๆ•ฐ
+pmi020301 | float | N | ้žๅˆถ้€ ไธšPMI:ๆŠ•ๅ…ฅๅ“ไปทๆ ผๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020302 | float | N | ้žๅˆถ้€ ไธšPMI:ๆŠ•ๅ…ฅๅ“ไปทๆ ผๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๆœๅŠกไธš
+pmi020400 | float | N | ้žๅˆถ้€ ไธšPMI:้”€ๅ”ฎไปทๆ ผๆŒ‡ๆ•ฐ
+pmi020401 | float | N | ้žๅˆถ้€ ไธšPMI:้”€ๅ”ฎไปทๆ ผๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020402 | float | N | ้žๅˆถ้€ ไธšPMI:้”€ๅ”ฎไปทๆ ผๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๆœๅŠกไธš
+pmi020500 | float | N | ้žๅˆถ้€ ไธšPMI:ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ
+pmi020501 | float | N | ้žๅˆถ้€ ไธšPMI:ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020502 | float | N | ้žๅˆถ้€ ไธšPMI:ไปŽไธšไบบๅ‘˜ๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๆœๅŠกไธš
+pmi020600 | float | N | ้žๅˆถ้€ ไธšPMI:ไธšๅŠกๆดปๅŠจ้ข„ๆœŸๆŒ‡ๆ•ฐ
+pmi020601 | float | N | ้žๅˆถ้€ ไธšPMI:ไธšๅŠกๆดปๅŠจ้ข„ๆœŸๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๅปบ็ญ‘ไธš
+pmi020602 | float | N | ้žๅˆถ้€ ไธšPMI:ไธšๅŠกๆดปๅŠจ้ข„ๆœŸๆŒ‡ๆ•ฐ:ๅˆ†่กŒไธš/ๆœๅŠกไธš
+pmi020700 | float | N | ้žๅˆถ้€ ไธšPMI:ๆ–ฐๅ‡บๅฃ่ฎขๅ•
+pmi020800 | float | N | ้žๅˆถ้€ ไธšPMI:ๅœจๆ‰‹่ฎขๅ•
+pmi020900 | float | N | ้žๅˆถ้€ ไธšPMI:ๅญ˜่ดง
+pmi021000 | float | N | ้žๅˆถ้€ ไธšPMI:ไพ›ๅบ”ๅ•†้…้€ๆ—ถ้—ด
+pmi030000 | float | N | ไธญๅ›ฝ็ปผๅˆPMI:ไบงๅ‡บๆŒ‡ๆ•ฐ
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+pro = ts.pro_api()
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.cn_pmi(start_m='201901', end_m='202003', fields='month,pmi010000,pmi010400')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ month pmi010000 pmi010100 pmi010200 pmi010300 pmi010400 pmi010401 pmi010402
+ 0 202403 50.80 51.10 50.60 50.30 52.20 52.70 51.50
+ 1 202402 49.10 50.40 49.10 46.40 49.80 51.20 49.60
+ 2 202401 49.20 50.40 48.90 47.20 51.30 52.30 52.40
+ 3 202312 49.00 50.00 48.70 47.30 50.20 51.50 50.10
+ 4 202311 49.40 50.50 48.80 47.80 50.70 52.10 50.50
+ 5 202310 49.50 50.70 48.70 47.90 50.90 53.10 49.00
+ 6 202309 50.20 51.60 49.60 48.00 52.70 54.40 52.40
+ 7 202308 49.70 50.80 49.60 47.70 51.90 53.70 51.60
+ 8 202307 49.30 50.30 49.00 47.40 50.20 52.00 49.50
+ 9 202306 49.00 50.30 48.90 46.40 50.30 52.70 50.20
+ 10 202305 48.80 50.00 47.60 47.90 49.60 51.50 48.00
+ 11 202304 49.20 49.30 49.20 49.00 50.20 50.10 49.80
+ 12 202303 51.90 53.60 50.30 50.40 54.60 57.20 52.60
+ 13 202302 52.60 53.70 52.00 51.20 56.70 58.20 56.60
+ 14 202301 50.10 52.30 48.60 47.20 49.80 53.10 47.20
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\347\244\276\344\274\232\350\236\215\350\265\204/\347\244\276\350\236\215\345\242\236\351\207\217(\346\234\210\345\272\246).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\347\244\276\344\274\232\350\236\215\350\265\204/\347\244\276\350\236\215\345\242\236\351\207\217(\346\234\210\345\272\246).md"
new file mode 100644
index 000000000..6718be36e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\347\244\276\344\274\232\350\236\215\350\265\204/\347\244\276\350\236\215\345\242\236\351\207\217(\346\234\210\345\272\246).md"
@@ -0,0 +1,76 @@
+## ็คพ่žๆ•ฐๆฎ๏ผˆๆœˆๅบฆ๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšsf_month
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœˆๅบฆ็คพไผš่ž่ต„ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš้œ€2000็งฏๅˆ†
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+m | str | N | ๆœˆไปฝ๏ผˆYYYYMM๏ผŒไธ‹ๅŒ๏ผ‰๏ผŒๆ”ฏๆŒๅคšไธชๆœˆไปฝๅŒๆ—ถ่พ“ๅ…ฅ๏ผŒ้€—ๅทๅˆ†้š”
+start_m | str | N | ๅผ€ๅง‹ๆœˆไปฝ
+end_m | str | N | ็ป“ๆŸๆœˆไปฝ
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ๆœˆๅบฆ
+inc_month | float | Y | ็คพ่žๅขž้‡ๅฝ“ๆœˆๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+inc_cumval | float | Y | ็คพ่žๅขž้‡็ดฏ่ฎกๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+stk_endval | float | Y | ็คพ่žๅญ˜้‡ๆœŸๆœซๅ€ผ๏ผˆไธ‡ไบฟๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.sf_month(start_m='201901', end_m='202307')
+
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ month inc_month inc_cumval stk_endval
+ 0 202307 5282.00 220800.00 365.77
+ 1 202306 42241.00 215487.00 365.45
+ 2 202305 15555.00 173246.00 361.42
+ 3 202304 12253.00 157691.00 359.95
+ 4 202303 53862.00 145438.00 359.02
+ 5 202302 31623.00 91576.00 353.97
+ 6 202301 59953.00 59953.00 350.93
+ 7 202212 13058.00 320099.00 344.21
+ 8 202211 19837.00 307041.00 343.19
+ 9 202210 9134.00 287204.00 341.42
+ 10 202209 35411.00 278070.00 340.65
+ 11 202208 24712.00 242659.00 337.22
+ 12 202207 7785.00 217947.00 334.90
+ 13 202206 51926.00 210162.00 334.28
+ 14 202205 28415.00 158236.00 329.20
+ 15 202204 9327.00 129821.00 326.47
+ 16 202203 46565.00 120494.00 325.63
+ 17 202202 12170.00 73929.00 321.12
+ 18 202201 61759.00 61759.00 320.03
+ 19 202112 23580.00 313408.00 314.12
+ 20 202111 25983.00 289828.00 311.90
+ 21 202110 16176.00 263845.00 309.45
+ 22 202109 29026.00 247669.00 308.05
+ 23 202108 29893.00 218643.00 305.29
+ 24 202107 10752.00 188750.00 302.47
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217(\346\234\210).md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217(\346\234\210).md"
new file mode 100644
index 000000000..a32f7bba3
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\345\206\205\345\256\217\350\247\202/\351\207\221\350\236\215/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217/\350\264\247\345\270\201\344\276\233\345\272\224\351\207\217(\346\234\210).md"
@@ -0,0 +1,63 @@
+## ่ดงๅธไพ›ๅบ”้‡
+----
+
+ๆŽฅๅฃ๏ผšcn_m
+ๆ่ฟฐ๏ผš่Žทๅ–่ดงๅธไพ›ๅบ”้‡ไน‹ๆœˆๅบฆๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000๏ผŒไธ€ๆฌกๅฏไปฅๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ600็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+m | str | N | ๆœˆๅบฆ๏ผˆ202001่กจ็คบ๏ผŒ2020ๅนด1ๆœˆ๏ผ‰
+start_m | str | N | ๅผ€ๅง‹ๆœˆๅบฆ
+end_m | str | N | ็ป“ๆŸๆœˆๅบฆ
+fields | str | N | ๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต๏ผˆe.g. fields='month,m0,m1,m2'๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ๆœˆไปฝYYYYMM
+m0 | float | Y | M0๏ผˆไบฟๅ…ƒ๏ผ‰
+m0_yoy | float | Y | M0ๅŒๆฏ”๏ผˆ%๏ผ‰
+m0_mom | float | Y | M0็Žฏๆฏ”๏ผˆ%๏ผ‰
+m1 | float | Y | M1๏ผˆไบฟๅ…ƒ๏ผ‰
+m1_yoy | float | Y | M1ๅŒๆฏ”๏ผˆ%๏ผ‰
+m1_mom | float | Y | M1็Žฏๆฏ”๏ผˆ%๏ผ‰
+m2 | float | Y | M2๏ผˆไบฟๅ…ƒ๏ผ‰
+m2_yoy | float | Y | M2ๅŒๆฏ”๏ผˆ%๏ผ‰
+m2_mom | float | Y | M2็Žฏๆฏ”๏ผˆ%๏ผ‰
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+pro = ts.pro_api()
+df = pro.cn_m(start_m='201901', end_m='202003')
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.cn_m(start_m='201901', end_m='202003', fields='month,m0,m1,m2')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ month m0 m0_yoy m0_mom m1 m1_yoy m1_mom m2 m2_yoy m2_mom
+ 0 202003 83000.00 10.80 -5.90 575100.00 5.00 4.05 2080900.00 10.10 2.47
+ 1 202002 88200.00 10.90 -5.36 552700.00 4.80 1.32 2030800.00 8.80 0.38
+ 2 202001 93200.00 6.60 20.73 545500.00 0.00 -5.30 2023100.00 8.40 1.84
+ 3 201912 77200.00 5.40 4.36 576000.00 4.40 2.40 1986500.00 8.70 1.28
+ 4 201911 73973.82 4.80 0.79 562486.52 3.50 0.78 1961429.56 8.20 0.81
+ 5 201910 73395.40 4.70 -0.99 558143.92 3.30 0.18 1945600.55 8.40 -0.34
+ 6 201909 74129.75 4.00 1.34 557137.95 3.40 0.06 1952250.49 8.40 0.87
+ 7 201908 73152.62 4.80 0.64 556798.09 3.40 0.68 1935492.43 8.20 0.84
+ 8 201907 72689.25 4.50 0.15 553043.11 3.10 -2.58 1919410.82 8.10 -0.10
+ 9 201906 72580.96 4.30 -0.30 567696.18 4.40 4.29 1921360.19 8.50 1.60
+ 10 201905 72798.46 4.30 -1.58 544355.64 3.40 0.69 1891153.70 8.50 0.34
+ 11 201904 73965.76 3.50 -1.30 540614.60 2.90 -1.27 1884670.33 8.50 -0.25
+ 12 201903 74941.58 3.10 -5.72 547575.54 4.60 3.87 1889412.14 8.60 1.18
+ 13 201902 79484.72 -2.40 -9.13 527190.48 1.60 -3.38 1867427.45 8.00 0.08
+ 14 201901 87470.62 17.20 19.48 545638.46 0.40 -1.10 1865935.33 8.40 2.15
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\345\256\236\351\231\205\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\345\256\236\351\231\205\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..b7d85d179
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\345\256\236\351\231\205\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md"
@@ -0,0 +1,69 @@
+## ๅ›ฝๅ€บๅฎž้™…ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšus_trycr
+ๆ่ฟฐ๏ผšๅ›ฝๅ€บๅฎž้™…ๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–2000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+y5 | float | Y | 5ๅนดๆœŸ
+y7 | float | Y | 7ๅนดๆœŸ
+y10 | float | Y | 10ๅนดๆœŸ
+y20 | float | Y | 20ๅนดๆœŸ
+y30 | float | Y | 30ๅนดๆœŸ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_trycr(start_date='20180101', end_date='20200327')
+
+
+#่Žทๅ–5ๅนดๆœŸๅ’Œ20ๅนดๆœŸๆ•ฐๆฎ
+df = pro.us_trycr(start_date='20180101', end_date='20200327', fields='y5,y20')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date y5 y7 y10 y20 y30
+ 0 20200327 -0.13 -0.20 -0.22 -0.12 -0.03
+ 1 20200326 -0.21 -0.24 -0.24 -0.14 -0.05
+ 2 20200325 -0.13 -0.18 -0.19 -0.09 0.00
+ 3 20200324 -0.03 -0.11 -0.13 -0.09 -0.07
+ 4 20200323 0.01 -0.03 -0.04 -0.02 -0.01
+ ... ... ... ... ... ... ...
+ 1995 20120404 -0.91 -0.46 -0.05 0.62 0.94
+ 1996 20120403 -0.94 -0.48 -0.06 0.62 0.94
+ 1997 20120402 -1.01 -0.55 -0.14 0.56 0.89
+ 1998 20120330 -0.98 -0.53 -0.09 0.61 0.93
+ 1999 20120329 -0.98 -0.53 -0.13 0.55 0.87
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..5d37894ff
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\346\224\266\347\233\212\347\216\207\346\233\262\347\272\277\345\210\251\347\216\207.md"
@@ -0,0 +1,81 @@
+## ๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ๏ผˆๆ—ฅ้ข‘๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšus_tycr
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽๅ›ฝๆฏๆ—ฅๅ›ฝๅ€บๆ”ถ็›Š็އๆ›ฒ็บฟๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–2000ๆกๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต๏ผˆe.g. fields='m1,y1'๏ผ‰
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+m1 | float | Y | 1ๆœˆๆœŸ
+m2 | float | Y | 2ๆœˆๆœŸ
+m3 | float | Y | 3ๆœˆๆœŸ
+m4 | float | Y | 4ๆœˆๆœŸ๏ผˆๆ•ฐๆฎไปŽ20221019ๅผ€ๅง‹๏ผ‰
+m6 | float | Y | 6ๆœˆๆœŸ
+y1 | float | Y | 1ๅนดๆœŸ
+y2 | float | Y | 2ๅนดๆœŸ
+y3 | float | Y | 3ๅนดๆœŸ
+y5 | float | Y | 5ๅนดๆœŸ
+y7 | float | Y | 7ๅนดๆœŸ
+y10 | float | Y | 10ๅนดๆœŸ
+y20 | float | Y | 20ๅนดๆœŸ
+y30 | float | Y | 30ๅนดๆœŸ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_tycr(start_date='20180101', end_date='20200327')
+
+
+#่Žทๅ–1ๆœˆๆœŸๅ’Œ1ๅนดๆœŸๆ•ฐๆฎ
+df = pro.us_tycr(start_date='20180101', end_date='20200327', fields='m1,y1')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+
+ date m1 m2 m3 m6 y1 y2 y3 y5 y7 y10 y20 y30
+ 0 20200327 0.01 0.03 0.03 0.02 0.11 0.25 0.30 0.41 0.60 0.72 1.09 1.29
+ 1 20200326 0.01 0.01 0.00 0.04 0.13 0.30 0.36 0.51 0.72 0.83 1.20 1.42
+ 2 20200325 0.00 0.00 0.00 0.07 0.19 0.34 0.41 0.56 0.77 0.88 1.23 1.45
+ 3 20200324 0.01 0.01 0.01 0.09 0.25 0.38 0.44 0.52 0.75 0.84 1.19 1.39
+ 4 20200323 0.01 0.04 0.02 0.08 0.17 0.28 0.31 0.38 0.63 0.76 1.12 1.33
+ ... ... ... ... ... ... ... ... ... ... ... ... ... ...
+ 1995 20120405 0.07 None 0.08 0.14 0.19 0.35 0.50 1.01 1.56 2.19 2.97 3.32
+ 1996 20120404 0.08 None 0.08 0.14 0.19 0.35 0.53 1.05 1.62 2.25 3.02 3.37
+ 1997 20120403 0.07 None 0.08 0.15 0.20 0.36 0.56 1.10 1.68 2.30 3.07 3.41
+ 1998 20120402 0.05 None 0.08 0.14 0.18 0.33 0.50 1.03 1.60 2.22 3.00 3.35
+ 1999 20120330 0.05 None 0.07 0.15 0.19 0.33 0.51 1.04 1.61 2.23 3.00 3.35
+
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..a6308cbce
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207.md"
@@ -0,0 +1,65 @@
+## ๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšus_tltr
+ๆ่ฟฐ๏ผšๅ›ฝๅ€บ้•ฟๆœŸๅˆฉ็އ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–2000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎšๅญ—ๆฎต
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+ltc | float | Y | ๆ”ถ็›Š็އ LT COMPOSITE (&gt;10 Yrs)
+cmt | float | Y | 20ๅนดๆœŸCMTๅˆฉ็އ(TREASURY 20-Yr CMT)
+e_factor | float | Y | ๅค–ๆŽจๅ› ๅญEXTRAPOLATION FACTOR
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_tltr(start_date='20180101', end_date='20200327')
+
+
+#่Žทๅ–5ๅนดๆœŸๅ’Œ20ๅนดๆœŸๆ•ฐๆฎ
+df = pro.us_tltr(start_date='20180101', end_date='20200327', fields='ltc,cmt')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date ltc cmt e_factor
+ 0 20200327 1.19 1.09 None
+ 1 20200326 1.32 1.20 None
+ 2 20200325 1.35 1.23 None
+ 3 20200324 1.30 1.19 None
+ 4 20200323 1.25 1.12 None
+ ... ... ... ... ...
+ 1995 20120404 2.98 3.02 None
+ 1996 20120403 3.02 3.07 None
+ 1997 20120402 2.96 3.00 None
+ 1998 20120330 2.96 3.00 None
+ 1999 20120329 2.89 2.93 None
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207\345\271\263\345\235\207\345\200\274.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207\345\271\263\345\235\207\345\200\274.md"
new file mode 100644
index 000000000..413a8e9f8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\345\233\275\345\200\272\351\225\277\346\234\237\345\210\251\347\216\207\345\271\263\345\235\207\345\200\274.md"
@@ -0,0 +1,65 @@
+## ๅ›ฝๅ€บๅฎž้™…้•ฟๆœŸๅˆฉ็އๅนณๅ‡ๅ€ผ
+----
+
+ๆŽฅๅฃ๏ผšus_trltr
+ๆ่ฟฐ๏ผšๅ›ฝๅ€บๅฎž้™…้•ฟๆœŸๅˆฉ็އๅนณๅ‡ๅ€ผ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–2000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎšๅญ—ๆฎต
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+ltr_avg | float | Y | ๅฎž้™…ๅนณๅ‡ๅˆฉ็އLT Real Average (10&gt; Yrs)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_trltr(start_date='20180101', end_date='20200327')
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎต
+df = pro.us_trltr(start_date='20180101', end_date='20200327', fields='ltr_avg')
+
+```
+
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date ltr_avg
+ 0 20200327 -0.02
+ 1 20200326 -0.05
+ 2 20200325 0.01
+ 3 20200324 -0.04
+ 4 20200323 0.04
+ ... ... ...
+ 1995 20120404 0.57
+ 1996 20120403 0.58
+ 1997 20120402 0.53
+ 1998 20120330 0.57
+ 1999 20120329 0.51
+
diff --git "a/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\347\237\255\346\234\237\345\233\275\345\200\272\345\210\251\347\216\207.md" "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\347\237\255\346\234\237\345\233\275\345\200\272\345\210\251\347\216\207.md"
new file mode 100644
index 000000000..dbb67dda6
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\345\256\217\350\247\202\347\273\217\346\265\216/\345\233\275\351\231\205\345\256\217\350\247\202/\347\276\216\345\233\275\345\210\251\347\216\207/\347\237\255\346\234\237\345\233\275\345\200\272\345\210\251\347\216\207.md"
@@ -0,0 +1,79 @@
+## ็ŸญๆœŸๅ›ฝๅ€บๅˆฉ็އ
+----
+
+ๆŽฅๅฃ๏ผšus_tbr
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽๅ›ฝ็ŸญๆœŸๅ›ฝๅ€บๅˆฉ็އๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–2000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ120็งฏๅˆ†ๅฏไปฅไฝฟ็”จ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต(e.g. fields='w4_bd,w52_ce')
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+w4_bd | float | Y | 4ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ
+w4_ce | float | Y | 4ๅ‘จ็ฅจ้ขๅˆฉ็އ
+w8_bd | float | Y | 8ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ
+w8_ce | float | Y | 8ๅ‘จ็ฅจ้ขๅˆฉ็އ
+w13_bd | float | Y | 13ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ
+w13_ce | float | Y | 13ๅ‘จ็ฅจ้ขๅˆฉ็އ
+w17_bd | float | Y | 17ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ๏ผˆๆ•ฐๆฎไปŽ20221019ๅผ€ๅง‹๏ผ‰
+w17_ce | float | Y | 17ๅ‘จ็ฅจ้ขๅˆฉ็އ๏ผˆๆ•ฐๆฎไปŽ20221019ๅผ€ๅง‹๏ผ‰
+w26_bd | float | Y | 26ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ
+w26_ce | float | Y | 26ๅ‘จ็ฅจ้ขๅˆฉ็އ
+w52_bd | float | Y | 52ๅ‘จ้“ถ่กŒๆŠ˜็Žฐๆ”ถ็›Š็އ
+w52_ce | float | Y | 52ๅ‘จ็ฅจ้ขๅˆฉ็އ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_tbr(start_date='20180101', end_date='20200327')
+
+
+#่Žทๅ–ๆŒ‡ๅฎšๅญ—ๆฎตๆ•ฐๆฎ
+df = pro.us_tbr(start_date='20180101', end_date='20200327', fields='w4_bd,w52_ce')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ date w4_bd w4_ce w8_bd w8_ce w13_bd w13_ce w26_bd w26_ce w52_bd w52_ce
+ 0 20200327 0.01 0.01 0.03 0.03 0.03 0.03 0.02 0.02 0.11 0.11
+ 1 20200326 0.01 0.01 0.01 0.01 -0.05 -0.05 0.04 0.04 0.13 0.13
+ 2 20200325 -0.04 -0.04 -0.03 -0.03 -0.04 -0.04 0.07 0.07 0.19 0.19
+ 3 20200324 0.01 0.01 0.01 0.01 0.01 0.01 0.09 0.09 0.25 0.25
+ 4 20200323 0.01 0.01 0.04 0.04 0.02 0.02 0.08 0.08 0.16 0.16
+ ... ... ... ... ... ... ... ... ... ... ... ...
+ 1995 20120405 0.07 0.07 None None 0.08 0.08 0.14 0.14 0.19 0.19
+ 1996 20120404 0.08 0.08 None None 0.08 0.08 0.14 0.14 0.19 0.19
+ 1997 20120403 0.07 0.07 None None 0.08 0.08 0.15 0.15 0.20 0.20
+ 1998 20120402 0.05 0.05 None None 0.08 0.08 0.14 0.14 0.17 0.17
+ 1999 20120330 0.05 0.05 None None 0.07 0.07 0.15 0.15 0.18 0.18
+
+
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\210\220\345\210\206.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\210\220\345\210\206.md"
new file mode 100644
index 000000000..9a2b6c02e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\210\220\345\210\206.md"
@@ -0,0 +1,124 @@
+## ไธญไฟก่กŒไธšๆˆๅˆ†
+----
+
+ๆŽฅๅฃ๏ผšci_index_member
+ๆ่ฟฐ๏ผšๆŒ‰ไธ‰็บงๅˆ†็ฑปๆๅ–ไธญไฟก่กŒไธšๆˆๅˆ†๏ผŒๅฏๆไพ›ๆŸไธชๅˆ†็ฑป็š„ๆ‰€ๆœ‰ๆˆๅˆ†๏ผŒไนŸๅฏๆŒ‰่‚ก็ฅจไปฃ็ ๆๅ–ๆ‰€ๅฑžๅˆ†็ฑป๏ผŒๅ‚ๆ•ฐ็ตๆดป
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000่กŒ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€5000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ็งฏๅˆ†่Žทๅ–ๆ–นๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+l1_code | str | N | ไธ€็บง่กŒไธšไปฃ็ 
+l2_code | str | N | ไบŒ็บง่กŒไธšไปฃ็ 
+l3_code | str | N | ไธ‰็บง่กŒไธšไปฃ็ 
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+is_new | str | N | ๆ˜ฏๅฆๆœ€ๆ–ฐ๏ผˆ้ป˜่ฎคไธบโ€œYๆ˜ฏโ€๏ผ‰
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+l1_code | str | Y | ไธ€็บง่กŒไธšไปฃ็ 
+l1_name | str | Y | ไธ€็บง่กŒไธšๅ็งฐ
+l2_code | str | Y | ไบŒ็บง่กŒไธšไปฃ็ 
+l2_name | str | Y | ไบŒ็บง่กŒไธšๅ็งฐ
+l3_code | str | Y | ไธ‰็บง่กŒไธšไปฃ็ 
+l3_name | str | Y | ไธ‰็บง่กŒไธšๅ็งฐ
+ts_code | str | Y | ๆˆๅˆ†่‚ก็ฅจไปฃ็ 
+name | str | Y | ๆˆๅˆ†่‚ก็ฅจๅ็งฐ
+in_date | str | Y | ็บณๅ…ฅๆ—ฅๆœŸ
+out_date | str | Y | ๅ‰”้™คๆ—ฅๆœŸ
+is_new | str | Y | ๆ˜ฏๅฆๆœ€ๆ–ฐYๆ˜ฏNๅฆ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไบŒ็บงๅˆ†็ฑปๅ…ƒๅ™จไปถ็š„ๆˆไปฝ่‚ก
+df = pro.ci_index_member(l2_code='CI005835.CI', fields='l2_code,l1_name,ts_code,name')
+
+#่Žทๅ–000001.SZๆ‰€ๅฑž่กŒไธš
+df = pro.ci_index_member(ts_code='000001.SZ')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ l2_code l1_name ts_code name
+ 0 CI005835.CI ็”ตๅญ 301628.SZ ๅผบ่พพ็”ต่ทฏ
+ 1 CI005835.CI ็”ตๅญ 920060.BJ ไธ‡ๆบ้€š
+ 2 CI005835.CI ็”ตๅญ 301251.SZ ๅจๅฐ”้ซ˜
+ 3 CI005835.CI ็”ตๅญ 002552.SZ ๅฎ้ผŽ็ง‘ๆŠ€
+ 4 CI005835.CI ็”ตๅญ 301566.SZ ่พพๅˆฉๅ‡ฏๆ™ฎ
+ 5 CI005835.CI ็”ตๅญ 688519.SH ๅ—ไบšๆ–ฐๆ
+ 6 CI005835.CI ็”ตๅญ 603920.SH ไธ–่ฟ็”ต่ทฏ
+ 7 CI005835.CI ็”ตๅญ 603936.SH ๅšๆ•็”ตๅญ
+ 8 CI005835.CI ็”ตๅญ 603989.SH ่‰พๅŽ้›†ๅ›ข
+ 9 CI005835.CI ็”ตๅญ 688020.SH ๆ–น้‚ฆ่‚กไปฝ
+ 10 CI005835.CI ็”ตๅญ 300852.SZ ๅ››ไผšๅฏŒไป•
+ 11 CI005835.CI ็”ตๅญ 688655.SH ่ฟ…ๆทๅ…ด
+ 12 CI005835.CI ็”ตๅญ 688183.SH ็”Ÿ็›Š็”ตๅญ
+ 13 CI005835.CI ็”ตๅญ 301132.SZ ๆปกๅค็ง‘ๆŠ€
+ 14 CI005835.CI ็”ตๅญ 001389.SZ ๅนฟๅˆ็ง‘ๆŠ€
+ 15 CI005835.CI ็”ตๅญ 002288.SZ *ST่ถ…ๅŽ(้€€ๅธ‚)
+ 16 CI005835.CI ็”ตๅญ 600563.SH ๆณ•ๆ‹‰็”ตๅญ
+ 17 CI005835.CI ็”ตๅญ 603186.SH ๅŽๆญฃๆ–ฐๆ
+ 18 CI005835.CI ็”ตๅญ 603228.SH ๆ™ฏๆ—บ็”ตๅญ
+ 19 CI005835.CI ็”ตๅญ 603328.SH ไพ้กฟ็”ตๅญ
+ 20 CI005835.CI ็”ตๅญ 000636.SZ ้ฃŽๅŽ้ซ˜็ง‘
+ 21 CI005835.CI ็”ตๅญ 000823.SZ ่ถ…ๅฃฐ็”ตๅญ
+ 22 CI005835.CI ็”ตๅญ 002134.SZ ๅคฉๆดฅๆ™ฎๆž—
+ 23 CI005835.CI ็”ตๅญ 002138.SZ ้กบ็ปœ็”ตๅญ
+ 24 CI005835.CI ็”ตๅญ 002199.SZ *STไธœๆ™ถ
+ 25 CI005835.CI ็”ตๅญ 002436.SZ ๅ…ดๆฃฎ็ง‘ๆŠ€
+ 26 CI005835.CI ็”ตๅญ 002463.SZ ๆฒช็”ต่‚กไปฝ
+ 27 CI005835.CI ็”ตๅญ 002484.SZ ๆฑŸๆตท่‚กไปฝ
+ 28 CI005835.CI ็”ตๅญ 002579.SZ ไธญไบฌ็”ตๅญ
+ 29 CI005835.CI ็”ตๅญ 002618.SZ ไธน้‚ฆ้€€(้€€ๅธ‚)
+ 30 CI005835.CI ็”ตๅญ 002636.SZ ้‡‘ๅฎ‰ๅ›ฝ็บช
+ 31 CI005835.CI ็”ตๅญ 300814.SZ ไธญๅฏŒ็”ต่ทฏ
+ 32 CI005835.CI ็”ตๅญ 300964.SZ ๆœฌๅทๆ™บ่ƒฝ
+ 33 CI005835.CI ็”ตๅญ 002815.SZ ๅด‡่พพๆŠ€ๆœฏ
+ 34 CI005835.CI ็”ตๅญ 002859.SZ ๆด็พŽ็ง‘ๆŠ€
+ 35 CI005835.CI ็”ตๅญ 002913.SZ ๅฅฅๅฃซๅบท
+ 36 CI005835.CI ็”ตๅญ 002916.SZ ๆทฑๅ—็”ต่ทฏ
+ 37 CI005835.CI ็”ตๅญ 301366.SZ ไธ€ๅš็ง‘ๆŠ€
+ 38 CI005835.CI ็”ตๅญ 300319.SZ ้บฆๆท็ง‘ๆŠ€
+ 39 CI005835.CI ็”ตๅญ 300408.SZ ไธ‰็Žฏ้›†ๅ›ข
+ 40 CI005835.CI ็”ตๅญ 300476.SZ ่ƒœๅฎ็ง‘ๆŠ€
+ 41 CI005835.CI ็”ตๅญ 688630.SH ่Šฏ็ขๅพฎ่ฃ…
+ 42 CI005835.CI ็”ตๅญ 300975.SZ ๅ•†็ปœ็”ตๅญ
+ 43 CI005835.CI ็”ตๅญ 837821.BJ ๅˆ™ๆˆ็”ตๅญ
+ 44 CI005835.CI ็”ตๅญ 871981.BJ ๆ™ถ่ต›็ง‘ๆŠ€
+ 45 CI005835.CI ็”ตๅญ 300657.SZ ๅผ˜ไฟก็”ตๅญ
+ 46 CI005835.CI ็”ตๅญ 301282.SZ ้‡‘็ฆ„็”ตๅญ
+ 47 CI005835.CI ็”ตๅญ 300739.SZ ๆ˜Ž้˜ณ็”ต่ทฏ
+ 48 CI005835.CI ็”ตๅญ 600183.SH ็”Ÿ็›Š็ง‘ๆŠ€
+ 49 CI005835.CI ็”ตๅญ 600237.SH ้“œๅณฐ็”ตๅญ
+ 50 CI005835.CI ็”ตๅญ 603386.SH ้ชไบš็ง‘ๆŠ€
+ 51 CI005835.CI ็”ตๅญ 605258.SH ๅๅ’Œ็”ตๅญ
+ 52 CI005835.CI ็”ตๅญ 300903.SZ ็ง‘็ฟ”่‚กไปฝ
+ 53 CI005835.CI ็”ตๅญ 605058.SH ๆพณๅผ˜็”ตๅญ
+ 54 CI005835.CI ็”ตๅญ 301041.SZ ้‡‘็™พๆณฝ
+
+
+
+
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..e18eac9d2
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\344\270\255\344\277\241\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md"
@@ -0,0 +1,73 @@
+## ไธญไฟก่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšci_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ไธญไฟก่กŒไธšๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000ๆก๏ผŒๅฏๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅฏ้€š่ฟ‡ๆŒ‡ๆ•ฐไปฃ็ ๅ’Œๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๆ•ฐๆฎ
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่กŒไธšไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚นไฝ
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡๏ผˆไธ‡่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.ci_daily(trade_date='20230705', fields='ts_code,trade_date,open,low,high,close')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date open low high close
+ 0 CI005001.CI 20230705 2757.5662 2736.8198 2764.1863 2754.2617
+ 1 CI005002.CI 20230705 3006.7166 3000.1382 3039.3916 3029.7837
+ 2 CI005003.CI 20230705 6443.6250 6431.1250 6597.5933 6588.1401
+ 3 CI005004.CI 20230705 2675.3940 2672.7278 2693.6438 2676.9941
+ 4 CI005005.CI 20230705 1575.1489 1571.6997 1597.4792 1593.6205
+ .. ... ... ... ... ... ...
+ 435 CI005920.CI 20230705 6585.6924 6521.1846 6599.1216 6529.9458
+ 436 CI005921.CI 20230705 2759.9133 2753.9324 2781.3979 2757.9863
+ 437 CI005922.CI 20230705 5690.3843 5645.3955 5690.4165 5652.8184
+ 438 CI005923.CI 20230705 5855.1333 5808.8325 5855.1470 5816.7471
+ 439 CI005924.CI 20230705 5782.8662 5737.0601 5782.8984 5744.5962
+
+ [440 rows x 6 columns]
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\233\275\351\231\205\344\270\273\350\246\201\346\214\207\346\225\260.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\233\275\351\231\205\344\270\273\350\246\201\346\214\207\346\225\260.md"
new file mode 100644
index 000000000..27aac1ad9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\233\275\351\231\205\344\270\273\350\246\201\346\214\207\346\225\260.md"
@@ -0,0 +1,120 @@
+## ๅ›ฝ้™…ๆŒ‡ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšindex_global๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ›ฝ้™…ไธป่ฆๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–4000่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๆŒ‡ๆ•ฐไปฃ็ ๏ผŒ่งไธ‹่กจ
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผŒYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+| TSๆŒ‡ๆ•ฐไปฃ็  | ๆŒ‡ๆ•ฐๅ็งฐ |
+| -------- | -------- |
+| XIN9 | ๅฏŒๆ—ถไธญๅ›ฝA50ๆŒ‡ๆ•ฐ (ๅฏŒๆ—ถA50) |
+| HSI | ๆ’็”ŸๆŒ‡ๆ•ฐ |
+| HKTECH | ๆ’็”Ÿ็ง‘ๆŠ€ๆŒ‡ๆ•ฐ |
+| HKAH | ๆ’็”ŸAH่‚กHๆŒ‡ๆ•ฐ |
+| DJI | ้“็ผๆ–ฏๅทฅไธšๆŒ‡ๆ•ฐ |
+| SPX | ๆ ‡ๆ™ฎ500ๆŒ‡ๆ•ฐ |
+| IXIC | ็บณๆ–ฏ่พพๅ…‹ๆŒ‡ๆ•ฐ |
+| FTSE | ๅฏŒๆ—ถ100ๆŒ‡ๆ•ฐ |
+| FCHI | ๆณ•ๅ›ฝCAC40ๆŒ‡ๆ•ฐ |
+| GDAXI | ๅพทๅ›ฝDAXๆŒ‡ๆ•ฐ |
+| N225 | ๆ—ฅ็ป225ๆŒ‡ๆ•ฐ |
+| KS11 | ้Ÿฉๅ›ฝ็ปผๅˆๆŒ‡ๆ•ฐ |
+| AS51 | ๆพณๅคงๅˆฉไบšๆ ‡ๆ™ฎ200ๆŒ‡ๆ•ฐ |
+| SENSEX | ๅฐๅบฆๅญŸไนฐSENSEXๆŒ‡ๆ•ฐ |
+| IBOVESPA | ๅทด่ฅฟIBOVESPAๆŒ‡ๆ•ฐ |
+| RTS | ไฟ„็ฝ—ๆ–ฏRTSๆŒ‡ๆ•ฐ |
+| TWII | ๅฐๆนพๅŠ ๆƒๆŒ‡ๆ•ฐ |
+|CKLSE | ้ฉฌๆฅ่ฅฟไบšๆŒ‡ๆ•ฐ |
+|SPTSX | ๅŠ ๆ‹ฟๅคงS&P/TSXๆŒ‡ๆ•ฐ |
+|CSX5P |STOXXๆฌงๆดฒ50ๆŒ‡ๆ•ฐ |
+|RUT |็ฝ—็ด 2000ๆŒ‡ๆ•ฐ |
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_chg | float | Y | ๆถจ่ทŒๅน…
+swing | float | Y | ๆŒฏๅน…
+vol | float | Y | ๆˆไบค้‡ ๏ผˆๅคง้ƒจๅˆ†ๆ— ๆญค้กนๆ•ฐๆฎ๏ผ‰
+amount | float | N | ๆˆไบค้ข ๏ผˆๅคง้ƒจๅˆ†ๆ— ๆญค้กนๆ•ฐๆฎ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅฏŒๆ—ถไธญๅ›ฝ50ๆŒ‡ๆ•ฐ
+df = pro.index_global(ts_code='XIN9', start_date='20200201', end_date='20200220')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date open close high low pre_close change \
+ 0 20200220 13750.45 14009.40 14023.88 13750.45 13750.45 258.95
+ 1 20200219 13712.13 13750.45 13815.63 13674.43 13712.13 38.32
+ 2 20200218 13859.23 13712.13 13859.32 13671.89 13859.23 -147.10
+ 3 20200217 13646.93 13859.23 13859.23 13632.23 13646.93 212.30
+ 4 20200214 13547.16 13646.93 13660.84 13518.83 13547.16 99.77
+ 5 20200213 13638.49 13547.16 13696.95 13535.21 13638.49 -91.33
+ 6 20200212 13603.43 13638.49 13639.14 13529.55 13603.43 35.06
+ 7 20200211 13420.83 13603.43 13661.80 13420.70 13420.83 182.60
+ 8 20200210 13426.71 13420.83 13455.79 13260.81 13426.71 -5.88
+ 9 20200207 13481.92 13426.71 13481.92 13286.61 13481.92 -55.21
+ 10 20200206 13301.97 13481.92 13532.73 13273.11 13301.97 179.95
+ 11 20200205 13187.05 13301.97 13389.27 13145.93 13187.05 114.92
+ 12 20200204 12815.75 13187.05 13195.82 12815.01 12815.75 371.30
+ 13 20200203 13791.36 12815.75 13791.36 12622.61 13791.36 -975.61
+
+ pct_chg ts_code
+ 0 1.8832 XIN9
+ 1 0.2795 XIN9
+ 2 -1.0614 XIN9
+ 3 1.5557 XIN9
+ 4 0.7365 XIN9
+ 5 -0.6696 XIN9
+ 6 0.2577 XIN9
+ 7 1.3606 XIN9
+ 8 -0.0438 XIN9
+ 9 -0.4095 XIN9
+ 10 1.3528 XIN9
+ 11 0.8715 XIN9
+ 12 2.8972 XIN9
+ 13 -7.0741 XIN9
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\244\247\347\233\230\346\214\207\346\225\260\346\257\217\346\227\245\346\214\207\346\240\207.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\244\247\347\233\230\346\214\207\346\225\260\346\257\217\346\227\245\346\214\207\346\240\207.md"
new file mode 100644
index 000000000..b83986c83
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\345\244\247\347\233\230\346\214\207\346\225\260\346\257\217\346\227\245\346\214\207\346\240\207.md"
@@ -0,0 +1,62 @@
+## ๅคง็›˜ๆŒ‡ๆ•ฐๆฏๆ—ฅๆŒ‡ๆ ‡
+----
+
+ๆŽฅๅฃ๏ผšindex_dailybasic๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš็›ฎๅ‰ๅชๆไพ›ไธŠ่ฏ็ปผๆŒ‡๏ผŒๆทฑ่ฏๆˆๆŒ‡๏ผŒไธŠ่ฏ50๏ผŒไธญ่ฏ500๏ผŒไธญๅฐๆฟๆŒ‡๏ผŒๅˆ›ไธšๆฟๆŒ‡็š„ๆฏๆ—ฅๆŒ‡ๆ ‡ๆ•ฐๆฎ
+ๆ•ฐๆฎๆฅๆบ๏ผšTushare็คพๅŒบ็ปŸ่ฎก่ฎก็ฎ—
+ๆ•ฐๆฎๅކๅฒ๏ผšไปŽ2004ๅนด1ๆœˆๅผ€ๅง‹ๆไพ›
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘400็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏ”ๅฆ‚20181018๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | TSไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+ๆณจ๏ผštrade_date๏ผŒts_code ่‡ณๅฐ‘่ฆ่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ๏ผŒๅ•ๆฌก้™้‡3000ๆก๏ผˆๅณ๏ผŒๅ•ไธ€ๆŒ‡ๆ•ฐๅ•ๆฌกๅฏๆๅ–่ถ…่ฟ‡12ๅนดๅކๅฒ๏ผ‰๏ผŒๆ€ป้‡ไธ้™ๅˆถใ€‚
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+total_mv | float | Y | ๅฝ“ๆ—ฅๆ€ปๅธ‚ๅ€ผ๏ผˆๅ…ƒ๏ผ‰
+float_mv | float | Y | ๅฝ“ๆ—ฅๆต้€šๅธ‚ๅ€ผ๏ผˆๅ…ƒ๏ผ‰
+total_share | float | Y | ๅฝ“ๆ—ฅๆ€ป่‚กๆœฌ๏ผˆ่‚ก๏ผ‰
+float_share | float | Y | ๅฝ“ๆ—ฅๆต้€š่‚กๆœฌ๏ผˆ่‚ก๏ผ‰
+free_share | float | Y | ๅฝ“ๆ—ฅ่‡ช็”ฑๆต้€š่‚กๆœฌ๏ผˆ่‚ก๏ผ‰
+turnover_rate | float | Y | ๆขๆ‰‹็އ
+turnover_rate_f | float | Y | ๆขๆ‰‹็އ(ๅŸบไบŽ่‡ช็”ฑๆต้€š่‚กๆœฌ)
+pe | float | Y | ๅธ‚็›ˆ็އ
+pe_ttm | float | Y | ๅธ‚็›ˆ็އTTM
+pb | float | Y | ๅธ‚ๅ‡€็އ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.index_dailybasic(trade_date='20181018', fields='ts_code,trade_date,turnover_rate,pe')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ ts_code trade_date turnover_rate pe
+ 0 000001.SH 20181018 0.38 11.92
+ 1 000300.SH 20181018 0.27 11.17
+ 2 000905.SH 20181018 0.82 18.03
+ 3 399001.SZ 20181018 0.88 17.48
+ 4 399005.SZ 20181018 0.85 21.43
+ 5 399006.SZ 20181018 1.50 29.56
+ 6 399016.SZ 20181018 1.06 18.86
+ 7 399300.SZ 20181018 0.27 11.17
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\216\206\345\217\262\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\216\206\345\217\262\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..d2b71e66e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\216\206\345\217\262\345\210\206\351\222\237.md"
@@ -0,0 +1,82 @@
+## ่‚ก็ฅจๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšidx_mins
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆŒ‡ๆ•ฐไปฃ็ ๅ’Œๆ—ถ้—ดๅพช็Žฏ่Žทๅ–๏ผŒๆœฌๆŽฅๅฃๅฏไปฅๆไพ›่ถ…่ฟ‡10ๅนดๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๅˆ†้’Ÿๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒe.g. 000001.SH
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2023-08-25 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2023-08-25 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡(่‚ก)
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ไธŠ่ฏ็ปผๆŒ‡000001.SH็š„ๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.idx_mins(ts_code='000001.SH', freq='1min', start_date='2023-08-25 09:00:00', end_date='2023-08-25 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_time close open high low vol amount
+ 0 000001.SH 2023-08-25 15:00:00 3064.0747 3065.2124 3065.2124 3064.0747 315294700.0 3.375271e+09
+ 1 000001.SH 2023-08-25 14:59:00 3065.6626 3065.6626 3065.6626 3065.6626 0.0 0.000000e+00
+ 2 000001.SH 2023-08-25 14:58:00 3065.6626 3065.6570 3065.6626 3065.6570 4073500.0 4.559007e+07
+ 3 000001.SH 2023-08-25 14:57:00 3065.7598 3065.7424 3065.9077 3065.0298 186465300.0 1.920655e+09
+ 4 000001.SH 2023-08-25 14:56:00 3065.5800 3065.7822 3066.4700 3065.3257 166403300.0 1.804927e+09
+ .. ... ... ... ... ... ... ... ...
+ 236 000001.SH 2023-08-25 09:34:00 3064.0361 3067.4740 3068.0984 3064.0361 394884900.0 4.478565e+09
+ 237 000001.SH 2023-08-25 09:33:00 3066.8120 3064.5352 3067.5325 3063.8894 448783200.0 5.006195e+09
+ 238 000001.SH 2023-08-25 09:32:00 3064.6367 3069.6433 3070.4116 3063.8950 525851800.0 5.696113e+09
+ 239 000001.SH 2023-08-25 09:31:00 3069.0334 3067.8394 3069.0334 3066.2466 826002900.0 9.270067e+09
+ 240 000001.SH 2023-08-25 09:30:00 3068.6150 3068.6150 3068.6150 3068.6150 241406700.0 2.880646e+09
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\221\250\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\221\250\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..2bc0b1535
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\221\250\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,96 @@
+## ๆŒ‡ๆ•ฐๅ‘จ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšindex_weekly
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐๅ‘จ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒ่ฎฐๅฝ•๏ผŒๅฏๅˆ†ๆ‰น่Žทๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘600็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠๅคš้ข‘ๆฌก่ถŠ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_chg | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y |ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆๅƒๅ…ƒ๏ผ‰
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.index_weekly(ts_code='000001.SH', start_date='20180101', end_date='20190329', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.index_weekly(trade_date='20190329', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low \
+ 0 000001.SH 20190329 3090.7580 3058.8016 3093.0329 2987.7717
+ 1 000001.SH 20190322 3104.1487 3027.8012 3125.0192 3009.5071
+ 2 000001.SH 20190315 3021.7512 2969.0802 3093.3913 2963.5834
+ 3 000001.SH 20190308 2969.8614 3015.9427 3129.9395 2969.5815
+ 4 000001.SH 20190301 2994.0050 2838.3896 2997.4882 2838.3896
+ 5 000001.SH 20190222 2804.2262 2699.8171 2804.2262 2699.8171
+ 6 000001.SH 20190215 2682.3850 2613.1742 2729.4550 2613.1742
+ 7 000001.SH 20190201 2618.2323 2615.7118 2630.3183 2559.9820
+ 8 000001.SH 20190125 2601.7234 2599.0575 2618.9801 2569.7004
+ 9 000001.SH 20190118 2596.0056 2553.3284 2598.8836 2532.4333
+ 10 000001.SH 20190111 2553.8313 2528.6987 2574.4079 2515.5083
+ 11 000001.SH 20190104 2514.8682 2497.8805 2515.3160 2440.9066
+ 12 000001.SH 20181228 2493.8962 2506.7372 2532.0022 2462.8448
+ 13 000001.SH 20181221 2516.2506 2587.2632 2599.1479 2498.6937
+ 14 000001.SH 20181214 2593.7407 2589.1940 2645.8367 2576.2424
+ 15 000001.SH 20181207 2605.8876 2647.1319 2666.0784 2599.2775
+ 16 000001.SH 20181130 2588.1875 2580.8424 2617.5479 2555.3223
+ 17 000001.SH 20181123 2579.4831 2681.8988 2703.5116 2577.3511
+ 18 000001.SH 20181116 2679.1097 2593.2004 2695.5689 2590.2106
+
+ vol amount
+ 0 1.688357e+11 1.688151e+12
+ 1 1.886363e+11 1.861600e+12
+ 2 2.104949e+11 2.043644e+12
+ 3 2.666471e+11 2.400174e+12
+ 4 2.265186e+11 1.976327e+12
+ 5 1.394586e+11 1.194304e+12
+ 6 9.758357e+10 8.413281e+11
+ 7 7.093562e+10 5.928545e+11
+ 8 7.608258e+10 6.350025e+11
+ 9 8.076279e+10 6.593113e+11
+ 10 8.366105e+10 6.847728e+11
+ 11 4.032072e+10 3.438140e+11
+ 12 6.014621e+10 5.129771e+11
+ 13 5.782961e+10 5.008462e+11
+ 14 6.147029e+10 5.296716e+11
+ 15 7.806582e+10 6.925260e+11
+ 16 7.004342e+10 5.716554e+11
+ 17 9.709342e+10 8.023547e+11
+ 18 1.112811e+11 8.857952e+11
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\237\272\346\234\254\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\237\272\346\234\254\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..945e2bcd0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\237\272\346\234\254\344\277\241\346\201\257.md"
@@ -0,0 +1,102 @@
+## ๆŒ‡ๆ•ฐๅŸบๆœฌไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšindex_basic๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐๅŸบ็ก€ไฟกๆฏใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ 
+name | str | N | ๆŒ‡ๆ•ฐ็ฎ€็งฐ
+market | str | N | ไบคๆ˜“ๆ‰€ๆˆ–ๆœๅŠกๅ•†(้ป˜่ฎคSSE)
+publisher | str | N | ๅ‘ๅธƒๅ•†
+category | str | N | ๆŒ‡ๆ•ฐ็ฑปๅˆซ
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TSไปฃ็ 
+name | str | ็ฎ€็งฐ
+fullname | str | ๆŒ‡ๆ•ฐๅ…จ็งฐ
+market | str | ๅธ‚ๅœบ
+publisher | str | ๅ‘ๅธƒๆ–น
+index_type | str | ๆŒ‡ๆ•ฐ้ฃŽๆ ผ
+category | str | ๆŒ‡ๆ•ฐ็ฑปๅˆซ
+base_date | str | ๅŸบๆœŸ
+base_point | float | ๅŸบ็‚น
+list_date | str | ๅ‘ๅธƒๆ—ฅๆœŸ
+weight_rule | str | ๅŠ ๆƒๆ–นๅผ
+desc | str | ๆ่ฟฐ
+exp_date | str | ็ปˆๆญขๆ—ฅๆœŸ
+
+**ๅธ‚ๅœบ่ฏดๆ˜Ž(market)**
+
+
+ๅธ‚ๅœบไปฃ็  | ่ฏดๆ˜Ž
+-- | --
+MSCI | MSCIๆŒ‡ๆ•ฐ
+CSI | ไธญ่ฏๆŒ‡ๆ•ฐ
+SSE | ไธŠไบคๆ‰€ๆŒ‡ๆ•ฐ
+SZSE | ๆทฑไบคๆ‰€ๆŒ‡ๆ•ฐ
+CICC | ไธญ้‡‘ๆŒ‡ๆ•ฐ
+SW | ็”ณไธ‡ๆŒ‡ๆ•ฐ
+OTH | ๅ…ถไป–ๆŒ‡ๆ•ฐ
+
+**ๆŒ‡ๆ•ฐๅˆ—่กจ**
+
+- ไธป้ข˜ๆŒ‡ๆ•ฐ
+- ่ง„ๆจกๆŒ‡ๆ•ฐ
+- ็ญ–็•ฅๆŒ‡ๆ•ฐ
+- ้ฃŽๆ ผๆŒ‡ๆ•ฐ
+- ็ปผๅˆๆŒ‡ๆ•ฐ
+- ๆˆ้•ฟๆŒ‡ๆ•ฐ
+- ไปทๅ€ผๆŒ‡ๆ•ฐ
+- ๆœ‰่‰ฒๆŒ‡ๆ•ฐ
+- ๅŒ–ๅทฅๆŒ‡ๆ•ฐ
+- ่ƒฝๆบๆŒ‡ๆ•ฐ
+- ๅ…ถไป–ๆŒ‡ๆ•ฐ
+- ๅค–ๆฑ‡ๆŒ‡ๆ•ฐ
+- ๅŸบ้‡‘ๆŒ‡ๆ•ฐ
+- ๅ•†ๅ“ๆŒ‡ๆ•ฐ
+- ๅ€บๅˆธๆŒ‡ๆ•ฐ
+- ่กŒไธšๆŒ‡ๆ•ฐ
+- ่ดต้‡‘ๅฑžๆŒ‡ๆ•ฐ
+- ๅ†œๅ‰ฏไบงๅ“ๆŒ‡ๆ•ฐ
+- ่ฝฏๅ•†ๅ“ๆŒ‡ๆ•ฐ
+- ๆฒน่„‚ๆฒนๆ–™ๆŒ‡ๆ•ฐ
+- ้ž้‡‘ๅฑžๅปบๆๆŒ‡ๆ•ฐ
+- ็…ค็„ฆ้’ข็ŸฟๆŒ‡ๆ•ฐ
+- ่ฐท็‰ฉๆŒ‡ๆ•ฐ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.index_basic(market='SW')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name market publisher category base_date base_point \
+ 5 801010.SI ๅ†œๆž—็‰งๆธ” SW ็”ณไธ‡ ไธ€็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 6 801011.SI ๆž—ไธšโ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 7 801012.SI ๅ†œไบงๅ“ๅŠ ๅทฅ SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 8 801013.SI ๅ†œไธš็ปผๅˆโ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 9 801014.SI ้ฅฒๆ–™โ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 10 801015.SI ๆธ”ไธš SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 11 801016.SI ็งๆคไธš SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 12 801017.SI ็•œ็ฆฝๅ…ปๆฎ–โ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 20111010 1000.0
+ 13 801018.SI ๅŠจ็‰ฉไฟๅฅโ…ก SW ็”ณไธ‡็ ” ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 14 801020.SI ้‡‡ๆŽ˜ SW ็”ณไธ‡ ไธ€็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 15 801021.SI ็…ค็‚ญๅผ€้‡‡โ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 16 801022.SI ๅ…ถไป–้‡‡ๆŽ˜โ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 17 801023.SI ็Ÿณๆฒนๅผ€้‡‡โ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
+ 18 801024.SI ้‡‡ๆŽ˜ๆœๅŠกโ…ก SW ็”ณไธ‡ ไบŒ็บง่กŒไธšๆŒ‡ๆ•ฐ 19991230 1000.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..bd2e606b7
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\345\210\206\351\222\237.md"
@@ -0,0 +1,65 @@
+## A่‚กๅฎžๆ—ถๅˆ†้’Ÿ
+----
+
+ๆŽฅๅฃ๏ผšrt_idx_min
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๆๅ–ๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ้€—ๅทๅˆ†้š”็š„ๅคšไธชไปฃ็ ๅŒๆ—ถๆๅ–
+ๆƒ้™๏ผšๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u>
+
+ๆณจ๏ผšๆ”ฏๆŒ่‚ก็ฅจๅฝ“ๆ—ฅๅผ€็›˜ไปฅๆฅ็š„ๆ‰€ๆœ‰ๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎๆๅ–๏ผŒๆŽฅๅฃๅ๏ผšrt_idx_min_daily๏ผˆไป…ๆ”ฏๆŒไธ€ไธชไธชๆŒ‡ๆ•ฐๆๅ–๏ผŒไธๅŒๅŒๆ—ถๆๅ–ๅคšไธช๏ผ‰๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+freq | str | Y | 1MIN,5MIN,15MIN,30MIN,60MIN ๏ผˆๅคงๅ†™๏ผ‰
+ts_code | str | Y | ๆ”ฏๆŒๅ•ไธชๅ’Œๅคšไธช๏ผš000001.SH ๆˆ–่€… 000001.SH,399300.SZ
+
+
+<br>
+<br>
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1MIN | 1ๅˆ†้’Ÿ
+5MIN | 5ๅˆ†้’Ÿ
+15MIN | 15ๅˆ†้’Ÿ
+30MIN | 30ๅˆ†้’Ÿ
+60MIN | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+time | None | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡(่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆๅ…ƒ๏ผ‰
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ไธŠ่ฏ็ปผๆŒ‡000001.SH็š„ๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.rt_idx_min(ts_code='000001.SH', freq='1MIN')
+
+```
+
+<br>
+<br>
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\346\227\245\347\272\277.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\346\227\245\347\272\277.md"
new file mode 100644
index 000000000..ceafecac6
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\345\256\236\346\227\266\346\227\245\347\272\277.md"
@@ -0,0 +1,63 @@
+# ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅ็บฟ
+
+----
+
+ๆŽฅๅฃ๏ผšrt_idx_k
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅ็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰ไปฃ็ ๆˆ–ไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจไบคๆ˜“ๆ‰€ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+
+### ่พ“ๅ…ฅๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒๆ”ฏๆŒ้€š้…็ฌฆๆ–นๅผ๏ผŒe.g. 0\*.SHใ€3\*.SZใ€000001.SH
+
+<br>
+
+### ่พ“ๅ‡บๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+name | str | Y | ๆŒ‡ๆ•ฐๅ็งฐ
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+close | float | Y | ็Žฐไปท
+pre_close | float | Y | ๆ˜จๆ”ถ
+high | float | Y | ๆœ€้ซ˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+<br>
+
+### ไปฃ็ ็คบไพ‹
+```python
+
+#่Žทๅ–ๅ•ไธชๆŒ‡ๆ•ฐๅฎžๆ—ถ่กŒๆƒ…
+df = pro.rt_idx_k(ts_code='000001.SH')
+
+#่Žทๅ–ๅคšไธชๆŒ‡ๆ•ฐๅฎžๆ—ถ่กŒๆƒ…,ไปฅไธŠ่ฏ็ปผๆŒ‡ๅ’Œๆทฑ่ฏAๆŒ‡ไธบไพ‹
+df = pro.rt_idx_k(ts_code='000001.SH,399107.SZ')
+
+#่Žทๅ–ไธŠไบคๆ‰€ๆ‰€ๆœ‰ๆŒ‡ๆ•ฐๅฎžๆ—ถ่กŒๆƒ…๏ผŒๅŒๆ—ถๆŒ‡ๅฎš่พ“ๅ‡บๅญ—ๆฎต
+df = pro.rt_idx_k(ts_code='0*.SH', fields='ts_code,name,close,vol')
+
+```
+
+<br>
+
+### ๆ•ฐๆฎ็ป“ๆžœ
+
+ ts_code name close vol
+ 0 000851.SH ็™พๅ‘100 19517.5514 2.035695e+07
+ 1 000934.SH ไธญ่ฏ้‡‘่ž 6203.0781 6.711314e+07
+ 2 000010.SH ไธŠ่ฏ180 9773.2466 1.135439e+08
+ 3 000065.SH ไธŠ่ฏ้พ™ๅคด 3527.1942 5.541939e+07
+ 4 000033.SH ไธŠ่ฏๆๆ–™ 3232.1719 2.889464e+07
+ .. ... ... ... ...
+ 195 000888.SH ไธŠ่ฏๆ”ถ็›Š 4420.1632 4.787276e+08
+ 196 000011.SH ๅŸบ้‡‘ๆŒ‡ๆ•ฐ 7103.0192 1.107185e+09
+ 197 000008.SH ็ปผๅˆๆŒ‡ๆ•ฐ 3668.1847 1.011677e+08
+ 198 000075.SH ๅŒป่ฏ็ญ‰ๆƒ 7170.0801 4.000854e+06
+ 199 000029.SH 180ไปทๅ€ผ 4396.8748 5.572026e+07
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\210\220\345\210\206\345\222\214\346\235\203\351\207\215.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\210\220\345\210\206\345\222\214\346\235\203\351\207\215.md"
new file mode 100644
index 000000000..196f79c64
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\210\220\345\210\206\345\222\214\346\235\203\351\207\215.md"
@@ -0,0 +1,52 @@
+## ๆŒ‡ๆ•ฐๆˆๅˆ†ๅ’Œๆƒ้‡
+----
+
+ๆŽฅๅฃ๏ผšindex_weight
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ„็ฑปๆŒ‡ๆ•ฐๆˆๅˆ†ๅ’Œๆƒ้‡๏ผŒ**ๆœˆๅบฆๆ•ฐๆฎ** ๏ผŒๅปบ่ฎฎ่พ“ๅ…ฅๅ‚ๆ•ฐ้‡Œๅผ€ๅง‹ๆ—ฅๆœŸๅ’Œ็ป“ๆŸๆ—ฅๅˆ†ๅˆซ่พ“ๅ…ฅๅฝ“ๆœˆ็ฌฌไธ€ๅคฉๅ’Œๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸใ€‚
+ๆฅๆบ๏ผšๆŒ‡ๆ•ฐๅ…ฌๅธ็ฝ‘็ซ™ๅ…ฌๅผ€ๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+index_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒๆฅๆบ<a href="https://tushare.pro/document/2?doc_id=94">ๆŒ‡ๆ•ฐๅŸบ็ก€ไฟกๆฏๆŽฅๅฃ</a>
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | None | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+index_code | str | ๆŒ‡ๆ•ฐไปฃ็ 
+con_code | str | ๆˆๅˆ†ไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+weight | float | ๆƒ้‡
+
+**ๆŽฅๅฃ่ฐƒ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#ๆๅ–ๆฒชๆทฑ300ๆŒ‡ๆ•ฐ2018ๅนด9ๆœˆๆˆๅˆ†ๅ’Œๆƒ้‡
+df = pro.index_weight(index_code='399300.SZ', start_date='20180901', end_date='20180930')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ index_code con_code trade_date weight
+ 0 399300.SZ 000001.SZ 20180903 0.8656
+ 1 399300.SZ 000002.SZ 20180903 1.1330
+ 2 399300.SZ 000060.SZ 20180903 0.1125
+ 3 399300.SZ 000063.SZ 20180903 0.4273
+ 4 399300.SZ 000069.SZ 20180903 0.2010
+ 5 399300.SZ 000157.SZ 20180903 0.1699
+ 6 399300.SZ 000402.SZ 20180903 0.0816
+ 7 399300.SZ 000413.SZ 20180903 0.2023
+ 8 399300.SZ 000415.SZ 20180903 0.0648
+ 9 399300.SZ 000423.SZ 20180903 0.2100
+ 10 399300.SZ 000425.SZ 20180903 0.1884
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
new file mode 100644
index 000000000..daac38c68
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
@@ -0,0 +1,112 @@
+## ๆŒ‡ๆ•ฐๆŠ€ๆœฏๅ› ๅญ(ไธ“ไธš็‰ˆ)
+----
+
+ๆŽฅๅฃ๏ผšidx_factor_pro
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธชๆŒ‡ๆ•ฐๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ๏ผŒๆŒ‡ๆ•ฐๅŒ…ๆ‹ฌๅคง็›˜ๆŒ‡ๆ•ฐ ็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐ ไธญไฟกๆŒ‡ๆ•ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚30ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ (ๅคง็›˜ๆŒ‡ๆ•ฐ ็”ณไธ‡ๆŒ‡ๆ•ฐ ไธญไฟกๆŒ‡ๆ•ฐ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน… ๏ผˆๆœชๅคๆƒ๏ผŒๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จย ้€š็”จ่กŒๆƒ…ๆŽฅๅฃย ๏ผ‰
+vol | float | Y | ๆˆไบค้‡ ๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้ข ๏ผˆๅƒๅ…ƒ๏ผ‰
+asi_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+atr_bfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+bbi_bfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=20
+bias1_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+boll_lower_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+brar_ar_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+cci_bfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cr_bfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+dfma_dif_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dmi_adx_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+downdays | float | Y | ่ฟž่ทŒๅคฉๆ•ฐ
+updays | float | Y | ่ฟžๆถจๅคฉๆ•ฐ
+dpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+ema_bfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_bfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_bfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_bfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_bfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_bfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_bfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+emv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+expma_12_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+kdj_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+ktn_down_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+lowdays | float | Y | LOWRANGE(LOW)่กจ็คบๅฝ“ๅ‰ๆœ€ไฝŽไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€ไฝŽไปท็š„ๆœ€ๅฐๅ€ผ
+topdays | float | Y | TOPRANGE(HIGH)่กจ็คบๅฝ“ๅ‰ๆœ€้ซ˜ไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€้ซ˜ไปท็š„ๆœ€ๅคงๅ€ผ
+ma_bfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_bfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_bfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_bfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_bfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_bfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_bfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+macd_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mfi_bfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mtm_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+obv_bfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+psy_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+rsi_bfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_bfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_bfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+taq_down_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+trix_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+vr_bfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+wr_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+xsii_td1_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..9216263ce
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,82 @@
+## ๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšindex_daily๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐๆฏๆ—ฅ่กŒๆƒ…๏ผŒ่ฟ˜ๅฏไปฅ้€š่ฟ‡barๆŽฅๅฃ่Žทๅ–ใ€‚็”ฑไบŽๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็›ฎๅ‰่ง„ๅˆ™ๆ˜ฏๅ•ๆฌก่ฐƒๅ–ๆœ€ๅคšๅ–8000่กŒ่ฎฐๅฝ•๏ผŒๅฏไปฅ่ฎพ็ฝฎstartๅ’Œendๆ—ฅๆœŸ่กฅๅ…จใ€‚ๆŒ‡ๆ•ฐ่กŒๆƒ…ไนŸๅฏไปฅ้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**]( https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŽ
+ๆƒ้™๏ผš็”จๆˆท็ดฏ็งฏ2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜ใ€‚ๆœฌๆŽฅๅฃไธๅŒ…ๆ‹ฌ็”ณไธ‡่กŒๆƒ…ๆ•ฐๆฎ๏ผŒ็”ณไธ‡็ญ‰่กŒไธšๆŒ‡ๆ•ฐ่กŒๆƒ…้œ€5000็งฏๅˆ†ไปฅไธŠ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+
+<font color="red">
+ๆณจๆ„๏ผšๆทฑ่ฏๆˆๆŒ‡๏ผˆ399001.SZ๏ผ‰่ขซๆ™ฎ้็œ‹ไฝœๅๆ˜ ๆทฑ่ฏA่‚กๆ•ดไฝ“่กจ็Žฐ็š„ๅคง็›˜๏ผŒ่€Œๅฎž้™…ไธŠ่ฏฅๆŒ‡ๆ•ฐๅชๅŒ…ๅซ500ๅชๆˆๅˆ†่‚กใ€‚่€Œๅ„็ฑป่กŒๆƒ…่ฝฏไปถไธŠๅฑ•็คบ็š„ๆˆไบค้‡ใ€ๆˆไบค้‡‘้ขๆ˜ฏๆทฑๅธ‚ๆ‰€ๆœ‰A่‚ก็š„่‚ก็ฅจๆˆไบคๆƒ…ๅ†ต๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅพ—ไธŽ่กŒๆƒ…่ฝฏไปถไธŠไธ€ๆ ท็š„ๆˆไบคๆ•ฐๆฎ๏ผŒๅฏไปฅ่ฐƒๅ–ๆทฑ่ฏAๆŒ‡๏ผˆ399107.SZ๏ผ‰ใ€‚
+</font>
+
+<br><br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒๆฅๆบ<a href="https://tushare.pro/document/2?doc_id=94">ๆŒ‡ๆ•ฐๅŸบ็ก€ไฟกๆฏๆŽฅๅฃ</a>
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆ—ฅๆœŸๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br><br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅ
+close | float | ๆ”ถ็›˜็‚นไฝ
+open | float | ๅผ€็›˜็‚นไฝ
+high | float | ๆœ€้ซ˜็‚นไฝ
+low | float | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | ๆถจ่ทŒ็‚น
+pct_chg | float | ๆถจ่ทŒๅน…๏ผˆ%๏ผ‰
+vol | float | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | ๆˆไบค้ข๏ผˆๅƒๅ…ƒ๏ผ‰
+
+<br><br>
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.index_daily(ts_code='399300.SZ')
+
+#ๆˆ–่€…ๆŒ‰ๆ—ฅๆœŸๅ–
+
+df = pro.index_daily(ts_code='399300.SZ', start_date='20180101', end_date='20181010')
+
+```
+
+<br><br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low \
+ 0 399300.SZ 20180903 3321.8248 3320.6898 3325.6070 3291.7842
+ 1 399300.SZ 20180831 3334.5036 3333.3801 3356.5757 3310.8726
+ 2 399300.SZ 20180830 3351.0942 3385.8052 3402.5626 3349.4688
+ 3 399300.SZ 20180829 3386.5736 3393.0527 3398.7139 3377.1231
+ 4 399300.SZ 20180828 3400.1705 3408.1502 3416.5929 3388.8143
+ 5 399300.SZ 20180827 3406.5735 3339.3894 3406.5735 3339.2646
+ 6 399300.SZ 20180824 3325.3347 3308.4778 3353.0445 3291.8654
+ 7 399300.SZ 20180823 3320.0257 3308.4589 3336.1123 3285.8141
+ 8 399300.SZ 20180822 3307.9545 3328.9693 3328.9693 3299.3938
+ 9 399300.SZ 20180821 3326.6489 3271.8402 3331.7077 3270.0302
+ 10 399300.SZ 20180820 3267.2498 3238.2150 3267.2498 3209.0115
+ 11 399300.SZ 20180817 3229.6198 3305.8954 3311.5729 3224.0999
+ 12 399300.SZ 20180816 3276.7276 3251.8556 3315.2031 3231.5561
+ 13 399300.SZ 20180815 3291.9760 3371.9590 3372.1369 3288.7088
+ 14 399300.SZ 20180814 3372.9137 3386.4832 3391.7290 3356.6142
+ 15 399300.SZ 20180813 3390.3441 3369.9812 3396.1883 3336.6956
+ 16 399300.SZ 20180810 3405.0191 3398.4139 3424.0411 3380.5731
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\234\210\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\234\210\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..d48988aa5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\214\207\346\225\260\346\234\210\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,97 @@
+## ๆŒ‡ๆ•ฐๆœˆ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšindex_monthly
+ๆ่ฟฐ๏ผš่Žทๅ–ๆŒ‡ๆ•ฐๆœˆ็บฟ่กŒๆƒ…,ๆฏๆœˆๆ›ดๆ–ฐไธ€ๆฌก
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒ่ฎฐๅฝ•,ๅฏๅคšๆฌก่Žทๅ–,ๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘600็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠๅคš้ข‘ๆฌก่ถŠ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_chg | float | Y | ๆถจ่ทŒๅน…
+vol | float | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | ๆˆไบค้ข๏ผˆๅƒๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.index_monthly(ts_code='000001.SH', start_date='20180101', end_date='20190330', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.index_monthly(trade_date='20190329', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low \
+ 0 000001.SH 20190329 3090.758 2954.402 3129.940 2930.835
+ 1 000001.SH 20190228 2940.954 2597.778 2997.488 2590.554
+ 2 000001.SH 20190131 2584.572 2497.881 2630.318 2440.907
+ 3 000001.SH 20181228 2493.896 2647.132 2666.078 2462.845
+ 4 000001.SH 20181130 2588.188 2617.033 2703.512 2555.322
+ 5 000001.SH 20181031 2602.783 2768.208 2771.938 2449.197
+ 6 000001.SH 20180928 2821.350 2716.404 2827.341 2644.296
+ 7 000001.SH 20180831 2725.250 2882.506 2897.400 2653.112
+ 8 000001.SH 20180731 2876.401 2841.580 2915.297 2691.021
+ 9 000001.SH 20180629 2847.418 3084.754 3128.715 2782.381
+ 10 000001.SH 20180531 3095.474 3087.409 3219.740 3041.000
+ 11 000001.SH 20180427 3082.232 3169.779 3220.845 3041.625
+ 12 000001.SH 20180330 3168.897 3235.089 3333.875 3091.458
+ 13 000001.SH 20180228 3259.408 3478.670 3495.093 3062.743
+ 14 000001.SH 20180131 3480.833 3314.031 3587.032 3314.031
+
+ vol amount
+ 0 8.691925e+11 8.300906e+12
+ 1 4.421808e+11 3.816145e+12
+ 2 3.385641e+11 2.804232e+12
+ 3 2.575119e+11 2.236021e+12
+ 4 4.052823e+11 3.352502e+12
+ 5 2.740242e+11 2.449081e+12
+ 6 2.148359e+11 2.152910e+12
+ 7 2.821389e+11 2.872973e+12
+ 8 3.049095e+11 3.259243e+12
+ 9 2.623979e+11 3.100450e+12
+ 10 2.979289e+11 3.810441e+12
+ 11 2.698985e+11 3.372116e+12
+ 12 3.704084e+11 4.396937e+12
+ 13 2.888959e+11 3.262255e+12
+ 14 4.797771e+11 5.772056e+12
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\262\252\346\267\261\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\347\273\237\350\256\241.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\262\252\346\267\261\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\347\273\237\350\256\241.md"
new file mode 100644
index 000000000..4474eab16
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\262\252\346\267\261\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\347\273\237\350\256\241.md"
@@ -0,0 +1,116 @@
+## ๅธ‚ๅœบไบคๆ˜“็ปŸ่ฎก
+----
+
+ๆŽฅๅฃ๏ผšdaily_info
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ๆ‰€่‚ก็ฅจไบคๆ˜“็ปŸ่ฎก๏ผŒๅŒ…ๆ‹ฌๅ„ๆฟๅ—ๆ˜Ž็ป†
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000๏ผŒๅฏๅพช็Žฏ่Žทๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท็งฏ600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ ้ข‘ๆฌกๆœ‰้™ๅˆถ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆฏๅˆ†้’Ÿ่ฐƒๅ–้ข‘ๆฌก่ถŠ้ซ˜๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่Žทๅ–ๆ–นๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ๆฟๅ—ไปฃ็ ๏ผˆ่ฏทๅ‚้˜…ไธ‹ๆ–นๅˆ—่กจ๏ผ‰
+exchange | str | N | ่‚ก็ฅจๅธ‚ๅœบ๏ผˆSHไธŠไบคๆ‰€ SZๆทฑไบคๆ‰€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+fields | str | N | ๆŒ‡ๅฎšๆๅ–ๅญ—ๆฎต
+
+<br>
+<br>
+
+| ๆฟๅ—ไปฃ็ ๏ผˆTS_CODE๏ผ‰ | ๆฟๅ—ๅ็งฐ๏ผˆTS_NAME๏ผ‰ | ๆ•ฐๆฎๅผ€ๅง‹ๆ—ฅๆœŸ |
+| -------- | -------- | -------- |
+| SZ_MARKET | ๆทฑๅœณๅธ‚ๅœบ | 20041231 |
+| SZ_MAIN | ๆทฑๅœณไธปๆฟ | 20081231 |
+| SZ_A | ๆทฑๅœณA่‚ก | 20080103 |
+| SZ_B | ๆทฑๅœณB่‚ก | 20080103 |
+| SZ_GEM | ๅˆ›ไธšๆฟ | 20091030 |
+| SZ_SME | ไธญๅฐไผไธšๆฟ | 20040602 |
+|SZ_FUND | ๆทฑๅœณๅŸบ้‡‘ๅธ‚ๅœบ | 20080103
+|SZ_FUND_ETF | ๆทฑๅœณๅŸบ้‡‘ETF | 20080103
+|SZ_FUND_LOF | ๆทฑๅœณๅŸบ้‡‘LOF | 20080103
+|SZ_FUND_CEF | ๆทฑๅœณๅฐ้—ญๅŸบ้‡‘ | 20080103
+|SZ_FUND_SF | ๆทฑๅœณๅˆ†็บงๅŸบ้‡‘ | 20080103
+|SZ_BOND | ๆทฑๅœณๅ€บๅˆธ | 20080103
+|SZ_BOND_CN | ๆทฑๅœณๅ€บๅˆธ็Žฐๅˆธ | 20080103
+|SZ_BOND_REP | ๆทฑๅœณๅ€บๅˆธๅ›ž่ดญ | 20080103
+|SZ_BOND_ABS | ๆทฑๅœณๅ€บๅˆธABS | 20080103
+|SZ_BOND_GOV | ๆทฑๅœณๅ›ฝๅ€บ | 20080103
+|SZ_BOND_ENT | ๆทฑๅœณไผไธšๅ€บ | 20080103
+|SZ_BOND_COR | ๆทฑๅœณๅ…ฌๅธๅ€บ | 20080103
+|SZ_BOND_CB | ๆทฑๅœณๅฏ่ฝฌๅ€บ | 20080103
+|SZ_WR | ๆทฑๅœณๆƒ่ฏ | 20080103
+| ---- | ---- | --- |
+| SH_MARKET | ไธŠๆตทๅธ‚ๅœบ | 20190102 |
+| SH_A | ไธŠๆตทA่‚ก | 19910102 |
+| SH_B | ไธŠๆตทB่‚ก | 19920221 |
+| SH_STAR | ็ง‘ๅˆ›ๆฟ | 20190722 |
+| SH_REP | ่‚ก็ฅจๅ›ž่ดญ | 20190102 |
+|SH_FUND | ไธŠๆตทๅŸบ้‡‘ๅธ‚ๅœบ | 19901219
+|SH_FUND_ETF | ไธŠๆตทๅŸบ้‡‘ETF | 19901219
+|SH_FUND_LOF | ไธŠๆตทๅŸบ้‡‘LOF | 19901219
+|SH_FUND_REP | ไธŠๆตทๅŸบ้‡‘ๅ›ž่ดญ | 19901219
+|SH_FUND_CEF| ไธŠๆตทๅฐ้—ญๅผๅŸบ้‡‘ | 19901219
+|SH_FUND_METF | ไธŠๆตทไบคๆ˜“ๅž‹่ดงๅธๅŸบ้‡‘| 19901219
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๅธ‚ๅœบไปฃ็ 
+ts_name | str | Y | ๅธ‚ๅœบๅ็งฐ
+com_count | int | Y | ๆŒ‚็‰Œๆ•ฐ
+total_share | float | Y | ๆ€ป่‚กๆœฌ๏ผˆไบฟ่‚ก๏ผ‰
+float_share | float | Y | ๆต้€š่‚กๆœฌ๏ผˆไบฟ่‚ก๏ผ‰
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+amount | float | Y | ไบคๆ˜“้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+vol | float | Y | ๆˆไบค้‡๏ผˆไบฟ่‚ก๏ผ‰
+trans_count | int | Y | ๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+pe | float | Y | ๅนณๅ‡ๅธ‚็›ˆ็އ
+tr | float | Y | ๆขๆ‰‹็އ๏ผˆ๏ผ…๏ผ‰๏ผŒๆณจ๏ผšๆทฑไบคๆ‰€ๆš‚ๆ— ๆญคๅˆ—
+exchange | str | Y | ไบคๆ˜“ๆ‰€๏ผˆSHไธŠไบคๆ‰€ SZๆทฑไบคๆ‰€๏ผ‰
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆทฑๅœณๅธ‚ๅœบ20200320ๅ„ๆฟๅ—ไบคๆ˜“ๆ•ฐๆฎ
+df = pro.daily_info(trade_date='20200320', exchange='SZ')
+
+#่Žทๅ–ๆทฑๅœณๅ’ŒไธŠๆตทๅธ‚ๅœบ20200320ๅ„ๆฟๅ—ไบคๆ˜“ๆŒ‡ๅฎšๅญ—ๆฎต็š„ๆ•ฐๆฎ
+df = pro.daily_info(trade_date='20200320', exchange='SZ,SH', fields='trade_date,ts_name,pe')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code ts_name com_count total_share float_share \
+ 0 20200320 SZ_GME ๅˆ›ไธšๆฟ 802 4124.04 3159.24
+ 1 20200320 SZ_MAIN ๆทฑๅธ‚ไธปๆฟ 470 8177.40 7176.03
+ 2 20200320 SZ_MARKET ๆทฑๅœณๅธ‚ๅœบ 2220 21657.12 17674.90
+ 3 20200320 SZ_SME ไธญๅฐไผไธšๆฟ 948 9355.67 7339.62
+
+ total_mv float_mv amount vol trans_count pe tr exchange
+ 0 66494.71 44955.24 1475.76 99.65 830.0 50.37 NaN SZ
+ 1 70732.59 62551.44 961.92 102.30 554.0 16.12 NaN SZ
+ 2 236813.99 184009.16 4363.01 NaN NaN 25.46 2.18 SZ
+ 3 99586.67 76502.47 1925.32 179.21 1208.0 27.74 NaN SZ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\267\261\345\234\263\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\346\203\205\345\206\265.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\267\261\345\234\263\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\346\203\205\345\206\265.md"
new file mode 100644
index 000000000..19e87a708
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\346\267\261\345\234\263\345\270\202\345\234\272\346\257\217\346\227\245\344\272\244\346\230\223\346\203\205\345\206\265.md"
@@ -0,0 +1,101 @@
+## ๆทฑๅœณๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“ๆฆ‚ๅ†ต
+----
+
+ๆŽฅๅฃ๏ผšsz_daily_info
+ๆ่ฟฐ๏ผš่Žทๅ–ๆทฑๅœณๅธ‚ๅœบๆฏๆ—ฅไบคๆ˜“ๆฆ‚ๅ†ต
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๅฏๅพช็Žฏ่Žทๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท็งฏ2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ ้ข‘ๆฌกๆœ‰้™ๅˆถ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆฏๅˆ†้’Ÿ่ฐƒๅ–้ข‘ๆฌก่ถŠ้ซ˜๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ็งฏๅˆ†่Žทๅ–ๆ–นๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ๆฟๅ—ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+ts_codeไธป่ฆๅŒ…ๆ‹ฌ๏ผš
+
+
+| ๆฟๅ—ไปฃ็ ๏ผˆTS_CODE๏ผ‰ | ๆฟๅ—่ฏดๆ˜Ž | ๆ•ฐๆฎๅผ€ๅง‹ๆ—ฅๆœŸ |
+| -------- | -------- | -------- |
+| ่‚ก็ฅจ | ๆทฑๅœณๅธ‚ๅœบ่‚ก็ฅจๆ€ปๅ’Œ | 20080102 |
+| ไธปๆฟA่‚ก | ๆทฑๅœณไธปๆฟA่‚กๆƒ…ๅ†ต | 20080102 |
+| ไธปๆฟB่‚ก | ๆทฑๅœณไธปๆฟB่‚กๆƒ…ๅ†ต | 20080102 |
+| ๅˆ›ไธšๆฟA่‚ก | ๆทฑๅœณๅˆ›ไธšๆฟๆƒ…ๅ†ต | 20080102 |
+| ๅŸบ้‡‘ | ๆทฑๅœณๅธ‚ๅœบๅŸบ้‡‘ๆ€ปๅ’Œ | 20080102 |
+| ETF | ๆทฑๅœณETFไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| LOF | ๆทฑๅœณLOFไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| ๅฐ้—ญๅผๅŸบ้‡‘ | ๆทฑๅœณๅฐ้—ญๅผๅŸบ้‡‘ไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| ๅŸบ็ก€่ฎพๆ–ฝๅŸบ้‡‘ | ๆทฑๅœณRETISๅŸบ้‡‘ไบคๆ˜“ๆƒ…ๅ†ต | 20210621 |
+| ๅ€บๅˆธ | ๆทฑๅœณๅ€บๅˆธๅธ‚ๅœบๆ€ปๅ’Œ | 20080102 |
+| ๅ€บๅˆธ็Žฐๅˆธ | ๆทฑๅœณ็Žฐๅˆธไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| ๅ€บๅˆธๅ›ž่ดญ | ๆทฑๅœณๅ€บๅˆธๅ›ž่ดญไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| ABS | ๆทฑๅœณABSไบคๆ˜“ๆƒ…ๅ†ต | 20080102 |
+| ๆœŸๆƒ | ๆทฑๅœณๆœŸๆƒๆ€ปๅ’Œ | 20080102 |
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y |
+ts_code | str | Y | ๅธ‚ๅœบ็ฑปๅž‹
+count | int | Y | ่‚ก็ฅจไธชๆ•ฐ
+amount | float | Y | ๆˆไบค้‡‘้ข
+vol | None | Y | ๆˆไบค้‡
+total_share | float | Y | ๆ€ป่‚กๆœฌ
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ
+float_share | float | Y | ๆต้€š่‚ก็ฅจ
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆทฑๅœณๅธ‚ๅœบ20200320ไบคๆ˜“ๆ•ฐๆฎ
+df = pro.sz_daily_info(trade_date='20200320')
+
+#่Žทๅ–ๆทฑๅœณๅธ‚ๅœบไบคๆ˜“ๆƒ…ๅ†ต
+df = pro.sz_daily_info(trade_date='20200320', ts_code='่‚ก็ฅจ')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ trade_date ts_code count amount vol total_share total_mv float_share float_mv
+ 0 20200320 ABS 541 504804930.72 4843368 5004918501.00 472061975980.53 5004918501.00 472061975980.53
+ 1 20200320 ETF 86 10960679423.49 8003777630 99210471704.00 153213629317.87 99210471704.00 153213629317.87
+ 2 20200320 LOF 249 1202089548.18 2029753496 42142809618.00 37448346544.52 42142809618.00 37448346544.52
+ 3 20200320 ไธญๅฐๆฟ 948 192532630530.61 17921759322 935567938002.00 9958667914529.80 733962624249.00 7650247307737.14
+ 4 20200320 ไธปๆฟA่‚ก 460 96090513214.35 10211776104 805063702685.00 7028091416467.25 705056618283.00 6210675551047.30
+ 5 20200320 ไธปๆฟB่‚ก 46 102202260.47 18980673 12676603056.00 45168496735.09 12546456576.00 44469314083.06
+ 6 20200320 ๅ€บๅˆธ 6558 170830629708.59 1386734301 None None None None
+ 7 20200320 ๅ€บๅˆธๅ›ž่ดญ 12 97006833500.00 970873520 None None None None
+ 8 20200320 ๅ€บๅˆธ็Žฐๅˆธ 6005 73318991277.87 411017413 342674191457.00 34325230393533.29 17044369724.00 1754190029091.49
+ 9 20200320 ๅˆ†็บงๅŸบ้‡‘ 208 1162654854.49 1242992337 42039852135.00 39427148230.75 42039852135.00 39427148230.75
+ 10 20200320 ๅˆ›ไธšๆฟA่‚ก 802 147576399405.00 9965011014 412404300212.00 6649471689968.69 315924775647.00 4495524754972.39
+ 11 20200320 ๅŸบ้‡‘ 544 13326523128.60 11276535453 183401248132.00 230833320937.40 183401248132.00 230833320937.40
+ 12 20200320 ๅฐ้—ญๅผๅŸบ้‡‘ 1 1099302.43 11990 8114675.00 744196844.25 8114675.00 744196844.25
+ 13 20200320 ๆœŸๆƒ 128 388976963.00 447009 None None None None
+ 14 20200320 ่‚ก็ฅจ 2256 436301745410.43 38117527113 2165712543955.00 23681399517700.83 1767490474755.00 18400916927839.89
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\345\256\236\346\227\266\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\345\256\236\346\227\266\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..8d51846b3
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\345\256\236\346\227\266\350\241\214\346\203\205.md"
@@ -0,0 +1,58 @@
+# ็”ณไธ‡ๅฎžๆ—ถ่กŒๆƒ…
+
+
+### ๆŽฅๅฃไป‹็ป
+ๆŽฅๅฃ๏ผšrt_sw_k
+ๆ่ฟฐ๏ผš่Žทๅ–็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐ็š„ๆœ€ๆ–ฐๆˆช้ขๆ•ฐๆฎ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+
+
+### ่พ“ๅ…ฅๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ ๏ผŒๅฆ‚: 801005.SI๏ผ›ๅฏไปฅๆ˜ฏ้€—ๅท้š”ๅผ€็š„ๅคšไธช๏ผŒๅฆ‚: 801005.SI,801001.SI
+
+
+
+### ่พ“ๅ‡บๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+name | str | Y | ๆŒ‡ๆ•ฐๅ็งฐ
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+close | float | Y | ็Žฐไปท
+pre_close | float | Y | ๆ˜จๆ”ถ
+high | float | Y | ๆœ€้ซ˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+pct_change | float | Y | ๅขž้•ฟ็އ
+
+
+
+### ไปฃ็ ็คบไพ‹
+```python
+
+pro = ts.pro_api()
+
+# ไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจ็”ณไธ‡ๆŒ‡ๆ•ฐๅฎžๆ—ถๆ•ฐๆฎ
+df = pro.rt_sw_k()
+
+# ๆŒ‰ts_codeๆๅ–่กŒๆƒ…ๆ•ฐๆฎ๏ผŒไพ‹ๅฆ‚ๆๅ–801053.SI(่ดต้‡‘ๅฑž) ๅฎžๆ—ถ่กŒๆƒ…
+df = pro.rt_sw_k(ts_code='801053.SI')
+```
+
+### ๆ•ฐๆฎ็ป“ๆžœ
+ts_code | name | trade_time | close | pre_close | high | open | low | vol | amount | pct_change
+---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ----
+801001.SI | ็”ณไธ‡50 | 2026-01-29 11:20:15 | 3787.9120 | 3798.2100 | 3813.4650 | 3813.4650 | 3774.6250 | 3705199982 | 222824326266 | -0.27
+801002.SI | ็”ณไธ‡ไธญๅฐ | 2026-01-29 11:20:15 | 8806.2050 | 8809.4800 | 8838.5460 | 8775.2190 | 8730.5520 | 25634196750 | 360691370056 | -0.04
+801003.SI | ็”ณไธ‡๏ผกๆŒ‡ | 2026-01-29 11:20:15 | 4974.9430 | 4970.4900 | 4986.6610 | 4968.8140 | 4950.5050 | 115336604744 | 1936675504044 | 0.09
+801005.SI | ็”ณไธ‡ๅˆ›ไธš | 2026-01-29 11:20:15 | 4094.8600 | 4081.5400 | 4123.7230 | 4070.4380 | 4041.4720 | 19045101938 | 494472518112 | 0.33
+801010.SI | ๅ†œๆž—็‰งๆธ” | 2026-01-29 11:20:15 | 2931.1360 | 2915.1700 | 2950.3920 | 2910.8210 | 2904.0440 | 2594579310 | 22663408519 | 0.55
+801012.SI | ๅ†œไบงๅ“ๅŠ ๅทฅ | 2026-01-29 11:20:15 | 2544.5850 | 2526.3300 | 2560.6810 | 2522.3710 | 2517.1980 | 227870337 | 2384134145 | 0.72
+801014.SI | ้ฅฒๆ–™ | 2026-01-29 11:20:15 | 4421.3600 | 4371.4000 | 4446.7450 | 4377.4080 | 4372.6460 | 437877589 | 2850725238 | 1.14
+801015.SI | ๆธ”ไธš | 2026-01-29 11:20:15 | 881.9780 | 873.6900 | 884.1620 | 871.7710 | 864.7650 | 100200890 | 447089570 | 0.95
+801016.SI | ็งๆคไธš | 2026-01-29 11:20:15 | 2953.6730 | 2887.6000 | 2995.5200 | 2892.5670 | 2892.5670 | 1044165536 | 8740207605 | 2.29
+801017.SI | ๅ…ปๆฎ–ไธš | 2026-01-29 11:20:15 | 2988.3250 | 2978.0600 | 3012.0680 | 2971.0800 | 2963.3590 | 397154376 | 4079931700 | 0.34
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\345\210\206\347\261\273.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\345\210\206\347\261\273.md"
new file mode 100644
index 000000000..6b6fa9852
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\345\210\206\347\261\273.md"
@@ -0,0 +1,614 @@
+## ็”ณไธ‡่กŒไธšๅˆ†็ฑป
+----
+
+ๆŽฅๅฃ๏ผšindex_classify
+ๆ่ฟฐ๏ผš่Žทๅ–็”ณไธ‡่กŒไธšๅˆ†็ฑป๏ผŒๅฏไปฅ่Žทๅ–็”ณไธ‡2014ๅนด็‰ˆๆœฌ๏ผˆ28ไธชไธ€็บงๅˆ†็ฑป๏ผŒ104ไธชไบŒ็บงๅˆ†็ฑป๏ผŒ227ไธชไธ‰็บงๅˆ†็ฑป๏ผ‰ๅ’Œ2021ๅนดๆœฌ็‰ˆ๏ผˆ31ไธชไธ€็บงๅˆ†็ฑป๏ผŒ134ไธชไบŒ็บงๅˆ†็ฑป๏ผŒ346ไธชไธ‰็บงๅˆ†็ฑป๏ผ‰ๅˆ—่กจไฟกๆฏ
+ๆƒ้™๏ผš็”จๆˆท้œ€2000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+<font color='red'>**็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐๅˆ†็ฑปๆ ‡ๅ‡†2021็‰ˆ**</font>
+
+ๆณจ๏ผšๆŒ‡ๆ•ฐๆˆๅˆ†่‚กๅฐไบŽ5ๆก่ฏฅๆŒ‡ๆ•ฐ่กŒๆƒ…ไธๅ‘ๅธƒ
+
+่กŒไธšไปฃ็  | ๆŒ‡ๆ•ฐไปฃ็  | ไธ€็บง่กŒไธš | ไบŒ็บง่กŒไธš | ไธ‰็บง่กŒไธš | ๆŒ‡ๆ•ฐ็ฑปๅˆซ | ๆ˜ฏๅฆๅ‘ๅธƒ | ๅ˜ๅŠจๅŽŸๅ›  | ๆˆๅˆ†่‚กๆ•ฐ |
+---- | ----- | ---- | ---- | ----- | ---- | ---- | ---- | ---- |
+110000 | 801010 | ๅ†œๆž—็‰งๆธ” | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 100 |
+110100 | 801016 | ๅ†œๆž—็‰งๆธ” | ็งๆคไธš | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 20 |
+110101 | 850111 | ๅ†œๆž—็‰งๆธ” | ็งๆคไธš | ็งๅญ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 8 |
+110102 | 850112 | ๅ†œๆž—็‰งๆธ” | ็งๆคไธš | ็ฒฎ้ฃŸ็งๆค | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 2 |
+110103 | 850113 | ๅ†œๆž—็‰งๆธ” | ็งๆคไธš | ๅ…ถไป–็งๆคไธš | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+110104 | 850114 | ๅ†œๆž—็‰งๆธ” | ็งๆคไธš | ้ฃŸ็”จ่Œ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+110200 | 801015 | ๅ†œๆž—็‰งๆธ” | ๆธ”ไธš | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+110201 | 850121 | ๅ†œๆž—็‰งๆธ” | ๆธ”ไธš | ๆตทๆด‹ๆ•ๆž | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 2 |
+110202 | 850122 | ๅ†œๆž—็‰งๆธ” | ๆธ”ไธš | ๆฐดไบงๅ…ปๆฎ– | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+110300 | 801011 | ๅ†œๆž—็‰งๆธ” | ๆž—ไธšโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ไฟ็•™ | 3 |
+110301 | 850131 | ๅ†œๆž—็‰งๆธ” | ๆž—ไธšโ…ก | ๆž—ไธšโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 3 |
+110400 | 801014 | ๅ†œๆž—็‰งๆธ” | ้ฅฒๆ–™ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+110402 | 850142 | ๅ†œๆž—็‰งๆธ” | ้ฅฒๆ–™ | ็•œ็ฆฝ้ฅฒๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+110403 | 850143 | ๅ†œๆž—็‰งๆธ” | ้ฅฒๆ–™ | ๆฐดไบง้ฅฒๆ–™ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+110404 | 850144 | ๅ†œๆž—็‰งๆธ” | ้ฅฒๆ–™ | ๅฎ ็‰ฉ้ฃŸๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+110500 | 801012 | ๅ†œๆž—็‰งๆธ” | ๅ†œไบงๅ“ๅŠ ๅทฅ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 23 |
+110501 | 850151 | ๅ†œๆž—็‰งๆธ” | ๅ†œไบงๅ“ๅŠ ๅทฅ | ๆžœ่”ฌๅŠ ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+110502 | 850152 | ๅ†œๆž—็‰งๆธ” | ๅ†œไบงๅ“ๅŠ ๅทฅ | ็ฒฎๆฒนๅŠ ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+110504 | 850154 | ๅ†œๆž—็‰งๆธ” | ๅ†œไบงๅ“ๅŠ ๅทฅ | ๅ…ถไป–ๅ†œไบงๅ“ๅŠ ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 12 |
+110700 | 801017 | ๅ†œๆž—็‰งๆธ” | ๅ…ปๆฎ–ไธš | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 20 |
+110702 | 850172 | ๅ†œๆž—็‰งๆธ” | ๅ…ปๆฎ–ไธš | ็”Ÿ็Œชๅ…ปๆฎ– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+110703 | 850173 | ๅ†œๆž—็‰งๆธ” | ๅ…ปๆฎ–ไธš | ่‚‰้ธกๅ…ปๆฎ– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+110704 | 850174 | ๅ†œๆž—็‰งๆธ” | ๅ…ปๆฎ–ไธš | ๅ…ถไป–ๅ…ปๆฎ– | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+110800 | 801018 | ๅ†œๆž—็‰งๆธ” | ๅŠจ็‰ฉไฟๅฅโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 10 |
+110801 | 850181 | ๅ†œๆž—็‰งๆธ” | ๅŠจ็‰ฉไฟๅฅโ…ก | ๅŠจ็‰ฉไฟๅฅโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 10 |
+110900 | 801019 | ๅ†œๆž—็‰งๆธ” | ๅ†œไธš็ปผๅˆโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+110901 | 850191 | ๅ†œๆž—็‰งๆธ” | ๅ†œไธš็ปผๅˆโ…ก | ๅ†œไธš็ปผๅˆโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+220000 | 801030 | ๅŸบ็ก€ๅŒ–ๅทฅ | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ”นๅ | 311 |
+220200 | 801033 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 52 |
+220201 | 850321 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ็บฏ็ขฑ | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 4 |
+220202 | 850322 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ๆฐฏ็ขฑ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 17 |
+220203 | 850323 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ๆ— ๆœบ็› | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 12 |
+220204 | 850324 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ๅ…ถไป–ๅŒ–ๅญฆๅŽŸๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+220205 | 850325 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ็…คๅŒ–ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+220206 | 850326 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅŽŸๆ–™ | ้’›็™ฝ็ฒ‰ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+220300 | 801034 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 109 |
+220305 | 850335 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ๆถ‚ๆ–™ๆฒนๅขจ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 10 |
+220307 | 850337 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ๆฐ‘็ˆ†ๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+220308 | 850338 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ็บบ็ป‡ๅŒ–ๅญฆๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 10 |
+220309 | 850339 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ๅ…ถไป–ๅŒ–ๅญฆๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 37 |
+220311 | 850382 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ๆฐŸๅŒ–ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 8 |
+220313 | 850372 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ่šๆฐจ้…ฏ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+220315 | 850135 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ้ฃŸๅ“ๅŠ้ฅฒๆ–™ๆทปๅŠ ๅ‰‚ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+220316 | 850136 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ๆœ‰ๆœบ็ก… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+220317 | 850137 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆๅˆถๅ“ | ่ƒถ้ปๅ‰‚ๅŠ่ƒถๅธฆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+220400 | 801032 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 21 |
+220401 | 850341 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | ๆถค็บถ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+220403 | 850343 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | ็ฒ˜่ƒถ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+220404 | 850344 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | ๅ…ถไป–ๅŒ–ๅญฆ็บค็ปด | ไธ‰็บง่กŒไธš | 0 | 2021ๆ”นๅ | 2 |
+220405 | 850345 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | ๆฐจ็บถ | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 3 |
+220406 | 850346 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅŒ–ๅญฆ็บค็ปด | ้”ฆ็บถ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+220500 | 801036 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅก‘ๆ–™ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 57 |
+220501 | 850351 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅก‘ๆ–™ | ๅ…ถไป–ๅก‘ๆ–™ๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 26 |
+220503 | 850353 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅก‘ๆ–™ | ๆ”นๆ€งๅก‘ๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+220504 | 850354 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅก‘ๆ–™ | ๅˆๆˆๆ ‘่„‚ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+220505 | 850355 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅก‘ๆ–™ | ่†œๆๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+220600 | 801037 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๆฉก่ƒถ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 14 |
+220602 | 850362 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๆฉก่ƒถ | ๅ…ถไป–ๆฉก่ƒถๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 7 |
+220603 | 850363 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๆฉก่ƒถ | ็‚ญ้ป‘ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+220604 | 850364 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๆฉก่ƒถ | ๆฉก่ƒถๅŠฉๅ‰‚ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+220800 | 801038 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 53 |
+220801 | 850331 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | ๆฐฎ่‚ฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 220301 | 5 |
+220802 | 850332 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | ็ฃท่‚ฅๅŠ็ฃทๅŒ–ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ -ๆ”นๅ220302 | 7 |
+220803 | 850333 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | ๅ†œ่ฏ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 220303 | 28 |
+220804 | 850336 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | ้’พ่‚ฅ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ›ฟๆขไปฃ็ 220306 | 4 |
+220805 | 850381 | ๅŸบ็ก€ๅŒ–ๅทฅ | ๅ†œๅŒ–ๅˆถๅ“ | ๅคๅˆ่‚ฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 220310 | 9 |
+220900 | 801039 | ๅŸบ็ก€ๅŒ–ๅทฅ | ้ž้‡‘ๅฑžๆๆ–™โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+220901 | 850523 | ๅŸบ็ก€ๅŒ–ๅทฅ | ้ž้‡‘ๅฑžๆๆ–™โ…ก | ้ž้‡‘ๅฑžๆๆ–™โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 240203 | 5 |
+230000 | 801040 | ้’ข้“ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 43 |
+230300 | 801043 | ้’ข้“ | ๅ†ถ้’ขๅŽŸๆ–™ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+230301 | 850431 | ้’ข้“ | ๅ†ถ้’ขๅŽŸๆ–™ | ้“็Ÿฟ็Ÿณ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+230302 | 850432 | ้’ข้“ | ๅ†ถ้’ขๅŽŸๆ–™ | ๅ†ถ้’ข่พ…ๆ–™ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+230400 | 801044 | ้’ข้“ | ๆ™ฎ้’ข | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 24 |
+230401 | 850441 | ้’ข้“ | ๆ™ฎ้’ข | ้•ฟๆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+230402 | 850442 | ้’ข้“ | ๆ™ฎ้’ข | ๆฟๆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+230403 | 850443 | ้’ข้“ | ๆ™ฎ้’ข | ้’ข้“็ฎกๆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+230500 | 801045 | ้’ข้“ | ็‰น้’ขโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+230501 | 850412 | ้’ข้“ | ็‰น้’ขโ…ก | ็‰น้’ขโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 230102 | 12 |
+240000 | 801050 | ๆœ‰่‰ฒ้‡‘ๅฑž | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 125 |
+240200 | 801051 | ๆœ‰่‰ฒ้‡‘ๅฑž | ้‡‘ๅฑžๆ–ฐๆๆ–™ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 20 |
+240201 | 850521 | ๆœ‰่‰ฒ้‡‘ๅฑž | ้‡‘ๅฑžๆ–ฐๆๆ–™ | ๅ…ถไป–้‡‘ๅฑžๆ–ฐๆๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 9 |
+240202 | 850522 | ๆœ‰่‰ฒ้‡‘ๅฑž | ้‡‘ๅฑžๆ–ฐๆๆ–™ | ็ฃๆ€งๆๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+240300 | 801055 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅทฅไธš้‡‘ๅฑž | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 56 |
+240301 | 850551 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅทฅไธš้‡‘ๅฑž | ้“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 31 |
+240302 | 850552 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅทฅไธš้‡‘ๅฑž | ้“œ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+240303 | 850553 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅทฅไธš้‡‘ๅฑž | ้“…้”Œ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 12 |
+240400 | 801053 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ดต้‡‘ๅฑž | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 13 |
+240401 | 850531 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ดต้‡‘ๅฑž | ้ป„้‡‘ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+240402 | 850532 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ดต้‡‘ๅฑž | ็™ฝ้“ถ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+240500 | 801054 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅฐ้‡‘ๅฑž | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 29 |
+240501 | 850541 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅฐ้‡‘ๅฑž | ็จ€ๅœŸ | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 4 |
+240502 | 850542 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅฐ้‡‘ๅฑž | ้’จ | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 4 |
+240504 | 850544 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅฐ้‡‘ๅฑž | ๅ…ถไป–ๅฐ้‡‘ๅฑž | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 18 |
+240505 | 850545 | ๆœ‰่‰ฒ้‡‘ๅฑž | ๅฐ้‡‘ๅฑž | ้’ผ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+240600 | 801056 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ƒฝๆบ้‡‘ๅฑž | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+240601 | 850561 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ƒฝๆบ้‡‘ๅฑž | ้’ด | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+240602 | 850562 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ƒฝๆบ้‡‘ๅฑž | ้• | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+240603 | 850543 | ๆœ‰่‰ฒ้‡‘ๅฑž | ่ƒฝๆบ้‡‘ๅฑž | ้”‚ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ›ฟๆขไปฃ็ 240503 | 4 |
+270000 | 801080 | ็”ตๅญ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 284 |
+270100 | 801081 | ็”ตๅญ | ๅŠๅฏผไฝ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 49 |
+270102 | 850812 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ๅˆ†็ซ‹ๅ™จไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+270103 | 850813 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ๅŠๅฏผไฝ“ๆๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+270104 | 850814 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ๆ•ฐๅญ—่Šฏ็‰‡่ฎพ่ฎก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+270105 | 850815 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ๆจกๆ‹Ÿ่Šฏ็‰‡่ฎพ่ฎก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+270106 | 850816 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ้›†ๆˆ็”ต่ทฏๅˆถ้€  | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+270107 | 850817 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ้›†ๆˆ็”ต่ทฏๅฐๆต‹ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+270108 | 850818 | ็”ตๅญ | ๅŠๅฏผไฝ“ | ๅŠๅฏผไฝ“่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+270200 | 801083 | ็”ตๅญ | ๅ…ƒไปถ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 43 |
+270202 | 850822 | ็”ตๅญ | ๅ…ƒไปถ | ๅฐๅˆถ็”ต่ทฏๆฟ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 32 |
+270203 | 850823 | ็”ตๅญ | ๅ…ƒไปถ | ่ขซๅŠจๅ…ƒไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+270300 | 801084 | ็”ตๅญ | ๅ…‰ๅญฆๅ…‰็”ตๅญ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 76 |
+270301 | 850831 | ็”ตๅญ | ๅ…‰ๅญฆๅ…‰็”ตๅญ | ้ขๆฟ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 33 |
+270302 | 850832 | ็”ตๅญ | ๅ…‰ๅญฆๅ…‰็”ตๅญ | LED | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 29 |
+270303 | 850833 | ็”ตๅญ | ๅ…‰ๅญฆๅ…‰็”ตๅญ | ๅ…‰ๅญฆๅ…ƒไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 14 |
+270400 | 801082 | ็”ตๅญ | ๅ…ถไป–็”ตๅญโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 26 |
+270401 | 850841 | ็”ตๅญ | ๅ…ถไป–็”ตๅญโ…ก | ๅ…ถไป–็”ตๅญโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 26 |
+270500 | 801085 | ็”ตๅญ | ๆถˆ่ดน็”ตๅญ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 74 |
+270503 | 850853 | ็”ตๅญ | ๆถˆ่ดน็”ตๅญ | ๅ“็‰Œๆถˆ่ดน็”ตๅญ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+270504 | 850854 | ็”ตๅญ | ๆถˆ่ดน็”ตๅญ | ๆถˆ่ดน็”ตๅญ้›ถ้ƒจไปถๅŠ็ป„่ฃ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 69 |
+270600 | 801086 | ็”ตๅญ | ็”ตๅญๅŒ–ๅญฆๅ“โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+270601 | 850861 | ็”ตๅญ | ็”ตๅญๅŒ–ๅญฆๅ“โ…ก | ็”ตๅญๅŒ–ๅญฆๅ“โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+280000 | 801880 | ๆฑฝ่ฝฆ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 221 |
+280200 | 801093 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 171 |
+280202 | 850922 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ่ฝฆ่บซ้™„ไปถๅŠ้ฅฐไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+280203 | 850923 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ๅบ•็›˜ไธŽๅ‘ๅŠจๆœบ็ณป็ปŸ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 78 |
+280204 | 850924 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ่ฝฎ่ƒŽ่ฝฎๆฏ‚ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+280205 | 850925 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ๅ…ถไป–ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 33 |
+280206 | 850926 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆ้›ถ้ƒจไปถ | ๆฑฝ่ฝฆ็”ตๅญ็”ตๆฐ”็ณป็ปŸ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+280300 | 801092 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆๆœๅŠก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 14 |
+280302 | 850232 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆๆœๅŠก | ๆฑฝ่ฝฆ็ป้”€ๅ•† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+280303 | 850233 | ๆฑฝ่ฝฆ | ๆฑฝ่ฝฆๆœๅŠก | ๆฑฝ่ฝฆ็ปผๅˆๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+280400 | 801881 | ๆฑฝ่ฝฆ | ๆ‘ฉๆ‰˜่ฝฆๅŠๅ…ถไป– | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 14 |
+280401 | 858811 | ๆฑฝ่ฝฆ | ๆ‘ฉๆ‰˜่ฝฆๅŠๅ…ถไป– | ๅ…ถไป–่ฟ่พ“่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+280402 | 858812 | ๆฑฝ่ฝฆ | ๆ‘ฉๆ‰˜่ฝฆๅŠๅ…ถไป– | ๆ‘ฉๆ‰˜่ฝฆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+280500 | 801095 | ๆฑฝ่ฝฆ | ไน˜็”จ่ฝฆ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+280501 | 850951 | ๆฑฝ่ฝฆ | ไน˜็”จ่ฝฆ | ็”ตๅŠจไน˜็”จ่ฝฆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+280502 | 850952 | ๆฑฝ่ฝฆ | ไน˜็”จ่ฝฆ | ็ปผๅˆไน˜็”จ่ฝฆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+280600 | 801096 | ๆฑฝ่ฝฆ | ๅ•†็”จ่ฝฆ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+280601 | 850912 | ๆฑฝ่ฝฆ | ๅ•†็”จ่ฝฆ | ๅ•†็”จ่ฝฝ่ดง่ฝฆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 280102 | 7 |
+280602 | 850913 | ๆฑฝ่ฝฆ | ๅ•†็”จ่ฝฆ | ๅ•†็”จ่ฝฝๅฎข่ฝฆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 280103 | 6 |
+330000 | 801110 | ๅฎถ็”จ็”ตๅ™จ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 77 |
+330100 | 801111 | ๅฎถ็”จ็”ตๅ™จ | ็™ฝ่‰ฒๅฎถ็”ต | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 10 |
+330102 | 851112 | ๅฎถ็”จ็”ตๅ™จ | ็™ฝ่‰ฒๅฎถ็”ต | ็ฉบ่ฐƒ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+330106 | 851116 | ๅฎถ็”จ็”ตๅ™จ | ็™ฝ่‰ฒๅฎถ็”ต | ๅ†ฐๆด— | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+330200 | 801112 | ๅฎถ็”จ็”ตๅ™จ | ้ป‘่‰ฒๅฎถ็”ต | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 9 |
+330201 | 851121 | ๅฎถ็”จ็”ตๅ™จ | ้ป‘่‰ฒๅฎถ็”ต | ๅฝฉ็”ต | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 4 |
+330202 | 851122 | ๅฎถ็”จ็”ตๅ™จ | ้ป‘่‰ฒๅฎถ็”ต | ๅ…ถไป–้ป‘่‰ฒๅฎถ็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 5 |
+330300 | 801113 | ๅฎถ็”จ็”ตๅ™จ | ๅฐๅฎถ็”ต | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+330301 | 851131 | ๅฎถ็”จ็”ตๅ™จ | ๅฐๅฎถ็”ต | ๅŽจๆˆฟๅฐๅฎถ็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+330302 | 851132 | ๅฎถ็”จ็”ตๅ™จ | ๅฐๅฎถ็”ต | ๆธ…ๆดๅฐๅฎถ็”ต | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+330303 | 851133 | ๅฎถ็”จ็”ตๅ™จ | ๅฐๅฎถ็”ต | ไธชๆŠคๅฐๅฎถ็”ต | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+330400 | 801114 | ๅฎถ็”จ็”ตๅ™จ | ๅŽจๅซ็”ตๅ™จ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+330401 | 851141 | ๅฎถ็”จ็”ตๅ™จ | ๅŽจๅซ็”ตๅ™จ | ๅŽจๆˆฟ็”ตๅ™จ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+330402 | 851142 | ๅฎถ็”จ็”ตๅ™จ | ๅŽจๅซ็”ตๅ™จ | ๅซๆตด็”ตๅ™จ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+330500 | 801115 | ๅฎถ็”จ็”ตๅ™จ | ็…งๆ˜Ž่ฎพๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+330501 | 851151 | ๅฎถ็”จ็”ตๅ™จ | ็…งๆ˜Ž่ฎพๅค‡โ…ก | ็…งๆ˜Ž่ฎพๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+330600 | 801116 | ๅฎถ็”จ็”ตๅ™จ | ๅฎถ็”ต้›ถ้ƒจไปถโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 24 |
+330601 | 851161 | ๅฎถ็”จ็”ตๅ™จ | ๅฎถ็”ต้›ถ้ƒจไปถโ…ก | ๅฎถ็”ต้›ถ้ƒจไปถโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 24 |
+330700 | 801117 | ๅฎถ็”จ็”ตๅ™จ | ๅ…ถไป–ๅฎถ็”ตโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+330701 | 851171 | ๅฎถ็”จ็”ตๅ™จ | ๅ…ถไป–ๅฎถ็”ตโ…ก | ๅ…ถไป–ๅฎถ็”ตโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+340000 | 801120 | ้ฃŸๅ“้ฅฎๆ–™ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 113 |
+340400 | 801124 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฃŸๅ“ๅŠ ๅทฅ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 18 |
+340401 | 851241 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฃŸๅ“ๅŠ ๅทฅ | ่‚‰ๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+340404 | 851244 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฃŸๅ“ๅŠ ๅทฅ | ๅ…ถไป–้ฃŸๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ”นๅ | 0 |
+340406 | 851246 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฃŸๅ“ๅŠ ๅทฅ | ้ข„ๅŠ ๅทฅ้ฃŸๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+340407 | 851247 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฃŸๅ“ๅŠ ๅทฅ | ไฟๅฅๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+340500 | 801125 | ้ฃŸๅ“้ฅฎๆ–™ | ็™ฝ้…’โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+340501 | 851251 | ้ฃŸๅ“้ฅฎๆ–™ | ็™ฝ้…’โ…ก | ็™ฝ้…’โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+340600 | 801126 | ้ฃŸๅ“้ฅฎๆ–™ | ้ž็™ฝ้…’ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 17 |
+340601 | 851232 | ้ฃŸๅ“้ฅฎๆ–™ | ้ž็™ฝ้…’ | ๅ•ค้…’ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 340302 | 7 |
+340602 | 851233 | ้ฃŸๅ“้ฅฎๆ–™ | ้ž็™ฝ้…’ | ๅ…ถไป–้…’็ฑป | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 340303 | 10 |
+340700 | 801127 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฅฎๆ–™ไนณๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 26 |
+340701 | 851271 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฅฎๆ–™ไนณๅ“ | ่ฝฏ้ฅฎๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+340702 | 851243 | ้ฃŸๅ“้ฅฎๆ–™ | ้ฅฎๆ–™ไนณๅ“ | ไนณๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 340403 | 18 |
+340800 | 801128 | ้ฃŸๅ“้ฅฎๆ–™ | ไผ‘้—ฒ้ฃŸๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+340801 | 851281 | ้ฃŸๅ“้ฅฎๆ–™ | ไผ‘้—ฒ้ฃŸๅ“ | ้›ถ้ฃŸ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+340802 | 851282 | ้ฃŸๅ“้ฅฎๆ–™ | ไผ‘้—ฒ้ฃŸๅ“ | ็ƒ˜็„™้ฃŸๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+340803 | 851283 | ้ฃŸๅ“้ฅฎๆ–™ | ไผ‘้—ฒ้ฃŸๅ“ | ็†Ÿ้ฃŸ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+340900 | 801129 | ้ฃŸๅ“้ฅฎๆ–™ | ่ฐƒๅ‘ณๅ‘้…ตๅ“โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+340901 | 851242 | ้ฃŸๅ“้ฅฎๆ–™ | ่ฐƒๅ‘ณๅ‘้…ตๅ“โ…ก | ่ฐƒๅ‘ณๅ‘้…ตๅ“โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 340402 | 14 |
+350000 | 801130 | ็บบ็ป‡ๆœ้ฅฐ | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ”นๅ | 113 |
+350100 | 801131 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 38 |
+350102 | 851312 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | ๆฃ‰็บบ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+350104 | 851314 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | ๅฐๆŸ“ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+350105 | 851315 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | ่พ…ๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+350106 | 851316 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | ๅ…ถไป–็บบ็ป‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 18 |
+350107 | 851317 | ็บบ็ป‡ๆœ้ฅฐ | ็บบ็ป‡ๅˆถ้€  | ็บบ็ป‡้ž‹็ฑปๅˆถ้€  | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+350200 | 801132 | ็บบ็ป‡ๆœ้ฅฐ | ๆœ่ฃ…ๅฎถ็บบ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 59 |
+350205 | 851325 | ็บบ็ป‡ๆœ้ฅฐ | ๆœ่ฃ…ๅฎถ็บบ | ้ž‹ๅธฝๅŠๅ…ถไป– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 16 |
+350206 | 851326 | ็บบ็ป‡ๆœ้ฅฐ | ๆœ่ฃ…ๅฎถ็บบ | ๅฎถ็บบ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+350208 | 851328 | ็บบ็ป‡ๆœ้ฅฐ | ๆœ่ฃ…ๅฎถ็บบ | ่ฟๅŠจๆœ่ฃ… | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+350209 | 851329 | ็บบ็ป‡ๆœ้ฅฐ | ๆœ่ฃ…ๅฎถ็บบ | ้ž่ฟๅŠจๆœ่ฃ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 34 |
+350300 | 801133 | ็บบ็ป‡ๆœ้ฅฐ | ้ฅฐๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+350301 | 851331 | ็บบ็ป‡ๆœ้ฅฐ | ้ฅฐๅ“ | ้’Ÿ่กจ็ ๅฎ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+350302 | 851332 | ็บบ็ป‡ๆœ้ฅฐ | ้ฅฐๅ“ | ๅคšๅ“็ฑปๅฅขไพˆๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+350303 | 851333 | ็บบ็ป‡ๆœ้ฅฐ | ้ฅฐๅ“ | ๅ…ถไป–้ฅฐๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+360000 | 801140 | ่ฝปๅทฅๅˆถ้€  | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 131 |
+360100 | 801143 | ่ฝปๅทฅๅˆถ้€  | ้€ ็บธ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 22 |
+360102 | 851412 | ่ฝปๅทฅๅˆถ้€  | ้€ ็บธ | ๅคงๅฎ—็”จ็บธ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+360103 | 851413 | ่ฝปๅทฅๅˆถ้€  | ้€ ็บธ | ็‰น็ง็บธ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+360200 | 801141 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 37 |
+360202 | 851422 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | ๅฐๅˆท | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+360203 | 851423 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | ้‡‘ๅฑžๅŒ…่ฃ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+360204 | 851424 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | ๅก‘ๆ–™ๅŒ…่ฃ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+360205 | 851425 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | ็บธๅŒ…่ฃ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+360206 | 851426 | ่ฝปๅทฅๅˆถ้€  | ๅŒ…่ฃ…ๅฐๅˆท | ็ปผๅˆๅŒ…่ฃ… | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+360300 | 801142 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 58 |
+360306 | 851436 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | ็“ท็ –ๅœฐๆฟ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+360307 | 851437 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | ๆˆๅ“ๅฎถๅฑ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+360308 | 851438 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | ๅฎšๅˆถๅฎถๅฑ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+360309 | 851439 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | ๅซๆตดๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+360311 | 851491 | ่ฝปๅทฅๅˆถ้€  | ๅฎถๅฑ…็”จๅ“ | ๅ…ถไป–ๅฎถๅฑ…็”จๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+360500 | 801145 | ่ฝปๅทฅๅˆถ้€  | ๆ–‡ๅจฑ็”จๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+360501 | 851451 | ่ฝปๅทฅๅˆถ้€  | ๆ–‡ๅจฑ็”จๅ“ | ๆ–‡ๅŒ–็”จๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+360502 | 851452 | ่ฝปๅทฅๅˆถ้€  | ๆ–‡ๅจฑ็”จๅ“ | ๅจฑไน็”จๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+370000 | 801150 | ๅŒป่ฏ็”Ÿ็‰ฉ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 331 |
+370100 | 801151 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒ–ๅญฆๅˆถ่ฏ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 111 |
+370101 | 851511 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒ–ๅญฆๅˆถ่ฏ | ๅŽŸๆ–™่ฏ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 29 |
+370102 | 851512 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒ–ๅญฆๅˆถ่ฏ | ๅŒ–ๅญฆๅˆถๅ‰‚ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 82 |
+370200 | 801155 | ๅŒป่ฏ็”Ÿ็‰ฉ | ไธญ่ฏโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 70 |
+370201 | 851521 | ๅŒป่ฏ็”Ÿ็‰ฉ | ไธญ่ฏโ…ก | ไธญ่ฏโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 70 |
+370300 | 801152 | ๅŒป่ฏ็”Ÿ็‰ฉ | ็”Ÿ็‰ฉๅˆถๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 27 |
+370302 | 851522 | ๅŒป่ฏ็”Ÿ็‰ฉ | ็”Ÿ็‰ฉๅˆถๅ“ | ่ก€ๆถฒๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+370303 | 851523 | ๅŒป่ฏ็”Ÿ็‰ฉ | ็”Ÿ็‰ฉๅˆถๅ“ | ็–ซ่‹— | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+370304 | 851524 | ๅŒป่ฏ็”Ÿ็‰ฉ | ็”Ÿ็‰ฉๅˆถๅ“ | ๅ…ถไป–็”Ÿ็‰ฉๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+370400 | 801154 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป่ฏๅ•†ไธš | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 32 |
+370402 | 851542 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป่ฏๅ•†ไธš | ๅŒป่ฏๆต้€š | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 25 |
+370403 | 851543 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป่ฏๅ•†ไธš | ็บฟไธ‹่ฏๅบ— | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+370404 | 851544 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป่ฏๅ•†ไธš | ไบ’่”็ฝ‘่ฏๅบ— | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+370500 | 801153 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๅ™จๆขฐ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 62 |
+370502 | 851532 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๅ™จๆขฐ | ๅŒป็–—่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+370503 | 851533 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๅ™จๆขฐ | ๅŒป็–—่€—ๆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+370504 | 851534 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๅ™จๆขฐ | ไฝ“ๅค–่ฏŠๆ–ญ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 21 |
+370600 | 801156 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๆœๅŠก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 29 |
+370602 | 851562 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๆœๅŠก | ่ฏŠๆ–ญๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+370603 | 851563 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๆœๅŠก | ๅŒป็–—็ ”ๅ‘ๅค–ๅŒ… | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+370604 | 851564 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๆœๅŠก | ๅŒป้™ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+370605 | 851565 | ๅŒป่ฏ็”Ÿ็‰ฉ | ๅŒป็–—ๆœๅŠก | ๅ…ถไป–ๅŒป็–—ๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+410000 | 801160 | ๅ…ฌ็”จไบ‹ไธš | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 120 |
+410100 | 801161 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 92 |
+410101 | 851611 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ็ซๅŠ›ๅ‘็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 28 |
+410102 | 851612 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ๆฐดๅŠ›ๅ‘็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+410104 | 851614 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ็ƒญๅŠ›ๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 15 |
+410106 | 851616 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ๅ…‰ไผๅ‘็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+410107 | 851617 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ้ฃŽๅŠ›ๅ‘็”ต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+410108 | 851618 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ๆ ธๅŠ›ๅ‘็”ต | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+410109 | 851619 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ๅ…ถไป–่ƒฝๆบๅ‘็”ต | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+410110 | 851610 | ๅ…ฌ็”จไบ‹ไธš | ็”ตๅŠ› | ็”ต่ƒฝ็ปผๅˆๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+410300 | 801163 | ๅ…ฌ็”จไบ‹ไธš | ็‡ƒๆฐ”โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 28 |
+410301 | 851631 | ๅ…ฌ็”จไบ‹ไธš | ็‡ƒๆฐ”โ…ก | ็‡ƒๆฐ”โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 28 |
+420000 | 801170 | ไบค้€š่ฟ่พ“ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 128 |
+420800 | 801178 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 49 |
+420802 | 851782 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ๅŽŸๆๆ–™ไพ›ๅบ”้“พๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+420803 | 851783 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ไธญ้—ดไบงๅ“ๅŠๆถˆ่ดนๅ“ไพ›ๅบ”้“พๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+420804 | 851784 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ๅฟซ้€’ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+420805 | 851785 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ่ทจๅขƒ็‰ฉๆต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+420806 | 851786 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ไป“ๅ‚จ็‰ฉๆต | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+420807 | 851787 | ไบค้€š่ฟ่พ“ | ็‰ฉๆต | ๅ…ฌ่ทฏ่ดง่ฟ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+420900 | 801179 | ไบค้€š่ฟ่พ“ | ้“่ทฏๅ…ฌ่ทฏ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 38 |
+420901 | 851731 | ไบค้€š่ฟ่พ“ | ้“่ทฏๅ…ฌ่ทฏ | ้ซ˜้€Ÿๅ…ฌ่ทฏ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420201 | 22 |
+420902 | 851721 | ไบค้€š่ฟ่พ“ | ้“่ทฏๅ…ฌ่ทฏ | ๅ…ฌไบค | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420301 | 9 |
+420903 | 851771 | ไบค้€š่ฟ่พ“ | ้“่ทฏๅ…ฌ่ทฏ | ้“่ทฏ่ฟ่พ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420701 | 7 |
+421000 | 801991 | ไบค้€š่ฟ่พ“ | ่ˆช็ฉบๆœบๅœบ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+421001 | 851741 | ไบค้€š่ฟ่พ“ | ่ˆช็ฉบๆœบๅœบ | ่ˆช็ฉบ่ฟ่พ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420401 | 8 |
+421002 | 851751 | ไบค้€š่ฟ่พ“ | ่ˆช็ฉบๆœบๅœบ | ๆœบๅœบ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ›ฟๆขไปฃ็ 420501 | 4 |
+421100 | 801992 | ไบค้€š่ฟ่พ“ | ่ˆช่ฟๆธฏๅฃ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 29 |
+421101 | 851761 | ไบค้€š่ฟ่พ“ | ่ˆช่ฟๆธฏๅฃ | ่ˆช่ฟ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420601 | 12 |
+421102 | 851711 | ไบค้€š่ฟ่พ“ | ่ˆช่ฟๆธฏๅฃ | ๆธฏๅฃ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 420101 | 17 |
+430000 | 801180 | ๆˆฟๅœฐไบง | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 131 |
+430100 | 801181 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๅผ€ๅ‘ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 122 |
+430101 | 851811 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๅผ€ๅ‘ | ไฝๅฎ…ๅผ€ๅ‘ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 101 |
+430102 | 851812 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๅผ€ๅ‘ | ๅ•†ไธšๅœฐไบง | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+430103 | 851813 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๅผ€ๅ‘ | ไบงไธšๅœฐไบง | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+430300 | 801183 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๆœๅŠก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+430301 | 851831 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๆœๅŠก | ็‰ฉไธš็ฎก็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+430302 | 851832 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๆœๅŠก | ๆˆฟไบง็งŸ่ต็ป็บช | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+430303 | 851833 | ๆˆฟๅœฐไบง | ๆˆฟๅœฐไบงๆœๅŠก | ๆˆฟๅœฐไบง็ปผๅˆๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+450000 | 801200 | ๅ•†่ดธ้›ถๅ”ฎ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 104 |
+450200 | 801202 | ๅ•†่ดธ้›ถๅ”ฎ | ่ดธๆ˜“โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 15 |
+450201 | 852021 | ๅ•†่ดธ้›ถๅ”ฎ | ่ดธๆ˜“โ…ก | ่ดธๆ˜“โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 15 |
+450300 | 801203 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ€่ˆฌ้›ถๅ”ฎ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 68 |
+450301 | 852031 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ€่ˆฌ้›ถๅ”ฎ | ็™พ่ดง | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 25 |
+450302 | 852032 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ€่ˆฌ้›ถๅ”ฎ | ่ถ…ๅธ‚ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 11 |
+450303 | 852033 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ€่ˆฌ้›ถๅ”ฎ | ๅคšไธšๆ€้›ถๅ”ฎ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 16 |
+450304 | 852034 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ€่ˆฌ้›ถๅ”ฎ | ๅ•†ไธš็‰ฉไธš็ป่ฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+450400 | 801204 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ“ไธš่ฟž้”โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 7 |
+450401 | 852041 | ๅ•†่ดธ้›ถๅ”ฎ | ไธ“ไธš่ฟž้”โ…ก | ไธ“ไธš่ฟž้”โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 7 |
+450600 | 801206 | ๅ•†่ดธ้›ถๅ”ฎ | ไบ’่”็ฝ‘็”ตๅ•† | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+450601 | 852061 | ๅ•†่ดธ้›ถๅ”ฎ | ไบ’่”็ฝ‘็”ตๅ•† | ็ปผๅˆ็”ตๅ•† | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+450602 | 852062 | ๅ•†่ดธ้›ถๅ”ฎ | ไบ’่”็ฝ‘็”ตๅ•† | ่ทจๅขƒ็”ตๅ•† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+450603 | 852063 | ๅ•†่ดธ้›ถๅ”ฎ | ไบ’่”็ฝ‘็”ตๅ•† | ็”ตๅ•†ๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+450700 | 801207 | ๅ•†่ดธ้›ถๅ”ฎ | ๆ—…ๆธธ้›ถๅ”ฎโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+450701 | 852071 | ๅ•†่ดธ้›ถๅ”ฎ | ๆ—…ๆธธ้›ถๅ”ฎโ…ก | ๆ—…ๆธธ้›ถๅ”ฎโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+460000 | 801210 | ็คพไผšๆœๅŠก | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ”นๅ | 72 |
+460600 | 801216 | ็คพไผšๆœๅŠก | ไฝ“่‚ฒโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+460601 | 852161 | ็คพไผšๆœๅŠก | ไฝ“่‚ฒโ…ก | ไฝ“่‚ฒโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+460700 | 801217 | ็คพไผšๆœๅŠก | ๆœฌๅœฐ็”ŸๆดปๆœๅŠกโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+460701 | 852171 | ็คพไผšๆœๅŠก | ๆœฌๅœฐ็”ŸๆดปๆœๅŠกโ…ก | ๆœฌๅœฐ็”ŸๆดปๆœๅŠกโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+460800 | 801218 | ็คพไผšๆœๅŠก | ไธ“ไธšๆœๅŠก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+460801 | 852181 | ็คพไผšๆœๅŠก | ไธ“ไธšๆœๅŠก | ไบบๅŠ›่ต„ๆบๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+460802 | 852182 | ็คพไผšๆœๅŠก | ไธ“ไธšๆœๅŠก | ๆฃ€ๆต‹ๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+460803 | 852183 | ็คพไผšๆœๅŠก | ไธ“ไธšๆœๅŠก | ไผšๅฑ•ๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+460804 | 852184 | ็คพไผšๆœๅŠก | ไธ“ไธšๆœๅŠก | ๅ…ถไป–ไธ“ไธšๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+460900 | 801219 | ็คพไผšๆœๅŠก | ้…’ๅบ—้ค้ฅฎ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+460901 | 852121 | ็คพไผšๆœๅŠก | ้…’ๅบ—้ค้ฅฎ | ้…’ๅบ— | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 460201 | 6 |
+460902 | 852141 | ็คพไผšๆœๅŠก | ้…’ๅบ—้ค้ฅฎ | ้ค้ฅฎ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ›ฟๆขไปฃ็ 460401 | 4 |
+461000 | 801993 | ็คพไผšๆœๅŠก | ๆ—…ๆธธๅŠๆ™ฏๅŒบ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 21 |
+461001 | 859931 | ็คพไผšๆœๅŠก | ๆ—…ๆธธๅŠๆ™ฏๅŒบ | ๅšๅฝฉ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+461002 | 852111 | ็คพไผšๆœๅŠก | ๆ—…ๆธธๅŠๆ™ฏๅŒบ | ไบบๅทฅๆ™ฏๅŒบ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 460101 | 6 |
+461003 | 852112 | ็คพไผšๆœๅŠก | ๆ—…ๆธธๅŠๆ™ฏๅŒบ | ่‡ช็„ถๆ™ฏๅŒบ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 460102 | 10 |
+461004 | 852131 | ็คพไผšๆœๅŠก | ๆ—…ๆธธๅŠๆ™ฏๅŒบ | ๆ—…ๆธธ็ปผๅˆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 460301 | 5 |
+461100 | 801994 | ็คพไผšๆœๅŠก | ๆ•™่‚ฒ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 21 |
+461101 | 859851 | ็คพไผšๆœๅŠก | ๆ•™่‚ฒ | ๅญฆๅކๆ•™่‚ฒ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+461102 | 859852 | ็คพไผšๆœๅŠก | ๆ•™่‚ฒ | ๅŸน่ฎญๆ•™่‚ฒ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 15 |
+461103 | 859853 | ็คพไผšๆœๅŠก | ๆ•™่‚ฒ | ๆ•™่‚ฒ่ฟ่ฅๅŠๅ…ถไป– | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+480000 | 801780 | ้“ถ่กŒ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 41 |
+480200 | 801782 | ้“ถ่กŒ | ๅ›ฝๆœ‰ๅคงๅž‹้“ถ่กŒโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+480201 | 857821 | ้“ถ่กŒ | ๅ›ฝๆœ‰ๅคงๅž‹้“ถ่กŒโ…ก | ๅ›ฝๆœ‰ๅคงๅž‹้“ถ่กŒโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+480300 | 801783 | ้“ถ่กŒ | ่‚กไปฝๅˆถ้“ถ่กŒโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+480301 | 857831 | ้“ถ่กŒ | ่‚กไปฝๅˆถ้“ถ่กŒโ…ก | ่‚กไปฝๅˆถ้“ถ่กŒโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+480400 | 801784 | ้“ถ่กŒ | ๅŸŽๅ•†่กŒโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+480401 | 857841 | ้“ถ่กŒ | ๅŸŽๅ•†่กŒโ…ก | ๅŸŽๅ•†่กŒโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+480500 | 801785 | ้“ถ่กŒ | ๅ†œๅ•†่กŒโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+480501 | 857851 | ้“ถ่กŒ | ๅ†œๅ•†่กŒโ…ก | ๅ†œๅ•†่กŒโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+480600 | 801786 | ้“ถ่กŒ | ๅ…ถไป–้“ถ่กŒโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+480601 | 857861 | ้“ถ่กŒ | ๅ…ถไป–้“ถ่กŒโ…ก | ๅ…ถไป–้“ถ่กŒโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+490000 | 801790 | ้ž้“ถ้‡‘่ž | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 87 |
+490100 | 801193 | ้ž้“ถ้‡‘่ž | ่ฏๅˆธโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 49 |
+490101 | 851931 | ้ž้“ถ้‡‘่ž | ่ฏๅˆธโ…ก | ่ฏๅˆธโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 49 |
+490200 | 801194 | ้ž้“ถ้‡‘่ž | ไฟ้™ฉโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 7 |
+490201 | 851941 | ้ž้“ถ้‡‘่ž | ไฟ้™ฉโ…ก | ไฟ้™ฉโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 7 |
+490300 | 801191 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 31 |
+490302 | 851922 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ้‡‘่žๆŽง่‚ก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+490303 | 851923 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ๆœŸ่ดง | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+490304 | 851924 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ไฟกๆ‰˜ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+490305 | 851925 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ็งŸ่ต | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+490306 | 851926 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ้‡‘่žไฟกๆฏๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+490307 | 851927 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ่ต„ไบง็ฎก็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+490308 | 851928 | ้ž้“ถ้‡‘่ž | ๅคšๅ…ƒ้‡‘่ž | ๅ…ถไป–ๅคšๅ…ƒ้‡‘่ž | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+510000 | 801230 | ็ปผๅˆ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 40 |
+510100 | 801231 | ็ปผๅˆ | ็ปผๅˆโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 40 |
+510101 | 852311 | ็ปผๅˆ | ็ปผๅˆโ…ก | ็ปผๅˆโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 40 |
+610000 | 801710 | ๅปบ็ญ‘ๆๆ–™ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 76 |
+610100 | 801711 | ๅปบ็ญ‘ๆๆ–™ | ๆฐดๆณฅ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 25 |
+610101 | 857111 | ๅปบ็ญ‘ๆๆ–™ | ๆฐดๆณฅ | ๆฐดๆณฅๅˆถ้€  | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+610102 | 857112 | ๅปบ็ญ‘ๆๆ–™ | ๆฐดๆณฅ | ๆฐดๆณฅๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+610200 | 801712 | ๅปบ็ญ‘ๆๆ–™ | ็Žป็’ƒ็Žป็บค | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 16 |
+610201 | 857121 | ๅปบ็ญ‘ๆๆ–™ | ็Žป็’ƒ็Žป็บค | ็Žป็’ƒๅˆถ้€  | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+610202 | 857122 | ๅปบ็ญ‘ๆๆ–™ | ็Žป็’ƒ็Žป็บค | ็Žป็บคๅˆถ้€  | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+610300 | 801713 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 35 |
+610301 | 850615 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | ่€็ซๆๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 5 |
+610302 | 850616 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | ็ฎกๆ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+610303 | 850614 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | ๅ…ถไป–ๅปบๆ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 17 |
+610304 | 850617 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | ้˜ฒๆฐดๆๆ–™ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+610305 | 850618 | ๅปบ็ญ‘ๆๆ–™ | ่ฃ…ไฟฎๅปบๆ | ๆถ‚ๆ–™ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+620000 | 801720 | ๅปบ็ญ‘่ฃ…้ฅฐ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 147 |
+620100 | 801721 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๆˆฟๅฑ‹ๅปบ่ฎพโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+620101 | 850623 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๆˆฟๅฑ‹ๅปบ่ฎพโ…ก | ๆˆฟๅฑ‹ๅปบ่ฎพโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+620200 | 801722 | ๅปบ็ญ‘่ฃ…้ฅฐ | ่ฃ…ไฟฎ่ฃ…้ฅฐโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 28 |
+620201 | 857221 | ๅปบ็ญ‘่ฃ…้ฅฐ | ่ฃ…ไฟฎ่ฃ…้ฅฐโ…ก | ่ฃ…ไฟฎ่ฃ…้ฅฐโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 28 |
+620300 | 801723 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๅŸบ็ก€ๅปบ่ฎพ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 46 |
+620306 | 857236 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๅŸบ็ก€ๅปบ่ฎพ | ๅŸบๅปบๅธ‚ๆ”ฟๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+620307 | 857251 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๅŸบ็ก€ๅปบ่ฎพ | ๅ›ญๆž—ๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 620501 | 23 |
+620400 | 801724 | ๅปบ็ญ‘่ฃ…้ฅฐ | ไธ“ไธšๅทฅ็จ‹ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 34 |
+620401 | 857241 | ๅปบ็ญ‘่ฃ…้ฅฐ | ไธ“ไธšๅทฅ็จ‹ | ้’ข็ป“ๆž„ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+620402 | 857242 | ๅปบ็ญ‘่ฃ…้ฅฐ | ไธ“ไธšๅทฅ็จ‹ | ๅŒ–ๅญฆๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 7 |
+620403 | 857243 | ๅปบ็ญ‘่ฃ…้ฅฐ | ไธ“ไธšๅทฅ็จ‹ | ๅ›ฝ้™…ๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 5 |
+620404 | 857244 | ๅปบ็ญ‘่ฃ…้ฅฐ | ไธ“ไธšๅทฅ็จ‹ | ๅ…ถไป–ไธ“ไธšๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+620600 | 801726 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๅทฅ็จ‹ๅ’จ่ฏขๆœๅŠกโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 30 |
+620601 | 857261 | ๅปบ็ญ‘่ฃ…้ฅฐ | ๅทฅ็จ‹ๅ’จ่ฏขๆœๅŠกโ…ก | ๅทฅ็จ‹ๅ’จ่ฏขๆœๅŠกโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 30 |
+630000 | 801730 | ็”ตๅŠ›่ฎพๅค‡ | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ”นๅ | 239 |
+630100 | 801731 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆœบโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 19 |
+630101 | 850741 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆœบโ…ก | ็”ตๆœบโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 19 |
+630300 | 801733 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…ถไป–็”ตๆบ่ฎพๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 25 |
+630301 | 857331 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…ถไป–็”ตๆบ่ฎพๅค‡โ…ก | ็ปผๅˆ็”ตๅŠ›่ฎพๅค‡ๅ•† | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 3 |
+630304 | 857334 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…ถไป–็”ตๆบ่ฎพๅค‡โ…ก | ็ซ็”ต่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 6 |
+630306 | 857336 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…ถไป–็”ตๆบ่ฎพๅค‡โ…ก | ๅ…ถไป–็”ตๆบ่ฎพๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 16 |
+630500 | 801735 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 32 |
+630501 | 857351 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | ็ก…ๆ–™็ก…็‰‡ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+630502 | 857352 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | ๅ…‰ไผ็”ตๆฑ ็ป„ไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+630503 | 857353 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | ้€†ๅ˜ๅ™จ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 3 |
+630504 | 857354 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | ๅ…‰ไผ่พ…ๆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+630505 | 857355 | ็”ตๅŠ›่ฎพๅค‡ | ๅ…‰ไผ่ฎพๅค‡ | ๅ…‰ไผๅŠ ๅทฅ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+630600 | 801736 | ็”ตๅŠ›่ฎพๅค‡ | ้ฃŽ็”ต่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+630601 | 857361 | ็”ตๅŠ›่ฎพๅค‡ | ้ฃŽ็”ต่ฎพๅค‡ | ้ฃŽ็”ตๆ•ดๆœบ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+630602 | 857362 | ็”ตๅŠ›่ฎพๅค‡ | ้ฃŽ็”ต่ฎพๅค‡ | ้ฃŽ็”ต้›ถ้ƒจไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+630700 | 801737 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 41 |
+630701 | 857371 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | ้”‚็”ตๆฑ  | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+630702 | 857372 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | ็”ตๆฑ ๅŒ–ๅญฆๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 17 |
+630703 | 857373 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | ้”‚็”ตไธ“็”จ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+630704 | 857374 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | ็‡ƒๆ–™็”ตๆฑ  | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+630705 | 857375 | ็”ตๅŠ›่ฎพๅค‡ | ็”ตๆฑ  | ่“„็”ตๆฑ ๅŠๅ…ถไป–็”ตๆฑ  | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+630800 | 801738 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 104 |
+630801 | 857381 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | ่พ“ๅ˜็”ต่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 27 |
+630802 | 857382 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | ้…็”ต่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+630803 | 857321 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | ็”ต็ฝ‘่‡ชๅŠจๅŒ–่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 630201 | 18 |
+630804 | 857323 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | ็”ตๅทฅไปชๅ™จไปช่กจ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ -ๆ”นๅ630203 | 14 |
+630805 | 857344 | ็”ตๅŠ›่ฎพๅค‡ | ็”ต็ฝ‘่ฎพๅค‡ | ็บฟ็ผ†้ƒจไปถๅŠๅ…ถไป– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 630204 | 29 |
+640000 | 801890 | ๆœบๆขฐ่ฎพๅค‡ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 379 |
+640100 | 801072 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 161 |
+640101 | 850711 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ๆœบๅบŠๅทฅๅ…ท | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+640103 | 850713 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ็ฃจๅ…ท็ฃจๆ–™ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 13 |
+640105 | 850715 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ๅˆถๅ†ท็ฉบ่ฐƒ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 12 |
+640106 | 850716 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ๅ…ถไป–้€š็”จ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 31 |
+640107 | 850731 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ไปชๅ™จไปช่กจ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 640301 | 32 |
+640108 | 850751 | ๆœบๆขฐ่ฎพๅค‡ | ้€š็”จ่ฎพๅค‡ | ้‡‘ๅฑžๅˆถๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 640401 | 60 |
+640200 | 801074 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 133 |
+640203 | 850725 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ่ƒฝๆบๅŠ้‡ๅž‹่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 38 |
+640204 | 850728 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ๆฅผๅฎ‡่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 15 |
+640206 | 850721 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ็บบ็ป‡ๆœ่ฃ…่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 10 |
+640207 | 850723 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ๅ†œ็”จๆœบๆขฐ | ไธ‰็บง่กŒไธš | 0 | 2021ไฟ็•™ | 3 |
+640208 | 850726 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ๅฐๅˆทๅŒ…่ฃ…ๆœบๆขฐ | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+640209 | 850727 | ๆœบๆขฐ่ฎพๅค‡ | ไธ“็”จ่ฎพๅค‡ | ๅ…ถไป–ไธ“็”จ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 58 |
+640500 | 801076 | ๆœบๆขฐ่ฎพๅค‡ | ่ฝจไบค่ฎพๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 21 |
+640501 | 850936 | ๆœบๆขฐ่ฎพๅค‡ | ่ฝจไบค่ฎพๅค‡โ…ก | ่ฝจไบค่ฎพๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 21 |
+640600 | 801077 | ๆœบๆขฐ่ฎพๅค‡ | ๅทฅ็จ‹ๆœบๆขฐ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 21 |
+640601 | 850771 | ๆœบๆขฐ่ฎพๅค‡ | ๅทฅ็จ‹ๆœบๆขฐ | ๅทฅ็จ‹ๆœบๆขฐๆ•ดๆœบ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+640602 | 850772 | ๆœบๆขฐ่ฎพๅค‡ | ๅทฅ็จ‹ๆœบๆขฐ | ๅทฅ็จ‹ๆœบๆขฐๅ™จไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 5 |
+640700 | 801078 | ๆœบๆขฐ่ฎพๅค‡ | ่‡ชๅŠจๅŒ–่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 43 |
+640701 | 850781 | ๆœบๆขฐ่ฎพๅค‡ | ่‡ชๅŠจๅŒ–่ฎพๅค‡ | ๆœบๅ™จไบบ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+640702 | 850782 | ๆœบๆขฐ่ฎพๅค‡ | ่‡ชๅŠจๅŒ–่ฎพๅค‡ | ๅทฅๆŽง่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 17 |
+640703 | 850783 | ๆœบๆขฐ่ฎพๅค‡ | ่‡ชๅŠจๅŒ–่ฎพๅค‡ | ๆฟ€ๅ…‰่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+640704 | 850784 | ๆœบๆขฐ่ฎพๅค‡ | ่‡ชๅŠจๅŒ–่ฎพๅค‡ | ๅ…ถไป–่‡ชๅŠจๅŒ–่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+650000 | 801740 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 97 |
+650100 | 801741 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆชๅคฉ่ฃ…ๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+650101 | 857411 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆชๅคฉ่ฃ…ๅค‡โ…ก | ่ˆชๅคฉ่ฃ…ๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 8 |
+650200 | 801742 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆช็ฉบ่ฃ…ๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 35 |
+650201 | 857421 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆช็ฉบ่ฃ…ๅค‡โ…ก | ่ˆช็ฉบ่ฃ…ๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 35 |
+650300 | 801743 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ๅœฐ้ขๅ…ต่ฃ…โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+650301 | 857431 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ๅœฐ้ขๅ…ต่ฃ…โ…ก | ๅœฐ้ขๅ…ต่ฃ…โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ไฟ็•™ | 9 |
+650400 | 801744 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆชๆตท่ฃ…ๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 12 |
+650401 | 850935 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ่ˆชๆตท่ฃ…ๅค‡โ…ก | ่ˆชๆตท่ฃ…ๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ”นๅ | 12 |
+650500 | 801745 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ๅ†›ๅทฅ็”ตๅญโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 33 |
+650501 | 857451 | ๅ›ฝ้˜ฒๅ†›ๅทฅ | ๅ†›ๅทฅ็”ตๅญโ…ก | ๅ†›ๅทฅ็”ตๅญโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 33 |
+710000 | 801750 | ่ฎก็ฎ—ๆœบ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 239 |
+710100 | 801101 | ่ฎก็ฎ—ๆœบ | ่ฎก็ฎ—ๆœบ่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 64 |
+710102 | 850702 | ่ฎก็ฎ—ๆœบ | ่ฎก็ฎ—ๆœบ่ฎพๅค‡ | ๅฎ‰้˜ฒ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+710103 | 850703 | ่ฎก็ฎ—ๆœบ | ่ฎก็ฎ—ๆœบ่ฎพๅค‡ | ๅ…ถไป–่ฎก็ฎ—ๆœบ่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 48 |
+710300 | 801103 | ่ฎก็ฎ—ๆœบ | ITๆœๅŠกโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 90 |
+710301 | 852226 | ่ฎก็ฎ—ๆœบ | ITๆœๅŠกโ…ก | ITๆœๅŠกโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ›ฟๆขไปฃ็ 710202 | 90 |
+710400 | 801104 | ่ฎก็ฎ—ๆœบ | ่ฝฏไปถๅผ€ๅ‘ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 85 |
+710401 | 851041 | ่ฎก็ฎ—ๆœบ | ่ฝฏไปถๅผ€ๅ‘ | ๅž‚็›ดๅบ”็”จ่ฝฏไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 69 |
+710402 | 851042 | ่ฎก็ฎ—ๆœบ | ่ฝฏไปถๅผ€ๅ‘ | ๆจชๅ‘้€š็”จ่ฝฏไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 16 |
+720000 | 801760 | ไผ ๅช’ | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 149 |
+720400 | 801764 | ไผ ๅช’ | ๆธธๆˆโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 38 |
+720401 | 857641 | ไผ ๅช’ | ๆธธๆˆโ…ก | ๆธธๆˆโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 38 |
+720500 | 801765 | ไผ ๅช’ | ๅนฟๅ‘Š่ฅ้”€ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 38 |
+720501 | 857651 | ไผ ๅช’ | ๅนฟๅ‘Š่ฅ้”€ | ่ฅ้”€ไปฃ็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 34 |
+720502 | 857652 | ไผ ๅช’ | ๅนฟๅ‘Š่ฅ้”€ | ๅนฟๅ‘Šๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+720600 | 801766 | ไผ ๅช’ | ๅฝฑ่ง†้™ข็บฟ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+720601 | 857661 | ไผ ๅช’ | ๅฝฑ่ง†้™ข็บฟ | ๅฝฑ่ง†ๅŠจๆผซๅˆถไฝœ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+720602 | 857662 | ไผ ๅช’ | ๅฝฑ่ง†้™ข็บฟ | ้™ข็บฟ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+720700 | 801767 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+720701 | 857671 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ่ง†้ข‘ๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+720702 | 857672 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ้Ÿณ้ข‘ๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+720703 | 857673 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ๅ›พ็‰‡ๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+720704 | 857674 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ้—จๆˆท็ฝ‘็ซ™ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+720705 | 857675 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ๆ–‡ๅญ—ๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+720706 | 857676 | ไผ ๅช’ | ๆ•ฐๅญ—ๅช’ไฝ“ | ๅ…ถไป–ๆ•ฐๅญ—ๅช’ไฝ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+720800 | 801768 | ไผ ๅช’ | ็คพไบคโ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+720801 | 857681 | ไผ ๅช’ | ็คพไบคโ…ก | ็คพไบคโ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+720900 | 801769 | ไผ ๅช’ | ๅ‡บ็‰ˆ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 27 |
+720901 | 857691 | ไผ ๅช’ | ๅ‡บ็‰ˆ | ๆ•™่‚ฒๅ‡บ็‰ˆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 10 |
+720902 | 857692 | ไผ ๅช’ | ๅ‡บ็‰ˆ | ๅคงไผ—ๅ‡บ็‰ˆ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 17 |
+720903 | 857693 | ไผ ๅช’ | ๅ‡บ็‰ˆ | ๅ…ถไป–ๅ‡บ็‰ˆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 0 |
+721000 | 801995 | ไผ ๅช’ | ็”ต่ง†ๅนฟๆ’ญโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+721001 | 859951 | ไผ ๅช’ | ็”ต่ง†ๅนฟๆ’ญโ…ก | ็”ต่ง†ๅนฟๆ’ญโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+730000 | 801770 | ้€šไฟก | | | ไธ€็บง่กŒไธš | 1 | 2021ไฟ็•™ | 100 |
+730100 | 801223 | ้€šไฟก | ้€šไฟกๆœๅŠก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ”นๅ | 34 |
+730102 | 852212 | ้€šไฟก | ้€šไฟกๆœๅŠก | ็”ตไฟก่ฟ่ฅๅ•† | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+730103 | 852213 | ้€šไฟก | ้€šไฟกๆœๅŠก | ้€šไฟกๅทฅ็จ‹ๅŠๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 19 |
+730104 | 852214 | ้€šไฟก | ้€šไฟกๆœๅŠก | ้€šไฟกๅบ”็”จๅขžๅ€ผๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+730200 | 801102 | ้€šไฟก | ้€šไฟก่ฎพๅค‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ไฟ็•™ | 66 |
+730204 | 851024 | ้€šไฟก | ้€šไฟก่ฎพๅค‡ | ้€šไฟก็ฝ‘็ปœ่ฎพๅค‡ๅŠๅ™จไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 24 |
+730205 | 851025 | ้€šไฟก | ้€šไฟก่ฎพๅค‡ | ้€šไฟก็บฟ็ผ†ๅŠ้…ๅฅ— | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+730206 | 851026 | ้€šไฟก | ้€šไฟก่ฎพๅค‡ | ้€šไฟก็ปˆ็ซฏๅŠ้…ไปถ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+730207 | 851027 | ้€šไฟก | ้€šไฟก่ฎพๅค‡ | ๅ…ถไป–้€šไฟก่ฎพๅค‡ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+740000 | 801950 | ็…ค็‚ญ | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 38 |
+740100 | 801951 | ็…ค็‚ญ | ็…ค็‚ญๅผ€้‡‡ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 29 |
+740101 | 859511 | ็…ค็‚ญ | ็…ค็‚ญๅผ€้‡‡ | ๅŠจๅŠ›็…ค | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 18 |
+740102 | 859512 | ็…ค็‚ญ | ็…ค็‚ญๅผ€้‡‡ | ็„ฆ็…ค | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+740200 | 801952 | ็…ค็‚ญ | ็„ฆ็‚ญโ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+740201 | 859521 | ็…ค็‚ญ | ็„ฆ็‚ญโ…ก | ็„ฆ็‚ญโ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+750000 | 801960 | ็Ÿณๆฒน็ŸณๅŒ– | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 47 |
+750100 | 801961 | ็Ÿณๆฒน็ŸณๅŒ– | ๆฒนๆฐ”ๅผ€้‡‡โ…ก | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+750101 | 859611 | ็Ÿณๆฒน็ŸณๅŒ– | ๆฒนๆฐ”ๅผ€้‡‡โ…ก | ๆฒนๆฐ”ๅผ€้‡‡โ…ข | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+750200 | 801962 | ็Ÿณๆฒน็ŸณๅŒ– | ๆฒนๆœๅทฅ็จ‹ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+750201 | 859621 | ็Ÿณๆฒน็ŸณๅŒ– | ๆฒนๆœๅทฅ็จ‹ | ๆฒน็”ฐๆœๅŠก | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+750202 | 859622 | ็Ÿณๆฒน็ŸณๅŒ– | ๆฒนๆœๅทฅ็จ‹ | ๆฒนๆฐ”ๅŠ็‚ผๅŒ–ๅทฅ็จ‹ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+750300 | 801963 | ็Ÿณๆฒน็ŸณๅŒ– | ็‚ผๅŒ–ๅŠ่ดธๆ˜“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 29 |
+750301 | 859631 | ็Ÿณๆฒน็ŸณๅŒ– | ็‚ผๅŒ–ๅŠ่ดธๆ˜“ | ็‚ผๆฒนๅŒ–ๅทฅ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 9 |
+750302 | 859632 | ็Ÿณๆฒน็ŸณๅŒ– | ็‚ผๅŒ–ๅŠ่ดธๆ˜“ | ๆฒนๅ“็ŸณๅŒ–่ดธๆ˜“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+750303 | 859633 | ็Ÿณๆฒน็ŸณๅŒ– | ็‚ผๅŒ–ๅŠ่ดธๆ˜“ | ๅ…ถไป–็ŸณๅŒ– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 14 |
+760000 | 801970 | ็Žฏไฟ | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 97 |
+760100 | 801971 | ็Žฏไฟ | ็Žฏๅขƒๆฒป็† | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 82 |
+760101 | 859711 | ็Žฏไฟ | ็Žฏๅขƒๆฒป็† | ๅคงๆฐ”ๆฒป็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+760102 | 859712 | ็Žฏไฟ | ็Žฏๅขƒๆฒป็† | ๆฐดๅŠกๅŠๆฐดๆฒป็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 40 |
+760103 | 859713 | ็Žฏไฟ | ็Žฏๅขƒๆฒป็† | ๅ›บๅบŸๆฒป็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 23 |
+760104 | 859714 | ็Žฏไฟ | ็Žฏๅขƒๆฒป็† | ็ปผๅˆ็Žฏๅขƒๆฒป็† | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 11 |
+760200 | 801972 | ็Žฏไฟ | ็Žฏไฟ่ฎพๅค‡โ…ก | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 15 |
+760201 | 859721 | ็Žฏไฟ | ็Žฏไฟ่ฎพๅค‡โ…ก | ็Žฏไฟ่ฎพๅค‡โ…ข | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 15 |
+770000 | 801980 | ็พŽๅฎนๆŠค็† | | | ไธ€็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 27 |
+770100 | 801981 | ็พŽๅฎนๆŠค็† | ไธชๆŠค็”จๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 12 |
+770101 | 859811 | ็พŽๅฎนๆŠค็† | ไธชๆŠค็”จๅ“ | ็”Ÿๆดป็”จ็บธ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 8 |
+770102 | 859812 | ็พŽๅฎนๆŠค็† | ไธชๆŠค็”จๅ“ | ๆด—ๆŠค็”จๅ“ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 4 |
+770200 | 801982 | ็พŽๅฎนๆŠค็† | ๅŒ–ๅฆ†ๅ“ | | ไบŒ็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 13 |
+770201 | 859821 | ็พŽๅฎนๆŠค็† | ๅŒ–ๅฆ†ๅ“ | ๅŒ–ๅฆ†ๅ“ๅˆถ้€ ๅŠๅ…ถไป– | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 7 |
+770202 | 859822 | ็พŽๅฎนๆŠค็† | ๅŒ–ๅฆ†ๅ“ | ๅ“็‰ŒๅŒ–ๅฆ†ๅ“ | ไธ‰็บง่กŒไธš | 1 | 2021ๆ–ฐๅขž | 6 |
+770300 | 801983 | ็พŽๅฎนๆŠค็† | ๅŒป็–—็พŽๅฎน | | ไบŒ็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 2 |
+770301 | 859831 | ็พŽๅฎนๆŠค็† | ๅŒป็–—็พŽๅฎน | ๅŒป็พŽ่€—ๆ | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+770302 | 859832 | ็พŽๅฎนๆŠค็† | ๅŒป็–—็พŽๅฎน | ๅŒป็พŽๆœๅŠก | ไธ‰็บง่กŒไธš | 0 | 2021ๆ–ฐๅขž | 1 |
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+index_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ 
+level | str | N | ่กŒไธšๅˆ†็บง๏ผˆL1/L2/L3๏ผ‰
+parent_code | str | N | ็ˆถ็บงไปฃ็ ๏ผˆไธ€็บงไธบ0๏ผ‰
+src | str | N | ๆŒ‡ๆ•ฐๆฅๆบ๏ผˆSW2014๏ผš็”ณไธ‡2014ๅนด็‰ˆๆœฌ๏ผŒSW2021๏ผš็”ณไธ‡2021ๅนด็‰ˆๆœฌ๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+index_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+industry_name | str | Y | ่กŒไธšๅ็งฐ
+parent_code | str | Y | ็ˆถ็บงไปฃ็ 
+level | str | Y | ่กŒไธšๅฑ‚็บง
+industry_code | str | Y | ่กŒไธšไปฃ็ 
+is_pub | str | Y | ๆ˜ฏๅฆๅ‘ๅธƒไบ†ๆŒ‡ๆ•ฐ
+src | str | N | ่กŒไธšๅˆ†็ฑป๏ผˆSW็”ณไธ‡๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–็”ณไธ‡ไธ€็บง่กŒไธšๅˆ—่กจ
+df = pro.index_classify(level='L1', src='SW2021')
+
+#่Žทๅ–็”ณไธ‡ไบŒ็บง่กŒไธšๅˆ—่กจ
+df = pro.index_classify(level='L2', src='SW2021')
+
+#่Žทๅ–็”ณไธ‡ไธ‰็บง็บง่กŒไธšๅˆ—่กจ
+df = pro.index_classify(level='L3', src='SW2021')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ index_code industry_name level
+ 0 801020.SI ้‡‡ๆŽ˜ L1
+ 1 801030.SI ๅŒ–ๅทฅ L1
+ 2 801040.SI ้’ข้“ L1
+ 3 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž L1
+ 4 801710.SI ๅปบ็ญ‘ๆๆ–™ L1
+ 5 801720.SI ๅปบ็ญ‘่ฃ…้ฅฐ L1
+ 6 801730.SI ็”ตๆฐ”่ฎพๅค‡ L1
+ 7 801890.SI ๆœบๆขฐ่ฎพๅค‡ L1
+ 8 801740.SI ๅ›ฝ้˜ฒๅ†›ๅทฅ L1
+ 9 801880.SI ๆฑฝ่ฝฆ L1
+ 10 801110.SI ๅฎถ็”จ็”ตๅ™จ L1
+ 11 801130.SI ็บบ็ป‡ๆœ่ฃ… L1
+ 12 801140.SI ่ฝปๅทฅๅˆถ้€  L1
+ 13 801200.SI ๅ•†ไธš่ดธๆ˜“ L1
+ 14 801010.SI ๅ†œๆž—็‰งๆธ” L1
+ 15 801120.SI ้ฃŸๅ“้ฅฎๆ–™ L1
+ 16 801210.SI ไผ‘้—ฒๆœๅŠก L1
+ 17 801150.SI ๅŒป่ฏ็”Ÿ็‰ฉ L1
+ 18 801160.SI ๅ…ฌ็”จไบ‹ไธš L1
+ 19 801170.SI ไบค้€š่ฟ่พ“ L1
+ 20 801180.SI ๆˆฟๅœฐไบง L1
+ 21 801080.SI ็”ตๅญ L1
+ 22 801750.SI ่ฎก็ฎ—ๆœบ L1
+ 23 801760.SI ไผ ๅช’ L1
+ 24 801770.SI ้€šไฟก L1
+ 25 801780.SI ้“ถ่กŒ L1
+ 26 801790.SI ้ž้“ถ้‡‘่ž L1
+ 27 801230.SI ็ปผๅˆ L1
+
+
+
+
+
+
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\210\220\345\210\206(\345\210\206\347\272\247).md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\210\220\345\210\206(\345\210\206\347\272\247).md"
new file mode 100644
index 000000000..743bfcd1b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\210\220\345\210\206(\345\210\206\347\272\247).md"
@@ -0,0 +1,82 @@
+## ็”ณไธ‡่กŒไธšๆˆๅˆ†ๆž„ๆˆ(ๅˆ†็บง)
+----
+
+ๆŽฅๅฃ๏ผšindex_member_all
+ๆ่ฟฐ๏ผšๆŒ‰ไธ‰็บงๅˆ†็ฑปๆๅ–็”ณไธ‡่กŒไธšๆˆๅˆ†๏ผŒๅฏๆไพ›ๆŸไธชๅˆ†็ฑป็š„ๆ‰€ๆœ‰ๆˆๅˆ†๏ผŒไนŸๅฏๆŒ‰่‚ก็ฅจไปฃ็ ๆๅ–ๆ‰€ๅฑžๅˆ†็ฑป๏ผŒๅ‚ๆ•ฐ็ตๆดป
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000่กŒ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆƒ้™๏ผš็”จๆˆท้œ€2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ็งฏๅˆ†่Žทๅ–ๆ–นๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+l1_code | str | N | ไธ€็บง่กŒไธšไปฃ็ 
+l2_code | str | N | ไบŒ็บง่กŒไธšไปฃ็ 
+l3_code | str | N | ไธ‰็บง่กŒไธšไปฃ็ 
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+is_new | str | N | ๆ˜ฏๅฆๆœ€ๆ–ฐ๏ผˆ้ป˜่ฎคไธบโ€œYๆ˜ฏโ€๏ผ‰
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+l1_code | str | Y | ไธ€็บง่กŒไธšไปฃ็ 
+l1_name | str | Y | ไธ€็บง่กŒไธšๅ็งฐ
+l2_code | str | Y | ไบŒ็บง่กŒไธšไปฃ็ 
+l2_name | str | Y | ไบŒ็บง่กŒไธšๅ็งฐ
+l3_code | str | Y | ไธ‰็บง่กŒไธšไปฃ็ 
+l3_name | str | Y | ไธ‰็บง่กŒไธšๅ็งฐ
+ts_code | str | Y | ๆˆๅˆ†่‚ก็ฅจไปฃ็ 
+name | str | Y | ๆˆๅˆ†่‚ก็ฅจๅ็งฐ
+in_date | str | Y | ็บณๅ…ฅๆ—ฅๆœŸ
+out_date | str | Y | ๅ‰”้™คๆ—ฅๆœŸ
+is_new | str | Y | ๆ˜ฏๅฆๆœ€ๆ–ฐYๆ˜ฏNๅฆ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–้ป„้‡‘ๅˆ†็ฑป็š„ๆˆไปฝ่‚ก
+df = pro.index_member_all(l3_code='850531.SI')
+
+#่Žทๅ–000001.SZๆ‰€ๅฑž่กŒไธš
+df = pro.index_member_all(ts_code='000001.SZ')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ l1_code l1_name l2_code l2_name l3_code l3_name ts_code name in_date
+ 0 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 000506.SZ *STไธญๆถฆ 20220729
+ 1 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 001337.SZ ๅ››ๅท้ป„้‡‘ 20230224
+ 2 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600988.SH ่ตคๅณฐ้ป„้‡‘ 20040414
+ 3 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600489.SH ไธญ้‡‘้ป„้‡‘ 20030812
+ 4 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600547.SH ๅฑฑไธœ้ป„้‡‘ 20030826
+ 5 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 002155.SZ ๆน–ๅ—้ป„้‡‘ 20070815
+ 6 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 002237.SZ ๆ’้‚ฆ่‚กไปฝ 20080428
+ 7 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 601069.SH ่ฅฟ้ƒจ้ป„้‡‘ 20150115
+ 8 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 000975.SZ ้“ถๆณฐ้ป„้‡‘ 20190724
+ 9 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 300139.SZ ๆ™“็จ‹็ง‘ๆŠ€ 20220729
+ 10 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600687.SH ้€€ๅธ‚ๅˆšๆณฐ(้€€ๅธ‚) 20130701
+ 11 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600807.SH ๆตŽๅ—้ซ˜ๆ–ฐ 20220729
+ 12 801050.SI ๆœ‰่‰ฒ้‡‘ๅฑž 801053.SI ่ดต้‡‘ๅฑž 850531.SI ้ป„้‡‘ 600311.SH *ST่ฃๅŽ(้€€ๅธ‚) 20140102
+
+
+
+
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..a81a479f5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\214\207\346\225\260\344\270\223\351\242\230/\347\224\263\344\270\207\350\241\214\344\270\232\346\214\207\346\225\260\346\227\245\350\241\214\346\203\205.md"
@@ -0,0 +1,73 @@
+## ็”ณไธ‡่กŒไธšๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšsw_daily
+ๆ่ฟฐ๏ผš่Žทๅ–็”ณไธ‡่กŒไธšๆ—ฅ็บฟ่กŒๆƒ…๏ผˆ้ป˜่ฎคๆ˜ฏ็”ณไธ‡2021็‰ˆ่กŒๆƒ…๏ผ‰
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000่กŒๆ•ฐๆฎ๏ผŒๅฏ้€š่ฟ‡ๆŒ‡ๆ•ฐไปฃ็ ๅ’Œๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–๏ผŒ5000็งฏๅˆ†ๅฏ่ฐƒๅ–
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่กŒไธšไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+name | str | Y | ๆŒ‡ๆ•ฐๅ็งฐ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡๏ผˆไธ‡่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+pe | float | Y | ๅธ‚็›ˆ็އ
+pb | float | Y | ๅธ‚ๅ‡€็އ
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+#่Žทๅ–20230705ๅฝ“ๆ—ฅๆ‰€ๆœ‰็”ณไธ‡่กŒไธšๆŒ‡ๆ•ฐ็š„ts_code,name,open,close,vol,pe,pbๆ•ฐๆฎ
+df = pro.sw_daily(trade_date='20230705', fields='ts_code,name,open,close,vol,pe,pb')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name open close vol pe pb
+ 0 801001.SI ็”ณไธ‡50 2972.86 2946.53 275984.00 13.99 1.91
+ 1 801002.SI ็”ณไธ‡ไธญๅฐ 6963.37 6896.69 1540720.00 21.19 2.47
+ 2 801003.SI ็”ณไธ‡๏ผกๆŒ‡ 3793.91 3769.63 6294567.00 16.56 1.78
+ 3 801005.SI ็”ณไธ‡ๅˆ›ไธš 2841.32 2815.48 1220719.00 35.90 3.72
+ 4 801010.SI ๅ†œๆž—็‰งๆธ” 2986.75 2946.60 83532.00 28.32 2.66
+ .. ... ... ... ... ... ... ...
+ 434 859811.SI ็”Ÿๆดป็”จ็บธ 1438.09 1418.16 2542.00 23.25 2.32
+ 435 859821.SI ๅŒ–ๅฆ†ๅ“ๅˆถ้€ ๅŠๅ…ถไป– 2674.85 2674.57 2069.00 40.63 2.33
+ 436 859822.SI ๅ“็‰ŒๅŒ–ๅฆ†ๅ“ 12094.45 11877.03 2809.00 44.55 5.52
+ 437 859852.SI ๅŸน่ฎญๆ•™่‚ฒ 780.30 770.10 20889.00 106.12 5.73
+ 438 859951.SI ็”ต่ง†ๅนฟๆ’ญโ…ข 1121.00 1122.06 24413.00 51.46 1.05
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\210\206\351\222\237\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\210\206\351\222\237\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..7448a039b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\210\206\351\222\237\350\241\214\346\203\205.md"
@@ -0,0 +1,85 @@
+## ๆœŸๆƒๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšopt_mins
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸๆƒๅˆ็บฆๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๅˆ็บฆไปฃ็ ๅ’Œๆ—ถ้—ดๅพช็Žฏ่Žทๅ–ใ€‚
+ๆƒ้™๏ผš120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–2ๆฌกๆŽฅๅฃๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g๏ผš10007976.SH
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2024-08-25 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2024-08-25 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้‡‘้ข
+oi | float | Y | ๆŒไป“้‡
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.df = pro.opt_mins(ts_code='10007976.SH', freq='1min', start_date='2024-09-27 09:00:00', end_date='2024-09-27 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ts_code trade_time open close high low vol amount oi
+ 0 10007976.SH 2024-09-27T15:00:00 0.1267 0.1370 0.1370 0.1267 44.0 60280.0 6499.0
+ 1 10007976.SH 2024-09-27T14:59:00 0.1267 0.1267 0.1267 0.1267 0.0 0.0 6480.0
+ 2 10007976.SH 2024-09-27T14:58:00 0.1267 0.1267 0.1267 0.1267 0.0 0.0 6480.0
+ 3 10007976.SH 2024-09-27T14:57:00 0.1207 0.1267 0.1267 0.1207 25.0 31585.0 6480.0
+ 4 10007976.SH 2024-09-27T14:56:00 0.1199 0.1207 0.1235 0.1194 259.0 312561.0 6464.0
+ .. ... ... ... ... ... ... ... ... ...
+ 236 10007976.SH 2024-09-27T09:34:00 0.0386 0.0386 0.0386 0.0386 0.0 0.0 86.0
+ 237 10007976.SH 2024-09-27T09:33:00 0.0386 0.0386 0.0386 0.0386 0.0 0.0 86.0
+ 238 10007976.SH 2024-09-27T09:32:00 0.0352 0.0386 0.0386 0.0348 6.0 2224.0 86.0
+ 239 10007976.SH 2024-09-27T09:31:00 0.0261 0.0352 0.0368 0.0261 76.0 24668.0 80.0
+ 240 10007976.SH 2024-09-27T09:30:00 0.0254 0.0254 0.0254 0.0254 4.0 1016.0 4.0
+
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\220\210\347\272\246\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\220\210\347\272\246\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..12349f162
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\345\220\210\347\272\246\344\277\241\346\201\257.md"
@@ -0,0 +1,86 @@
+## ๆœŸๆƒๅˆ็บฆไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšopt_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœŸๆƒๅˆ็บฆไฟกๆฏ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘5000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๆœŸๆƒไปฃ็ 
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็  ๏ผˆๅŒ…ๆ‹ฌไธŠไบคๆ‰€SSE็ญ‰[ไบคๆ˜“ๆ‰€](https://tushare.pro/document/2?doc_id=157)๏ผ‰
+list_date | str | N | ไธŠๅธ‚ไบคๆ˜“ๆ—ฅ
+opt_code | str | N | ๆ ‡ๅ‡†ๅˆ็บฆไปฃ็ ๏ผŒOP+ๆœŸ่ดงๅˆ็บฆTS_CODE๏ผŒๅฆ‚ๆฃ•ๆฆˆๆฒน2207ๅˆ็บฆ๏ผŒ่พ“ๅ…ฅOPP2207.DCE
+call_put | str | N | ๆœŸๆƒ็ฑปๅž‹
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+exchange | str | Y | ไบคๆ˜“ๅธ‚ๅœบ
+name | str | Y | ๅˆ็บฆๅ็งฐ
+per_unit | str | Y | ๅˆ็บฆๅ•ไฝ
+opt_code | str | Y | ๆ ‡็š„ๅˆ็บฆไปฃ็ 
+opt_type | str | Y | ๅˆ็บฆ็ฑปๅž‹
+call_put | str | Y | ๆœŸๆƒ็ฑปๅž‹
+exercise_type | str | Y | ่กŒๆƒๆ–นๅผ
+exercise_price | float | Y | ่กŒๆƒไปทๆ ผ
+s_month | str | Y | ็ป“็ฎ—ๆœˆ
+maturity_date | str | Y | ๅˆฐๆœŸๆ—ฅ
+list_price | float | Y | ๆŒ‚็‰ŒๅŸบๅ‡†ไปท
+list_date | str | Y | ๅผ€ๅง‹ไบคๆ˜“ๆ—ฅๆœŸ
+delist_date | str | Y | ๆœ€ๅŽไบคๆ˜“ๆ—ฅๆœŸ
+last_edate | str | Y | ๆœ€ๅŽ่กŒๆƒๆ—ฅๆœŸ
+last_ddate | str | Y | ๆœ€ๅŽไบคๅ‰ฒๆ—ฅๆœŸ
+quote_unit | str | Y | ๆŠฅไปทๅ•ไฝ
+min_price_chg | str | Y | ๆœ€ๅฐไปทๆ ผๆณขๅน…
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.opt_basic(exchange='DCE', fields='ts_code,name,exercise_type,list_date,delist_date')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name exercise_type list_date delist_date
+ 0 M1707-C-2400.DCE ่ฑ†็ฒ•ๆœŸๆƒ1707่ฎค่ดญ2400 ็พŽๅผ 20170605 20170607
+ 1 M1707-P-2400.DCE ่ฑ†็ฒ•ๆœŸๆƒ1707่ฎคๆฒฝ2400 ็พŽๅผ 20170605 20170607
+ 2 M1803-P-2550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1803่ฎคๆฒฝ2550 ็พŽๅผ 20170407 20180207
+ 3 M1707-C-2500.DCE ่ฑ†็ฒ•ๆœŸๆƒ1707่ฎค่ดญ2500 ็พŽๅผ 20170410 20170607
+ 4 M1707-P-2500.DCE ่ฑ†็ฒ•ๆœŸๆƒ1707่ฎคๆฒฝ2500 ็พŽๅผ 20170410 20170607
+ 5 M1803-C-2550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1803่ฎค่ดญ2550 ็พŽๅผ 20170407 20180207
+ 6 M1808-C-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1808่ฎค่ดญ3550 ็พŽๅผ 20180409 20180706
+ 7 M1808-P-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1808่ฎคๆฒฝ3550 ็พŽๅผ 20180409 20180706
+ 8 M1809-C-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1809่ฎค่ดญ3550 ็พŽๅผ 20180409 20180807
+ 9 M1809-P-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1809่ฎคๆฒฝ3550 ็พŽๅผ 20180409 20180807
+ 10 M1811-C-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1811่ฎค่ดญ3550 ็พŽๅผ 20180409 20181012
+ 11 M1811-P-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1811่ฎคๆฒฝ3550 ็พŽๅผ 20180409 20181012
+ 12 M1812-C-3500.DCE ่ฑ†็ฒ•ๆœŸๆƒ1812่ฎค่ดญ3500 ็พŽๅผ 20180409 20181107
+ 13 M1812-C-3550.DCE ่ฑ†็ฒ•ๆœŸๆƒ1812่ฎค่ดญ3550 ็พŽๅผ 20180409 20181107
+ 14 M1711-P-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1711่ฎคๆฒฝ2450 ็พŽๅผ 20170601 20171013
+ 15 M1712-C-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1712่ฎค่ดญ2450 ็พŽๅผ 20170601 20171107
+ 16 M1712-P-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1712่ฎคๆฒฝ2450 ็พŽๅผ 20170601 20171107
+ 17 M1801-C-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1801่ฎค่ดญ2450 ็พŽๅผ 20170601 20171207
+ 18 M1801-P-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1801่ฎคๆฒฝ2450 ็พŽๅผ 20170601 20171207
+ 19 M1803-C-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1803่ฎค่ดญ2450 ็พŽๅผ 20170601 20180207
+ 20 M1803-P-2450.DCE ่ฑ†็ฒ•ๆœŸๆƒ1803่ฎคๆฒฝ2450 ็พŽๅผ 20170601 20180207
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..6a191e306
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\346\235\203\346\225\260\346\215\256/\346\234\237\346\235\203\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,73 @@
+## ๆœŸๆƒๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšopt_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœŸๆƒๆ—ฅ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง15000ๆกๆ•ฐๆฎ๏ผŒๅฏ่ทŸ่ฟ›ๆ—ฅ็บฟๆˆ–่€…ไปฃ็ ๅพช็Žฏ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒไฝ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSๅˆ็บฆไปฃ็ ๏ผˆ่พ“ๅ…ฅไปฃ็ ๆˆ–ๆ—ถ้—ด่‡ณๅฐ‘ไปปๆ„ไธ€ไธชๅ‚ๆ•ฐ๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€(SSE/SZSE/CFFEX/DCE/SHFE/CZCE๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+exchange | str | Y | ไบคๆ˜“ๅธ‚ๅœบ
+pre_settle | float | Y | ๆ˜จ็ป“็ฎ—ไปท
+pre_close | float | Y | ๅ‰ๆ”ถ็›˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+settle | float | Y | ็ป“็ฎ—ไปท
+vol | float | Y | ๆˆไบค้‡(ๆ‰‹)
+amount | float | Y | ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+oi | float | Y | ๆŒไป“้‡(ๆ‰‹)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.opt_daily(trade_date='20181212')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ ts_code trade_date exchange ... vol amount oi
+ 0 10001313.SH 20181212 SSE ... 38354.0 1261.435472 98882.0
+ 1 10001314.SH 20181212 SSE ... 14472.0 234.933288 79980.0
+ 2 10001315.SH 20181212 SSE ... 10092.0 69.311776 72370.0
+ 3 10001316.SH 20181212 SSE ... 5434.0 16.107224 55117.0
+ 4 10001317.SH 20181212 SSE ... 4240.0 5.798919 61746.0
+ .. ... ... ... ... ... ... ...
+ 753 M1911-P-2900.DCE 20181212 DCE ... 0.0 0.000000 20.0
+ 754 M1911-P-2950.DCE 20181212 DCE ... 0.0 0.000000 20.0
+ 755 M1911-P-3000.DCE 20181212 DCE ... 0.0 0.000000 20.0
+ 756 M1911-P-3050.DCE 20181212 DCE ... 0.0 0.000000 20.0
+ 757 M1911-P-3100.DCE 20181212 DCE ... 0.0 0.000000 0.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md"
new file mode 100644
index 000000000..c0e01083c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md"
@@ -0,0 +1,108 @@
+## ไบคๆ˜“ๆ—ฅๅކ
+----
+
+ๆŽฅๅฃ๏ผštrade_cal
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ„ๅคงๆœŸ่ดงไบคๆ˜“ๆ‰€ไบคๆ˜“ๆ—ฅๅކๆ•ฐๆฎ
+็งฏๅˆ†๏ผš้œ€2000็งฏๅˆ†ๆ‰ๅฏไปฅๆๅ–ๆ•ฐๆฎ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+exchange | str | N | ไบคๆ˜“ๆ‰€ SHFE ไธŠๆœŸๆ‰€ DCE ๅคงๅ•†ๆ‰€ CFFEXไธญ้‡‘ๆ‰€ CZCE้ƒ‘ๅ•†ๆ‰€ INEไธŠๆตทๅ›ฝ้™…่ƒฝๆบไบคๆ˜“ๆ‰€
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+is_open | int | N | ๆ˜ฏๅฆไบคๆ˜“ 0ไผ‘ๅธ‚ 1ไบคๆ˜“
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+exchange | str | Y | ไบคๆ˜“ๆ‰€ ๅŒๅ‚ๆ•ฐ้ƒจๅˆ†ๆ่ฟฐ
+cal_date | str | Y | ๆ—ฅๅކๆ—ฅๆœŸ
+is_open | int | Y | ๆ˜ฏๅฆไบคๆ˜“ 0ไผ‘ๅธ‚ 1ไบคๆ˜“
+pretrade_date | str | N | ไธŠไธ€ไธชไบคๆ˜“ๆ—ฅ
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+
+df = pro.trade_cal(exchange='DCE', start_date='20180101', end_date='20181231')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('trade_cal', exchange='DCE', start_date='20180101', end_date='20181231')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ exchange cal_date is_open
+ 0 DCE 20180101 0
+ 1 DCE 20180102 1
+ 2 DCE 20180103 1
+ 3 DCE 20180104 1
+ 4 DCE 20180105 1
+ 5 DCE 20180106 0
+ 6 DCE 20180107 0
+ 7 DCE 20180108 1
+ 8 DCE 20180109 1
+ 9 DCE 20180110 1
+ 10 DCE 20180111 1
+ 11 DCE 20180112 1
+ 12 DCE 20180113 0
+ 13 DCE 20180114 0
+ 14 DCE 20180115 1
+ 15 DCE 20180116 1
+ 16 DCE 20180117 1
+ 17 DCE 20180118 1
+ 18 DCE 20180119 1
+ 19 DCE 20180120 0
+ 20 DCE 20180121 0
+ 21 DCE 20180122 1
+ 22 DCE 20180123 1
+ 23 DCE 20180124 1
+ 24 DCE 20180125 1
+ 25 DCE 20180126 1
+ 26 DCE 20180127 0
+ 27 DCE 20180128 0
+ 28 DCE 20180129 1
+ 29 DCE 20180130 1
+ .. ... ... ...
+ 335 DCE 20181202 0
+ 336 DCE 20181203 1
+ 337 DCE 20181204 1
+ 338 DCE 20181205 1
+ 339 DCE 20181206 1
+ 340 DCE 20181207 1
+ 341 DCE 20181208 0
+ 342 DCE 20181209 0
+ 343 DCE 20181210 1
+ 344 DCE 20181211 1
+ 345 DCE 20181212 1
+ 346 DCE 20181213 1
+ 347 DCE 20181214 1
+ 348 DCE 20181215 0
+ 349 DCE 20181216 0
+ 350 DCE 20181217 1
+ 351 DCE 20181218 1
+ 352 DCE 20181219 1
+ 353 DCE 20181220 1
+ 354 DCE 20181221 1
+ 355 DCE 20181222 0
+ 356 DCE 20181223 0
+ 357 DCE 20181224 1
+ 358 DCE 20181225 1
+ 359 DCE 20181226 1
+ 360 DCE 20181227 1
+ 361 DCE 20181228 1
+ 362 DCE 20181229 0
+ 363 DCE 20181230 0
+ 364 DCE 20181231 1
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\273\223\345\215\225\346\227\245\346\212\245.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\273\223\345\215\225\346\227\245\346\212\245.md"
new file mode 100644
index 000000000..c725b4a32
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\344\273\223\345\215\225\346\227\245\346\212\245.md"
@@ -0,0 +1,78 @@
+## ไป“ๅ•ๆ—ฅๆŠฅ
+----
+
+ๆŽฅๅฃ๏ผšfut_wsr
+ๆ่ฟฐ๏ผš่Žทๅ–ไป“ๅ•ๆ—ฅๆŠฅๆ•ฐๆฎ๏ผŒไบ†่งฃๅ„ไป“ๅบ“/ๅŽ‚ๅบ“็š„ไป“ๅ•ๅ˜ๅŒ–
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+symbol | str | N | ไบงๅ“ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+symbol | str | Y | ไบงๅ“ไปฃ็ 
+fut_name | str | Y | ไบงๅ“ๅ็งฐ
+warehouse | str | Y | ไป“ๅบ“ๅ็งฐ
+wh_id | str | N | ไป“ๅบ“็ผ–ๅท
+pre_vol | int | Y | ๆ˜จๆ—ฅไป“ๅ•้‡
+vol | int | Y | ไปŠๆ—ฅไป“ๅ•้‡
+vol_chg | int | Y | ๅขžๅ‡้‡
+area | str | N | ๅœฐๅŒบ
+year | str | N | ๅนดๅบฆ
+grade | str | N | ็ญ‰็บง
+brand | str | N | ๅ“็‰Œ
+place | str | N | ไบงๅœฐ
+pd | int | N | ๅ‡่ดดๆฐด
+is_ct | str | N | ๆ˜ฏๅฆๆŠ˜็ฎ—ไป“ๅ•
+unit | str | Y | ๅ•ไฝ
+exchange | str | N | ไบคๆ˜“ๆ‰€
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.fut_wsr(trade_date='20181113', symbol='ZN')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ trade_date symbol fut_name warehouse pre_vol vol vol_chg unit
+ 0 20181113 ZN ้”Œ ไธŠๆตท่ฃ•ๅผบ 4960 4960 0 ๅจ
+ 1 20181113 ZN ้”Œ ไธŠๆธฏ็‰ฉๆต 702 702 0 ๅจ
+ 2 20181113 ZN ้”Œ ไธŠๆธฏ็‰ฉๆต่‹ๅทž 0 0 0 ๅจ
+ 3 20181113 ZN ้”Œ ไธญๅ‚จๅดๆทž 0 0 0 ๅจ
+ 4 20181113 ZN ้”Œ ไธญๅ‚จๅคงๅœบ 0 0 0 ๅจ
+ 5 20181113 ZN ้”Œ ไธญๅ‚จๆ™Ÿไธ– 0 0 0 ๅจ
+ 6 20181113 ZN ้”Œ ไธญ้‡‘ๅœฃๆบ 428 353 -75 ๅจ
+ 7 20181113 ZN ้”Œ ๅ…จ่ƒœ็‰ฉๆต 2882 2882 0 ๅจ
+ 8 20181113 ZN ้”Œ ๅ—ๅ‚จไป“ๅ‚จ 25 25 0 ๅจ
+ 9 20181113 ZN ้”Œ ๅŒ็››ๆพๆฑŸ 0 0 0 ๅจ
+ 10 20181113 ZN ้”Œ ๅ›ฝๅ‚จ837ๅค„ 0 0 0 ๅจ
+ 11 20181113 ZN ้”Œ ๅ›ฝๅ‚จๅคฉๅจ 0 0 0 ๅจ
+ 12 20181113 ZN ้”Œ ๅ›ฝ่ƒฝ็‰ฉๆตๅธธๅทž 200 200 0 ๅจ
+ 13 20181113 ZN ้”Œ ๅค–่ฟๅŽไธœๅผ ๅŽๆตœ 0 0 0 ๅจ
+ 14 20181113 ZN ้”Œ ๅฎๆณขไน้พ™ไป“ 0 0 0 ๅจ
+ 15 20181113 ZN ้”Œ ๅนฟๅ‚จ830ไธ‰ๆฐด่ฅฟ 0 0 0 ๅจ
+ 16 20181113 ZN ้”Œ ๅบท่ฟ่งๅฑฑ 0 0 0 ๅจ
+ 17 20181113 ZN ้”Œ ๆ— ้”กๅ›ฝ่” 0 0 0 ๅจ
+ 18 20181113 ZN ้”Œ ๆœŸๆ™Ÿๅ…ฌๅธ 449 226 -223 ๅจ
+ 19 20181113 ZN ้”Œ ๆต™ๆฑŸๅบท่ฟ 25 25 0 ๅจ
+ 20 20181113 ZN ้”Œ ็™พ้‡‘ๆฑ‡็‰ฉๆต 0 0 0 ๅจ
+ 21 20181113 ZN ้”Œ ่ฃ•ๅผบ้—ต่กŒ 0 0 0 ๅจ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\215\227\345\215\216\346\234\237\350\264\247\346\214\207\346\225\260\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\215\227\345\215\216\346\234\237\350\264\247\346\214\207\346\225\260\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..e14e0ed28
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\215\227\345\215\216\346\234\237\350\264\247\346\214\207\346\225\260\350\241\214\346\203\205.md"
@@ -0,0 +1,141 @@
+## ๅ—ๅŽๆœŸ่ดงๆŒ‡ๆ•ฐๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšindex_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ—ๅŽๆŒ‡ๆ•ฐๆฏๆ—ฅ่กŒๆƒ…๏ผŒๆŒ‡ๆ•ฐ่กŒๆƒ…ไนŸๅฏไปฅ้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**]( https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŽ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ็ดฏ็งฏ2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ ๏ผˆๅ—ๅŽๆœŸ่ดงๆŒ‡ๆ•ฐไปฅ .NH ็ป“ๅฐพ๏ผŒๅ…ทไฝ“่ฏทๅ‚่€ƒๆœฌๆ–‡ๆœ€ไธ‹ๆ–น๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆ—ฅๆœŸๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | None | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅ
+close | float | ๆ”ถ็›˜็‚นไฝ
+open | float | ๅผ€็›˜็‚นไฝ
+high | float | ๆœ€้ซ˜็‚นไฝ
+low | float | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | ๆถจ่ทŒ็‚น
+pct_chg | float | ๆถจ่ทŒๅน…
+vol | float | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | ๆˆไบค้ข๏ผˆๅƒๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ—ๅŽๆฒช้“œๆŒ‡ๆ•ฐ
+df = pro.index_daily(ts_code='CU.NH', start_date='20180101', end_date='20181201')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low pre_close \
+ 0 CU.NH 20181130 3928.773 3918.501 3928.773 3907.438 3916.130
+ 1 CU.NH 20181129 3916.130 3891.634 3936.675 3880.572 3894.005
+ 2 CU.NH 20181128 3894.005 3863.978 3895.585 3841.853 3862.398
+ 3 CU.NH 20181127 3862.398 3905.068 3906.648 3844.224 3895.585
+ 4 CU.NH 20181126 3895.585 3895.585 3907.438 3875.831 3903.487
+ 5 CU.NH 20181123 3903.487 3915.340 3937.465 3897.956 3916.920
+ 6 CU.NH 20181122 3916.920 3919.291 3927.983 3892.425 3904.277
+ 7 CU.NH 20181121 3904.277 3931.143 3950.898 3851.335 3917.710
+ 8 CU.NH 20181120 3917.710 3939.045 3953.268 3914.550 3933.514
+ 9 CU.NH 20181119 3933.514 3909.018 3944.577 3903.487 3917.710
+ 10 CU.NH 20181116 3917.710 3916.130 3932.724 3904.277 3912.969
+ 11 CU.NH 20181115 3912.969 3869.509 3917.710 3865.559 3857.657
+ 12 CU.NH 20181114 3857.657 3878.992 3899.536 3849.755 3879.782
+ 13 CU.NH 20181113 3879.782 3866.349 3882.152 3845.804 3865.559
+ 14 CU.NH 20181112 3865.559 3877.411 3884.523 3853.706 3886.103
+ 15 CU.NH 20181109 3886.103 3889.264 3916.130 3877.411 3901.117
+ 16 CU.NH 20181108 3901.117 3921.661 3926.402 3896.376 3909.018
+
+<br>
+<br>
+
+**ๆŒ‡ๆ•ฐๅˆ—่กจ**
+
+ๆŒ‡ๆ•ฐไปฃ็  | ๆŒ‡ๆ•ฐๅ็งฐ
+---- | -----
+NHAI.NH|ๅ—ๅŽๅ†œไบงๅ“ๆŒ‡ๆ•ฐ
+NHCI.NH|ๅ—ๅŽๅ•†ๅ“ๆŒ‡ๆ•ฐ
+NHECI.NH|ๅ—ๅŽ่ƒฝๅŒ–ๆŒ‡ๆ•ฐ
+NHFI.NH|ๅ—ๅŽ้ป‘่‰ฒๆŒ‡ๆ•ฐ
+NHII.NH|ๅ—ๅŽๅทฅไธšๅ“ๆŒ‡ๆ•ฐ
+NHMI.NH|ๅ—ๅŽ้‡‘ๅฑžๆŒ‡ๆ•ฐ
+NHNFI.NH|ๅ—ๅŽๆœ‰่‰ฒ้‡‘ๅฑž
+NHPMI.NH|ๅ—ๅŽ่ดต้‡‘ๅฑžๆŒ‡ๆ•ฐ
+A.NH|ๅ—ๅŽ่ฟžๅคง่ฑ†ๆŒ‡ๆ•ฐ
+AG.NH|ๅ—ๅŽๆฒช้“ถๆŒ‡ๆ•ฐ
+AL.NH|ๅ—ๅŽๆฒช้“ๆŒ‡ๆ•ฐ
+AP.NH|ๅ—ๅŽ้ƒ‘่‹นๆžœๆŒ‡ๆ•ฐ
+AU.NH|ๅ—ๅŽๆฒช้ป„้‡‘ๆŒ‡ๆ•ฐ
+BB.NH|ๅ—ๅŽ่ฟž่ƒถๅˆๆฟๆŒ‡ๆ•ฐ
+BU.NH|ๅ—ๅŽๆฒช็Ÿณๆฒนๆฒฅ้’ๆŒ‡ๆ•ฐ
+C.NH|ๅ—ๅŽ่ฟž็މ็ฑณๆŒ‡ๆ•ฐ
+CF.NH|ๅ—ๅŽ้ƒ‘ๆฃ‰่ŠฑๆŒ‡ๆ•ฐ
+CS.NH|ๅ—ๅŽ่ฟž็މ็ฑณๆท€็ฒ‰ๆŒ‡ๆ•ฐ
+CU.NH|ๅ—ๅŽๆฒช้“œๆŒ‡ๆ•ฐ
+CY.NH|ๅ—ๅŽๆฃ‰็บฑๆŒ‡ๆ•ฐ
+ER.NH|ๅ—ๅŽ้ƒ‘็ฑผ็จปๆŒ‡ๆ•ฐ
+FB.NH|ๅ—ๅŽ่ฟž็บค็ปดๆฟๆŒ‡ๆ•ฐ
+FG.NH|ๅ—ๅŽ้ƒ‘็Žป็’ƒๆŒ‡ๆ•ฐ
+FU.NH|ๅ—ๅŽๆฒช็‡ƒๆฒนๆŒ‡ๆ•ฐ
+HC.NH|ๅ—ๅŽๆฒช็ƒญ่ฝงๅทๆฟๆŒ‡ๆ•ฐ
+I.NH|ๅ—ๅŽ่ฟž้“็Ÿฟ็ŸณๆŒ‡ๆ•ฐ
+J.NH|ๅ—ๅŽ่ฟž็„ฆ็‚ญๆŒ‡ๆ•ฐ
+JD.NH|ๅ—ๅŽ่ฟž้ธก่›‹ๆŒ‡ๆ•ฐ
+JM.NH|ๅ—ๅŽ่ฟž็„ฆ็…คๆŒ‡ๆ•ฐ
+JR.NH|ๅ—ๅŽ้ƒ‘็ฒณ็จปๆŒ‡ๆ•ฐ
+L.NH|ๅ—ๅŽ่ฟžไน™็ƒฏๆŒ‡ๆ•ฐ
+LR.NH|ๅ—ๅŽ้ƒ‘ๆ™š็ฑผ็จปๆŒ‡ๆ•ฐ
+M.NH|ๅ—ๅŽ่ฟž่ฑ†็ฒ•ๆŒ‡ๆ•ฐ
+ME.NH|ๅ—ๅŽ้ƒ‘็”ฒ้†‡ๆŒ‡ๆ•ฐ
+NI.NH|ๅ—ๅŽๆฒช้•ๆŒ‡ๆ•ฐ
+P.NH|ๅ—ๅŽ่ฟžๆฃ•ๆฒนๆŒ‡ๆ•ฐ
+PB.NH|ๅ—ๅŽๆฒช้“…ๆŒ‡ๆ•ฐ
+PP.NH|ๅ—ๅŽ่ฟž่šไธ™็ƒฏๆŒ‡ๆ•ฐ
+RB.NH|ๅ—ๅŽๆฒช่žบ้’ขๆŒ‡ๆ•ฐ
+RM.NH|ๅ—ๅŽ้ƒ‘่œ็ฑฝ็ฒ•ๆŒ‡ๆ•ฐ
+RO.NH|ๅ—ๅŽ้ƒ‘่œๆฒนๆŒ‡ๆ•ฐ
+RS.NH|ๅ—ๅŽ้ƒ‘ๆฒน่œ็ฑฝๆŒ‡ๆ•ฐ
+RU.NH|ๅ—ๅŽๆฒชๅคฉ่ƒถๆŒ‡ๆ•ฐ
+SC.NH|ๅ—ๅŽๅŽŸๆฒนๆŒ‡ๆ•ฐ
+SF.NH|ๅ—ๅŽ้ƒ‘็ก…้“ๆŒ‡ๆ•ฐ
+SM.NH|ๅ—ๅŽ้ƒ‘้”ฐ็ก…ๆŒ‡ๆ•ฐ
+SN.NH|ๅ—ๅŽๆฒช้”กๆŒ‡ๆ•ฐ
+SP.NH|ๅ—ๅŽ็บธๆต†ๆŒ‡ๆ•ฐ
+SR.NH|ๅ—ๅŽ้ƒ‘็™ฝ็ณ–ๆŒ‡ๆ•ฐ
+TA.NH|ๅ—ๅŽ้ƒ‘็ฒพๅฏน่‹ฏไบŒ็”ฒ้…ธๆŒ‡ๆ•ฐ
+TC.NH|ๅ—ๅŽ้ƒ‘ๅŠจๅŠ›็…คๆŒ‡ๆ•ฐ
+V.NH|ๅ—ๅŽ่ฟž่šๆฐฏไน™็ƒฏๆŒ‡ๆ•ฐ
+WR.NH|ๅ—ๅŽๆฒช็บฟๆๆŒ‡ๆ•ฐ
+WS.NH|ๅ—ๅŽ้ƒ‘ๅผบ้บฆๆŒ‡ๆ•ฐ
+Y.NH|ๅ—ๅŽ่ฟž่ฑ†ๆฒนๆŒ‡ๆ•ฐ
+ZN.NH|ๅ—ๅŽๆฒช้”ŒๆŒ‡ๆ•ฐ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..564764c4c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237\350\241\214\346\203\205.md"
@@ -0,0 +1,87 @@
+## ๆœŸ่ดงๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšft_mins
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸ่ดงๅˆ็บฆๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ๏ผŒๅฆ‚ๆžœ้œ€่ฆไธปๅŠ›ๅˆ็บฆๅˆ†้’Ÿ๏ผŒ่ฏทๅ…ˆ้€š่ฟ‡ไธปๅŠ›[mapping](https://tushare.pro/document/2?doc_id=189)ๆŽฅๅฃ่Žทๅ–ๅฏนๅบ”็š„ๅˆ็บฆไปฃ็ ๅŽๆๅ–ๅˆ†้’Ÿใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆœŸ่ดงๅˆ็บฆไปฃ็ ๅ’Œๆ—ถ้—ดๅพช็Žฏ่Žทๅ–๏ผŒๆœฌๆŽฅๅฃๅฏไปฅๆไพ›่ถ…่ฟ‡10ๅนดๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎใ€‚
+ๆƒ้™๏ผš120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–2ๆฌกๆŽฅๅฃๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g.CU2310.SHF
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2023-08-25 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2023-08-25 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท๏ผˆๅ…ƒ๏ผ‰
+close | float | Y | ๆ”ถ็›˜ไปท๏ผˆๅ…ƒ๏ผ‰
+high | float | Y | ๆœ€้ซ˜ไปท๏ผˆๅ…ƒ๏ผ‰
+low | float | Y | ๆœ€ไฝŽไปท๏ผˆๅ…ƒ๏ผ‰
+vol | int | Y | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+oi | float | Y | ๆŒไป“้‡๏ผˆๆ‰‹๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.df = pro.ft_mins(ts_code='CU2310.SHF', freq='1min', start_date='2023-08-25 09:00:00', end_date='2023-08-25 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ts_code trade_time open close high low vol amount oi
+ 0 CU2310.SHF 2023-08-25 15:00:00 68920.0 68930.0 68940.0 68910.0 373.0 128543250.0 146733.0
+ 1 CU2310.SHF 2023-08-25 14:59:00 68910.0 68920.0 68930.0 68910.0 300.0 103379650.0 146751.0
+ 2 CU2310.SHF 2023-08-25 14:58:00 68930.0 68920.0 68940.0 68910.0 207.0 71340500.0 146777.0
+ 3 CU2310.SHF 2023-08-25 14:57:00 68910.0 68930.0 68930.0 68910.0 317.0 109246900.0 146812.0
+ 4 CU2310.SHF 2023-08-25 14:56:00 68900.0 68910.0 68920.0 68900.0 237.0 81659550.0 146852.0
+ .. ... ... ... ... ... ... ... ... ...
+ 220 CU2310.SHF 2023-08-25 09:05:00 68750.0 68760.0 68770.0 68740.0 103.0 35412050.0 145101.0
+ 221 CU2310.SHF 2023-08-25 09:04:00 68750.0 68750.0 68770.0 68730.0 232.0 79741550.0 145105.0
+ 222 CU2310.SHF 2023-08-25 09:03:00 68740.0 68750.0 68750.0 68720.0 205.0 70453700.0 145087.0
+ 223 CU2310.SHF 2023-08-25 09:02:00 68710.0 68740.0 68740.0 68690.0 278.0 95514550.0 145132.0
+ 224 CU2310.SHF 2023-08-25 09:01:00 68680.0 68710.0 68740.0 68680.0 868.0 298156350.0 145178.0
+
+ [225 rows x 9 columns]
+
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\220\210\347\272\246\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\220\210\347\272\246\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..5f7d58845
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\220\210\347\272\246\344\277\241\346\201\257.md"
@@ -0,0 +1,78 @@
+## ๆœŸ่ดงๅˆ็บฆไฟกๆฏ่กจ
+----
+
+ๆŽฅๅฃ๏ผšfut_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœŸ่ดงๅˆ็บฆๅˆ—่กจๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง10000
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+exchange | str | Y | ไบคๆ˜“ๆ‰€ไปฃ็  CFFEX-ไธญ้‡‘ๆ‰€ DCE-ๅคงๅ•†ๆ‰€ CZCE-้ƒ‘ๅ•†ๆ‰€ SHFE-ไธŠๆœŸๆ‰€ INE-ไธŠๆตทๅ›ฝ้™…่ƒฝๆบไบคๆ˜“ไธญๅฟƒ GFEX-ๅนฟๅทžๆœŸ่ดงไบคๆ˜“ๆ‰€
+fut_type | str | N | ๅˆ็บฆ็ฑปๅž‹ (1 ๆ™ฎ้€šๅˆ็บฆ 2ไธปๅŠ›ไธŽ่ฟž็ปญๅˆ็บฆ ้ป˜่ฎคๅ–ๅ…จ้ƒจ)
+fut_code | str | N | ๆ ‡ๅ‡†ๅˆ็บฆไปฃ็ ๏ผŒๅฆ‚็™ฝ้“ถAGใ€AP้ฒœ่‹นๆžœ็ญ‰
+list_date | str | N | ไธŠๅธ‚ๅผ€ๅง‹ๆ—ฅๆœŸ(ๆ ผๅผYYYYMMDD๏ผŒไปŽๆŸๆ—ฅๅผ€ๅง‹ไปฅๆฅๆ‰€ๆœ‰ๅˆ็บฆ๏ผ‰
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅˆ็บฆไปฃ็ 
+symbol | str | Y | ไบคๆ˜“ๆ ‡่ฏ†
+exchange | str | Y | ไบคๆ˜“ๅธ‚ๅœบ
+name | str | Y | ไธญๆ–‡็ฎ€็งฐ
+fut_code | str | Y | ๅˆ็บฆไบงๅ“ไปฃ็ 
+multiplier | float | Y | ๅˆ็บฆไน˜ๆ•ฐ(ๅช้€‚็”จไบŽๅ›ฝๅ€บๆœŸ่ดงใ€ๆŒ‡ๆ•ฐๆœŸ่ดง)
+trade_unit | str | Y | ไบคๆ˜“่ฎก้‡ๅ•ไฝ
+per_unit | float | Y | ไบคๆ˜“ๅ•ไฝ(ๆฏๆ‰‹)
+quote_unit | str | Y | ๆŠฅไปทๅ•ไฝ
+quote_unit_desc | str | Y | ๆœ€ๅฐๆŠฅไปทๅ•ไฝ่ฏดๆ˜Ž
+d_mode_desc | str | Y | ไบคๅ‰ฒๆ–นๅผ่ฏดๆ˜Ž
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+delist_date | str | Y | ๆœ€ๅŽไบคๆ˜“ๆ—ฅๆœŸ
+d_month | str | Y | ไบคๅ‰ฒๆœˆไปฝ
+last_ddate | str | Y | ๆœ€ๅŽไบคๅ‰ฒๆ—ฅ
+trade_time_desc | str | N | ไบคๆ˜“ๆ—ถ้—ด่ฏดๆ˜Ž
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.fut_basic(exchange='DCE', fut_type='1', fields='ts_code,symbol,name,list_date,delist_date')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code symbol name list_date delist_date
+ 0 P0805.DCE P0805 ๆฃ•ๆฆˆๆฒน0805 20071029 20080516
+ 1 P0806.DCE P0806 ๆฃ•ๆฆˆๆฒน0806 20071029 20080616
+ 2 P0807.DCE P0807 ๆฃ•ๆฆˆๆฒน0807 20071029 20080714
+ 3 P0808.DCE P0808 ๆฃ•ๆฆˆๆฒน0808 20071029 20080814
+ 4 P0811.DCE P0811 ๆฃ•ๆฆˆๆฒน0811 20071115 20081114
+ 5 P0812.DCE P0812 ๆฃ•ๆฆˆๆฒน0812 20071217 20081212
+ 6 P0901.DCE P0901 ๆฃ•ๆฆˆๆฒน0901 20080116 20090116
+ 7 P0903.DCE P0903 ๆฃ•ๆฆˆๆฒน0903 20080317 20090313
+ 8 P0906.DCE P0906 ๆฃ•ๆฆˆๆฒน0906 20080617 20090612
+ 9 P0908.DCE P0908 ๆฃ•ๆฆˆๆฒน0908 20080815 20090814
+ 10 P0911.DCE P0911 ๆฃ•ๆฆˆๆฒน0911 20081117 20091113
+ 11 P1001.DCE P1001 ๆฃ•ๆฆˆๆฒน1001 20090119 20100115
+ 12 P1002.DCE P1002 ๆฃ•ๆฆˆๆฒน1002 20090216 20100212
+ 13 P1003.DCE P1003 ๆฃ•ๆฆˆๆฒน1003 20090316 20100312
+ 14 P1004.DCE P1004 ๆฃ•ๆฆˆๆฒน1004 20090416 20100415
+ 15 Y0607.DCE Y0607 ่ฑ†ๆฒน0607 20060109 20060714
+ 16 Y0611.DCE Y0611 ่ฑ†ๆฒน0611 20060118 20061114
+ 17 Y0612.DCE Y0612 ่ฑ†ๆฒน0612 20060315 20061214
+ 18 Y0701.DCE Y0701 ่ฑ†ๆฒน0701 20060315 20070117
+ 19 Y0708.DCE Y0708 ่ฑ†ๆฒน0708 20060815 20070814
+ 20 Y0709.DCE Y0709 ่ฑ†ๆฒน0709 20060915 20070914
+
+
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..3fa1bc54e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237\350\241\214\346\203\205.md"
@@ -0,0 +1,83 @@
+## ๆœŸ่ดงๅฎžๆ—ถๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšrt_fut_min
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จๅธ‚ๅœบๆœŸ่ดงๅˆ็บฆๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKใ€ http Restful APIๅ’Œwebsocketไธ‰็งๆ–นๅผ๏ผŒๅฆ‚ๆžœ้œ€่ฆไธปๅŠ›ๅˆ็บฆๅˆ†้’Ÿ๏ผŒ่ฏทๅ…ˆ้€š่ฟ‡ไธปๅŠ›[mapping](https://tushare.pro/document/2?doc_id=189)ๆŽฅๅฃ่Žทๅ–ๅฏนๅบ”็š„ๅˆ็บฆไปฃ็ ๅŽๆๅ–ๅˆ†้’Ÿใ€‚
+้™้‡๏ผšๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚500ๆฌก๏ผŒๆ”ฏๆŒๅคšไธชๅˆ็บฆๅŒๆ—ถๆๅ–
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ใ€‚
+
+<br>
+<br>
+
+**rt_fut_min่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g.CU2310.SHF๏ผŒๆ”ฏๆŒๅคšไธชๅˆ็บฆ๏ผˆ้€—ๅทๅˆ†้š”๏ผ‰
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1MIN/5MIN/15MIN/30MIN/60MIN๏ผ‰
+
+<br>
+<br>
+
+<font color="red">ๅŒๆ—ถๆไพ›ๅฝ“ๆ—ฅๅผ€ๅธ‚ไปฅๆฅๆ‰€ๆœ‰ๅކๅฒๅˆ†้’Ÿ๏ผˆๅณ๏ผšๅˆ†้’Ÿๅฟซ็…งๅ›žๆ”พ๏ผ‰๏ผŒๆŽฅๅฃๅ๏ผšrt_fut_min_daily๏ผŒๅชๆ”ฏๆŒไธ€ไธชไธชๅˆ็บฆๆๅ–ใ€‚</font>
+
+**rt_fut_min_daily่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g.CU2310.SHF๏ผŒไป…ๆ”ฏๆŒไธ€ๆฌกไธ€ไธชๅˆ็บฆ็š„ๅ›žๆ”พ
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1MIN/5MIN/15MIN/30MIN/60MIN๏ผ‰
+date_str | str | N | ๅ›žๆ”พๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYY-MM-DD๏ผŒ้ป˜่ฎคไธบไบคๆ˜“ๅฝ“ๆ—ฅ๏ผŒๆ”ฏๆŒๅ›žๆบฏไธ€ๅคฉ๏ผ‰
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1MIN | 1ๅˆ†้’Ÿ
+5MIN | 5ๅˆ†้’Ÿ
+15MIN | 15ๅˆ†้’Ÿ
+30MIN | 30ๅˆ†้’Ÿ
+60MIN | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+code | str | Y | ่‚ก็ฅจไปฃ็ 
+freq | str | Y | ้ข‘ๅบฆ
+time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้‡‘้ข
+oi | float | Y | ๆŒไป“้‡
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#ๅ•ไธชๅˆ็บฆ
+df = pro.df = pro.rt_fut_min(ts_code='CU2501.SHF', freq='1MIN')
+
+#ๅคšไธชๅˆ็บฆ
+df = pro.df = pro.rt_fut_min(ts_code='CU2501.SHF,CU2502.SHF', freq='1MIN')
+
+```
+
+<br>
+
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..6a1c099d7
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,127 @@
+## ๆœŸ่ดงๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšfut_daily๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผšๆœŸ่ดงๆ—ฅ็บฟ่กŒๆƒ…ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๆœชๆฅๅฏ่ƒฝ่ฐƒๆ•ด็งฏๅˆ†๏ผŒ่ฏทๅฐฝ้‡ๅคš็š„็งฏ็ดฏ็งฏๅˆ†ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+ts_code | str | N | ๅˆ็บฆไปฃ็ 
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๅˆ็บฆไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+pre_close | float | Y | ๆ˜จๆ”ถ็›˜ไปท
+pre_settle | float | Y | ๆ˜จ็ป“็ฎ—ไปท
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+settle | float | Y | ็ป“็ฎ—ไปท
+change1 | float | Y | ๆถจ่ทŒ1 ๆ”ถ็›˜ไปท-ๆ˜จ็ป“็ฎ—ไปท
+change2 | float | Y | ๆถจ่ทŒ2 ็ป“็ฎ—ไปท-ๆ˜จ็ป“็ฎ—ไปท
+vol | float | Y | ๆˆไบค้‡(ๆ‰‹)
+amount | float | Y | ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+oi | float | Y | ๆŒไป“้‡(ๆ‰‹)
+oi_chg | float | Y | ๆŒไป“้‡ๅ˜ๅŒ–
+delv_settle | float | N | ไบคๅ‰ฒ็ป“็ฎ—ไปท
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–CU1811ๅˆ็บฆ20180101๏ฝž20181113ๆœŸ้—ด็š„่กŒๆƒ…
+df = pro.fut_daily(ts_code='CU1811.SHF', start_date='20180101', end_date='20181113')
+
+#่Žทๅ–2018ๅนด11ๆœˆ13ๆ—ฅๅคงๅ•†ๆ‰€ๅ…จ้ƒจๅˆ็บฆ่กŒๆƒ…ๆ•ฐๆฎ
+df = pro.fut_daily(trade_date='20181113', exchange='DCE', fields='ts_code,trade_date,pre_close,pre_settle,open,high,low,close,settle,vol')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date pre_close pre_settle open high low \
+ 0 CU1811.SHF 20181113 48900.0 49030.0 48910.0 49040.0 48700.0
+ 1 CU1811.SHF 20181112 49270.0 49340.0 49130.0 49200.0 48860.0
+ 2 CU1811.SHF 20181109 49440.0 49500.0 49340.0 49530.0 49120.0
+ 3 CU1811.SHF 20181108 49470.0 49460.0 49600.0 49680.0 49350.0
+ 4 CU1811.SHF 20181107 49670.0 49630.0 49640.0 49850.0 49260.0
+ 5 CU1811.SHF 20181106 49780.0 49890.0 49800.0 49860.0 49500.0
+ 6 CU1811.SHF 20181105 49820.0 49340.0 49820.0 50290.0 49720.0
+ 7 CU1811.SHF 20181102 48680.0 48720.0 48780.0 49930.0 48750.0
+ 8 CU1811.SHF 20181101 49100.0 49120.0 49050.0 49170.0 48510.0
+ 9 CU1811.SHF 20181031 49650.0 49680.0 49480.0 49480.0 48900.0
+ 10 CU1811.SHF 20181030 49700.0 49830.0 50020.0 50050.0 49530.0
+ 11 CU1811.SHF 20181029 49680.0 49930.0 49680.0 50100.0 49560.0
+ 12 CU1811.SHF 20181026 49750.0 49680.0 49960.0 50300.0 49670.0
+ 13 CU1811.SHF 20181025 50270.0 50090.0 50070.0 50170.0 49350.0
+ 14 CU1811.SHF 20181024 50100.0 50330.0 49920.0 50290.0 49850.0
+ 15 CU1811.SHF 20181023 50540.0 50450.0 50710.0 50780.0 50040.0
+ 16 CU1811.SHF 20181022 50270.0 50080.0 50480.0 50610.0 50250.0
+ 17 CU1811.SHF 20181019 50130.0 50280.0 50000.0 50310.0 49850.0
+ 18 CU1811.SHF 20181018 50290.0 50230.0 50380.0 50560.0 50000.0
+ 19 CU1811.SHF 20181017 50190.0 50510.0 50330.0 50380.0 50030.0
+ 20 CU1811.SHF 20181016 50570.0 50780.0 50780.0 50960.0 50130.0
+
+ close settle change1 change2 vol amount oi \
+ 0 49030.0 48830.0 0.0 -200.0 17270.0 421721.70 16110.0
+ 1 48900.0 49030.0 -440.0 -310.0 27710.0 679447.85 22940.0
+ 2 49270.0 49340.0 -230.0 -160.0 22530.0 555910.15 30100.0
+ 3 49440.0 49500.0 -20.0 40.0 22290.0 551708.00 34800.0
+ 4 49470.0 49460.0 -160.0 -170.0 26850.0 664040.10 38330.0
+ 5 49670.0 49630.0 -220.0 -260.0 21920.0 543949.90 42890.0
+ 6 49780.0 49890.0 440.0 550.0 30430.0 759128.50 46570.0
+ 7 49820.0 49340.0 1100.0 620.0 33220.0 819667.00 50030.0
+ 8 48680.0 48720.0 -440.0 -400.0 34450.0 839294.60 54440.0
+ 9 49100.0 49120.0 -580.0 -560.0 57280.0 1406889.52 56170.0
+ 10 49650.0 49680.0 -180.0 -150.0 55614.0 1381482.82 64048.0
+ 11 49700.0 49830.0 -230.0 -100.0 53786.0 1340288.82 73114.0
+ 12 49680.0 49930.0 0.0 250.0 49496.0 1235819.76 80648.0
+ 13 49750.0 49680.0 -340.0 -410.0 91260.0 2266903.68 84580.0
+ 14 50270.0 50090.0 -60.0 -240.0 94348.0 2363108.67 95734.0
+ 15 50100.0 50330.0 -350.0 -120.0 82700.0 2081209.96 116458.0
+ 16 50540.0 50450.0 460.0 370.0 90744.0 2289330.09 131412.0
+ 17 50270.0 50080.0 -10.0 -200.0 109650.0 2745775.65 140034.0
+ 18 50130.0 50280.0 -100.0 50.0 120742.0 3035613.40 147102.0
+ 19 50290.0 50230.0 -220.0 -280.0 111464.0 2799654.18 160952.0
+ 20 50190.0 50510.0 -590.0 -270.0 149838.0 3784650.23 168606.0
+
+ oi_chg
+ 0 0.0
+ 1 -440.0
+ 2 -230.0
+ 3 -20.0
+ 4 -160.0
+ 5 -220.0
+ 6 440.0
+ 7 1100.0
+ 8 -440.0
+ 9 -580.0
+ 10 -180.0
+ 11 -230.0
+ 12 0.0
+ 13 -340.0
+ 14 -60.0
+ 15 -350.0
+ 16 460.0
+ 17 -10.0
+ 18 -100.0
+ 19 -220.0
+ 20 -590.0
+
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\345\212\233\344\270\216\350\277\236\347\273\255\345\220\210\347\272\246.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\345\212\233\344\270\216\350\277\236\347\273\255\345\220\210\347\272\246.md"
new file mode 100644
index 000000000..700d5c8b9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\345\212\233\344\270\216\350\277\236\347\273\255\345\220\210\347\272\246.md"
@@ -0,0 +1,75 @@
+## ๆœŸ่ดงไธปๅŠ›ไธŽ่ฟž็ปญๅˆ็บฆ
+----
+
+ๆŽฅๅฃ๏ผšfut_mapping
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœŸ่ดงไธปๅŠ›๏ผˆๆˆ–่ฟž็ปญ๏ผ‰ๅˆ็บฆไธŽๆœˆๅˆ็บฆๆ˜ ๅฐ„ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๆœชๆฅๅฏ่ƒฝ่ฐƒๆ•ด็งฏๅˆ†๏ผŒ่ฏทๅฐฝๅฏ่ƒฝๅคš็งฏ็ดฏ็งฏๅˆ†ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅˆ็บฆไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่ฟž็ปญๅˆ็บฆไปฃ็ 
+trade_date | str | Y | ่ตทๅง‹ๆ—ฅๆœŸ
+mapping_ts_code | str | Y | ๆœŸ่ดงๅˆ็บฆไปฃ็ 
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ไธปๅŠ›ๅˆ็บฆTF.CFXๆฏๆ—ฅๅฏนๅบ”็š„ๆœˆๅˆ็บฆ
+df = pro.fut_mapping(ts_code='TF.CFX')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date mapping_ts_code
+ 0 TF.CFX 20190823 TF1912.CFX
+ 1 TF.CFX 20190822 TF1912.CFX
+ 2 TF.CFX 20190821 TF1912.CFX
+ 3 TF.CFX 20190820 TF1912.CFX
+ 4 TF.CFX 20190819 TF1912.CFX
+ 5 TF.CFX 20190816 TF1912.CFX
+ 6 TF.CFX 20190815 TF1912.CFX
+ 7 TF.CFX 20190814 TF1912.CFX
+ 8 TF.CFX 20190813 TF1912.CFX
+ 9 TF.CFX 20190812 TF1909.CFX
+ 10 TF.CFX 20190809 TF1909.CFX
+ 11 TF.CFX 20190808 TF1909.CFX
+ 12 TF.CFX 20190807 TF1909.CFX
+ 13 TF.CFX 20190806 TF1909.CFX
+ 14 TF.CFX 20190805 TF1909.CFX
+ 15 TF.CFX 20190802 TF1909.CFX
+ 16 TF.CFX 20190801 TF1909.CFX
+ 17 TF.CFX 20190731 TF1909.CFX
+ 18 TF.CFX 20190730 TF1909.CFX
+ 19 TF.CFX 20190729 TF1909.CFX
+ 20 TF.CFX 20190726 TF1909.CFX
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\350\246\201\345\223\201\347\247\215\344\272\244\346\230\223\345\221\250\346\212\245.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\350\246\201\345\223\201\347\247\215\344\272\244\346\230\223\345\221\250\346\212\245.md"
new file mode 100644
index 000000000..b85734527
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\344\270\273\350\246\201\345\223\201\347\247\215\344\272\244\346\230\223\345\221\250\346\212\245.md"
@@ -0,0 +1,139 @@
+## ๆœŸ่ดงไธป่ฆๅ“็งไบคๆ˜“ๅ‘จๆŠฅ
+----
+
+ๆŽฅๅฃ๏ผšfut_weekly_detail
+ๆ่ฟฐ๏ผš่Žทๅ–ๆœŸ่ดงไบคๆ˜“ๆ‰€ไธป่ฆๅ“็งๆฏๅ‘จไบคๆ˜“็ปŸ่ฎกไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2010ๅนด3ๆœˆๅผ€ๅง‹
+ๆƒ้™๏ผš600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ•ๆฌกๆœ€ๅคง่Žทๅ–4000่กŒๆ•ฐๆฎ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜้ข‘ๆฌก่ถŠ้ซ˜๏ผŒ5000็งฏๅˆ†ไปฅไธŠๆญฃๅธธ่ฐƒๅ–ไธๅ—้™ๅˆถ
+ๆ•ฐๆฎๆฅๆบ๏ผšไธญๅ›ฝ่ฏ็›‘ไผš๏ผŒๆœฌๆ•ฐๆฎ็”ฑTushare็คพๅŒบๆˆๅ‘˜CEๅฎŒๆˆ่ง„ๅˆ’ๅ’Œ้‡‡้›†
+
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+week | str | N | ๅ‘จๆœŸ๏ผˆๆฏๅนด็ฌฌๅ‡ ๅ‘จ๏ผŒe.g. 202001 ่กจ็คบ2020็ฌฌ1ๅ‘จ๏ผ‰
+prd | str | N | ๆœŸ่ดงๅ“็ง๏ผˆๆ”ฏๆŒๅคšๅ“็ง่พ“ๅ…ฅ๏ผŒ้€—ๅทๅˆ†้š”๏ผ‰
+start_week | str | N | ๅผ€ๅง‹ๅ‘จๆœŸ
+end_week | str | N | ็ป“ๆŸๅ‘จๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆ่ฏทๅ‚่€ƒ[ไบคๆ˜“ๆ‰€่ฏดๆ˜Ž]( https://tushare.pro/document/2?doc_id=134)๏ผ‰
+fields | str | N | ๆๅ–็š„ๅญ—ๆฎต๏ผŒe.g. fields='prd,name,vol'
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+exchange | str | Y | ไบคๆ˜“ๆ‰€ไปฃ็ 
+prd | str | Y | ๆœŸ่ดงๅ“็งไปฃ็ 
+name | str | Y | ๅ“็งๅ็งฐ
+vol | int | Y | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+vol_yoy | float | Y | ๅŒๆฏ”ๅขžๅ‡๏ผˆ%๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+amout_yoy | float | Y | ๅŒๆฏ”ๅขžๅ‡๏ผˆ%๏ผ‰
+cumvol | int | Y | ๅนด็ดฏ่ฎกๆˆไบคๆ€ป้‡๏ผˆๆ‰‹๏ผ‰
+cumvol_yoy | float | Y | ๅŒๆฏ”ๅขžๅ‡๏ผˆ%๏ผ‰
+cumamt | float | Y | ๅนด็ดฏ่ฎกๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+cumamt_yoy | float | Y | ๅŒๆฏ”ๅขžๅ‡๏ผˆ%๏ผ‰
+open_interest | int | Y | ๆŒไป“้‡๏ผˆๆ‰‹๏ผ‰
+interest_wow | float | Y | ็Žฏๆฏ”ๅขžๅ‡๏ผˆ%๏ผ‰
+mc_close | float | Y | ๆœฌๅ‘จไธปๅŠ›ๅˆ็บฆๆ”ถ็›˜ไปท
+close_wow | float | Y | ็Žฏๆฏ”ๆถจ่ทŒ๏ผˆ%๏ผ‰
+week | str | Y | ๅ‘จๆœŸ
+week_date | str | Y | ๅ‘จๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆœŸ่ดง้“œๆฏๅ‘จไบคๆ˜“็ปŸ่ฎกไฟกๆฏ
+df = pro.fut_weekly_detail(prd='CU')
+
+#่Žทๅ–ๆœŸ่ดง้“œๆฏๅ‘จไบคๆ˜“็ปŸ่ฎกไฟกๆฏ
+df = pro.fut_weekly_detail(prd='CU', start_week='202001', end_week='202003', fields='prd,name,vol,amount')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ exchange prd name vol vol_yoy amount amout_yoy cumvol \
+ 0 SHFE CU ้“œ 1078970.0 5.9664 2363.843445 -5.7003 6848849
+ 1 SHFE CU ้“œ 719180.0 -39.2551 1629.243739 -44.6199 5769879
+ 2 SHFE CU ้“œ 853051.0 -18.3270 1939.496318 -25.9779 5050699
+ 3 SHFE CU ้“œ 631162.0 -31.7424 1461.354730 -35.9592 4197648
+ 4 SHFE CU ้“œ 578056.0 -9.3746 1322.589156 -14.0750 3566486
+ 5 SHFE CU ้“œ 730785.0 -6.5397 1660.914895 -11.1342 2988430
+ 6 SHFE CU ้“œ 527482.0 -26.9089 1282.416054 -25.2899 2257645
+ 7 SHFE CU ้“œ 705489.0 -23.1581 1734.699836 -19.9661 1730163
+ 8 SHFE CU ้“œ 708250.0 -26.6082 1729.664611 -24.3423 1024674
+ 9 SHFE CU ้“œ 658216.0 -14.7655 1621.641588 -10.9408 36830247
+ 10 SHFE CU ้“œ 1044471.0 1.0854 2620.159590 -4.1661 6765968
+ 11 SHFE CU ้“œ 924676.0 142.4229 2281.911847 123.2715 5721497
+ 12 SHFE CU ้“œ 637852.0 12.2380 1539.237496 4.3256 4796821
+ 13 SHFE CU ้“œ 744155.0 -16.7387 1840.043986 -14.4320 36172031
+ 14 SHFE CU ้“œ 853989.0 -7.5109 2097.493940 -6.3866 35427876
+ 15 SHFE CU ้“œ 1198852.0 62.8039 2915.899164 61.1575 34573887
+ 16 SHFE CU ้“œ 781920.0 -21.2678 1869.015441 -29.4290 4158969
+ 17 SHFE CU ้“œ 534402.0 -45.4224 1260.985602 -48.0350 33375035
+ 18 SHFE CU ้“œ 548735.0 -52.4718 1296.078577 -54.3935 32840633
+ 19 SHFE CU ้“œ 509696.0 -46.3713 1197.544717 -49.1703 32291898
+ 20 SHFE CU ้“œ 598537.0 -35.6818 1408.258269 -38.4052 31782202
+
+ cumvol_yoy cumamt cumamt_yoy open_interest interest_wow \
+ 0 -23.6312 15901.272297 -26.8907 404849 5.4921
+ 1 -27.4220 13537.428852 -29.6511 383772 4.0396
+ 2 -25.3514 11908.185114 -26.9496 368871 3.2304
+ 3 -26.6337 9968.688796 -27.1357 357328 1.4024
+ 4 -25.6490 8507.334067 -25.3694 352386 11.7232
+ 5 -28.1449 7184.744911 -27.1326 315410 16.4089
+ 6 -33.1474 5523.830016 -30.8745 270950 -8.5351
+ 7 -34.8429 4241.413962 -32.4022 296234 -2.5203
+ 8 -41.0180 2506.714126 -38.9653 303893 3.5125
+ 9 -29.1989 88012.598030 -33.1154 293581 -11.9243
+ 10 -15.0339 16301.336253 -23.4456 335685 1.0746
+ 11 -17.4373 13681.176663 -26.2857 332116 8.1808
+ 12 -26.7487 11399.264817 -35.0014 307001 5.9925
+ 13 -29.4164 86390.956443 -33.4266 333328 9.7672
+ 14 -29.6414 84550.912457 -33.7467 303668 -0.8305
+ 15 -30.0548 82453.418517 -34.2356 306211 18.2994
+ 16 -9.9760 9860.027321 -21.0060 289644 -3.5256
+ 17 -31.4591 79537.519353 -35.6324 258844 0.1846
+ 18 -31.1725 78276.533751 -35.3840 258367 -4.1665
+ 19 -30.6444 76980.455175 -34.9273 269600 -0.1237
+ 20 -30.3166 75782.910458 -34.6379 269934 2.0379
+
+ mc_close close_wow week week_date
+ 0 43520.0 -3.2028 202011 20200313
+ 1 44900.0 0.2008 202010 20200306
+ 2 44390.0 -3.9177 202009 20200228
+ 3 45990.0 -0.1303 202008 20200221
+ 4 45930.0 0.4593 202007 20200214
+ 5 45690.0 -5.1287 202006 20200207
+ 6 48020.0 -2.6556 202004 20200124
+ 7 49250.0 0.6334 202003 20200117
+ 8 49010.0 -0.1223 202002 20200110
+ 9 48900.0 -1.8269 202001 20200103
+ 10 50500.0 1.5892 20199 20190301
+ 11 49920.0 3.2472 20198 20190222
+ 12 48200.0 -0.0829 20197 20190215
+ 13 49730.0 1.0156 201952 20191227
+ 14 49030.0 -0.0204 201951 20191220
+ 15 49010.0 3.4621 201950 20191213
+ 16 48270.0 2.0507 20195 20190201
+ 17 47320.0 0.0846 201949 20191206
+ 18 47320.0 0.8955 201948 20191129
+ 19 46870.0 0.0000 201947 20191122
+ 20 46930.0 -1.0959 201946 20191115
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\220\210\347\272\246\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\220\210\347\272\246\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md"
new file mode 100644
index 000000000..2983036bb
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\220\210\347\272\246\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md"
@@ -0,0 +1,75 @@
+## ๆœŸ่ดงๅˆ็บฆๆถจ่ทŒๅœไปทๆ ผ๏ผˆ็›˜ๅ‰๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšft_limit
+ๆ่ฟฐ๏ผš่Žทๅ–ๆ‰€ๆœ‰ๆœŸ่ดงๅˆ็บฆๆฏๅคฉ็š„ๆถจ่ทŒๅœไปทๆ ผๅŠๆœ€ไฝŽไฟ่ฏ้‡‘็އ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2005ๅนดใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่Žทๅ–4000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆ—ฅๆœŸใ€ๅˆ็บฆไปฃ็ ็ญ‰ๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๅކๅฒ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ5000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ็งฏๅˆ†่Žทๅ–ๆ–นๆณ•ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅˆ็บฆไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+cont | str | N | ๅˆ็บฆไปฃ็ ๏ผˆไพ‹ๅฆ‚๏ผšcont='CU')
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็  ๏ผˆไพ‹ๅฆ‚๏ผšexchange='DCE')
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+name | str | Y | ๅˆ็บฆๅ็งฐ
+up_limit | float | Y | ๆถจๅœไปท
+down_limit | float | Y | ่ทŒๅœไปท
+m_ratio | float | Y | ๆœ€ไฝŽไบคๆ˜“ไฟ่ฏ้‡‘็އ๏ผˆ%๏ผ‰
+cont | str | Y | ๅˆ็บฆไปฃ็ 
+exchange | str | Y | ไบคๆ˜“ๆ‰€ไปฃ็ 
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจๆœŸ่ดงๅˆ็บฆๆถจ่ทŒๅœไปทๆ ผ
+df = pro.ft_limit(trade_date='20250213')
+
+#่Žทๅ–ๅ•ไธชๅ“็งๆ‰€ๆœ‰ๅˆ็บฆๆถจ่ทŒๅœไปทๆ ผ
+df = pro.ft_limit(cont='CU')
+
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name up_limit down_limit m_ratio cont exchange
+ 0 20250213 A2503.DCE ่ฟž่ฑ†ไธ€2503 4229.000 3751.000 7.000 A DCE
+ 1 20250213 A2505.DCE ่ฟž่ฑ†ไธ€2505 4249.000 3769.000 7.000 A DCE
+ 2 20250213 A2507.DCE ่ฟž่ฑ†ไธ€2507 4258.000 3776.000 7.000 A DCE
+ 3 20250213 A2509.DCE ่ฟž่ฑ†ไธ€2509 4268.000 3786.000 7.000 A DCE
+ 4 20250213 A2511.DCE ่ฟž่ฑ†ไธ€2511 4234.000 3756.000 7.000 A DCE
+ .. ... ... ... ... ... ... ... ...
+ 783 20250213 ZN2509.SHF ๆฒช้”Œ2509 24890.000 21635.000 9.000 ZN SHFE
+ 784 20250213 ZN2510.SHF ๆฒช้”Œ2510 24885.000 21630.000 9.000 ZN SHFE
+ 785 20250213 ZN2511.SHF ๆฒช้”Œ2511 24780.000 21535.000 9.000 ZN SHFE
+ 786 20250213 ZN2512.SHF ๆฒช้”Œ2512 24700.000 21465.000 9.000 ZN SHFE
+ 787 20250213 ZN2601.SHF ๆฒช้”Œ2601 24710.000 21475.000 9.000 ZN SHFE
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
new file mode 100644
index 000000000..07e2141ac
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\234\237\350\264\247\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
@@ -0,0 +1,42 @@
+## ๆœŸ่ดงๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)
+----
+
+ๆŽฅๅฃ๏ผšfut_weekly_monthly
+ๆ่ฟฐ๏ผšๆœŸ่ดงๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ไบคๆ˜“ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸไบคๆ˜“ๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އweekๅ‘จ๏ผŒmonthๆœˆ
+exchange | str | N | ไบคๆ˜“ๆ‰€
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆœŸ่ดงไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆฏๅ‘จไบ”ๆˆ–่€…ๆœˆๆœซๆ—ฅๆœŸ๏ผ‰
+end_date | str | Y | ่ฎก็ฎ—ๆˆช่‡ณๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އ(ๅ‘จweek,ๆœˆmonth)
+open | float | Y | (ๅ‘จ/ๆœˆ)ๅผ€็›˜ไปท
+high | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€้ซ˜ไปท
+low | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€ไฝŽไปท
+close | float | Y | (ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+pre_close | float | Y | ๅ‰ไธ€(ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+settle | float | Y | (ๅ‘จ/ๆœˆ)็ป“็ฎ—ไปท
+pre_settle | float | Y | ๅ‰ไธ€(ๅ‘จ/ๆœˆ)็ป“็ฎ—ไปท
+vol | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้‡(ๆ‰‹)
+amount | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้‡‘้ข(ไธ‡ๅ…ƒ)
+oi | float | Y | (ๅ‘จ/ๆœˆ)ๆŒไป“้‡(ๆ‰‹)
+oi_chg | float | Y | (ๅ‘จ/ๆœˆ)ๆŒไป“้‡ๅ˜ๅŒ–
+exchange | str | Y | ไบคๆ˜“ๆ‰€
+change1 | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒ1 ๆ”ถ็›˜ไปท-ๆ˜จ็ป“็ฎ—ไปท
+change2 | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒ2 ็ป“็ฎ—ไปท-ๆ˜จ็ป“็ฎ—ไปท
+
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\201\344\273\223\346\216\222\345\220\215.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\201\344\273\223\346\216\222\345\220\215.md"
new file mode 100644
index 000000000..d9ea6f9db
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\201\344\273\223\346\216\222\345\220\215.md"
@@ -0,0 +1,92 @@
+## ๆฏๆ—ฅๆˆไบคๆŒไป“ๆŽ’ๅ
+----
+
+ๆŽฅๅฃ๏ผšfut_holding
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๆ—ฅๆˆไบคๆŒไป“ๆŽ’ๅๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆtrade_date/symbol่‡ณๅฐ‘่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ๏ผ‰
+symbol | str | N | ๅˆ็บฆๆˆ–ไบงๅ“ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+symbol | str | Y | ๅˆ็บฆไปฃ็ ๆˆ–็ฑปๅž‹
+broker | str | Y | ๆœŸ่ดงๅ…ฌๅธไผšๅ‘˜็ฎ€็งฐ
+vol | int | Y | ๆˆไบค้‡
+vol_chg | int | Y | ๆˆไบค้‡ๅ˜ๅŒ–
+long_hld | int | Y | ๆŒไนฐไป“้‡
+long_chg | int | Y | ๆŒไนฐไป“้‡ๅ˜ๅŒ–
+short_hld | int | Y | ๆŒๅ–ไป“้‡
+short_chg | int | Y | ๆŒๅ–ไป“้‡ๅ˜ๅŒ–
+exchange | str | N | ไบคๆ˜“ๆ‰€
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fut_holding(trade_date='20181113', symbol='C1905', exchange='DCE')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date symbol broker vol vol_chg long_hld long_chg \
+ 0 20181113 C ไธœ่ฏๆœŸ่ดง 37161.0 -6435.0 15432.0 1837.0
+ 1 20181113 C ไธญไฟกๅปบๆŠ• 12293.0 -1737.0 NaN NaN
+ 2 20181113 C ไธญไฟกๆœŸ่ดง 31284.0 -4508.0 31672.0 102.0
+ 3 20181113 C ไธญ็ฒฎๆœŸ่ดง 12331.0 -5430.0 45350.0 3705.0
+ 4 20181113 C ไธญ่žๆฑ‡ไฟก NaN NaN NaN NaN
+ 5 20181113 C ไธญ้‡‘ๆœŸ่ดง NaN NaN 18321.0 1491.0
+ 6 20181113 C ไบ”็Ÿฟ็ปๆ˜“ NaN NaN 17828.0 1729.0
+ 7 20181113 C ๅ€็‰นๆœŸ่ดง NaN NaN 15271.0 123.0
+ 8 20181113 C ๅ…‰ๅคงๆœŸ่ดง 72795.0 -29668.0 36988.0 752.0
+ 9 20181113 C ๅ…ด่ฏๆœŸ่ดง 21058.0 -4901.0 24372.0 -8720.0
+ 10 20181113 C ๅŒ—ไบฌ้ฆ–ๅˆ› NaN NaN NaN NaN
+ 11 20181113 C ๅŽๅฎ‰ๆœŸ่ดง 12550.0 -919.0 NaN NaN
+ 12 20181113 C ๅŽๆณฐๆœŸ่ดง 16339.0 4783.0 30374.0 -806.0
+ 13 20181113 C ๅ›ฝๅฏŒๆœŸ่ดง NaN NaN NaN NaN
+ 14 20181113 C ๅ›ฝๆŠ•ๅฎ‰ไฟก 49251.0 -43610.0 84537.0 4253.0
+ 15 20181113 C ๅ›ฝๆณฐๅ›ๅฎ‰ 13095.0 -3810.0 16019.0 88.0
+ 16 20181113 C ๅคฉ้ฃŽๆœŸ่ดง NaN NaN NaN NaN
+ 17 20181113 C ๅฎ‰็ฒฎๆœŸ่ดง NaN NaN 15294.0 1651.0
+ 18 20181113 C ๅฑฑ่ฅฟไธ‰็ซ‹ NaN NaN 14686.0 457.0
+ 19 20181113 C ๅนฟๅ‘ๆœŸ่ดง 15539.0 -10927.0 NaN NaN
+ 20 20181113 C ๅนฟๅทž้‡‘ๆŽง 11303.0 1810.0 NaN NaN
+
+ short_hld short_chg
+ 0 14281.0 -384.0
+ 1 NaN NaN
+ 2 15634.0 -6336.0
+ 3 70184.0 -2658.0
+ 4 12279.0 467.0
+ 5 NaN NaN
+ 6 NaN NaN
+ 7 NaN NaN
+ 8 42506.0 -279.0
+ 9 NaN NaN
+ 10 11456.0 -4974.0
+ 11 NaN NaN
+ 12 NaN NaN
+ 13 10935.0 288.0
+ 14 105797.0 7326.0
+ 15 15811.0 -1489.0
+ 16 33336.0 567.0
+ 17 NaN NaN
+ 18 NaN NaN
+ 19 NaN NaN
+ 20 NaN NaN
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\347\273\223\347\256\227\345\217\202\346\225\260.md" "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\347\273\223\347\256\227\345\217\202\346\225\260.md"
new file mode 100644
index 000000000..5bf349936
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\234\237\350\264\247\346\225\260\346\215\256/\346\257\217\346\227\245\347\273\223\347\256\227\345\217\202\346\225\260.md"
@@ -0,0 +1,117 @@
+## ็ป“็ฎ—ๅ‚ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšfut_settle
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๆ—ฅ็ป“็ฎ—ๅ‚ๆ•ฐๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌไบคๆ˜“ๅ’Œไบคๅ‰ฒ่ดน็އ็ญ‰
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่ฟ”ๅ›ž1600่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆtrade_date/ts_code่‡ณๅฐ‘้œ€่ฆ่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ๏ผ‰
+ts_code | str | N | ๅˆ็บฆไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅˆ็บฆไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+settle | float | Y | ็ป“็ฎ—ไปท
+trading_fee_rate | float | Y | ไบคๆ˜“ๆ‰‹็ปญ่ดน็އ
+trading_fee | float | Y | ไบคๆ˜“ๆ‰‹็ปญ่ดน
+delivery_fee | float | Y | ไบคๅ‰ฒๆ‰‹็ปญ่ดน
+b_hedging_margin_rate | float | Y | ไนฐๅฅ—ไฟไบคๆ˜“ไฟ่ฏ้‡‘็އ
+s_hedging_margin_rate | float | Y | ๅ–ๅฅ—ไฟไบคๆ˜“ไฟ่ฏ้‡‘็އ
+long_margin_rate | float | Y | ไนฐๆŠ•ๆœบไบคๆ˜“ไฟ่ฏ้‡‘็އ
+short_margin_rate | float | Y | ๅ–ๆŠ•ๆœบไบคๆ˜“ไฟ่ฏ้‡‘็އ
+offset_today_fee | float | N | ๅนณไปŠไป“ๆ‰‹็ปญ็އ
+exchange | str | N | ไบคๆ˜“ๆ‰€
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+df = pro.fut_settle(trade_date='20181114', exchange='SHFE')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date settle trading_fee_rate trading_fee \
+ 0 CU1811.SHF 20181114 48840.00 0.050 0.0
+ 1 CU1812.SHF 20181114 48990.00 0.050 0.0
+ 2 CU1901.SHF 20181114 48980.00 0.050 0.0
+ 3 CU1902.SHF 20181114 48980.00 0.050 0.0
+ 4 CU1903.SHF 20181114 49020.00 0.050 0.0
+ 5 CU1904.SHF 20181114 49040.00 0.050 0.0
+ 6 CU1905.SHF 20181114 49150.00 0.050 0.0
+ 7 CU1906.SHF 20181114 49260.00 0.050 0.0
+ 8 CU1907.SHF 20181114 49200.00 0.050 0.0
+ 9 CU1908.SHF 20181114 49370.00 0.050 0.0
+ 10 CU1909.SHF 20181114 49350.00 0.050 0.0
+ 11 CU1910.SHF 20181114 49490.00 0.050 0.0
+ 12 AL1811.SHF 20181114 13695.00 0.000 3.0
+ 13 AL1812.SHF 20181114 13770.00 0.000 3.0
+ 14 AL1901.SHF 20181114 13775.00 0.000 3.0
+ 15 AL1902.SHF 20181114 13810.00 0.000 3.0
+ 16 AL1903.SHF 20181114 13860.00 0.000 3.0
+ 17 AL1904.SHF 20181114 13905.00 0.000 3.0
+ 18 AL1905.SHF 20181114 13950.00 0.000 3.0
+ 19 AL1906.SHF 20181114 13965.00 0.000 3.0
+ 20 AL1907.SHF 20181114 14015.00 0.000 3.0
+
+ delivery_fee b_hedging_margin_rate s_hedging_margin_rate \
+ 0 2.00 0.20 0.20
+ 1 2.00 0.10 0.10
+ 2 2.00 0.07 0.07
+ 3 2.00 0.07 0.07
+ 4 2.00 0.07 0.07
+ 5 2.00 0.07 0.07
+ 6 2.00 0.07 0.07
+ 7 2.00 0.07 0.07
+ 8 2.00 0.07 0.07
+ 9 2.00 0.07 0.07
+ 10 2.00 0.07 0.07
+ 11 2.00 0.07 0.07
+ 12 2.00 0.20 0.20
+ 13 2.00 0.10 0.10
+ 14 2.00 0.07 0.07
+ 15 2.00 0.07 0.07
+ 16 2.00 0.07 0.07
+ 17 2.00 0.07 0.07
+ 18 2.00 0.07 0.07
+ 19 2.00 0.07 0.07
+ 20 2.00 0.07 0.07
+
+ long_margin_rate short_margin_rate
+ 0 0.20 0.20
+ 1 0.10 0.10
+ 2 0.07 0.07
+ 3 0.07 0.07
+ 4 0.07 0.07
+ 5 0.07 0.07
+ 6 0.07 0.07
+ 7 0.07 0.07
+ 8 0.07 0.07
+ 9 0.07 0.07
+ 10 0.07 0.07
+ 11 0.07 0.07
+ 12 0.20 0.20
+ 13 0.10 0.10
+ 14 0.07 0.07
+ 15 0.07 0.07
+ 16 0.07 0.07
+ 17 0.07 0.07
+ 18 0.07 0.07
+ 19 0.07 0.07
+ 20 0.07 0.07
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md"
new file mode 100644
index 000000000..791c0966d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md"
@@ -0,0 +1,62 @@
+## ๆธฏ่‚กไบคๆ˜“ๆ—ฅๅކ
+----
+
+ๆŽฅๅฃ๏ผšhk_tradecal
+ๆ่ฟฐ๏ผš่Žทๅ–ไบคๆ˜“ๆ—ฅๅކ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ2000็งฏๅˆ†ๆ‰ๅฏ่ฐƒๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+is_open | str | N | ๆ˜ฏๅฆไบคๆ˜“ &#39;0&#39;ไผ‘ๅธ‚ &#39;1&#39;ไบคๆ˜“
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+cal_date | str | Y | ๆ—ฅๅކๆ—ฅๆœŸ
+is_open | int | Y | ๆ˜ฏๅฆไบคๆ˜“ &#39;0&#39;ไผ‘ๅธ‚ &#39;1&#39;ไบคๆ˜“
+pretrade_date | str | Y | ไธŠไธ€ไธชไบคๆ˜“ๆ—ฅ
+
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.hk_tradecal(start_date='20200101', end_date='20200708')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ cal_date is_open pretrade_date
+ 0 20200708 1 20200707
+ 1 20200707 1 20200706
+ 2 20200706 1 20200703
+ 3 20200705 0 20200702
+ 4 20200704 0 20200702
+ 5 20200703 1 20200702
+ 6 20200702 1 20200630
+ 7 20200701 0 20200629
+
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\206\351\222\237\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\206\351\222\237\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..05863c4fc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\206\351\222\237\350\241\214\346\203\205.md"
@@ -0,0 +1,83 @@
+## ๆธฏ่‚กๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšhk_mins
+ๆ่ฟฐ๏ผšๆธฏ่‚กๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๅ’Œๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš120็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–2ๆฌกๆŽฅๅฃๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g.00001.HK
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2023-03-13 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2023-03-13 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้‡‘้ข
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.hk_mins(ts_code='00001.HK', freq='1min', start_date='2023-03-13 09:00:00', end_date='2023-03-13 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_time open close high low vol amount
+ 0 00001.HK 2023-03-13 16:10:00 48.80 48.75 48.80 48.75 375500.0 18305625.0
+ 1 00001.HK 2023-03-13 16:00:00 48.80 48.80 48.85 48.75 12000.0 585575.0
+ 2 00001.HK 2023-03-13 15:59:00 48.80 48.80 48.80 48.75 12500.0 609825.0
+ 3 00001.HK 2023-03-13 15:58:00 48.85 48.80 48.85 48.75 9500.0 463725.0
+ 4 00001.HK 2023-03-13 15:57:00 48.80 48.80 48.85 48.75 24000.0 1171450.0
+ .. ... ... ... ... ... ... ... ...
+ 327 00001.HK 2023-03-13 09:34:00 47.40 47.35 47.45 47.35 17000.0 805975.0
+ 328 00001.HK 2023-03-13 09:33:00 47.55 47.40 47.55 47.40 11000.0 521725.0
+ 329 00001.HK 2023-03-13 09:32:00 47.60 47.55 47.70 47.50 52500.0 2497550.0
+ 330 00001.HK 2023-03-13 09:31:00 47.30 47.60 47.60 47.30 44229.0 2097256.7
+ 331 00001.HK 2023-03-13 09:30:00 47.30 47.30 47.30 47.30 469900.0 22298550.0
+
+
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\251\346\266\246\350\241\250.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\251\346\266\246\350\241\250.md"
new file mode 100644
index 000000000..bb6721310
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\210\251\346\266\246\350\241\250.md"
@@ -0,0 +1,85 @@
+## ๆธฏ่‚กๅˆฉๆถฆ่กจ
+----
+
+ๆŽฅๅฃ๏ผšhk_income๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ๏ผˆๅฆ‚๏ผš่ฅไธš้ข๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจ็š„2024ๅนดๅบฆๅˆฉๆถฆ่กจๆ•ฐๆฎ
+df = pro.hk_income(ts_code='00700.HK', period='20241231')
+
+#่Žทๅ–่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจๅˆฉๆถฆ่กจๅކๅนด่ฅไธš้ขๆ•ฐๆฎ
+df = pro.hk_income(ts_code='00700.HK', ind_name='่ฅไธš้ข')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date name ind_name ind_value
+ 0 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ฅไธš้ข 6.524980e+11
+ 1 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ…ถไป–ๅ…จ้ขๆ”ถ็›Šๅ…ถไป–้กน็›ฎ 8.787500e+10
+ 2 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ฅ่ฟๆ”ถๅ…ฅ 6.602570e+11
+ 3 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ฅ่ฟๆ”ฏๅ‡บ 3.110110e+11
+ 4 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆฏ›ๅˆฉ 3.492460e+11
+ 5 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ…ถไป–ๆ”ถ็›Š 8.002000e+09
+ 6 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้”€ๅ”ฎๅŠๅˆ†้”€่ดน็”จ 3.638800e+10
+ 7 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ…ถไป–่ฅไธšๆ”ถๅ…ฅ 7.759000e+09
+ 8 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ็ป่ฅๆบขๅˆฉ 2.080990e+11
+ 9 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅˆฉๆฏๆ”ถๅ…ฅ 1.600400e+10
+ 10 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ž่ต„ๆˆๆœฌ 1.198100e+10
+ 11 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅบ”ๅ ่”่ฅๅ…ฌๅธๆบขๅˆฉ 2.517600e+10
+ 12 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆบขๅˆฉๅ…ถไป–้กน็›ฎ 4.187000e+09
+ 13 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้™ค็จŽๅ‰ๆบขๅˆฉ 2.414850e+11
+ 14 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ็จŽ้กน 4.501800e+10
+ 15 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆŒ็ปญ็ป่ฅไธšๅŠก็จŽๅŽๅˆฉๆถฆ 1.964670e+11
+ 16 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้™ค็จŽๅŽๆบขๅˆฉ 1.964670e+11
+ 17 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š 2.394000e+09
+ 18 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่‚กไธœๅบ”ๅ ๆบขๅˆฉ 1.940730e+11
+ 19 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆฏ่‚กๅŸบๆœฌ็›ˆๅˆฉ 2.094000e+01
+ 20 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆฏ่‚กๆ‘Š่–„็›ˆๅˆฉ 2.049000e+01
+ 21 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้ž่ฟ็ฎ—้กน็›ฎ -3.110110e+11
+ 22 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ…ถไป–ๅ…จ้ขๆ”ถ็›Š 8.787500e+10
+ 23 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ…จ้ขๆ”ถ็›Šๆ€ป้ข 2.843420e+11
+ 24 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้žๆŽง่‚กๆƒ็›Šๅบ”ๅ ๅ…จ้ขๆ”ถ็›Šๆ€ป้ข 5.333000e+09
+ 25 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆœฌๅ…ฌๅธๆ‹ฅๆœ‰ไบบๅบ”ๅ ๅ…จ้ขๆ”ถ็›Šๆ€ป้ข 2.790090e+11
+ 26 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่กŒๆ”ฟๅผ€ๆ”ฏ 1.127610e+11
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..f91bfa753
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md"
@@ -0,0 +1,84 @@
+## ๆธฏ่‚กๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšhk_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กๅˆ—่กจไฟกๆฏ
+ๆ•ฐ้‡๏ผšๅ•ๆฌกๅฏๆๅ–ๅ…จ้ƒจๅœจไบคๆ˜“็š„ๆธฏ่‚กๅˆ—่กจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+list_status | str | N | ไธŠๅธ‚็Šถๆ€ LไธŠๅธ‚ D้€€ๅธ‚ Pๆš‚ๅœไธŠๅธ‚ ๏ผŒ้ป˜่ฎคL
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y |
+name | str | Y | ่‚ก็ฅจ็ฎ€็งฐ
+fullname | str | Y | ๅ…ฌๅธๅ…จ็งฐ
+enname | str | Y | ่‹ฑๆ–‡ๅ็งฐ
+cn_spell | str | Y | ๆ‹ผ้Ÿณ
+market | str | Y | ๅธ‚ๅœบ็ฑปๅˆซ
+list_status | str | Y | ไธŠๅธ‚็Šถๆ€
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+delist_date | str | Y | ้€€ๅธ‚ๆ—ฅๆœŸ
+trade_unit | float | Y | ไบคๆ˜“ๅ•ไฝ
+isin | str | Y | ISINไปฃ็ 
+curr_type | str | Y | ่ดงๅธไปฃ็ 
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ…จ้ƒจๅฏไบคๆ˜“่‚ก็ฅจๅŸบ็ก€ไฟกๆฏ
+df = pro.hk_basic()
+
+#่Žทๅ–ๅ…จ้ƒจ้€€ๅธ‚่‚ก็ฅจๅŸบ็ก€ไฟกๆฏ
+df = pro.hk_basic(list_status='D')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name ... isin curr_type
+ 0 00001.HK ้•ฟๅ’Œ ... KYG217651051 HKD
+ 1 00002.HK ไธญ็”ตๆŽง่‚ก ... HK0002007356 HKD
+ 2 00003.HK ้ฆ™ๆธฏไธญๅŽ็…คๆฐ” ... HK0003000038 HKD
+ 3 00004.HK ไน้พ™ไป“้›†ๅ›ข ... HK0004000045 HKD
+ 4 00005.HK ๆฑ‡ไธฐๆŽง่‚ก ... GB0005405286 HKD
+ 5 00006.HK ็”ต่ƒฝๅฎžไธš ... HK0006000050 HKD
+ 6 00007.HK ้ฆ™ๆธฏ้‡‘่ž้›†ๅ›ข ... BMG4613K1099 HKD
+ 7 00008.HK ็”ต่ฎฏ็›ˆ็ง‘ ... HK0008011667 HKD
+ 8 00009.HK ไนๅท่ฟ้€š ... BMG6547Y1057 HKD
+ 9 00010.HK ๆ’้š†้›†ๅ›ข ... HK0010000088 HKD
+ 10 00011.HK ๆ’็”Ÿ้“ถ่กŒ ... HK0011000095 HKD
+ 11 00012.HK ๆ’ๅŸบๅœฐไบง ... HK0012000102 HKD
+ 12 00014.HK ๅธŒๆ…Žๅ…ดไธš ... HK0014000126 HKD
+ 13 00015.HK ็›ˆไฟกๆŽง่‚ก ... BMG932121434 HKD
+ 14 00016.HK ๆ–ฐ้ธฟๅŸบๅœฐไบง ... HK0016000132 HKD
+ 15 00017.HK ๆ–ฐไธ–็•Œๅ‘ๅฑ• ... HK0017000149 HKD
+ 16 00018.HK ไธœๆ–นๆŠฅไธš้›†ๅ›ข ... HK0018000155 HKD
+ 17 00019.HK ๅคชๅค่‚กไปฝๅ…ฌๅธA ... HK0019000162 HKD
+ 18 00020.HK ไผšๅพทไธฐ ... HK0020000177 HKD
+ 19 00021.HK ๅคงไธญๅŽๅœฐไบงๆŽง่‚ก ... HK0000132420 HKD
+ 20 00022.HK ่Œ‚็››ๆŽง่‚ก ... BMG6051D1175 HKD
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md"
new file mode 100644
index 000000000..715a1c5a9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md"
@@ -0,0 +1,68 @@
+## ๆธฏ่‚กๅคๆƒๅ› ๅญ
+----
+
+ๆŽฅๅฃ๏ผšhk_adjfactor
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กๆฏๆ—ฅๅคๆƒๅ› ๅญๆ•ฐๆฎ๏ผŒๆฏๅคฉๆปšๅŠจๅˆทๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅœจๅผ€้€šๆธฏ่‚กๆ—ฅ็บฟๆƒ้™ๅŽ่‡ชๅŠจ่Žทๅ–ๆƒ้™๏ผŒๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Žๆ–‡ๆกฃ](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+cum_adjfactor | float | Y | ็ดฏ่ฎกๅคๆƒๅ› ๅญ
+close_price | float | Y | ๆ”ถ็›˜ไปท
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆธฏ่‚กๅ•ไธ€่‚ก็ฅจๅคๆƒๅ› ๅญ
+df = pro.hk_adjfactor(ts_code='00001.HK', start_date='20240101', end_date='20251022')
+
+#่Žทๅ–ๆธฏ่‚กๆŸไธ€ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจ็š„ๅคๆƒๅ› ๅญ
+df = pro.hk_adjfactor(trade_date='20251031')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date cum_adjfactor close_price
+ 0 00380.HK 20251031 1.000000 0.150000
+ 1 00698.HK 20251031 1.000000 4.610000
+ 2 00865.HK 20251031 1.000000 0.038000
+ 3 08111.HK 20251031 1.000000 0.068000
+ 4 00039.HK 20251031 1.000000 0.088000
+ ... ... ... ... ...
+ 4086 01384.HK 20251031 1.000000 113.700000
+ 4087 02954.HK 20251031 1.000000 0.265000
+ 4088 03460.HK 20251031 1.000000 7.440000
+ 4089 83460.HK 20251031 1.000000 6.840000
+ 4090 09460.HK 20251031 1.000000 0.960000
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..5ae8d0c2d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md"
@@ -0,0 +1,86 @@
+## ๆธฏ่‚กๅคๆƒ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšhk_daily_adj๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กๅคๆƒ่กŒๆƒ…๏ผŒๆไพ›่‚ก็ฅจ่‚กๆœฌใ€ๅธ‚ๅ€ผๅ’ŒๆˆไบคๅŠๆขๆ‰‹ๅคšไธชๆ•ฐๆฎๆŒ‡ๆ ‡
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–6000ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจ๏ผŒๆ”ฏๆŒๅˆ†้กตๆๅ–
+่ฆๆฑ‚๏ผš120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๅผ€้€šๆญฃๅผๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Žๆ–‡ๆกฃ](https://tushare.pro/document/1?doc_id=290)
+
+ๆณจ๏ผšๆธฏ่‚กๅคๆƒ้€ป่พ‘ๆ˜ฏ๏ผšไปทๆ ผ * ๅคๆƒๅ› ๅญ = ๅคๆƒไปทๆ ผ๏ผŒๆฏ”ๅฆ‚close * adj_factor = ๅ‰ๅคๆƒๆ”ถ็›˜ไปทใ€‚ๅคๆƒๅ› ๅญๅކๅฒๆ•ฐๆฎๅฏ่ƒฝ้™คๆƒ็ญ‰่ขซๅˆทๆ–ฐ๏ผŒ่ฏทๆณจๆ„ๅŠจๆ€ๆ›ดๆ–ฐใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆe.g. 00001.HK๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆ”ถ็›˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | None | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้ข
+vwap | float | Y | ๅนณๅ‡ไปท
+adj_factor | float | Y | ๅคๆƒๅ› ๅญ
+turnover_ratio | float | Y | ๆขๆ‰‹็އ(ๅŸบไบŽๆ€ป่‚กๆœฌ)
+free_share | None | Y | ๆต้€š่‚กๆœฌ
+total_share | None | Y | ๆ€ป่‚กๆœฌ
+free_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธ€่‚ก็ฅจ่กŒๆƒ…
+df = pro.hk_daily_adj(ts_code='00001.HK', start_date='20240101', end_date='20240722')
+
+#่Žทๅ–ๆŸไธ€ๆ—ฅๆŸไธชไบคๆ˜“ๆ‰€็š„ๅ…จ้ƒจ่‚ก็ฅจ
+df = pro.hk_daily_adj(trade_date='20240722')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close pre_close vol adj_factor turnover_ratio
+ 0 00001.HK 20240722 40.95 40.90 2799284 1.0000 0.07
+ 1 00001.HK 20240719 40.90 40.85 6472801 1.0000 0.17
+ 2 00001.HK 20240718 40.85 40.50 5498406 1.0000 0.14
+ 3 00001.HK 20240717 40.50 39.95 4151953 1.0000 0.11
+ 4 00001.HK 20240716 39.95 40.15 3978223 1.0000 0.10
+ .. ... ... ... ... ... ... ...
+ 131 00001.HK 20240108 38.91 39.05 3271763 0.9572 0.09
+ 132 00001.HK 20240105 39.05 39.24 2731319 0.9572 0.07
+ 133 00001.HK 20240104 39.24 39.58 2800255 0.9572 0.07
+ 134 00001.HK 20240103 39.58 39.48 3498817 0.9572 0.09
+ 135 00001.HK 20240102 39.48 40.06 2782895 0.9572 0.07
+
+ [136 rows x 7 columns]
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\256\236\346\227\266\346\227\245\347\272\277.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\256\236\346\227\266\346\227\245\347\272\277.md"
new file mode 100644
index 000000000..f47ada9d1
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\345\256\236\346\227\266\346\227\245\347\272\277.md"
@@ -0,0 +1,71 @@
+## ๆธฏ่‚กๅฎžๆ—ถๆ—ฅ็บฟ
+----
+
+ๆŽฅๅฃ๏ผšrt_hk_k
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰่‚ก็ฅจไปฃ็ ๅŠ่‚ก็ฅจไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจ่‚ก็ฅจๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏๆๅ–5000ๆกๆ•ฐๆฎ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆ”ฏๆŒ้€š้…็ฌฆๆ–นๅผ๏ผŒe.g. 00001.HKใ€02*.HK
+
+<br>
+ๆณจ๏ผšts_codeไปฃ็ ไธ€ๅฎš่ฆๅธฆ<font color="red">.HK</font>ๅŽ็ผ€
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข(ๅ…ƒ)
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–็‰นๅฎš่‚ก็ฅจๅฎžๆ—ถๆ—ฅ็บฟ
+df = pro.rt_hk_k(ts_code='00001.HK')
+
+#่Žทๅ–ไปŠๆ—ฅๅผ€็›˜ไปฅๆฅ้ƒจๅˆ†ๆธฏ่‚กๅฎžๆ—ถๆ—ฅ็บฟ
+df = pro.rt_hk_k(ts_code='01*.HK')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code pre_close close high open low vol amount
+ 0 01508.HK 1.040 1.030 1.050 1.040 1.030 14971000.0 15564320.00
+ 1 01314.HK 0.210 0.211 0.211 0.210 0.210 40000.0 8420.00
+ 2 01848.HK 3.940 3.910 3.950 3.940 3.890 300500.0 1176380.00
+ 3 01150.HK 0.091 0.103 0.106 0.106 0.100 45000.0 4580.00
+ 4 01875.HK 1.860 1.970 1.970 1.930 1.890 164000.0 316064.00
+ .. ... ... ... ... ... ... ... ...
+ 746 01653.HK 0.260 0.000 0.000 0.000 0.000 0.0 0.00
+ 747 01729.HK 5.440 5.790 5.800 5.440 5.380 6778621.0 37845706.87
+ 748 01608.HK 0.290 0.285 0.290 0.290 0.285 142000.0 41170.00
+ 749 01247.HK 1.700 1.700 1.750 1.740 1.700 120400.0 206708.00
+ 750 01878.HK 1.890 1.900 1.950 1.900 1.840 191100.0 362691.00
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..723921ffc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,86 @@
+## ๆธฏ่‚ก่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšhk_daily๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กๆฏๆ—ฅๅขž้‡ๅ’Œๅކๅฒ่กŒๆƒ…๏ผŒๆฏๆ—ฅ18็‚นๅทฆๅณๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–5000่กŒ่ฎฐๅฝ•๏ผŒๅฏๅคšๆฌกๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๅ•็‹ฌๅผ€ๆƒ้™๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_chg | float | Y | ๆถจ่ทŒๅน…(%)
+vol | float | Y | ๆˆไบค้‡(่‚ก)
+amount | float | Y | ๆˆไบค้ข(ๅ…ƒ)
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธ€่‚ก็ฅจ่กŒๆƒ…
+df = pro.hk_daily(ts_code='00001.HK', start_date='20190101', end_date='20190904')
+
+#่Žทๅ–ๆŸไธ€ๆ—ฅๆ‰€ๆœ‰่‚ก็ฅจ
+df = pro.hk_daily(trade_date='20190904')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date open ... pct_chg vol amount
+ 0 00001.HK 20190904 66.90 ... 3.45 8212577.0 5.619534e+08
+ 1 00001.HK 20190903 66.40 ... -0.52 3905632.0 2.598397e+08
+ 2 00001.HK 20190902 67.50 ... -0.71 6547427.0 4.397896e+08
+ 3 00001.HK 20190830 69.60 ... -0.73 7731576.0 5.299299e+08
+ 4 00001.HK 20190829 69.05 ... 0.36 7902900.0 5.428812e+08
+ 5 00001.HK 20190828 69.05 ... -1.08 8973397.0 6.183098e+08
+ 6 00001.HK 20190827 70.50 ... 0.00 6286907.0 4.359607e+08
+ 7 00001.HK 20190826 69.40 ... -1.91 8054636.0 5.554714e+08
+ 8 00001.HK 20190823 70.45 ... -0.42 5449506.0 3.863469e+08
+ 9 00001.HK 20190822 71.50 ... -0.49 5299641.0 3.750118e+08
+ 10 00001.HK 20190821 70.00 ... 1.71 7045145.0 5.019940e+08
+ 11 00001.HK 20190820 70.60 ... 0.21 7844342.0 5.522724e+08
+ 12 00001.HK 20190819 68.30 ... 3.02 10498548.0 7.332229e+08
+ 13 00001.HK 20190816 66.30 ... 2.03 8311992.0 5.599711e+08
+ 14 00001.HK 20190815 64.40 ... 2.23 9695771.0 6.378087e+08
+ 15 00001.HK 20190814 66.25 ... -1.29 10816336.0 7.058398e+08
+ 16 00001.HK 20190813 67.00 ... -2.58 12104207.0 8.037089e+08
+ 17 00001.HK 20190812 67.35 ... -0.37 5775321.0 3.921880e+08
+ 18 00001.HK 20190809 67.65 ... -0.15 5996124.0 4.078781e+08
+ 19 00001.HK 20190808 67.65 ... 0.52 8208977.0 5.587438e+08
+ 20 00001.HK 20190807 68.20 ... -1.31 8215702.0 5.567659e+08
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
new file mode 100644
index 000000000..46e3619d4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
@@ -0,0 +1,110 @@
+## ๆธฏ่‚ก็Žฐ้‡‘ๆต้‡่กจ
+----
+
+ๆŽฅๅฃ๏ผšhk_cashflow๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจๆ•ฐๆฎ
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ๏ผˆๅฆ‚๏ผšๆ–ฐๅขž่ดทๆฌพ๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจ็š„2024ๅนดๅบฆ่ต„ไบง่ดŸๅ€บ่กจๆ•ฐๆฎ
+df = pro.hk_cashflow(ts_code='00700.HK', period='20241231')
+
+#่Žทๅ–่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจ่ต„ไบง่ดŸๅ€บ่กจๅކๅนดๆ–ฐๅขžๅ€Ÿๆฌพๆ•ฐๆฎ
+df = pro.hk_cashflow(ts_code='00700.HK', ind_name='ๆ–ฐๅขžๅ€Ÿๆฌพ')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date name ind_name ind_value
+ 0 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้™ค็จŽๅ‰ๆบขๅˆฉ(ไธšๅŠกๅˆฉๆถฆ) 2.414850e+11
+ 1 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‘่กŒ่‚กไปฝ 2.093000e+09
+ 2 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅŠ :ๅˆฉๆฏๆ”ฏๅ‡บ 1.244700e+10
+ 3 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:ๆŠ•่ต„ๆ”ถ็›Š 7.150000e+08
+ 4 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:ๅบ”ๅ ้™„ๅฑžๅ…ฌๅธๆบขๅˆฉ 2.517600e+10
+ 5 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅŠ :ๅ‡ๅ€ผๅŠๆ‹จๅค‡ 9.983000e+09
+ 6 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:้‡ไผฐ็›ˆไฝ™ 2.641000e+09
+ 7 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:ๅ‡บๅ”ฎ่ต„ไบงไน‹ๆบขๅˆฉ 1.300400e+10
+ 8 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅŠ :ๆŠ˜ๆ—งๅŠๆ‘Š้”€ 5.621300e+10
+ 9 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:ๆฑ‡ๅ…‘ๆ”ถ็›Š 4.660000e+08
+ 10 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅŠ :็ป่ฅ่ฐƒๆ•ดๅ…ถไป–้กน็›ฎ 2.070200e+10
+ 11 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ฅ่ฟ่ต„้‡‘ๅ˜ๅŠจๅ‰็ป่ฅๆบขๅˆฉ 2.828240e+11
+ 12 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅญ˜่ดง(ๅขžๅŠ )ๅ‡ๅฐ‘ 2.000000e+07
+ 13 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡:ๅˆฉๆฏๆ”ถๅ…ฅ 1.600400e+10
+ 14 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅบ”ไป˜ๅธๆฌพๅŠๅบ”่ฎก่ดน็”จๅขžๅŠ (ๅ‡ๅฐ‘) 1.087200e+10
+ 15 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ฅ่ฟ่ต„ๆœฌๅ˜ๅŠจๅ…ถไป–้กน็›ฎ -3.630000e+08
+ 16 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้ข„ไป˜ๆฌพ้กนใ€ๆŒ‰้‡‘ๅŠๅ…ถไป–ๅบ”ๆ”ถๆฌพ้กนๅ‡ๅฐ‘(ๅขžๅŠ ) 2.632000e+09
+ 17 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้ข„ๆ”ถ่ดฆๆฌพใ€ๆŒ‰้‡‘ๅŠๅ…ถไป–ๅบ”ไป˜ๆฌพๅขžๅŠ (ๅ‡ๅฐ‘) -6.765000e+09
+ 18 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้€’ๅปถๆ”ถๅ…ฅ(ๅขžๅŠ )ๅ‡ๅฐ‘ 1.653300e+10
+ 19 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ็ป่ฅไบง็”Ÿ็Žฐ้‡‘ 3.047050e+11
+ 20 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅทฒไป˜็จŽ้กน 4.618400e+10
+ 21 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ็ป่ฅไธšๅŠก็Žฐ้‡‘ๅ‡€้ข 2.585210e+11
+ 22 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅทฒๆ”ถๅˆฉๆฏ(ๆŠ•่ต„) 1.491300e+10
+ 23 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅทฒๆ”ถ่‚กๆฏ(ๆŠ•่ต„) 3.521000e+09
+ 24 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅญ˜ๆฌพๅ‡ๅฐ‘(ๅขžๅŠ ) -5.227700e+10
+ 25 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅค„็ฝฎๅ›บๅฎš่ต„ไบง 2.030000e+08
+ 26 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ดญๅปบๆ— ๅฝข่ต„ไบงๅŠๅ…ถไป–่ต„ไบง 3.312100e+10
+ 27 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ‡บๅ”ฎ้™„ๅฑžๅ…ฌๅธ 4.895000e+09
+ 28 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆ”ถ่ดญ้™„ๅฑžๅ…ฌๅธ 9.836000e+09
+ 29 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆ”ถๅ›žๆŠ•่ต„ๆ‰€ๅพ—็Žฐ้‡‘ 9.505200e+10
+ 30 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆŠ•่ต„ๆ”ฏไป˜็Žฐ้‡‘ 8.246500e+10
+ 31 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆŠ•่ต„ไธšๅŠกๅ…ถไป–้กน็›ฎ -6.307200e+10
+ 32 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆŠ•่ต„ไธšๅŠก็Žฐ้‡‘ๅ‡€้ข -1.221870e+11
+ 33 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ž่ต„ๅ‰็Žฐ้‡‘ๅ‡€้ข 1.363340e+11
+ 34 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆ–ฐๅขžๅ€Ÿๆฌพ 1.145840e+11
+ 35 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅฟ่ฟ˜ๅ€Ÿๆฌพ 1.146910e+11
+ 36 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅทฒไป˜ๅˆฉๆฏ(่ž่ต„) 1.241700e+10
+ 37 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅทฒไป˜่‚กๆฏ(่ž่ต„) 3.124400e+10
+ 38 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ้ž่ฟ็ฎ—้กน็›ฎ 2.414850e+11
+ 39 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅ›ž่ดญ่‚กไปฝ 1.057510e+11
+ 40 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ตŽๅ›žๅ€บๅˆธ 1.421300e+10
+ 41 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅฟ่ฟ˜่ž่ต„็งŸ่ต 6.369000e+09
+ 42 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ดญไนฐๅญๅ…ฌๅธๅฐ‘ๆ•ฐ่‚กๆƒ่€Œๆ”ฏไป˜็š„็Žฐ้‡‘ 8.381000e+09
+ 43 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ž่ต„ไธšๅŠกๅ…ถไป–้กน็›ฎ -1.050000e+08
+ 44 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ่ž่ต„ไธšๅŠก็Žฐ้‡‘ๅ‡€้ข -1.764940e+11
+ 45 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ็Žฐ้‡‘ๅ‡€้ข -4.016000e+10
+ 46 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆœŸๅˆ็Žฐ้‡‘ 1.723200e+11
+ 47 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆœŸ้—ดๅ˜ๅŠจๅ…ถไป–้กน็›ฎ 3.590000e+08
+ 48 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๆœŸๆœซ็Žฐ้‡‘ 1.325190e+11
+ 49 00700.HK 20241231 ่…พ่ฎฏๆŽง่‚ก ๅบ”ๆ”ถๅธๆฌพๅ‡ๅฐ‘ -1.048000e+09
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..162d93dee
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
@@ -0,0 +1,153 @@
+## ๆธฏ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+----
+ๆŽฅๅฃ๏ผšhk_fina_indicator๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž200ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+report_type | str | N | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹๏ผˆQ1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹,Q-ๆŒ‰ๆŠฅๅ‘ŠๆœŸ(ๅญฃๅบฆ),Y-ๆŒ‰ๅนดๅบฆ
+report_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹
+std_report_date | str | Y | ๆ ‡ๅ‡†ๆŠฅๅ‘ŠๆœŸ
+per_netcash_operate | float | Y | ๆฏ่‚ก็ป่ฅ็Žฐ้‡‘ๆต(ๅ…ƒ)
+per_oi | float | Y | ๆฏ่‚ก่ฅไธšๆ”ถๅ…ฅ(ๅ…ƒ)
+bps | float | Y | ๆฏ่‚กๅ‡€่ต„ไบง(ๅ…ƒ)
+basic_eps | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š(ๅ…ƒ)
+diluted_eps | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Š(ๅ…ƒ)
+operate_income | float | Y | ่ฅไธšๆ€ปๆ”ถๅ…ฅ(ๅ…ƒ)
+operate_income_yoy | float | Y | ่ฅไธšๆ€ปๆ”ถๅ…ฅๅŒๆฏ”ๅขž้•ฟ(%)
+gross_profit | float | Y | ๆฏ›ๅˆฉๆถฆ(ๅ…ƒ)
+gross_profit_yoy | float | Y | ๆฏ›ๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ(%)
+holder_profit | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆ(ๅ…ƒ)
+holder_profit_yoy | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ(%)
+gross_profit_ratio | float | Y | ๆฏ›ๅˆฉ็އ(%)
+eps_ttm | float | Y | ttmๆฏ่‚กๆ”ถ็›Š(ๅ…ƒ)
+operate_income_qoq | float | Y | ่ฅไธšๆ€ปๆ”ถๅ…ฅๆปšๅŠจ็Žฏๆฏ”ๅขž้•ฟ(%)
+net_profit_ratio | float | Y | ๅ‡€ๅˆฉ็އ(%)
+roe_avg | float | Y | ๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(%)
+gross_profit_qoq | float | Y | ๆฏ›ๅˆฉๆถฆๆปšๅŠจ็Žฏๆฏ”ๅขž้•ฟ(%)
+roa | float | Y | ๆ€ป่ต„ไบงๅ‡€ๅˆฉ็އ(%)
+holder_profit_qoq | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆๆปšๅŠจ็Žฏๆฏ”ๅขž้•ฟ(%)
+roe_yearly | float | Y | ๅนดๅŒ–ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(%)
+roic_yearly | float | Y | ๅนดๅŒ–ๆŠ•่ต„ๅ›žๆŠฅ็އ(%)
+total_assets | float | Y | ่ต„ไบงๆ€ป้ข
+total_liabilities | float | Y | ่ดŸๅ€บๆ€ป้ข
+tax_ebt | float | Y | ๆ‰€ๅพ—็จŽ/ๅˆฉๆถฆๆ€ป้ข(%)
+ocf_sales | float | Y | ็ป่ฅ็Žฐ้‡‘ๆต/่ฅไธšๆ”ถๅ…ฅ(%)
+total_parent_equity | float | Y | ๆœฌๅ…ฌๅธๆƒ็›ŠๆŒๆœ‰ไบบๅบ”ๅ ๆƒ็›Š
+debt_asset_ratio | float | Y | ่ต„ไบง่ดŸๅ€บ็އ(%)
+operate_profit | float | Y | ็ป่ฅ็›ˆๅˆฉ
+pretax_profit | float | Y | ้™ค็จŽๅ‰็›ˆๅˆฉ
+netcash_operate | float | Y | ็ป่ฅๆดปๅŠจๆ‰€ๅพ—็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+netcash_invest | float | Y | ๆŠ•่ต„ๆดปๅŠจ่€—็”จ็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+netcash_finance | float | Y | ่ž่ต„ๆดปๅŠจ่€—็”จ็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+end_cash | float | Y | ๆœŸๆœซ็š„็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉ
+divi_ratio | float | Y | ๅˆ†็บขๆฏ”ไพ‹
+dividend_rate | float | Y | ่‚กๆฏ็އ
+current_ratio | float | Y | ๆตๅŠจๆฏ”็އ(ๅ€)
+common_acs | float | Y | ๆ™ฎ้€š่‚กๅบ”่ฎก่‚กๆฏ
+currentdebt_debt | float | Y | ๆตๅŠจ่ดŸๅ€บ/ๆ€ป่ดŸๅ€บ(%)
+issued_common_shares | float | Y | ๅทฒๅ‘่กŒๆ™ฎ้€š่‚ก
+hk_common_shares | float | Y | ๆธฏ่‚กๆœฌ(**ไธๅปบ่ฎฎไฝฟ็”จๆ•ฐๆฎๆบๆœ‰่ฏฏ**)
+per_shares | float | Y | ๆฏๆ‰‹่‚กๆ•ฐ
+total_market_cap | float | Y | ๆ€ปๅธ‚ๅ€ผ
+hksk_market_cap | float | Y | ๆธฏ่‚กๅธ‚ๅ€ผ
+pe_ttm | float | Y | ๆปšๅŠจๅธ‚็›ˆ็އ
+pb_ttm | float | Y | ๆปšๅŠจๅธ‚ๅ‡€็އ
+report_date_sq | str | Y | ๅญฃๆŠฅๆ—ฅๆœŸ
+report_type_sq | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+operate_income_sq | float | Y | ่ฅไธšๆ”ถๅ…ฅ
+dps_hkd | float | Y | ๆฏ่‚ก่‚กๆฏ๏ผˆๆธฏๅ…ƒ๏ผ‰
+operate_income_qoq_sq | float | Y | ่ฅไธšๆ”ถๅ…ฅ็Žฏๆฏ”
+net_profit_ratio_sq | float | Y | ๅ‡€ๅˆฉๆถฆ็އ
+holder_profit_sq | float | Y | ๅฝ’ๅฑžไบŽ่‚กไธœๅ‡€ๅˆฉๆถฆ
+holder_profit_qoq_sq | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆ็Žฏๆฏ”
+roe_avg_sq | float | Y | ๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+pe_ttm_sq | float | Y | ๅญฃๆŠฅๆปšๅŠจๅธ‚็›ˆ็އ
+pb_ttm_sq | float | Y | ๅญฃๆŠฅๆปšๅŠจๅธ‚ๅ‡€็އ
+roa_sq | float | Y | ๆ€ป่ต„ไบงๆ”ถ็›Š็އ
+start_date | float | Y | ไผš่ฎกๅนดๅบฆ่ตทๅง‹ๆ—ฅ
+fiscal_year | float | Y | ไผš่ฎกๅนดๅบฆๆˆชๆญขๆ—ฅ
+currency | str | Y | ๅธ็งโ€ƒๆธฏๅ…ƒ๏ผˆhkd๏ผ‰
+is_cny_code | float | Y | ๆ˜ฏๅฆไบบๆฐ‘ๅธไปฃ็ 
+dps_hkd_ly | float | Y | ไธŠไธ€ๅนดๆฏ่‚ก่‚กๆฏ
+org_type | str | Y | ไผไธš็ฑปๅž‹
+premium_income | float | Y | ไฟ่ดนๆ”ถๅ…ฅ
+premium_income_yoy | float | Y | ไฟ่ดนๆ”ถๅ…ฅๅŒๆฏ”
+net_interest_income | float | Y | ๅ‡€ๅˆฉๆฏๆ”ถๅ…ฅ
+net_interest_income_yoy | float | Y | ๅ‡€ๅˆฉๆฏๆ”ถๅ…ฅๅŒๆฏ”
+fee_commission_income | float | Y | ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘ๆ”ถๅ…ฅ
+fee_commission_income_yoy | float | Y | ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘ๆ”ถๅ…ฅๅŒๆฏ”
+accounts_rece_tdays | float | Y | ๅบ”ๆ”ถ่ดฆๆฌพๅ‘จ่ฝฌ็އ(ๆฌก)
+inventory_tdays | float | Y | ๅญ˜่ดงๅ‘จ่ฝฌ็އ(ๆฌก)
+current_assets_tdays | float | Y | ๆตๅŠจ่ต„ไบงๅ‘จ่ฝฌ็އ(ๆฌก)
+total_assets_tdays | float | Y | ๆ€ป่ต„ไบงๅ‘จ่ฝฌ็އ(ๆฌก)
+premium_expense | float | Y | ไฟ้™ฉ่ต”ไป˜ๆ”ฏๅ‡บ
+loan_deposit | float | Y | ่ดทๆฌพ/ๅญ˜ๆฌพ
+loan_equity | float | Y | ่ดทๆฌพ/่‚กไธœๆƒ็›Š
+loan_assets | float | Y | ่ดทๆฌพ/ๆ€ป่ต„ไบง
+deposit_equity | float | Y | ๅญ˜ๆฌพ/่‚กไธœๆƒ็›Š
+deposit_assets | float | Y | ๅญ˜ๆฌพ/ๆ€ป่ต„ไบง
+equity_multiplier | float | Y | ๆƒ็›Šไน˜ๆ•ฐ
+equity_ratio | float | Y | ไบงๆƒๆฏ”็އ
+
+ๆณจ๏ผš่พ“ๅ‡บๆŒ‡ๆ ‡ๅคชๅคšๅฏๅœจๆŽฅๅฃfieldsๅ‚ๆ•ฐ่ฎพๅฎšไฝ ้œ€่ฆ็š„ๆŒ‡ๆ ‡๏ผŒไพ‹ๅฆ‚๏ผšfields='ts_coe,bps,basic_eps'
+<br>
+<br>
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆธฏ่‚ก่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจ2014ๅนดๅบฆ็š„่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.hk_fina_indicator(ts_code='00700.HK', period='20241231')
+
+#่Žทๅ–ๆธฏ่‚ก่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจๅކๅนดๅนดๆŠฅ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.hk_fina_indicator(ts_code='00700.HK', report_type='Q4')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name end_date ... deposit_assets equity_multiplier equity_ratio
+ 0 00700.HK ่…พ่ฎฏๆŽง่‚ก 20250331 ... None 1.7083 0.7644
+ 1 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ... None 1.6899 0.7469
+ 2 00700.HK ่…พ่ฎฏๆŽง่‚ก 20240930 ... None 1.7576 0.8140
+ 3 00700.HK ่…พ่ฎฏๆŽง่‚ก 20240630 ... None 1.7841 0.8451
+ 4 00700.HK ่…พ่ฎฏๆŽง่‚ก 20240331 ... None 1.7962 0.8601
+ .. ... ... ... ... ... ... ...
+ 86 00700.HK ่…พ่ฎฏๆŽง่‚ก 20030930 ... None NaN NaN
+ 87 00700.HK ่…พ่ฎฏๆŽง่‚ก 20030630 ... None NaN NaN
+ 88 00700.HK ่…พ่ฎฏๆŽง่‚ก 20030331 ... None NaN NaN
+ 89 00700.HK ่…พ่ฎฏๆŽง่‚ก 20021231 ... None 1.0794 0.0794
+ 90 00700.HK ่…พ่ฎฏๆŽง่‚ก 20011231 ... None 1.3563 0.3563
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md" "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
new file mode 100644
index 000000000..1f51ec74f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\346\270\257\350\202\241\346\225\260\346\215\256/\346\270\257\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
@@ -0,0 +1,112 @@
+## ๆธฏ่‚ก่ต„ไบง่ดŸๅ€บ่กจ
+----
+ๆŽฅๅฃ๏ผšhk_balancesheet๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚กไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ๏ผˆๅฆ‚๏ผšๅบ”ๆ”ถๅธๆฌพ๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆธฏ่‚ก่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจ2014ๅนดๅบฆ็š„่ต„ไบง่ดŸๅ€บ่กจๆ•ฐๆฎ
+df = pro.hk_balancesheet(ts_code='00700.HK', period='20241231')
+
+#่Žทๅ–ๆธฏ่‚ก่…พ่ฎฏๆŽง่‚ก00700.HK่‚ก็ฅจๅކๅนดๅบ”ๆ”ถๅธๆฌพๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.hk_balancesheet(ts_code='00700.HK', ind_name='ๅบ”ๆ”ถๅธๆฌพ')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name end_date ind_name ind_value
+ 0 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ็‰ฉไธšๅŽ‚ๆˆฟๅŠ่ฎพๅค‡ 8.018500e+10
+ 1 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้žๆตๅŠจ่ดŸๅ€บๅˆ่ฎก 3.301900e+11
+ 2 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ— ๅฝข่ต„ไบง 1.961270e+11
+ 3 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅœŸๅœฐไฝฟ็”จๆƒ 2.311700e+10
+ 4 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅœจๅปบๅทฅ็จ‹ 1.230200e+10
+ 5 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้€’ๅปถ็จŽ้กน่ต„ไบง 2.832500e+10
+ 6 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้ข„ไป˜ๆฌพ้กน 4.282800e+10
+ 7 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่”่ฅๅ…ฌๅธๆƒ็›Š 2.903430e+11
+ 8 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅˆ่ฅๅ…ฌๅธๆƒ็›Š 7.072000e+09
+ 9 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆŒ‡ๅฎšไปฅๅ…ฌๅ…ไปทๅ€ผ่ฎฐ่ดฆไน‹้‡‘่ž่ต„ไบง 5.073590e+11
+ 10 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ไธญ้•ฟๆœŸๅญ˜ๆฌพ 7.760100e+10
+ 11 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–้‡‘่ž่ต„ไบง(้žๆตๅŠจ) 1.076000e+09
+ 12 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้žๆตๅŠจ่ต„ไบงๅ…ถไป–้กน็›ฎ 1.767900e+10
+ 13 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้žๆตๅŠจ่ต„ไบงๅˆ่ฎก 1.284815e+12
+ 14 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆŠ•่ต„็‰ฉไธš 8.010000e+08
+ 15 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ”ๆ”ถๅธๆฌพ 4.820300e+10
+ 16 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้ข„ไป˜ๆฌพๆŒ‰้‡‘ๅŠๅ…ถไป–ๅบ”ๆ”ถๆฌพ 1.010440e+11
+ 17 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ—้™ๅˆถๅญ˜ๆฌพๅŠ็Žฐ้‡‘ 3.334000e+09
+ 18 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ็Žฐ้‡‘ๅŠ็ญ‰ไปท็‰ฉ 1.325190e+11
+ 19 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ็ŸญๆœŸๅญ˜ๆฌพ 1.929770e+11
+ 20 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆŒ‡ๅฎšไปฅๅ…ฌๅ…ไปทๅ€ผ่ฎฐ่ดฆไน‹้‡‘่ž่ต„ไบง(ๆตๅŠจ) 1.291300e+10
+ 21 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–้‡‘่ž่ต„ไบง(ๆตๅŠจ) 4.750000e+09
+ 22 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆตๅŠจ่ต„ไบงๅˆ่ฎก 4.961800e+11
+ 23 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ป่ต„ไบง 1.780995e+12
+ 24 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ”ไป˜ๅธๆฌพ 1.187120e+11
+ 25 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ”ไป˜็ฅจๆฎ 8.623000e+09
+ 26 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ”ไป˜็จŽ้กน 2.062400e+10
+ 27 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่ž่ต„็งŸ่ต่ดŸๅ€บ(ๆตๅŠจ) 5.600000e+09
+ 28 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้€’ๅปถๆ”ถๅ…ฅ(ๆตๅŠจ) 1.000970e+11
+ 29 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–ๅบ”ไป˜ๆฌพๅŠๅบ”่ฎก่ดน็”จ 8.403200e+10
+ 30 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ็ŸญๆœŸ่ดทๆฌพ 5.288500e+10
+ 31 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–้‡‘่ž่ดŸๅ€บ(ๆตๅŠจ) 6.336000e+09
+ 32 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆตๅŠจ่ดŸๅ€บๅˆ่ฎก 3.969090e+11
+ 33 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ‡€ๆตๅŠจ่ต„ไบง 9.927100e+10
+ 34 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ป่ต„ไบงๅ‡ๆตๅŠจ่ดŸๅ€บ 1.384086e+12
+ 35 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้•ฟๆœŸ่ดทๆฌพ 1.465210e+11
+ 36 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้€’ๅปถ็จŽ้กน่ดŸๅ€บ 1.854600e+10
+ 37 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่ž่ต„็งŸ่ต่ดŸๅ€บ(้žๆตๅŠจ) 1.389700e+10
+ 38 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้€’ๅปถๆ”ถๅ…ฅ(้žๆตๅŠจ) 6.236000e+09
+ 39 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ้•ฟๆœŸๅบ”ไป˜ๆฌพ 1.020100e+10
+ 40 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ”ไป˜็ฅจๆฎ(้žๆตๅŠจ) 1.305860e+11
+ 41 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–้‡‘่ž่ดŸๅ€บ(้žๆตๅŠจ) 4.203000e+09
+ 42 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ปๆƒ็›ŠๅŠๆ€ป่ดŸๅ€บ 1.780995e+12
+ 43 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ป่ดŸๅ€บ 7.270990e+11
+ 44 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅฐ‘ๆ•ฐ่‚กไธœๆƒ็›Š 8.034800e+10
+ 45 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ‡€่ต„ไบง 1.053896e+12
+ 46 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่‚กๆœฌ NaN
+ 47 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่‚กๆœฌๆบขไปท 4.307900e+10
+ 48 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ไฟ็•™ๆบขๅˆฉ(็ดฏ่ฎกไบๆŸ) 8.920300e+11
+ 49 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅ…ถไป–ๅ‚จๅค‡ 4.203600e+10
+ 50 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅบ“ๅญ˜่‚ก -3.597000e+09
+ 51 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ่‚กไธœๆƒ็›Š 9.735480e+11
+ 52 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ปๆƒ็›Š 1.053896e+12
+ 53 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๆ€ปๆƒ็›ŠๅŠ้žๆตๅŠจ่ดŸๅ€บ 1.384086e+12
+ 54 00700.HK ่…พ่ฎฏๆŽง่‚ก 20241231 ๅญ˜่ดง 4.400000e+08
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\345\237\272\347\241\200\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\345\237\272\347\241\200\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..f1de5e2dd
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\345\237\272\347\241\200\344\277\241\346\201\257.md"
@@ -0,0 +1,68 @@
+## ้ป„้‡‘็Žฐ่ดงๅŸบ็ก€ไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšsge_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๆตท้ป„้‡‘ไบคๆ˜“ๆ‰€็Žฐ่ดงๅˆ็บฆๅŸบ็ก€ไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง100ๆก๏ผŒๅฝ“ๅ‰็Žฐ่ดงๅˆ็บฆๆ•ฐไธ่ถณ20ไธช๏ผŒๅฏไปฅไธ€ๆฌกๆๅ–ๅ…จ้ƒจ๏ผŒไธ้œ€่ฆๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ5000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅˆ็บฆไปฃ็  ๏ผˆๆ”ฏๆŒๅคšไธช๏ผŒ้€—ๅทๅˆ†้š”๏ผŒไธ่พ“ๅ…ฅไธบ่Žทๅ–ๅ…จ้ƒจ๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๅ“็งไปฃ็ 
+ts_name | str | Y | ๅ“็งๅ็งฐ
+trade_type | str | Y | ไบคๆ˜“็ฑปๅž‹
+t_unit | float | Y | ไบคๆ˜“ๅ•ไฝ(ๅ…‹/ๆ‰‹)
+p_unit | float | Y | ๆŠฅไปทๅ•ไฝ
+min_change | float | Y | ๆœ€ๅฐๅ˜ๅŠจไปทไฝ
+price_limit | float | Y | ๆฏๆ—ฅไปทๆ ผๆœ€ๅคงๆณขๅŠจ้™ๅˆถ
+min_vol | int | Y | ๆœ€ๅฐๅ•็ฌ”ๆŠฅไปท้‡(ๆ‰‹)
+max_vol | int | Y | ๆœ€ๅคงๅ•็ฌ”ๆŠฅไปท้‡(ๆ‰‹)
+trade_mode | str | Y | ไบคๆ˜“ๆœŸ้™
+margin_rate | float | Y | ไฟ่ฏ้‡‘ๆฏ”ไพ‹
+liq_rate | float | Y | ่ฟ็บฆ้‡‘ๆฏ”ไพ‹(%)
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.sge_basic()
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.sge_basic(ts_code='Au99.95')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ts_name min_vol max_vol trade_time
+ 0 Au99.95 ้ป„้‡‘9995 1 500 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 1 Au99.99 ้ป„้‡‘9999 1 50000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 2 Au(T+D) ้ป„้‡‘ๅปถๆœŸ 1 200 ไธŠๅˆ:9:00 ่‡ณ 11:30๏ผŒไธ‹ๅˆ ...
+ 3 Pt99.95 ้“‚้‡‘9995 1 1000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 4 Ag(T+D) ็™ฝ้“ถๅปถๆœŸ 1 2000 ไธŠๅˆ:9:00 ่‡ณ 11:30๏ผŒไธ‹ๅˆ:...
+ 5 Au100g 100ๅ…‹้‡‘ๆก 1 1000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 6 Au(T+N1) ้ป„้‡‘T+N1 1 2000 ไธŠๅˆ:9:00 ่‡ณ 11:30๏ผŒไธ‹ๅˆ:13:30 ่‡ณ ...
+ 7 Au(T+N2) ้ป„้‡‘T+N2 1 2000 ไธŠๅˆ:9:00 ่‡ณ 11:30๏ผŒไธ‹ๅˆ:13:30 ่‡ณ ...
+ 8 mAu(T+D) ่ฟทไฝ ้ป„้‡‘ๅปถๆœŸ 1 2000 ไธŠๅˆ:9:00 ่‡ณ 11:30๏ผŒไธ‹ๅˆ:13:30 ่‡ณ ...
+ 9 iAu99.99 ๅ›ฝ้™…ๆฟ้ป„้‡‘9999 1 50000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 10 PGC30g ็†Š็Œซ้‡‘ๅธ30ๅ…‹ 1 1000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด๏ผš20:00่‡ณๆฌกๆ—ฅ02:30
+ 11 NYAuTN06 ๆฒช็บฝ้‡‘AuTN06 1 2000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
+ 12 NYAuTN12 ๆฒช็บฝ้‡‘AuTN12 1 2000 ็™ฝๅคฉ๏ผš9:00่‡ณ15:30๏ผŒๅคœ้—ด:19:50 ่‡ณๆฌกๆ—ฅ 02:30
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\347\216\260\350\264\247\346\227\245\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\347\216\260\350\264\247\346\227\245\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..1e37125e9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\216\260\350\264\247\346\225\260\346\215\256/\344\270\212\346\265\267\351\273\204\351\207\221\347\216\260\350\264\247\346\227\245\350\241\214\346\203\205.md"
@@ -0,0 +1,85 @@
+## ็Žฐ่ดง้ป„้‡‘ๆ—ฅ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšsge_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๆตท้ป„้‡‘ไบคๆ˜“ๆ‰€็Žฐ่ดงๅˆ็บฆๆ—ฅ็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000๏ผŒๅฏๅพช็Žฏๆˆ–่€…ๅˆ†้กตๆๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br>
+
+ๆณจ๏ผšๆ•ฐๆฎ็”ฑๅฝ“ๆ—ฅ9:00่‡ณ15:30็š„ไบคๆ˜“ๅ’Œๅ‰ไธ€ๆ—ฅๅคœ็›˜็š„20:00่‡ณ2:30ๆ•ฐๆฎๆž„ๆˆ๏ผŒๆˆไบค้‡ๅ’Œๆˆไบค้‡‘้ขไธบๅŒๅ‘่ฎก้‡ใ€‚
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๅˆ็บฆไปฃ็ ๏ผŒๅฏ้€š่ฟ‡[ๅŸบ็ก€ไฟกๆฏ](https://tushare.pro/document/2?doc_id=284)่Žทๅพ—
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ็Žฐ่ดงๅˆ็บฆไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+close | float | Y | ๆ”ถ็›˜็‚น(ๅ…ƒ/ๅ…‹)
+open | float | Y | ๅผ€็›˜็‚น(ๅ…ƒ/ๅ…‹)
+high | float | Y | ๆœ€้ซ˜็‚น(ๅ…ƒ/ๅ…‹)
+low | float | Y | ๆœ€ไฝŽ็‚น(ๅ…ƒ/ๅ…‹)
+price_avg | float | Y | ๅŠ ๆƒๅนณๅ‡ไปท(ๅ…ƒ/ๅ…‹)
+change | float | Y | ๆถจ่ทŒ็‚นไฝ(ๅ…ƒ/ๅ…‹)
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡(ๅƒๅ…‹)
+amount | float | Y | ๆˆไบค้‡‘้ข(ๅ…ƒ)
+oi | float | Y | ๅธ‚ๅœบๆŒไป“
+settle_vol | float | Y | ไบคๆ”ถ้‡
+settle_dire | str | Y | ๆŒไป“ๆ–นๅ‘
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅ็ปŸ่ฎกๆ•ฐๆฎ
+df = pro.sge_daily(trade_date='20220311')
+
+#่Žทๅ–ๆŸๅˆ็บฆๆŒ‡ๅฎšๆ—ฅๆœŸ๏ผŒๆŒ‡ๅฎšๅญ—ๆฎต่พ“ๅ‡บ็š„ๆ•ฐๆฎ
+df = pro.sge_daily(ts_code='', start_date='20220301', end_date='20220311', fields='ts_code,close,open,vol')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close open high low vol settle_dire
+ 0 Au99.95 20220311 403.3000 403.2000 403.3000 403.2000 24.00 None
+ 1 Au99.99 20220311 403.6000 405.9700 408.0000 402.8000 13667.66 None
+ 2 Au(T+D) 20220311 403.2200 405.0100 407.7000 402.5300 27196.00 ็ฉบๆ”ฏไป˜็ป™ๅคš
+ 3 Pt99.95 20220311 227.0400 228.0000 228.0000 226.3000 384.00 None
+ 4 Ag(T+D) 20220311 5.1340 5.1820 5.1850 5.1090 2428664.00 ็ฉบๆ”ฏไป˜็ป™ๅคš
+ 5 Au100g 20220311 403.0300 405.4500 406.0000 402.3600 29.40 None
+ 6 Au(T+N1) 20220311 405.7000 408.0000 408.0000 402.2000 21.80 None
+ 7 Au(T+N2) 20220311 408.1000 411.0000 414.5000 408.0500 91.20 None
+ 8 mAu(T+D) 20220311 403.4400 406.6200 407.7500 402.7500 4367.80 ็ฉบๆ”ฏไป˜็ป™ๅคš
+ 9 iAu99.99 20220311 405.3400 406.3000 408.0000 405.0000 2.06 None
+ 10 PGC30g 20220311 409.3200 410.0000 410.0000 408.9000 0.36 None
+ 11 NYAuTN06 20220311 404.5500 407.8500 408.8000 404.0000 15.80 None
+ 12 NYAuTN12 20220311 409.0500 413.8500 413.8500 408.9000 214.40 None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md"
new file mode 100644
index 000000000..4d5de7a36
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\344\272\244\346\230\223\346\227\245\345\216\206.md"
@@ -0,0 +1,62 @@
+## ็พŽ่‚กไบคๆ˜“ๆ—ฅๅކ
+----
+
+ๆŽฅๅฃ๏ผšus_tradecal
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กไบคๆ˜“ๆ—ฅๅކไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸ้˜ถๆฎต่Žทๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ | ็คบไพ‹
+---- | ----- | ---- | ---- | ----
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ | 20200101
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ | 20200701
+is_open | str | N | ๆ˜ฏๅฆไบคๆ˜“ | 0๏ผšไผ‘ๅธ‚ ใ€1๏ผšไบคๆ˜“
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+cal_date | str | Y | ๆ—ฅๅކๆ—ฅๆœŸ
+is_open | int | Y | ๆ˜ฏๅฆไบคๆ˜“ &#39;0&#39;ไผ‘ๅธ‚ &#39;1&#39;ไบคๆ˜“
+pretrade_date | str | Y | ไธŠไธ€ไธชไบคๆ˜“ๆ—ฅ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.us_tradecal(start_date='20200101', end_date='20200701')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ cal_date is_open pretrade_date
+ 0 20200701 1 20200630
+ 1 20200630 1 20200629
+ 2 20200629 1 20200626
+ 3 20200628 0 20200625
+ 4 20200627 0 20200625
+ .. ... ... ...
+ 178 20200105 0 20200102
+ 179 20200104 0 20200102
+ 180 20200103 1 20200102
+ 181 20200102 1 20191231
+ 182 20200101 0 20191230
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\210\251\346\266\246\350\241\250.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\210\251\346\266\246\350\241\250.md"
new file mode 100644
index 000000000..f1d9b71e3
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\210\251\346\266\246\350\241\250.md"
@@ -0,0 +1,73 @@
+## ็พŽ่‚กๅˆฉๆถฆ่กจ
+----
+
+
+ๆŽฅๅฃ๏ผšus_income๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๅฆ‚20241231)
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ(ๅฆ‚๏ผšๆ–ฐๅขžๅ€Ÿๆฌพ๏ผ‰
+report_type | str | N | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจ็š„2024ๅนดๅบฆๅˆฉๆถฆ่กจๆ•ฐๆฎ
+df = pro.us_income(ts_code='NVDA', period='20241231')
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจๅˆฉๆถฆ่กจๅކๅนด่ฅไธš้ขๆ•ฐๆฎ
+df = pro.us_income(ts_code='NVDA', ind_name='่ฅไธš้ข')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date ind_type name ind_name ind_value report_type
+ 0 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ้ž่ฟ็ฎ—้กน็›ฎ 2.271500e+10 ๅ•ๅญฃๆŠฅ
+ 1 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๅ…จ้ขๆ”ถ็›Šๆ€ป้ข 1.893300e+10 ๅ•ๅญฃๆŠฅ
+ 2 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๅ…ถไป–ๅ…จ้ขๆ”ถ็›Šๅˆ่ฎก้กน 1.580000e+08 ๅ•ๅญฃๆŠฅ
+ 3 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๅ…ถไป–ๅ…จ้ขๆ”ถ็›Šๅ…ถไป–้กน็›ฎ 1.580000e+08 ๅ•ๅญฃๆŠฅ
+ 4 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๆœฌๅ…ฌๅธๆ‹ฅๆœ‰ไบบๅ ๅ…จ้ขๆ”ถ็›Šๆ€ป้ข 1.893300e+10 ๅ•ๅญฃๆŠฅ
+ ... ... ... ... ... ... ... ...
+ 1929 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ่ฅ้”€่ดน็”จ 4.805800e+07 ๅ•ๅญฃๆŠฅ
+ 1930 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ็ ”ๅ‘่ดน็”จ 8.591300e+07 ๅ•ๅญฃๆŠฅ
+ 1931 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ๆฏ›ๅˆฉ 2.101530e+08 ๅ•ๅญฃๆŠฅ
+ 1932 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ่ฅไธšๆˆๆœฌ 3.736930e+08 ๅ•ๅญฃๆŠฅ
+ 1933 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ่ฅไธšๆ”ถๅ…ฅ 5.838460e+08 ๅ•ๅญฃๆŠฅ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..9e2e34459
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\237\272\347\241\200\344\277\241\346\201\257.md"
@@ -0,0 +1,68 @@
+## ็พŽ่‚กๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšus_basic
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กๅˆ—่กจไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000๏ผŒๅฏๅˆ†้กตๆๅ–
+็งฏๅˆ†๏ผš120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ๏ผŒ5000็งฏๅˆ†ๆœ‰ๆญฃๅผๆƒ้™
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ|็คบไพ‹
+---- | ----- | ---- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็  | AAPL๏ผˆ่‹นๆžœ๏ผ‰
+classify | str | N | ่‚ก็ฅจๅˆ†็ฑป | ADR/GDR/EQ
+offset | str | N | ๅผ€ๅง‹่กŒๆ•ฐ | 1๏ผš็ฌฌไธ€่กŒ
+limit | str | N | ๆฏ้กตๆœ€ๅคง่กŒๆ•ฐ | 500๏ผšๆฏ้กต500่กŒ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ็พŽ่‚กไปฃ็ 
+name | str | Y | ไธญๆ–‡ๅ็งฐ
+enname | str | N | ่‹ฑๆ–‡ๅ็งฐ
+classify | str | Y | ๅˆ†็ฑปADR/GDR/EQ
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+delist_date | str | Y | ้€€ๅธ‚ๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–้ป˜่ฎค็พŽๅ›ฝ่‚ก็ฅจๅŸบ็ก€ไฟกๆฏ๏ผŒๅ•ๆฌก6000่กŒ
+df = pro.us_basic()
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name classify list_date delist_date
+ 0 ONCY None EQT 20011005 None
+ 1 SCCO None EQT 19950124 None
+ 2 KAOCF None EQT 19740319 None
+ 3 BOIRF None EQT 19880628 None
+ 4 SDXOF None EQT 19830304 None
+ ... ... ... ... ... ...
+ 5995 ESESQ None EQT 20031014 None
+ 5996 TRKX None EQT 20000718 None
+ 5997 ELAMF None EQT 19960320 None
+ 5998 CZNB None EQT 20120724 None
+ 5999 CRRSQ None EQT 20010619 None
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md"
new file mode 100644
index 000000000..a3bda6273
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\345\233\240\345\255\220.md"
@@ -0,0 +1,70 @@
+## ็พŽ่‚กๅคๆƒๅ› ๅญ
+----
+
+ๆŽฅๅฃ๏ผšus_adjfactor
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กๆฏๆ—ฅๅคๆƒๅ› ๅญๆ•ฐๆฎ๏ผŒๅœจๆฏๅคฉ็พŽ่‚กๆ”ถ็›˜ๅŽๆปšๅŠจๅˆทๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง15000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅœจๅผ€้€š็พŽ่‚กๆ—ฅ็บฟๆƒ้™ๅŽ่‡ชๅŠจ่Žทๅ–ๆƒ้™๏ผŒๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Žๆ–‡ๆกฃ](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+exchange | str | Y | ไบคๆ˜“ๆ‰€
+cum_adjfactor | float | Y | ็ดฏ่ฎกๅคๆƒๅ› ๅญ
+close_price | float | Y | ๆ”ถ็›˜ไปท
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็พŽ่‚กๅ•ไธ€่‚ก็ฅจๅคๆƒๅ› ๅญ
+df = pro.us_adjfactor(ts_code='AAPL', start_date='20240101', end_date='20251022')
+
+#่Žทๅ–็พŽ่‚กๆŸไธ€ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจ็š„ๅคๆƒๅ› ๅญ
+df = pro.us_adjfactor(trade_date='20251031')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date exchange cum_adjfactor close_price
+ 0 TAGOF 20251031 OTC 1.000000 None
+ 1 BABA 20251031 NYS 1.000000 170.430000
+ 2 CZR 20251031 NAS 1.000000 20.100000
+ 3 DEEP 20251031 ARC 1.000000 35.025100
+ 4 AVAL 20251031 NYS 1.000000 4.220000
+ ... ... ... ... ... ...
+ 14995 MRETF 20251031 OTC 1.000000 7.150000
+ 14996 CHI 20251031 NAS 1.000000 11.390000
+ 14997 TBHC 20251031 NAS 1.000000 1.510000
+ 14998 MQMIF 20251031 OTC 1.000000 0.127600
+ 14999 TAC 20251031 NYS 1.000000 17.670000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..d9a6c55b9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\345\244\215\346\235\203\350\241\214\346\203\205.md"
@@ -0,0 +1,86 @@
+## ็พŽ่‚กๅคๆƒ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšus_daily_adj๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กๅคๆƒ่กŒๆƒ…๏ผŒๆ”ฏๆŒ็พŽ่‚กๅ…จๅธ‚ๅœบ่‚ก็ฅจ๏ผŒๆไพ›่‚กๆœฌใ€ๅธ‚ๅ€ผใ€ๅคๆƒๅ› ๅญๅ’Œๆˆไบคไฟกๆฏ็ญ‰ๅคšไธชๆ•ฐๆฎๆŒ‡ๆ ‡
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–8000ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจ๏ผŒๆ”ฏๆŒๅˆ†้กตๆๅ–
+่ฆๆฑ‚๏ผš120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๅผ€้€šๆญฃๅผๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Žๆ–‡ๆกฃ](https://tushare.pro/document/1?doc_id=290)
+
+ๆณจ๏ผš็พŽ่‚กๅคๆƒ้€ป่พ‘ๆ˜ฏ๏ผšไปทๆ ผ * ๅคๆƒๅ› ๅญ = ๅคๆƒไปทๆ ผ๏ผŒๆฏ”ๅฆ‚close * adj_factor = ๅ‰ๅคๆƒๆ”ถ็›˜ไปทใ€‚ๅคๆƒๅ› ๅญๅކๅฒๆ•ฐๆฎๅฏ่ƒฝ้™คๆƒ็ญ‰่ขซๅˆทๆ–ฐ๏ผŒ่ฏทๆณจๆ„ๅŠจๆ€ๆ›ดๆ–ฐใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆe.g. AAPL๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆNAS/NYS/OTC)
+offset | int | N | ๅผ€ๅง‹่กŒๆ•ฐ
+limit | int | N | ๆฏ้กต่กŒๆ•ฐ่กŒๆ•ฐ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆ”ถ็›˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | Y | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | int | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้ข
+vwap | float | Y | ๅนณๅ‡ไปท
+adj_factor | float | Y | ๅคๆƒๅ› ๅญ
+turnover_ratio | float | Y | ๆขๆ‰‹็އ
+free_share | int | Y | ๆต้€š่‚กๆœฌ
+total_share | int | Y | ๆ€ป่‚กๆœฌ
+free_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ
+exchange | str | Y | ไบคๆ˜“ๆ‰€ไปฃ็ 
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธ€่‚ก็ฅจ่กŒๆƒ…
+df = pro.us_daily_adj(ts_code='AAPL', start_date='20240101', end_date='20240722')
+
+#่Žทๅ–ๆŸไธ€ๆ—ฅๆŸไธชไบคๆ˜“ๆ‰€็š„ๅ…จ้ƒจ่‚ก็ฅจ
+df = pro.us_daily_adj(trade_date='20240722', exhange='NAS')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close pre_close pct_change vol amount vwap adj_factor turnover_ratio
+ 0 AAPL 20240722 223.96 224.31 0.00 48201836 10846348215.6184 225.02 1.0000 0.31
+ 1 AAPL 20240719 224.31 224.18 0.00 49151454 11046273687.7475 224.74 1.0000 0.32
+ 2 AAPL 20240718 224.18 228.88 -0.02 66034563 14869485263.3655 225.18 1.0000 0.43
+ 3 AAPL 20240717 228.88 234.82 -0.03 57345883 13120715665.5056 228.80 1.0000 0.37
+ 4 AAPL 20240716 234.82 234.40 0.00 43234278 10128420808.7874 234.27 1.0000 0.28
+ .. ... ... ... ... ... ... ... ... ... ...
+ 134 AAPL 20240108 185.07 180.70 0.02 59144469 10903064025.6147 183.86 0.9974 0.38
+ 135 AAPL 20240105 180.70 181.43 0.00 62379661 11321622148.8560 181.02 0.9974 0.40
+ 136 AAPL 20240104 181.43 183.77 -0.01 71983563 13102384071.8889 181.54 0.9974 0.47
+ 137 AAPL 20240103 183.77 185.15 -0.01 58414461 10767233840.9328 183.84 0.9974 0.38
+ 138 AAPL 20240102 185.15 192.02 -0.04 82488688 15330365936.2928 185.36 0.9974 0.53
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..42cb693cc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\346\227\245\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,77 @@
+## ็พŽ่‚ก่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšus_daily
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚ก่กŒๆƒ…๏ผˆๆœชๅคๆƒ๏ผ‰๏ผŒๅŒ…ๆ‹ฌๅ…จ้ƒจ่‚ก็ฅจๅ…จๅކๅฒ่กŒๆƒ…๏ผŒไปฅๅŠ้‡่ฆ็š„ๅธ‚ๅœบๅ’Œไผฐๅ€ผๆŒ‡ๆ ‡
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–๏ผŒๅผ€้€šๆญฃๅผๆƒ้™ๅŽไนŸๅฏๆ”ฏๆŒๅˆ†้กตๆๅ–ๅ…จ้ƒจๅކๅฒ
+่ฆๆฑ‚๏ผš120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จๆŸฅ็œ‹ๆ•ฐๆฎ๏ผŒๅผ€้€šๆญฃๅผๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Žๆ–‡ๆกฃ](https://tushare.pro/document/1?doc_id=290)ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆe.g. AAPL๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆ”ถ็›˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+change | float | N | ๆถจ่ทŒ้ข
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้ข
+vwap | float | Y | ๅนณๅ‡ไปท
+turnover_ratio | float | N | ๆขๆ‰‹็އ
+total_mv | float | N | ๆ€ปๅธ‚ๅ€ผ
+pe | float | N | PE
+pb | float | N | PB
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธ€่‚ก็ฅจ่กŒๆƒ…
+df = pro.us_daily(ts_code='AAPL', start_date='20190101', end_date='20190904')
+
+#่Žทๅ–ๆŸไธ€ๆ—ฅๆ‰€ๆœ‰่‚ก็ฅจ
+df = pro.us_daily(trade_date='20190904')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close open high low pre_close pct_change vol amount vwap
+ 0 AAPL 20190904 209.19 208.39 209.48 207.32 205.70 1.70 19216821 4008342529.970000 208.59
+ 1 AAPL 20190903 205.70 206.43 206.98 204.22 208.74 -1.46 20059575 4120106317.760000 205.39
+ 2 AAPL 20190830 208.74 210.16 210.45 207.20 209.01 -0.13 21162563 4410472824.780000 208.41
+ 3 AAPL 20190829 209.01 208.50 209.32 206.66 205.53 1.69 21007653 4380322743.230000 208.51
+ 4 AAPL 20190828 205.53 204.10 205.72 203.32 204.16 0.67 15957633 3269889907.950000 204.91
+ .. ... ... ... ... ... ... ... ... ... ... ...
+ 165 AAPL 20190108 150.75 149.56 151.82 148.52 147.93 1.91 41025313 6159076907.780000 150.13
+ 166 AAPL 20190107 147.93 148.70 148.83 145.90 148.26 -0.22 54777766 8071925608.900000 147.36
+ 167 AAPL 20190104 148.26 144.53 148.55 143.80 142.19 4.27 58607071 8605786116.450000 146.84
+ 168 AAPL 20190103 142.19 143.98 145.72 142.00 157.92 -9.96 91312188 13108586866.810000 143.56
+ 169 AAPL 20190102 157.92 154.89 158.85 154.23 157.74 0.11 37039739 5814198206.330000 156.97
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
new file mode 100644
index 000000000..618236b9b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
@@ -0,0 +1,77 @@
+## ็พŽ่‚ก็Žฐ้‡‘ๆต้‡่กจ
+----
+
+
+ๆŽฅๅฃ๏ผšus_cashflow๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจๆ•ฐๆฎ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๅฆ‚20241231)
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ(ๅฆ‚๏ผšๆ–ฐๅขžๅ€Ÿๆฌพ๏ผ‰
+report_type | str | N | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจ็š„2024ๅนดๅบฆ็Žฐ้‡‘ๆต้‡่กจๆ•ฐๆฎ
+df = pro.us_cashflow(ts_code='NVDA', period='20241231')
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจ็Žฐ้‡‘ๆต้‡่กจๅކๅนดๆ–ฐๅขžๅ€Ÿๆฌพๆ•ฐๆฎ
+df = pro.us_cashflow(ts_code='NVDA', ind_name='ๆ–ฐๅขžๅ€Ÿๆฌพ')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date ind_type name ind_name ind_value report_type
+ 0 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉๆœŸๆœซไฝ™้ข 1.523400e+10 ๅ•ๅญฃๆŠฅ
+ 1 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉๆœŸๅˆไฝ™้ข 8.589000e+09 ๅ•ๅญฃๆŠฅ
+ 2 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉๅขžๅŠ (ๅ‡ๅฐ‘)้ข 6.645000e+09 ๅ•ๅญฃๆŠฅ
+ 3 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็ญน่ต„ๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข -1.555300e+10 ๅ•ๅญฃๆŠฅ
+ 4 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็ญน่ต„ไธšๅŠกๅ…ถไป–้กน็›ฎ -1.584000e+09 ๅ•ๅญฃๆŠฅ
+ ... ... ... ... ... ... ... ...
+ 2001 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ็ป่ฅไธšๅŠก่ฐƒๆ•ดๅ…ถไป–้กน็›ฎ 0.000000e+00 ๅ•ๅญฃๆŠฅ
+ 2002 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ๅ‡ๅ€ผๅŠๆ‹จๅค‡ -3.410000e+05 ๅ•ๅญฃๆŠฅ
+ 2003 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ๅŸบไบŽ่‚ก็ฅจ็š„่กฅๅฟ่ดน 2.850000e+05 ๅ•ๅญฃๆŠฅ
+ 2004 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ๆŠ˜ๆ—งๅŠๆ‘Š้”€ 2.489700e+07 ๅ•ๅญฃๆŠฅ
+ 2005 NVDA 20050501 Q1 ่‹ฑไผŸ่พพ ๅ‡€ๅˆฉๆถฆ 6.444400e+07 ๅ•ๅญฃๆŠฅ
+
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..8e6e6e494
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
@@ -0,0 +1,138 @@
+## ็พŽ่‚ก่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšus_fina_indicator๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚กใ€‚ไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž200ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๅฆ‚20241231)
+report_type | str | N | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹,Q1ไธ€ๅญฃๆŠฅ,Q2ไธญๆŠฅ,Q3ไธ‰ๅญฃๆŠฅ,Q4ๅนดๆŠฅ
+security_name_abbr | str | Y | ่‚ก็ฅจๅ็งฐ
+accounting_standards | str | Y | ไผš่ฎกๅ‡†ๅˆ™
+notice_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | Y | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ถ้—ด
+std_report_date | str | Y | ๆ ‡ๅ‡†ๆŠฅๅ‘ŠๆœŸ
+financial_date | str | Y | ๅนด็ป“ๆ—ฅ
+currency | str | Y | ๅธ็ง
+date_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+operate_income | float | Y | ๆ”ถๅ…ฅ
+operate_income_yoy | float | Y | ๆ”ถๅ…ฅๅขž้•ฟ
+gross_profit | float | Y | ๆฏ›ๅˆฉ
+gross_profit_yoy | float | Y | ๆฏ›ๅˆฉๅขž้•ฟ
+parent_holder_netprofit | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆ
+parent_holder_netprofit_yoy | float | Y | ๅฝ’ๆฏๅ‡€ๅˆฉๆถฆๅขž้•ฟ
+basic_eps | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š
+diluted_eps | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Š
+gross_profit_ratio | float | Y | ้”€ๅ”ฎๆฏ›ๅˆฉ็އ
+net_profit_ratio | float | Y | ้”€ๅ”ฎๅ‡€ๅˆฉ็އ
+accounts_rece_tr | float | Y | ๅบ”ๆ”ถ่ดฆๆฌพๅ‘จ่ฝฌ็އ(ๆฌก)
+inventory_tr | float | Y | ๅญ˜่ดงๅ‘จ่ฝฌ็އ(ๆฌก)
+total_assets_tr | float | Y | ๆ€ป่ต„ไบงๅ‘จ่ฝฌ็އ(ๆฌก)
+accounts_rece_tdays | float | Y | ๅบ”ๆ”ถ่ดฆๆฌพๅ‘จ่ฝฌๅคฉๆ•ฐ
+inventory_tdays | float | Y | ๅญ˜่ดงๅ‘จ่ฝฌๅคฉๆ•ฐ
+total_assets_tdays | float | Y | ๆ€ป่ต„ไบงๅ‘จ่ฝฌๅคฉๆ•ฐ
+roe_avg | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+roa | float | Y | ๆ€ป่ต„ไบงๅ‡€ๅˆฉ็އ
+current_ratio | float | Y | ๆตๅŠจๆฏ”็އ(ๅ€)
+speed_ratio | float | Y | ้€ŸๅŠจๆฏ”็އ(ๅ€)
+ocf_liqdebt | float | Y | ็ป่ฅไธšๅŠก็Žฐ้‡‘ๅ‡€้ข/ๆตๅŠจ่ดŸๅ€บ
+debt_asset_ratio | float | Y | ่ต„ไบง่ดŸๅ€บ็އ
+equity_ratio | float | Y | ไบงๆƒๆฏ”็އ
+basic_eps_yoy | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›ŠๅŒๆฏ”ๅขž้•ฟ
+gross_profit_ratio_yoy | float | Y | ๆฏ›ๅˆฉ็އๅŒๆฏ”ๅขž้•ฟ(%)
+net_profit_ratio_yoy | float | Y | ๅ‡€ๅˆฉ็އๅŒๆฏ”ๅขž้•ฟ(%)
+roe_avg_yoy | float | Y | ๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އๅŒๆฏ”ๅขž้•ฟ(%)
+roa_yoy | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އๅŒๆฏ”ๅขž้•ฟ(%)
+debt_asset_ratio_yoy | float | Y | ่ต„ไบง่ดŸๅ€บ็އๅŒๆฏ”ๅขž้•ฟ(%)
+current_ratio_yoy | float | Y | ๆตๅŠจๆฏ”็އๅŒๆฏ”ๅขž้•ฟ(%)
+speed_ratio_yoy | float | Y | ้€ŸๅŠจๆฏ”็އๅŒๆฏ”ๅขž้•ฟ(%)
+currency_abbr | str | Y | ๅธ็ง
+total_income | float | Y | ๆ”ถๅ…ฅๆ€ป้ข
+total_income_yoy | float | Y | ๆ”ถๅ…ฅๆ€ป้ขๅŒๆฏ”ๅขž้•ฟ
+premium_income | float | Y | ไฟ่ดนๆ”ถๅ…ฅ
+premium_income_yoy | float | Y | ไฟ่ดนๆ”ถๅ…ฅๅŒๆฏ”
+basic_eps_cs | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š
+basic_eps_cs_yoy | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›ŠๅŒๆฏ”ๅขž้•ฟ
+diluted_eps_cs | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Š
+payout_ratio | float | Y | ไฟ่ดนๆ”ถๅ…ฅ/่ต”ไป˜ๆ”ฏๅ‡บ
+capitial_ratio | float | Y | ๆ€ป่ต„ไบงๅ‘จ่ฝฌ็އ
+roe | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+roe_yoy | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އๅŒๆฏ”ๅขž้•ฟ
+debt_ratio | float | Y | ่ต„ไบง่ดŸๅ€บ็އ
+debt_ratio_yoy | float | Y | ่ต„ไบง่ดŸๅ€บ็އๅŒๆฏ”ๅขž้•ฟ
+net_interest_income | float | Y | ๅ‡€ๅˆฉๆฏๆ”ถๅ…ฅ
+net_interest_income_yoy | float | Y | ๅ‡€ๅˆฉๆฏๆ”ถๅ…ฅๅขž้•ฟ
+diluted_eps_cs_yoy | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Šๅขž้•ฟ
+loan_loss_provision | float | Y | ่ดทๆฌพๆŸๅคฑๅ‡†ๅค‡
+loan_loss_provision_yoy | float | Y | ่ดทๆฌพๆŸๅคฑๅ‡†ๅค‡ๅขž้•ฟ
+loan_deposit | float | Y | ่ดทๆฌพ/ๅญ˜ๆฌพ
+loan_equity | float | Y | ่ดทๆฌพ/่‚กไธœๆƒ็›Š(ๅ€)
+loan_assets | float | Y | ่ดทๆฌพ/ๆ€ป่ต„ไบง
+deposit_equity | float | Y | ๅญ˜ๆฌพ/่‚กไธœๆƒ็›Š(ๅ€)
+deposit_assets | float | Y | ๅญ˜ๆฌพ/ๆ€ป่ต„ไบง
+rol | float | Y | ่ดทๆฌพๅ›žๆŠฅ็އ
+rod | float | Y | ๅญ˜ๆฌพๅ›žๆŠฅ็އ
+
+ๆณจ๏ผš่พ“ๅ‡บๆŒ‡ๆ ‡ๅคชๅคšๅฏๅœจๆŽฅๅฃfieldsๅ‚ๆ•ฐ่ฎพๅฎšไฝ ้œ€่ฆ็š„ๆŒ‡ๆ ‡๏ผŒไพ‹ๅฆ‚๏ผšfields='ts_coe,bps,basic_eps'
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจ2024ๅนดๅบฆ็š„่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.us_fina_indicator(ts_code='NVDA', period='20241231')
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจๅކๅนดๅนดๆŠฅ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.us_fina_indicator(ts_code='NVDA', report_type='Q4')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date ind_type security_name_abbr accounting_standards notice_date start_date std_report_date financial_date currency date_type report_type operate_income operate_income_yoy \
+ 0 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20250528 20250127 20250331 2-1 ็พŽๅ…ƒ ๅ•ๅญฃๆŠฅ 2025/Q1 4.406200e+10 69.1829
+ 1 NVDA 20250126 Q4 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20250226 20240129 20241231 1-26 ็พŽๅ…ƒ ๅนดๆŠฅ 2024/FY 1.304970e+11 114.2034
+ 2 NVDA 20241027 Q3 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20241120 20240129 20240930 1-26 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2024/Q9 9.116600e+10 134.8489
+ 3 NVDA 20240728 Q2 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20240828 20240129 20240630 1-26 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2024/Q6 5.608400e+10 170.9503
+ 4 NVDA 20240428 Q1 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20250528 20240129 20240331 1-26 ็พŽๅ…ƒ ๅ•ๅญฃๆŠฅ 2024/Q1 2.604400e+10 262.1246
+ 5 NVDA 20240128 Q4 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20250226 20230130 20231231 1-28 ็พŽๅ…ƒ ๅนดๆŠฅ 2023/FY 6.092200e+10 125.8545
+ 6 NVDA 20231029 Q3 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20241120 20230130 20230930 1-28 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2023/Q9 3.881900e+10 85.5327
+ 7 NVDA 20230730 Q2 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20240828 20230131 20230630 1-28 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2023/Q6 2.069900e+10 38.0670
+ 8 NVDA 20230430 Q1 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20240529 20230130 20230331 1-28 ็พŽๅ…ƒ ๅ•ๅญฃๆŠฅ 2023/Q1 7.192000e+09 -13.2239
+ 9 NVDA 20230129 Q4 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20250226 20220131 20221231 1-29 ็พŽๅ…ƒ ๅนดๆŠฅ 2022/FY 2.697400e+10 0.2229
+ 10 NVDA 20221030 Q3 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20231121 20220131 20220930 1-29 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2022/Q9 2.092300e+10 8.5725
+ 11 NVDA 20220731 Q2 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20230828 20220201 20220630 1-29 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2022/Q6 1.499200e+10 23.2084
+ 12 NVDA 20220501 Q1 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20230526 20220131 20220331 1-29 ็พŽๅ…ƒ ๅ•ๅญฃๆŠฅ 2022/Q1 8.288000e+09 46.4052
+ 13 NVDA 20220130 Q4 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20240221 20210201 20211231 1-30 ็พŽๅ…ƒ ๅนดๆŠฅ 2021/FY 2.691400e+10 61.4033
+ 14 NVDA 20211031 Q3 ่‹ฑไผŸ่พพ ็พŽๅ›ฝไผš่ฎกๅ‡†ๅˆ™ 20221118 20210201 20210930 1-30 ็พŽๅ…ƒ ็ดฏ่ฎกๅญฃๆŠฅ 2021/Q9 1.927100e+10 65.1045
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md" "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
new file mode 100644
index 000000000..7df7e8718
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\347\276\216\350\202\241\346\225\260\346\215\256/\347\276\216\350\202\241\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
@@ -0,0 +1,74 @@
+## ็พŽ่‚ก่ต„ไบง่ดŸๅ€บ่กจ
+----
+
+ๆŽฅๅฃ๏ผšus_balancesheet๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–็พŽ่‚กไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ๏ผˆ็›ฎๅ‰ๅช่ฆ†็›–ไธป่ฆ็พŽ่‚กๅ’Œไธญๆฆ‚่‚ก๏ผ‰
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™ๆˆ–ๆœ‰15000็งฏๅˆ†๏ผŒๅ…ทไฝ“ๆƒ้™ไฟกๆฏ่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๅฆ‚20241231)
+ind_name | str | N | ๆŒ‡ๆ ‡ๅ(ๅฆ‚๏ผšๆ–ฐๅขžๅ€Ÿๆฌพ๏ผ‰
+report_type | str | N | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๅง‹ๆ—ถ้—ด๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+ind_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹(Q1ไธ€ๅญฃๆŠฅQ2ๅŠๅนดๆŠฅQ3ไธ‰ๅญฃๆŠฅQ4ๅนดๆŠฅ)
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ind_name | str | Y | ่ดขๅŠก็ง‘็›ฎๅ็งฐ
+ind_value | float | Y | ่ดขๅŠก็ง‘็›ฎๅ€ผ
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจQ4็š„่ต„ไบง่ดŸๅ€บ่กจๆ•ฐๆฎ
+df = pro.us_balancesheet(ts_code='NVDA', report_type='Q4')
+
+#่Žทๅ–็พŽ่‚ก่‹ฑไผŸ่พพNVDA่‚ก็ฅจๅކๅนดๅบ”ๆ”ถๅธๆฌพๆŒ‡ๆ ‡ๆ•ฐๆฎ
+df = pro.us_balancesheet(ts_code='NVDA', ind_name='ๅบ”ๆ”ถๅธๆฌพ')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date ind_type name ind_name ind_value report_type
+ 0 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ่ดŸๅ€บๅŠ่‚กไธœๆƒ็›Šๅˆ่ฎก 1.252540e+11 ไธ€ๅญฃๆŠฅ
+ 1 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ่‚กไธœๆƒ็›Šๅˆ่ฎก 8.384300e+10 ไธ€ๅญฃๆŠฅ
+ 2 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ่‚กไธœๆƒ็›Š 8.384300e+10 ไธ€ๅญฃๆŠฅ
+ 3 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ๅ…ถไป–็ปผๅˆๆ”ถ็›Š 1.860000e+08 ไธ€ๅญฃๆŠฅ
+ 4 NVDA 20250427 Q1 ่‹ฑไผŸ่พพ ่‚กๆœฌๆบขไปท 1.147500e+10 ไธ€ๅญฃๆŠฅ
+ ... ... ... ... ... ... ... ...
+ 2459 NVDA 20060129 Q4 ่‹ฑไผŸ่พพ ้ข„ไป˜ๆฌพ้กน(ๆตๅŠจ) 2.438700e+07 ๅนดๆŠฅ
+ 2460 NVDA 20060129 Q4 ่‹ฑไผŸ่พพ ้€’ๅปถๆ‰€ๅพ—็จŽ่ต„ไบง(ๆตๅŠจ) 2.682000e+06 ๅนดๆŠฅ
+ 2461 NVDA 20060129 Q4 ่‹ฑไผŸ่พพ ๅญ˜่ดง 2.548700e+08 ๅนดๆŠฅ
+ 2462 NVDA 20060129 Q4 ่‹ฑไผŸ่พพ ๅบ”ๆ”ถ่ดฆๆฌพ 3.181860e+08 ๅนดๆŠฅ
+ 2463 NVDA 20060129 Q4 ่‹ฑไผŸ่พพ ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉ 5.517560e+08 ๅนดๆŠฅ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\345\201\232\345\270\202\345\200\237\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\345\201\232\345\270\202\345\200\237\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md"
new file mode 100644
index 000000000..6915f6f0b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\345\201\232\345\270\202\345\200\237\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md"
@@ -0,0 +1,66 @@
+## ๅšๅธ‚ๅ€Ÿๅˆธไบคๆ˜“ๆฑ‡ๆ€ป
+----
+
+ๆŽฅๅฃ๏ผšslb_len_mm
+ๆ่ฟฐ๏ผšๅšๅธ‚ๅ€Ÿๅˆธไบคๆ˜“ๆฑ‡ๆ€ป
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–5000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๅކๅฒ
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๆฏๅˆ†้’Ÿ่ฏทๆฑ‚200ๆฌก๏ผŒ5000็งฏๅˆ†500ๆฌก่ฏทๆฑ‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ope_inv | float | Y | ๆœŸๅˆไฝ™้‡(ไธ‡่‚ก)
+lent_qnt | float | Y | ่žๅ‡บๆ•ฐ้‡(ไธ‡่‚ก)
+cls_inv | float | Y | ๆœŸๆœซไฝ™้‡(ไธ‡่‚ก)
+end_bal | float | Y | ๆœŸๆœซไฝ™้ข(ไธ‡ๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.slb_len_mm(trade_date='20240620')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code name ope_inv lent_qnt cls_inv end_bal
+ 0 20240620 688002.SH ็ฟๅˆ›ๅพฎ็บณ 18.49 None 18.49 558.21
+ 1 20240620 688005.SH ๅฎน็™พ็ง‘ๆŠ€ 12.24 None 12.24 309.06
+ 2 20240620 688006.SH ๆญๅฏ็ง‘ๆŠ€ 6.92 None 6.92 129.89
+ 3 20240620 688007.SH ๅ…‰ๅณฐ็ง‘ๆŠ€ 9.66 None 9.66 167.99
+ 4 20240620 688008.SH ๆพœ่ตท็ง‘ๆŠ€ 38.13 None 38.13 2138.33
+ .. ... ... ... ... ... ... ...
+ 126 20240620 688789.SH ๅฎๅŽๆ•ฐ็ง‘ 1.49 None 1.49 155.14
+ 127 20240620 688798.SH XD่‰พไธบ็”ต 3.41 None 3.41 200.54
+ 128 20240620 688819.SH ๅคฉ่ƒฝ่‚กไปฝ 15.77 None 15.77 395.51
+ 129 20240620 688981.SH ไธญ่Šฏๅ›ฝ้™… 57.08 None 57.08 2785.50
+ 130 20240620 689009.SH ไนๅทๅ…ฌๅธ 12.84 None 12.84 535.81
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..11e775e9a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206.md"
@@ -0,0 +1,126 @@
+## ่ž่ต„่žๅˆธไบคๆ˜“ๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšmargin_detail
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑไธคๅธ‚ๆฏๆ—ฅ่ž่ต„่žๅˆธๆ˜Ž็ป†
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž6000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผš2000็งฏๅˆ†ๅฏ่Žทๅพ—ๆœฌๆŽฅๅฃๆƒ้™๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“ๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | TSไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+name | str | ่‚ก็ฅจๅ็งฐ ๏ผˆ20190910ๅŽๆœ‰ๆ•ฐๆฎ๏ผ‰
+rzye | float | ่ž่ต„ไฝ™้ข(ๅ…ƒ)
+rqye | float | ่žๅˆธไฝ™้ข(ๅ…ƒ)
+rzmre | float | ่ž่ต„ไนฐๅ…ฅ้ข(ๅ…ƒ)
+rqyl | float | ่žๅˆธไฝ™้‡๏ผˆ่‚ก๏ผ‰
+rzche | float | ่ž่ต„ๅฟ่ฟ˜้ข(ๅ…ƒ)
+rqchl | float | ่žๅˆธๅฟ่ฟ˜้‡(่‚ก)
+rqmcl | float | ่žๅˆธๅ–ๅ‡บ้‡(่‚ก,ไปฝ,ๆ‰‹)
+rzrqye | float | ่ž่ต„่žๅˆธไฝ™้ข(ๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.margin_detail(trade_date='20180802')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('margin_detail', trade_date='20180802')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code rzye rqye rzmre rqyl \
+ 0 20180802 000001.SZ 4.430811e+09 8238210.0 78800436.0 921500.0
+ 1 20180802 000002.SZ 2.613071e+09 30772020.0 186176338.0 1439290.0
+ 2 20180802 000006.SZ 8.214685e+08 1008250.0 15199626.0 185000.0
+ 3 20180802 000009.SZ 1.318175e+09 74451.0 8010979.0 15674.0
+ 4 20180802 000012.SZ 6.422077e+08 190201.0 7831261.0 38347.0
+ 5 20180802 000022.SZ 1.891423e+08 1761368.0 8868547.0 99400.0
+ 6 20180802 000027.SZ 3.583209e+08 104157.0 4235209.0 21300.0
+ 7 20180802 000028.SZ 2.885056e+08 524656.0 4737219.0 12100.0
+ 8 20180802 000030.SZ 1.076096e+08 965944.0 2717503.0 200820.0
+ 9 20180802 000031.SZ 5.659868e+08 90675.0 2056441.0 15500.0
+ 10 20180802 000036.SZ 3.974383e+08 620420.0 5980093.0 110199.0
+ 11 20180802 000039.SZ 1.047953e+09 2519010.0 17651054.0 215300.0
+ 12 20180802 000043.SZ 3.496989e+08 14532.0 2299872.0 2100.0
+ 13 20180802 000046.SZ 7.221042e+08 2208480.0 17142811.0 344000.0
+ 14 20180802 000049.SZ 3.914922e+08 1795218.0 12595082.0 65783.0
+ 15 20180802 000050.SZ 1.884433e+09 517992.0 51120876.0 38200.0
+ 16 20180802 000059.SZ 7.077480e+08 587805.0 49392632.0 78900.0
+ 17 20180802 000060.SZ 1.425264e+09 2372025.0 21992232.0 520181.0
+ 18 20180802 000061.SZ 6.317999e+08 547716.0 5760238.0 105128.0
+ 19 20180802 000062.SZ 5.627777e+08 795577.0 3060551.0 39191.0
+ 20 20180802 000063.SZ 2.581872e+09 3873697.0 194982814.0 276101.0
+
+ rzche rqchl rqmcl rzrqye
+ 0 147005397.0 544400.0 260000.0 4.439049e+09
+ 1 133408689.0 437600.0 516700.0 2.643843e+09
+ 2 16084617.0 90000.0 100.0 8.224767e+08
+ 3 11337406.0 80000.0 2000.0 1.318249e+09
+ 4 8260616.0 0.0 26700.0 6.423979e+08
+ 5 8464082.0 10000.0 19400.0 1.909037e+08
+ 6 2999201.0 21700.0 0.0 3.584250e+08
+ 7 4526179.0 4400.0 0.0 2.890302e+08
+ 8 1906548.0 14140.0 171700.0 1.085755e+08
+ 9 4193433.0 37600.0 7500.0 5.660775e+08
+ 10 5291427.0 0.0 0.0 3.980587e+08
+ 11 24101032.0 1700.0 33900.0 1.050472e+09
+ 12 2852687.0 17200.0 0.0 3.497134e+08
+ 13 8927796.0 147100.0 48600.0 7.243127e+08
+ 14 12113754.0 1800.0 12900.0 3.932874e+08
+ 15 59634348.0 0.0 8600.0 1.884951e+09
+ 16 52573324.0 0.0 69700.0 7.083358e+08
+ 17 19472310.0 365340.0 458531.0 1.427636e+09
+ 18 3299825.0 6000.0 46728.0 6.323476e+08
+ 19 9640216.0 7420.0 32296.0 5.635733e+08
+ 20 201355327.0 63900.0 10900.0 2.585746e+09
+
+
+**่ฏดๆ˜Ž**
+
+ๆœฌๆŠฅ่กจๅŸบไบŽ่ฏๅˆธๅ…ฌๅธๆŠฅ้€็š„่ž่ต„่žๅˆธไฝ™้ขๆ•ฐๆฎๆฑ‡ๆ€ป็”Ÿๆˆ๏ผŒๅ…ถไธญ๏ผš
+ๆœฌๆ—ฅ่ž่ต„ไฝ™้ข(ๅ…ƒ)=ๅ‰ๆ—ฅ่ž่ต„ไฝ™้ข๏ผ‹ๆœฌๆ—ฅ่ž่ต„ไนฐๅ…ฅ-ๆœฌๆ—ฅ่ž่ต„ๅฟ่ฟ˜้ข
+ๆœฌๆ—ฅ่žๅˆธไฝ™้‡(่‚ก)=ๅ‰ๆ—ฅ่žๅˆธไฝ™้‡๏ผ‹ๆœฌๆ—ฅ่žๅˆธๅ–ๅ‡บ้‡-ๆœฌๆ—ฅ่žๅˆธไนฐๅ…ฅ้‡-ๆœฌๆ—ฅ็Žฐๅˆธๅฟ่ฟ˜้‡
+ๆœฌๆ—ฅ่žๅˆธไฝ™้ข(ๅ…ƒ)=ๆœฌๆ—ฅ่žๅˆธไฝ™้‡ร—ๆœฌๆ—ฅๆ”ถ็›˜ไปท
+ๆœฌๆ—ฅ่ž่ต„่žๅˆธไฝ™้ข(ๅ…ƒ)=ๆœฌๆ—ฅ่ž่ต„ไฝ™้ข๏ผ‹ๆœฌๆ—ฅ่žๅˆธไฝ™้ข
+
+
+ๅ•ไฝ่ฏดๆ˜Ž๏ผš่‚ก๏ผˆๆ ‡็š„่ฏๅˆธไธบ่‚ก็ฅจ๏ผ‰ใ€ไปฝ๏ผˆๆ ‡็š„่ฏๅˆธไธบๅŸบ้‡‘๏ผ‰ใ€ๆ‰‹๏ผˆๆ ‡็š„่ฏๅˆธไธบๅ€บๅˆธ๏ผ‰ใ€‚
+
+2014ๅนด9ๆœˆ22ๆ—ฅ่ตท๏ผŒโ€œ่ž่ต„่žๅˆธไบคๆ˜“ๆ€ป้‡โ€ๆ•ฐๆฎๅŒ…ๅซ่ฐƒๅ‡บๆ ‡็š„่ฏๅˆธๅๅ•็š„่ฏๅˆธ็š„่ž่ต„่žๅˆธไฝ™้ขใ€‚
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273.md"
new file mode 100644
index 000000000..8ef39f7c8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273.md"
@@ -0,0 +1,82 @@
+## ่ž่ต„่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป
+----
+
+ๆŽฅๅฃ๏ผšmargin
+ๆ่ฟฐ๏ผš่Žทๅ–่ž่ต„่žๅˆธๆฏๆ—ฅไบคๆ˜“ๆฑ‡ๆ€ปๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž4000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผš2000็งฏๅˆ†ๅฏ่Žทๅพ—ๆœฌๆŽฅๅฃๆƒ้™๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“ๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange_id | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ ๏ผˆSSEไธŠไบคๆ‰€SZSEๆทฑไบคๆ‰€BSEๅŒ—ไบคๆ‰€๏ผ‰
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+<br>
+<br>
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+exchange_id | str | ไบคๆ˜“ๆ‰€ไปฃ็ ๏ผˆSSEไธŠไบคๆ‰€SZSEๆทฑไบคๆ‰€BSEๅŒ—ไบคๆ‰€๏ผ‰
+rzye | float | ่ž่ต„ไฝ™้ข(ๅ…ƒ)
+rzmre | float | ่ž่ต„ไนฐๅ…ฅ้ข(ๅ…ƒ)
+rzche | float | ่ž่ต„ๅฟ่ฟ˜้ข(ๅ…ƒ)
+rqye | float | ่žๅˆธไฝ™้ข(ๅ…ƒ)
+rqmcl | float | ่žๅˆธๅ–ๅ‡บ้‡(่‚ก,ไปฝ,ๆ‰‹)
+rzrqye | float | ่ž่ต„่žๅˆธไฝ™้ข(ๅ…ƒ)
+rqyl | float | ่žๅˆธไฝ™้‡(่‚ก,ไปฝ,ๆ‰‹)
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.margin(trade_date='20180802')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('margin', trade_date='20180802', exchange_id='SSE')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date exchange_id rzye rzmre rzche \
+ 0 20180802 SZSE 3.495054e+11 1.347549e+10 1.463921e+10
+ 1 20180802 SSE 5.311746e+11 1.484584e+10 1.573947e+10
+
+ rqye rqmcl rzrqye
+ 0 1.083380e+09 24418046.0 3.505888e+11
+ 1 6.029618e+09 83721012.0 5.372042e+11
+
+
+
+**่ฏดๆ˜Ž**
+่ž่ต„่žๅˆธๆ•ฐๆฎไปŽ่ฏๅˆธไบคๆ˜“ๆ‰€็ฝ‘็ซ™็›ดๆŽฅ่Žทๅ–๏ผŒๆไพ›ไบ†ๆœ‰่ฎฐๅฝ•ไปฅๆฅ็š„ๅ…จ้ƒจๆฑ‡ๆ€ปๅ’Œๆ˜Ž็ป†ๆ•ฐๆฎใ€‚
+ๆ นๆฎไบคๆ‰€็ฝ‘็ซ™ๆ็คบ๏ผšๆ•ฐๆฎๆ นๆฎๅˆธๅ•†็”ณๆŠฅ็š„ๆ•ฐๆฎๆฑ‡ๆ€ป๏ผŒ็”ฑๅˆธๅ•†ไฟ่ฏๆ•ฐๆฎ็š„็œŸๅฎžใ€ๅฎŒๆ•ดใ€ๅ‡†็กฎใ€‚
+
+ๅ…ถไธญ๏ผš
+ๆœฌๆ—ฅ่ž่ต„ไฝ™้ข(ๅ…ƒ)=ๅ‰ๆ—ฅ่ž่ต„ไฝ™้ข๏ผ‹ๆœฌๆ—ฅ่ž่ต„ไนฐๅ…ฅ-ๆœฌๆ—ฅ่ž่ต„ๅฟ่ฟ˜้ข
+ๆœฌๆ—ฅ่žๅˆธไฝ™้‡(่‚ก)=ๅ‰ๆ—ฅ่žๅˆธไฝ™้‡๏ผ‹ๆœฌๆ—ฅ่žๅˆธๅ–ๅ‡บ้‡-ๆœฌๆ—ฅ่žๅˆธไนฐๅ…ฅ้‡-ๆœฌๆ—ฅ็Žฐๅˆธๅฟ่ฟ˜้‡
+ๆœฌๆ—ฅ่žๅˆธไฝ™้ข(ๅ…ƒ)=ๆœฌๆ—ฅ่žๅˆธไฝ™้‡ร—ๆœฌๆ—ฅๆ”ถ็›˜ไปท
+ๆœฌๆ—ฅ่ž่ต„่žๅˆธไฝ™้ข(ๅ…ƒ)=ๆœฌๆ—ฅ่ž่ต„ไฝ™้ข๏ผ‹ๆœฌๆ—ฅ่žๅˆธไฝ™้ข
+
+2014ๅนด9ๆœˆ22ๆ—ฅ่ตท๏ผŒโ€œ่ž่ต„่žๅˆธไบคๆ˜“ๆ€ป้‡โ€ๆ•ฐๆฎๅŒ…ๅซ่ฐƒๅ‡บๆ ‡็š„่ฏๅˆธๅๅ•็š„่ฏๅˆธ็š„่ž่ต„่žๅˆธไฝ™้ข
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\346\240\207\347\232\204(\347\233\230\345\211\215).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\346\240\207\347\232\204(\347\233\230\345\211\215).md"
new file mode 100644
index 000000000..2052c4533
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\236\215\350\265\204\350\236\215\345\210\270\346\240\207\347\232\204(\347\233\230\345\211\215).md"
@@ -0,0 +1,67 @@
+## ่ž่ต„่žๅˆธๆ ‡็š„๏ผˆ็›˜ๅ‰ๆ›ดๆ–ฐ๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmargin_secs
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑไบฌไธ‰ๅคงไบคๆ˜“ๆ‰€่ž่ต„่žๅˆธๆ ‡็š„๏ผˆๅŒ…ๆ‹ฌETF๏ผ‰๏ผŒๆฏๅคฉ็›˜ๅ‰ๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ใ€ไบคๆ˜“ๆ—ฅๆœŸใ€ไบคๆ˜“ๆ‰€ไปฃ็ ๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ๆ— ๆ€ป้‡้™ๅˆถ๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“ๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆ ‡็š„ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅ
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆSSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€ BSEๅŒ—ไบคๆ‰€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๆ ‡็š„ไปฃ็ 
+name | str | Y | ๆ ‡็š„ๅ็งฐ
+exchange | str | Y | ไบคๆ˜“ๆ‰€
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–2024ๅนด4ๆœˆ17ๆ—ฅไธŠไบคๆ‰€่ž่ต„่žๅˆธๆ ‡็š„
+df = pro.margin_secs(trade_date='20240417', exchange='SSE')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name exchange
+ 0 20240417 510050 .SH 50ETF SSE
+ 1 20240417 510100 .SH SZ50ETF SSE
+ 2 20240417 510150 .SH ๆถˆ่ดนETF SSE
+ 3 20240417 510180 .SH 180ETF SSE
+ 4 20240417 510210 .SH ็ปผๆŒ‡ETF SSE
+ ... ... ... ... ...
+ 1781 20240417 688799 .SH ๅŽ็บณ่ฏๅŽ‚ SSE
+ 1782 20240417 688800 .SH ็‘žๅฏ่พพ SSE
+ 1783 20240417 688819 .SH ๅคฉ่ƒฝ่‚กไปฝ SSE
+ 1784 20240417 688981 .SH ไธญ่Šฏๅ›ฝ้™… SSE
+ 1785 20240417 689009 .SH ไนๅทๅ…ฌๅธ SSE
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206(\345\201\234).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206(\345\201\234).md"
new file mode 100644
index 000000000..f807c5db9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\230\216\347\273\206(\345\201\234).md"
@@ -0,0 +1,66 @@
+## ่ฝฌ่žๅˆธไบคๆ˜“ๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšslb_sec_detail
+ๆ่ฟฐ๏ผš่ฝฌ่žๅˆธไบคๆ˜“ๆ˜Ž็ป†
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–5000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๅކๅฒ
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๆฏๅˆ†้’Ÿ่ฏทๆฑ‚200ๆฌก๏ผŒ5000็งฏๅˆ†500ๆฌก่ฏทๆฑ‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+tenor | str | Y | ๆœŸ ้™(ๅคฉ)
+fee_rate | float | Y | ่žๅ‡บ่ดน็އ(%)
+lent_qnt | float | Y | ่ฝฌ่žๅˆธ่žๅ‡บๆ•ฐ้‡(ไธ‡่‚ก)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.slb_sec_detail(trade_date='20240620')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code name tenor fee_rate lent_qnt
+ 0 20240620 000001.SZ ๅนณๅฎ‰้“ถ่กŒ 14 2.20 1.43
+ 1 20240620 000002.SZ ไธ‡็ง‘๏ผก 14 4.60 2.27
+ 2 20240620 000009.SZ ไธญๅ›ฝๅฎๅฎ‰ 14 7.10 0.66
+ 3 20240620 000016.SZ ๆทฑๅบทไฝณ๏ผก 14 1.40 9.68
+ 4 20240620 000031.SZ ๅคงๆ‚ฆๅŸŽ 14 3.80 0.22
+ .. ... ... ... ... ... ...
+ 932 20240620 688789.SH ๅฎๅŽๆ•ฐ็ง‘ 14 1.40 0.84
+ 933 20240620 688798.SH XD่‰พไธบ็”ต 14 1.40 1.32
+ 934 20240620 688819.SH ๅคฉ่ƒฝ่‚กไปฝ 14 2.10 0.74
+ 935 20240620 688981.SH ไธญ่Šฏๅ›ฝ้™… 14 3.10 0.10
+ 936 20240620 689009.SH ไนๅทๅ…ฌๅธ 14 1.40 5.72
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md"
new file mode 100644
index 000000000..12099f5fd
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\345\210\270\344\272\244\346\230\223\346\261\207\346\200\273(\345\201\234).md"
@@ -0,0 +1,67 @@
+## ่ฝฌ่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป
+----
+
+ๆŽฅๅฃ๏ผšslb_sec
+ๆ่ฟฐ๏ผš่ฝฌ่ž้€š่ฝฌ่žๅˆธไบคๆ˜“ๆฑ‡ๆ€ป
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–5000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๅކๅฒ
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๆฏๅˆ†้’Ÿ่ฏทๆฑ‚200ๆฌก๏ผŒ5000็งฏๅˆ†500ๆฌก่ฏทๆฑ‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+ope_inv | float | Y | ๆœŸๅˆไฝ™้‡(ไธ‡่‚ก)
+lent_qnt | float | Y | ่ฝฌ่žๅˆธ่žๅ‡บๆ•ฐ้‡(ไธ‡่‚ก)
+cls_inv | float | Y | ๆœŸๆœซไฝ™้‡(ไธ‡่‚ก)
+end_bal | float | Y | ๆœŸๆœซไฝ™้ข(ไธ‡ๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.slb_sec(trade_date='20240620')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code name ope_inv lent_qnt cls_inv end_bal
+ 0 20240620 000001.SZ ๅนณๅฎ‰้“ถ่กŒ 186.97 1.43 188.40 2004.70
+ 1 20240620 000002.SZ ไธ‡็ง‘๏ผก 3456.26 3.18 3376.80 24346.73
+ 2 20240620 000006.SZ ๆทฑๆŒฏไธš๏ผก 17.08 None 17.08 64.56
+ 3 20240620 000008.SZ ็ฅžๅทž้ซ˜้“ 17.07 None 17.07 33.97
+ 4 20240620 000009.SZ ไธญๅ›ฝๅฎๅฎ‰ 315.61 0.66 310.56 2822.99
+ ... ... ... ... ... ... ... ...
+ 2249 20240620 688798.SH XD่‰พไธบ็”ต 65.35 1.32 63.40 3727.91
+ 2250 20240620 688800.SH ็‘žๅฏ่พพ 6.49 None 6.36 191.18
+ 2251 20240620 688819.SH ๅคฉ่ƒฝ่‚กไปฝ 108.34 1.05 108.44 2717.34
+ 2252 20240620 688981.SH ไธญ่Šฏๅ›ฝ้™… 303.00 22.45 315.30 15386.64
+ 2253 20240620 689009.SH ไนๅทๅ…ฌๅธ 259.35 5.72 253.62 10583.56
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\350\265\204\344\272\244\346\230\223\346\261\207\346\200\273.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\350\265\204\344\272\244\346\230\223\346\261\207\346\200\273.md"
new file mode 100644
index 000000000..716fa8497
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\344\270\244\350\236\215\345\217\212\350\275\254\350\236\215\351\200\232/\350\275\254\350\236\215\350\265\204\344\272\244\346\230\223\346\261\207\346\200\273.md"
@@ -0,0 +1,66 @@
+## ่ฝฌ่ž่ต„ไบคๆ˜“ๆฑ‡ๆ€ป
+----
+
+ๆŽฅๅฃ๏ผšslb_len
+ๆ่ฟฐ๏ผš่ฝฌ่ž้€š่ž่ต„ๆฑ‡ๆ€ป
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅๆๅ–5000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ๆ‰€ๆœ‰ๅކๅฒ
+็งฏๅˆ†๏ผš2000็งฏๅˆ†ๆฏๅˆ†้’Ÿ่ฏทๆฑ‚200ๆฌก๏ผŒ5000็งฏๅˆ†500ๆฌก่ฏทๆฑ‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ob | float | Y | ๆœŸๅˆไฝ™้ข(ไบฟๅ…ƒ)
+auc_amount | float | Y | ็ซžไปทๆˆไบค้‡‘้ข(ไบฟๅ…ƒ)
+repo_amount | float | Y | ๅ†ๅ€Ÿๆˆไบค้‡‘้ข(ไบฟๅ…ƒ)
+repay_amount | float | Y | ๅฟ่ฟ˜้‡‘้ข(ไบฟๅ…ƒ)
+cb | float | Y | ๆœŸๆœซไฝ™้ข(ไบฟๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.slb_len(start_date='20240601', end_date='20240620')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ob auc_amount repo_amount repay_amount cb
+ 0 20240620 1435.50 None 3.10 3.10 1435.50
+ 1 20240619 1435.50 None 2.70 2.70 1435.50
+ 2 20240618 1440.20 None 29.50 34.20 1435.50
+ 3 20240617 1442.20 None 3.00 5.00 1440.20
+ 4 20240614 1442.20 None None None 1442.20
+ 5 20240613 1445.20 None 2.90 5.90 1442.20
+ 6 20240612 1445.20 None 3.30 3.30 1445.20
+ 7 20240611 1454.20 None 2.70 11.70 1445.20
+ 8 20240607 1454.20 None None None 1454.20
+ 9 20240606 1454.20 None 26.00 26.00 1454.20
+ 10 20240605 1455.60 None 6.00 7.40 1454.20
+ 11 20240604 1406.00 50.00 6.40 6.80 1455.60
+ 12 20240603 1406.00 None 1.00 1.00 1406.00
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\346\265\201\351\200\232\350\202\241\344\270\234.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\346\265\201\351\200\232\350\202\241\344\270\234.md"
new file mode 100644
index 000000000..75f133f5e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\346\265\201\351\200\232\350\202\241\344\270\234.md"
@@ -0,0 +1,64 @@
+## ๅ‰ๅๅคงๆต้€š่‚กไธœ
+----
+
+ๆŽฅๅฃ๏ผštop10_floatholders
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ‰ๅๅคงๆต้€š่‚กไธœๆ•ฐๆฎ
+็งฏๅˆ†๏ผš้œ€2000็งฏๅˆ†ไปฅไธŠๆ‰ๅฏไปฅ่ฐƒๅ–ๆœฌๆŽฅๅฃ๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌกไผšๆ›ด้ซ˜
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ€่ˆฌไธบๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ๏ผ‰
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+holder_name | str | ่‚กไธœๅ็งฐ
+hold_amount | float | ๆŒๆœ‰ๆ•ฐ้‡๏ผˆ่‚ก๏ผ‰
+hold_ratio | float | ๅ ๆ€ป่‚กๆœฌๆฏ”ไพ‹(%)
+hold_float_ratio | float | ๅ ๆต้€š่‚กๆœฌๆฏ”ไพ‹(%)
+hold_change | float | ๆŒ่‚กๅ˜ๅŠจ
+holder_type | str | ่‚กไธœ็ฑปๅž‹
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.top10_floatholders(ts_code='600000.SH', start_date='20170101', end_date='20171231')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('top10_floatholders', ts_code='600000.SH', start_date='20170101', end_date='20171231')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date holder_name hold_amount
+ 0 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-่ต„ๆœฌ้‡‘ 1.763232e+09
+ 1 600000.SH 20180428 20171231 ไธŠๆตทๅ›ฝ้™…้›†ๅ›ขๆœ‰้™ๅ…ฌๅธ 5.489319e+09
+ 2 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-ไผ ็ปŸ 2.779437e+09
+ 3 600000.SH 20180428 20171231 ไธญๅ›ฝ่ฏๅˆธ้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธ 1.216979e+09
+ 4 600000.SH 20180428 20171231 ๆขงๆกๆ ‘ๆŠ•่ต„ๅนณๅฐๆœ‰้™่ดฃไปปๅ…ฌๅธ 8.861313e+08
+ 5 600000.SH 20180428 20171231 ไธŠๆตทไธŠๅ›ฝๆŠ•่ต„ไบง็ฎก็†ๆœ‰้™ๅ…ฌๅธ 1.395571e+09
+ 6 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-ไธ‡่ƒฝH 1.270429e+09
+ 7 600000.SH 20180428 20171231 ไธŠๆตทๅ›ฝ้‘ซๆŠ•่ต„ๅ‘ๅฑ•ๆœ‰้™ๅ…ฌๅธ 5.392559e+08
+ 8 600000.SH 20180428 20171231 ไธญๅคฎๆฑ‡้‡‘่ต„ไบง็ฎก็†ๆœ‰้™่ดฃไปปๅ…ฌๅธ 3.985214e+08
+ 9 600000.SH 20180428 20171231 ไธญๅ›ฝ็งปๅŠจ้€šไฟก้›†ๅ›ขๅนฟไธœๆœ‰้™ๅ…ฌๅธ 5.334893e+09
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\350\202\241\344\270\234.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\350\202\241\344\270\234.md"
new file mode 100644
index 000000000..092ab5ffe
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\211\215\345\215\201\345\244\247\350\202\241\344\270\234.md"
@@ -0,0 +1,65 @@
+## ๅ‰ๅๅคง่‚กไธœ
+----
+
+ๆŽฅๅฃ๏ผštop10_holders
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ‰ๅๅคง่‚กไธœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌๆŒๆœ‰ๆ•ฐ้‡ๅ’Œๆฏ”ไพ‹็ญ‰ไฟกๆฏ
+็งฏๅˆ†๏ผš้œ€2000็งฏๅˆ†ไปฅไธŠๆ‰ๅฏไปฅ่ฐƒๅ–ๆœฌๆŽฅๅฃ๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌกไผšๆ›ด้ซ˜
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ€่ˆฌไธบๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ๏ผ‰
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+holder_name | str | ่‚กไธœๅ็งฐ
+hold_amount | float | ๆŒๆœ‰ๆ•ฐ้‡๏ผˆ่‚ก๏ผ‰
+hold_ratio | float | ๅ ๆ€ป่‚กๆœฌๆฏ”ไพ‹(%)
+hold_float_ratio | float | ๅ ๆต้€š่‚กๆœฌๆฏ”ไพ‹(%)
+hold_change | float | ๆŒ่‚กๅ˜ๅŠจ
+holder_type | str | ่‚กไธœ็ฑปๅž‹
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.top10_holders(ts_code='600000.SH', start_date='20170101', end_date='20171231')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('top10_holders', ts_code='600000.SH', start_date='20170101', end_date='20171231')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date holder_name hold_amount hold_ratio
+ 0 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-ไผ ็ปŸ 2.779437e+09 9.47
+ 1 600000.SH 20180428 20171231 ไธŠๆตทๅ›ฝ้‘ซๆŠ•่ต„ๅ‘ๅฑ•ๆœ‰้™ๅ…ฌๅธ 9.455690e+08 3.22
+ 2 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-ไธ‡่ƒฝH 1.270429e+09 4.33
+ 3 600000.SH 20180428 20171231 ๅฏŒๅพท็”Ÿๅ‘ฝไบบๅฏฟไฟ้™ฉ่‚กไปฝๆœ‰้™ๅ…ฌๅธ-่ต„ๆœฌ้‡‘ 1.763232e+09 6.01
+ 4 600000.SH 20180428 20171231 ไธŠๆตทๅ›ฝ้™…้›†ๅ›ขๆœ‰้™ๅ…ฌๅธ 6.331323e+09 21.57
+ 5 600000.SH 20180428 20171231 ไธญๅ›ฝ็งปๅŠจ้€šไฟก้›†ๅ›ขๅนฟไธœๆœ‰้™ๅ…ฌๅธ 5.334893e+09 18.18
+ 6 600000.SH 20180428 20171231 ไธญๅ›ฝ่ฏๅˆธ้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธ 1.216979e+09 4.15
+ 7 600000.SH 20180428 20171231 ๆขงๆกๆ ‘ๆŠ•่ต„ๅนณๅฐๆœ‰้™่ดฃไปปๅ…ฌๅธ 8.861313e+08 3.02
+ 8 600000.SH 20180428 20171231 ไธญๅคฎๆฑ‡้‡‘่ต„ไบง็ฎก็†ๆœ‰้™่ดฃไปปๅ…ฌๅธ 3.985214e+08 1.36
+ 9 600000.SH 20180428 20171231 ไธŠๆตทไธŠๅ›ฝๆŠ•่ต„ไบง็ฎก็†ๆœ‰้™ๅ…ฌๅธ 1.395571e+09 4.75
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\244\247\345\256\227\344\272\244\346\230\223.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\244\247\345\256\227\344\272\244\346\230\223.md"
new file mode 100644
index 000000000..8d14f99cd
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\345\244\247\345\256\227\344\272\244\346\230\223.md"
@@ -0,0 +1,94 @@
+## ๅคงๅฎ—ไบคๆ˜“
+----
+
+ๆŽฅๅฃ๏ผšblock_trade
+ๆ่ฟฐ๏ผšๅคงๅฎ—ไบคๆ˜“
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000ๆก๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš300็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๆฏๅˆ†้’Ÿๅ†…้™ๅˆถๆฌกๆ•ฐ๏ผŒ่ถ…่ฟ‡5000็งฏๅˆ†้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ ๏ผˆ่‚ก็ฅจไปฃ็ ๅ’Œๆ—ฅๆœŸ่‡ณๅฐ‘่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๅކ
+price | float | Y | ๆˆไบคไปท
+vol | float | Y | ๆˆไบค้‡๏ผˆไธ‡่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข
+buyer | str | Y | ไนฐๆ–น่ฅไธš้ƒจ
+seller | str | Y | ๅ–ๆ–น่ฅไธš้ƒจ
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.block_trade(trade_date='20181227')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date price vol amount \
+ 0 600436.SH 20181227 86.95 9.49 825.16
+ 1 603160.SH 20181227 70.00 28.57 2000.00
+ 2 601318.SH 20181227 55.76 1800.00 100368.00
+ 3 601318.SH 20181227 55.76 332.00 18512.32
+ 4 601318.SH 20181227 55.76 288.00 16058.88
+ 5 601318.SH 20181227 55.76 170.00 9479.20
+ 6 601318.SH 20181227 55.76 72.00 4014.72
+ 7 603508.SH 20181227 35.72 56.00 2000.32
+ 8 600681.SH 20181227 10.69 111.00 1186.59
+ 9 603606.SH 20181227 8.93 23.92 213.61
+ 10 601108.SH 20181227 6.76 2000.00 13520.00
+ 11 601108.SH 20181227 6.41 700.00 4487.00
+ 12 600746.SH 20181227 5.75 244.71 1407.08
+ 13 600016.SH 20181227 5.65 1326.00 7491.90
+ 14 600016.SH 20181227 5.54 3500.00 19390.00
+ 15 601011.SH 20181227 5.00 659.26 3296.30
+ 16 601011.SH 20181227 5.00 596.75 2983.77
+ 17 600984.SH 20181227 4.96 296.00 1468.16
+ 18 601398.SH 20181227 4.74 172.20 816.23
+
+ buyer seller
+ 0 ๅฎ‰ไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝไบคๅญๅคง้“่ฏๅˆธ่ฅไธš้ƒจ ๅฎ‰ไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝไบคๅญๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ 1 ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจ ้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๅทจ้พ™ๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ 2 ๆ’ๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจ ๆœบๆž„ไธ“็”จ
+ 3 ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅˆ่‚ฅๆข…ๅฑฑ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 4 ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅพๆฑ‡ๅŒบๅคฉ้’ฅๆกฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 5 ไธœๅ…ด่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท่‚‡ๅ˜‰ๆตœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 6 ้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่†ๅทžๅŒ—ไบฌ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 7 ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ…ฌๅธๆ€ป้ƒจ ๆฑŸๆตท่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆฐ‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ 8 ๅ›ฝไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆŒฏๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ไธญ่ˆช่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆ˜ฅ้ฃŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ 9 ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟๅทžๅคฉๆฒณๅŒ—่ทฏๅคง้ƒฝไผšๅนฟๅœบ่ฏๅˆธ่ฅไธš้ƒจ ็ฌฌไธ€ๅˆ›ไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆทฑๅ—ๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ 10 ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅปบๅ›ฝ้—จๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ ่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžไฝ“่‚ฒ้ฆ†่ฏๅˆธ่ฅไธš้ƒจ
+ 11 ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅบ†ๆ˜ฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทณๅฎ‰ๆ–ฐๅฎ‰ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ 12 ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้•‡ๆฑŸๆญฃไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจ(้ž่ฅไธšๅœบๆ‰€)
+ 13 ๅคชๅนณๆด‹่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จ้ซ˜ๆž—ไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๅŽ็ฆ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅŽฆ้—จๆน–ๆปจๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ 14 ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅฎ‰ๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ ๆœบๆž„ไธ“็”จ
+ 15 ไธญๅ›ฝไธญๆŠ•่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅˆ่‚ฅ้•ฟๆฑŸไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธญๅฑฑไธญๅฑฑๅ››่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ 16 ไธญๅ›ฝไธญๆŠ•่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅˆ่‚ฅ้•ฟๆฑŸไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅ…‰ๅŽ่ทฏ่ฅไธš้ƒจ
+ 17 ่ดขๅฏŒ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ้•ฟๆฒ™ๅ…ซไธ€่ทฏ่ฏๅˆธ่ฅไธš้ƒจ ไธญ่ˆช่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๆ…งๅฟ ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ 18 ไนๅทž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡ๅบ†ๅˆ†ๅ…ฌๅธ ไนๅทž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡ๅบ†ๅˆ†ๅ…ฌๅธ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\344\272\272\346\225\260.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\344\272\272\346\225\260.md"
new file mode 100644
index 000000000..0f3839b67
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\344\272\272\346\225\260.md"
@@ -0,0 +1,68 @@
+## ่‚กไธœไบบๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšstk_holdernumber
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่‚กไธœๆˆทๆ•ฐๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไธๅฎšๆœŸๅ…ฌๅธƒ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000,ๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅŸบ็ก€็งฏๅˆ†ๆฏๅˆ†้’Ÿ่ฐƒๅ–100ๆฌก๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜ใ€‚ๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+enddate | str | N | ๆˆชๆญขๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆˆชๆญขๆ—ฅๆœŸ
+holder_num | int | Y | ่‚กไธœๆˆทๆ•ฐ
+
+<br>
+<br>
+
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.stk_holdernumber(ts_code='300199.SZ', start_date='20160101', end_date='20181231')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date end_date holder_num
+ 0 300199.SZ 20181025 20180930 25135
+ 1 300199.SZ 20180808 20180630 25785
+ 2 300199.SZ 20180426 20180331 23384
+ 3 300199.SZ 20180316 20180228 23490
+ 4 300199.SZ 20180316 20171231 24086
+ 5 300199.SZ 20171026 20170930 24121
+ 6 300199.SZ 20170817 20170630 26271
+ 7 300199.SZ 20170427 20170331 24531
+ 8 300199.SZ 20170427 20161231 22972
+ 9 300199.SZ 20161028 20161027 19787
+ 10 300199.SZ 20161027 20160930 19787
+ 11 300199.SZ 20160804 20160630 20050
+ 12 300199.SZ 20160428 20160331 23367
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\345\242\236\345\207\217\346\214\201.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\345\242\236\345\207\217\346\214\201.md"
new file mode 100644
index 000000000..3b40aad6f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\344\270\234\345\242\236\345\207\217\346\214\201.md"
@@ -0,0 +1,92 @@
+## ่‚กไธœๅขžๅ‡ๆŒ
+----
+
+ๆŽฅๅฃ๏ผšstk_holdertrade
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅขžๅ‡ๆŒๆ•ฐๆฎ๏ผŒไบ†่งฃ้‡่ฆ่‚กไธœ่ฟ‘ๆœŸๅŠๅކๅฒไธŠ็š„่‚กไปฝๅขžๅ‡ๅ˜ๅŒ–
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–3000่กŒ่ฎฐๅฝ•๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–ใ€‚ๅŸบ็ก€็งฏๅˆ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒ5000็งฏๅˆ†ไปฅไธŠๆ— ๆ˜Žๆ˜พ้™ๅˆถ๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+trade_type | str | N | ไบคๆ˜“็ฑปๅž‹INๅขžๆŒDEๅ‡ๆŒ
+holder_type | str | N | ่‚กไธœ็ฑปๅž‹Cๅ…ฌๅธPไธชไบบG้ซ˜็ฎก
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+holder_name | str | Y | ่‚กไธœๅ็งฐ
+holder_type | str | Y | ่‚กไธœ็ฑปๅž‹G้ซ˜็ฎกPไธชไบบCๅ…ฌๅธ
+in_de | str | Y | ็ฑปๅž‹INๅขžๆŒDEๅ‡ๆŒ
+change_vol | float | Y | ๅ˜ๅŠจๆ•ฐ้‡
+change_ratio | float | Y | ๅ ๆต้€šๆฏ”ไพ‹๏ผˆ%๏ผ‰
+after_share | float | Y | ๅ˜ๅŠจๅŽๆŒ่‚ก
+after_ratio | float | Y | ๅ˜ๅŠจๅŽๅ ๆต้€šๆฏ”ไพ‹๏ผˆ%๏ผ‰
+avg_price | float | Y | ๅนณๅ‡ไปทๆ ผ
+total_share | float | Y | ๆŒ่‚กๆ€ปๆ•ฐ
+begin_date | str | N | ๅขžๅ‡ๆŒๅผ€ๅง‹ๆ—ฅๆœŸ
+close_date | str | N | ๅขžๅ‡ๆŒ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจๅขžๅ‡ๆŒๆ•ฐๆฎ
+df = pro.stk_holdertrade(ann_date='20190426')
+
+#่Žทๅ–ๅ•ไธช่‚ก็ฅจๆ•ฐๆฎ
+df = pro.stk_holdertrade(ts_code='002149.SZ')
+
+#่Žทๅ–ๅฝ“ๆ—ฅๅขžๆŒๆ•ฐๆฎ
+df = pro.stk_holdertrade(ann_date='20190426', trade_type='IN')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date holder_name holder_type in_de \
+ 0 300216.SZ 20190426 ้ƒ‘ๅ›ฝ่ƒœ P DE
+ 1 300216.SZ 20190426 ้ป„็››็ง‹ P DE
+ 2 300216.SZ 20190426 ๅˆ˜็‡• G DE
+ 3 300216.SZ 20190426 ้‚“้“ๅฑฑ G DE
+ 4 002806.SZ 20190426 ๅนฟไธœ็œ็ง‘ๆŠ€ๅˆ›ไธšๆŠ•่ต„ๆœ‰้™ๅ…ฌๅธ C DE
+ 5 603801.SH 20190426 ๅฐšๅฟ—ๆœ‰้™ๅ…ฌๅธ C DE
+ 6 600728.SH 20190426 ้‡ๅบ†ไธญๆ–ฐ่ž้‘ซๆŠ•่ต„ไธญๅฟƒ(ๆœ‰้™ๅˆไผ™) C DE
+ 7 300115.SZ 20190426 ๆ–ฐ็–†้•ฟ็›ˆ็ฒคๅฏŒ่‚กๆƒๆŠ•่ต„ๆœ‰้™ๅ…ฌๅธ C DE
+ 8 300115.SZ 20190426 ๆ–ฐ็–†้•ฟ็›ˆ็ฒคๅฏŒ่‚กๆƒๆŠ•่ต„ๆœ‰้™ๅ…ฌๅธ C DE
+ 9 601288.SH 20190426 ไธŠๆตท้”ฆๆฑŸๅ›ฝ้™…ๆ—…ๆธธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ C DE
+ 10 603906.SH 20190426 ๅปบๆŠ•ๅ˜‰้ฉฐ(ไธŠๆตท)ๆŠ•่ต„ๆœ‰้™ๅ…ฌๅธ C DE
+
+ change_vol change_ratio after_share after_ratio avg_price total_share
+ 0 387871.0 0.1356 3385659.0 1.1834 3.8100 3385659.0
+ 1 49056.0 0.0171 1194457.0 0.4175 3.7800 1194457.0
+ 2 498062.0 0.1741 0.0 NaN 3.6700 8892000.0
+ 3 2358900.0 0.8245 25.0 0.0000 3.2100 7076800.0
+ 4 1086100.0 1.8826 10836700.0 18.7838 21.5100 25499200.0
+ 5 3200000.0 3.8450 6808299.0 8.1806 31.5500 6808299.0
+ 6 14710000.0 0.9170 76942195.0 4.7965 9.9400 76942195.0
+ 7 9470000.0 1.0457 378846759.0 41.8343 13.6400 378846759.0
+ 8 8690000.0 0.9596 370156759.0 40.8748 13.6800 370156759.0
+ 9 14868500.0 0.0051 0.0 NaN NaN 0.0
+ 10 2540640.0 2.7223 22144800.0 23.7286 13.0241 22144800.0
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\346\230\216\347\273\206\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\346\230\216\347\273\206\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..710b66fea
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\346\230\216\347\273\206\346\225\260\346\215\256.md"
@@ -0,0 +1,64 @@
+## ่‚กๆƒ่ดจๆŠผๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšpledge_detail
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจ่ดจๆŠผๆ˜Ž็ป†ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+holder_name | str | Y | ่‚กไธœๅ็งฐ
+pledge_amount | float | Y | ่ดจๆŠผๆ•ฐ้‡๏ผˆไธ‡่‚ก๏ผ‰
+start_date | str | Y | ่ดจๆŠผๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | Y | ่ดจๆŠผ็ป“ๆŸๆ—ฅๆœŸ
+is_release | str | Y | ๆ˜ฏๅฆๅทฒ่งฃๆŠผ
+release_date | str | Y | ่งฃๆŠผๆ—ฅๆœŸ
+pledgor | str | Y | ่ดจๆŠผๆ–น
+holding_amount | float | Y | ๆŒ่‚กๆ€ปๆ•ฐ๏ผˆไธ‡่‚ก๏ผ‰
+pledged_amount | float | Y | ่ดจๆŠผๆ€ปๆ•ฐ๏ผˆไธ‡่‚ก๏ผ‰
+p_total_ratio | float | Y | ๆœฌๆฌก่ดจๆŠผๅ ๆ€ป่‚กๆœฌๆฏ”ไพ‹
+h_total_ratio | float | Y | ๆŒ่‚กๆ€ปๆ•ฐๅ ๆ€ป่‚กๆœฌๆฏ”ไพ‹
+is_buyback | str | Y | ๆ˜ฏๅฆๅ›ž่ดญ๏ผˆ0ๅฆ 1ๆ˜ฏ๏ผ‰
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+```pyhton
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+
+df = pro.pledge_detail(ts_code='000014.SZ')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('pledge_detail', ts_code='000014.SZ')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date holder_name pledge_amount start_date \
+ 0 000014.SZ 20180106 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 500.0000 20171114
+ 1 000014.SZ 20180106 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 922.0055 20171114
+ 2 000014.SZ 20171221 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 600.0000 20171114
+ 3 000014.SZ 20171216 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 300.0000 20171114
+ 4 000014.SZ 20171111 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 2321.9955 20151127
+ 5 000014.SZ 20170616 ไธญ็ง‘ๆฑ‡้€š(ๆทฑๅœณ)่‚กๆƒๆŠ•่ต„ๅŸบ้‡‘ๆœ‰้™ๅ…ฌๅธ 0.0100 20151127
+ 6 000014.SZ 20060927 ๆทฑๅœณๅธ‚ๆฒ™ๆฒณๅฎžไธš(้›†ๅ›ข)ๆœ‰้™ๅ…ฌๅธ 1936.3698 20050119
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\347\273\237\350\256\241\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\347\273\237\350\256\241\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..6d9b4f630
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\346\235\203\350\264\250\346\212\274\347\273\237\350\256\241\346\225\260\346\215\256.md"
@@ -0,0 +1,67 @@
+## ่‚กๆƒ่ดจๆŠผ็ปŸ่ฎกๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšpledge_stat
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจ่ดจๆŠผ็ปŸ่ฎกๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+end_date | str | N | ๆˆชๆญขๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+end_date | str | Y | ๆˆชๆญขๆ—ฅๆœŸ
+pledge_count | int | Y | ่ดจๆŠผๆฌกๆ•ฐ
+unrest_pledge | float | Y | ๆ— ้™ๅ”ฎ่‚ก่ดจๆŠผๆ•ฐ้‡๏ผˆไธ‡๏ผ‰
+rest_pledge | float | Y | ้™ๅ”ฎ่‚กไปฝ่ดจๆŠผๆ•ฐ้‡๏ผˆไธ‡๏ผ‰
+total_share | float | Y | ๆ€ป่‚กๆœฌ
+pledge_ratio | float | Y | ่ดจๆŠผๆฏ”ไพ‹
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+```pyhton
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+
+df = pro.pledge_stat(ts_code='000014.SZ')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('pledge_stat', ts_code='000014.SZ')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code end_date pledge_count unrest_pledge rest_pledge \
+ 0 000014.SZ 20180928 23 63.16 0.0
+ 1 000014.SZ 20180921 24 63.17 0.0
+ 2 000014.SZ 20180914 24 63.17 0.0
+ 3 000014.SZ 20180907 28 63.69 0.0
+ 4 000014.SZ 20180831 28 63.69 0.0
+ 5 000014.SZ 20180824 29 64.74 0.0
+ 6 000014.SZ 20180817 29 64.74 0.0
+ 7 000014.SZ 20180810 29 64.74 0.0
+ 8 000014.SZ 20180803 29 64.74 0.0
+ 9 000014.SZ 20180727 29 64.74 0.0
+ 10 000014.SZ 20180720 29 64.74 0.0
+ 11 000014.SZ 20180713 29 64.74 0.0
+ 12 000014.SZ 20180706 30 64.77 0.0
+ 13 000014.SZ 20180629 30 64.77 0.0
+ 14 000014.SZ 20180622 30 64.77 0.0
+ 15 000014.SZ 20180615 28 66.50 0.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\233\236\350\264\255.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\233\236\350\264\255.md"
new file mode 100644
index 000000000..d3eed39ea
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\233\236\350\264\255.md"
@@ -0,0 +1,77 @@
+## ่‚ก็ฅจๅ›ž่ดญ
+----
+
+ๆŽฅๅฃ๏ผšrepurchase
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅ›ž่ดญ่‚ก็ฅจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘600็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆไปปๆ„ๅกซๅ‚ๆ•ฐ๏ผŒๅฆ‚ๆžœ้ƒฝไธๅกซ๏ผŒๅ•ๆฌก้ป˜่ฎค่ฟ”ๅ›ž2000ๆก๏ผ‰
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+ไปฅไธŠๆ—ฅๆœŸๆ ผๅผไธบ๏ผšYYYYMMDD๏ผŒๆฏ”ๅฆ‚20181010
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆˆชๆญขๆ—ฅๆœŸ
+proc | str | Y | ่ฟ›ๅบฆ
+exp_date | str | Y | ่ฟ‡ๆœŸๆ—ฅๆœŸ
+vol | float | Y | ๅ›ž่ดญๆ•ฐ้‡
+amount | float | Y | ๅ›ž่ดญ้‡‘้ข
+high_limit | float | Y | ๅ›ž่ดญๆœ€้ซ˜ไปท
+low_limit | float | Y | ๅ›ž่ดญๆœ€ไฝŽไปท
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.repurchase(ann_date='', start_date='20180101', end_date='20180510')
+
+#ๅ–ๆŸๆ—ฅ
+df = pro.repurchase(ann_date='20181010')
+
+```
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date end_date proc exp_date vol amount \
+ 0 300451.SZ 20181010 20181008 ๅฎŒๆˆ None 51900.0 4.498500e+05
+ 1 300396.SZ 20181010 None ่‚กไธœๅคงไผš้€š่ฟ‡ 20191010 NaN 5.000000e+07
+ 2 000813.SZ 20181010 20180930 ๅฎžๆ–ฝ None 15450767.0 1.243010e+08
+ 3 300451.SZ 20181010 20181008 ๅฎŒๆˆ None 4500.0 3.708000e+04
+ 4 002334.SZ 20181010 20181009 ๅฎžๆ–ฝ None 7749553.0 3.826948e+07
+ 5 600351.SH 20181010 20181010 ๅฎžๆ–ฝ None 7035198.0 4.999188e+07
+ 6 002104.SZ 20181010 20180930 ๅฎžๆ–ฝ None 569100.0 3.584390e+06
+ 7 603017.SH 20181010 20181009 ๅฎžๆ–ฝ None 4418358.0 4.398425e+07
+ 8 002511.SZ 20181010 None ่‚กไธœๅคงไผš้€š่ฟ‡ 20190410 NaN 2.000000e+08
+ 9 603180.SH 20181010 20181009 ๅฎžๆ–ฝ None 315700.0 1.817800e+07
+ 10 002567.SZ 20181010 20180930 ๅฎžๆ–ฝ None 1743273.0 7.815226e+06
+
+
+ high_limit low_limit
+ 0 12.350 8.240
+ 1 21.000 NaN
+ 2 8.400 7.800
+ 3 8.240 8.240
+ 4 6.060 4.370
+ 5 7.490 6.850
+ 6 6.352 6.160
+ 7 10.600 9.080
+ 8 9.500 NaN
+ 9 59.860 55.060
+ 10 4.600 4.370
+
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\345\201\234).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\345\201\234).md"
new file mode 100644
index 000000000..3a9cbee02
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\345\201\234).md"
@@ -0,0 +1,80 @@
+## ่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšstk_account
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎ๏ผŒ็ปŸ่ฎกๅ‘จๆœŸไธบไธ€ๅ‘จ
+็งฏๅˆ†๏ผš600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+ๆณจ๏ผšๆญคๆ•ฐๆฎๅฎ˜ๆ–นๅทฒ็ปๅœๆญขๆ›ดๆ–ฐใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ็ปŸ่ฎกๅ‘จๆœŸ
+weekly_new | float | Y | ๆœฌๅ‘จๆ–ฐๅขž๏ผˆไธ‡๏ผ‰
+total | float | Y | ๆœŸๆœซๆ€ป่ดฆๆˆทๆ•ฐ๏ผˆไธ‡๏ผ‰
+weekly_hold | float | Y | ๆœฌๅ‘จๆŒไป“่ดฆๆˆทๆ•ฐ๏ผˆไธ‡๏ผ‰
+weekly_trade | float | Y | ๆœฌๅ‘จๅ‚ไธŽไบคๆ˜“่ดฆๆˆทๆ•ฐ๏ผˆไธ‡๏ผ‰
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.stk_account(start_date='20180101', end_date='20181231')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date weekly_new total weekly_hold weekly_trade
+ 0 20181228 20.81 14650.44 None None
+ 1 20181221 21.04 14629.63 None None
+ 2 20181214 21.21 14608.59 None None
+ 3 20181207 22.28 14587.38 None None
+ 4 20181130 23.56 14565.10 None None
+ 5 20181123 24.16 14541.54 None None
+ 6 20181116 24.57 14517.38 None None
+ 7 20181109 24.11 14492.81 None None
+ 8 20181102 23.97 14468.70 None None
+ 9 20181026 26.00 14444.73 None None
+ 10 20181019 24.13 14418.73 None None
+ 11 20181012 25.30 14394.60 None None
+ 12 20180928 20.09 14369.30 None None
+ 13 20180921 23.24 14349.21 None None
+ 14 20180914 24.08 14325.97 None None
+ 15 20180907 23.58 14301.89 None None
+ 16 20180831 24.06 14278.31 None None
+ 17 20180824 23.12 14254.25 None None
+ 18 20180817 23.04 14231.12 None None
+ 19 20180810 23.96 14208.09 None None
+ 20 20180803 24.22 14184.12 None None
+
+<br>
+<br>
+
+ๆ•ฐๆฎ่ฏดๆ˜Ž๏ผšไปŽ2017ๅนด2ๆœˆ10ๆ—ฅๅผ€ๅง‹๏ผŒไธญๅ›ฝ่ฏๅˆธ็™ป่ฎฐ็ป“็ฎ—ๅ…ฌๅธๅœๆญขไบ†ๅ‘ๅธƒๆœฌๅ‘จๆŒไป“่ดฆๆˆทๆ•ฐๅ’Œๆœฌๅ‘จไบคๆ˜“่ดฆๆˆทๆ•ฐ๏ผ›ๅฆๅค–๏ผŒ2015ๅนด5ๆœˆ8ๆ—ฅไน‹ๅ‰็š„ๆ•ฐๆฎ็ป“ๆž„ไนŸไธๅŒ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[่‚ก็ฅจๅผ€ๆˆทๆ—งๆ•ฐๆฎ](https://tushare.pro/document/2?doc_id=165)ๆŽฅๅฃใ€‚
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\346\227\247).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\346\227\247).md"
new file mode 100644
index 000000000..39f9b5c92
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\346\210\267\346\225\260\346\215\256(\346\227\247).md"
@@ -0,0 +1,101 @@
+## ่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎ๏ผˆๆ—ง๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšstk_account_old
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจ่ดฆๆˆทๅผ€ๆˆทๆ•ฐๆฎๆ—ง็‰ˆๆ ผๅผๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไปŽ2008ๅนด1ๆœˆๅผ€ๅง‹๏ผŒๅˆฐ2015ๅนด5ๆœˆ29๏ผŒๆ–ฐๆ•ฐๆฎ่ฏท้€š่ฟ‡[่‚ก็ฅจๅผ€ๆˆทๆ•ฐๆฎ](https://tushare.pro/document/2?doc_id=164)่Žทๅ–ใ€‚
+็งฏๅˆ†๏ผš600็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ็ปŸ่ฎกๅ‘จๆœŸ
+new_sh | int | Y | ๆœฌๅ‘จๆ–ฐๅขž๏ผˆไธŠๆตท๏ผŒๆˆท๏ผ‰
+new_sz | int | Y | ๆœฌๅ‘จๆ–ฐๅขž๏ผˆๆทฑๅœณ๏ผŒๆˆท๏ผ‰
+active_sh | float | Y | ๆœŸๆœซๆœ‰ๆ•ˆ่ดฆๆˆท๏ผˆไธŠๆตท๏ผŒไธ‡ๆˆท๏ผ‰
+active_sz | float | Y | ๆœŸๆœซๆœ‰ๆ•ˆ่ดฆๆˆท๏ผˆๆทฑๅœณ๏ผŒไธ‡ๆˆท๏ผ‰
+total_sh | float | Y | ๆœŸๆœซ่ดฆๆˆทๆ•ฐ๏ผˆไธŠๆตท๏ผŒไธ‡ๆˆท๏ผ‰
+total_sz | float | Y | ๆœŸๆœซ่ดฆๆˆทๆ•ฐ๏ผˆๆทฑๅœณ๏ผŒไธ‡ๆˆท๏ผ‰
+trade_sh | float | Y | ๅ‚ไธŽไบคๆ˜“่ดฆๆˆทๆ•ฐ๏ผˆไธŠๆตท๏ผŒไธ‡ๆˆท๏ผ‰
+trade_sz | float | Y | ๅ‚ไธŽไบคๆ˜“่ดฆๆˆทๆ•ฐ๏ผˆๆทฑๅœณ๏ผŒไธ‡ๆˆท๏ผ‰
+
+<br>
+<br>
+
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.stk_account_old(start_date='20140101', end_date='20141231')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date new_sh new_sz active_sh active_sz total_sh total_sz \
+ 0 20141229~0102 157871 152943 7187.12 7027.58 9269.40 9131.77
+ 1 20141222~1226 279044 268562 7171.13 7011.97 9254.69 9117.34
+ 2 20141215~1219 322400 310114 7142.80 6984.49 9228.68 9092.02
+ 3 20141208~1212 454796 437448 7109.96 6952.60 9198.74 9062.83
+ 4 20141201~1205 306085 292176 7063.30 6907.28 9156.27 9021.43
+ 5 20141124~1128 190694 179377 7031.79 6876.74 9127.81 8993.78
+ 6 20141117~1121 121884 112181 7012.31 6858.11 9110.03 8976.76
+ 7 20141110~1114 125695 117912 7000.00 6846.61 9098.66 8966.15
+ 8 20141103~1107 121205 114562 6987.25 6834.46 9086.97 8954.99
+ 9 20141027~1031 111282 106319 6974.95 6822.66 9075.72 8944.18
+ 10 20141020~1024 106926 103467 6963.70 6811.77 9065.35 8934.12
+ 11 20141013~1017 122201 120783 6952.91 6801.17 9055.43 8924.35
+ 12 20141008~1010 77637 77278 6940.49 6788.71 9044.10 8912.93
+ 13 20140929~1003 48397 47825 6932.63 6780.71 9036.90 8905.59
+ 14 20140922~0926 110845 108871 6927.75 6775.81 9032.46 8901.11
+ 15 20140915~0919 109261 107790 6916.49 6764.56 9022.26 8890.85
+ 16 20140909~0912 89155 88151 6905.34 6753.39 9012.24 8880.75
+ 17 20140901~0905 82987 82151 6896.25 6744.24 9004.09 8872.48
+ 18 20140825~0829 80279 79732 6887.85 6735.80 8996.52 8864.80
+ 19 20140818~0822 87261 86458 6879.80 6727.66 8989.21 8857.35
+ 20 20140811~0815 76158 75789 6871.01 6718.81 8981.23 8849.26
+
+ trade_sh trade_sz
+ 0 962.11 770.00
+ 1 1262.57 1010.97
+ 2 1328.72 1118.42
+ 3 1423.32 1209.22
+ 4 1291.36 1142.27
+ 5 1047.42 979.97
+ 6 720.30 696.37
+ 7 875.06 810.11
+ 8 839.16 803.56
+ 9 793.85 783.00
+ 10 676.26 715.03
+ 11 805.18 845.42
+ 12 635.07 707.21
+ 13 469.69 527.89
+ 14 746.12 806.42
+ 15 803.06 847.07
+ 16 708.86 766.22
+ 17 745.14 798.20
+ 18 617.42 696.66
+ 19 693.70 776.73
+ 20 656.34 728.21
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\351\231\220\345\224\256\350\202\241\350\247\243\347\246\201.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\351\231\220\345\224\256\350\202\241\350\247\243\347\246\201.md"
new file mode 100644
index 000000000..94c70ea9d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\217\202\350\200\203\346\225\260\346\215\256/\351\231\220\345\224\256\350\202\241\350\247\243\347\246\201.md"
@@ -0,0 +1,99 @@
+## ้™ๅ”ฎ่‚ก่งฃ็ฆ
+----
+
+ๆŽฅๅฃ๏ผšshare_float
+ๆ่ฟฐ๏ผš่Žทๅ–้™ๅ”ฎ่‚ก่งฃ็ฆ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000ๆก๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš120ๅˆ†ๅฏ่ฐƒๅ–๏ผŒๆฏๅˆ†้’Ÿๅ†…้™ๅˆถๆฌกๆ•ฐ๏ผŒ่ถ…่ฟ‡5000็งฏๅˆ†้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆๆ—ฅๆœŸๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+float_date | str | N | ่งฃ็ฆๆ—ฅๆœŸ
+start_date | str | N | ่งฃ็ฆๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ่งฃ็ฆ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+float_date | str | Y | ่งฃ็ฆๆ—ฅๆœŸ
+float_share | float | Y | ๆต้€š่‚กไปฝ(่‚ก)
+float_ratio | float | Y | ๆต้€š่‚กไปฝๅ ๆ€ป่‚กๆœฌๆฏ”็އ
+holder_name | str | Y | ่‚กไธœๅ็งฐ
+share_type | str | Y | ่‚กไปฝ็ฑปๅž‹
+
+<br>
+<br>
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```pyhton
+
+pro = ts.pro_api()
+
+df = pro.share_float(ann_date='20181220')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date float_date float_share float_ratio holder_name \
+ 0 000998.SZ 20181220 20211221 25076106.0 1.9041 ็Ž‹ไน‰ๆณข
+ 1 000998.SZ 20181220 20211221 11265340.0 0.8554 ๅฝญๆณฝๆ–Œ
+ 2 000998.SZ 20181220 20211221 10820446.0 0.8216 ๆจ่”š
+ 3 000998.SZ 20181220 20211221 2704317.0 0.2053 ็Ž‹ๅฎ
+ 4 000998.SZ 20181220 20211221 2704317.0 0.2053 ๅงœไนฆ่ดค
+ 5 000998.SZ 20181220 20211221 2952186.0 0.2242 ่ฐข็މ่ฟ
+ 6 000998.SZ 20181220 20211221 3022098.0 0.2295 ้™†ๅˆฉ่กŒ
+ 7 000998.SZ 20181220 20211221 190668.0 0.0145 ๅฒๆณฝ็ช
+ 8 000998.SZ 20181220 20211221 190668.0 0.0145 ๅผ ๆž—
+ 9 000998.SZ 20181220 20211221 95334.0 0.0072 ๅญ™็ปงๆ˜Ž
+ 10 000998.SZ 20181220 20211221 95334.0 0.0072 ็Ž‹้’ๆ‰
+ 11 000998.SZ 20181220 20211221 95334.0 0.0072 ๅˆ˜ๆฆœ
+ 12 000998.SZ 20181220 20211221 63556.0 0.0048 ๆœฑ้™
+ 13 000998.SZ 20181220 20211221 63556.0 0.0048 ้™ˆไบฎไบฎ
+ 14 000998.SZ 20181220 20211221 63556.0 0.0048 ๆœๅŸนๆž—
+ 15 000998.SZ 20181220 20211221 63556.0 0.0048 ้ซ˜้ฃž
+ 16 000998.SZ 20181220 20211221 63556.0 0.0048 ่ƒก็ด ๅŽ
+ 17 000998.SZ 20181220 20211221 63556.0 0.0048 ็Ž‹ๆ˜Ž็ฃŠ
+ 18 000998.SZ 20181220 20211221 63556.0 0.0048 ๅˆ˜ๅ ๆ‰
+ 19 000998.SZ 20181220 20211221 63556.0 0.0048 ๅ‚…ๅ…†ไฝœ
+ 20 000998.SZ 20181220 20211221 63556.0 0.0048 ๅบ”้“ถ้“พ
+
+ share_type
+ 0 ๅฎšๅขž่‚กไปฝ
+ 1 ๅฎšๅขž่‚กไปฝ
+ 2 ๅฎšๅขž่‚กไปฝ
+ 3 ๅฎšๅขž่‚กไปฝ
+ 4 ๅฎšๅขž่‚กไปฝ
+ 5 ๅฎšๅขž่‚กไปฝ
+ 6 ๅฎšๅขž่‚กไปฝ
+ 7 ๅฎšๅขž่‚กไปฝ
+ 8 ๅฎšๅขž่‚กไปฝ
+ 9 ๅฎšๅขž่‚กไปฝ
+ 10 ๅฎšๅขž่‚กไปฝ
+ 11 ๅฎšๅขž่‚กไปฝ
+ 12 ๅฎšๅขž่‚กไปฝ
+ 13 ๅฎšๅขž่‚กไปฝ
+ 14 ๅฎšๅขž่‚กไปฝ
+ 15 ๅฎšๅขž่‚กไปฝ
+ 16 ๅฎšๅขž่‚กไปฝ
+ 17 ๅฎšๅขž่‚กไปฝ
+ 18 ๅฎšๅขž่‚กไปฝ
+ 19 ๅฎšๅขž่‚กไปฝ
+ 20 ๅฎšๅขž่‚กไปฝ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/IPO\346\226\260\350\202\241\344\270\212\345\270\202.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/IPO\346\226\260\350\202\241\344\270\212\345\270\202.md"
new file mode 100644
index 000000000..34825dac0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/IPO\346\226\260\350\202\241\344\270\212\345\270\202.md"
@@ -0,0 +1,74 @@
+## IPOๆ–ฐ่‚กๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšnew_share
+ๆ่ฟฐ๏ผš่Žทๅ–ๆ–ฐ่‚กไธŠๅธ‚ๅˆ—่กจๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘120็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+start_date | str | N | ไธŠ็ฝ‘ๅ‘่กŒๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ไธŠ็ฝ‘ๅ‘่กŒ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+sub_code | str | Y | ็”ณ่ดญไปฃ็ 
+name | str | Y | ๅ็งฐ
+ipo_date | str | Y | ไธŠ็ฝ‘ๅ‘่กŒๆ—ฅๆœŸ
+issue_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+amount | float | Y | ๅ‘่กŒๆ€ป้‡๏ผˆไธ‡่‚ก๏ผ‰
+market_amount | float | Y | ไธŠ็ฝ‘ๅ‘่กŒๆ€ป้‡๏ผˆไธ‡่‚ก๏ผ‰
+price | float | Y | ๅ‘่กŒไปทๆ ผ
+pe | float | Y | ๅธ‚็›ˆ็އ
+limit_amount | float | Y | ไธชไบบ็”ณ่ดญไธŠ้™๏ผˆไธ‡่‚ก๏ผ‰
+funds | float | Y | ๅ‹Ÿ้›†่ต„้‡‘๏ผˆไบฟๅ…ƒ๏ผ‰
+ballot | float | Y | ไธญ็ญพ็އ
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.new_share(start_date='20180901', end_date='20181018')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code sub_code name ipo_date issue_date amount market_amount \
+ 0 002939.SZ 002939 ้•ฟๅŸŽ่ฏๅˆธ 20181017 None 31034.0 27931.0
+ 1 002940.SZ 002940 ๆ˜‚ๅˆฉๅบท 20181011 20181023 2250.0 2025.0
+ 2 601162.SH 780162 ๅคฉ้ฃŽ่ฏๅˆธ 20181009 20181019 51800.0 46620.0
+ 3 300694.SZ 300694 ่ กๆน–่‚กไปฝ 20180927 20181015 5383.0 4845.0
+ 4 300760.SZ 300760 ่ฟˆ็‘žๅŒป็–— 20180927 20181016 12160.0 10944.0
+ 5 300749.SZ 300749 ้กถๅ›บ้›†ๅˆ› 20180913 20180925 2850.0 2565.0
+ 6 002937.SZ 002937 ๅ…ด็‘ž็ง‘ๆŠ€ 20180912 20180926 4600.0 4140.0
+ 7 601577.SH 780577 ้•ฟๆฒ™้“ถ่กŒ 20180912 20180926 34216.0 30794.0
+ 8 603583.SH 732583 ๆทๆ˜Œ้ฉฑๅŠจ 20180911 20180921 3020.0 2718.0
+ 9 002936.SZ 002936 ้ƒ‘ๅทž้“ถ่กŒ 20180907 20180919 60000.0 54000.0
+ 10 300748.SZ 300748 ้‡‘ๅŠ›ๆฐธ็ฃ 20180906 20180921 4160.0 3744.0
+ 11 603810.SH 732810 ไธฐๅฑฑ้›†ๅ›ข 20180906 20180917 2000.0 2000.0
+ 12 002938.SZ 002938 ้น้ผŽๆŽง่‚ก 20180905 20180918 23114.0 20803.0
+
+ price pe limit_amount funds ballot
+ 0 6.31 22.98 9.30 19.582 0.16
+ 1 23.07 22.99 0.90 5.191 0.03
+ 2 1.79 22.86 15.50 0.000 0.25
+ 3 9.89 22.98 2.15 5.324 0.04
+ 4 48.80 22.99 3.60 59.341 0.08
+ 5 12.22 22.99 1.10 3.483 0.03
+ 6 9.94 22.99 1.80 4.572 0.04
+ 7 7.99 6.97 10.20 27.338 0.17
+ 8 29.17 22.99 1.20 8.809 0.03
+ 9 4.59 6.50 18.00 27.540 0.25
+ 10 5.39 22.98 1.20 2.242 0.05
+ 11 25.43 20.39 2.00 5.086 0.02
+ 12 16.07 22.99 6.90 37.145 0.12
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\350\202\241\347\245\250\345\210\227\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\350\202\241\347\245\250\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..900938403
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\350\202\241\347\245\250\345\210\227\350\241\250.md"
@@ -0,0 +1,66 @@
+## ST่‚ก็ฅจๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšstock_st๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ST่‚ก็ฅจๅˆ—่กจ๏ผŒๅฏๆ นๆฎไบคๆ˜“ๆ—ฅๆœŸ่Žทๅ–ๅކๅฒไธŠๆฏๅคฉ็š„STๅˆ—่กจ
+ๆƒ้™๏ผš3000็งฏๅˆ†่ตท
+ๆ็คบ๏ผšๆฏๅคฉไธŠๅˆ9:20ๆ›ดๆ–ฐ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž1000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–,ๆœฌๆŽฅๅฃๆ•ฐๆฎไปŽ20160101ๅผ€ๅง‹,ๅคชๆ—ฉๅކๅฒๆ— ๆณ•่กฅ้ฝ
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDDไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ถ้—ด
+end_date | str | N | ็ป“ๆŸๆ—ถ้—ด
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+type | str | Y | ็ฑปๅž‹
+type_name | str | Y | ็ฑปๅž‹ๅ็งฐ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–20250813ๆ—ฅๆ‰€ๆœ‰็š„ST่‚ก็ฅจ
+df = pro.stock_st(trade_date='20250813')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name trade_date type type_name
+ 0 300313.SZ *STๅคฉๅฑฑ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 1 605081.SH *STๅคชๅ’Œ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 2 300391.SZ *ST้•ฟ่ฏ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 3 300343.SZ ST่”ๅˆ› 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 4 300044.SZ ST่ต›ไธบ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ .. ... ... ... ... ...
+ 170 300175.SZ STๆœ—ๆบ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 171 603721.SH *STๅคฉๆ‹ฉ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 172 600289.SH STไฟก้€š 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 173 000929.SZ *STๅ…ฐ้ป„ 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
+ 174 000638.SZ *STไธ‡ๆ–น 20250813 ST ้ฃŽ้™ฉ่ญฆ็คบๆฟ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\351\243\216\351\231\251\350\255\246\347\244\272\346\235\277\350\202\241\347\245\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\351\243\216\351\231\251\350\255\246\347\244\272\346\235\277\350\202\241\347\245\250.md"
new file mode 100644
index 000000000..600484a5a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/ST\351\243\216\351\231\251\350\255\246\347\244\272\346\235\277\350\202\241\347\245\250.md"
@@ -0,0 +1,59 @@
+# ST้ฃŽ้™ฉ่ญฆ็คบๆฟ่‚ก็ฅจ
+
+
+### ๆŽฅๅฃไป‹็ป
+ๆŽฅๅฃ๏ผšst
+ๆ่ฟฐ๏ผšST้ฃŽ้™ฉ่ญฆ็คบๆฟ่‚ก็ฅจๅˆ—่กจ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ๅพช็Žฏ่Žทๅ–ๅކๅฒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš6000็งฏๅˆ†ๅฏๆๅ–ๆ•ฐๆฎ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+### ่พ“ๅ…ฅๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+pub_date | str | N | ๅ‘ๅธƒๆ—ฅๆœŸ
+imp_date | str | N | ๅฎžๆ–ฝๆ—ฅๆœŸ
+
+
+
+### ่พ“ๅ‡บๅ‚ๆ•ฐ
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+---- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+pub_date | str | Y | ๅ‘ๅธƒๆ—ฅๆœŸ
+imp_date | str | Y | ๅฎžๆ–ฝๆ—ฅๆœŸ
+st_tpye | str | Y | ็ฑปๅž‹
+st_reason | str | Y | stๅ˜ๆ›ดๅŽŸๅ› 
+st_explain | str | Y | stๅ˜ๆ›ด่ฏฆ็ป†ๅŽŸๅ› 
+
+
+
+### ไปฃ็ ็คบไพ‹
+```
+ # ๆ‹‰ๅ–ๆŽฅๅฃstๆ•ฐๆฎ
+ df = pro.st(**{
+ "ts_code": "300125.SZ",
+ "pub_date": "",
+ "imp_date": ""
+}, fields=[
+ "ts_code",
+ "name",
+ "pub_date",
+ "imp_date",
+ "st_tpye",
+ "st_reason",
+ "st_explain"
+])
+ print(df)
+```
+
+### ๆ•ฐๆฎ็ป“ๆžœ
+ts_code | name | pub_date | imp_date | st_tpye | st_reason | st_explain
+---- | ---- | ---- | ---- | ---- | ---- | ----
+300125.SZ | *ST่†่พพ | 20260127 | 20260128 | ๆ’ค้”€ๅ ๅŠ *ST | ้‡ๆ•ดๅฎŒๆˆๆˆ–ๅ’Œ่งฃๅ่ฎฎๆ‰ง่กŒๅฎŒๆˆๆˆ–ๆกˆไปถ็ป“ๆŸ | ๅ…ฌๅธ้‡ๆ•ด่ฎกๅˆ’ๅทฒ็ปๆ‰ง่กŒๅฎŒๆฏ•,ๆ นๆฎใ€ŠไธŠๅธ‚่ง„ๅˆ™ใ€‹็ฌฌ10.4.14ๆก็ฌฌไธ€ๆฌพ็š„่ง„ๅฎš,ๅ…ฌๅธ็ฌฆๅˆ็”ณ่ฏทๆ’ค้”€ๅ› ้‡ๆ•ด่€Œๅฎžๆ–ฝ็š„้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบ็š„ๆกไปถ,ๅ…ฌๅธๅทฒไบŽ2026ๅนด1ๆœˆ8ๆ—ฅๅ‘ๆทฑๅœณ่ฏๅˆธไบคๆ˜“ๆ‰€(ไปฅไธ‹็ฎ€็งฐ:ๆทฑไบคๆ‰€)็”ณ่ฏทๆ’ค้”€ๅ› ้‡ๆ•ด่€Œๅฎžๆ–ฝ็š„้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบใ€‚2026ๅนด1ๆœˆ27ๆ—ฅ,ๆทฑไบคๆ‰€ๅฎกๆ ธๅŒๆ„ๆ’ค้”€ๅ…ฌๅธๅ› ้‡ๆ•ด่€Œๅฎžๆ–ฝ็š„้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบ,ๅ…ฌๅธ่งฆๅŠ่ดขๅŠก็ฑป้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบๅŠๅ…ถไป–้ฃŽ้™ฉ่ญฆ็คบ็š„ๆƒ…ๅฝขไฟๆŒไธๅ˜ใ€‚
+300125.SZ | *ST่†่พพ | 20251119 | 20251119 | ๅ ๅŠ *ST | ๆณ•้™ขไพๆณ•ๅ—็†ๅ…ฌๅธ้‡ๆ•ดใ€ๅ’Œ่งฃๆˆ–่€…็ ดไบงๆธ…็ฎ—็”ณ่ฏท | ๅ…ฌๅธ2024ๅนดๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆไธบ่ดŸไธ”ๆ‰ฃ้™คๅŽ่ฅไธšๆ”ถๅ…ฅไฝŽไบŽ1ไบฟๅ…ƒ;ๆœ€่ฟ‘ไธ€ไธชไผš่ฎกๅนดๅบฆ็ปๅฎก่ฎก็š„ๆœŸๆœซๅ‡€่ต„ไบงไธบ่ดŸๅ€ผ,ๅ…ฌๅธ่‚ก็ฅจไบคๆ˜“ไบŽ2025ๅนด4ๆœˆ25ๆ—ฅ่ตท่ขซๅฎžๆ–ฝ้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบ;ๅ› ๅ…ญๅฎ‰ไธญ้™ขไพๆณ•่ฃๅฎšๅ—็†็”ณ่ฏทไบบๅฏนๅ…ฌๅธ็š„้‡ๆ•ด็”ณ่ฏท,ๆ นๆฎใ€Šๆทฑไบคๆ‰€ๅˆ›ไธšๆฟ่‚ก็ฅจไธŠๅธ‚่ง„ๅˆ™ใ€‹็š„่ง„ๅฎš,ๅ…ฌๅธ่‚ก็ฅจๅฐ†ไบŽ2025ๅนด11ๆœˆ19ๅผ€ๅธ‚่ขซๅ ๅŠ ๅฎžๆ–ฝ้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบใ€‚
+300125.SZ | *ST่†่พพ | 20250424 | 20250425 | ไปŽSTๅ˜ไธบ*ST | ๆœ€่ฟ‘ไธ€ไธชไผš่ฎกๅนดๅบฆ็ปๅฎก่ฎก็š„ๅˆฉๆถฆๆ€ป้ขใ€ๅ‡€ๅˆฉๆถฆๆˆ–่€…ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆๅญฐไฝŽ่€…ไธบ่ดŸๅ€ผไธ”่ฅไธšๆ”ถๅ…ฅไฝŽไบŽ1ไบฟๅ…ƒ๏ผŒๆˆ–่€…่ฟฝๆบฏ้‡่ฟฐๅŽๆœ€่ฟ‘ไธ€ไธชไผš่ฎกๅนดๅบฆๅˆฉๆถฆๆ€ป้ขใ€ๅ‡€ๅˆฉๆถฆๆˆ–่€…ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆๅญฐไฝŽ่€…ไธบ่ดŸๅ€ผไธ”่ฅไธšๆ”ถๅ…ฅไฝŽไบŽ1ไบฟๅ…ƒ | ๅ…ฌๅธ2024ๅนดๅบฆ็ปๅฎก่ฎก็š„ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆไธบ-85,579ไธ‡ๅ…ƒไธ”ๆ‰ฃ้™คๅŽ่ฅไธšๆ”ถๅ…ฅไธบ5,785ไธ‡ๅ…ƒ,ๆœŸๆœซๅ‡€่ต„ไบงไธบ-53,841ไธ‡ๅ…ƒใ€‚ๆ นๆฎใ€ŠไธŠๅธ‚่ง„ๅˆ™ใ€‹็ฌฌ10.3.1ๆก็ฌฌไธ€ๆฌพ็ฌฌ(ไธ€)(ไบŒ)้กน่ง„ๅฎš:ไธŠๅธ‚ๅ…ฌๅธๅ‡บ็Žฐโ€œๆœ€่ฟ‘ไธ€ไธชไผš่ฎกๅนดๅบฆ็ปๅฎก่ฎก็š„ๅˆฉๆถฆๆ€ป้ขใ€ๅ‡€ๅˆฉๆถฆใ€ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆไธ‰่€…ๅญฐไฝŽไธบ่ดŸๅ€ผ,ไธ”ๆ‰ฃ้™คๅŽ็š„่ฅไธšๆ”ถๅ…ฅไฝŽไบŽ1ไบฟๅ…ƒ็š„ๆƒ…ๅฝขใ€‚โ€;โ€œๆœ€่ฟ‘ไธ€ไธชไผš่ฎกๅนดๅบฆ็ปๅฎก่ฎก็š„ๆœŸๆœซๅ‡€่ต„ไบงไธบ่ดŸๅ€ผโ€,ๅ…ฌๅธ่‚ก็ฅจไบคๆ˜“ๅฐ†่ขซๅฎžๆ–ฝ้€€ๅธ‚้ฃŽ้™ฉ่ญฆ็คบใ€‚
+300125.SZ | ST่†่พพ | 20240819 | 20240819 | ๅ ๅŠ ST | ๅ…ฌๅธๅ‘ๆŽง่‚ก่‚กไธœๆˆ–ๅ…ถๅ…ณ่”ๆ–นๆไพ›่ต„้‡‘ๆˆ–่ฟๅ่ง„ๅฎš็จ‹ๅบๅฏนๅค–ๆไพ›ๆ‹…ไฟไธ”ๆƒ…ๅฝขไธฅ้‡ | ๅ…ฌๅธๅŠๅญๅ…ฌๅธ้‡‘ๅฏจๅ˜‰ๆ‚ฆๆ–ฐ่ƒฝๆบ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธใ€ๆ ผๅฐ”ๆœจ็ฅžๅ…‰ๆ–ฐ่ƒฝๆบๆœ‰้™ๅ…ฌๅธๅœจๆœชๅฑฅ่กŒ่‘ฃไบ‹ไผšๅฎก่ฎฎ็จ‹ๅบๅŠไฟกๆฏๆŠซ้œฒไน‰ๅŠก็š„ๆƒ…ๅ†ตไธ‹,่ฟ่ง„ไธบไธญ่ดขๆ‹›ๅ•†ๆŠ•่ต„้›†ๅ›ขๅ•†ไธšไฟ็†ๆœ‰้™ๅ…ฌๅธไธŽ้‡‘ๅฏจๅ˜‰ๆ‚ฆๆญฃไธฐๆ–ฐ่ƒฝๆบๆœ‰้™ๅ…ฌๅธ็š„ๅ€ŸๆฌพๅˆๅŒๆไพ›ๆ‹…ไฟ,ๆถ‰ๅŠๆ‹…ไฟ้‡‘้ข1600ไธ‡ๅ…ƒใ€‚
+300125.SZ | ST่†่พพ | 20240427 | 20240430 | ST | ๅ…ฌๅธๆœ€่ฟ‘ไธ€ๅนด่ขซๅ‡บๅ…ทๆ— ๆณ•่กจ็คบๆ„่งๆˆ–่€…ๅฆๅฎšๆ„่ง็š„ๅ†…้ƒจๆŽงๅˆถๅฎก่ฎกๆŠฅๅ‘Šๆˆ–่€…้‰ด่ฏๆŠฅๅ‘Š | ๆ นๆฎใ€Šๆทฑๅœณ่ฏๅˆธไบคๆ˜“ๆ‰€ๅˆ›ไธšๆฟ่‚ก็ฅจไธŠๅธ‚่ง„ๅˆ™ใ€‹็ฌฌ9.7ๆก็ญ‰็›ธๅ…ณ่ง„ๅฎš,ๅ…ฌๅธ่‚ก็ฅจๅฐ†ไบŽ2024ๅนด4ๆœˆ29ๆ—ฅๅœ็‰Œไธ€ๅคฉ,2024ๅนด4ๆœˆ30ๆ—ฅๅฎžๆ–ฝๅ…ถไป–้ฃŽ้™ฉ่ญฆ็คบ,ๅฎžๆ–ฝๅ…ถไป–้ฃŽ้™ฉ่ญฆ็คบๅŽๅ…ฌๅธ่‚กไปท็š„ๆ—ฅๆถจ่ทŒๅน…้™ๅˆถไธบ20%ใ€‚
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\237\272\346\234\254\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\237\272\346\234\254\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..7d7a1f5fa
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\345\237\272\346\234\254\344\277\241\346\201\257.md"
@@ -0,0 +1,71 @@
+## ไธŠๅธ‚ๅ…ฌๅธๅŸบๆœฌไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšstock_company๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅŸบ็ก€ไฟกๆฏ๏ผŒๅ•ๆฌกๆๅ–4500ๆก๏ผŒๅฏไปฅๆ นๆฎไบคๆ˜“ๆ‰€ๅˆ†ๆ‰นๆๅ–
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘120็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้กป | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็  ๏ผŒSSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€ BSEๅŒ—ไบคๆ‰€
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+com_name | str | Y | ๅ…ฌๅธๅ…จ็งฐ
+com_id | str | Y | ็ปŸไธ€็คพไผšไฟก็”จไปฃ็ 
+exchange | str | Y | ไบคๆ˜“ๆ‰€ไปฃ็ 
+chairman | str | Y | ๆณ•ไบบไปฃ่กจ
+manager | str | Y | ๆ€ป็ป็†
+secretary | str | Y | ่‘ฃ็ง˜
+reg_capital | float | Y | ๆณจๅ†Œ่ต„ๆœฌ(ไธ‡ๅ…ƒ)
+setup_date | str | Y | ๆณจๅ†Œๆ—ฅๆœŸ
+province | str | Y | ๆ‰€ๅœจ็œไปฝ
+city | str | Y | ๆ‰€ๅœจๅŸŽๅธ‚
+introduction | str | N | ๅ…ฌๅธไป‹็ป
+website | str | Y | ๅ…ฌๅธไธป้กต
+email | str | Y | ็”ตๅญ้‚ฎไปถ
+office | str | N | ๅŠžๅ…ฌๅฎค
+employees | int | Y | ๅ‘˜ๅทฅไบบๆ•ฐ
+main_business | str | N | ไธป่ฆไธšๅŠกๅŠไบงๅ“
+business_scope | str | N | ็ป่ฅ่Œƒๅ›ด
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+pro = ts.pro_api()
+
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.stock_company(exchange='SZSE', fields='ts_code,chairman,manager,secretary,reg_capital,setup_date,province')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code chairman manager secretary reg_capital setup_date province \
+ 0 000001.SZ ่ฐขๆฐธๆž— ่ƒก่ทƒ้ฃž ๅ‘จๅผบ 1.717041e+06 19871222 ๅนฟไธœ
+ 1 000002.SZ ้ƒไบฎ ็ฅไน่ƒœ ๆœฑๆ—ญ 1.103915e+06 19840530 ๅนฟไธœ
+ 2 000003.SZ ้ฉฌ้’Ÿ้ธฟ ้ฉฌ้’Ÿ้ธฟ ๅฎ‰ๆฑช 3.334336e+04 19880208 ๅนฟไธœ
+ 3 000004.SZ ๆŽๆž—็ณ ๆŽๆž—็ณ ๅพๆ–‡่‹ 8.397668e+03 19860505 ๅนฟไธœ
+ 4 000005.SZ ไธ่Šƒ ้ƒ‘ๅˆ—ๅˆ— ็ฝ—ๆ™“ๆ˜ฅ 1.058537e+05 19870730 ๅนฟไธœ
+ 5 000006.SZ ่ตตๅฎไผŸ ๆœฑๆ–ฐๅฎ ๆœๆฑ› 1.349995e+05 19850525 ๅนฟไธœ
+ 6 000007.SZ ๆ™บๅพทๅฎ‡ ๆ™บๅพทๅฎ‡ ้™ˆไผŸๅฝฌ 3.464480e+04 19830311 ๅนฟไธœ
+ 7 000008.SZ ็Ž‹ๅฟ—ๅ…จ ้’Ÿๅฒฉ ็Ž‹ๅฟ—ๅˆš 2.818330e+05 19891011 ๅŒ—ไบฌ
+ 8 000009.SZ ้™ˆๆ”ฟ็ซ‹ ้™ˆๆ”ฟ็ซ‹ ้ƒญๅฑฑๆธ… 2.149345e+05 19830706 ๅนฟไธœ
+ 9 000010.SZ ๆ›พๅต˜ ๆŽๅพทๅ‹ ้‡‘ๅฐๅˆš 8.198547e+04 19881231 ๅนฟไธœ
+ 10 000011.SZ ๅˆ˜ๅฃฐๅ‘ ็Ž‹่ˆชๅ†› ่Œƒ็ปดๅนณ 5.959791e+04 19830117 ๅนฟไธœ
+ 11 000012.SZ ้™ˆ็ณ ็Ž‹ๅฅ ๆจๆ˜•ๅฎ‡ 2.863277e+05 19840910 ๅนฟไธœ
+ 12 000013.SZ ๅމๆ€’ๆฑŸ ้˜ฎๅ…‹็ซ– ๅˆ˜ๆธๆ• 3.033550e+04 19920114 ๅนฟไธœ
+ 13 000014.SZ ้™ˆๅ‹‡ ๆธฉๆฏ… ็Ž‹ๅ‡ก 2.017052e+04 19870727 ๅนฟไธœ
+ 14 000015.SZ ๅฎฟๅ—ๅ— ้ฉฌ้ชง ่’‹ๅญๅฎ‰ 1.598761e+05 19880408 ๅนฟไธœ
+ 15 000016.SZ ๅˆ˜ๅ‡คๅ–œ ๅ‘จๅฝฌ ๅดๅ‹‡ๅ†› 2.407945e+05 19801001 ๅนฟไธœ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\347\256\241\347\220\206\345\261\202.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\347\256\241\347\220\206\345\261\202.md"
new file mode 100644
index 000000000..062759a0c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\270\212\345\270\202\345\205\254\345\217\270\347\256\241\347\220\206\345\261\202.md"
@@ -0,0 +1,87 @@
+## ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚
+----
+
+ๆŽฅๅฃ๏ผšstk_managers
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผŒๆ”ฏๆŒๅ•ไธชๆˆ–ๅคšไธช่‚ก็ฅจ่พ“ๅ…ฅ
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+name | str | Y | ๅง“ๅ
+gender | str | Y | ๆ€งๅˆซ
+lev | str | Y | ๅฒ—ไฝ็ฑปๅˆซ
+title | str | Y | ๅฒ—ไฝ
+edu | str | Y | ๅญฆๅކ
+national | str | Y | ๅ›ฝ็ฑ
+birthday | str | Y | ๅ‡บ็”Ÿๅนดๆœˆ
+begin_date | str | Y | ไธŠไปปๆ—ฅๆœŸ
+end_date | str | Y | ็ฆปไปปๆ—ฅๆœŸ
+resume | str | N | ไธชไบบ็ฎ€ๅކ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธชๅ…ฌๅธ้ซ˜็ฎกๅ…จ้ƒจๆ•ฐๆฎ
+df = pro.stk_managers(ts_code='000001.SZ')
+
+#่Žทๅ–ๅคšไธชๅ…ฌๅธ้ซ˜็ฎกๅ…จ้ƒจๆ•ฐๆฎ
+df = pro.stk_managers(ts_code='000001.SZ,600000.SH')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date name gender ... national birthday begin_date end_date
+ 0 000001.SZ 20190604 ๅงš่ดตๅนณ M ... ไธญๅ›ฝ 1961 20180815 20190604
+ 1 000001.SZ 20190604 ๅงš่ดตๅนณ M ... ไธญๅ›ฝ 1961 20170629 20190604
+ 2 000001.SZ 20190604 ๅงš่ดตๅนณ M ... ไธญๅ›ฝ 1961 20180129 20190604
+ 3 000001.SZ 20190309 ๅด้น M ... ไธญๅ›ฝ 1965 20110817 20190309
+ 4 000001.SZ 20190307 ๅญ™ๆฐธๆกข F ... ไธญๅ›ฝ 1968 20181025 None
+ 5 000001.SZ 20180816 ๆจๅฟ—็พค M ... ไธญๅ›ฝ 1970 20180815 None
+ 6 000001.SZ 20180816 ้ƒญไธ–้‚ฆ M ... ไธญๅ›ฝ 1965 20180815 None
+ 7 000001.SZ 20180405 ไฝ•ไน‹ๆฑŸ M ... ไธญๅ›ฝ 1965 20170513 20180405
+ 8 000001.SZ 20180203 ้กนๆœ‰ๅฟ— M ... ไธญๅ›ฝ 1964 20170913 None
+ 9 000001.SZ 20180130 ๆจๅฆ‚็”Ÿ M ... ไธญๅ›ฝ 196802 20161107 None
+ 10 000001.SZ 20180130 ่”กๆ–นๆ–น F ... ไธญๅ›ฝ 1974 20161107 None
+ 11 000001.SZ 20180130 ้ƒญ็”ฐๅ‹‡ M ... ไธญๅ›ฝ 196808 20161107 None
+ 12 000001.SZ 20180130 ้ƒญๅปบ M ... ไธญๅ›ฝ 1964 20161107 None
+ 13 000001.SZ 20180130 ๆจๅฆ‚็”Ÿ M ... ไธญๅ›ฝ 196802 20161107 None
+ 14 000001.SZ 20180130 ๆจๅฆ‚็”Ÿ M ... ไธญๅ›ฝ 196802 20161107 None
+ 15 000001.SZ 20180130 ๅงšๆณข M ... ไธญๅ›ฝ 1971 20101227 None
+ 16 000001.SZ 20180130 ็Ž‹ๆ˜ฅๆฑ‰ M ... ไธญๅ›ฝ 1951 20160811 None
+ 17 000001.SZ 20180130 ้ƒญ็”ฐๅ‹‡ M ... ไธญๅ›ฝ 196808 20160811 None
+ 18 000001.SZ 20180130 ้ƒญ็”ฐๅ‹‡ M ... ไธญๅ›ฝ 196808 20160811 None
+ 19 000001.SZ 20180130 ้Ÿฉๅฐไบฌ M ... ไธญๅ›ฝ 1955 20140121 None
+ 20 000001.SZ 20180130 ้™ˆๅฟƒ้ข– F ... ๆ–ฐๅŠ ๅก 1977 20140121 None
+ 21 000001.SZ 20180130 ่”กๆ–นๆ–น F ... ไธญๅ›ฝ 1974 20140121 None
+ 22 000001.SZ 20180130 ็Ž‹ๆพๅฅ‡ M ... ไธญๅ›ฝ 1952 20140121 None
+ 23 000001.SZ 20180130 ็Ž‹ๆ˜ฅๆฑ‰ M ... ไธญๅ›ฝ 1951 20140121 None
+ 24 000001.SZ 20180130 ้Ÿฉๅฐไบฌ M ... ไธญๅ›ฝ 1955 20140121 None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md"
new file mode 100644
index 000000000..43e49f61b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\344\272\244\346\230\223\346\227\245\345\216\206.md"
@@ -0,0 +1,68 @@
+## ไบคๆ˜“ๆ—ฅๅކ
+----
+
+ๆŽฅๅฃ๏ผštrade_cal๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ„ๅคงไบคๆ˜“ๆ‰€ไบคๆ˜“ๆ—ฅๅކๆ•ฐๆฎ,้ป˜่ฎคๆๅ–็š„ๆ˜ฏไธŠไบคๆ‰€
+็งฏๅˆ†๏ผš้œ€2000็งฏๅˆ†
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+exchange | str | N | ไบคๆ˜“ๆ‰€ SSEไธŠไบคๆ‰€,SZSEๆทฑไบคๆ‰€,CFFEX ไธญ้‡‘ๆ‰€,SHFE ไธŠๆœŸๆ‰€,CZCE ้ƒ‘ๅ•†ๆ‰€,DCE ๅคงๅ•†ๆ‰€,INE ไธŠ่ƒฝๆบ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๏ผˆๆ ผๅผ๏ผšYYYYMMDD ไธ‹ๅŒ๏ผ‰
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+is_open | str | N | ๆ˜ฏๅฆไบคๆ˜“ '0'ไผ‘ๅธ‚ '1'ไบคๆ˜“
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ|ๆ่ฟฐ
+--- | ---- | ---- | ----
+exchange | str | Y | ไบคๆ˜“ๆ‰€ SSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€
+cal_date | str | Y | ๆ—ฅๅކๆ—ฅๆœŸ
+is_open | str | Y | ๆ˜ฏๅฆไบคๆ˜“ 0ไผ‘ๅธ‚ 1ไบคๆ˜“
+pretrade_date | str | Y | ไธŠไธ€ไธชไบคๆ˜“ๆ—ฅ
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+
+df = pro.trade_cal(exchange='', start_date='20180101', end_date='20181231')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('trade_cal', start_date='20180101', end_date='20181231')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ exchange cal_date is_open
+ 0 SSE 20180101 0
+ 1 SSE 20180102 1
+ 2 SSE 20180103 1
+ 3 SSE 20180104 1
+ 4 SSE 20180105 1
+ 5 SSE 20180106 0
+ 6 SSE 20180107 0
+ 7 SSE 20180108 1
+ 8 SSE 20180109 1
+ 9 SSE 20180110 1
+ 10 SSE 20180111 1
+ 11 SSE 20180112 1
+ 12 SSE 20180113 0
+ 13 SSE 20180114 0
+ 14 SSE 20180115 1
+ 15 SSE 20180116 1
+ 16 SSE 20180117 1
+ 17 SSE 20180118 1
+ 18 SSE 20180119 1
+ 19 SSE 20180120 0
+ 20 SSE 20180121 0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\345\214\227\344\272\244\346\211\200\346\226\260\346\227\247\344\273\243\347\240\201\345\257\271\347\205\247.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\345\214\227\344\272\244\346\211\200\346\226\260\346\227\247\344\273\243\347\240\201\345\257\271\347\205\247.md"
new file mode 100644
index 000000000..22cb2a76d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\345\214\227\344\272\244\346\211\200\346\226\260\346\227\247\344\273\243\347\240\201\345\257\271\347\205\247.md"
@@ -0,0 +1,55 @@
+## ๅŒ—ไบคๆ‰€ๆ–ฐๆ—งไปฃ็ ๅฏน็…ง่กจ
+----
+
+ๆŽฅๅฃ๏ผšbse_mapping
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ—ไบคๆ‰€่‚ก็ฅจไปฃ็ ๅ˜ๆ›ดๅŽๆ–ฐๆ—งไปฃ็ ๆ˜ ๅฐ„่กจๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000ๆก๏ผˆๆœฌๆŽฅๅฃๆ€ปๆ•ฐๆฎ้‡300ไปฅๅ†…๏ผ‰
+็งฏๅˆ†๏ผš120็งฏๅˆ†ๅณๅฏ่ฐƒๅ–
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+o_code | str | N | ๆ—งไปฃ็ 
+n_code | str | N | ๆ–ฐไปฃ็ 
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+o_code | str | Y | ๅŽŸไปฃ็ 
+n_code | str | Y | ๆ–ฐไปฃ็ 
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆ–นๅคงๆ–ฐๆๆ–ฐๆ—งไปฃ็ ๅฏน็…งๆ•ฐๆฎ
+df = pro.bse_mapping(o_code='838163.BJ')
+
+
+#่Žทๅ–ๅ…จ้ƒจๅ˜ๆ›ด็š„่‚ก็ฅจไปฃ็ ๅฏน็…ง่กจ
+df = pro.bse_mapping()
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ name o_code n_code list_date
+ 0 ๆ–นๅคงๆ–ฐๆ 838163.BJ 920163.BJ 20200727
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\257\217\346\227\245\350\202\241\346\234\254(\347\233\230\345\211\215).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\257\217\346\227\245\350\202\241\346\234\254(\347\233\230\345\211\215).md"
new file mode 100644
index 000000000..f7749cf36
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\257\217\346\227\245\350\202\241\346\234\254(\347\233\230\345\211\215).md"
@@ -0,0 +1,68 @@
+## ่‚กๆœฌๆƒ…ๅ†ต๏ผˆ็›˜ๅ‰๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšstk_premarket
+ๆ่ฟฐ๏ผšๆฏๆ—ฅๅผ€็›˜ๅ‰่Žทๅ–ๅฝ“ๆ—ฅ่‚ก็ฅจ็š„่‚กๆœฌๆƒ…ๅ†ต๏ผŒๅŒ…ๆ‹ฌๆ€ป่‚กๆœฌๅ’Œๆต้€š่‚กๆœฌ๏ผŒๆถจ่ทŒๅœไปทๆ ผ็ญ‰ใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+ๆƒ้™๏ผšไธŽ็งฏๅˆ†ๆ— ๅ…ณ๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+total_share | float | Y | ๆ€ป่‚กๆœฌ๏ผˆไธ‡่‚ก๏ผ‰
+float_share | float | Y | ๆต้€š่‚กๆœฌ๏ผˆไธ‡่‚ก๏ผ‰
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜ไปท
+up_limit | float | Y | ไปŠๆ—ฅๆถจๅœไปท
+down_limit | float | Y | ไปŠๆ—ฅ่ทŒๅœไปท
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆŸไธ€ๆ—ฅ็›˜ๅ‰ๆ‰€ๆœ‰่‚ก็ฅจๅฝ“ๆ—ฅ็š„ๆœ€ๆ–ฐ่‚กๆœฌ
+df = pro.stk_premarket(trade_date='20240603')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code total_share float_share pre_close up_limit down_limit
+ 0 20240603 001387.SZ 17778.8000 4355.7297 17.000 18.700 15.300
+ 1 20240603 600460.SH 166407.1845 166407.1845 18.790 20.670 16.910
+ 2 20240603 603052.SH 13484.8000 4096.4000 30.270 33.300 27.240
+ 3 20240603 603269.SH 22053.6977 22053.6977 10.140 11.150 9.130
+ 4 20240603 001339.SZ 24974.4000 7157.2575 29.210 32.130 26.290
+ ... ... ... ... ... ... ... ...
+ 5335 20240603 603567.SH 94196.3592 93954.0524 12.340 13.570 11.110
+ 5336 20240603 301188.SZ 23245.0244 15044.4508 17.740 21.290 14.190
+ 5337 20240603 603939.SH 101057.9797 100811.6102 45.060 49.570 40.550
+ 5338 20240603 300441.SZ 65225.6868 63480.0236 6.460 7.750 5.170
+ 5339 20240603 920002.BJ 3175.2120 475.0000 None 77.840 41.920
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\202\241\347\245\250\345\210\227\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\202\241\347\245\250\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..c3a9e16a8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\202\241\347\245\250\345\210\227\350\241\250.md"
@@ -0,0 +1,79 @@
+## ๆฒชๆทฑๆธฏ้€š่‚ก็ฅจๅˆ—่กจ
+----
+
+ๆŽฅๅฃ๏ผšstock_hsgt๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑๆธฏ้€š่‚ก็ฅจๅˆ—่กจ
+ๆƒ้™๏ผš3000็งฏๅˆ†่ตท
+ๆ็คบ๏ผšๆฏๅคฉไธŠๅˆ9:20ๆ›ดๆ–ฐ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž2000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ็ฑปๅž‹ๅพช็Žฏๆๅ–,ๆœฌๆŽฅๅฃๆ•ฐๆฎไปŽ20250812ๅผ€ๅง‹
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+type | str | Y | ็ฑปๅž‹๏ผˆๅ‚่€ƒไธ‹่กจ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ถ้—ด
+end_date | str | N | ็ป“ๆŸๆ—ถ้—ด
+
+็ฑปๅž‹่ฏดๆ˜Žๅฆ‚ไธ‹๏ผš
+
+| ็ฑปๅž‹ | ็ฑปๅž‹ๅ็งฐ |
+--- | ---- |
+| HK_SZ | ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ) |
+| SZ_HK | ๆธฏ่‚ก้€š(ๆทฑ>ๆธฏ) |
+| HK_SH | ๆฒช่‚ก้€š(ๆธฏ>ๆฒช) |
+| SH_HK | ๆธฏ่‚ก้€š(ๆฒช>ๆธฏ) |
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+type | str | Y | ็ฑปๅž‹
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+type_name | str | Y | ็ฑปๅž‹ๅ็งฐ
+
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–20250813ๆ—ฅๆทฑ่‚ก้€š็š„่‚ก็ฅจๅˆ—่กจ
+df = pro.stock_hsgt(trade_date='20250813',type='HK_SZ')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date type name type_name
+ 0 001258.SZ 20250813 HK_SZ ็ซ‹ๆ–ฐ่ƒฝๆบ ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ 1 00019.HK 20250813 SZ_HK ๅคชๅค่‚กไปฝๅ…ฌๅธA ๆธฏ่‚ก้€š(ๆทฑ>ๆธฏ)
+ 2 000513.SZ 20250813 HK_SZ ไธฝ็ ้›†ๅ›ข ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ 3 002044.SZ 20250813 HK_SZ ็พŽๅนดๅฅๅบท ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ 4 000338.SZ 20250813 HK_SZ ๆฝๆŸดๅŠจๅŠ› ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ .. ... ... ... ... ...
+ 995 300206.SZ 20250813 HK_SZ ็†้‚ฆไปชๅ™จ ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ 996 02331.HK 20250813 SH_HK ๆŽๅฎ ๆธฏ่‚ก้€š(ๆฒช>ๆธฏ)
+ 997 01855.HK 20250813 SH_HK ไธญๅบ†่‚กไปฝ ๆธฏ่‚ก้€š(ๆฒช>ๆธฏ)
+ 998 300726.SZ 20250813 HK_SZ ๅฎ่พพ็”ตๅญ ๆทฑ่‚ก้€š(ๆธฏ>ๆทฑ)
+ 999 06127.HK 20250813 SH_HK ๆ˜ญ่กๆ–ฐ่ฏ ๆธฏ่‚ก้€š(ๆฒช>ๆธฏ)
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\347\256\241\347\220\206\345\261\202\350\226\252\351\205\254\345\222\214\346\214\201\350\202\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\347\256\241\347\220\206\345\261\202\350\226\252\351\205\254\345\222\214\346\214\201\350\202\241.md"
new file mode 100644
index 000000000..9b894ab0b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\347\256\241\347\220\206\345\261\202\350\226\252\351\205\254\345\222\214\346\214\201\350\202\241.md"
@@ -0,0 +1,75 @@
+## ็ฎก็†ๅฑ‚่–ช้…ฌๅ’ŒๆŒ่‚ก
+----
+
+ๆŽฅๅฃ๏ผšstk_rewards
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็ฎก็†ๅฑ‚่–ช้…ฌๅ’ŒๆŒ่‚ก
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ ๏ผŒๆ”ฏๆŒๅ•ไธชๆˆ–ๅคšไธชไปฃ็ ่พ“ๅ…ฅ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆˆชๆญขๆ—ฅๆœŸ
+name | str | Y | ๅง“ๅ
+title | str | Y | ่ŒๅŠก
+reward | float | Y | ๆŠฅ้…ฌ
+hold_vol | float | Y | ๆŒ่‚กๆ•ฐ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ไธชๅ…ฌๅธ้ซ˜็ฎกๅ…จ้ƒจๆ•ฐๆฎ
+df = pro.stk_rewards(ts_code='000001.SZ')
+
+#่Žทๅ–ๅคšไธชๅ…ฌๅธ้ซ˜็ฎกๅ…จ้ƒจๆ•ฐๆฎ
+df = pro.stk_rewards(ts_code='000001.SZ,600000.SH')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date name title reward hold_vol
+ 0 000001.SZ 20190808 20190630 ่ฐขๆฐธๆž— ่‘ฃไบ‹้•ฟ NaN 0.0
+ 1 000001.SZ 20190808 20190630 ่ƒก่ทƒ้ฃž ่‘ฃไบ‹,่กŒ้•ฟ NaN 4104.0
+ 2 000001.SZ 20190808 20190630 ้™ˆๅฟƒ้ข– ่‘ฃไบ‹ NaN 0.0
+ 3 000001.SZ 20190808 20190630 ๅงšๆณข ่‘ฃไบ‹ NaN 0.0
+ 4 000001.SZ 20190808 20190630 ๅถ็ด ๅ…ฐ ่‘ฃไบ‹ NaN 0.0
+ 5 000001.SZ 20190808 20190630 ้Ÿฉๅฐไบฌ ็‹ฌ็ซ‹่‘ฃไบ‹ NaN 0.0
+ 6 000001.SZ 20190808 20190630 ่”กๆ–นๆ–น ่‘ฃไบ‹ NaN 0.0
+ 7 000001.SZ 20190808 20190630 ้ƒญๅปบ ่‘ฃไบ‹ NaN 0.0
+ 8 000001.SZ 20190808 20190630 ้ƒญไธ–้‚ฆ ่‘ฃไบ‹,ๅ‰ฏ่กŒ้•ฟ NaN 0.0
+ 9 000001.SZ 20190808 20190630 ็Ž‹ๆ˜ฅๆฑ‰ ็‹ฌ็ซ‹่‘ฃไบ‹ NaN 0.0
+ 10 000001.SZ 20190808 20190630 ็Ž‹ๆพๅฅ‡ ็‹ฌ็ซ‹่‘ฃไบ‹ NaN 0.0
+ 11 000001.SZ 20190808 20190630 ้ƒญ็”ฐๅ‹‡ ็‹ฌ็ซ‹่‘ฃไบ‹ NaN 0.0
+ 12 000001.SZ 20190808 20190630 ๆจๅฆ‚็”Ÿ ็‹ฌ็ซ‹่‘ฃไบ‹ NaN 0.0
+ 13 000001.SZ 20190808 20190630 ้‚ฑไผŸ ็›‘ไบ‹้•ฟ,่Œๅทฅ็›‘ไบ‹ NaN 0.0
+ 14 000001.SZ 20190808 20190630 ่ฝฆๅ›ฝๅฎ ่‚กไธœ็›‘ไบ‹ NaN 0.0
+ 15 000001.SZ 20190808 20190630 ๅ‘จๅปบๅ›ฝ ๅค–้ƒจ็›‘ไบ‹ NaN 0.0
+ 16 000001.SZ 20190808 20190630 ้ช†ๅ‘ไธœ ๅค–้ƒจ็›‘ไบ‹ NaN 0.0
+ 17 000001.SZ 20190808 20190630 ๅ‚จไธ€ๆ˜€ ๅค–้ƒจ็›‘ไบ‹ NaN 0.0
+ 18 000001.SZ 20190808 20190630 ๅญ™ๆฐธๆกข ่Œๅทฅ็›‘ไบ‹ NaN 0.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\210\227\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..5f4a2f38b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\210\227\350\241\250.md"
@@ -0,0 +1,91 @@
+## ๅŸบ็ก€ไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšstock_basic๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎ
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŸบ็ก€ไฟกๆฏๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ่‚ก็ฅจไปฃ็ ใ€ๅ็งฐใ€ไธŠๅธ‚ๆ—ฅๆœŸใ€้€€ๅธ‚ๆ—ฅๆœŸ็ญ‰
+ๆƒ้™๏ผš2000็งฏๅˆ†่ตทใ€‚ๆญคๆŽฅๅฃๆ˜ฏๅŸบ็ก€ไฟกๆฏ๏ผŒ่ฐƒๅ–ไธ€ๆฌกๅฐฑๅฏไปฅๆ‹‰ๅ–ๅฎŒ๏ผŒๅปบ่ฎฎไฟๅญ˜ๅ€’ๆœฌๅœฐๅญ˜ๅ‚จๅŽไฝฟ็”จ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ (<a href="https://tushare.pro/document/2?doc_id=14">ๆ ผๅผ่ฏดๆ˜Ž</a>)
+name | str | N | ๅ็งฐ
+market | str | N | ๅธ‚ๅœบ็ฑปๅˆซ ๏ผˆไธปๆฟ/ๅˆ›ไธšๆฟ/็ง‘ๅˆ›ๆฟ/CDR/ๅŒ—ไบคๆ‰€๏ผ‰
+list_status | str | N | ไธŠๅธ‚็Šถๆ€ LไธŠๅธ‚ D้€€ๅธ‚ Pๆš‚ๅœไธŠๅธ‚ G่ฟ‡ไผšๆœชไบคๆ˜“๏ผŒ้ป˜่ฎคๆ˜ฏL
+exchange | str | N | ไบคๆ˜“ๆ‰€ SSEไธŠไบคๆ‰€ SZSEๆทฑไบคๆ‰€ BSEๅŒ—ไบคๆ‰€
+is_hs | str | N | ๆ˜ฏๅฆๆฒชๆทฑๆธฏ้€šๆ ‡็š„๏ผŒNๅฆ Hๆฒช่‚ก้€š Sๆทฑ่‚ก้€š
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+symbol | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+area | str | Y | ๅœฐๅŸŸ
+industry | str | Y | ๆ‰€ๅฑž่กŒไธš
+fullname | str | N | ่‚ก็ฅจๅ…จ็งฐ
+enname | str | N | ่‹ฑๆ–‡ๅ…จ็งฐ
+cnspell | str | Y | ๆ‹ผ้Ÿณ็ผฉๅ†™
+market | str | Y | ๅธ‚ๅœบ็ฑปๅž‹๏ผˆไธปๆฟ/ๅˆ›ไธšๆฟ/็ง‘ๅˆ›ๆฟ/CDR๏ผ‰
+exchange | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+curr_type | str | N | ไบคๆ˜“่ดงๅธ
+list_status | str | N | ไธŠๅธ‚็Šถๆ€ LไธŠๅธ‚ D้€€ๅธ‚ G่ฟ‡ไผšๆœชไบคๆ˜“ Pๆš‚ๅœไธŠๅธ‚
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+delist_date | str | N | ้€€ๅธ‚ๆ—ฅๆœŸ
+is_hs | str | N | ๆ˜ฏๅฆๆฒชๆทฑๆธฏ้€šๆ ‡็š„๏ผŒNๅฆ Hๆฒช่‚ก้€š Sๆทฑ่‚ก้€š
+act_name | str | Y | ๅฎžๆŽงไบบๅ็งฐ
+act_ent_type | str | Y | ๅฎžๆŽงไบบไผไธšๆ€ง่ดจ
+
+
+่ฏดๆ˜Ž๏ผšๆ—ง็‰ˆไธŠ็š„PE/PB/่‚กๆœฌ็ญ‰ๅญ—ๆฎต๏ผŒ่ฏทๅœจ่กŒๆƒ…ๆŽฅๅฃ[โ€œๆฏๆ—ฅๆŒ‡ๆ ‡โ€](https://tushare.pro/document/2?doc_id=32)ไธญ่Žทๅ–ใ€‚
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#ๆŸฅ่ฏขๅฝ“ๅ‰ๆ‰€ๆœ‰ๆญฃๅธธไธŠๅธ‚ไบคๆ˜“็š„่‚ก็ฅจๅˆ—่กจ
+
+data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
+
+```
+
+<br>
+ๆˆ–่€…๏ผš
+<br>
+
+```python
+
+#ๆŸฅ่ฏขๅฝ“ๅ‰ๆ‰€ๆœ‰ๆญฃๅธธไธŠๅธ‚ไบคๆ˜“็š„่‚ก็ฅจๅˆ—่กจ
+
+data = pro.query('stock_basic', exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code symbol name area industry list_date
+ 0 000001.SZ 000001 ๅนณๅฎ‰้“ถ่กŒ ๆทฑๅœณ ้“ถ่กŒ 19910403
+ 1 000002.SZ 000002 ไธ‡็ง‘A ๆทฑๅœณ ๅ…จๅ›ฝๅœฐไบง 19910129
+ 2 000004.SZ 000004 ๅ›ฝๅ†œ็ง‘ๆŠ€ ๆทฑๅœณ ็”Ÿ็‰ฉๅˆถ่ฏ 19910114
+ 3 000005.SZ 000005 ไธ–็บชๆ˜Ÿๆบ ๆทฑๅœณ ๆˆฟไบงๆœๅŠก 19901210
+ 4 000006.SZ 000006 ๆทฑๆŒฏไธšA ๆทฑๅœณ ๅŒบๅŸŸๅœฐไบง 19920427
+ 5 000007.SZ 000007 ๅ…จๆ–ฐๅฅฝ ๆทฑๅœณ ้…’ๅบ—้ค้ฅฎ 19920413
+ 6 000008.SZ 000008 ็ฅžๅทž้ซ˜้“ ๅŒ—ไบฌ ่ฟ่พ“่ฎพๅค‡ 19920507
+ 7 000009.SZ 000009 ไธญๅ›ฝๅฎๅฎ‰ ๆทฑๅœณ ็ปผๅˆ็ฑป 19910625
+ 8 000010.SZ 000010 ็พŽไธฝ็”Ÿๆ€ ๆทฑๅœณ ๅปบ็ญ‘ๆ–ฝๅทฅ 19951027
+ 9 000011.SZ 000011 ๆทฑ็‰ฉไธšA ๆทฑๅœณ ๅŒบๅŸŸๅœฐไบง 19920330
+ 10 000012.SZ 000012 ๅ—็ŽปA ๆทฑๅœณ ็Žป็’ƒ 19920228
+ 11 000014.SZ 000014 ๆฒ™ๆฒณ่‚กไปฝ ๆทฑๅœณ ๅ…จๅ›ฝๅœฐไบง 19920602
+ 12 000016.SZ 000016 ๆทฑๅบทไฝณA ๆทฑๅœณ ๅฎถ็”จ็”ตๅ™จ 19920327
+ 13 000017.SZ 000017 ๆทฑไธญๅŽA ๆทฑๅœณ ๆ–‡ๆ•™ไผ‘้—ฒ 19920331
+ 14 000018.SZ 000018 ็ฅžๅทž้•ฟๅŸŽ ๆทฑๅœณ ่ฃ…ไฟฎ่ฃ…้ฅฐ 19920616
+ 15 000019.SZ 000019 ๆทฑๆทฑๅฎA ๆทฑๅœณ ่ฝฏ้ฅฎๆ–™ 19921012
+ 16 000020.SZ 000020 ๆทฑๅŽๅ‘A ๆทฑๅœณ ๅ…ƒๅ™จไปถ 19920428
+ 17 000021.SZ 000021 ๆทฑ็ง‘ๆŠ€ ๆทฑๅœณ ็”ต่„‘่ฎพๅค‡ 19940202
+ 18 000022.SZ 000022 ๆทฑ่ตคๆนพA ๆทฑๅœณ ๆธฏๅฃ 19930505
+ 19 000023.SZ 000023 ๆทฑๅคฉๅœฐA ๆทฑๅœณ ๅ…ถไป–ๅปบๆ 19930429
+ 20 000025.SZ 000025 ็‰นๅŠ›A ๆทฑๅœณ ๆฑฝ่ฝฆๆœๅŠก 19930621
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\216\206\345\217\262\345\210\227\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\216\206\345\217\262\345\210\227\350\241\250.md"
new file mode 100644
index 000000000..5ccb593fb
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\345\216\206\345\217\262\345\210\227\350\241\250.md"
@@ -0,0 +1,68 @@
+## ่‚ก็ฅจๅކๅฒๅˆ—่กจ๏ผˆๅކๅฒๆฏๅคฉ่‚ก็ฅจๅˆ—่กจ๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšbak_basic
+ๆ่ฟฐ๏ผš่Žทๅ–ๅค‡็”จๅŸบ็ก€ๅˆ—่กจ๏ผŒๆ•ฐๆฎไปŽ2016ๅนดๅผ€ๅง‹
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง7000ๆก๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๅކๅฒ๏ผŒๆญฃๅผๆƒ้™้œ€่ฆ5000็งฏๅˆ†ใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+industry | str | Y | ่กŒไธš
+area | str | Y | ๅœฐๅŸŸ
+pe | float | Y | ๅธ‚็›ˆ็އ๏ผˆๅŠจ๏ผ‰
+float_share | float | Y | ๆต้€š่‚กๆœฌ๏ผˆไบฟ๏ผ‰
+total_share | float | Y | ๆ€ป่‚กๆœฌ๏ผˆไบฟ๏ผ‰
+total_assets | float | Y | ๆ€ป่ต„ไบง๏ผˆไบฟ๏ผ‰
+liquid_assets | float | Y | ๆตๅŠจ่ต„ไบง๏ผˆไบฟ๏ผ‰
+fixed_assets | float | Y | ๅ›บๅฎš่ต„ไบง๏ผˆไบฟ๏ผ‰
+reserved | float | Y | ๅ…ฌ็งฏ้‡‘
+reserved_pershare | float | Y | ๆฏ่‚กๅ…ฌ็งฏ้‡‘
+eps | float | Y | ๆฏ่‚กๆ”ถ็›Š
+bvps | float | Y | ๆฏ่‚กๅ‡€่ต„ไบง
+pb | float | Y | ๅธ‚ๅ‡€็އ
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+undp | float | Y | ๆœชๅˆ†้…ๅˆฉๆถฆ
+per_undp | float | Y | ๆฏ่‚กๆœชๅˆ†้…ๅˆฉๆถฆ
+rev_yoy | float | Y | ๆ”ถๅ…ฅๅŒๆฏ”๏ผˆ%๏ผ‰
+profit_yoy | float | Y | ๅˆฉๆถฆๅŒๆฏ”๏ผˆ%๏ผ‰
+gpr | float | Y | ๆฏ›ๅˆฉ็އ๏ผˆ%๏ผ‰
+npr | float | Y | ๅ‡€ๅˆฉๆถฆ็އ๏ผˆ%๏ผ‰
+holder_num | int | Y | ่‚กไธœไบบๆ•ฐ
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.bak_basic(trade_date='20211012', fields='trade_date,ts_code,name,industry,pe')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name industry pe
+ 0 20211012 300605.SZ ๆ’้”‹ไฟกๆฏ ่ฝฏไปถๆœๅŠก 56.4400
+ 1 20211012 301017.SZ ๆผฑ็މๅนณๆฐ‘ ๅŒป่ฏๅ•†ไธš 58.7600
+ 2 20211012 300755.SZ ๅŽ่‡ด้…’่กŒ ๅ…ถไป–ๅ•†ไธš 23.0000
+ 3 20211012 300255.SZ ๅธธๅฑฑ่ฏไธš ็”Ÿ็‰ฉๅˆถ่ฏ 24.9900
+ 4 20211012 688378.SH ๅฅฅๆฅๅพท ไธ“็”จๆœบๆขฐ 24.9600
+ ... ... ... ... ... ...
+ 4529 20211012 688257.SH ๆ–ฐ้”่‚กไปฝ ๆœบๆขฐๅŸบไปถ 0.0000
+ 4530 20211012 688255.SH ๅ‡ฏๅฐ”่พพ ๆœบๆขฐๅŸบไปถ 0.0000
+ 4531 20211012 688211.SH ไธญ็ง‘ๅพฎ่‡ณ ไธ“็”จๆœบๆขฐ 0.0000
+ 4532 20211012 605567.SH ๆ˜ฅ้›ช้ฃŸๅ“ ้ฃŸๅ“ 0.0000
+ 4533 20211012 605566.SH ็ฆ่Žฑ่’ฝ็‰น ๆŸ“ๆ–™ๆถ‚ๆ–™ 0.0000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\346\233\276\347\224\250\345\220\215.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\346\233\276\347\224\250\345\220\215.md"
new file mode 100644
index 000000000..3b72a6552
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\345\237\272\347\241\200\346\225\260\346\215\256/\350\202\241\347\245\250\346\233\276\347\224\250\345\220\215.md"
@@ -0,0 +1,46 @@
+## ่‚ก็ฅจๆ›พ็”จๅ
+----
+
+ๆŽฅๅฃ๏ผšnamechange
+ๆ่ฟฐ๏ผšๅކๅฒๅ็งฐๅ˜ๆ›ด่ฎฐๅฝ•
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎค่พ“ๅ‡บ | ๆ่ฟฐ
+--- | ---- | ---- | ---
+ts_code | str | Y | TSไปฃ็ 
+name | str | Y | ่ฏๅˆธๅ็งฐ
+start_date | str | Y | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | Y | ็ป“ๆŸๆ—ฅๆœŸ
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+change_reason | str | Y | ๅ˜ๆ›ดๅŽŸๅ› 
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.namechange(ts_code='600848.SH', fields='ts_code,name,start_date,end_date,change_reason')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name start_date end_date change_reason
+ 0 600848.SH ไธŠๆตทไธดๆธฏ 20151118 None ๆ”นๅ
+ 1 600848.SH ่‡ชไปช่‚กไปฝ 20070514 20151117 ๆ’ค้”€ST
+ 2 600848.SH ST่‡ชไปช 20061026 20070513 ๅฎŒๆˆ่‚กๆ”น
+ 3 600848.SH SST่‡ชไปช 20061009 20061025 ๆœช่‚กๆ”นๅŠ S
+ 4 600848.SH ST่‡ชไปช 20010508 20061008 ST
+ 5 600848.SH ่‡ชไปช่‚กไปฝ 19940324 20010507 ๅ…ถไป–
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214App\347\203\255\346\246\234.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214App\347\203\255\346\246\234.md"
new file mode 100644
index 000000000..51238e947
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214App\347\203\255\346\246\234.md"
@@ -0,0 +1,77 @@
+## ไธœๆ–น่ดขๅฏŒ็ƒญๆฟ
+----
+
+ๆŽฅๅฃ๏ผšdc_hot
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒApp็ƒญๆฆœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌA่‚กๅธ‚ๅœบใ€ETFๅŸบ้‡‘ใ€ๆธฏ่‚กๅธ‚ๅœบใ€็พŽ่‚กๅธ‚ๅœบ็ญ‰็ญ‰๏ผŒๆฏๆ—ฅ็›˜ไธญๆๅ–4ๆฌก๏ผŒๆ”ถ็›˜ๅŽ4ๆฌก๏ผŒๆœ€ๆ™š22็‚นๆๅ–ไธ€ๆฌกใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸ็ญ‰ๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ8000็งฏๅˆ†ๅฏ่ฐƒๅ–ไฝฟ็”จ๏ผŒ็งฏๅˆ†่Žทๅ–ๅŠžๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br><br>
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปไธœๆ–น่ดขๅฏŒ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | TSไปฃ็ 
+market | str | N | ็ฑปๅž‹(A่‚กๅธ‚ๅœบใ€ETFๅŸบ้‡‘ใ€ๆธฏ่‚กๅธ‚ๅœบใ€็พŽ่‚กๅธ‚ๅœบ)
+hot_type | str | N | ็ƒญ็‚น็ฑปๅž‹(ไบบๆฐ”ๆฆœใ€้ฃ™ๅ‡ๆฆœ)
+is_new | str | N | ๆ˜ฏๅฆๆœ€ๆ–ฐ๏ผˆ้ป˜่ฎคY๏ผŒๅฆ‚ๆžœไธบNๅˆ™ไธบ็›˜ไธญๅ’Œ็›˜ๅŽ้˜ถๆฎต้‡‡้›†๏ผŒๅ…ทไฝ“ๆ—ถ้—ดๅฏๅ‚่€ƒrank_timeๅญ—ๆฎต๏ผŒ็Šถๆ€Nๆฏๅฐๆ—ถๆ›ดๆ–ฐไธ€ๆฌก๏ผŒ็Šถๆ€Yๆ›ดๆ–ฐๆ—ถ้—ดไธบ22๏ผš30๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+data_type | str | Y | ๆ•ฐๆฎ็ฑปๅž‹
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ts_name | str | Y | ่‚ก็ฅจๅ็งฐ
+rank | int | Y | ๆŽ’่กŒๆˆ–่€…็ƒญๅบฆ
+pct_change | float | Y | ๆถจ่ทŒๅน…%
+current_price | float | Y | ๅฝ“ๅ‰ไปท
+rank_time | str | Y | ๆŽ’่กŒๆฆœ่Žทๅ–ๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆŸฅ่ฏขๆœˆไปฝๅˆธๅ•†้‡‘่‚ก
+df = pro.dc_hot(trade_date='20240415', market='A่‚กๅธ‚ๅœบ',hot_type='ไบบๆฐ”ๆฆœ', fields='ts_code,ts_name,rank')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ts_name rank
+ 0 601099.SH ๅคชๅนณๆด‹ 1
+ 1 601995.SH ไธญ้‡‘ๅ…ฌๅธ 2
+ 2 002235.SZ ๅฎ‰ๅฆฎ่‚กไปฝ 3
+ 3 601136.SH ้ฆ–ๅˆ›่ฏๅˆธ 4
+ 4 600127.SH ้‡‘ๅฅ็ฑณไธš 5
+ .. ... ... ...
+ 95 300675.SZ ๅปบ็ง‘้™ข 96
+ 96 601900.SH ๅ—ๆ–นไผ ๅช’ 97
+ 97 600280.SH ไธญๅคฎๅ•†ๅœบ 98
+ 98 300898.SZ ็†Š็Œซไนณๅ“ 99
+ 99 600519.SH ่ดตๅทž่Œ…ๅฐ 100
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆฅๆบ**
+
+<img src='https://tushare.pro/files/web/dc1.jpg' width="300" height="600">
+
+<img src='https://tushare.pro/files/web/dc2.png' width="300" height="600">
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\210\220\345\210\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\210\220\345\210\206.md"
new file mode 100644
index 000000000..06aad9255
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\210\220\345\210\206.md"
@@ -0,0 +1,65 @@
+## ไธœๆ–น่ดขๅฏŒๆฟๅ—ๆˆๅˆ†
+----
+
+ๆŽฅๅฃ๏ผšdc_member
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฟๅ—ๆฏๆ—ฅๆˆๅˆ†ๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆฆ‚ๅฟตๆฟๅ—ไปฃ็ ๅ’Œไบคๆ˜“ๆ—ฅๆœŸ๏ผŒ่Žทๅ–ๅކๅฒๆˆๅˆ†
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่Žทๅ–5000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆ—ฅๆœŸๅ’Œไปฃ็ ๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br><br>
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปไธœๆ–น่ดขๅฏŒ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ๆŒ‡ๆ•ฐไปฃ็ 
+con_code | str | N | ๆˆๅˆ†่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๆฆ‚ๅฟตไปฃ็ 
+con_code | str | Y | ๆˆๅˆ†ไปฃ็ 
+name | str | Y | ๆˆๅˆ†่‚กๅ็งฐ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไธœๆ–น่ดขๅฏŒ2025ๅนด1ๆœˆ2ๆ—ฅ็š„ไบบๅฝขๆœบๅ™จไบบๆฆ‚ๅฟตๆฟๅ—ๆˆๅˆ†ๅˆ—่กจ
+df = pro.dc_member(trade_date='20250102', ts_code='BK1184.DC')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code con_code name
+ 0 20250102 BK1184.DC 002117.SZ ไธœๆธฏ่‚กไปฝ
+ 1 20250102 BK1184.DC 603662.SH ๆŸฏๅŠ›ไผ ๆ„Ÿ
+ 2 20250102 BK1184.DC 688165.SH ๅŸƒๅคซ็‰น-U
+ 3 20250102 BK1184.DC 300660.SZ ๆฑŸ่‹้›ทๅˆฉ
+ 4 20250102 BK1184.DC 873593.BJ ้ผŽๆ™บ็ง‘ๆŠ€
+ .. ... ... ... ...
+ 59 20250102 BK1184.DC 002139.SZ ๆ‹“้‚ฆ่‚กไปฝ
+ 60 20250102 BK1184.DC 301236.SZ ่ฝฏ้€šๅŠจๅŠ›
+ 61 20250102 BK1184.DC 601727.SH ไธŠๆตท็”ตๆฐ”
+ 62 20250102 BK1184.DC 300432.SZ ๅฏŒไธด็ฒพๅทฅ
+ 63 20250102 BK1184.DC 300843.SZ ่ƒœ่“่‚กไปฝ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\235\277\345\235\227.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\235\277\345\235\227.md"
new file mode 100644
index 000000000..253de7218
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\346\226\271\350\264\242\345\257\214\346\246\202\345\277\265\346\235\277\345\235\227.md"
@@ -0,0 +1,76 @@
+## ไธœๆ–น่ดขๅฏŒๆฆ‚ๅฟตๆฟๅ—
+----
+
+ๆŽฅๅฃ๏ผšdc_index
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฏไธชไบคๆ˜“ๆ—ฅ็š„ๆฆ‚ๅฟตๆฟๅ—ๆ•ฐๆฎ๏ผŒๆ”ฏๆŒๆŒ‰ๆ—ฅๆœŸๆŸฅ่ฏข
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่Žทๅ–5000ๆกๆ•ฐๆฎ๏ผŒๅކๅฒๆ•ฐๆฎๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปไธœๆ–น่ดขๅฏŒ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ ๏ผˆๆ”ฏๆŒๅคšไธชไปฃ็ ๅŒๆ—ถ่พ“ๅ…ฅ๏ผŒ็”จ้€—ๅทๅˆ†้š”๏ผ‰
+name | str | N | ๆฟๅ—ๅ็งฐ๏ผˆไพ‹ๅฆ‚๏ผšไบบๅฝขๆœบๅ™จไบบ๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+idx_type | str | Y | ๆฟๅ—็ฑปๅž‹(่กŒไธšๆฟๅ—ใ€ๆฆ‚ๅฟตๆฟๅ—ใ€ๅœฐๅŸŸๆฟๅ—)
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฆ‚ๅฟตไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+name | str | Y | ๆฆ‚ๅฟตๅ็งฐ
+leading | str | Y | ้ข†ๆถจ่‚ก็ฅจๅ็งฐ
+leading_code | str | Y | ้ข†ๆถจ่‚ก็ฅจไปฃ็ 
+pct_change | float | Y | ๆถจ่ทŒๅน…
+leading_pct | float | Y | ้ข†ๆถจ่‚ก็ฅจๆถจ่ทŒๅน…
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+turnover_rate | float | Y | ๆขๆ‰‹็އ
+up_num | int | Y | ไธŠๆถจๅฎถๆ•ฐ
+down_num | int | Y | ไธ‹้™ๅฎถๆ•ฐ
+idx_type | str | Y | ๆฟๅ—็ฑปๅž‹(่กŒไธšๆฟๅ—ใ€ๆฆ‚ๅฟตๆฟๅ—ใ€ๅœฐๅŸŸๆฟๅ—)
+level | str | Y | ่กŒไธšๅฑ‚็บง
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไธœๆ–น่ดขๅฏŒ2025ๅนด1ๆœˆ3ๆ—ฅ็š„ๆฆ‚ๅฟตๆฟๅ—ๅˆ—่กจ
+df = pro.dc_index(trade_date='20250103', fields='ts_code,name,turnover_rate,up_num,down_num')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name turnover_rate up_num down_num
+ 0 BK1186.DC ้ฆ–ๅ‘็ปๆตŽ 8.3700 4 31
+ 1 BK1185.DC ๅ†ฐ้›ช็ปๆตŽ 4.0800 2 32
+ 2 BK1184.DC ไบบๅฝขๆœบๅ™จไบบ 4.0800 2 62
+ 3 BK1183.DC ่ฐทๅญ็ปๆตŽ 4.6300 2 55
+ 4 BK1182.DC ๆ™บ่ฐฑAI 5.4000 0 33
+ .. ... ... ... ... ...
+ 453 BK0498.DC AB่‚ก 1.7300 4 67
+ 454 BK0494.DC ่Š‚่ƒฝ็Žฏไฟ 2.1600 32 378
+ 455 BK0493.DC ๆ–ฐ่ƒฝๆบ 1.4800 19 184
+ 456 BK0492.DC ็…คๅŒ–ๅทฅ 1.7000 16 56
+ 457 BK0490.DC ๅ†›ๅทฅ 2.5200 32 465
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\350\264\242\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\350\264\242\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..d313b96a4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\344\270\234\350\264\242\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md"
@@ -0,0 +1,75 @@
+## ไธœ่ดขๆฆ‚ๅฟตๆฟๅ—่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšdc_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœ่ดขๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšๆŒ‡ๆ•ฐๆฟๅ—ใ€ๅœฐๅŸŸๆฟๅ—่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅކๅฒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2020ๅนด
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆกๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br><br>
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปไธœๆ–น่ดขๅฏŒ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ไปฃ็ ๏ผˆๆ ผๅผ๏ผšxxxxx.DC)
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDDไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+idx_type | str | N | ๆฟๅ—็ฑปๅž‹๏ผš ๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšๆฟๅ—ใ€ๅœฐๅŸŸๆฟๅ—
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡(่‚ก)
+amount | float | Y | ๆˆไบค้ข(ๅ…ƒ)
+swing | float | Y | ๆŒฏๅน…
+turnover_rate | float | Y | ๆขๆ‰‹็އ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไธœๆ–น่ดขๅฏŒ2025ๅนด5ๆœˆ13ๆ—ฅๆฆ‚ๅฟตๆฟๅ—่กŒๆƒ…
+df = pro.dc_daily(trade_date='20250513')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close open high low pct_change
+ 0 BK1063.DC 20250513 792.5200 793.5200 795.0400 786.9000 0.8700
+ 1 BK1051.DC 20250513 12408.8600 12510.2500 12573.2800 12350.8900 4.3700
+ 2 BK0816.DC 20250513 65.8600 66.6700 67.0200 65.4500 3.7700
+ 3 BK0547.DC 20250513 12810.7600 12745.7200 12823.3500 12691.3900 0.6000
+ 4 BK1082.DC 20250513 1306.9800 1337.2300 1342.8900 1302.9700 -1.3900
+ .. ... ... ... ... ... ... ...
+ 430 BK0915.DC 20250513 1136.7400 1159.1800 1162.3600 1133.9400 -1.0200
+ 431 BK1084.DC 20250513 1481.1500 1514.2300 1517.7200 1476.3200 -0.6100
+ 432 BK0957.DC 20250513 1277.3800 1295.2900 1303.0000 1275.1900 -0.3500
+ 433 BK1156.DC 20250513 1350.4700 1356.8500 1372.2800 1344.9400 0.0100
+ 434 BK0881.DC 20250513 1156.1600 1181.2600 1184.1800 1154.0800 -0.5700
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272App\347\203\255\346\246\234\346\225\260.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272App\347\203\255\346\246\234\346\225\260.md"
new file mode 100644
index 000000000..fe34dcd9c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272App\347\203\255\346\246\234\346\225\260.md"
@@ -0,0 +1,80 @@
+## ๅŒ่Šฑ้กบ็ƒญๆฆœ
+----
+
+ๆŽฅๅฃ๏ผšths_hot
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบApp็ƒญๆฆœๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ็ƒญ่‚กใ€ๆฆ‚ๅฟตๆฟๅ—ใ€ETFใ€ๅฏ่ฝฌๅ€บใ€ๆธฏ็พŽ่‚ก็ญ‰็ญ‰๏ผŒๆฏๆ—ฅ็›˜ไธญๆๅ–4ๆฌก๏ผŒๆ”ถ็›˜ๅŽ4ๆฌก๏ผŒๆœ€ๆ™š22็‚นๆๅ–ไธ€ๆฌกใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸ็ญ‰ๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–ไฝฟ็”จ๏ผŒ็งฏๅˆ†่Žทๅ–ๅŠžๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br><br>
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปๅŒ่Šฑ้กบ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | TSไปฃ็ 
+market | str | N | ็ƒญๆฆœ็ฑปๅž‹(็ƒญ่‚กใ€ETFใ€ๅฏ่ฝฌๅ€บใ€่กŒไธšๆฟๅ—ใ€ๆฆ‚ๅฟตๆฟๅ—ใ€ๆœŸ่ดงใ€ๆธฏ่‚กใ€็ƒญๅŸบใ€็พŽ่‚ก)
+is_new | str | N | ๆ˜ฏๅฆๆœ€ๆ–ฐ๏ผˆ้ป˜่ฎคY๏ผŒๅฆ‚ๆžœไธบNๅˆ™ไธบ็›˜ไธญๅ’Œ็›˜ๅŽ้˜ถๆฎต้‡‡้›†๏ผŒๅ…ทไฝ“ๆ—ถ้—ดๅฏๅ‚่€ƒrank_timeๅญ—ๆฎต๏ผŒ็Šถๆ€Nๆฏๅฐๆ—ถๆ›ดๆ–ฐไธ€ๆฌก๏ผŒ็Šถๆ€Yๆ›ดๆ–ฐๆ—ถ้—ดไธบ22๏ผš30๏ผ‰
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+data_type | str | Y | ๆ•ฐๆฎ็ฑปๅž‹
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ts_name | str | Y | ่‚ก็ฅจๅ็งฐ
+rank | int | Y | ๆŽ’่กŒ
+pct_change | float | Y | ๆถจ่ทŒๅน…%
+current_price | float | Y | ๅฝ“ๅ‰ไปทๆ ผ
+concept | str | Y | ๆ ‡็ญพ
+rank_reason | str | Y | ไธŠๆฆœ่งฃ่ฏป
+hot | float | Y | ็ƒญๅบฆๅ€ผ
+rank_time | str | Y | ๆŽ’่กŒๆฆœ่Žทๅ–ๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆŸฅ่ฏขๆœˆไปฝๅˆธๅ•†้‡‘่‚ก
+df = pro.ths_hot(trade_date='20240315', market='็ƒญ่‚ก', fields='ts_code,ts_name,hot,concept')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ts_name hot concept
+ 0 300750.SZ ๅฎๅพทๆ—ถไปฃ 214462.0 ["้’ ็ฆปๅญ็”ตๆฑ ", "ๅŒ่Šฑ้กบๆผ‚ไบฎ100"]
+ 1 603580.SH ่‰พ่‰พ็ฒพๅทฅ 185431.0 ["ไบบๆฐ‘ๅธ่ดฌๅ€ผๅ—็›Š", "ๅฐๆนพๆฆ‚ๅฟต่‚ก"]
+ 2 002085.SZ ไธ‡ไธฐๅฅฅๅจ 180332.0 ["้ฃž่กŒๆฑฝ่ฝฆ(eVTOL)", "ไฝŽ็ฉบ็ปๆตŽ"]
+ 3 600733.SH ๅŒ—ๆฑฝ่“่ฐท 156000.0 ["ไธ€ไฝ“ๅŒ–ๅŽ‹้“ธ", "ๅŽไธบๆฑฝ่ฝฆ"]
+ 4 603259.SH ่ฏๆ˜Žๅบทๅพท 154360.0 ["CROๆฆ‚ๅฟต", "ๅˆ›ๆ–ฐ่ฏ"]
+ .. ... ... ... ...
+ 95 300735.SZ ๅ…‰ๅผ˜็ง‘ๆŠ€ 28528.0 ["ๆ™บ่ƒฝ็ฉฟๆˆด", "EDRๆฆ‚ๅฟต"]
+ 96 002632.SZ ้“ๆ˜Žๅ…‰ๅญฆ 28101.0 ["AIๆ‰‹ๆœบ", "ๆถˆ่ดน็”ตๅญๆฆ‚ๅฟต"]
+ 97 601086.SH ๅ›ฝ่Šณ้›†ๅ›ข 28006.0 ["ๆ–ฐ้›ถๅ”ฎ", "็ฝ‘็ปœ็›ดๆ’ญ"]
+ 98 002406.SZ ่ฟœไธœไผ ๅŠจ 28003.0 ["ๅทฅไธšไบ’่”็ฝ‘", "ๆ™บ่ƒฝๅˆถ้€ "]
+ 99 600160.SH ๅทจๅŒ–่‚กไปฝ 27979.0 ["PVDFๆฆ‚ๅฟต", "ๆฐŸๅŒ–ๅทฅๆฆ‚ๅฟต"]
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆฅๆบ**
+
+<img src='https://tushare.pro/files/web/ths1.jpg' width="250" height="500">
+
+<img src='https://tushare.pro/files/web/ths2.png' width="250" height="500">
+
+<img src='https://tushare.pro/files/web/ths3.png' width="250" height="500">
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..ac8c26197
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\246\202\345\277\265\345\222\214\350\241\214\344\270\232\346\214\207\346\225\260\350\241\214\346\203\205.md"
@@ -0,0 +1,74 @@
+## ๅŒ่Šฑ้กบๆฟๅ—ๆŒ‡ๆ•ฐ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšths_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบๆฟๅ—ๆŒ‡ๆ•ฐ่กŒๆƒ…ใ€‚ๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบ๏ผŒๅฆ‚้œ€ๅธฎๅŠฉ่ฏท่”็ณปๅพฎไฟก๏ผšwaditu_a
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000่กŒๆ•ฐๆฎ๏ผˆ้œ€6000็งฏๅˆ†๏ผ‰๏ผŒๅฏๆ นๆฎๆŒ‡ๆ•ฐไปฃ็ ใ€ๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSๆŒ‡ๆ•ฐไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+avg_price | float | Y | ๅนณๅ‡ไปท
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+vol | float | Y | ๆˆไบค้‡
+turnover_rate | float | Y | ๆขๆ‰‹็އ
+total_mv | float | N | ๆ€ปๅธ‚ๅ€ผ
+float_mv | float | N | ๆต้€šๅธ‚ๅ€ผ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.ths_daily(ts_code='865001.TI', start_date='20200101', end_date='20210101', fields='ts_code,trade_date,open,close,high,low,pct_change')
+
+```
+
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low pct_change vol
+ 0 865001.TI 20201231 1664.7530 1660.7060 1671.2290 1649.4200 0.5646 13224.260000
+ 1 865001.TI 20201230 1655.4070 1644.5950 1664.2290 1638.1100 0.3073 10815.800000
+ 2 865001.TI 20201229 1650.3360 1686.1620 1686.1620 1639.0530 -1.6263 11763.170000
+ 3 865001.TI 20201228 1677.6190 1682.5670 1689.8980 1667.2110 0.6698 11813.210000
+ 4 865001.TI 20201224 1666.4570 1663.3270 1668.8490 1648.7920 0.6533 6571.630000
+ .. ... ... ... ... ... ... ... ...
+ 229 865001.TI 20200108 1315.8190 1313.4520 1323.2140 1312.7090 0.2567 33180.860000
+ 230 865001.TI 20200107 1312.4500 1319.8580 1323.1850 1311.2390 -0.6790 20959.510000
+ 231 865001.TI 20200106 1321.4230 1322.8090 1328.0270 1314.8890 -0.5953 21283.400000
+ 232 865001.TI 20200103 1329.3370 1309.6150 1330.6640 1309.2810 0.6505 28610.530000
+ 233 865001.TI 20200102 1320.7460 1342.6220 1343.1260 1308.6630 -1.1273 26149.740000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\266\250\350\267\214\345\201\234\346\246\234\345\215\225.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\266\250\350\267\214\345\201\234\346\246\234\345\215\225.md"
new file mode 100644
index 000000000..f07501b3a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\346\266\250\350\267\214\345\201\234\346\246\234\345\215\225.md"
@@ -0,0 +1,82 @@
+## ๆถจ่ทŒๅœๆฆœๅ•๏ผˆๅŒ่Šฑ้กบ๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšlimit_list_ths
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบๆฏๆ—ฅๆถจ่ทŒๅœๆฆœๅ•ๆ•ฐๆฎ๏ผŒๅކๅฒๆ•ฐๆฎไปŽ20231101ๅผ€ๅง‹ๆไพ›๏ผŒๅขž้‡ๆฏๅคฉ16็‚นๅทฆๅณๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–่‚ก็ฅจไปฃ็ ๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก๏ผŒๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<br><br>
+ๆณจๆ„๏ผšๆœฌๆŽฅๅฃๅช้™ไธชไบบๅญฆไน ๅ’Œ็ ”็ฉถไฝฟ็”จ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปๅŒ่Šฑ้กบ่งฃๅ†ณๆ•ฐๆฎ้‡‡่ดญ้—ฎ้ข˜ใ€‚
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+limit_type | str | N | ๆถจๅœๆฑ ใ€่ฟžๆ‰ณๆฑ ใ€ๅ†ฒๅˆบๆถจๅœใ€็‚ธๆฟๆฑ ใ€่ทŒๅœๆฑ ๏ผŒ้ป˜่ฎค๏ผšๆถจๅœๆฑ 
+market | str | N | HS-ๆฒชๆทฑไธปๆฟ GEM-ๅˆ›ไธšๆฟ STAR-็ง‘ๅˆ›ๆฟ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+price | float | Y | ๆ”ถ็›˜ไปท(ๅ…ƒ)
+pct_chg | float | Y | ๆถจ่ทŒๅน…%
+open_num | int | Y | ๆ‰“ๅผ€ๆฌกๆ•ฐ
+lu_desc | str | Y | ๆถจๅœๅŽŸๅ› 
+limit_type | str | Y | ๆฟๅ•็ฑปๅˆซ
+tag | str | Y | ๆถจๅœๆ ‡็ญพ
+status | str | Y | ๆถจๅœ็Šถๆ€๏ผˆN่ฟžๆฟใ€ไธ€ๅญ—ๆฟ๏ผ‰
+first_lu_time | str | N | ้ฆ–ๆฌกๆถจๅœๆ—ถ้—ด
+last_lu_time | str | N | ๆœ€ๅŽๆถจๅœๆ—ถ้—ด
+first_ld_time | str | N | ้ฆ–ๆฌก่ทŒๅœๆ—ถ้—ด
+last_ld_time | str | N | ๆœ€ๅŽ่ทŒๅœๆ—ถ้—ด
+limit_order | float | Y | ๅฐๅ•้‡(ๅ…ƒ|ไธช)
+limit_amount | float | Y | ๅฐๅ•้ข(ๅ…ƒ|ไธช)
+turnover_rate | float | Y | ๆขๆ‰‹็އ%
+free_float | float | Y | ๅฎž้™…ๆต้€š(ๅ…ƒ|ไธช)
+lu_limit_order | float | Y | ๆœ€ๅคงๅฐๅ•(ๅ…ƒ|ไธช)
+limit_up_suc_rate | float | Y | ่ฟ‘ไธ€ๅนดๆถจๅœๅฐๆฟ็އ
+turnover | float | Y | ๆˆไบค้ข
+rise_rate | float | N | ๆถจ้€Ÿ
+sum_float | float | N | ๆ€ปๅธ‚ๅ€ผ๏ผˆไบฟๅ…ƒ๏ผ‰
+market_type | str | Y | ่‚ก็ฅจ็ฑปๅž‹๏ผšHSๆฒชๆทฑไธปๆฟใ€GEMๅˆ›ไธšๆฟใ€STAR็ง‘ๅˆ›ๆฟ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.limit_list_ths(trade_date='20241125', limit_type='ๆถจๅœๆฑ ', fields='ts_code,trade_date,tag,status,lu_desc')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code lu_desc tag status
+ 0 20241125 603518.SH ๆœ่ฃ…ๅฎถ็บบ+็”ตๅ•† ้ฆ–ๆฟ ๆขๆ‰‹ๆฟ
+ 1 20241125 003036.SZ ้ซ˜็ซฏ็บบ็ป‡ๆœบๆขฐ่ฎพๅค‡+่ฟ‘ๅนดๆฅๆ”ถ่ดญไบ†2ๅฎถๅ…ฌๅธ 4ๅคฉ4ๆฟ Tๅญ—ๆฟ
+ 2 20241125 301268.SZ ็ฒพๅฏ†็ป“ๆž„ไปถ+ๅŽไธบ+ๅ…‰ไผ+ไธ€ไฝ“ๅŒ–ๅŽ‹้“ธ ้ฆ–ๆฟ ๆขๆ‰‹ๆฟ
+ 3 20241125 603655.SH ๆฉก่ƒถ+ๆฑฝ่ฝฆ้›ถ้ƒจไปถ+้—ดๆŽฅไพ›่ดง็‰นๆ–ฏๆ‹‰ 2ๅคฉ2ๆฟ ๆขๆ‰‹ๆฟ
+ 4 20241125 600119.SH ไธŠๆตทๅ›ฝ่ต„+ไบงไธšๆŠ•่ต„+็‰ฉๆต+่ทจๅขƒ็”ตๅ•† 4ๅคฉ2ๆฟ ๆขๆ‰‹ๆฟ
+ .. ... ... ... ... ...
+ 149 20241125 002348.SZ ๅ›บๆ€็”ตๆฑ +็Žฉๅ…ท+ไบ’่”็ฝ‘ๆ•™่‚ฒ 4ๅคฉ2ๆฟ ไธ€ๅญ—ๆฟ
+ 150 20241125 002175.SZ โ€œไธœๆ–น็ณปโ€+่Šฏ็‰‡+ๆ™บ่ƒฝๅˆถ้€ +็‰ฉไธš็ฎก็† 4ๅคฉ4ๆฟ ไธ€ๅญ—ๆฟ
+ 151 20241125 002155.SZ ๆน–ๅ—ไธ‡ๅค้‡‘็Ÿฟ็”ฐๆŽข็Ÿฟ่Žท้‡ๅคง็ช็ ด 3ๅคฉ3ๆฟ ไธ€ๅญ—ๆฟ
+ 152 20241125 002117.SZ ๆ™บ่ƒฝๆœบๅ™จไบบ+ๆ‹Ÿๅ‘ๅญๅ…ฌๅธๅขž่ต„+AIๅบ”็”จ 2ๅคฉ2ๆฟ ไธ€ๅญ—ๆฟ
+ 153 20241125 002103.SZ IPไบงๅ“+ๅนฟๅ‘Š่ฅ้”€+่ทจๅขƒ็”ตๅ•† 7ๅคฉ5ๆฟ ไธ€ๅญ—ๆฟ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\210\220\345\210\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\210\220\345\210\206.md"
new file mode 100644
index 000000000..e4265122f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\210\220\345\210\206.md"
@@ -0,0 +1,68 @@
+
+## ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—ๆˆๅˆ†
+----
+
+ๆŽฅๅฃ๏ผšths_member
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—ๆˆๅˆ†ๅˆ—่กจๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบใ€‚
+้™้‡๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๆฏๅˆ†้’Ÿๅฏ่ฐƒๅ–200ๆฌก๏ผŒๅฏๆŒ‰ๆฆ‚ๅฟตๆฟๅ—ไปฃ็ ๅพช็Žฏๆๅ–ๆ‰€ๆœ‰ๆˆๅˆ†
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ๆŒ‡ๆ•ฐไปฃ็ 
+con_code | str | N | ่‚ก็ฅจไปฃ็ 
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆŒ‡ๆ•ฐไปฃ็ 
+con_code | str | Y | ่‚ก็ฅจไปฃ็ 
+con_name | str | Y | ่‚ก็ฅจๅ็งฐ
+weight | float | N | ๆƒ้‡(ๆš‚ๆ— )
+in_date | str | N | ็บณๅ…ฅๆ—ฅๆœŸ(ๆš‚ๆ— )
+out_date | str | N | ๅ‰”้™คๆ—ฅๆœŸ(ๆš‚ๆ— )
+is_new | str | N | ๆ˜ฏๅฆๆœ€ๆ–ฐYๆ˜ฏNๅฆ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.ths_member(ts_code='885800.TI')
+
+```
+
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code con_code con_name
+ 0 885800.TI 000016.SZ ๆทฑๅบทไฝณA
+ 1 885800.TI 000049.SZ ๅพท่ต›็”ตๆฑ 
+ 2 885800.TI 002008.SZ ๅคงๆ—ๆฟ€ๅ…‰
+ 3 885800.TI 002036.SZ ่”ๅˆ›็”ตๅญ
+ 4 885800.TI 002055.SZ ๅพ—ๆถฆ็”ตๅญ
+ .. ... ... ...
+ 87 885800.TI 688127.SH ่“็‰นๅ…‰ๅญฆ
+ 88 885800.TI 688157.SH ๆพไบ•่‚กไปฝ
+ 89 885800.TI 688286.SH ๆ•่Šฏ่‚กไปฝ
+ 90 885800.TI 688312.SH ็‡•้บฆ็ง‘ๆŠ€
+ 91 885800.TI 688386.SH ๆณ›ไบšๅพฎ้€
+
+ [92 rows x 3 columns]
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\235\277\345\235\227.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\235\277\345\235\227.md"
new file mode 100644
index 000000000..64d3244cc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\220\214\350\212\261\351\241\272\350\241\214\344\270\232\346\246\202\345\277\265\346\235\277\345\235\227.md"
@@ -0,0 +1,66 @@
+## ๅŒ่Šฑ้กบๆฆ‚ๅฟตๅ’Œ่กŒไธšๆŒ‡ๆ•ฐ
+----
+
+ๆŽฅๅฃ๏ผšths_index
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบๆฟๅ—ๆŒ‡ๆ•ฐใ€‚ๆณจ๏ผšๆ•ฐๆฎ็‰ˆๆƒๅฝ’ๅฑžๅŒ่Šฑ้กบ๏ผŒๅฆ‚ๅšๅ•†ไธš็”จ้€”๏ผŒ่ฏทไธปๅŠจ่”็ณปๅŒ่Šฑ้กบ๏ผŒๅฆ‚้œ€ๅธฎๅŠฉ่ฏท่”็ณปๅพฎไฟก๏ผšwaditu_a
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃ้œ€ๆœ‰6000็งฏๅˆ†๏ผŒๅ•ๆฌกๆœ€ๅคง่ฟ”ๅ›ž5000่กŒๆ•ฐๆฎ๏ผŒไธ€ๆฌกๅฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ๏ผŒ่ฏทๅ‹ฟๅพช็Žฏๆๅ–ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆŒ‡ๆ•ฐไปฃ็ 
+exchange | str | N | ๅธ‚ๅœบ็ฑปๅž‹A-a่‚ก HK-ๆธฏ่‚ก US-็พŽ่‚ก
+type | str | N | ๆŒ‡ๆ•ฐ็ฑปๅž‹ N-ๆฆ‚ๅฟตๆŒ‡ๆ•ฐ I-่กŒไธšๆŒ‡ๆ•ฐ R-ๅœฐๅŸŸๆŒ‡ๆ•ฐ S-ๅŒ่Šฑ้กบ็‰น่‰ฒๆŒ‡ๆ•ฐ ST-ๅŒ่Šฑ้กบ้ฃŽๆ ผๆŒ‡ๆ•ฐ TH-ๅŒ่Šฑ้กบไธป้ข˜ๆŒ‡ๆ•ฐ BB-ๅŒ่Šฑ้กบๅฎฝๅŸบๆŒ‡ๆ•ฐ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ไปฃ็ 
+name | str | Y | ๅ็งฐ
+count | int | Y | ๆˆๅˆ†ไธชๆ•ฐ
+exchange | str | Y | ไบคๆ˜“ๆ‰€
+list_date | str | Y | ไธŠๅธ‚ๆ—ฅๆœŸ
+type | str | Y | Nๆฆ‚ๅฟตๆŒ‡ๆ•ฐS็‰น่‰ฒๆŒ‡ๆ•ฐ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.ths_index()
+
+```
+
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name count exchange list_date type
+ 0 885835.TI ๅ‚่‚ก้“ถ่กŒ 126 A 20190416 N
+ 1 885472.TI ไธŠๆตท่‡ช่ดธๅŒบ 51 A 20130813 N
+ 2 885788.TI ็ฝ‘็ปœ็›ดๆ’ญ 63 A 20180312 N
+ 3 885881.TI ไบ‘ๅŠžๅ…ฌ 29 A 20200203 N
+ 4 885785.TI ๅฐ็ฑณๆฆ‚ๅฟต 91 A 20180306 N
+ .. ... ... ... ... ... ...
+ 266 885566.TI ๅคง้ฃžๆœบ 58 A 20140519 N
+ 267 885841.TI ่‰ๅœฐ่ดชๅคœ่›พ้˜ฒๆฒป 18 A 20190517 N
+ 268 885760.TI ่ฃ…้…ๅผๅปบ็ญ‘ 50 A 20170918 N
+ 269 885909.TI ่พ…ๅŠฉ็”Ÿๆฎ– 15 A 20201023 N
+ 270 885883.TI ๅŒป็–—ๅบŸ็‰ฉๅค„็† 25 A 20200207 N
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\270\202\345\234\272\346\270\270\350\265\204\346\234\200\345\205\250\345\220\215\345\275\225.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\270\202\345\234\272\346\270\270\350\265\204\346\234\200\345\205\250\345\220\215\345\275\225.md"
new file mode 100644
index 000000000..3c62d7aea
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\270\202\345\234\272\346\270\270\350\265\204\346\234\200\345\205\250\345\220\215\345\275\225.md"
@@ -0,0 +1,141 @@
+## ๆธธ่ต„ๅๅฝ•
+----
+
+ๆŽฅๅฃ๏ผšhm_list
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธธ่ต„ๅˆ†็ฑปๅๅฝ•ไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000ๆกๆ•ฐๆฎ๏ผŒ็›ฎๅ‰ๆ€ป้‡ๆœช่ถ…่ฟ‡500
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่Žทๅ–ๅŠžๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+name | str | N | ๆธธ่ต„ๅ็งฐ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+name | str | Y | ๆธธ่ต„ๅ็งฐ
+desc | str | Y | ่ฏดๆ˜Ž
+orgs | None | Y | ๅ…ณ่”ๆœบๆž„
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+#ไปฃ็ ็คบไพ‹
+pro = ts.pro_api()
+
+df = pro.hm_list()
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๅˆ—่กจ**
+
+<br>
+ๆณจ๏ผšไปฅไธ‹่กจๆ ผๅชๆ˜ฏ็คบไพ‹๏ผŒๆ•ฐๆฎไปฅAPIๆŽฅๅฃ่ฟ”ๅ›ž็š„ๆ•ฐๆฎไธบๅ‡†ใ€‚
+<br>
+
+ๅ็งฐ | ่ฏดๆ˜Ž | ๅ…ณ่”ๆœบๆž„
+---- | ----- | ----
+้พ™้ฃž่™Ž|้พ™้ฃž่™Ž(ๅ…‹ๆ‹‰็พŽไนฆ)่‚ก็พๆœŸ้—ดๆ›พไธบๆกƒๅŽฟ็ฒพ็ฅž้ข†่ข–๏ผŒ็•™ๆœ‰้ข‡ๅคšๅ่จ€๏ผŒๅฏ่งไบบๅ“่‚กๅ“ใ€‚|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅ…ญๅˆ้›„ๅทž่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้ซ˜้€่ฝฌไธ“ๅฎถ|ๆ“…้•ฟๅœจ้ซ˜้€่ฝฌไธช่‚ก่ฟ›่กŒๆณขๆฎตๆ“ไฝœ|่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅธธ็†Ÿๆžซๆž—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้ซ˜ๆฏ…้‚ปๅฑฑ|ไปทๆŠ•ๅคง็ฅžโ€œ่Œ…ๅฐ03\"๏ผŒ็œŸๅๅ†ฏๆŸณใ€‚่‡ช่ฟฐๆ›พๆœ‰9ๅนดๆ—ถ้—ดๅคš่พพ93%็š„ๅนดๅคๅˆฉๅ›žๆŠฅใ€‚็œผๅ…‰็Š€ๅˆฉ็‹ฌๅˆฐ๏ผŒ้ฃŽๆ ผไปฅไธญ้•ฟ็บฟไธบไธป๏ผŒ็ขฐไธŠ็Ÿญ็บฟ้ฃŽๅฃไผšไธปๅŠจ้…ๅˆ็‚’ไฝœ่ฟ…้€ŸๆŽจๅ‡่‚กไปทใ€‚|ๅ›ฝไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ฝ—ๆน–ๅฎๅฎ‰ๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้ช‘็‰›|ๆ•ขไบŽ่ฟฝๆถจ๏ผŒ้”ไป“๏ผŒไนŸๆ•ขไบŽๅ‰ฒ่‚‰ใ€‚|ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡ๅบ†ๆฐ‘ๆ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้ฆ–ๆฟๆŒ–ๆŽ˜|ๅ–„ไบŽๅ‘ๆŽ˜ไฝŽไฝ้ฆ–ๆฟๆˆ–่ทŸ้ฃŽๆฟ๏ผŒๅธ‚ๅœบไธŠๆดป่ทƒ็š„ๆŒ–ๆŽ˜่ต„้‡‘๏ผŒๆ“…้•ฟๅœจ้ข˜ๆ็ˆ†ๅ‘ๅŽๆŒ–ๆŽ˜่กฅๆถจๆœบไผš๏ผŒไธ€ๆ—ฆๅ‡บ็Žฐ้ซ˜ไฝๅˆ†ๆญงๅฐฑไผšๅŠๆ—ถ็ฆปๅœบใ€‚|็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅŠฒๆพไนๅŒบ่ฏๅˆธ่ฅไธš้ƒจใ€ๆน˜่ดข่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๅ‹่ฐŠๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝ้ƒฝ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้˜œๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆณ‰ๅทžๅฎๆดฒ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆฑŸ่‹ๅˆ†ๅ…ฌๅธใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅฑฑไธœๅˆ†ๅ…ฌๅธใ€ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๅˆ†ๅ…ฌๅธใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡‘ๅŽๅˆ†ๅ…ฌๅธใ€ไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ฅฟๅฎ‰ๅ—ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅŽๆตทๅทฅไธšๅ…ซ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๅˆ†ๅ…ฌๅธใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆฑŸ่‹ๅˆ†ๅ…ฌๅธใ€ไธ‡ๅ’Œ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ฆๅปบๅˆ†ๅ…ฌๅธ
+้ฃžไบ‘ๆฑŸ่ทฏ|็Ÿฅๅๆธธ่ต„๏ผŒ่ฟ‘ๆฅๅด›่ตท็š„ๆฑŸๆต™่ต„้‡‘ๅธญไฝ๏ผŒๆŽฅๅŠ›ๆ“ไฝœไธบไธป๏ผŒๅฐคๆ“…็‚น็ซๆ“ไฝœ๏ผŒ่ต„้‡‘่ง„ๆจก้€‚ไธญ๏ผŒไฝ†ๆดป่ทƒๅŠ›ๅบฆ่พƒ้ซ˜ใ€‚|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆญๅทž้ฃžไบ‘ๆฑŸ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้š็ง€่ทฏ|ๆญๅทž้š็ง€่ทฏ๏ผŒ60ๅŽ๏ผŒไปฃ่กจไฝœๅ—ๅคฉไฟกๆฏ๏ผŒๆทฑๆก‘่พพใ€‚้š็ง€่ทฏๆœ‰ไบบ็งฐๅ…ถไธบๆ•ฃๆˆทๆ”ถๅ‰ฒๆœบ๏ผŒไนŸๅๆ˜ ๅ‡บไธไธ€ๆ ท็š„ๆ‰‹ๆณ•ๆ“ไฝœ๏ผŒๅธ‚ๅœบ็†่งฃ่ถ…ไบŽๅธธไบบ๏ผŒไฟกๅˆ›ๆฆ‚ๅฟต่‚กไธชไบบไฟๅฎˆไผฐ่ฎกๆตฎ็›ˆ็บฆ1ไบฟใ€‚ๆ“ไฝœๆ‰‹ๆณ•ไธ€ๆต๏ผŒๅฐ†ๆž้™ๅšๅˆฐๆž่‡ด๏ผŒๅ–œๆฌขไธ€ๅฎถ็‹ฌๅคงใ€‚|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆญๅทž้š็ง€่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้™ˆๅฐ็พค|ๆดป่ทƒไบŽ็ฝ‘็ปœ่ฎบๅ›็š„ๅฎžๅŠ›ๆธธ่ต„๏ผŒๆ“…้•ฟ่ถ‹ๅŠฟ้พ™ๅคด๏ผŒๅˆ†ๆญงๆ‰“ๆฟไป‹ๅ…ฅ๏ผŒ็†่งฃๅŠ›ๅฐคๅ…ถไผ˜็ง€ใ€‚|ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅคง่ฟž้ป„ๆฒณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅคง่ฟž้‡‘้ฉฌ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+้‡‘็”ฐ่ทฏ|ไบคๆ˜“ๆ‰‹ๆณ•็ฎ€ๅ•็ฒ—ๆšด๏ผŒ่ฟฝ้พ™ๅคด๏ผŒไธ“ๅš้ซ˜ไฝๆŽฅๅŠ›ๆฟ๏ผŒๆ•ขๆ”ถๆ•ขๅ‰ฒ๏ผŒๅœจๅธ‚ๅœบๅฅฝ็š„ๆ—ถๅ€™ๆ•ขๅœจ้ซ˜ไฝ่ฟž็ปญๅŠ ไป“๏ผŒ้ญ้‡่กŒๆƒ…ไธๅฅฝ็š„ๆ—ถๅ€™ๅ‰ฒ็š„้žๅธธๆžœๆ–ญ๏ผŒๆฏซไธ็Šน่ฑซใ€‚|ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ้‡‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅคฉ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธใ€ไธญๅคฉ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฐๅทžๅธ‚ๅบœๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+้‡ๅŒ–ๆ‰“ๆฟ|้‡ๅŒ–ๆ‰“ๆฟ๏ผŒ็ปๅคงๅคšๆ•ฐๆ“ไฝœไปฅ้ฆ–ๆฟไบŒๆฟไธบไธป๏ผŒๆฌกๆ—ฅไธ่ƒฝ็ง’ๆฟๅผ€็›˜้ƒฝไผšๅ…ˆๅ…‘็Žฐไธ€ๅŠ๏ผŒไธŠๆฟ็บ ้”™ไนฐๅ›ž้ƒจๅˆ†ไป“ไฝ๏ผŒไธ่ƒฝ่ตฐๅผบๅˆ™็›ดๆŽฅๆธ…ไป“ใ€‚|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅˆ†ๅ…ฌๅธใ€ๅŽๅˆ›่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตท็ฌฌไบŒๅˆ†ๅ…ฌๅธ
+้‡ๅŒ–ๅŸบ้‡‘|20ๅนดๅ‚ไธŽไบฌ็ฒฎๆŽง่‚ก้ฆ–ๆฌกๆบๅ‡ๆœบๆž„ๅ…ฅๅœบ๏ผŒๅ‡ญๅ€Ÿๆœบๆž„ๅธญไฝๆบขไปทๆฌกๆ—ฅ่Žทๅพ—ไธ€ๅญ—ๆฟ๏ผŒๅˆฐ็Žฐๅœจ้‡ๅŒ–ๅŸบ้‡‘ๅทฒ็ปๆ˜ฏๅธ‚ๅœบไธŠ้žๅธธๆดป่ทƒ็š„ไธ€่‚กๅŠ›้‡๏ผŒๅ†…้ƒจ่ต„้‡‘ๆˆๅˆ†ๅคๆ‚๏ผŒๅคšๅฎถๆœบๆž„ๆททๆ‚ๅœจๅ…ถไธญ๏ผŒไฝ†ๆ˜ฏๆ•ดไฝ“็ญ–็•ฅๅŒๆ ทๆ˜ฏ่ตทๅˆฐๅŠฉๆถจๅŠฉ่ทŒ็š„ไฝœ็”จ๏ผŒไผš้ข‘็นๅšTใ€‚|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจใ€ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้ป„ๆตฆๅŒบๆน–ๆปจ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅˆ†ๅ…ฌๅธใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅฎ‹ๅบ„่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๅŒ—่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ด้‡‘ๆŸฏๆกฅๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+่ตต่€ๅ“ฅ|ไปฅ็Ÿญ็บฟ็‚น็ซๆ‰“ๆฟไธบไธป๏ผŒๆ“…้•ฟไธป็บฟ้ข˜ๆ็‚’ไฝœ๏ผŒไธปๆŠ“้พ™ๅคด่‚กใ€‚ไธป่ฆๅ‚ไธŽๅธ‚ๅœบ้ฃŽๅฃ็š„้พ™ๅคด่‚กๆŽฅๅŠ›ๆฟ๏ผŒๆฟ€ๅ‘ๅธ‚ๅœบ่ต„้‡‘ๆŒ็ปญๆŽฅๅŠ›ใ€‚็›˜ไธญๆ“ไฝœๆ‰‹ๆณ•ไธป่ฆไปฅๆ€ฅ้€Ÿๆšด้‡ๆ‰ซ่ดงๅฐๆฟไธบไธป๏ผŒๅˆฉ็”จ่ต„้‡‘ไผ˜ๅŠฟไธ‡ๆ‰‹ๅคงๅ•ๆŽ’ๆฟใ€‚|้“ถๆณฐ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅ˜‰ๅ–„่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆน˜่ดข่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้™†ๅฎถๅ˜ด่ฏๅˆธ่ฅไธš้ƒจใ€ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ดๅˆ†ๅ…ฌๅธใ€ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆน–ๅทžๅŒๅญๅคงๅŽฆ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆต™ๆฑŸๅˆ†ๅ…ฌๅธใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ด่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้˜œๆˆ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+่ฅฟๆน–ๅ›ฝ่ดธ|้กถ็บงไปทๆŠ•ๅž‹่ต„้‡‘๏ผŒ้กถ็บง็†่งฃๅŠ›๏ผŒๅ–„ไบŽๆŒ–ๆŽ˜ไฝŽไฝ็š„่ถ‹ๅŠฟ็‰›่‚ก๏ผŒๆณขๆฎตๆŒ่‚กไธบไธปใ€‚|่ดขไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทž่ฅฟๆน–ๅ›ฝ่ดธไธญๅฟƒ่ฏๅˆธ่ฅไธš้ƒจ
+่‘›ๅซไธœ|่‘›ๅซไธœๅ็ˆฑ็ง‘ๆŠ€่‚ก๏ผŒๅ…ถๆฌกๆ˜ฏๅŒป่ฏ่‚ก๏ผŒๅŸบๆœฌไปฅไธญใ€้•ฟ็บฟๆŠ•่ต„ไธบไธป๏ผŒไนฐๅ…ฅ่‚ก็ฅจๅŽๅพ€ๅพ€ไผšๆŒๆœ‰ๅ‡ ๅนดๆ—ถ้—ด็›ด่‡ณ่‚กไปท่ตท้ฃž\r\n|ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅˆ†ๅ…ฌๅธ
+่‘—ๅๅˆบๅฎข|ๆดป่ทƒไบŽ่‚กๅงใ€่ฎบๅ›็š„ๅฐๆธธ่ต„๏ผŒๆ“…้•ฟ้พ™ๅคด่‚ก้”ไป“ใ€‚|ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้˜œๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅˆ†ๅ…ฌๅธ
+่ฝๅ‡(ๆฑŸๅ—็ฅž้นฐ)|่ฝๅ‡(ๆฑŸๅ—็ฅž้นฐ)03ๅนด็š„่‚ก่ฏ„็บข้็ฝ‘็ปœ05ๅนดๅบ•้šๅฑ…้šๅฑ…3ๅนด็‹‚่ตš112ๅ€ไป–็š„ๆ•…ไบ‹็ฝ‘ไธŠๆœ‰่ฏฆ็ป†่ฎฐ่ฝฝๆฎ่ง‚ๅฏŸๅ…ถๅŽ่‡ช็„ถไบบๅ็ฝ—็”ณ๏ผŒๅ–็š„ๆ˜ฏ่ฐ้Ÿณ๏ผŒๅคง็†Šๅธ‚ๆˆ˜็ปฉๆ–็„ถ๏ผŒไปคไบบๆƒŠๅน๏ผŒๆธธ่ต„็•Œๆ—ฉๅนด็ฝ‘็บขๆดพใ€‚|ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡‘ๅŽๅฎพ่™น่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+่‹ๅทžๅธฎ|ไปฅๅš็Ÿญ็บฟไธบไธป๏ผŒๅธธ่ง้ซ˜ๆŠ›ไฝŽๅธ๏ผŒๅšT่ฅไธš้ƒจใ€‚|ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅธ‚ๅฟƒๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่‹ๅทžไธœๅดๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่‹ๅทžไบบๆฐ‘่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้‡‘้™ตไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๅด่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่‹ๅทž่ฅฟๅŒ—่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๅด่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅธธๅทž้€šๆฑŸไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+่‹ๅ—ๅธฎ|็Ÿญๅบ„ๆธธ่ต„๏ผŒ่ต„้‡‘ไฝ“้‡่พƒๅคงไธ”ไบบๅ‘˜ไผ—ๅคš๏ผŒๅธญไฝๅคšไธบๆฑŸ่‹ๆœฌๅœฐๅธญไฝ่”ๅŠจๆ“ไฝœ๏ผŒ3/4ๆฟๅคšไธบๅผบ้กถไธ€ๅญ—ๆฟใ€‚|้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๅ‹่ฐŠ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌไธญๅฑฑไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฅฟ้ƒจ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅ—ๅฎ่‹ฑๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๅ…‰่ฐท่ฏๅˆธ่ฅไธš้ƒจใ€ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅนฟๅทž่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅคฉ้ฃŽ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ฆๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅคฉ้ฃŽ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅŽๆตท่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็™ป่‰ฏ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌ้‡‘่žๅŸŽ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ—ไบฌ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅผ ๅฎถๆธฏไธœ็Žฏ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้•‡ๆฑŸๅฅๅฎนๅŽ้˜ณๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ— ้”ก้‡‘่žไธ€่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎๆณขๆŸณๆฑ€่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ๅฎๆฐ‘ๆ—ๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๆฑŸๅฎๅคฉๅ…ƒไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅบๅฑฑ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌไธญๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅญฆ้™ขๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่‹ๅทž่š่Œ‚่ก—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ฆๅปบๅˆ†ๅ…ฌๅธใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆต™ๆฑŸๅˆ†ๅ…ฌๅธใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ››ๅทๅˆ†ๅ…ฌๅธใ€ไธœๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๆดชๆญฆๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธŠๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ้ป„ๆตฆๅŒบๅปถๅฎ‰ไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธŠๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅ—ไบฌ่ƒœๅคช่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธŠๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅ—ไบฌๆบงๆฐด่‡ด่ฟœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็บขๅฒญ่ทฏ|่”ๅŒไฝœๆˆ˜๏ผŒๅ–œๆฌข่ฟไฝœ็š„ๅผบๅŠฟไธปๅŠ›ไน‹ไธ€๏ผŒๅพ€ๅพ€ๅœจๆ ธๅฟƒไธช่‚ก็ฌฌไธ€ๆณข็ˆ†้‡ๅŽๅธ็ญน่ฟ›ๅœบ๏ผŒ้šๅŽ็ปดๆŠค่‚กไปท๏ผŒ็ญ‰ๅพ…ๆ—ถๆœบๅฏๅŠจไบŒๆณขใ€‚|ๅนณๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ่›‡ๅฃๆ‹›ๅ•†่ทฏๆ‹›ๅ•†ๅคงๅŽฆ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนณๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅฝฉ็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็ฒ‰่‘›|ๆ“…้•ฟ่ถ‹ๅŠฟ็ƒญ้—จ่‚ก๏ผŒๆ‰“ๆฟไบคๆ˜“|ไธœไบšๅ‰ๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธ
+็ซ ็›Ÿไธป|ๆฑŸๆต™ๅœฐๅŒบๅ…ƒ่€็บง้กถ็บงๆธธ่ต„ไน‹ไธ€๏ผŒ90ๅนดไปฃ5ไธ‡ๅ…ƒๅ…ฅๅธ‚ใ€‚็Žฐๅœจ่ต„้‡‘ไฝ“้‡็™พไบฟ๏ผŒ20ๅนด20ไธ‡ๅ€๏ผŒๆ“ไฝœ้œธๆฐ”๏ผŒๅฐคๅฅฝๅœจๆƒ้‡ๅคง็ฅจไธŠไธปๅ‡ๆตชไธŠ้‡ไป“ๅ‡บๅ‡ปใ€‚|ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅพๆฑ‡ๅŒบๅปบๅ›ฝ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆ–นๆญฃ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅปถๅฎ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎๆณขๅนฟ็ฆ่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆฑŸ่‹่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅปถๅฎ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅฏŒๆ˜ฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็ซžไปทๆŠข็ญน|้‡ๅŒ–ไบคๆ˜“๏ผŒๅฐคๅ…ถๆ“…้•ฟๅˆ†ๆญงๅ›žๆš–ๆ—ฅ็ซžไปทๆœ€ๅŽๆ—ถ้—ดๆ‰ซ่ดง๏ผŒๆœ‰่ƒฝๅŠ›ๅˆถ้€ ๅผฑ่ฝฌๅผบๅˆ†ๆ—ถๅธๅผ•ๅธ‚ๅœบ่ต„้‡‘ๆตๅ…ฅ|ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌไธญๅ…ณๆ‘ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+็›Š็”ฐ่ทฏ|้กถ็บงๆƒ…็ปช่ต„้‡‘๏ผŒๅฏนไปทๆŠ•ไบฆๆœ‰็‹ฌๅˆฐ็†่งฃใ€‚็›Š็”ฐ่ทฏๆธธ่ต„ๅŸบๆœฌไธŠๅคšๆ˜ฏไปฅ่‡ชไนฐ่‡ชๅ–็š„ๅฝขๅผๅ‡บ็Žฐๅœจ้พ™่™ŽๆฆœไธŠใ€‚|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆทฑๅœณ็›Š็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็”ณๆธฏๅนฟไธœๅˆ†|ๆƒ…็ปชๅ‘จๆœŸๅ…ˆ่กŒ่€…,ๅฎžๅŠ›ๅฝชๆ‚ๆ‰ง่กŒๅŠ›ๅŠกๅฟ…ๅšๅ†ณ|็”ณๆธฏ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟไธœๅˆ†ๅ…ฌๅธ
+็‘ž้นคไป™|2011ๅนดๅ…ฅๅธ‚๏ผŒๅœจๅฝ“ๆ—ถ็š„็†Šๅธ‚ไธญไพ็„ถๆ‰€ๅ‘ๆŠซ้ก๏ผŒๅ…ฅๅธ‚3ๅนด่ต„้‡‘ๅฐฑไปŽๆ•ฐๅไธ‡่พพๅˆฐไธŠไบฟใ€‚ไปฅ็™ฝ่กฃ้ช‘ๅฃซ่‡ชๅฑ…๏ผŒๆ“ไฝœ้ฃŽๆ ผ็‹ฌๆฅ็‹ฌๅพ€ใ€‚|่ฏš้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎœๆ˜Œไธœๅฑฑๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎœๆ˜Œๆ–ฐไธ–็บช่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎœๆ˜Œ่งฃๆ”พ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็މๅ…ฐ่ทฏ|่ฟ‘ๆฅๅด›่ตท็š„่ต„้‡‘ๅธญไฝ๏ผŒๆŽฅๅŠ›ๆ“ไฝœไธบไธป๏ผŒ้ฃŽๆ ผๆฟ€่ฟ›๏ผŒๆ“…้•ฟ้พ™ๅคด่‚ก้”ไป“|ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅˆ†ๅ…ฌๅธ
+็‹ฌ่‚กไธ€ๅ‰‘|็ฝ‘ๅ๏ผŒ็‹ฌ่‚กไธ€ๅ‰‘๏ผŒๅคฉๆถฏ่ฎบๅ›ๆœ€ๆ—ฉๅธƒ้“่€…๏ผŒๅฝฑๅ“ไบ†ไธ€ๅคงๆ‰นๅŽๆฅ่€…๏ผŒๅ‡ ไนŽๆ˜ฏๆกƒๅŽฟๅŠๆ•ฐ่ถ…็Ÿญๆ‰‹็š„ๅฏ่’™่€ๅธˆ๏ผŒๆœ€ๆ—ฉๆ˜ฏๅคฉๆถฏ็›ดๆ’ญไบคๅ‰ฒๅ•็ซ่ตทๆฅ็š„ใ€‚ไน”ๅธฎไธปไพฟๆ˜ฏๅœจ07ๅนดๅ…ฅๅธ‚7ๅนดไน‹ๅŽๆŽฅ่งฆๅ…ถไบคๅ‰ฒๅ•ๅŽ้กฟๆ‚Ÿ๏ผŒๅคงๅผ€ๅคงๅˆ๏ผŒไธ€ๅนด่ฟ‡ไบฟ็š„ใ€‚|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๆœˆๅ›ๅ—่ก—่ฏๅˆธ่ฅไธš้ƒจ
+็‰›ๆ•ฃๆœฑๅฝฌ|ๆœฑๅฝฌๅฎž้™…ๆŽงๅˆถๅนถไฝฟ็”จ็š„่ดฆๆˆทโ€œๆœฑๅฝฌโ€โ€œๆœฑๆŸๅฎโ€ๅ’Œโ€œๆž—ๆŸไธฝโ€่ฏๅˆธ่ดฆๆˆท๏ผˆไปฅไธ‹็ฎ€็งฐ่ดฆๆˆท็ป„๏ผ‰็”ฑๆœฑๅฝฌๅฎž้™…ๆŽงๅˆถๅนถไฝฟ็”จใ€‚ๅ…ถไธญๆœฑๆŸๅฎใ€ๆž—ๆŸไธฝๆ˜ฏๆœฑๅฝฌ็š„็ˆถๆฏ๏ผŒ่ดฆๆˆท็ป„ๅ†…็š„่ต„้‡‘ไธป่ฆไธบๆœฑๅฝฌๆ‰€ๆœ‰ใ€‚่ดฆๆˆท็ป„ๆ‰€ไฝฟ็”จ็š„ไบคๆ˜“็ปˆ็ซฏๅœจไธญๆณฐ่ฏๅˆธๅฎๆณขๆฑŸไธœๅŒ—่ทฏ่ฅไธš้ƒจๅคงๆˆทๅฎค๏ผŒไธŽ่ดฆๆˆท็ป„ไบคๆ˜“่ต„ๆ–™ๆ ธๅฏนไธ€่‡ด๏ผŒๅนถ็”ฑๆœฑๅฝฌไบˆไปฅ็กฎ่ฎคใ€‚|ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎๆณขๆฑŸไธœๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็‰›ๆ•ฃๅ”ๆฑ‰่‹ฅ|็‰›ๆ•ฃๅ”ๆฑ‰่‹ฅ๏ผŒๅ–œๆฌขๅทจ้‡ๅ‡บๅ‡ป๏ผŒๅˆ›ๅฐๆฟ็Žฉๅพ—ไธ้”™๏ผŒไฝ†ไนŸๆœ‰ไน่ง†็ฝ‘๏ผˆ300104๏ผ‰็กฌๅฐๅ‰ฒ่‚‰็š„ๆ—ถๅ€™๏ผŒๆ•ขๅนฒๆ•ขๅ‰ฒๆญป้˜Ÿๆˆๅ‘˜ไน‹ไธ€๏ผŒ่ต„้‡‘้‡ไนŸๅœจ10ไฝไน‹ไธŠ๏ผŒ็กฌๆดพ้€‰ๆ‰‹๏ผŒๅœˆๅ†…็››ไผ ๅƒ่‚ก่ทŒๅœไน‹ไธ‹7ไธชไบฟๆญปๆ‰›ๆต™ๅฏŒๆŽง่‚กใ€‚|้ฆ–ๅˆ›่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้›ๅ’Œๅฎซ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้›ๅ’Œๅฎซ่ฏๅˆธ่ฅไธš้ƒจ
+็‚’่‚กๅ…ปๅฎถ|็›ฎๅ‰่ต„้‡‘้‡ๆžๅคง๏ผŒๅฏนๅธ‚ๅœบๅ’Œไธช่‚ก้ƒฝๆœ‰ๅพˆ็‹ฌๅˆฐ็š„็†่งฃๅŠ›๏ผŒ้€š้“ไผ˜ๅŠฟ่พƒๅผบ๏ผŒๅธธๅธธๅˆฉ็”จ้€š้“ไฝฟไธช่‚กไธ€ๅญ—ๆถจๅœ๏ผŒ้š”ๆ—ฅ้ซ˜ไฝ้€ๆญฅ็ฆปๅœบใ€‚ๅ–„ไบŽๆŒ–ๆŽ˜้ข˜ๆ้พ™ๅคดใ€‚|ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ด่งฃๆ”พๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ้ฉฌ้žๅฑฑๅˆ†ๅ…ฌๅธใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ่ฅฟๅฎ‰ๅ—ไบŒ็Žฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ็ ๆตทๆตทๆปจๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅ—ๆ˜Œๅˆ†ๅ…ฌๅธใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅŒ—ไบฌๅ…‰ๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตท่Ž˜ๅบ„่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตท่Œ…ๅฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตท็บขๅฎ็Ÿณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๆพๆฑŸ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅฎ›ๅนณๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๅˆ›่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅคง่ฟž่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+็‚’ๆ–ฐไธ€ๆ—|ๅธ‚ๅœบไธŠไธ“ๅšๆฌกๆ–ฐ่‚ก็š„ๅ‡ ไธชๆธธ่ต„๏ผŒ่ฟ‘ๆœŸๅ‚ไธŽไบ†ๅฝฉ่ฎฏใ€้”‹้พ™๏ผŒไป™้นค่‚กไปฝ็š„ๆŽฅๅŠ›๏ผŒไธป่ฆๆ˜ฏไธŠๆตท็š„ๅ‡ ไธชๅธญไฝ๏ผŒๅˆ†ๅˆซๆ˜ฏไธŠๆตทๅ…ฑๅ’Œๆ–ฐ่ทฏใ€ไธŠๆตทๆญฆๅฎš่ทฏใ€ไธŠๆตทๆพณ้—จ่ทฏใ€‚่ฟ™ๅ‡ ไธชๅธญไฝ็ปๅธธ่”ๅˆๅ‡บๅŠจ๏ผŒๅˆฉ็”จ่ต„้‡‘ไผ˜ๅŠฟๆ‹‰ๅ‡ๅผ€ๆฟๆฌกๆ–ฐ๏ผŒ้ฃŽๆ ผไนŸๆ˜ฏ่ถ…็Ÿญไธบไธป๏ผŒไธ€ๆ—ฅๆธธๅฑ…ๅคšใ€‚|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ— ้”ก่งฃๆ”พ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้™ๅฎ‰ๅŒบๅนฟไธญ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆญฆๅฎš่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆ™ฎ้™€ๅŒบๆฑŸๅฎ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆน–้‡Œๅคง้“|ๅŽฆ้—จไธ€็บฟๆธธ่ต„๏ผŒ็œผๅ…‰็‹ฌๅˆฐ๏ผŒๅ‡บๆ‰‹ๅคงๆฐ”|ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๆน–้‡Œๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ๆน–ๅทžๅŠณๅŠจ่ทฏ|ๆน–ๅทžๅฎžๅŠ›ๆธธ่ต„๏ผŒๅš็ฅจไปฅๆŽฅๅŠ›ๅฑ…ๅคš๏ผŒ้ฃŽๆ ผๅ‰ฝๆ‚๏ผŒๅฐคๅฅฝๆ“ๆŽง๏ผŒๅธธๅธธไธŽๆฑŸๆต™่ต„้‡‘่”ๅŠจๅ‡บๆฒกใ€‚|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆน–ๅทžๅŠณๅŠจ่ทฏๆต™ๅŒ—้‡‘่žไธญๅฟƒ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅ—ไบฌๆธ…ๅ‡‰้—จๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ๆธฉๅทžๅธฎ|2016ๅนดๆ“ไฝœๆฌกๆ–ฐ่‚กไธ€ๆˆ˜ๆˆๅ๏ผŒๆ‰‹ๆณ•ๅฝชๆ‚๏ผŒ็ปๅธธ่ฟž็ปญๆ‹‰ๅ‡3ไธชๆถจๅœๆฟใ€‚ๆ“ไฝœๆ‰‹ๆณ•ๅพ€ๅพ€ๅคšๅธญไฝ่”ๅˆๅ‡บๅŠจ๏ผŒๅŒๆ—ถ็›˜่ธžๅœจๆ•ฐๅชๆฌกๆ–ฐ่‚ก๏ผŒๅปบไป“่ฟ…้€Ÿ๏ผŒๆทฑๅบฆๆŽง็›˜๏ผŒๅฟซ้€Ÿๅฏนๅ€’ๆ‹‰ๅ‡ใ€‚|้“ถๆณฐ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆตŽๅ—ๅคง็บฌไบŒ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€่ดขไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅคง่ฟž่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€่ฅฟๅ—่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆธฉๅทžๆฑคๅฎถๆกฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็ฌฌไธ€ๅˆ›ไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้’ๅฒ›็งฆๅฒญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆธฉๅทž่ฝฆ็ซ™ๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆ‰ฌๅทžๅˆ†ๅ…ฌๅธใ€ๅนณๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅธธ็†Ÿ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไนๆธ…ๅŒ้›่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้ƒ‘ๅทž็ปไธ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ ็”ณไธ‡ๅฎๆบ่ฅฟ้ƒจ่ฏๅˆธ็ฆๅทžๅค็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆทฑ่‚ก้€šไธ“็”จ|ๆทฑๆธฏ้€š๏ผŒๆ˜ฏๆทฑๆธฏ่‚ก็ฅจๅธ‚ๅœบไบคๆ˜“ไบ’่”ไบ’้€šๆœบๅˆถ็š„็ฎ€็งฐ๏ผŒๆŒ‡ๆทฑๅœณ่ฏๅˆธไบคๆ˜“ๆ‰€ๅ’Œ้ฆ™ๆธฏ่”ๅˆไบคๆ˜“ๆ‰€ๆœ‰้™ๅ…ฌๅธๅปบ็ซ‹ๆŠ€ๆœฏ่ฟžๆŽฅ๏ผŒไฝฟๅ†…ๅœฐๅ’Œ้ฆ™ๆธฏๆŠ•่ต„่€…ๅฏไปฅ้€š่ฟ‡ๅฝ“ๅœฐ่ฏๅˆธๅ…ฌๅธๆˆ–็ป็บชๅ•†ไนฐๅ–่ง„ๅฎš่Œƒๅ›ดๅ†…็š„ๅฏนๆ–นไบคๆ˜“ๆ‰€ไธŠๅธ‚็š„่‚ก็ฅจใ€‚|ๆทฑ่‚ก้€šไธ“็”จ
+ๆทฑๅœณๅธฎ|ๆทฑๅœณ่ฅไธš้ƒจๅšTๅš็š„้ฃž่ตท๏ผŒ็ปๅธธๅฏไปฅ็œ‹่งๆทฑๅœณๅธฎๅšT๏ผŒๅŒๆ ทๆดป่ทƒ่ฟ˜ๆœ‰ไธŠๆตทๅธฎใ€ๆญๅทžๅธฎ๏ผŒๆ‰€ๆ“ไฝœๆ ‡็š„ๅฝผๆญคไน‹้—ด้‡ๅˆๅบฆๅพˆ้ซ˜ใ€‚|่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ดๆŸฏๆกฅๅŒบ้’ฑๆธ…้’ฑ้—จๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๆ’ๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆข…ๆž—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆ’ๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๆ–ฐๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ้พ™่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆฐ‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ฆๅทžไบ”ไธ€ๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆถช้™ตๅนฟๅœบ่ทฏ|่ฅฟๅ—ๅœฐๅŒบ๏ผŒๅทจๅž‹ๆ‰“ๆฟๆธธ่ต„๏ผŒ่ต„้‡‘ๅฎžๅŠ›้›„ๅŽš๏ผŒๅ‡บๆ‰‹้ข‘็އไธ้ซ˜๏ผŒไฝ†ๅฐคๅฅฝ้‡ไป“ๅคงๆ‰‹็ฌ”ๅ‡บๆ‰‹๏ผŒ้ฃŽๆ ผๅ‰ฝๆ‚๏ผŒ็ปๅธธๅ•็ฌ”่ฟ‘ไบฟ๏ผŒๆ›พๅœจ็พŽ้”ฆ่ƒฝๆบใ€ๆณฐ็ฆพ้›†ๅ›ขใ€ๅŒ—ๆ–—ๆ˜Ÿ้€šไธŠๅคงๆ‰‹็ฌ”ๅ‡บๆ‰‹ใ€‚|ๆ–นๆญฃ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡ๅบ†้‡‘ๅผ€ๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้‡ๅบ†ๆถช้™ต่ฏๅˆธ่ฅไธš้ƒจ
+ๆถ…็›˜้‡ๅ‡|90ๅŽ็Ÿฅๅ้€‰ๆ‰‹๏ผŒๆ›พๆœ‰ๅ››ๅนด็™พๅ€ๆˆ˜็ปฉ|้•ฟๅŸŽ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ต„้˜ณ่œ€ไนกๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ไธŠๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ่‹ๅทžๅคชๆน–่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆต™ๆฑŸๅธฎ|ๆต™ๆฑŸๅธฎ็š„็‰น็‚นๆ˜ฏๅ‡บ่ดง็š„ๆ—ถๅ€™ไธ‹ๆ–นๅ–œๆฌขๆŒ‚ๅ‡บ้žๅธธๅคš็š„่‡ชๅทฑ็š„ไนฐๅ•๏ผŒๆ’‘ไฝ็›˜้ขไธไธ‹่ทŒ๏ผŒๅ†็”จๅฟซ้€Ÿๆ‹‰ๅ‡ๆณ•ๅฟซ้€Ÿๆ‹‰้ซ˜่‚กไปท๏ผŒๅธๅผ•ๆ•ฃๆˆท่ฟฝ้ซ˜๏ผŒ็”จๅฏ†้›†็š„ไธญๅฐๅ•ๆŠ›่ดง๏ผŒ่บฒ่ฟ‡ๆ•ฃๆˆท็š„็œผ็›๏ผŒไปŽๆต™ๆฑŸๅธฎ้€‰่‚ก็š„็‰น็‚นๆฅ็œ‹๏ผŒไป–ไปฌๅ–œๆฌข้€‰ไธ€ไบ›ไฝŽไปท่‚ก๏ผŒ่ฟ™ๆ ทไผšๆœ‰้žๅธธๅคš็š„ไนฐๅ–ๅ•๏ผŒ่ฟ›ๅ‡บไนŸๆ˜ฏ้žๅธธ้ข‘็นๅฏ†้›†๏ผŒ่ฟ™ๆ ทๆ˜ฏๅพˆๅฎนๆ˜“่บฒ่ฟ‡ๆ•ฃๆˆท็š„็œผ็›็š„ใ€‚|่ฅฟ้ƒจ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ฅฟๅฎ‰้ซ˜ๆ–ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธ็‘žๅฎ‰็ฝ—้˜ณๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ทฏๆกฅๆ•ฐ็ ่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็Ÿณ็‹ฎๅฎๅฒ›ไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไนๅทž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๅˆ†ๅ…ฌๅธใ€ไธ‡่”่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟๅทž็•ช็ฆบๆธ…ๆฒณไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆตๆฒ™ๆฒณ|ๆˆๅไบŽ็ฝ‘็ปœ่ฎบๅ›๏ผŒๅผ‚ๅธธๆดป่ทƒ็š„ๆธธ่ต„ๅธญไฝใ€‚ไธ“ไธ€็š„ๆ‰“ๆฟ้€‰ๆ‰‹๏ผŒไธปๅšไฝŽไฝๆฟใ€‚ๅ–œๆฌขๅš้กถๆฟใ€็ง’ๆฟ๏ผŒๅฟซ้€Ÿๆ‹‰ๅ‡็š„ๅˆ†ๆ—ถๅผบๅŠฟไธช่‚กใ€‚|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ่ฟœๅคง่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆฒช่‚ก้€šไธ“็”จ|ๆฒชๆธฏ้€šๆ˜ฏๆŒ‡ไธŠๆตท่ฏๅˆธไบคๆ˜“ๆ‰€ๅ’Œ้ฆ™ๆธฏ่”ๅˆไบคๆ˜“ๆ‰€ๅ…่ฎธไธคๅœฐๆŠ•่ต„่€…้€š่ฟ‡ๅฝ“ๅœฐ่ฏๅˆธๅ…ฌๅธ๏ผˆๆˆ–็ป็บชๅ•†๏ผ‰ไนฐๅ–่ง„ๅฎš่Œƒๅ›ดๅ†…็š„ๅฏนๆ–นไบคๆ˜“ๆ‰€ไธŠๅธ‚็š„่‚ก็ฅจ๏ผŒๆ˜ฏๆฒชๆธฏ่‚ก็ฅจๅธ‚ๅœบไบคๆ˜“ไบ’่”ไบ’้€šๆœบๅˆถใ€‚|ๆฒช่‚ก้€šไธ“็”จ
+ๆฏ›่€ๆฟ|ๆˆ้ƒฝๆฏ›่€ๆฟ๏ผˆ็Žฐๆ”นๅๅกžๅŠ›ๆ–ฏ๏ผ‰ๅฏนๅผบๅŸบๆœฌ้ขไธช่‚กๆœ‰่‡ชๅทฑ็‹ฌๅˆฐ็š„็†่งฃ๏ผŒๆ›ดๆ—ฉไน‹ๅ‰ๆฏ›่€ๆฟๆ˜ฏ้€ ๅฆ–ๅคงๅธˆ้‡‘็”ฐ่ทฏ๏ผŒๅŽ้ข่ฝฌๅž‹่ถ‹ๅŠฟๆ‰“ๆณ•ๆทกๅ‡บ็Ÿญ็บฟๅธ‚ๅœบ|็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆทฑๅœณ้‡‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทไธœๆ–น่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅ…‰ๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธ‡ๅ’Œ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝ้€š็›ˆ่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ๆญŒ็ฅž|ๅˆ†ๆ—ถ็œ‹็š„ๅ‡†๏ผŒๆƒ…็ปช้ขๆŠŠๆŽง็š„ๅพˆๅˆฐไฝใ€‚|ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžไฝ“่‚ฒๅœบ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆญๅทžๆฑŸๆฒณๆฑ‡่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทž้‡‘ๅŸŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆฌขไนๆตทๅฒธ|ๆžๅฐ‘ๆถ‰ๅŠ้ฆ–ๆฟ๏ผŒไธ€่ˆฌ้ƒฝๆ˜ฏ้ซ˜ไฝๆฟ๏ผ›็ปๅธธๅคšๅธญไฝ่”ๅŠจ๏ผŒๅคงๆ‰‹็ฌ”ๅฐๅ•๏ผŒๆ€ป้ข็ปๅธธไธŠไบฟ๏ผ›ไป‹ๅ…ฅๅŽ็ปๅธธ้”ไป“๏ผŒไนŸไธ่ฝปๆ˜“็ ธ็›˜๏ผŒๅพ€ๅพ€็ฆปๅœบไน‹ๅŽๅฐพ็›˜ไนŸไผšๆ‹‰ๅ‡่ฟ›่กŒๅ–„ๅŽใ€‚|็ฌฌไธ€ๅˆ›ไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ฆๅŽไธ€่ทฏๆ€ป้ƒจ่ฏๅˆธ่ฅไธš้ƒจใ€ๆ‹›ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆทฑๅ—ๅคง้“่ฝฆๅ…ฌๅบ™่ฏๅˆธ่ฅไธš้ƒจใ€ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ฆๅŽไธ€่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนณๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ้‡‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝ้‡‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆนพไธ€ๅท่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ง‘่‹‘ๅ—่ทฏๅŽๆถฆๅคงๅŽฆ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆทฑๅ—ๅคง้“ๅŸบ้‡‘ๅคงๅŽฆ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ง‘่‹‘ๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅฎๆบๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅฎๅฎ‰ๅ…ดๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธไบ‘ๆตฎๆ–ฐๅ…ดไธœๅ คๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็ง‘ๆŠ€ๅ›ญ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅŽๆตท่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธ
+ๆญๅทžๅธฎ|ๆญๅทž็ณป็Ÿญ็บฟๆธธ่ต„๏ผŒ่ต„้‡‘้‡่พƒๅคง๏ผŒๅ–œๆฌขๅŠจ็”จๅคšไธช่ฅไธš้ƒจๅŒๆ—ถๆ“ไฝœไธ€่‚ก๏ผŒๆณขๆฎตๆ“ไฝœ๏ผŒๆ•ดไฝ“ๆˆๅŠŸ็އ่พƒ้ซ˜ใ€‚ๅๅฅฝไธŠๅธ‚3ๅนดไปฅไธŠ็š„่€่‚ก็ฅจ๏ผŒ่ง„ๆจกไธŠ๏ผŒๅคง็›˜่‚กไธŽๅฐ็›˜่‚ก้ƒฝๆ˜ฏไป–็š„ๆœ€็ˆฑ๏ผŒๆ•ดไฝ“ๅˆ†ๅธƒ่พƒไธบๅนณๅ‡ใ€‚|ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทž่งๅฑฑๆฐธไน…่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅปถๅฎ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๆ™ฏ่Šณ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅคฉๅŸŽไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅ‡ค่ตท่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅบ†ๆ˜ฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅบ†ๆ˜ฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆœบๆž„ไธ“็”จ|ๆ–ฐไบคๆ˜“่ง„ๅˆ™่ง„ๅฎš๏ผŒๆœบๆž„ๅธญไฝๆ˜ฏๆŒ‡ๅŸบ้‡‘ไธ“็”จๅธญไฝใ€ๅˆธๅ•†่‡ช่ฅไธ“็”จๅธญไฝใ€็คพไฟไธ“็”จๅธญไฝใ€ๅˆธๅ•†็†่ดขไธ“็”จๅธญไฝใ€ไฟ้™ฉๆœบๆž„ไธ“็”จๅธญไฝใ€ไฟ้™ฉๆœบๆž„็งŸ็”จๅธญไฝใ€QFIIไธ“็”จๅธญไฝ็ญ‰ๆœบๆž„ๆŠ•่ต„่€…ไนฐๅ–่ฏๅˆธ็š„ไธ“็”จ้€š้“ๅ’Œๅธญไฝใ€‚|ๆœบๆž„ไธ“็”จ5ใ€ๆœบๆž„ไธ“็”จ4ใ€ๆœบๆž„ไธ“็”จ3ใ€ๆœบๆž„ไธ“็”จ2ใ€ๆœบๆž„ไธ“็”จ1ใ€ๆœบๆž„ไธ“็”จ
+ๆ–นๆ–ฐไพ |ไธŽ่ตต่€ๅ“ฅๅŒๆœŸ็š„้กถ็บงๆธธ่ต„๏ผŒๆ“ไฝœๆ‰‹ๆณ•ๅคงๅผ€ๅคงๅˆ๏ผŒๆ“…้•ฟๅคงๆˆไบค่ถ‹ๅŠฟ่‚กใ€‚2020ๅนดไธปๅฏผไบ†็œๅนฟ้›†ๅ›ขๅคงไบŒๆณขใ€ๆœชๅๅŒป่ฏ็ญ‰็ฅจใ€‚|ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้™•่ฅฟๅˆ†ๅ…ฌๅธใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ฅฟๅฎ‰ๆœฑ้›€ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ๆ–ฐ็”Ÿไปฃ|ๆ–ฐๆ™‹ๅธ‚ๅœบไธปๅŠ›๏ผŒๆ“…้•ฟไฝŽไฝ้ข˜ๆๆŒ–ๆŽ˜ๆฝœไผๅŠๆ‰“้€ ๆฟๅ—่กฅๆถจ๏ผŒ้€šๅธธๅ–œๆฌขๆๅ‰ๅŸ‹ไผๅบ•ไป“ใ€‚|้“ถๆณฐ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆˆ้ƒฝ้กบๅŸŽๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅฎ‰ไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟๅทž็ŒŽๅพทๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท็‰กไธนๆฑŸ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆ–ฐ้—ธ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ(ๅฑฑไธœ)ๆœ‰้™่ดฃไปปๅ…ฌๅธ่Žฑๅทžๆ–‡ๅŒ–ไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆ•ขๆญป้˜Ÿ|ๅฎๆณขๆ•ขๆญป้˜Ÿไธป่ฆ็”ฑ4ๅทไบบ็‰ฉ็ป„ๆˆ,ๅˆๅนถ็งฐไธบโ€œ่ถ…็ŸญF4โ€ใ€‚1ๅทไบบ็‰ฉๅซๅพ็ฟ”,ๆ˜ฏๆ•ขๆญป้˜Ÿไธญๅนด็บชๆœ€่ฝป็š„ไธ€ไฝใ€‚2ๅทไบบ็‰ฉๅง“ๅด,ๅคง็บฆ35ๅฒใ€‚ไธคไบบๅคง็บฆๅœจ1999ๅนดไปŽๅ…ถไป–่ฅไธš้ƒจ่ฝฌๅˆฐ้“ถๆฒณ่ฏๅˆธๅฎๆณข่งฃๆ”พๅ—่ทฏ่ฅไธš้ƒจ,ๅฝ“ๆ—ถ่ต„้‡‘ไธ่ฟ‡ๅ‡ ๅไธ‡ๅ…ƒ,4ๅนดๅŽ,ไธคไบบ่ดฆๆˆทไธŠ็š„้’ฑ้ƒฝๅ˜ๆˆไบ†ๆ•ฐๅƒไธ‡ๅ…ƒใ€‚3ๅทไบบ็‰ฉๅพๆตท้ธฅ,1975ๅนดๅ‡บ็”Ÿ,ไธŠๅคงๅญฆๆ—ถๅฐฑๅผ€ๅง‹็‚’่‚ก,1997ๅนดๆฏ•ไธšไบŽๅŒ—ไบฌๅ•†ๅญฆ้™ขๅŽๆฒกๆ‰พๅทฅไฝœ,ๅฐฑ็›ดๆŽฅๅ›žๅฎๆณขไธ“่Œ็‚’่‚กใ€‚่€Œ้ฉฌไฟก็ชๅœจ่ฟ™ไธ‰ไฝไน‹ๅ‰,2002ๅนด5ๆœˆ,่ขซไธด่ฟ‘็š„ๅคฉไธ€่ฏๅˆธ(็Žฐไธบๅ…‰ๅคง่ฏๅˆธ)่งฃๆ”พๅ—่ทฏ่ฅไธš้ƒจๆŒ–่ตฐ,ๆ•ฐไฝๅคงๆˆทไบฆ่ฟฝ้š่€ŒๅŽปใ€‚4ไบบๅนถ็งฐโ€œ่ถ…็ŸญF4โ€ใ€‚ๆ•ขๆญป้˜Ÿไปฅๅƒๅบ„ๅฎถไธบ็”Ÿ,|ๅนณๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆทฑๅ—ไธœ่ทฏ็ฝ—ๆน–ๅ•†ๅŠกไธญๅฟƒ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅปบๅ›ฝไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆ’ฌๆฟ็Ž‹|้ฃŽๆ ผไธŠๅ–œๆฌขๆ’ฌ่ทŒๅœๆฟ๏ผŒๅฐคๅ…ถๆ˜ฏ่ฟž็ปญ่ทŒๅœ็š„ไธช่‚ก๏ผŒไบบ็งฐๆ’ฌๆฟ็Ž‹|ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่‹ๅทžๅˆ†ๅ…ฌๅธใ€ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๅˆ†ๅ…ฌๅธ
+ๆ‹›ๅ•†ๆทฑๅ—ไธœ|ไฝœไธบๅ›ฝๅ†…A่‚กๅธ‚ๅœบๆธธ่ต„ไธปๅŠ›๏ผŒๆ‹›ๅ•†่ฏๅˆธๆทฑๅ—ไธœ่ทฏๆ‰‹ๆณ•็›ธๅฏนๆธฉๅ’Œ๏ผŒๅœจ้€‰่‚กๆ–น้ขๅนถไธ็ƒญ่กทไบŽๆฌกๆ–ฐ่‚ก๏ผŒ่ทŸ่ธชไธŠๅธ‚ๆ—ถ้—ดไธ‰ๅนดไปฅไธŠไธช่‚ก่พƒๅคš๏ผŒ้€‰ๆ‹ฉ็ƒญ็‚นๆฟๅ—ๅ…ถไธญ็š„ไบบๆฐ”ไธช่‚ก๏ผŒไฝ†ๅคงๅคšไธบไธŠๆถจ่กŒๆƒ…่ฟ˜ๆฒกๆœ‰ๅฏๅŠจ๏ผŒๆˆ–่€…ๅทฒ่ฟ›ๅ…ฅ่ฐƒๆ•ดๆœŸ็š„ไธช่‚ก๏ผ›ๅ…ถๆ“ไฝœๅฅ—่ทฏ่ฟ˜ๆ˜ฏ้›†ไธญไผ˜ๅŠฟ่ต„้‡‘่ถ‹ๅŠฟๅŠ ้€Ÿ๏ผŒๅธๅผ•่ทŸ็›˜่ต„้‡‘ๆŽฅ็›˜ๅ‡บ่ดงใ€‚|ๆ‹›ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณๆทฑๅ—ไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๆˆ้ƒฝ็ณป|่ถ…็Ÿญๆธธ่ต„๏ผŒๅ…ทๅค‡็Ÿญๆ—ถ้—ดๅ†…ๅผ•ๅฏผไธช่‚กไปทๆ ผ็š„่ƒฝๅŠ›๏ผŒ้ฃŽๆ ผ็จณๅฎš๏ผŒไปฅ่ถ…่ทŒๆฟไธบไธป๏ผŒ็›˜ไธญ้ƒฝๆ˜ฏ็›ด็บฟๆ‹‰ๅ‡ๆถจๅœ๏ผŒๅผ•ๅฏผ่ต„้‡‘ๅˆๅŠ›ๅฐๆฟใ€‚ๆ“…้•ฟๅš้ฆ–ๆฟไธช่‚กๅนถไธ”็›˜ไธญๅ–œๆฌข็›ด็บฟๆ‹‰ๅ‡๏ผŒๆฌกๆ—ฅๅ†ฒ้ซ˜ๅŽ็ˆฑ็ ธ็›˜๏ผŒๅ็ˆฑไธญๅฐ็›˜ไธช่‚กใ€‚|ๅฎไฟก่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๆˆ้ƒฝ็ดซ็ซนๅŒ—่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝ่ž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้’ๅฒ›ๅˆ†ๅ…ฌๅธใ€ๅ›ฝ่”่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝ้”ฆๅŸŽๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝๅคฉๅบœไบŒ่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝๅŒ—ไธ€็Žฏ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝๅคฉๅบœๅนฟๅœบ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅพท้˜ณ้•ฟๆฑŸ่ฅฟ่ทฏ้’ป็Ÿณๅนฟๅœบ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝ็ง‘ๅŽๅŒ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟกๅปบๆŠ•่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝ้ฉฌๅฎถ่Šฑๅ›ญ่ฏๅˆธ่ฅไธš้ƒจ
+ๆˆๆณ‰็ณป|ๅšๅ‡็บฟๅคšๅคดๅ‘ๆ•ฃๅ‘ไธŠ็š„ไธช่‚กๅนถๆƒฏๆๅ‰ๅปบไป“๏ผ›ๆถจๅœๆฟๅพ€ๅพ€ไธๅฐๆญป๏ผŒๅๅคๆ‰“ๅผ€ๅนถๅ†ๅบฆๅฐๆฟ๏ผ›ๆฌกๆ—ฅ็ปง็ปญๆถจๅœๆฆ‚็އ่พƒไฝŽใ€‚|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ่ฅฟไธ‰็Žฏๅ›ฝ้™…่ดข็ปไธญๅฟƒ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ่‡ช่ดธ่ฏ•้ชŒๅŒบ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝๅ›ฝ้™…้‡‘่ž่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅปบๅ›ฝ้—จๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ้‡‘่žๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ๆ€ๆ˜Žๅ—่ทฏ|2022ๅนด90ๅŽๆธธ่ต„๏ผŒ้ฃŽๆ ผๅคšๅ˜ไฝ†้€‰่‚กๆฐดๅนณๆž้ซ˜๏ผŒๅ‚ไธŽ็š„ไธช่‚กๅคงๅคšๆœ‰ๅŸบๆœฌ้ขๆ”ฏๆ’‘ใ€‚|ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆน–ๅŒ—ๅˆ†ๅ…ฌๅธใ€ไธœไบšๅ‰ๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅˆ†ๅ…ฌๅธ
+ๅพ็•™่ƒœ|่‘—ๅ็‰›ๆ•ฃใ€้กถ็บงๆธธ่ต„ๅพ็•™่ƒœ๏ผŒๆ›พ่ขซ่ฏ็›‘ไผšๅค„็ฝš็ฝšๆฒก1.1ไบฟใ€‚้€šๅธธๅ–œๅฅฝๅคงๆ‰‹็ฌ”ๅ‡บๆ‰‹ๅŽๆณขๆฎต้”ไป“|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ็›Š็”ฐ่ทฏ่ฃ่ถ…ๅ•†ๅŠกไธญๅฟƒ่ฏๅˆธ่ฅไธš้ƒจ
+ๅพๆ™“|ๅคงๆ‰‹็ฌ”ใ€ไฝŽ้ข‘็އใ€่ต„้‡‘ๅฎžๅŠ›้›„ๅŽšใ€ๅ‡บๆ‰‹่ƒœ็އๆž้ซ˜๏ผŒๆœ‰ไธปๅฏผ็ƒญ็‚นๆฟๅ—้พ™ๅคด่‚ก่ถ‹ๅŠฟ่กŒๆƒ…็š„่ƒฝๅŠ›|ๅ›ฝๅ…ƒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท่™นๆกฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅนฟไธœๅธฎ|ๆ“ไฝœๆ‰‹ๆณ•ไธŠไน ๆƒฏ็”จโ€œๅคง้˜ณ็บฟโ€”โ€”่ฐƒๆ•ดๆ•ฐๆ—ฅโ€”โ€”ๅคง้˜ณ็บฟโ€ๅๅคๆ‹‰ๅ‡|่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆธฉๅฒญไธญๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๆญๅทžๅฏ†ๆธกๆกฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธไธŠๆตท้ป„ๆตฆๅŒบไธญๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅพท้‚ฆ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅฒณๅทž่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽ็ฆ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅŽฆ้—จๆน–ๆปจๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท้ป„ๆตฆๅŒบไธญๅŽ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฑฑไธœๅธฎ|ๅ› ไธบๅฝ“ๆ—ถๅฑฑไธœๅธญไฝไธบๆ——่ˆฐ๏ผŒๆ•…่ขซ็งฐไธบโ€œๅฑฑไธœๅธฎโ€๏ผŒๆฌกๆ–ฐ่‚กๆ‰‹ๆณ•,ๅพ€ๅพ€ๆ˜ฏๅคšๅธญไฝ่”ๅˆ่กŒๅŠจ,ๅŒๆ—ถ็›˜่ธžๅœจๆ•ฐๅชๆฌกๆ–ฐ่‚กไธŠ้ข,ๅปบไป“่ฟ…้€Ÿ,ๆทฑๅบฆๆŽง็›˜,ๅฟซ้€Ÿๅฏนๅ€’ๆ‹‰ๅ‡ใ€‚|ๆ–นๆญฃ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆธฉๅทžๅฐๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ฃๆˆ็Ÿณๅฒ›่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆตŽๅฎ้‚นๅŸŽๅธ‚ๅคชๅนณไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆตŽๅ—ๅކๅฑฑ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆณฐๅฎ‰ๆ“‚้ผ“็Ÿณๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฑฑไธœๅˆ†ๅ…ฌๅธใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๅŽฆ็ฆพ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ่ฃๆˆ็Ÿณๅฒ›้ป„ๆตทไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จๅˆ†ๅ…ฌๅธใ€ไธญไฟก่ฏๅˆธ(ๅฑฑไธœ)ๆœ‰้™่ดฃไปปๅ…ฌๅธ่ฃๆˆๆˆๅฑฑๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆตท่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จ็ฅฅ็ฆ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŽฆ้—จไป™ๅฒณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฑ ๆ–‡ๆ–Œ|ๅฑ ๆ–‡ๆ–Œๆ˜ฏๅฑๅ’ค้ฃŽไบ‘็š„่€็‰Œๆธธ่ต„๏ผŒๅๅฅฝๅคงๆต้€š็š„ๆฟๅ—ไธญๅ†›๏ผŒๅฏ่ง‚ๅฏŸๅ…ถๅ‡บๆ‰‹ๆฅๅˆคๆ–ญๆฟๅ—ๅœฐไฝใ€‚|ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆจๆตฆๅŒบ้–ๅฎ‡ไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฐ้ณ„้ฑผ|ๆ–ฐ็”Ÿไปฃ90ๅŽๆธธ่ต„๏ผŒๅธธๅธธๆดป่ทƒๅœจๅ„ๅคง่ฎบๅ›็คพๅŒบ๏ผŒๆ‰‹ๆณ•ๅ‰ฝๆ‚๏ผŒ่ต„้‡‘ไฝ“้‡่ฟ‡ไบฟใ€‚ๅœจ่ถ‹ๅŠฟๆ€ง่กŒๆƒ…ไธ‹ไนŸ่ƒฝไธŽๆ—ถไฟฑ่ฟ›๏ผŒๅฏนๅŸบๆœฌ้ข็š„็†่งฃ้žๅธธไธ้”™๏ผŒ่ƒœ็އ่พƒ้ซ˜ใ€‚|้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทไธ–็บชๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๅ—ไบฌ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅคง้’Ÿไบญ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅ—ไบฌ้พ™่Ÿ ไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆตฆไธœๆ–ฐๅŒบๆบๆทฑ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฐๆฃ‰่ข„|ไปทๅ€ผๆŠ•ๆœบๅž‹้กถ็บง้€‰ๆ‰‹๏ผŒไปŽ้’ ็”ตๆฑ ๅˆฐไบบๅทฅๆ™บ่ƒฝใ€‚้€ป่พ‘็‰›่‚กไธ€ไธชไธ่ฝ|ไธŠๆตท่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตทๅˆ†ๅ…ฌๅธ
+ๅฎๆณข่งฃๆ”พๅ—|่€็‰Œๆธธ่ต„ๅธญไฝ๏ผŒๆฑŸๆต™ๅฎๆณขๆ•ขๆญป้˜Ÿ่ต„้‡‘๏ผŒๅ–œๅฅฝไธ‡ๆ‰‹ๅ€’ๅบๅ•่”ๆŽ’ๆ‰“ๆฟ๏ผŒๅ†ฒๅ‡ปๅˆถ้€ ๆถจๅœ็š„่‚ก็ฅจ๏ผŒไนฐๅ–ๅธ‚ๅœบๆดป่ทƒๆƒ…็ปชๆ ‡|ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎๆณข่งฃๆ”พๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฎๆณขๆก‘็”ฐ่ทฏ|ๅฎๆณข็Ÿฅๅ็š„ๆธธ่ต„๏ผŒ่ต„้‡‘้‡่ถ…่ฟ‡10ไบฟ๏ผŒๆ“ไฝœ้ฃŽๆ ผๅฝชๆ‚ๅ‡Œๅމ๏ผŒๆ˜ฏไผ—ๅคš็Ÿฅๅๆธธ่ต„้‡Œ้ขๆบขไปทๆฏ”่พƒ้ซ˜็š„ๅธญไฝ๏ผŒไบคๆ˜“้ฃŽๆ ผๅคšไธบๆ‰“ๆฟไธบไธป๏ผŒไธๆ‹˜ๆณฅไบŽๆ˜ฏ้ซ˜ไฝๆฟ๏ผŒ่ฟ˜ๆ˜ฏไฝŽไฝๆฟ๏ผŒๅฏไปฅ้”ไป“ๅšTๅพˆไน…๏ผŒไนŸๅฏไปฅ่ท‘็š„้ฃžๅฟซ|ๅ›ฝ็››่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅฎๆณขๆก‘็”ฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅฎๆณขๅ’Œๆบ่ทฏ|ๆ€ไผๆžœๆ–ญ็š„็Ÿญ็บฟ้€‰ๆ‰‹๏ผŒ้ซ˜ไฝๆŽฅๅŠ›ๆ•ขไบŽ้‡ไป“๏ผŒๅฏนๆ—ฅๅ†…ๆƒ…็ปช่Š‚็‚นๆœ‰ๆทฑๅˆป่ฎค่ฏ†๏ผŒไธ€ๆ—ฆไธช่‚ก้ข„ๆœŸ่ตฐๅผฑๅ‡บ่ดงไนŸๆ˜ฏๆฏซไธๆ‹–ๆณฅๅธฆๆฐดใ€‚ๆญคๅ‰ๅธธ็”จ่ฏฅๅธญไฝ็š„็Ÿญ็บฟ่ต„้‡‘ๅทฒ็บท็บท้€€ๅ‡บ๏ผŒไฝ†ไปๆœ‰ๅคง้‡้€š้“่ต„้‡‘ๅœจไฝฟ็”จๆœ‰ๅ…ณๅธญไฝ๏ผŒไธป่ฆ็”จไบŽๆŽ’ไธ€ๅญ—ๆฟใ€‚|็”ฌๅ…ด่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅฎๆณขๅ’Œๆบ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅขƒๅค–ๆœบๆž„|ๅขƒๅค–ๆœบๆž„ๆ˜ฏๆŒ‡ๅขƒๅค–ๅฎ˜ๆ–นใ€้žๅฎ˜ๆ–น้‡‘่žๆœบๆž„ใ€้‡‘่ž็ป„็ป‡ไปฅๅŠๆŠ•่ต„ๅŸบ้‡‘๏ผŒๅ…ถ้€š่ฟ‡QFIIๅ’ŒRQFII่Žทๅ‡†ๆŠ•่ต„ๆˆ–ๆธฏ่‚ก้€š็ญ‰้€š้“ๆŠ•่ต„A่‚กๅธ‚ๅœบใ€‚ๅ…ถ่ต„้‡‘ไฝ“้‡ๅคง่€Œๆ“…้•ฟไธญ้•ฟ็บฟๆŠ•่ต„๏ผŒ็ˆฑๅฅฝๆ ธๅฟƒ่ต„ไบงๆŠ•่ต„ใ€‚|็‘ž้“ถ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธไธŠๆตท่Šฑๅ›ญ็Ÿณๆกฅ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ›ฝ้™…้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจใ€ๅŒ—ไบฌ้ซ˜ๅŽ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅŒ—ไบฌ้‡‘่žๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจ
+ๅ’Œๅนณ่ทฏ|ๅ–œๆฌข้‡ไป“ๅ‡บๅ‡ปๅฆ–่‚กใ€้พ™ๅคด่‚ก๏ผŒไธ”ๅ–œๆฌขๆณขๆฎตๆ“ไฝœ๏ผ›ๆ“…้•ฟ่ถ‹ๅŠฟไบคๆ˜“๏ผŒๆ‰“ๆฟ๏ผŒๅŠ่ทฏ๏ผŒไฝŽๅธ|ไธœๅ…ด่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ™‹ๆฑŸๅ’Œๅนณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅถๅบ†ๅ‡|ๅถๅบ†ๅ‡ๅธญไฝ๏ผŒ่ฟ™ไธชๅธญไฝๅš็š„่‚ก็ฅจๅคง้ƒฝๆ˜ฏ็ƒญ้—จ้ฃŽๅฃ่‚กใ€‚|ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฎๆณขๅคง้—ธๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅคๅŒ—่ทฏ|้กถ็บงๆธธ่ต„๏ผŒ2016ๅนด11ๆœˆไปฝๅ‰่ฟ˜้ป˜้ป˜ๆ— ้—ป๏ผŒ้šๅŽๅดๅผ‚ๅ†›็ช่ตท๏ผŒๆˆไธบ้พ™่™Žๆฆœๅธธๅฎข๏ผŒๅœจๅนดๅˆ็š„้›„ๅฎ‰ๆฟๅ—็‚’ไฝœไธญไธ€ๆˆ˜ๆˆๅ๏ผŒๆ“…้•ฟๅˆถ้€ ๆฟๅ—่กŒๆƒ…๏ผŒๅ’Œๅ…ถไป–ไธ€็บฟๆธธ่ต„่”ๅŠจ๏ผŒๆ•ขไบŽ้”ไป“๏ผŒ้š่—่บซๅŽ็š„ๆธธ่ต„ๅคงไฝฌ๏ผŒๅญ™ๆฐ็ˆถๅญใ€่ตต่€ๅ“ฅๅˆ†่บซๅธญไฝ่ฏธๅคšไผ ่จ€๏ผŒๆฑŸๆน–ๅคšๆฃๆต‹ใ€‚|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท็บขๅฎ็Ÿณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตท็‰กไธนๆฑŸ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅ‡ฏๆปจ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅŽ้‘ซๅฎๆณขๅˆ†|1ใ€็กฎๅฎšไธป็บฟ็ƒญ็‚น้ข˜ๆ๏ผŒ้€‰ๆ‹ฉๅผบๅŠฟไธช่‚กไฝŽๅธใ€‚2ใ€็กฎๅฎš้ข˜ๆ้พ™ๅคด๏ผŒไผš่ฟ›่กŒๆ‰“ๆฟ๏ผŒไบซๅ—้พ™ๅคดๆบขไปทใ€‚3ใ€้”ๅฎšๅธ‚ๅœบไธป็บฟ็ƒญ็‚น๏ผŒๆ•ขไบŽๆŒ็ปญ้”ไป“็ญ‰ๅพ…ๅ…ถๅ‘้…ตๆ‹‰ๆŠฌใ€‚4ใ€ๅˆฉ็”จไบคๆ˜“้€š้“ไผ˜ๅŠฟ๏ผŒไธ€ๅญ—ๆŽ’ๆฟไธŠๅธ‚ๆ–ฐ่‚ก็‚’ไฝœไธŽๅˆฉๅฅฝๅค็‰Œไธช่‚กใ€‚ๆ•ขไบŽไธปๅŠจๅผ•ๅฏผๅธ‚ๅœบ๏ผŒ่ต„้‡‘ๆ ผๅฑ€่พƒๅคง|ๅŽ้‘ซ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅฎๆณขๅˆ†ๅ…ฌๅธ
+ๅŒ—ไบฌ็‚’ๅฎถ|ๅŒ—ไบฌ็‚’ๅฎถ๏ผŒ็ฝ‘ไผ ๆ˜ฏๅ‰ๅญ—่Š‚่ทณๅŠจๅ‘˜ๅทฅ๏ผŒๆ“…้•ฟ่‡ชๅช’ไฝ“่ฟ่ฅ๏ผŒๅฌๅฃฐ้Ÿณๅนด้พ„ๅบ”่ฏฅๆ˜ฏ80ๅŽไน‹้—ด|้•ฟๅŸŽ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปต้˜ณ้ฃžไบ‘ๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ๅŒ—ไบฌๅธฎ|ๆœ‰ๅคงๆ ผๅฑ€็š„ๆธธ่ต„๏ผŒ่ต„้‡‘้›„ๅŽšใ€‚|ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ็Ÿฅๆ˜ฅ่ทฏ่ฅไธš้ƒจใ€ๆ‹›ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌ่ฝฆๅ…ฌๅบ„่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅนฟๅ‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆฝฎๅทžๆฝฎๆžซ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝ้“ถๆฒณ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๆœ้˜ณ้—จๅŒ—ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ไธ‡ๅ’Œ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆˆ้ƒฝ่œ€ๆฑ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ๅˆ—ๅคซ|ไปŽๅธ‚ๅœบๆœ€ๆ•ดไฝ“ๅˆฐๆƒ…็ปชๆ•ดไฝ“ใ€ๆฟๅ—ๆ•ดไฝ“ใ€ไธช่‚กไธชๆ€งใ€้ซ˜ไฝŽไฝ็ฝฎ๏ผŒไธปๅšๅธ‚ๅœบ้พ™ๅคด|ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ปๅ…ดๅŠณๅŠจ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไฝœๆ‰‹ๆ–ฐไธ€|ๆ–ฐ็”Ÿไปฃๅฐๆธธ่ต„๏ผŒ่ต„้‡‘ไฝ“้‡็›ธๅฏน่พƒๅฐ๏ผŒไฝ†ๅธธๅธธๆดป่ทƒๅœจๅ„ๅคง็คพไบค่ฎบๅ›๏ผŒ็Ÿฅๅๅบฆ็›ธๅฏน่พƒ้ซ˜ใ€‚|ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅคชๅนณๅ—่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๅ›ฝไธญ้‡‘่ดขๅฏŒ่ฏๅˆธๆœ‰้™ๅ…ฌๅธๅ—ไบฌไธญๅคฎ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไฝ›ๅฑฑ็ณป|่ƒฝๅคŸๅœจ็Ÿญๆ—ถ้—ดๅ†…ไธปๅฏผไธช่‚ก่ตฐๅŠฟ๏ผŒ้ฃŽๆ ผ่ถ…็Ÿญ๏ผŒๅ—…่ง‰ๆ•ๆ„Ÿใ€‚ๆ“…้•ฟ็Ÿญ็บฟ๏ผŒๆ—ฉ็›˜ๅฟซ้€Ÿๆ‹‰ๆฟ๏ผŒๅˆถ้€ ๆ—ฅๅ†…้พ™ๅคด๏ผŒไธ€ๆ น็บฟๆ‹‰ๆฟ๏ผŒไปŽๅฐ่ต„้‡‘ๅš่ตท็š„ๅ…ธ่Œƒใ€‚ๆ“…้•ฟๅšไธ€ๆฟไธช่‚ก๏ผŒๅพ€ๅพ€ไปฅไธ€ๆ—ฅๆธธไธบไธป๏ผŒๆฌกๆ—ฅๅ†ฒ้ซ˜ๅฟซ้€Ÿ่Žทๅˆฉๅ‡บๅฑ€๏ผ›|้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญฆๆฑ‰ๆญฆ็ž่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆƒ ๅทž้‡‘ๅฑฑๆน–่ฏๅˆธ่ฅไธš้ƒจใ€้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑๆ™ฎๆพœไบŒ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€่ฏš้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑๅ—ๆตทๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ๆน˜่ดข่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑๆ˜Ÿ่พฐ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆตท้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟๅทž็ ๆฑŸ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๆ–นๆญฃ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅŒ—ไบฌๅฎ‰ๅฎš้—จๅค–ๅคง่ก—่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝ็››่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธๅˆ่‚ฅ็ฟ ๅพฎ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ้กบๅพทๅคง่‰ฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅนฟๅทžๅ…ดๆฐ‘่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑ็ปฟๆ™ฏ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ…‰ๅคง่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑๅญฃๅŽๅ…ญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœ่Žž่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธœ่Žžๆจชๆฒฅไธญๅฑฑไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ ้•ฟๆฑŸ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไฝ›ๅฑฑๅ—ๆตทๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+ไฝ™ๅ“ฅ|2022ๅนดๆ–ฐๆ™‹ๆธธ่ต„๏ผŒ95ๅŽ๏ผŒ่ต„้‡‘ๅขž้•ฟ้€Ÿๅบฆไน‹ๅฟซไปคไบบๅ’‹่ˆŒ๏ผŒๆ“…้•ฟๆœบๆž„ๆธธ่ต„ๅˆๅŠ›ๅคงๅฆ–่‚ก๏ผŒๅธ‚ๅœบ็†่งฃๅŠ›้กถ็บงใ€‚|็”ณๆธฏ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆต™ๆฑŸๅˆ†ๅ…ฌๅธใ€็”ฌๅ…ด่ฏๅˆธๆœ‰้™ๅ…ฌๅธ้’ๅฒ›ๅŒๅฎ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไบคๆ˜“็Œฟ|ๆ“ไฝœๆ‰‹ๆณ•๏ผŒๅคงๅคš้ƒฝๆ˜ฏๆปกไป“่ต„้‡‘ๆขญๅ“ˆไธ€ๅช่‚ก็ฅจ๏ผŒไธ”่ฟ™ๅช่‚ก็ฅจๅ‰ๆœŸๅทฒ็ปๆœ‰ๅทจๅคงๆถจๅน…๏ผŒๆต้€š็›˜ใ€ๆˆไบค้‡ๅทจๅคง็š„ๅคง็ฅจ๏ผŒๅšๅคง็ฅจ็š„ๅŠ่ทฏไธปๅ‡ๆตชใ€‚\r\n\r\n|ๅŽๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅคฉๆดฅไธœไธฝๅผ€ๅ‘ๅŒบไบŒ็บฌ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไน”ๅธฎไธป|ไธ€็บฟๆธธ่ต„๏ผŒ่ต„้‡‘้‡ไธŠไบฟ๏ผŒ้ฃŽๆ ผๅ‡ถๆ‚๏ผŒ็บชๅพ‹ไธฅๆ ผ๏ผŒไฝŽๅธ้…ๅˆๆ‰“ๆฟใ€‚|ๆ‹›ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆทฑๅœณ่›‡ๅฃๅทฅไธšไธ‰่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไธญไฟกๆ€ป้ƒจ|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจ(้ž่ฅไธšๅœบๆ‰€)|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ€ป้ƒจ(้ž่ฅไธšๅœบๆ‰€)
+ไธŠๆตท่ถ…็Ÿญๅธฎ|ไปฅ็Ÿญ็บฟ้€Ÿๅบฆๅปบไป“ๅธๅ‡‘,ๆŒ่‚กๅ‘จๆœŸๅœจ3-5ๆ—ฅๅ†…,็ปๅธธๅๅŒๆœบๆž„ไธ“็”จๅธญไฝๆ‹‰ๅ‡๏ผ›่ต„้‡‘ๅฎžๅŠ›้›„ๅŽš๏ผŒ้€šๅธธ้€‰ๅ–ไธ€ไบ›ๆœ‰ๆ˜Žๆ˜พ็š„ๅŸบๆœฌ้ขๆ”ฏๆ’‘็š„ๆ ‡็š„๏ผŒๆบๆ‰‹ๆœบๆž„ๅธญไฝ๏ผŒไปฅๅฐๆณขๆฎต่ฟไฝœไธบไธป๏ผŒๆ•ดไฝ“ๆˆๅŠŸ็އ่พƒ้ซ˜|็”ณไธ‡ๅฎๆบ่ฏๅˆธๆœ‰้™ๅ…ฌๅธไธŠๆตท้—ต่กŒๅŒบไธœๅท่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆตŽๅฎๅดๆณฐ้—ธ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆ–ฐ้—ธ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ— ้”กๆ–ฐ็”Ÿ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆตฆไธœๆ–ฐๅŒบ้“ถๅŸŽไธญ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไธŠๆตทๆบง้˜ณ่ทฏ|่€็‰Œๆธธ่ต„ๅธญไฝ๏ผŒๆ•ดไฝ“ๅธญไฝ่ต„้‡‘่พƒๆ‚๏ผŒๅคš่ทฏ่ต„้‡‘ๅนถๅญ˜๏ผŒไฝ†ๆ˜ฏๆ€ปไฝ“ๅทฒ่ถ…็Ÿญ้š”ๅคœๆ“ไฝœไธบไธป๏ผŒ่ต„้‡‘ๅฎžๅŠ›้›„ๅŽš๏ผŒไฝ“้‡่พƒๅคง๏ผŒๅ…ทไฝ“็š„ๆ“็›˜ๆ‰‹ๆณ•ๆ˜ฏๅ–œๆฌขๆ“ไฝœ้พ™ๅคด่‚ก๏ผŒๆ‰พๅˆฐ้พ™ๅคดๅŽ๏ผŒๅๅค่ฟ›ๅ‡บ็œ‹ๅฅฝ็š„ไธช่‚กใ€‚|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๆบง้˜ณ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไธŠๅก˜่ทฏ|้กถ็บง่Š‚ๅฅๅคงๅธˆ๏ผŒๅธ‚ๅœบไธŠๆ‰ซๆฟๅฐๆฟ็އๆœ€้ซ˜็š„ๅ‡ ่ทฏ่ต„้‡‘ไน‹ไธ€ใ€‚ๆ•ดไฝ“ๆ“ไฝœไปฅๅฅ—ๅˆฉไธบไธป๏ผŒ็จณไธญๆฑ‚่ฟ›๏ผŒ็บชๅพ‹ไธฅๆ˜Žใ€‚ไธŠๅก˜ๅฏนๆฌกๆ–ฐ็š„็†่งฃ้žๅธธไน‹ๆทฑ๏ผŒๆ“…้•ฟๆŠŠๆกๅธ‚ๅœบๆƒ…็ปช๏ผŒๅฏน้ฆ–ๆฟ็š„็†่งฃไนŸๅฑ…ๅธ‚ๅœบๅ‰ๅˆ—|่ดข้€š่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžไธŠๅก˜่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+ไธ€็žฌๆตๅ…‰|ๆ“…้•ฟ้พ™ๅคดๆˆ˜ๆณ•๏ผŒๅˆ†ๆญงไนฐๅ…ฅ๏ผŒ่ทŸ้š่ถ‹ๅŠฟ๏ผŒๆณขๆฎตไนฐๅ–|ๆต™ๅ•†่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆตทๅฎๆฐดๆœˆไบญ่ฅฟ่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ไธญๆณฐ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆน–ๅŒ—ๅˆ†ๅ…ฌๅธ
+zhouyu1933||้•ฟๅŸŽ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไป™ๆกƒ้’ฑๆฒŸ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+T็Ž‹|ๆญค็ฑปๅธญไฝๆฏๅคฉๅšT๏ผŒๅ…ถไนๆ— ็ฉทใ€‚|ๅ›ฝ้‡‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทๅฅ‰่ดคๅŒบ้‡‘็ขง่ทฏ่ฏๅˆธ่ฅไธš้ƒจใ€ๅ›ฝ้‡‘่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธไธŠๆตทไบ’่”็ฝ‘่ฏๅˆธๅˆ†ๅ…ฌๅธใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ‹‰่จๅ›ข็ป“่ทฏ็ฌฌไบŒ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ‹‰่จๅ›ข็ป“่ทฏ็ฌฌไธ€่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ‹‰่จไธœ็Žฏ่ทฏ็ฌฌไบŒ่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ‹‰่จไธœ็Žฏ่ทฏ็ฌฌไธ€่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆ‹‰่จไธœๅŸŽๅŒบๆฑŸ่‹ๅคง้“่ฏๅˆธ่ฅไธš้ƒจใ€ไธœๆ–น่ดขๅฏŒ่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅฑฑๅ—้ฆ™ๆ›ฒไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+Nๅ‘จไบŒ|ๆ“…้•ฟไฝŽๅธๅ’Œๆ‰“ๆฟ๏ผŒ็Ÿญ็บฟ่ถ‹ๅŠฟไบคๆ˜“|ไธญไฟก่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๆญๅทžๅ‡ค่ตท่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+bike770|่ฎบๅ›็Ÿฅๅ็Ÿญ็บฟ้€‰ๆ‰‹๏ผŒๅฐ่ต„้‡‘ๅšๅคง็š„ๅ…ธ่Œƒ๏ผŒๆ›พๅฎŒๆˆๅ››ๅนดไธ€ๅƒๅ€็š„่ถ…็บงๆˆ˜็ปฉใ€‚|ๅ›ฝๆณฐๅ›ๅฎ‰่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ๅฎๆฐ‘ๆ—ๅคง้“่ฏๅˆธ่ฅไธš้ƒจ
+Asking||ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ็ฆๅทžๆน–ไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
+92็ง‘ๆฏ”|ๆท˜่‚กๅง็Ÿฅๅ้€‰ๆ‰‹๏ผŒ็†่งฃๅŠ›ๆƒŠไบบ๏ผŒๅฎŒๅ…จ็†่งฃๆŠ•ๆœบๆœฌ่ดจ๏ผŒ็œŸๆญฃไธบไบคๆ˜“่€Œ็”Ÿใ€‚ไฝŽๅธใ€่ฟฝๆถจใ€ๆ‰“ๆฟๆ ทๆ ท็ฒพ้€š๏ผŒๆ˜ฏๅ…ธๅž‹็š„ๆ‰“ๆฟ้ซ˜ๆ‰‹๏ผŒๆ นๆฎๅธ‚ๅœบๆ‰€ๅค„้˜ถๆฎตๅˆ‡ๆขๆ‰‹ๆณ•ใ€‚|ๅ…ดไธš่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธๅ—ไบฌๅคฉๅ…ƒไธœ่ทฏ่ฏๅˆธ่ฅไธš้ƒจ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\274\200\347\233\230\347\253\236\344\273\267\346\210\220\344\272\244(\345\275\223\346\227\245).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\274\200\347\233\230\347\253\236\344\273\267\346\210\220\344\272\244(\345\275\223\346\227\245).md"
new file mode 100644
index 000000000..5207a55b4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\345\274\200\347\233\230\347\253\236\344\273\267\346\210\220\344\272\244(\345\275\223\346\227\245).md"
@@ -0,0 +1,70 @@
+## ๅฝ“ๆ—ฅ้›†ๅˆ็ซžไปท
+----
+
+ๆŽฅๅฃ๏ผšstk_auction
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฝ“ๆ—ฅไธช่‚กๅ’ŒETF็š„้›†ๅˆ็ซžไปทๆˆไบคๆƒ…ๅ†ต๏ผŒๆฏๅคฉ9็‚น25~29ๅˆ†ไน‹้—ดๅฏไปฅ่Žทๅ–ๅฝ“ๆ—ฅ็š„้›†ๅˆ็ซžไปทๆˆไบคๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่ฟ”ๅ›ž8000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–ไปฃ็ ๅพช็Žฏ่Žทๅ–ๅކๅฒ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅทฒ็ปๅผ€้€šไบ†่‚ก็ฅจๅˆ†้’Ÿๆƒ้™็š„็”จๆˆทๅฏ่‡ชๅŠจ่Žทๅพ—ๆœฌๆŽฅๅฃๆƒ้™๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ๆ•ฐๆฎๆ—ฅๆœŸ
+vol | int | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+price | int | Y | ๆˆไบคๅ‡ไปท๏ผˆๅ…ƒ๏ผ‰
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+pre_close | float | Y | ๆ˜จๆ”ถไปท๏ผˆๅ…ƒ๏ผ‰
+turnover_rate | float | Y | ๆขๆ‰‹็އ๏ผˆ%๏ผ‰
+volume_ratio | float | Y | ้‡ๆฏ”
+float_share | float | Y | ๆต้€š่‚กๆœฌ๏ผˆไธ‡่‚ก๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–2025ๅนด2ๆœˆ18ๆ—ฅๅผ€็›˜้›†ๅˆ็ซžไปทๆˆไบคๆƒ…ๅ†ต
+df = pro.stk_auction(trade_date='20250218',fields='ts_code, trade_date,vol,price,amount,turnover_rate,volume_ratio')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date vol price amount turnover_rate volume_ratio
+ 0 600071.SH 20250218 8700 23.240 202188.00 0.003090 0.150628
+ 1 300053.SZ 20250218 53300 13.750 732875.00 0.008388 0.230996
+ 2 159558.SZ 20250218 18700 1.211 22645.70 NaN NaN
+ 3 600879.SH 20250218 195900 9.190 1800320.00 0.005938 0.373839
+ 4 159707.SZ 20250218 160800 0.628 100982.00 NaN NaN
+ ... ... ... ... ... ... ... ...
+ 6507 300616.SZ 20250218 142700 14.370 2050600.00 0.091494 1.184760
+ 6508 836957.BJ 20250218 300 12.310 3693.00 0.000702 0.012952
+ 6509 123039.SZ 20250218 20 119.777 2395.54 NaN NaN
+ 6510 603655.SH 20250218 1400 23.390 32746.00 0.001321 0.107119
+ 6511 300949.SZ 20250218 25600 41.210 1054980.00 0.042667 0.830128
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\246\234\345\215\225\346\225\260\346\215\256(\345\274\200\347\233\230\345\225\246).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\246\234\345\215\225\346\225\260\346\215\256(\345\274\200\347\233\230\345\225\246).md"
new file mode 100644
index 000000000..600da4eef
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\246\234\345\215\225\346\225\260\346\215\256(\345\274\200\347\233\230\345\225\246).md"
@@ -0,0 +1,86 @@
+## ๅผ€็›˜ๅ•ฆๆฆœๅ•ๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผškpl_list
+ๆ่ฟฐ๏ผš่Žทๅ–ๅผ€็›˜ๅ•ฆๆถจๅœใ€่ทŒๅœใ€็‚ธๆฟ็ญ‰ๆฆœๅ•ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000ๆกๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–ๅކๅฒๆ•ฐๆฎ
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚200ๆฌกๆฏๅคฉๆ€ป้‡1ไธ‡ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌกๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+ๆณจ๏ผšๅผ€็›˜ๅ•ฆๆ˜ฏไธ€ไธชไผ˜็ง€็š„ไธ“ไธšๆ‰“ๆฟapp๏ผŒๆœ‰ๅ…ด่ถฃ็š„็”จๆˆทๅฏไปฅ่‡ช่กŒไธ‹่ฝฝๅฎ‰่ฃ…ใ€‚ๆœฌๆŽฅๅฃไป…้™็”จไบŽ้‡ๅŒ–็ ”็ฉถ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปๅผ€็›˜APPๅฎ˜ๆ–นใ€‚ๆ•ฐๆฎๆ›ดๆ–ฐๆ—ถ้—ดๆฌกๆ—ฅ8:30
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+tag | str | N | ๆฟๅ•็ฑปๅž‹๏ผˆๆถจๅœ/็‚ธๆฟ/่ทŒๅœ/่‡ช็„ถๆถจๅœ/็ซžไปท๏ผŒ้ป˜่ฎคไธบๆถจๅœ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ไปฃ็ 
+name | str | Y | ๅ็งฐ
+trade_date | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+lu_time | str | Y | ๆถจๅœๆ—ถ้—ด
+ld_time | str | Y | ่ทŒๅœๆ—ถ้—ด
+open_time | str | Y | ๅผ€ๆฟๆ—ถ้—ด
+last_time | str | Y | ๆœ€ๅŽๆถจๅœๆ—ถ้—ด
+lu_desc | str | Y | ๆถจๅœๅŽŸๅ› 
+tag | str | Y | ๆ ‡็ญพ|็ฑปๅˆซ
+theme | str | Y | ๆฟๅ—
+net_change | float | Y | ไธปๅŠ›ๅ‡€้ข(ๅ…ƒ)
+bid_amount | float | Y | ็ซžไปทๆˆไบค้ข(ๅ…ƒ)
+status | str | Y | ็Šถๆ€๏ผˆN่ฟžๆฟ๏ผ‰
+bid_change | float | Y | ็ซžไปทๅ‡€้ข
+bid_turnover | float | Y | ็ซžไปทๆขๆ‰‹%
+lu_bid_vol | float | Y | ๆถจๅœๅง”ไนฐ้ข
+pct_chg | float | Y | ๆถจ่ทŒๅน…%
+bid_pct_chg | float | Y | ็ซžไปทๆถจๅน…%
+rt_pct_chg | float | Y | ๅฎžๆ—ถๆถจๅน…%
+limit_order | float | Y | ๅฐๅ•
+amount | float | Y | ๆˆไบค้ข
+turnover_rate | float | Y | ๆขๆ‰‹็އ%
+free_float | float | Y | ๅฎž้™…ๆต้€š
+lu_limit_order | float | Y | ๆœ€ๅคงๅฐๅ•
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.kpl_list(trade_date='20240927', tag='ๆถจๅœ', fields='ts_code,name,trade_date,tag,theme,status')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name trade_date tag theme status
+ 0 000762.SZ ่ฅฟ่—็Ÿฟไธš 20240927 ๆถจๅœ ้”‚็Ÿฟใ€็›ๆน–ๆ้”‚ ้ฆ–ๆฟ
+ 1 300399.SZ ๅคฉๅˆฉ็ง‘ๆŠ€ 20240927 ๆถจๅœ ไบ’่”็ฝ‘้‡‘่žใ€้‡‘่žๆฆ‚ๅฟต ้ฆ–ๆฟ
+ 2 002673.SZ ่ฅฟ้ƒจ่ฏๅˆธ 20240927 ๆถจๅœ ่ฏๅˆธใ€ๆŽงๅ‚่‚กๅŸบ้‡‘ ้ฆ–ๆฟ
+ 3 002050.SZ ไธ‰่Šฑๆ™บๆŽง 20240927 ๆถจๅœ ๆฑฝ่ฝฆ็ƒญ็ฎก็†ใ€ๆฏ”ไบš่ฟชไบงไธš้“พ ้ฆ–ๆฟ
+ 4 600801.SH ๅŽๆ–ฐๆฐดๆณฅ 20240927 ๆถจๅœ ๆฐดๆณฅใ€ๅœฐไบง้“พ ้ฆ–ๆฟ
+ .. ... ... ... .. ... ...
+ 126 600696.SH ๅฒฉ็Ÿณ่‚กไปฝ 20240927 ๆถจๅœ ็™ฝ้…’ใ€้…ฟ้…’ 2่ฟžๆฟ
+ 127 600606.SH ็ปฟๅœฐๆŽง่‚ก 20240927 ๆถจๅœ ๆˆฟๅœฐไบงใ€ๅœฐไบง้“พ 2่ฟžๆฟ
+ 128 000882.SZ ๅŽ่”่‚กไปฝ 20240927 ๆถจๅœ ้›ถๅ”ฎใ€ไบ’่”็ฝ‘้‡‘่ž 2่ฟžๆฟ
+ 129 000069.SZ ๅŽไพจๅŸŽ๏ผก 20240927 ๆถจๅœ ๆˆฟๅœฐไบงใ€ๅœฐไบง้“พ 2่ฟžๆฟ
+ 130 002570.SZ ่ดๅ› ็พŽ 20240927 ๆถจๅœ ๅคš่ƒŽๆฆ‚ๅฟตใ€ไนณไธš ้ฆ–ๆฟ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\346\234\200\345\274\272\346\235\277\345\235\227\347\273\237\350\256\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\346\234\200\345\274\272\346\235\277\345\235\227\347\273\237\350\256\241.md"
new file mode 100644
index 000000000..62cbecc65
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\346\234\200\345\274\272\346\235\277\345\235\227\347\273\237\350\256\241.md"
@@ -0,0 +1,76 @@
+## ๆœ€ๅผบๆฟๅ—็ปŸ่ฎก
+----
+
+ๆŽฅๅฃ๏ผšlimit_cpt_list
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๅคฉๆถจๅœ่‚ก็ฅจๆœ€ๅคšๆœ€ๅผบ็š„ๆฆ‚ๅฟตๆฟๅ—๏ผŒๅฏไปฅๅˆ†ๆžๅผบๅŠฟๆฟๅ—็š„่ฝฎๅŠจ๏ผŒๅˆคๆ–ญ่ต„้‡‘ๅŠจๅ‘
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ๆˆ–่€…ๆ—ฅๆœŸๅพช็Žฏๆๅ–ๅ…จ้ƒจ
+็งฏๅˆ†๏ผš8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก๏ผŒๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ๆฟๅ—ไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+name | str | Y | ๆฟๅ—ๅ็งฐ
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+days | int | Y | ไธŠๆฆœๅคฉๆ•ฐ
+up_stat | str | Y | ่ฟžๆฟ้ซ˜ๅบฆ
+cons_nums | int | Y | ่ฟžๆฟๅฎถๆ•ฐ
+up_nums | int | Y | ๆถจๅœๅฎถๆ•ฐ
+pct_chg | float | Y | ๆถจ่ทŒๅน…%
+rank | str | Y | ๆฟๅ—็ƒญ็‚นๆŽ’ๅ
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.limit_cpt_list(trade_date='20241127')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ts_code name trade_date days up_stat cons_nums up_nums pct_chg rank
+ 0 885728.TI ไบบๅทฅๆ™บ่ƒฝ 20241127 18 9ๅคฉ7ๆฟ 9 27 2.8608 1
+ 1 885420.TI ็”ตๅญๅ•†ๅŠก 20241127 6 9ๅคฉ7ๆฟ 11 25 1.8973 2
+ 2 885806.TI ๅŽไธบๆฆ‚ๅฟต 20241127 34 18ๅคฉ14ๆฟ 6 21 2.4648 3
+ 3 885418.TI ๆ–‡ๅŒ–ไผ ๅช’ๆฆ‚ๅฟต 20241127 2 9ๅคฉ7ๆฟ 6 18 3.5207 4
+ 4 885976.TI ๆ•ฐๅญ—็ปๆตŽ 20241127 4 9ๅคฉ7ๆฟ 6 17 2.8993 5
+ 5 885788.TI ็ฝ‘็ปœ็›ดๆ’ญ 20241127 6 9ๅคฉ7ๆฟ 9 17 2.5367 6
+ 6 886019.TI AIGCๆฆ‚ๅฟต 20241127 1 9ๅคฉ7ๆฟ 5 16 4.3615 7
+ 7 885756.TI ่Šฏ็‰‡ๆฆ‚ๅฟต 20241127 1 7ๅคฉ7ๆฟ 7 16 2.4840 8
+ 8 885642.TI ่ทจๅขƒ็”ตๅ•† 20241127 6 9ๅคฉ7ๆฟ 10 16 2.1974 9
+ 9 885517.TI ๆœบๅ™จไบบๆฆ‚ๅฟต 20241127 14 6ๅคฉ6ๆฟ 7 16 2.1272 10
+ 10 885929.TI ไธ“็ฒพ็‰นๆ–ฐ 20241127 8 7ๅคฉ7ๆฟ 4 16 2.0335 11
+ 11 885709.TI ่™šๆ‹Ÿ็Žฐๅฎž 20241127 1 9ๅคฉ7ๆฟ 4 15 3.4553 12
+ 12 885934.TI ๅ…ƒๅฎ‡ๅฎ™ 20241127 1 9ๅคฉ7ๆฟ 4 14 3.9264 13
+ 13 885757.TI ๅŒบๅ—้“พ 20241127 1 18ๅคฉ14ๆฟ 5 14 3.1271 14
+ 14 885413.TI ๅˆ›ๆŠ• 20241127 3 18ๅคฉ14ๆฟ 7 14 1.7311 15
+ 15 885779.TI ่…พ่ฎฏๆฆ‚ๅฟต 20241127 1 9ๅคฉ7ๆฟ 4 13 3.3722 16
+ 16 885876.TI ็ฝ‘็บข็ปๆตŽ 20241127 1 9ๅคฉ7ๆฟ 5 12 2.9002 17
+ 17 885494.TI ไธ€ๅธฆไธ€่ทฏ 20241127 2 9ๅคฉ7ๆฟ 1 12 1.3427 18
+ 18 885950.TI ่™šๆ‹Ÿๆ•ฐๅญ—ไบบ 20241127 1 9ๅคฉ7ๆฟ 3 11 4.1545 19
+ 19 886013.TI ไฟกๅˆ› 20241127 2 9ๅคฉ7ๆฟ 6 11 3.2298 20
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\350\202\241\347\245\250\350\277\236\346\235\277\345\244\251\346\242\257.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\350\202\241\347\245\250\350\277\236\346\235\277\345\244\251\346\242\257.md"
new file mode 100644
index 000000000..0e3222428
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\345\201\234\350\202\241\347\245\250\350\277\236\346\235\277\345\244\251\346\242\257.md"
@@ -0,0 +1,100 @@
+## ่ฟžๆฟๅคฉๆขฏ
+----
+
+ๆŽฅๅฃ๏ผšlimit_step
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๅคฉ่ฟžๆฟไธชๆ•ฐๆ™‹็บง็š„่‚ก็ฅจ๏ผŒๅฏไปฅๅˆ†ๆžๅ‡บๆฏๅคฉ่ฟž็ปญๆถจๅœ่ฟ›้˜ถไธชๆ•ฐ๏ผŒๅˆคๆ–ญๅผบๅŠฟ็ƒญๅบฆ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎ่‚ก็ฅจไปฃ็ ๆˆ–่€…ๆ—ฅๆœŸๅพช็Žฏๆๅ–ๅ…จ้ƒจ
+็งฏๅˆ†๏ผš8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก๏ผŒๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ๏ผ‰
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+nums | str | N | ่ฟžๆฟๆฌกๆ•ฐ๏ผŒๆ”ฏๆŒๅคšไธช่พ“ๅ…ฅ๏ผŒไพ‹ๅฆ‚nums='2,3'
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ไปฃ็ 
+name | str | Y | ๅ็งฐ
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+nums | str | Y | ่ฟžๆฟๆฌกๆ•ฐ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.limit_step(trade_date='20241125')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name trade_date nums
+ 0 000833.SZ ็ฒคๆก‚่‚กไปฝ 20241125 11
+ 1 002611.SZ ไธœๆ–น็ฒพๅทฅ 20241125 8
+ 2 600800.SH ๆธคๆตทๅŒ–ๅญฆ 20241125 7
+ 3 000801.SZ ๅ››ๅทไนๆดฒ 20241125 6
+ 4 600889.SH ๅ—ไบฌๅŒ–็บค 20241125 6
+ 5 000615.SZ ST็พŽ่ฐท 20241125 5
+ 6 001229.SZ ้ญ…่ง†็ง‘ๆŠ€ 20241125 5
+ 7 002095.SZ ็”Ÿๆ„ๅฎ 20241125 5
+ 8 002403.SZ ็ˆฑไป•่พพ 20241125 5
+ 9 600470.SH ๅ…ญๅ›ฝๅŒ–ๅทฅ 20241125 5
+ 10 603015.SH ๅผ˜่ฎฏ็ง‘ๆŠ€ 20241125 5
+ 11 603527.SH ไผ—ๆบๆ–ฐๆ 20241125 5
+ 12 002103.SZ ๅนฟๅš่‚กไปฝ 20241125 4
+ 13 002175.SZ ไธœๆ–นๆ™บ้€  20241125 4
+ 14 002467.SZ ไบŒๅ…ญไธ‰ 20241125 4
+ 15 002741.SZ ๅ…‰ๅŽ็ง‘ๆŠ€ 20241125 4
+ 16 002862.SZ ๅฎžไธฐๆ–‡ๅŒ– 20241125 4
+ 17 003036.SZ ๆณฐๅฆ่‚กไปฝ 20241125 4
+ 18 603377.SH STไธœๆ—ถ 20241125 4
+ 19 000573.SZ ็ฒคๅฎ่ฟœA 20241125 3
+ 20 002155.SZ ๆน–ๅ—้ป„้‡‘ 20241125 3
+ 21 300822.SZ ่ดไป•่พพๅ…‹ 20241125 3
+ 22 600105.SH ๆฐธ้ผŽ่‚กไปฝ 20241125 3
+ 23 600405.SH ๅŠจๅŠ›ๆบ 20241125 3
+ 24 600410.SH ๅŽ่ƒœๅคฉๆˆ 20241125 3
+ 25 600979.SH ๅนฟๅฎ‰็ˆฑไผ— 20241125 3
+ 26 000548.SZ ๆน–ๅ—ๆŠ•่ต„ 20241125 2
+ 27 000695.SZ ๆปจๆตท่ƒฝๆบ 20241125 2
+ 28 000803.SZ ๅฑฑ้ซ˜็Žฏ่ƒฝ 20241125 2
+ 29 002045.SZ ๅ›ฝๅ…‰็”ตๅ™จ 20241125 2
+ 30 002054.SZ ๅพท็พŽๅŒ–ๅทฅ 20241125 2
+ 31 002117.SZ ไธœๆธฏ่‚กไปฝ 20241125 2
+ 32 002638.SZ ๅ‹คไธŠ่‚กไปฝ 20241125 2
+ 33 002640.SZ ่ทจๅขƒ้€š 20241125 2
+ 34 002658.SZ ้›ช่ฟช้พ™ 20241125 2
+ 35 002820.SZ ๆก‚ๅ‘็ฅฅ 20241125 2
+ 36 002877.SZ ๆ™บ่ƒฝ่‡ชๆŽง 20241125 2
+ 37 003005.SZ ็ซžไธš่พพ 20241125 2
+ 38 300220.SZ ้‡‘่ฟๆฟ€ๅ…‰ 20241125 2
+ 39 600228.SH ่ฟ”ๅˆฉ็ง‘ๆŠ€ 20241125 2
+ 40 600333.SH ้•ฟๆ˜ฅ็‡ƒๆฐ” 20241125 2
+ 41 600615.SH ไธฐๅŽ่‚กไปฝ 20241125 2
+ 42 600775.SH ๅ—ไบฌ็†Š็Œซ 20241125 2
+ 43 601133.SH ๆŸ่ฏš่‚กไปฝ 20241125 2
+ 44 603026.SH ็Ÿณๅคง่ƒœๅŽ 20241125 2
+ 45 603359.SH ไธœ็ ็”Ÿๆ€ 20241125 2
+ 46 603585.SH ่‹ๅˆฉ่‚กไปฝ 20241125 2
+ 47 603655.SH ๆœ—ๅš็ง‘ๆŠ€ 20241125 2
+ 48 603843.SH ๆญฃๅนณ่‚กไปฝ 20241125 2
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\350\267\214\345\201\234\345\222\214\347\202\270\346\235\277\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\350\267\214\345\201\234\345\222\214\347\202\270\346\235\277\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..4b080d730
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\266\250\350\267\214\345\201\234\345\222\214\347\202\270\346\235\277\346\225\260\346\215\256.md"
@@ -0,0 +1,76 @@
+## ๆถจ่ทŒๅœๅˆ—่กจ๏ผˆๆ–ฐ๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšlimit_list_d
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๆฏๆ—ฅๆถจ่ทŒๅœใ€็‚ธๆฟๆ•ฐๆฎๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎไปŽ2020ๅนดๅผ€ๅง‹๏ผˆไธๆไพ›ST่‚ก็ฅจ็š„็ปŸ่ฎก๏ผ‰
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏไปฅ่Žทๅ–2500ๆกๆ•ฐๆฎ๏ผŒๅฏ้€š่ฟ‡ๆ—ฅๆœŸๆˆ–่€…่‚ก็ฅจๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚200ๆฌกๆฏๅคฉๆ€ป้‡1ไธ‡ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌกๆฏๅคฉๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+limit_type | str | N | ๆถจ่ทŒๅœ็ฑปๅž‹๏ผˆUๆถจๅœD่ทŒๅœZ็‚ธๆฟ๏ผ‰
+exchange | str | N | ไบคๆ˜“ๆ‰€๏ผˆSHไธŠไบคๆ‰€SZๆทฑไบคๆ‰€BJๅŒ—ไบคๆ‰€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+industry | str | Y | ๆ‰€ๅฑž่กŒไธš
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+close | float | Y | ๆ”ถ็›˜ไปท
+pct_chg | float | Y | ๆถจ่ทŒๅน…
+amount | float | Y | ๆˆไบค้ข
+limit_amount | float | Y | ๆฟไธŠๆˆไบค้‡‘้ข(ๆˆไบคไปทๆ ผไธบ่ฏฅ่‚ก็ฅจ่ทŒๅœไปท็š„ๆ‰€ๆœ‰ๆˆไบค้ข็š„ๆ€ปๅ’Œ๏ผŒๆถจๅœๆ— ๆญคๆ•ฐๆฎ)
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ
+turnover_ratio | float | Y | ๆขๆ‰‹็އ
+fd_amount | float | Y | ๅฐๅ•้‡‘้ข๏ผˆไปฅๆถจๅœไปทไนฐๅ…ฅๆŒ‚ๅ•็š„่ต„้‡‘ๆ€ป้‡๏ผ‰
+first_time | str | Y | ้ฆ–ๆฌกๅฐๆฟๆ—ถ้—ด๏ผˆ่ทŒๅœๆ— ๆญคๆ•ฐๆฎ๏ผ‰
+last_time | str | Y | ๆœ€ๅŽๅฐๆฟๆ—ถ้—ด
+open_times | int | Y | ็‚ธๆฟๆฌกๆ•ฐ(่ทŒๅœไธบๅผ€ๆฟๆฌกๆ•ฐ)
+up_stat | str | Y | ๆถจๅœ็ปŸ่ฎก๏ผˆN/T Tๅคฉๆœ‰Nๆฌกๆถจๅœ๏ผ‰
+limit_times | int | Y | ่ฟžๆฟๆ•ฐ๏ผˆไธช่‚ก่ฟž็ปญๅฐๆฟๆ•ฐ้‡๏ผ‰
+limit | str | Y | D่ทŒๅœUๆถจๅœZ็‚ธๆฟ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.limit_list_d(trade_date='20220615', limit_type='U', fields='ts_code,trade_date,industry,name,close,pct_chg,open_times,up_stat,limit_times')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code industry name close pct_chg open_times up_stat limit_times
+ 0 20220615 000017.SZ ไบค่ฟ่ฎพๅค‡ ๆทฑไธญๅŽA 3.65 9.94 0 1/1 1
+ 1 20220615 000025.SZ ๆฑฝ่ฝฆๆœๅŠก ็‰น ๅŠ›๏ผก 29.54 10.02 5 12/23 1
+ 2 20220615 000498.SZ ๅทฅ็จ‹ๅปบ่ฎพ ๅฑฑไธœ่ทฏๆกฅ 10.41 10.04 3 1/1 1
+ 3 20220615 000502.SZ ๆˆฟๅœฐไบงๆœ ็ปฟๆ™ฏ้€€ 0.69 9.52 2 3/3 3
+ 4 20220615 000532.SZ ็ปผๅˆ่กŒไธš ๅŽ้‡‘่ต„ๆœฌ 12.69 9.97 0 1/1 1
+ .. ... ... ... ... ... ... ... ... ...
+ 56 20220615 603633.SH ๆถˆ่ดน็”ตๅญ ๅพ•ๆœจ่‚กไปฝ 14.58 10.04 3 2/4 1
+ 57 20220615 603668.SH ๅ†œ็‰ง้ฅฒๆธ” ๅคฉ้ฉฌ็ง‘ๆŠ€ 18.22 10.02 0 2/2 2
+ 58 20220615 603918.SH ไบ’่”็ฝ‘ๆœ ้‡‘ๆกฅไฟกๆฏ 9.49 9.97 6 1/1 1
+ 59 20220615 603963.SH ไธญ่ฏ ๅคง็†่ฏไธš 14.78 9.97 1 1/1 1
+ 60 20220615 605068.SH ๆฑฝ่ฝฆ้›ถ้ƒจ ๆ˜Žๆ–ฐๆ—ญ่…พ 29.03 10.00 1 2/2 2
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\270\270\350\265\204\344\272\244\346\230\223\346\257\217\346\227\245\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\270\270\350\265\204\344\272\244\346\230\223\346\257\217\346\227\245\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..ad6b5340e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\346\270\270\350\265\204\344\272\244\346\230\223\346\257\217\346\227\245\346\230\216\347\273\206.md"
@@ -0,0 +1,61 @@
+## ๆธธ่ต„ๆฏๆ—ฅๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšhm_detail
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๆ—ฅๆธธ่ต„ไบคๆ˜“ๆ˜Ž็ป†๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2022ๅนด8ใ€‚ๆธธ่ต„ๅˆ†็ฑปๅๅฝ•๏ผŒ่ฏท็‚นๅ‡ป<a href="https://tushare.pro/document/2?doc_id=311">ๆธธ่ต„ๅๅฝ•</a>
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคšๆๅ–2000ๆก่ฎฐๅฝ•๏ผŒๅฏๅพช็Žฏ่ฐƒๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ10000็งฏๅˆ†ๅฏ่ฐƒๅ–ไฝฟ็”จ๏ผŒ็งฏๅˆ†่Žทๅ–ๅŠžๆณ•่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<img src="https://tushare.pro/files/wx/yzpt.png">
+
+ๆณจ๏ผšๆ•ฐๆฎไธบๅฝ“ๆ—ฅ้ƒจๅˆ†ๆ•ฐๆฎ๏ผŒๆญคๅค„ๅชๆœชไฝœไธบ็คบไพ‹ๆ•ˆๆžœใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDD)
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+hm_name | str | N | ๆธธ่ต„ๅ็งฐ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ(YYYYMMDD)
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ts_name | str | Y | ่‚ก็ฅจๅ็งฐ
+buy_amount | float | Y | ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sell_amount | float | Y | ๅ–ๅ‡บ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+net_amount | float | Y | ๅ‡€ไนฐๅ–๏ผˆๅ…ƒ๏ผ‰
+hm_name | str | Y | ๆธธ่ต„ๅ็งฐ
+hm_orgs | str | Y | ๅ…ณ่”ๆœบๆž„๏ผˆไธ€่ˆฌไธบ่ฅไธš้ƒจๆˆ–ๆœบๆž„ไธ“็”จ๏ผ‰
+tag | str | N | ๆ ‡็ญพ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจๆ˜Ž็ป†
+df = pro.hm_detail(trade_date='20230815')
+
+```
+
+
+<br>
+<br>
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..4ef51c9cc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\344\277\241\346\201\257.md"
@@ -0,0 +1,70 @@
+## ้€š่พพไฟกๆฟๅ—ไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผštdx_index
+ๆ่ฟฐ๏ผš่Žทๅ–้€š่พพไฟกๆฟๅ—ๅŸบ็ก€ไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšใ€้ฃŽๆ ผใ€ๅœฐๅŸŸ็ญ‰
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000ๆกๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ไปฃ็ ๏ผšxxxxxx.TDX
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผ‰
+idx_type | str | N | ๆฟๅ—็ฑปๅž‹๏ผšๆฆ‚ๅฟตๆฟๅ—ใ€่กŒไธšๆฟๅ—ใ€้ฃŽๆ ผๆฟๅ—ใ€ๅœฐๅŒบๆฟๅ—
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+name | str | Y | ๆฟๅ—ๅ็งฐ
+idx_type | str | Y | ๆฟๅ—็ฑปๅž‹
+idx_count | int | Y | ๆˆๅˆ†ไธชๆ•ฐ
+total_share | float | Y | ๆ€ป่‚กๆœฌ(ไบฟ)
+float_share | float | Y | ๆต้€š่‚ก(ไบฟ)
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ(ไบฟ)
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ(ไบฟ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–้€š่พพไฟก2025ๅนด5ๆœˆ13ๆ—ฅ็š„ๆฆ‚ๅฟตๆฟๅ—ๅˆ—่กจ
+df = pro.tdx_index(trade_date='20250513', fields='ts_code,name,idx_type,idx_count')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name idx_type idx_count
+ 0 880559.TDX ่ฆ็บฆๆ”ถ่ดญ ้ฃŽๆ ผๆฟๅ— 6
+ 1 880728.TDX ่ˆช่ฟๆฆ‚ๅฟต ๆฆ‚ๅฟตๆฟๅ— 64
+ 2 880355.TDX ๆ—ฅ็”จๅŒ–ๅทฅ ่กŒไธšๆฟๅ— 20
+ 3 880423.TDX ้…’ๅบ—้ค้ฅฎ ่กŒไธšๆฟๅ— 9
+ 4 880875.TDX ไธญๅฐ้“ถ่กŒ ้ฃŽๆ ผๆฟๅ— 28
+ .. ... ... ... ...
+ 477 880528.TDX ๅ†›ๅทฅไฟกๆฏๅŒ– ๆฆ‚ๅฟตๆฟๅ— 99
+ 478 880868.TDX ้ซ˜่ดๅก”ๅ€ผ ้ฃŽๆ ผๆฟๅ— 100
+ 479 880430.TDX ่ˆช็ฉบ ่กŒไธšๆฟๅ— 52
+ 480 880431.TDX ่ˆน่ˆถ ่กŒไธšๆฟๅ— 12
+ 481 880914.TDX ๅ†›่ดธๆฆ‚ๅฟต ๆฆ‚ๅฟตๆฟๅ— 25
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\346\210\220\345\210\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\346\210\220\345\210\206.md"
new file mode 100644
index 000000000..5cce0bc76
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\346\210\220\345\210\206.md"
@@ -0,0 +1,63 @@
+## ้€š่พพไฟกๆฟๅ—ๆˆๅˆ†
+----
+
+ๆŽฅๅฃ๏ผštdx_member
+ๆ่ฟฐ๏ผš่Žทๅ–้€š่พพไฟกๅ„ๆฟๅ—ๆˆๅˆ†่‚กไฟกๆฏ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ’Œๆฟๅ—ไปฃ็ ๅพช็Žฏๆๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ไปฃ็ ๏ผšxxxxxx.TDX
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผšๆ ผๅผYYYYMMDD
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+con_code | str | Y | ๆˆๅˆ†่‚ก็ฅจไปฃ็ 
+con_name | str | Y | ๆˆๅˆ†่‚ก็ฅจๅ็งฐ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–้€š่พพไฟกๆฟๅ—2025ๅนด5ๆœˆ13ๆ—ฅ็š„่ˆช่ฟๆฆ‚ๅฟตๆฟๅ—ๆˆๅˆ†่‚ก
+df = pro.tdx_member(trade_date='20250513', ts_code='880728.TDX')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date con_code con_name
+ 0 880728.TDX 20250513 000039.SZ ไธญ้›†้›†ๅ›ข
+ 1 880728.TDX 20250513 000088.SZ ็› ็”ฐ ๆธฏ
+ 2 880728.TDX 20250513 000507.SZ ็ ๆตทๆธฏ
+ 3 880728.TDX 20250513 000520.SZ ๅ‡คๅ‡ฐ่ˆช่ฟ
+ 4 880728.TDX 20250513 000582.SZ ๅŒ—้ƒจๆนพๆธฏ
+ .. ... ... ... ...
+ 59 880728.TDX 20250513 603869.SH STๆ™บ็Ÿฅ
+ 60 880728.TDX 20250513 603967.SH ไธญๅˆ›็‰ฉๆต
+ 61 880728.TDX 20250513 605090.SH ไนไธฐ่ƒฝๆบ
+ 62 880728.TDX 20250513 833171.BJ ๅ›ฝ่ˆช่ฟœๆด‹
+ 63 880728.TDX 20250513 872351.BJ ๅŽๅ…‰ๆบๆตท
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..8e4aa9f4e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\200\232\350\276\276\344\277\241\346\235\277\345\235\227\350\241\214\346\203\205.md"
@@ -0,0 +1,98 @@
+## ้€š่พพไฟกๆฟๅ—่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผštdx_daily
+ๆ่ฟฐ๏ผš่Žทๅ–้€š่พพไฟกๅ„ๆฟๅ—่กŒๆƒ…๏ผŒๅŒ…ๆ‹ฌๆˆไบคๅ’Œไผฐๅ€ผ็ญ‰ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆๅ–ๆœ€ๅคง3000ๆกๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆฟๅ—ไปฃ็ ๅ’Œๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏๆๅ–
+ๆƒ้™๏ผš็”จๆˆท็งฏ็ดฏ6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ๆฟๅ—ไปฃ็ ๏ผšxxxxxx.TDX
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผŒๆ ผๅผYYYYMMDD,ไธ‹ๅŒ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆ”ถ็›˜็‚นไฝ
+open | float | Y | ๅผ€็›˜็‚นไฝ
+high | float | Y | ๆœ€้ซ˜็‚นไฝ
+low | float | Y | ๆœ€ไฝŽ็‚นไฝ
+pre_close | float | Y | ๆ˜จๆ—ฅๆ”ถ็›˜็‚น
+change | float | Y | ๆถจ่ทŒ็‚นไฝ
+pct_change | float | Y | ๆถจ่ทŒๅน…%
+vol | float | Y | ๆˆไบค้‡๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰, ๅฏนไบŽๆœŸ่ดงๆŒ‡ๆ•ฐ๏ผŒ่ฏฅๅญ—ๆฎตๅญ˜ๅ‚จๆŒไป“้‡
+rise | str | Y | ๆ”ถ็›˜ๆถจ้€Ÿ%
+vol_ratio | float | Y | ้‡ๆฏ”
+turnover_rate | float | Y | ๆขๆ‰‹%
+swing | float | Y | ๆŒฏๅน…%
+up_num | int | Y | ไธŠๆถจๅฎถๆ•ฐ
+down_num | int | Y | ไธ‹่ทŒๅฎถๆ•ฐ
+limit_up_num | int | Y | ๆถจๅœๅฎถๆ•ฐ
+limit_down_num | int | Y | ่ทŒๅœๅฎถๆ•ฐ
+lu_days | int | Y | ่ฟžๆถจๅคฉๆ•ฐ
+3day | float | Y | 3ๆ—ฅๆถจๅน…%
+5day | float | Y | 5ๆ—ฅๆถจๅน…%
+10day | float | Y | 10ๆ—ฅๆถจๅน…%
+20day | float | Y | 20ๆ—ฅๆถจๅน…%
+60day | float | Y | 60ๆ—ฅๆถจๅน…%
+mtd | float | Y | ๆœˆๅˆ่‡ณไปŠ%
+ytd | float | Y | ๅนดๅˆ่‡ณไปŠ%
+1year | float | Y | ไธ€ๅนดๆถจๅน…%
+pe | str | Y | ๅธ‚็›ˆ็އ
+pb | str | Y | ๅธ‚ๅ‡€็އ
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ(ไบฟ)
+ab_total_mv | float | Y | AB่‚กๆ€ปๅธ‚ๅ€ผ๏ผˆไบฟ๏ผ‰
+float_share | float | Y | ๆต้€š่‚ก(ไบฟ)
+total_share | float | Y | ๆ€ป่‚กๆœฌ(ไบฟ)
+bm_buy_net | float | Y | ไธปไนฐๅ‡€้ข(ๅ…ƒ)
+bm_buy_ratio | float | Y | ไธปไนฐๅ ๆฏ”%
+bm_net | float | Y | ไธปๅŠ›ๅ‡€้ข
+bm_ratio | float | Y | ไธปๅŠ›ๅ ๆฏ”%
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–้€š่พพไฟก2025ๅนด5ๆœˆ13ๆ—ฅๆฆ‚ๅฟตๆฟๅ—่กŒๆƒ…
+df = pro.tdx_daily(trade_date='20250513')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code trade_date close open high ... total_share bm_buy_net bm_buy_ratio bm_net bm_ratio
+ 0 880559.TDX 20250513 4344.82 4243.64 4377.61 ... 63.92 -3711.74 -5.99 3460.16 5.58
+ 1 880728.TDX 20250513 1426.69 1417.49 1429.39 ... 2060.22 -6268.93 -0.29 28491.26 1.32
+ 2 880355.TDX 20250513 1432.23 1403.51 1445.14 ... 70.76 -923.37 -0.17 58055.81 10.40
+ 3 880423.TDX 20250513 919.10 907.35 921.78 ... 56.45 12268.21 8.46 420.44 0.29
+ 4 880875.TDX 20250513 1385.67 1365.73 1387.00 ... 1986.86 207359.44 16.90 3214.69 0.26
+ .. ... ... ... ... ... ... ... ... ... ... ...
+ 482 880528.TDX 20250513 1298.93 1334.78 1335.18 ... 579.52 -566197.66 -12.66 -285997.36 -6.40
+ 483 880868.TDX 20250513 1359.55 1412.46 1418.79 ... 108.15 -11975.73 -0.80 -89.57 -0.01
+ 484 880430.TDX 20250513 1865.61 1914.31 1914.31 ... 398.07 -333388.49 -10.96 -200437.09 -6.59
+ 485 880431.TDX 20250513 796.66 825.16 825.16 ... 367.64 -246591.46 -23.97 -131926.99 -12.82
+ 486 880914.TDX 20250513 1009.77 1047.47 1047.55 ... 310.96 -337334.58 -10.57 -423231.69 -13.26
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\242\230\346\235\220\346\210\220\345\210\206(\345\274\200\347\233\230\345\225\246).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\242\230\346\235\220\346\210\220\345\210\206(\345\274\200\347\233\230\345\225\246).md"
new file mode 100644
index 000000000..104a716ac
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\242\230\346\235\220\346\210\220\345\210\206(\345\274\200\347\233\230\345\225\246).md"
@@ -0,0 +1,69 @@
+## ๅผ€็›˜ๅ•ฆ้ข˜ๆๆˆๅˆ†
+----
+
+ๆŽฅๅฃ๏ผškpl_concept_cons
+ๆ่ฟฐ๏ผš่Žทๅ–ๅผ€็›˜ๅ•ฆๆฆ‚ๅฟต้ข˜ๆ็š„ๆˆๅˆ†่‚ก
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000ๆก๏ผŒๅฏๆ นๆฎไปฃ็ ๅ’Œๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๅฏๆๅ–ๆ•ฐๆฎ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+ๆณจ๏ผšๅผ€็›˜ๅ•ฆๆ˜ฏไธ€ไธชไผ˜็ง€็š„ไธ“ไธšๆ‰“ๆฟapp๏ผŒๆœ‰ๅ…ด่ถฃ็š„็”จๆˆทๅฏไปฅ่‡ช่กŒไธ‹่ฝฝๅฎ‰่ฃ…ใ€‚ๆœฌๆŽฅๅฃไป…้™็”จไบŽ้‡ๅŒ–็ ”็ฉถ๏ผŒๅฆ‚้œ€ๅ•†ไธš็”จ้€”๏ผŒ่ฏท่‡ช่กŒ่”็ณปๅผ€็›˜APPๅฎ˜ๆ–นใ€‚ๆญคๆŽฅๅฃๅ› ๆบ็ซ™ๆ”น็‰ˆๆš‚ๆ— ๆ–ฐๅขžๆ•ฐๆฎ
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผ‰
+ts_code | str | N | ้ข˜ๆไปฃ็ ๏ผˆxxxxxx.KPๆ ผๅผ๏ผ‰
+con_code | str | N | ๆˆๅˆ†ไปฃ็ ๏ผˆxxxxxx.SHๆ ผๅผ๏ผ‰
+
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ้ข˜ๆID
+name | str | Y | ้ข˜ๆๅ็งฐ
+con_name | str | Y | ่‚ก็ฅจๅ็งฐ
+con_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+desc | str | Y | ๆ่ฟฐ
+hot_num | int | Y | ไบบๆฐ”ๅ€ผ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.kpl_concept_cons(trade_date='20241014')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name ts_name con_code trade_date
+ 0 000111.KP ๅŒ–ๅ€บๆฆ‚ๅฟต ไฟก่พพๅœฐไบง 600657.SH 20241014
+ 1 000111.KP ๅŒ–ๅ€บๆฆ‚ๅฟต ้“ถๅฎๅฑฑๆ–ฐ 002786.SZ 20241014
+ 2 000111.KP ๅŒ–ๅ€บๆฆ‚ๅฟต ๆ‘ฉๆฉ็”ตๆฐ” 002451.SZ 20241014
+ 3 000111.KP ๅŒ–ๅ€บๆฆ‚ๅฟต ๅ…‰ๅคงๅ˜‰ๅฎ 600622.SH 20241014
+ 4 000111.KP ๅŒ–ๅ€บๆฆ‚ๅฟต ๆตทๅพท่‚กไปฝ 000567.SZ 20241014
+ ... ... ... ... ... ...
+ 2995 000229.KP ็”ตๅŠ› ็‰นๅ˜็”ตๅทฅ 600089.SH 20241014
+ 2996 000229.KP ็”ตๅŠ› ไธญๅ›ฝ่ฅฟ็”ต 601179.SH 20241014
+ 2997 000229.KP ็”ตๅŠ› ้‡‘็›˜็ง‘ๆŠ€ 688676.SH 20241014
+ 2998 000229.KP ็”ตๅŠ› ๆ€ๆบ็”ตๆฐ” 002028.SZ 20241014
+ 2999 000229.KP ็”ตๅŠ› ๆ˜Ž้˜ณ็”ตๆฐ” 301291.SZ 20241014
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\234\272\346\236\204\344\272\244\346\230\223\345\215\225.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\234\272\346\236\204\344\272\244\346\230\223\345\215\225.md"
new file mode 100644
index 000000000..c73d260fc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\234\272\346\236\204\344\272\244\346\230\223\345\215\225.md"
@@ -0,0 +1,76 @@
+## ้พ™่™Žๆฆœๆœบๆž„ๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผštop_inst
+ๆ่ฟฐ๏ผš้พ™่™Žๆฆœๆœบๆž„ๆˆไบคๆ˜Ž็ป†
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๅކๅฒ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘5000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | TSไปฃ็ 
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TSไปฃ็ 
+exalter | str | Y | ่ฅไธš้ƒจๅ็งฐ
+side | str | Y | ไนฐๅ–็ฑปๅž‹0๏ผšไนฐๅ…ฅ้‡‘้ขๆœ€ๅคง็š„ๅ‰5ๅ๏ผŒ 1๏ผšๅ–ๅ‡บ้‡‘้ขๆœ€ๅคง็š„ๅ‰5ๅ
+buy | float | Y | ไนฐๅ…ฅ้ข๏ผˆๅ…ƒ๏ผ‰
+buy_rate | float | Y | ไนฐๅ…ฅๅ ๆ€ปๆˆไบคๆฏ”ไพ‹
+sell | float | Y | ๅ–ๅ‡บ้ข๏ผˆๅ…ƒ๏ผ‰
+sell_rate | float | Y | ๅ–ๅ‡บๅ ๆ€ปๆˆไบคๆฏ”ไพ‹
+net_buy | float | Y | ๅ‡€ๆˆไบค้ข๏ผˆๅ…ƒ๏ผ‰
+reason | str | Y | ไธŠๆฆœ็†็”ฑ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+ pro = ts.pro_api()
+
+ df = pro.top_inst(trade_date='20210525')
+
+ ๆˆ–่€…
+
+ df = pro.query('top_inst', trade_date='20210524', ts_code='000592.SZ', fields='trade_date,buy,sell,side,reason')
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date buy sell side reason
+ 0 20210524 19627524.05 25593683.67 0 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 1 20210524 9091252.00 18009704.00 0 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 2 20210524 35168640.99 13344062.12 0 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 3 20210524 18812912.60 12121352.00 0 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 4 20210524 1684986.00 12076417.00 0 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 5 20210524 37071259.81 3956982.00 1 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 6 20210524 35168640.99 13344062.12 1 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 7 20210524 21487772.44 84795.00 1 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 8 20210524 19627524.05 25593683.67 1 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 9 20210524 18812912.60 12121352.00 1 ๆถจๅน…ๅ็ฆปๅ€ผ่พพ7%็š„่ฏๅˆธ
+ 10 20210524 28720777.05 53009929.06 0 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 11 20210524 35504648.99 46382533.92 0 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 12 20210524 35344119.44 46305551.88 0 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 13 20210524 9091252.00 26481086.00 0 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 14 20210524 23609443.87 23791701.41 0 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 15 20210524 49699663.21 3956982.00 1 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 16 20210524 35504648.99 46382533.92 1 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 17 20210524 35344119.44 46305551.88 1 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 18 20210524 29607924.52 19374138.00 1 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
+ 19 20210524 28720777.05 53009929.06 1 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพ20%็š„่ฏๅˆธ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\257\217\346\227\245\347\273\237\350\256\241\345\215\225.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\257\217\346\227\245\347\273\237\350\256\241\345\215\225.md"
new file mode 100644
index 000000000..c90d94c09
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\346\211\223\346\235\277\344\270\223\351\242\230\346\225\260\346\215\256/\351\276\231\350\231\216\346\246\234\346\257\217\346\227\245\347\273\237\350\256\241\345\215\225.md"
@@ -0,0 +1,136 @@
+## ้พ™่™Žๆฆœๆฏๆ—ฅๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผštop_list
+ๆ่ฟฐ๏ผš้พ™่™Žๆฆœๆฏๆ—ฅไบคๆ˜“ๆ˜Ž็ป†
+ๆ•ฐๆฎๅކๅฒ๏ผš 2005ๅนด่‡ณไปŠ
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚่ฟ”ๅ›žๆœ€ๅคง10000่กŒๆ•ฐๆฎ๏ผŒๅฏ้€š่ฟ‡ๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๅކๅฒ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TSไปฃ็ 
+name | str | Y | ๅ็งฐ
+close | float | Y | ๆ”ถ็›˜ไปท
+pct_change | float | Y | ๆถจ่ทŒๅน…
+turnover_rate | float | Y | ๆขๆ‰‹็އ
+amount | float | Y | ๆ€ปๆˆไบค้ข
+l_sell | float | Y | ้พ™่™Žๆฆœๅ–ๅ‡บ้ข
+l_buy | float | Y | ้พ™่™Žๆฆœไนฐๅ…ฅ้ข
+l_amount | float | Y | ้พ™่™Žๆฆœๆˆไบค้ข
+net_amount | float | Y | ้พ™่™Žๆฆœๅ‡€ไนฐๅ…ฅ้ข
+net_rate | float | Y | ้พ™่™Žๆฆœๅ‡€ไนฐ้ขๅ ๆฏ”
+amount_rate | float | Y | ้พ™่™Žๆฆœๆˆไบค้ขๅ ๆฏ”
+float_values | float | Y | ๅฝ“ๆ—ฅๆต้€šๅธ‚ๅ€ผ
+reason | str | Y | ไธŠๆฆœ็†็”ฑ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆˆท**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.top_list(trade_date='20180928')
+
+ๆˆ–่€…
+
+df = pro.query('top_list', trade_date='20180928', ts_code='002219.SZ')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name close pct_change turnover_rate \
+ 0 20180928 000007.SZ ๅ…จๆ–ฐๅฅฝ 7.830 -10.0000 0.24
+ 1 20180928 000017.SZ ๆทฑไธญๅŽA 4.660 9.9057 7.44
+ 2 20180928 000505.SZ ไบฌ็ฒฎๆŽง่‚ก 5.750 9.9426 3.61
+ 3 20180928 000566.SZ ๆตทๅ—ๆตท่ฏ 6.120 10.0719 2.51
+ 4 20180928 000593.SZ ๅคง้€š็‡ƒๆฐ” 7.990 -8.0552 13.37
+ 5 20180928 000971.SZ ้ซ˜ๅ‡ๆŽง่‚ก 3.990 -9.9323 0.94
+ 6 20180928 002219.SZ ๆ’ๅบทๅŒป็–— 4.360 10.1010 7.11
+ 7 20180928 002219.SZ ๆ’ๅบทๅŒป็–— 4.360 10.1010 7.11
+ 8 20180928 002333.SZ ็ฝ—ๆ™ฎๆ–ฏ้‡‘ 9.500 -9.9526 0.24
+ 9 20180928 002445.SZ ไธญๅ—ๆ–‡ๅŒ– 3.140 -6.5476 11.66
+ 10 20180928 002813.SZ ่ทฏ็•…็ง‘ๆŠ€ 25.500 10.0086 18.48
+ 11 20180928 002892.SZ ็ง‘ๅŠ›ๅฐ” 29.970 2.8130 25.67
+ 12 20180928 002917.SZ ้‡‘ๅฅฅๅš 29.120 6.1611 28.33
+ 13 20180928 002923.SZ ๆถฆ้ƒฝ่‚กไปฝ 26.700 0.0000 25.56
+ 14 20180928 002930.SZ ๅฎๅทๆ™บๆ…ง 30.990 10.0106 12.22
+ 15 20180928 002931.SZ ้”‹้พ™่‚กไปฝ 35.310 10.0000 20.39
+
+ amount l_sell l_buy l_amount net_amount \
+ 0 13736952.0 1.373695e+07 9.071055e+06 2.280801e+07 -4.665897e+06
+ 1 101054192.0 7.329639e+06 2.836120e+07 3.569084e+07 2.103156e+07
+ 2 74555564.0 8.547019e+06 2.143432e+07 2.998134e+07 1.288731e+07
+ 3 165464131.0 2.555165e+07 2.192522e+07 4.747687e+07 -3.626437e+06
+ 4 307769383.0 4.250203e+07 1.169383e+07 5.419587e+07 -3.080820e+07
+ 5 22255422.0 5.998390e+06 3.371550e+06 9.369940e+06 -2.626840e+06
+ 6 550236631.0 4.180139e+07 3.942085e+07 8.122223e+07 -2.380538e+06
+ 7 800737935.0 6.724486e+07 5.763500e+07 1.248799e+08 -9.609865e+06
+ 8 10943050.0 1.094305e+07 2.862350e+06 1.380540e+07 -8.080700e+06
+ 9 477766761.0 3.059160e+07 7.482957e+07 1.054212e+08 4.423796e+07
+ 10 138607013.0 1.219620e+07 2.408786e+07 3.628407e+07 1.189166e+07
+ 11 199046728.0 5.973278e+07 3.066344e+07 9.039623e+07 -2.906934e+07
+ 12 229118953.0 1.285196e+07 1.632610e+07 2.917805e+07 3.474138e+06
+ 13 203570158.0 4.148259e+07 2.583138e+07 6.731397e+07 -1.565121e+07
+ 14 226882184.0 1.456010e+07 6.502630e+07 7.958640e+07 5.046621e+07
+ 15 151875439.0 2.016411e+07 2.434384e+07 4.450795e+07 4.179725e+06
+
+ net_rate amount_rate float_values \
+ 0 -33.97 166.03 2.419063e+09
+ 1 20.81 35.32 1.411891e+09
+ 2 17.29 40.21 2.072708e+09
+ 3 -2.19 28.69 6.751556e+09
+ 4 -10.01 17.61 2.235541e+09
+ 5 -11.80 42.10 2.359132e+09
+ 6 -0.43 14.76 8.132328e+09
+ 7 -1.20 15.60 8.132328e+09
+ 8 -73.84 126.16 4.607212e+09
+ 9 9.26 22.07 4.078696e+09
+ 10 8.58 26.18 7.650000e+08
+ 11 -14.60 45.41 7.892899e+08
+ 12 1.52 12.73 8.232224e+08
+ 13 -7.69 33.07 8.010000e+08
+ 14 22.24 35.08 1.885122e+09
+ 15 2.75 29.31 7.845882e+08
+
+ reason
+ 0 ๆ—ฅ่ทŒๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 1 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 2 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 3 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 4 ๆ—ฅ่ทŒๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 5 ๆ—ฅ่ทŒๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 6 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 7 ่ฟž็ปญไธ‰ไธชไบคๆ˜“ๆ—ฅๅ†…๏ผŒๆถจๅน…ๅ็ฆปๅ€ผ็ดฏ่ฎก่พพๅˆฐ20%็š„่ฏๅˆธ
+ 8 ๆ—ฅ่ทŒๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 9 ๆ—ฅ่ทŒๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 10 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 11 ๆ—ฅๆขๆ‰‹็އ่พพๅˆฐ20%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 12 ๆ—ฅๆขๆ‰‹็އ่พพๅˆฐ20%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 13 ๆ—ฅๆขๆ‰‹็އ่พพๅˆฐ20%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 14 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
+ 15 ๆ—ฅๆถจๅน…ๅ็ฆปๅ€ผ่พพๅˆฐ7%็š„ๅ‰ไบ”ๅช่ฏๅˆธ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/AH\350\202\241\346\257\224\344\273\267.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/AH\350\202\241\346\257\224\344\273\267.md"
new file mode 100644
index 000000000..db116ea4a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/AH\350\202\241\346\257\224\344\273\267.md"
@@ -0,0 +1,74 @@
+## AH่‚กๆฏ”ไปท
+----
+
+ๆŽฅๅฃ๏ผšstk_ah_comparison๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผšAH่‚กๆฏ”ไปทๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎไบคๆ˜“ๆ—ฅๆœŸ่Žทๅ–ๅކๅฒ
+ๆƒ้™๏ผš5000็งฏๅˆ†่ตท
+ๆ็คบ๏ผšๆฏๅคฉ็›˜ๅŽ17:00ๆ›ดๆ–ฐ๏ผŒๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž1000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–,ๆœฌๆŽฅๅฃๆ•ฐๆฎไปŽ20250812ๅผ€ๅง‹๏ผŒ็”ฑไบŽๅކๅฒไธๅฅฝ่กฅๅ……๏ผŒๅช่ƒฝ็ดฏ็งฏ
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+hk_code | str | N | ๆธฏ่‚ก่‚ก็ฅจไปฃ็ ๏ผˆxxxxx.HK)
+ts_code | str | N | A่‚ก็ฅจไปฃ็ (xxxxxx.SH/SZ/BJ)
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDDไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+hk_code | str | Y | ๆธฏ่‚ก่‚ก็ฅจไปฃ็ 
+ts_code | str | Y | A่‚ก่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+hk_name | str | Y | ๆธฏ่‚ก่‚ก็ฅจๅ็งฐ
+hk_pct_chg | float | Y | ๆธฏ่‚ก่‚ก็ฅจๆถจ่ทŒๅน…
+hk_close | float | Y | ๆธฏ่‚ก่‚ก็ฅจๆ”ถ็›˜ไปท
+name | str | Y | A่‚ก่‚ก็ฅจๅ็งฐ
+close | float | Y | A่‚ก่‚ก็ฅจๆ”ถ็›˜ไปท
+pct_chg | float | Y | A่‚ก่‚ก็ฅจๆถจ่ทŒๅน…
+ah_comparison | float | Y | ๆฏ”ไปท(A/H)
+ah_premium | float | Y | ๆบขไปท(A/H)%
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–20250812ๆ—ฅๆ‰€ๆœ‰็š„AH่‚กๆฏ”ไปทๆ•ฐๆฎ
+df = pro.stk_ah_comparison(trade_date='20250812')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ hk_code ts_code trade_date hk_name hk_pct_chg hk_close name close pct_chg ah_comparison ah_premium
+ 0 02068.HK 601068.SH 20250812 ไธญ้“ๅ›ฝ้™… 0.78 2.60 ไธญ้“ๅ›ฝ้™… 5.14 0.00 2.16 115.84
+ 1 03993.HK 603993.SH 20250812 ๆด›้˜ณ้’ผไธš 0.60 10.07 ๆด›้˜ณ้’ผไธš 9.85 0.31 1.07 6.80
+ 2 06066.HK 601066.SH 20250812 ไธญไฟกๅปบๆŠ•่ฏๅˆธ 1.77 13.25 ไธญไฟกๅปบๆŠ• 26.09 0.66 2.15 114.99
+ 3 06680.HK 300748.SZ 20250812 ้‡‘ๅŠ›ๆฐธ็ฃ -5.67 18.30 ้‡‘ๅŠ›ๆฐธ็ฃ 27.30 -3.05 1.63 62.88
+ 4 02333.HK 601633.SH 20250812 ้•ฟๅŸŽๆฑฝ่ฝฆ 3.55 14.60 ้•ฟๅŸŽๆฑฝ่ฝฆ 22.93 1.82 1.71 71.48
+ .. ... ... ... ... ... ... ... ... ... ... ...
+ 155 06196.HK 002936.SZ 20250812 ้ƒ‘ๅทž้“ถ่กŒ 1.41 1.44 ้ƒ‘ๅทž้“ถ่กŒ 2.10 0.48 1.59 59.22
+ 156 06818.HK 601818.SH 20250812 ไธญๅ›ฝๅ…‰ๅคง้“ถ่กŒ 1.61 3.78 ๅ…‰ๅคง้“ถ่กŒ 4.10 0.99 1.18 18.43
+ 157 06693.HK 600988.SH 20250812 ่ตคๅณฐ้ป„้‡‘ 1.76 25.44 ่ตคๅณฐ้ป„้‡‘ 24.58 0.24 1.05 5.49
+ 158 02196.HK 600196.SH 20250812 ๅคๆ˜ŸๅŒป่ฏ 2.22 19.77 ๅคๆ˜ŸๅŒป่ฏ 27.70 3.36 1.53 52.98
+ 159 01065.HK 600874.SH 20250812 ๅคฉๆดฅๅˆ›ไธš็Žฏไฟ่‚กไปฝ 2.24 4.10 ๅˆ›ไธš็Žฏไฟ 6.01 0.00 1.60 60.05
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..3aa3eb7a0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\346\230\216\347\273\206.md"
@@ -0,0 +1,63 @@
+## ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšccass_hold_detail
+ๆ่ฟฐ๏ผš่Žทๅ–ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆœบๆž„ๅธญไฝๆŒ่‚กๆ˜Ž็ป†๏ผŒๆ•ฐๆฎ่ฆ†็›–**ๅ…จๅކๅฒ**๏ผŒๆ นๆฎไบคๆ˜“ๆ‰€ๆŠซ้œฒๆ—ถ้—ด๏ผŒๅฝ“ๆ—ฅๆ•ฐๆฎๅœจไธ‹ไธ€ไบคๆ˜“ๆ—ฅๆ—ฉไธŠ9็‚นๅ‰ๅฎŒๆˆ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่ฟ”ๅ›ž6000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๅพช็Žฏๆˆ–ๅˆ†้กตๆๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ8000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚300ๆฌก
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็  (e.g. 605009.SH)
+hk_code | str | N | ๆธฏไบคๆ‰€ไปฃ็  ๏ผˆe.g. 95009๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃๅท
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+col_participant_id | str | Y | ๅ‚ไธŽ่€…็ผ–ๅท
+col_participant_name | str | Y | ๆœบๆž„ๅ็งฐ
+col_shareholding | str | Y | ๆŒ่‚ก้‡(่‚ก)
+col_shareholding_percent | str | Y | ๅ ๅทฒๅ‘่กŒ่‚กไปฝ/ๆƒ่ฏ/ๅ•ไฝ็™พๅˆ†ๆฏ”(%)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.ccass_hold_detail(ts_code='00960.HK', trade_date='20211101', fields='trade_date,ts_code,col_participant_id,col_participant_name,col_shareholding')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code col_participant_id col_participant_name col_shareholding
+ 0 20211101 00960.HK B01777 ๅคงๅ’Œ่ต„ๆœฌๅธ‚ๅœบ้ฆ™ๆธฏๆœ‰้™ๅ…ฌๅธ 3000
+ 1 20211101 00960.HK B01977 ไธญ่ดข่ฏๅˆธๆœ‰้™ๅ…ฌๅธ 3000
+ 2 20211101 00960.HK B02068 ๅ‹คไธฐ่ฏๅˆธๆœ‰้™ๅ…ฌๅธ 3000
+ 3 20211101 00960.HK B01413 ไบฌๅŽๅฑฑไธ€ๅ›ฝ้™…(้ฆ™ๆธฏ)ๆœ‰้™ๅ…ฌๅธ 2500
+ 4 20211101 00960.HK B02120 ๅˆฉๅผ—่Žซๅฐ”่ฏๅˆธๆœ‰้™ๅ…ฌๅธ 2500
+ .. ... ... ... ... ...
+ 164 20211101 00960.HK B01459 ๅฅ•ไธฐ่ฏๅˆธ(้ฆ™ๆธฏ)ๆœ‰้™ๅ…ฌๅธ 3000
+ 165 20211101 00960.HK B01508 ่ฅฟ่ฏ(้ฆ™ๆธฏ)่ฏๅˆธ็ป็บชๆœ‰้™ๅ…ฌๅธ 3000
+ 166 20211101 00960.HK B01511 ่พพๅˆฉ่ฏๅˆธๆœ‰้™ๅ…ฌๅธ 3000
+ 167 20211101 00960.HK B01657 ๆ—ฅ็››ๅ˜‰ๅฏŒ่ฏๅˆธๅ›ฝ้™…ๆœ‰้™ๅ…ฌๅธ 3000
+ 168 20211101 00960.HK B01712 ๅŽ็”Ÿ่ฏๅˆธๆœ‰้™ๅ…ฌๅธ 3000
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\347\273\237\350\256\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\347\273\237\350\256\241.md"
new file mode 100644
index 000000000..b7709958d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\344\270\255\345\244\256\347\273\223\347\256\227\347\263\273\347\273\237\346\214\201\350\202\241\347\273\237\350\256\241.md"
@@ -0,0 +1,60 @@
+## ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆฑ‡ๆ€ป
+----
+
+ๆŽฅๅฃ๏ผšccass_hold
+ๆ่ฟฐ๏ผš่Žทๅ–ไธญๅคฎ็ป“็ฎ—็ณป็ปŸๆŒ่‚กๆฑ‡ๆ€ปๆ•ฐๆฎ๏ผŒ่ฆ†็›–ๅ…จ้ƒจๅކๅฒๆ•ฐๆฎ๏ผŒๆ นๆฎไบคๆ˜“ๆ‰€ๆŠซ้œฒๆ—ถ้—ด๏ผŒๅฝ“ๆ—ฅๆ•ฐๆฎๅœจไธ‹ไธ€ไบคๆ˜“ๆ—ฅๆ—ฉไธŠ9็‚นๅ‰ๅฎŒๆˆๅ…ฅๅบ“
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆˆ–ๅˆ†้กตๆไพ›ๅ…จ้ƒจ
+็งฏๅˆ†๏ผš็”จๆˆท120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ็œ‹ๆ•ฐๆฎ๏ผŒ5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚300ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๅฏไปฅ่ฏทๆฑ‚500ๆฌกๆฏๅˆ†้’Ÿ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็  (e.g. 605009.SH)
+hk_code | str | N | ๆธฏไบคๆ‰€ไปฃ็  ๏ผˆe.g. 95009๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃๅท
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+shareholding | str | Y | ไบŽไธญๅคฎ็ป“็ฎ—็ณป็ปŸ็š„ๆŒ่‚ก้‡(่‚ก)<br>Shareholding in CCASS
+hold_nums | str | Y | ๅ‚ไธŽ่€…ๆ•ฐ็›ฎ๏ผˆไธช๏ผ‰
+hold_ratio | str | Y | ๅ ไบŽไธŠไบคๆ‰€ไธŠๅธ‚ๅŠไบคๆ˜“็š„A่‚กๆ€ปๆ•ฐ็š„็™พๅˆ†ๆฏ”๏ผˆ%๏ผ‰<br>% of the total number of A shares listed and traded on the SSE
+
+Note:
+1. The total number of A shares listed and traded on the SSE of the relevant SSE-listed company used for calculating the percentage of shareholding may not have taken into account any change in connection with or as a result of any corporate actions of the relevant company and hence, may not be up-to-date. The percentage of shareholding is for reference only.
+2. The total number of A shares listed and traded on the SSE of the relevant SSE-listed company used for calculating the percentage of shareholding may not be equal to the actual total number of issued shares of that company.
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.ccass_hold(ts_code='00960.HK')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name shareholding hold_nums hold_ratio
+ 0 20220519 00960.HK ้พๆน–้›†ๅœ˜ 4576163843 182 75.30
+ 1 20220518 00960.HK ้พๆน–้›†ๅœ˜ 4576043843 182 75.30
+ 2 20220517 00960.HK ้พๆน–้›†ๅœ˜ 4575955343 180 75.30
+ 3 20220516 00960.HK ้พๆน–้›†ๅœ˜ 4575905343 179 75.30
+ 4 20220513 00960.HK ้พๆน–้›†ๅœ˜ 4575905343 181 75.30
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\346\234\210\345\272\246\351\207\221\350\202\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\346\234\210\345\272\246\351\207\221\350\202\241.md"
new file mode 100644
index 000000000..33bdb2f3e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\346\234\210\345\272\246\351\207\221\350\202\241.md"
@@ -0,0 +1,49 @@
+## ๅˆธๅ•†ๆฏๆœˆ่่‚ก
+----
+
+ๆŽฅๅฃ๏ผšbroker_recommend
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆธๅ•†ๆœˆๅบฆ้‡‘่‚ก๏ผŒไธ€่ˆฌ1ๆ—ฅ~3ๆ—ฅๅ†…ๆ›ดๆ–ฐๅฝ“ๆœˆๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš็งฏๅˆ†่พพๅˆฐ6000ๅณๅฏ่ฐƒ็”จ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+month | str | Y | ๆœˆๅบฆ๏ผˆYYYYMM๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ๆœˆๅบฆ
+broker | str | Y | ๅˆธๅ•†
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจ็ฎ€็งฐ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๆŸฅ่ฏขๆœˆไปฝๅˆธๅ•†้‡‘่‚ก
+df = pro.broker_recommend(month='202106')
+
+```
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ month broker ts_code name
+ 0 202106 ไธœๅ…ด่ฏๅˆธ 000066.SZ ไธญๅ›ฝ้•ฟๅŸŽ
+ 1 202106 ไธœๅ…ด่ฏๅˆธ 000708.SZ ไธญไฟก็‰น้’ข
+ 2 202106 ไธœๅ…ด่ฏๅˆธ 002304.SZ ๆด‹ๆฒณ่‚กไปฝ
+ 3 202106 ไธœๅ…ด่ฏๅˆธ 003816.SZ ไธญๅ›ฝๅนฟๆ ธ
+ 4 202106 ไธœๅ…ด่ฏๅˆธ 300196.SZ ้•ฟๆตท่‚กไปฝ
+ .. ... ... ... ...
+ 263 202106 ้•ฟๅŸŽ่ฏๅˆธ 600096.SH ไบ‘ๅคฉๅŒ–
+ 264 202106 ้•ฟๅŸŽ่ฏๅˆธ 600809.SH ๅฑฑ่ฅฟๆฑพ้…’
+ 265 202106 ้•ฟๅŸŽ่ฏๅˆธ 603596.SH ไผฏ็‰นๅˆฉ
+ 266 202106 ้•ฟๅŸŽ่ฏๅˆธ 603885.SH ๅ‰็ฅฅ่ˆช็ฉบ
+ 267 202106 ้•ฟๅŸŽ่ฏๅˆธ 605068.SH ๆ˜Žๆ–ฐๆ—ญ่…พ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\347\233\210\345\210\251\351\242\204\346\265\213\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\347\233\210\345\210\251\351\242\204\346\265\213\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..801ae81e4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\345\210\270\345\225\206\347\233\210\345\210\251\351\242\204\346\265\213\346\225\260\346\215\256.md"
@@ -0,0 +1,80 @@
+## ๅ–ๆ–น็›ˆๅˆฉ้ข„ๆต‹ๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšreport_rc
+ๆ่ฟฐ๏ผš่Žทๅ–ๅˆธๅ•†๏ผˆๅ–ๆ–น๏ผ‰ๆฏๅคฉ็ ”ๆŠฅ็š„็›ˆๅˆฉ้ข„ๆต‹ๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไปŽ2010ๅนดๅผ€ๅง‹๏ผŒๆฏๆ™š19~22็‚นๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000ๆก๏ผŒๅฏๅˆ†้กตๅ’Œๅพช็Žฏๆๅ–ๆ‰€ๆœ‰ๆ•ฐๆฎ
+ๆƒ้™๏ผšๆœฌๆŽฅๅฃ120็งฏๅˆ†ๅฏไปฅ่ฏ•็”จ๏ผŒๆฏๅคฉ10ๆฌก่ฏทๆฑ‚๏ผŒๆญฃๅผๆƒ้™้œ€8000็งฏๅˆ†๏ผŒๆฏๅคฉๅฏ่ฏทๆฑ‚100000ๆฌก๏ผŒ10000็งฏๅˆ†ไปฅไธŠๆ— ๆ€ป้‡้™ๅˆถใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+report_date | str | N | ๆŠฅๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๆŠฅๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+report_date | str | Y | ็ ”ๆŠฅๆ—ฅๆœŸ
+report_title | str | Y | ๆŠฅๅ‘Šๆ ‡้ข˜
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹
+classify | str | Y | ๆŠฅๅ‘Šๅˆ†็ฑป
+org_name | str | Y | ๆœบๆž„ๅ็งฐ
+author_name | str | Y | ไฝœ่€…
+quarter | str | Y | ้ข„ๆต‹ๆŠฅๅ‘ŠๆœŸ
+op_rt | float | Y | ้ข„ๆต‹่ฅไธšๆ”ถๅ…ฅ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+op_pr | float | Y | ้ข„ๆต‹่ฅไธšๅˆฉๆถฆ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+tp | float | Y | ้ข„ๆต‹ๅˆฉๆถฆๆ€ป้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+np | float | Y | ้ข„ๆต‹ๅ‡€ๅˆฉๆถฆ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+eps | float | Y | ้ข„ๆต‹ๆฏ่‚กๆ”ถ็›Š๏ผˆๅ…ƒ๏ผ‰
+pe | float | Y | ้ข„ๆต‹ๅธ‚็›ˆ็އ
+rd | float | Y | ้ข„ๆต‹่‚กๆฏ็އ
+roe | float | Y | ้ข„ๆต‹ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+ev_ebitda | float | Y | ้ข„ๆต‹EV/EBITDA
+rating | str | Y | ๅ–ๆ–น่ฏ„็บง
+max_price | float | Y | ้ข„ๆต‹ๆœ€้ซ˜็›ฎๆ ‡ไปท
+min_price | float | Y | ้ข„ๆต‹ๆœ€ไฝŽ็›ฎๆ ‡ไปท
+imp_dg | str | N | ๆœบๆž„ๅ…ณๆณจๅบฆ
+create_time | datetime | N | TSๆ•ฐๆฎๆ›ดๆ–ฐๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.report_rc(ts_code='', report_date='20220429')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name report_date classify org_name quarter eps pe
+ 0 000733.SZ ๆŒฏๅŽ็ง‘ๆŠ€ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅฎ‰ไฟก่ฏๅˆธ 2024Q4 6.7800 14.2000
+ 1 000858.SZ ไบ”็ฒฎๆถฒ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅŽ่ฅฟ่ฏๅˆธ 2022Q4 6.9800 23.7700
+ 2 000858.SZ ไบ”็ฒฎๆถฒ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅŽ่ฅฟ่ฏๅˆธ 2023Q4 8.2200 20.1800
+ 3 000858.SZ ไบ”็ฒฎๆถฒ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅŽ่ฅฟ่ฏๅˆธ 2024Q4 9.5800 17.3100
+ 4 000858.SZ ไบ”็ฒฎๆถฒ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ไฟก่พพ่ฏๅˆธ 2022Q4 7.1100 23.3100
+ ... ... ... ... ... ... ... ... ...
+ 2552 688385.SH ๅคๆ—ฆๅพฎ็”ต 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๆ–นๆญฃ่ฏๅˆธ 2022Q4 0.9100 62.7000
+ 2553 688385.SH ๅคๆ—ฆๅพฎ็”ต 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๆ–นๆญฃ่ฏๅˆธ 2023Q4 1.1600 49.1900
+ 2554 688385.SH ๅคๆ—ฆๅพฎ็”ต 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๆ–นๆญฃ่ฏๅˆธ 2024Q4 1.5800 36.3200
+ 2555 000733.SZ ๆŒฏๅŽ็ง‘ๆŠ€ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅฎ‰ไฟก่ฏๅˆธ 2022Q4 4.3000 22.4000
+ 2556 000733.SZ ๆŒฏๅŽ็ง‘ๆŠ€ 20220429 ไธ€่ˆฌๆŠฅๅ‘Š ๅฎ‰ไฟก่ฏๅˆธ 2023Q4 5.4100 17.8000
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\234\272\346\236\204\350\260\203\347\240\224\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\234\272\346\236\204\350\260\203\347\240\224\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..c8056ce28
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\234\272\346\236\204\350\260\203\347\240\224\346\225\260\346\215\256.md"
@@ -0,0 +1,66 @@
+## ๆœบๆž„่ฐƒ็ ”่กจ
+----
+
+ๆŽฅๅฃ๏ผšstk_surv
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๆœบๆž„่ฐƒ็ ”่ฎฐๅฝ•ๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่Žทๅ–100ๆกๆ•ฐๆฎ๏ผŒๅฏๅพช็Žฏๆˆ–ๅˆ†้กตๆๅ–
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ5000็งฏๅˆ†ๅฏไฝฟ็”จ
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ่ฐƒ็ ”ๆ—ฅๆœŸ
+start_date | str | N | ่ฐƒ็ ”ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ่ฐƒ็ ”็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+surv_date | str | Y | ่ฐƒ็ ”ๆ—ฅๆœŸ
+fund_visitors | str | Y | ๆœบๆž„ๅ‚ไธŽไบบๅ‘˜
+rece_place | str | Y | ๆŽฅๅพ…ๅœฐ็‚น
+rece_mode | str | Y | ๆŽฅๅพ…ๆ–นๅผ
+rece_org | str | Y | ๆŽฅๅพ…็š„ๅ…ฌๅธ
+org_type | str | Y | ๆŽฅๅพ…ๅ…ฌๅธ็ฑปๅž‹
+comp_rece | str | Y | ไธŠๅธ‚ๅ…ฌๅธๆŽฅๅพ…ไบบๅ‘˜
+content | None | N | ่ฐƒ็ ”ๅ†…ๅฎน
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.stk_surv(ts_code='002223.SZ', trade_date='20211024', fields='ts_code,name,surv_date,fund_visitors,rece_place,rece_mode,rece_org')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code name surv_date fund_visitors rece_place rece_mode rece_org
+ 1 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ้ƒๆทผ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ๅฎ็›ˆๅŸบ้‡‘
+ 2 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ็งฆ็‘ถๅ‡ฝ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ่ด่Žฑๅพท่ต„ไบง็ฎก็†
+ 3 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ่ฐญ้ฃž ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ๅš่ฟœๅŸบ้‡‘
+ 4 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ๆŽๆ™— ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ๅˆ›้‡‘ๅˆไฟกๅŸบ้‡‘
+ .. ... ... ... ... ... ... ...
+ 77 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ๆŽ่™น่พพ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ไธญไฟกๅปบๆŠ•
+ 78 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ๆŽๆ˜Ž่”š ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ไธญ้“ถๅ›ฝ้™…
+ 79 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ็Ž‹ไฟŠ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ้‡ๅบ†็ฉฟ็ŸณๆŠ•่ต„
+ 80 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ๆŽๆ‰ฌ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ๆœฑ้›€ๅŸบ้‡‘
+ 81 002223.SZ ้ฑผ่ทƒๅŒป็–— 20211024 ๅพ็ƒจ็จ‹ ็”ต่ฏไผš่ฎฎ ็‰นๅฎšๅฏน่ฑก่ฐƒ็ ” ้€ๆต่ต„ไบง็ฎก็†
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\210\206\345\270\203.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\210\206\345\270\203.md"
new file mode 100644
index 000000000..aa0c9f0c7
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\210\206\345\270\203.md"
@@ -0,0 +1,64 @@
+## ๆฏๆ—ฅ็ญน็ ๅˆ†ๅธƒ
+----
+
+ๆŽฅๅฃ๏ผšcyq_chips
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๆฏๆ—ฅ็š„็ญน็ ๅˆ†ๅธƒๆƒ…ๅ†ต๏ผŒๆไพ›ๅ„ไปทไฝๅ ๆฏ”๏ผŒๆ•ฐๆฎไปŽ2018ๅนดๅผ€ๅง‹๏ผŒๆฏๅคฉ18~19็‚นไน‹้—ดๆ›ดๆ–ฐๅฝ“ๆ—ฅๆ•ฐๆฎ
+ๆฅๆบ๏ผšTushare็คพๅŒบ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง2000ๆก๏ผŒๅฏไปฅๆŒ‰่‚ก็ฅจไปฃ็ ๅ’Œๆ—ฅๆœŸๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅคฉ20000ๆฌก๏ผŒ10000็งฏๅˆ†ๆฏๅคฉ200000ๆฌก๏ผŒ15000็งฏๅˆ†ๆฏๅคฉไธ้™ๆ€ป้‡
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+price | float | Y | ๆˆๆœฌไปทๆ ผ
+percent | float | Y | ไปทๆ ผๅ ๆฏ”๏ผˆ%๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.cyq_chips(ts_code='600000.SH', start_date='20220101', end_date='20220429')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date price percent
+ 0 600000.SH 20220429 8.96 0.56
+ 1 600000.SH 20220429 8.94 0.40
+ 2 600000.SH 20220429 8.92 0.34
+ 3 600000.SH 20220429 8.90 0.32
+ 4 600000.SH 20220429 8.88 0.27
+ .. ... ... ... ...
+ 995 600000.SH 20220418 7.26 0.01
+ 996 600000.SH 20220418 7.24 0.01
+ 997 600000.SH 20220418 7.22 0.01
+ 998 600000.SH 20220418 7.20 0.01
+ 999 600000.SH 20220418 7.18 0.01
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\217\212\350\203\234\347\216\207.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\217\212\350\203\234\347\216\207.md"
new file mode 100644
index 000000000..8f6ac8696
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\257\217\346\227\245\347\255\271\347\240\201\345\217\212\350\203\234\347\216\207.md"
@@ -0,0 +1,70 @@
+## ๆฏๆ—ฅ็ญน็ ๅŠ่ƒœ็އ
+----
+
+ๆŽฅๅฃ๏ผšcyq_perf
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๆฏๆ—ฅ็ญน็ ๅนณๅ‡ๆˆๆœฌๅ’Œ่ƒœ็އๆƒ…ๅ†ต๏ผŒๆฏๅคฉ18~19็‚นๅทฆๅณๆ›ดๆ–ฐ๏ผŒๆ•ฐๆฎไปŽ2018ๅนดๅผ€ๅง‹
+ๆฅๆบ๏ผšTushare็คพๅŒบ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง5000ๆก๏ผŒๅฏไปฅๅˆ†้กตๆˆ–่€…ๅพช็Žฏๆๅ–
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅคฉ20000ๆฌก๏ผŒ10000็งฏๅˆ†ๆฏๅคฉ200000ๆฌก๏ผŒ15000็งฏๅˆ†ๆฏๅคฉไธ้™ๆ€ป้‡
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+his_low | float | Y | ๅކๅฒๆœ€ไฝŽไปท
+his_high | float | Y | ๅކๅฒๆœ€้ซ˜ไปท
+cost_5pct | float | Y | 5ๅˆ†ไฝๆˆๆœฌ
+cost_15pct | float | Y | 15ๅˆ†ไฝๆˆๆœฌ
+cost_50pct | float | Y | 50ๅˆ†ไฝๆˆๆœฌ
+cost_85pct | float | Y | 85ๅˆ†ไฝๆˆๆœฌ
+cost_95pct | float | Y | 95ๅˆ†ไฝๆˆๆœฌ
+weight_avg | float | Y | ๅŠ ๆƒๅนณๅ‡ๆˆๆœฌ
+winner_rate | float | Y | ่ƒœ็އ
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.cyq_perf(ts_code='600000.SH', start_date='20220101', end_date='20220429')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date his_low his_high cost_5pct cost_95pct weight_avg winner_rate
+ 0 600000.SH 20220429 0.72 12.16 8.18 11.34 9.76 3.52
+ 1 600000.SH 20220428 0.72 12.16 8.24 11.34 9.76 3.08
+ 2 600000.SH 20220427 0.72 12.16 8.30 11.34 9.76 1.71
+ 3 600000.SH 20220426 0.72 12.16 8.34 11.34 9.76 2.02
+ 4 600000.SH 20220425 0.72 12.16 8.36 11.34 9.77 1.44
+ .. ... ... ... ... ... ... ... ...
+ 72 600000.SH 20220110 0.72 12.16 8.60 11.36 9.89 7.62
+ 73 600000.SH 20220107 0.72 12.16 8.60 11.36 9.89 7.59
+ 74 600000.SH 20220106 0.72 12.16 8.60 11.36 9.89 3.92
+ 75 600000.SH 20220105 0.72 12.16 8.60 11.36 9.89 5.65
+ 76 600000.SH 20220104 0.72 12.16 8.60 11.36 9.89 3.93
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\346\214\201\350\202\241\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\346\214\201\350\202\241\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..083ea9388
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\346\214\201\350\202\241\346\230\216\347\273\206.md"
@@ -0,0 +1,90 @@
+ๆฒชๆทฑๆธฏ่‚ก้€šๆŒ่‚กๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผšhk_hold๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑๆธฏ่‚ก้€šๆŒ่‚กๆ˜Ž็ป†๏ผŒๆ•ฐๆฎๆฅๆบๆธฏไบคๆ‰€ใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคšๆๅ–3800ๆก่ฎฐๅฝ•๏ผŒๅฏๅพช็Žฏ่ฐƒๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ120็งฏๅˆ†ๅฏ่ฐƒๅ–่ฏ•็”จ๏ผŒ2000็งฏๅˆ†ๅฏๆญฃๅธธไฝฟ็”จ๏ผŒๅ•ไฝๅˆ†้’Ÿๆœ‰ๆตๆŽง๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆต้‡่ถŠๅคง๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+่ฏดๆ˜Ž๏ผšไบคๆ˜“ๆ‰€ไบŽไปŽ2024ๅนด8ๆœˆ20ๅผ€ๅง‹ๅœๆญขๅ‘ๅธƒๆ—ฅๅบฆๅŒ—ๅ‘่ต„้‡‘ๆ•ฐๆฎ๏ผŒๆ”นไธบๅญฃๅบฆๆŠซ้œฒ
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+code | str | N | ไบคๆ˜“ๆ‰€ไปฃ็ 
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+exchange | str | N | ็ฑปๅž‹๏ผšSHๆฒช่‚ก้€š๏ผˆๅŒ—ๅ‘๏ผ‰SZๆทฑ่‚ก้€š๏ผˆๅŒ—ๅ‘๏ผ‰HKๆธฏ่‚ก้€š๏ผˆๅ—ๅ‘ๆŒ่‚ก๏ผ‰
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+code | str | Y | ๅŽŸๅง‹ไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TSไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+vol | int | Y | ๆŒ่‚กๆ•ฐ้‡(่‚ก)
+ratio | float | Y | ๆŒ่‚กๅ ๆฏ”๏ผˆ%๏ผ‰๏ผŒๅ ๅทฒๅ‘่กŒ่‚กไปฝ็™พๅˆ†ๆฏ”
+exchange | str | Y | ็ฑปๅž‹๏ผšSHๆฒช่‚ก้€šSZๆทฑ่‚ก้€šHKๆธฏ่‚ก้€š
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจๆŒ่‚ก
+df = pro.hk_hold(trade_date='20190625')
+
+#่Žทๅ–ๅ•ๆ—ฅไบคๆ˜“ๆ‰€ๆ‰€ๆœ‰ๆŒ่‚ก
+df = pro.hk_hold(trade_date='20190625', exchange='SH')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ code trade_date ts_code name vol ratio exchange
+ 0 90000 20190625 600000.SH ๆตฆๅ‘้“ถ่กŒ 443245164 1.57 SH
+ 1 90004 20190625 600004.SH ็™ฝไบ‘ๆœบๅœบ 155708039 7.52 SH
+ 2 90006 20190625 600006.SH ไธœ้ฃŽๆฑฝ่ฝฆ 601353 0.03 SH
+ 3 90007 20190625 600007.SH ไธญๅ›ฝๅ›ฝ่ดธ 17604694 1.74 SH
+ 4 90008 20190625 600008.SH ้ฆ–ๅˆ›่‚กไปฝ 49944370 1.03 SH
+ 5 90009 20190625 600009.SH ไธŠๆตทๆœบๅœบ 288832383 26.41 SH
+ 6 90010 20190625 600010.SH ๅŒ…้’ข่‚กไปฝ 324923948 1.02 SH
+ 7 90011 20190625 600011.SH ๅŽ่ƒฝๅ›ฝ้™… 58734656 0.55 SH
+ 8 90012 20190625 600012.SH ็š–้€š้ซ˜้€Ÿ 24047942 2.06 SH
+ 9 90015 20190625 600015.SH ๅŽๅค้“ถ่กŒ 121539342 0.94 SH
+ 10 90016 20190625 600016.SH ๆฐ‘็”Ÿ้“ถ่กŒ 541638767 1.52 SH
+ 11 90017 20190625 600017.SH ๆ—ฅ็…งๆธฏ 32949908 1.07 SH
+ 12 90018 20190625 600018.SH ไธŠๆธฏ้›†ๅ›ข 74011645 0.31 SH
+ 13 90019 20190625 600019.SH ๅฎ้’ข่‚กไปฝ 511044106 2.31 SH
+ 14 90020 20190625 600020.SH ไธญๅŽŸ้ซ˜้€Ÿ 12439016 0.55 SH
+ 15 90021 20190625 600021.SH ไธŠๆตท็”ตๅŠ› 2882596 0.13 SH
+ 16 90023 20190625 600023.SH ๆต™่ƒฝ็”ตๅŠ› 38130882 0.28 SH
+ 17 90025 20190625 600025.SH ๅŽ่ƒฝๆฐด็”ต 280356836 3.14 SH
+ 18 90026 20190625 600026.SH ไธญ่ฟœๆตท่ƒฝ 81911786 2.99 SH
+ 19 90027 20190625 600027.SH ๅŽ็”ตๅ›ฝ้™… 65877064 0.94 SH
+ 20 90028 20190625 600028.SH ไธญๅ›ฝ็ŸณๅŒ– 709509578 0.74 SH
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\347\245\236\345\245\207\344\271\235\350\275\254\346\214\207\346\240\207.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\347\245\236\345\245\207\344\271\235\350\275\254\346\214\207\346\240\207.md"
new file mode 100644
index 000000000..e7bea4d49
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\347\245\236\345\245\207\344\271\235\350\275\254\346\214\207\346\240\207.md"
@@ -0,0 +1,73 @@
+## ็ฅžๅฅ‡ไน่ฝฌๆŒ‡ๆ ‡
+----
+
+ๆŽฅๅฃ๏ผšstk_nineturn๏ผˆ็”ฑไบŽๆถ‰ๅŠๅˆ†้’Ÿๆ•ฐๆฎๆฏๅคฉ21็‚นๆ›ดๆ–ฐ๏ผ‰
+ๆ่ฟฐ๏ผš็ฅžๅฅ‡ไน่ฝฌ๏ผˆๅˆ็งฐโ€œไน่ฝฌๅบๅˆ—โ€๏ผ‰ๆ˜ฏไธ€็งๅŸบไบŽๆŠ€ๆœฏๅˆ†ๆž็š„่‚ก็ฅจ่ถ‹ๅŠฟๅ่ฝฌๆŒ‡ๆ ‡๏ผŒๅ…ถๆ€ๆƒณๆฅๆบไบŽๆŠ€ๆœฏๅˆ†ๆžๅคงๅธˆๆฑคๅง†ยท่ฟช้ฉฌๅ…‹๏ผˆTom DeMark๏ผ‰็š„TDๅบๅˆ—ใ€‚่ฏฅๆŒ‡ๆ ‡็š„ๆ ธๅฟƒๅŠŸ่ƒฝๆ˜ฏ้€š่ฟ‡่ฏ†ๅˆซ่‚กไปทๅœจไธŠๆถจๆˆ–ไธ‹่ทŒ่ฟ‡็จ‹ไธญ่ฟž็ปญ9ๅคฉ็š„็‰นๅฎš่ตฐๅŠฟ๏ผŒๆฅๅˆคๆ–ญ่‚กไปท็š„ๆฝœๅœจๅ่ฝฌ็‚น๏ผŒไปŽ่€ŒๅธฎๅŠฉๆŠ•่ต„่€…ๆ้ซ˜ๆŠ„ๅบ•ๅ’Œ้€ƒ้กถ็š„ๆˆๅŠŸ็އ๏ผŒๆ—ฅ็บฟ็บงๅˆซ้…ๅˆ60min็š„ไน่ฝฌๆ•ˆๆžœๆ›ดๅฅฝ๏ผŒๆ•ฐๆฎไปŽ20230101ๅผ€ๅง‹ใ€‚
+้™้‡๏ผšๅ•ๆฌกๆๅ–ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๅ’Œๆ—ฅๆœŸๅพช็Žฏ่Žทๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+ๆƒ้™๏ผš่พพๅˆฐ6000็งฏๅˆ†ๅฏไปฅ่ฐƒ็”จ
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆ ผๅผ๏ผšYYYY-MM-DD HH:MM:SS)
+freq | str | N | ้ข‘็އ(ๆ—ฅdaily)
+start_date | str | N | ๅผ€ๅง‹ๆ—ถ้—ด
+end_date | str | N | ็ป“ๆŸๆ—ถ้—ด
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | datetime | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އ(ๆ—ฅdaily)
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+vol | float | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้ข
+up_count | float | Y | ไธŠไน่ฝฌ่ฎกๆ•ฐ
+down_count | float | Y | ไธ‹ไน่ฝฌ่ฎกๆ•ฐ
+nine_up_turn | str | Y | ๆ˜ฏๅฆไธŠไน่ฝฌ)+9่กจ็คบไธŠไน่ฝฌ
+nine_down_turn | str | Y | ๆ˜ฏๅฆไธ‹ไน่ฝฌ-9่กจ็คบไธ‹ไน่ฝฌ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df=pro.stk_nineturn(ts_code='000001.SZ',freq='daily',fields='ts_code,trade_date,freq,up_count,down_count,nine_up_turn,nine_down_turn')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date freq up_count down_count nine_up_turn nine_down_turn
+ 0 000001.SZ 2025-01-17 00:00:00 daily 3.0 0.0 None None
+ 1 000001.SZ 2025-01-16 00:00:00 daily 2.0 0.0 None None
+ 2 000001.SZ 2025-01-15 00:00:00 daily 1.0 0.0 None None
+ 3 000001.SZ 2025-01-14 00:00:00 daily 0.0 3.0 None None
+ 4 000001.SZ 2025-01-13 00:00:00 daily 0.0 2.0 None None
+ .. ... ... ... ... ... ... ...
+ 491 000001.SZ 2023-01-09 00:00:00 daily 1.0 0.0 None None
+ 492 000001.SZ 2023-01-06 00:00:00 daily 0.0 0.0 None None
+ 493 000001.SZ 2023-01-05 00:00:00 daily 0.0 0.0 None None
+ 494 000001.SZ 2023-01-04 00:00:00 daily 0.0 0.0 None None
+ 495 000001.SZ 2023-01-03 00:00:00 daily 0.0 0.0 None None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..05f651ff2
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\345\274\200\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md"
@@ -0,0 +1,66 @@
+## ่‚ก็ฅจๅผ€็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšstk_auction_o
+ๆ่ฟฐ๏ผš่‚ก็ฅจๅผ€็›˜9:30้›†ๅˆ็ซžไปทๆ•ฐๆฎ๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผšๅผ€้€šไบ†่‚ก็ฅจๅˆ†้’Ÿๆƒ้™ๅŽๅฏ่Žทๅพ—ๆœฌๆŽฅๅฃๆƒ้™๏ผŒๅ…ทไฝ“ๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDD)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ(YYYYMMDD)
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๆ”ถ็›˜ไปท
+open | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๅผ€็›˜ไปท
+high | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๆœ€้ซ˜ไปท
+low | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๆœ€ไฝŽไปท
+vol | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๆˆไบค้‡
+amount | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๆˆไบค้ข
+vwap | float | Y | ๅผ€็›˜้›†ๅˆ็ซžไปทๅ‡ไปท
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df=pro.stk_auction_o(trade_date='20241122')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open ... low vol amount vwap
+ 0 600502.SH 20241122 5.00 5.00 ... 5.00 45400.0 227000.0 5.000
+ 1 600662.SH 20241122 5.28 5.28 ... 5.28 26800.0 141504.0 5.280
+ 2 601118.SH 20241122 5.63 5.63 ... 5.63 152200.0 856886.0 5.630
+ 3 600938.SH 20241122 26.54 26.54 ... 26.54 340400.0 9034216.0 26.540
+ 4 601900.SH 20241122 15.09 15.09 ... 15.09 287600.0 4339884.0 15.090
+ ... ... ... ... ... ... ... ... ... ...
+ 5719 300504.SZ 20241122 16.80 16.97 ... 16.80 19000.0 320954.0 16.892
+ 5720 300535.SZ 20241122 15.26 15.29 ... 15.26 22800.0 348343.0 15.278
+ 5721 300588.SZ 20241122 15.58 15.60 ... 15.45 117400.0 1830260.0 15.590
+ 5722 300592.SZ 20241122 14.27 14.34 ... 14.23 502600.0 7194406.0 14.314
+ 5723 300657.SZ 20241122 21.73 21.88 ... 21.71 545100.0 11902781.0 21.836
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
new file mode 100644
index 000000000..6d42e18f9
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\212\200\346\234\257\351\235\242\345\233\240\345\255\220(\344\270\223\344\270\232\347\211\210).md"
@@ -0,0 +1,284 @@
+## ่‚ก็ฅจๆŠ€ๆœฏ้ขๅ› ๅญ(ไธ“ไธš็‰ˆ)
+----
+
+ๆŽฅๅฃ๏ผšstk_factor_pro
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจๆฏๆ—ฅๆŠ€ๆœฏ้ขๅ› ๅญๆ•ฐๆฎ๏ผŒ็”จไบŽ่ทŸ่ธช่‚ก็ฅจๅฝ“ๅ‰่ตฐๅŠฟๆƒ…ๅ†ต๏ผŒๆ•ฐๆฎ็”ฑTushare็คพๅŒบ่‡ชไบง๏ผŒ่ฆ†็›–ๅ…จๅކๅฒ๏ผ›่พ“ๅ‡บๅ‚ๆ•ฐ_bfq่กจ็คบไธๅคๆƒ๏ผŒ_qfq่กจ็คบๅ‰ๅคๆƒ _hfq่กจ็คบๅŽๅคๆƒ๏ผŒๆ่ฟฐไธญ่ฏดๆ˜Žไบ†ๅ› ๅญ็š„้ป˜่ฎคไผ ๅ‚๏ผŒๅฆ‚้œ€่ฆ็‰นๆฎŠๅ‚ๆ•ฐๆˆ–่€…ๆ›ดๅคšๅ› ๅญๅฏไปฅ่”็ณป็ฎก็†ๅ‘˜่ฏ„ไผฐ
+้™้‡๏ผšๅ•ๆฌก่ฐƒๅ–ๆœ€ๅคš่ฟ”ๅ›ž10000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡ๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ
+็งฏๅˆ†๏ผš5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏไปฅ่ฏทๆฑ‚30ๆฌก๏ผŒ8000็งฏๅˆ†ไปฅไธŠๆฏๅˆ†้’Ÿ500ๆฌก๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšyyyymmdd๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | Y | ๅผ€็›˜ไปท
+open_hfq | float | Y | ๅผ€็›˜ไปท๏ผˆๅŽๅคๆƒ๏ผ‰
+open_qfq | float | Y | ๅผ€็›˜ไปท๏ผˆๅ‰ๅคๆƒ๏ผ‰
+high | float | Y | ๆœ€้ซ˜ไปท
+high_hfq | float | Y | ๆœ€้ซ˜ไปท๏ผˆๅŽๅคๆƒ๏ผ‰
+high_qfq | float | Y | ๆœ€้ซ˜ไปท๏ผˆๅ‰ๅคๆƒ๏ผ‰
+low | float | Y | ๆœ€ไฝŽไปท
+low_hfq | float | Y | ๆœ€ไฝŽไปท๏ผˆๅŽๅคๆƒ๏ผ‰
+low_qfq | float | Y | ๆœ€ไฝŽไปท๏ผˆๅ‰ๅคๆƒ๏ผ‰
+close | float | Y | ๆ”ถ็›˜ไปท
+close_hfq | float | Y | ๆ”ถ็›˜ไปท๏ผˆๅŽๅคๆƒ๏ผ‰
+close_qfq | float | Y | ๆ”ถ็›˜ไปท๏ผˆๅ‰ๅคๆƒ๏ผ‰
+pre_close | float | Y | ๆ˜จๆ”ถไปท(ๅ‰ๅคๆƒ)--ไธบdailyๆŽฅๅฃ็š„pre_close,ไปฅๅฝ“ๆ—ถๅคๆƒๅ› ๅญ่ฎก็ฎ—ๅ€ผ่ทŸๅ‰ไธ€ๆ—ฅclose_qfqๅฏนไธไธŠ๏ผŒๅฏไธ็”จ
+change | float | Y | ๆถจ่ทŒ้ข
+pct_chg | float | Y | ๆถจ่ทŒๅน… ๏ผˆ้™คๆƒๅŽ็š„ๆถจ่ทŒๅน…๏ผ‰
+vol | float | Y | ๆˆไบค้‡ ๏ผˆๆ‰‹๏ผ‰
+amount | float | Y | ๆˆไบค้ข ๏ผˆๅƒๅ…ƒ๏ผ‰
+turnover_rate | float | Y | ๆขๆ‰‹็އ๏ผˆ%๏ผ‰
+turnover_rate_f | float | Y | ๆขๆ‰‹็އ๏ผˆ่‡ช็”ฑๆต้€š่‚ก๏ผ‰
+volume_ratio | float | Y | ้‡ๆฏ”
+pe | float | Y | ๅธ‚็›ˆ็އ๏ผˆๆ€ปๅธ‚ๅ€ผ/ๅ‡€ๅˆฉๆถฆ๏ผŒ ไบๆŸ็š„PEไธบ็ฉบ๏ผ‰
+pe_ttm | float | Y | ๅธ‚็›ˆ็އ๏ผˆTTM๏ผŒไบๆŸ็š„PEไธบ็ฉบ๏ผ‰
+pb | float | Y | ๅธ‚ๅ‡€็އ๏ผˆๆ€ปๅธ‚ๅ€ผ/ๅ‡€่ต„ไบง๏ผ‰
+ps | float | Y | ๅธ‚้”€็އ
+ps_ttm | float | Y | ๅธ‚้”€็އ๏ผˆTTM๏ผ‰
+dv_ratio | float | Y | ่‚กๆฏ็އ ๏ผˆ%๏ผ‰
+dv_ttm | float | Y | ่‚กๆฏ็އ๏ผˆTTM๏ผ‰๏ผˆ%๏ผ‰
+total_share | float | Y | ๆ€ป่‚กๆœฌ ๏ผˆไธ‡่‚ก๏ผ‰
+float_share | float | Y | ๆต้€š่‚กๆœฌ ๏ผˆไธ‡่‚ก๏ผ‰
+free_share | float | Y | ่‡ช็”ฑๆต้€š่‚กๆœฌ ๏ผˆไธ‡๏ผ‰
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+circ_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+adj_factor | float | Y | ๅคๆƒๅ› ๅญ
+asi_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asi_hfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asi_qfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_bfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_hfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+asit_qfq | float | Y | ๆŒฏๅŠจๅ‡้™ๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26, M2=10
+atr_bfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+atr_hfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+atr_qfq | float | Y | ็œŸๅฎžๆณขๅŠจNๆ—ฅๅนณๅ‡ๅ€ผ-CLOSE, HIGH, LOW, N=20
+bbi_bfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=20
+bbi_hfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=21
+bbi_qfq | float | Y | BBIๅคš็ฉบๆŒ‡ๆ ‡-CLOSE, M1=3, M2=6, M3=12, M4=22
+bias1_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias1_hfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias1_qfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_hfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias2_qfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_bfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_hfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+bias3_qfq | float | Y | BIASไน–็ฆป็އ-CLOSE, L1=6, L2=12, L3=24
+boll_lower_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_lower_hfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_lower_qfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_hfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_mid_qfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_bfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_hfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+boll_upper_qfq | float | Y | BOLLๆŒ‡ๆ ‡๏ผŒๅธƒๆž—ๅธฆ-CLOSE, N=20, P=2
+brar_ar_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_ar_hfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_ar_qfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_bfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_hfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+brar_br_qfq | float | Y | BRARๆƒ…็ปชๆŒ‡ๆ ‡-OPEN, CLOSE, HIGH, LOW, M1=26
+cci_bfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cci_hfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cci_qfq | float | Y | ้กบๅŠฟๆŒ‡ๆ ‡ๅˆๅซCCIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=14
+cr_bfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+cr_hfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+cr_qfq | float | Y | CRไปทๆ ผๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=20
+dfma_dif_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_dif_hfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_dif_qfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_bfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_hfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dfma_difma_qfq | float | Y | ๅนณ่กŒ็บฟๅทฎๆŒ‡ๆ ‡-CLOSE, N1=10, N2=50, M=10
+dmi_adx_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adx_hfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adx_qfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_hfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_adxr_qfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_hfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_mdi_qfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_bfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_hfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+dmi_pdi_qfq | float | Y | ๅŠจๅ‘ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, M1=14, M2=6
+downdays | float | Y | ่ฟž่ทŒๅคฉๆ•ฐ
+updays | float | Y | ่ฟžๆถจๅคฉๆ•ฐ
+dpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+dpo_hfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+dpo_qfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_bfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_hfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+madpo_qfq | float | Y | ๅŒบ้—ด้œ‡่ก็บฟ-CLOSE, M1=20, M2=10, M3=6
+ema_bfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_bfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_bfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_bfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_bfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_bfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_bfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+ema_hfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_hfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_hfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_hfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_hfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_hfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_hfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+ema_qfq_10 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=10
+ema_qfq_20 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=20
+ema_qfq_250 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=250
+ema_qfq_30 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=30
+ema_qfq_5 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=5
+ema_qfq_60 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=60
+ema_qfq_90 | float | Y | ๆŒ‡ๆ•ฐ็งปๅŠจๅนณๅ‡-N=90
+emv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+emv_hfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+emv_qfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_bfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_hfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+maemv_qfq | float | Y | ็ฎ€ๆ˜“ๆณขๅŠจๆŒ‡ๆ ‡-HIGH, LOW, VOL, N=14, M=9
+expma_12_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_12_hfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_12_qfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_bfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_hfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+expma_50_qfq | float | Y | EMAๆŒ‡ๆ•ฐๅนณๅ‡ๆ•ฐๆŒ‡ๆ ‡-CLOSE, N1=12, N2=50
+kdj_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_hfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_qfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_hfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_d_qfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_bfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_hfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+kdj_k_qfq | float | Y | KDJๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=9, M1=3, M2=3
+ktn_down_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_down_hfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_down_qfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_hfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_mid_qfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_bfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_hfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+ktn_upper_qfq | float | Y | ่‚ฏ็‰น็บณไบคๆ˜“้€š้“, N้€‰20ๆ—ฅ๏ผŒATR้€‰10ๆ—ฅ-CLOSE, HIGH, LOW, N=20, M=10
+lowdays | float | Y | LOWRANGE(LOW)่กจ็คบๅฝ“ๅ‰ๆœ€ไฝŽไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€ไฝŽไปท็š„ๆœ€ๅฐๅ€ผ
+topdays | float | Y | TOPRANGE(HIGH)่กจ็คบๅฝ“ๅ‰ๆœ€้ซ˜ไปทๆ˜ฏ่ฟ‘ๅคšๅฐ‘ๅ‘จๆœŸๅ†…ๆœ€้ซ˜ไปท็š„ๆœ€ๅคงๅ€ผ
+ma_bfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_bfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_bfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_bfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_bfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_bfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_bfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+ma_hfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_hfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_hfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_hfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_hfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_hfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_hfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+ma_qfq_10 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=10
+ma_qfq_20 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=20
+ma_qfq_250 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=250
+ma_qfq_30 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=30
+ma_qfq_5 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=5
+ma_qfq_60 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=60
+ma_qfq_90 | float | Y | ็ฎ€ๅ•็งปๅŠจๅนณๅ‡-N=90
+macd_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_hfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_qfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_hfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dea_qfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_bfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_hfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+macd_dif_qfq | float | Y | MACDๆŒ‡ๆ ‡-CLOSE, SHORT=12, LONG=26, M=9
+mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mass_hfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mass_qfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_bfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_hfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+ma_mass_qfq | float | Y | ๆข…ๆ–ฏ็บฟ-HIGH, LOW, N1=9, N2=25, M=6
+mfi_bfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mfi_hfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mfi_qfq | float | Y | MFIๆŒ‡ๆ ‡ๆ˜ฏๆˆไบค้‡็š„RSIๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, VOL, N=14
+mtm_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtm_hfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtm_qfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_bfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_hfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+mtmma_qfq | float | Y | ๅŠจ้‡ๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+obv_bfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+obv_hfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+obv_qfq | float | Y | ่ƒฝ้‡ๆฝฎๆŒ‡ๆ ‡-CLOSE, VOL
+psy_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psy_hfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psy_qfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_bfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_hfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+psyma_qfq | float | Y | ๆŠ•่ต„่€…ๅฏน่‚กๅธ‚ๆถจ่ทŒไบง็”Ÿๅฟƒ็†ๆณขๅŠจ็š„ๆƒ…็ปชๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_hfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+roc_qfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_bfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_hfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+maroc_qfq | float | Y | ๅ˜ๅŠจ็އๆŒ‡ๆ ‡-CLOSE, N=12, M=6
+rsi_bfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_bfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_bfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+rsi_hfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_hfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_hfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+rsi_qfq_12 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=12
+rsi_qfq_24 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=24
+rsi_qfq_6 | float | Y | RSIๆŒ‡ๆ ‡-CLOSE, N=6
+taq_down_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_down_hfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_down_qfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_hfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_mid_qfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_bfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_hfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+taq_up_qfq | float | Y | ๅ”ๅฎ‰ๅฅ‡้€š้“(ๆตท้พŸ)ไบคๆ˜“ๆŒ‡ๆ ‡-HIGH, LOW, 20
+trix_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trix_hfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trix_qfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_bfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_hfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+trma_qfq | float | Y | ไธ‰้‡ๆŒ‡ๆ•ฐๅนณๆป‘ๅนณๅ‡็บฟ-CLOSE, M1=12, M2=20
+vr_bfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+vr_hfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+vr_qfq | float | Y | VRๅฎน้‡ๆฏ”็އ-CLOSE, VOL, M1=26
+wr_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr_hfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr_qfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_bfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_hfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+wr1_qfq | float | Y | W&R ๅจๅป‰ๆŒ‡ๆ ‡-CLOSE, HIGH, LOW, N=10, N1=6
+xsii_td1_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td1_hfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td1_qfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_hfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td2_qfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_hfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td3_qfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_bfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_hfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+xsii_td4_qfq | float | Y | ่–›ๆ–ฏ้€š้“II-CLOSE, HIGH, LOW, N=102, M=7
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\224\266\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\224\266\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..858fad18b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\347\211\271\350\211\262\346\225\260\346\215\256/\350\202\241\347\245\250\346\224\266\347\233\230\351\233\206\345\220\210\347\253\236\344\273\267\346\225\260\346\215\256.md"
@@ -0,0 +1,67 @@
+## ่‚ก็ฅจๆ”ถ็›˜้›†ๅˆ็ซžไปทๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšstk_auction_c
+ๆ่ฟฐ๏ผš่‚ก็ฅจๆ”ถ็›˜15:00้›†ๅˆ็ซžไปทๆ•ฐๆฎ๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž10000่กŒๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๅพช็Žฏ
+ๆƒ้™๏ผšๅผ€้€šไบ†่‚ก็ฅจๅˆ†้’Ÿๆƒ้™ๅŽๅฏ่Žทๅพ—ๆœฌๆŽฅๅฃๆƒ้™๏ผŒๅ…ทไฝ“ๅ‚่€ƒ[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDD)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ(YYYYMMDD)
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๆ”ถ็›˜ไปท
+open | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๅผ€็›˜ไปท
+high | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๆœ€้ซ˜ไปท
+low | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๆœ€ไฝŽไปท
+vol | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๆˆไบค้‡
+amount | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๆˆไบค้ข
+vwap | float | Y | ๆ”ถ็›˜้›†ๅˆ็ซžไปทๅ‡ไปท
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df=pro.stk_auction_c(trade_date='20241122')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close ... vol amount vwap
+ 0 603102.SH 20241122 36.16 ... 557900.0 20347168.0 36.471
+ 1 600696.SH 20241122 13.91 ... 3600489.0 50550184.0 14.040
+ 2 600769.SH 20241122 12.75 ... 7940892.0 102510940.0 12.909
+ 3 601900.SH 20241122 14.91 ... 6348300.0 95537632.0 15.049
+ 4 600502.SH 20241122 4.88 ... 9718900.0 47690748.0 4.907
+ ... ... ... ... ... ... ... ...
+ 5719 300504.SZ 20241122 16.34 ... 2037000.0 33653784.0 16.521
+ 5720 300535.SZ 20241122 14.45 ... 638735.0 9340342.0 14.623
+ 5721 300588.SZ 20241122 15.39 ... 3232050.0 50313180.0 15.567
+ 5722 300592.SZ 20241122 14.43 ... 9910880.0 143872140.0 14.517
+ 5723 300657.SZ 20241122 21.13 ... 10916225.0 235013090.0 21.529
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..fb94ecc55
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\345\210\206\351\222\237.md"
@@ -0,0 +1,85 @@
+## ่‚ก็ฅจๅކๅฒๅˆ†้’Ÿ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšstk_mins
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ1min/5min/15min/30min/60min่กŒๆƒ…๏ผŒๆไพ›Python SDKๅ’Œ http Restful APIไธค็งๆ–นๅผ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง8000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๅ’Œๆ—ถ้—ดๅพช็Žฏ่Žทๅ–๏ผŒๆœฌๆŽฅๅฃๅฏไปฅๆไพ›่ถ…่ฟ‡10ๅนดๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+ๆƒ้™๏ผš้œ€ๅ•็‹ฌๅผ€ๆƒ้™๏ผŒๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u> ๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๅˆ†้’Ÿๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผŒe.g. 600000.SH
+freq | str | Y | ๅˆ†้’Ÿ้ข‘ๅบฆ๏ผˆ1min/5min/15min/30min/60min๏ผ‰
+start_date | datetime | N | ๅผ€ๅง‹ๆ—ฅๆœŸ ๆ ผๅผ๏ผš2023-08-25 09:00:00
+end_date | datetime | N | ็ป“ๆŸๆ—ถ้—ด ๆ ผๅผ๏ผš2023-08-25 19:00:00
+
+<br>
+<br>
+
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1min | 1ๅˆ†้’Ÿ
+5min | 5ๅˆ†้’Ÿ
+15min | 15ๅˆ†้’Ÿ
+30min | 30ๅˆ†้’Ÿ
+60min | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_time | str | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | int | Y | ๆˆไบค้‡(่‚ก)
+amount | float | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆตฆๅ‘้“ถ่กŒ60000.SH็š„ๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.stk_mins(ts_code='600000.SH', freq='1min', start_date='2023-08-25 09:00:00', end_date='2023-08-25 19:00:00')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ts_code trade_time close open high low vol amount
+ 0 600000.SH 2023-08-25 15:00:00 7.05 7.05 7.05 7.05 235500.0 1660275.0
+ 1 600000.SH 2023-08-25 14:59:00 7.05 7.05 7.05 7.05 0.0 0.0
+ 2 600000.SH 2023-08-25 14:58:00 7.05 7.05 7.05 7.05 0.0 0.0
+ 3 600000.SH 2023-08-25 14:57:00 7.05 7.06 7.06 7.05 51800.0 365491.0
+ 4 600000.SH 2023-08-25 14:56:00 7.05 7.05 7.06 7.04 92700.0 653831.0
+ .. ... ... ... ... ... ... ... ...
+ 236 600000.SH 2023-08-25 09:34:00 7.01 7.02 7.02 7.00 120500.0 845311.0
+ 237 600000.SH 2023-08-25 09:33:00 7.01 7.01 7.02 7.00 126000.0 883188.0
+ 238 600000.SH 2023-08-25 09:32:00 7.01 7.02 7.02 6.99 236699.0 1659260.0
+ 239 600000.SH 2023-08-25 09:31:00 7.02 6.99 7.02 6.97 807500.0 5649956.0
+ 240 600000.SH 2023-08-25 09:30:00 6.99 6.99 6.99 6.99 103700.0 724863.0
+
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\346\227\245\347\272\277.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\346\227\245\347\272\277.md"
new file mode 100644
index 000000000..fe11eb12b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\216\206\345\217\262\346\227\245\347\272\277.md"
@@ -0,0 +1,80 @@
+## A่‚กๆ—ฅ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšdaily๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎ
+ๆ•ฐๆฎ่ฏดๆ˜Ž๏ผšไบคๆ˜“ๆ—ฅๆฏๅคฉ15็‚น๏ฝž16็‚นไน‹้—ดๅ…ฅๅบ“ใ€‚ๆœฌๆŽฅๅฃๆ˜ฏๆœชๅคๆƒ่กŒๆƒ…๏ผŒๅœ็‰ŒๆœŸ้—ดไธๆไพ›ๆ•ฐๆฎ
+่ฐƒๅ–่ฏดๆ˜Ž๏ผšๅŸบ็ก€็งฏๅˆ†ๆฏๅˆ†้’Ÿๅ†…ๅฏ่ฐƒๅ–500ๆฌก๏ผŒๆฏๆฌก6000ๆกๆ•ฐๆฎ๏ผŒไธ€ๆฌก่ฏทๆฑ‚็›ธๅฝ“ไบŽๆๅ–ไธ€ไธช่‚ก็ฅจ23ๅนดๅކๅฒ
+ๆ่ฟฐ๏ผš่Žทๅ–่‚ก็ฅจ่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๆˆ–้€š่ฟ‡[**้€š็”จ่กŒๆƒ…ๆŽฅๅฃ**]( https://tushare.pro/document/2?doc_id=109)่Žทๅ–ๆ•ฐๆฎ๏ผŒๅŒ…ๅซไบ†ๅ‰ๅŽๅคๆƒๆ•ฐๆฎ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆๆ”ฏๆŒๅคšไธช่‚ก็ฅจๅŒๆ—ถๆๅ–๏ผŒ้€—ๅทๅˆ†้š”๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDD๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ(YYYYMMDD)
+
+**ๆณจ๏ผšๆ—ฅๆœŸ้ƒฝๅกซYYYYMMDDๆ ผๅผ๏ผŒๆฏ”ๅฆ‚20181010**
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | ่‚ก็ฅจไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+open | float | ๅผ€็›˜ไปท
+high | float | ๆœ€้ซ˜ไปท
+low | float | ๆœ€ไฝŽไปท
+close | float | ๆ”ถ็›˜ไปท
+pre_close | float | ๆ˜จๆ”ถไปทใ€้™คๆƒไปทใ€‘
+change | float | ๆถจ่ทŒ้ข
+pct_chg | float | ๆถจ่ทŒๅน… ใ€ๅŸบไบŽ้™คๆƒๅŽ็š„ๆ˜จๆ”ถ่ฎก็ฎ—็š„ๆถจ่ทŒๅน…๏ผš๏ผˆไปŠๆ”ถ-้™คๆƒๆ˜จๆ”ถ๏ผ‰/้™คๆƒๆ˜จๆ”ถ ใ€‘
+vol | float | ๆˆไบค้‡ ๏ผˆๆ‰‹๏ผ‰
+amount | float | ๆˆไบค้ข ๏ผˆๅƒๅ…ƒ๏ผ‰
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.daily(ts_code='000001.SZ', start_date='20180701', end_date='20180718')
+
+#ๅคšไธช่‚ก็ฅจ
+df = pro.daily(ts_code='000001.SZ,600000.SH', start_date='20180701', end_date='20180718')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('daily', ts_code='000001.SZ', start_date='20180701', end_date='20180718')
+
+```
+
+ไนŸๅฏไปฅ้€š่ฟ‡ๆ—ฅๆœŸๅ–ๅކๅฒๆŸไธ€ๅคฉ็š„ๅ…จ้ƒจๅކๅฒ
+
+```python
+
+df = pro.daily(trade_date='20180810')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date open high low close pre_close change pct_chg vol amount
+ 0 000001.SZ 20180718 8.75 8.85 8.69 8.70 8.72 -0.02 -0.23 525152.77 460697.377
+ 1 000001.SZ 20180717 8.74 8.75 8.66 8.72 8.73 -0.01 -0.11 375356.33 326396.994
+ 2 000001.SZ 20180716 8.85 8.90 8.69 8.73 8.88 -0.15 -1.69 689845.58 603427.713
+ 3 000001.SZ 20180713 8.92 8.94 8.82 8.88 8.88 0.00 0.00 603378.21 535401.175
+ 4 000001.SZ 20180712 8.60 8.97 8.58 8.88 8.64 0.24 2.78 1140492.31 1008658.828
+ 5 000001.SZ 20180711 8.76 8.83 8.68 8.78 8.98 -0.20 -2.23 851296.70 744765.824
+ 6 000001.SZ 20180710 9.02 9.02 8.89 8.98 9.03 -0.05 -0.55 896862.02 803038.965
+ 7 000001.SZ 20180709 8.69 9.03 8.68 9.03 8.66 0.37 4.27 1409954.60 1255007.609
+ 8 000001.SZ 20180706 8.61 8.78 8.45 8.66 8.60 0.06 0.70 988282.69 852071.526
+ 9 000001.SZ 20180705 8.62 8.73 8.55 8.60 8.61 -0.01 -0.12 835768.77 722169.579
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\345\244\215\346\235\203\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\345\244\215\346\235\203\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
new file mode 100644
index 000000000..854287e6a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\345\244\215\346\235\203\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
@@ -0,0 +1,77 @@
+## ่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๅคๆƒ--ๆฏๆ—ฅๆ›ดๆ–ฐ)
+----
+ๆŽฅๅฃ๏ผšstk_week_month_adj
+ๆ่ฟฐ๏ผš่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๅคๆƒ--ๆฏๆ—ฅๆ›ดๆ–ฐ)
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000,ๅฏไฝฟ็”จไบคๆ˜“ๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏๅ‘จๆˆ–ๆฏๆœˆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ไบคๆ˜“ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸไบคๆ˜“ๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އweekๅ‘จ๏ผŒmonthๆœˆ
+
+<br>
+<br>
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆๆฏๅ‘จไบ”ๆˆ–่€…ๆœˆๆœซๆ—ฅๆœŸ๏ผ‰
+end_date | str | Y | ่ฎก็ฎ—ๆˆช่‡ณๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އ(ๅ‘จweek,ๆœˆmonth)
+open | float | Y | (ๅ‘จ/ๆœˆ)ๅผ€็›˜ไปท
+high | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€้ซ˜ไปท
+low | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€ไฝŽไปท
+close | float | Y | (ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+pre_close | float | Y | ไธŠไธ€(ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปทใ€้™คๆƒไปท๏ผŒๅ‰ๅคๆƒใ€‘
+open_qfq | float | Y | ๅ‰ๅคๆƒ(ๅ‘จ/ๆœˆ)ๅผ€็›˜ไปท
+high_qfq | float | Y | ๅ‰ๅคๆƒ(ๅ‘จ/ๆœˆ)ๆœ€้ซ˜ไปท
+low_qfq | float | Y | ๅ‰ๅคๆƒ(ๅ‘จ/ๆœˆ)ๆœ€ไฝŽไปท
+close_qfq | float | Y | ๅ‰ๅคๆƒ(ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+open_hfq | float | Y | ๅŽๅคๆƒ(ๅ‘จ/ๆœˆ)ๅผ€็›˜ไปท
+high_hfq | float | Y | ๅŽๅคๆƒ(ๅ‘จ/ๆœˆ)ๆœ€้ซ˜ไปท
+low_hfq | float | Y | ๅŽๅคๆƒ(ๅ‘จ/ๆœˆ)ๆœ€ไฝŽไปท
+close_hfq | float | Y | ๅŽๅคๆƒ(ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+vol | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้‡
+amount | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้ข
+change | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒ้ข
+pct_chg | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒๅน… ใ€ๅŸบไบŽ้™คๆƒๅŽ็š„ๆ˜จๆ”ถ่ฎก็ฎ—็š„ๆถจ่ทŒๅน…๏ผš๏ผˆไปŠๆ”ถ-้™คๆƒๆ˜จๆ”ถ๏ผ‰/้™คๆƒๆ˜จๆ”ถ ใ€‘
+
+<br>
+<br>
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df=pro.stk_week_month_adj(ts_code='000001.SZ',freq='week')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date freq open high low close pre_close open_qfq high_qfq low_qfq close_qfq open_hfq high_hfq low_hfq close_hfq vol amount change pct_chg
+ 0 000001.SZ 20250117 week 11.25 11.59 11.08 11.45 11.30 11.25 11.59 11.08 11.45 1437.57 1481.02 1415.85 1463.13 4353954.80 4963695.53 0.15 0.01
+ 1 000001.SZ 20250110 week 11.38 11.63 11.22 11.30 11.38 11.38 11.63 11.22 11.30 1454.18 1486.13 1433.74 1443.96 4445402.00 5079074.95 -0.08 -0.01
+ 2 000001.SZ 20250103 week 11.78 11.99 11.36 11.38 11.83 11.78 11.99 11.36 11.38 1505.30 1532.13 1451.63 1454.18 5801491.12 6781578.23 -0.45 -0.04
+ 3 000001.SZ 20241227 week 11.64 12.02 11.64 11.83 11.62 11.64 12.02 11.64 11.83 1487.41 1535.96 1487.41 1511.69 6775611.59 8011303.78 0.21 0.02
+ 4 000001.SZ 20241220 week 11.56 11.74 11.52 11.62 11.56 11.56 11.74 11.52 11.62 1477.18 1500.19 1472.07 1484.85 4036452.70 4689640.57 0.06 0.01
+ ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ...
+ 1687 000001.SZ 19910503 week 43.90 43.90 43.24 43.24 44.34 0.34 0.48 0.34 0.48 43.90 61.24 43.68 60.93 11.00 48.00 -1.10 -0.02
+ 1688 000001.SZ 19910426 week 45.00 45.00 44.34 44.34 45.46 0.35 0.35 0.35 0.35 45.00 45.00 44.34 44.34 67.00 300.00 -1.12 -0.02
+ 1689 000001.SZ 19910419 week 46.38 46.38 45.69 45.69 47.08 0.36 0.36 0.36 0.36 46.38 46.38 45.69 45.69 9.00 41.00 -1.39 -0.03
+ 1690 000001.SZ 19910412 week 48.04 48.04 47.08 47.08 48.52 0.38 0.38 0.37 0.37 48.04 48.04 47.08 47.08 29.00 138.00 -1.44 -0.03
+ 1691 000001.SZ 19910405 week 48.76 48.76 48.52 48.52 49.00 0.38 0.38 0.38 0.38 48.76 48.76 48.52 48.52 5.00 25.00 -0.48 -0.01
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
new file mode 100644
index 000000000..09aeae24a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\346\234\210\347\272\277\350\241\214\346\203\205(\346\257\217\346\227\245\346\233\264\346\226\260).md"
@@ -0,0 +1,74 @@
+## ่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)
+----
+
+ๆŽฅๅฃ๏ผšstk_weekly_monthly
+ๆ่ฟฐ๏ผš่‚ก็ฅจๅ‘จ/ๆœˆ็บฟ่กŒๆƒ…(ๆฏๆ—ฅๆ›ดๆ–ฐ)
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000,ๅฏไฝฟ็”จไบคๆ˜“ๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆฏๅ‘จๆˆ–ๆฏๆœˆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ไบคๆ˜“ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸไบคๆ˜“ๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އweekๅ‘จ๏ผŒmonthๆœˆ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+end_date | str | Y | ่ฎก็ฎ—ๆˆช่‡ณๆ—ฅๆœŸ
+freq | str | Y | ้ข‘็އ(ๅ‘จweek,ๆœˆmonth)
+open | float | Y | (ๅ‘จ/ๆœˆ)ๅผ€็›˜ไปท
+high | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€้ซ˜ไปท
+low | float | Y | (ๅ‘จ/ๆœˆ)ๆœ€ไฝŽไปท
+close | float | Y | (ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+pre_close | float | Y | ไธŠไธ€(ๅ‘จ/ๆœˆ)ๆ”ถ็›˜ไปท
+vol | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้‡
+amount | float | Y | (ๅ‘จ/ๆœˆ)ๆˆไบค้ข
+change | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒ้ข
+pct_chg | float | Y | (ๅ‘จ/ๆœˆ)ๆถจ่ทŒๅน…(ๆœชๅคๆƒ,ๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จ ้€š็”จ่กŒๆƒ…ๆŽฅๅฃ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–20251024่ฟ™ๅ‘จๅ‘จ็บฟๆ•ฐๆฎ
+df=pro.stk_weekly_monthly(trade_date='20251024',freq='week')
+
+#่Žทๅ–202510ๆœˆๆœˆ็บฟๆ•ฐๆฎ
+df=pro.stk_weekly_monthly(trade_date='20251031',freq='month')
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date end_date ... amount change pct_chg
+ 0 600137.SH 20251024 20251023 ... 429206.49 2.18 11.93
+ 1 600236.SH 20251024 20251023 ... 510772.77 0.25 3.49
+ 2 301262.SZ 20251024 20251023 ... 1140060.52 5.69 24.69
+ 3 600114.SH 20251024 20251023 ... 1786514.91 -0.41 -1.39
+ 4 301509.SZ 20251024 20251023 ... 225023.73 0.47 1.34
+ ... ... ... ... ... ... ... ...
+ 5428 920061.BJ 20251024 20251023 ... 153251.70 -0.51 -1.47
+ 5429 920100.BJ 20251024 20251023 ... 674924.90 5.01 7.45
+ 5430 603196.SH 20251024 20251023 ... 316237.47 0.85 3.69
+ 5431 603599.SH 20251024 20251023 ... 370038.63 -0.13 -1.10
+ 5432 301195.SZ 20251024 20251023 ... 186490.18 1.86 5.66
+
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..83521293e
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\221\250\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,103 @@
+## ๅ‘จ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšweekly
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๅ‘จ็บฟ่กŒๆƒ…๏ผŒๆœฌๆŽฅๅฃๆฏๅ‘จๆœ€ๅŽไธ€ไธชไบคๆ˜“ๆ—ฅๆ›ดๆ–ฐ๏ผŒๅฆ‚้œ€่ฆไฝฟ็”จๆฏๅคฉๆ›ดๆ–ฐ็š„ๅ‘จ็บฟๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จ[ๆ—ฅๅบฆๆ›ดๆ–ฐ็š„ๅ‘จ็บฟ่กŒๆƒ…ๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=336)ใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000่กŒ๏ผŒๅฏไฝฟ็”จไบคๆ˜“ๆ—ฅๆœŸๅพช็Žฏๆๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็  ๏ผˆts_code,trade_dateไธคไธชๅ‚ๆ•ฐไปป้€‰ไธ€๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆฏๅ‘จๆœ€ๅŽไธ€ไธชไบคๆ˜“ๆ—ฅๆœŸ๏ผŒYYYYMMDDๆ ผๅผ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๅ‘จๆ”ถ็›˜ไปท
+open | float | Y | ๅ‘จๅผ€็›˜ไปท
+high | float | Y | ๅ‘จๆœ€้ซ˜ไปท
+low | float | Y | ๅ‘จๆœ€ไฝŽไปท
+pre_close | float | Y | ไธŠไธ€ๅ‘จๆ”ถ็›˜ไปท
+change | float | Y | ๅ‘จๆถจ่ทŒ้ข
+pct_chg | float | Y | ๅ‘จๆถจ่ทŒ ๏ผˆๆœชๅคๆƒ๏ผŒๆœช*100๏ผŒๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จ [้€š็”จ่กŒๆƒ…ๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=109)๏ผŒๅฆ‚้œ€%ๅ•ไฝ่ฏท*100 ๏ผ‰
+vol | float | Y | ๅ‘จๆˆไบค้‡
+amount | float | Y | ๅ‘จๆˆไบค้ข
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.weekly(ts_code='000001.SZ', start_date='20180101', end_date='20181101', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.weekly(trade_date='20181123', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+
+ ts_code trade_date close open high low vol \
+ 0 000001.SZ 20181026 11.18 10.81 11.46 10.71 9062500.14
+ 1 000001.SZ 20181019 10.76 10.39 10.78 9.92 7235319.55
+ 2 000001.SZ 20181012 10.30 10.70 10.79 9.70 7257596.97
+ 3 000001.SZ 20180928 11.05 10.52 11.27 10.48 5458134.13
+ 4 000001.SZ 20180921 10.67 9.80 10.70 9.68 5120305.29
+ 5 000001.SZ 20180914 9.84 10.01 10.10 9.81 3534261.76
+ 6 000001.SZ 20180907 10.01 10.09 10.55 9.93 4708303.81
+ 7 000001.SZ 20180831 10.13 10.02 10.43 9.97 6715867.92
+ 8 000001.SZ 20180824 10.03 8.90 10.28 8.87 6697713.52
+ 9 000001.SZ 20180817 8.81 9.12 9.16 8.64 3206923.44
+ 10 000001.SZ 20180810 9.23 8.94 9.35 8.88 3054338.56
+ 11 000001.SZ 20180803 8.91 9.32 9.50 8.88 3648566.35
+ 12 000001.SZ 20180727 9.25 9.04 9.59 9.00 5170189.41
+ 13 000001.SZ 20180720 9.11 8.85 9.20 8.61 3806004.47
+ 14 000001.SZ 20180713 8.88 8.69 9.03 8.58 4901983.84
+ 15 000001.SZ 20180706 8.66 9.05 9.05 8.45 5125563.53
+ 16 000001.SZ 20180629 9.09 9.91 9.92 8.87 5150575.93
+
+ amount
+ 0 1.002282e+07
+ 1 7.482596e+06
+ 2 7.483906e+06
+ 3 5.904901e+06
+ 4 5.225262e+06
+ 5 3.501724e+06
+ 6 4.796533e+06
+ 7 6.858804e+06
+ 8 6.358840e+06
+ 9 2.854248e+06
+ 10 2.787629e+06
+ 11 3.363448e+06
+ 12 4.826484e+06
+ 13 3.371040e+06
+ 14 4.346872e+06
+ 15 4.446723e+06
+ 16 4.764107e+06
+
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\207\347\224\250\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\207\347\224\250\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..7ca1871af
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\207\347\224\250\350\241\214\346\203\205.md"
@@ -0,0 +1,80 @@
+## ๅค‡็”จ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšbak_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๅค‡็”จ่กŒๆƒ…๏ผŒๅŒ…ๆ‹ฌ็‰นๅฎš็š„่กŒๆƒ…ๆŒ‡ๆ ‡(ๆ•ฐๆฎไปŽ2017ๅนดไธญๅทฆๅณๅผ€ๅง‹๏ผŒๆ—ฉๆœŸๆœ‰ๅ‡ ๅคฉๆ•ฐๆฎ็ผบๅคฑ๏ผŒ่ฟ‘ๆœŸๆญฃๅธธ)
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง7000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ‚ๆ•ฐๅพช็Žฏ่Žทๅ–๏ผŒๆญฃๅผๆƒ้™้œ€่ฆ5000็งฏๅˆ†ใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+offset | str | N | ๅผ€ๅง‹่กŒๆ•ฐ
+limit | str | N | ๆœ€ๅคง่กŒๆ•ฐ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+close | float | Y | ๆ”ถ็›˜ไปท
+change | float | Y | ๆถจ่ทŒ้ข
+open | float | Y | ๅผ€็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+vol_ratio | float | Y | ้‡ๆฏ”
+turn_over | float | Y | ๆขๆ‰‹็އ
+swing | float | Y | ๆŒฏๅน…
+vol | float | Y | ๆˆไบค้‡
+amount | float | Y | ๆˆไบค้ข
+selling | float | Y | ๅ†…็›˜๏ผˆไธปๅŠจๅ–๏ผŒๆ‰‹๏ผ‰
+buying | float | Y | ๅค–็›˜๏ผˆไธปๅŠจไนฐ๏ผŒ ๆ‰‹๏ผ‰
+total_share | float | Y | ๆ€ป่‚กๆœฌ(ไบฟ)
+float_share | float | Y | ๆต้€š่‚กๆœฌ(ไบฟ)
+pe | float | Y | ๅธ‚็›ˆ(ๅŠจ)
+industry | str | Y | ๆ‰€ๅฑž่กŒไธš
+area | str | Y | ๆ‰€ๅฑžๅœฐๅŸŸ
+float_mv | float | Y | ๆต้€šๅธ‚ๅ€ผ
+total_mv | float | Y | ๆ€ปๅธ‚ๅ€ผ
+avg_price | float | Y | ๅนณๅ‡ไปท
+strength | float | Y | ๅผบๅผฑๅบฆ(%)
+activity | float | Y | ๆดป่ทƒๅบฆ(%)
+avg_turnover | float | Y | ็ฌ”ๆขๆ‰‹
+attack | float | Y | ๆ”ปๅ‡ปๆณข(%)
+interval_3 | float | Y | ่ฟ‘3ๆœˆๆถจๅน…
+interval_6 | float | Y | ่ฟ‘6ๆœˆๆถจๅน…
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.bak_daily(trade_date='20211012', fields='trade_date,ts_code,name,close,open')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date name close open
+ 0 300605.SZ 20211012 ๆ’้”‹ไฟกๆฏ 14.86 12.65
+ 1 301017.SZ 20211012 ๆผฑ็މๅนณๆฐ‘ 25.21 20.82
+ 2 300755.SZ 20211012 ๅŽ่‡ด้…’่กŒ 40.45 37.01
+ 3 300255.SZ 20211012 ๅธธๅฑฑ่ฏไธš 8.39 7.26
+ 4 688378.SH 20211012 ๅฅฅๆฅๅพท 68.62 67.00
+ ... ... ... ... ... ...
+ 4529 688257.SH 20211012 ๆ–ฐ้”่‚กไปฝ 0.00 0.00
+ 4530 688255.SH 20211012 ๅ‡ฏๅฐ”่พพ 0.00 0.00
+ 4531 688211.SH 20211012 ไธญ็ง‘ๅพฎ่‡ณ 0.00 0.00
+ 4532 605567.SH 20211012 ๆ˜ฅ้›ช้ฃŸๅ“ 0.00 0.00
+ 4533 605566.SH 20211012 ็ฆ่Žฑ่’ฝ็‰น 0.00 0.00
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\345\233\240\345\255\220.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\345\233\240\345\255\220.md"
new file mode 100644
index 000000000..f9a60de5c
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\345\233\240\345\255\220.md"
@@ -0,0 +1,75 @@
+## ๅคๆƒๅ› ๅญ
+----
+
+ๆŽฅๅฃ๏ผšadj_factor๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ›ดๆ–ฐๆ—ถ้—ด๏ผš็›˜ๅ‰9็‚น15~20ๅˆ†ๅฎŒๆˆๅฝ“ๆ—ฅๅคๆƒๅ› ๅญๅ…ฅๅบ“
+ๆ่ฟฐ๏ผšๆœฌๆŽฅๅฃ็”ฑTushare่‡ช่กŒ็”Ÿไบง๏ผŒ่Žทๅ–่‚ก็ฅจๅคๆƒๅ› ๅญ๏ผŒๅฏๆๅ–ๅ•ๅช่‚ก็ฅจๅ…จ้ƒจๅކๅฒๅคๆƒๅ› ๅญ๏ผŒไนŸๅฏไปฅๆๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจ็š„ๅคๆƒๅ› ๅญใ€‚
+็งฏๅˆ†่ฆๆฑ‚๏ผš2000็งฏๅˆ†่ตท๏ผŒ5000ไปฅไธŠๅฏ้ซ˜้ข‘่ฐƒๅ–
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+**ๆณจ๏ผšๆ—ฅๆœŸ้ƒฝๅกซYYYYMMDDๆ ผๅผ๏ผŒๆฏ”ๅฆ‚20181010**
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | ่‚ก็ฅจไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+adj_factor | float | ๅคๆƒๅ› ๅญ
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#ๆๅ–000001ๅ…จ้ƒจๅคๆƒๅ› ๅญ
+df = pro.adj_factor(ts_code='000001.SZ', trade_date='')
+
+
+#ๆๅ–2018ๅนด7ๆœˆ18ๆ—ฅๅคๆƒๅ› ๅญ
+df = pro.adj_factor(ts_code='', trade_date='20180718')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('adj_factor', trade_date='20180718')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date adj_factor
+ 0 000001.SZ 20180809 108.031
+ 1 000001.SZ 20180808 108.031
+ 2 000001.SZ 20180807 108.031
+ 3 000001.SZ 20180806 108.031
+ 4 000001.SZ 20180803 108.031
+ 5 000001.SZ 20180802 108.031
+ 6 000001.SZ 20180801 108.031
+ 7 000001.SZ 20180731 108.031
+ 8 000001.SZ 20180730 108.031
+ 9 000001.SZ 20180727 108.031
+ 10 000001.SZ 20180726 108.031
+ 11 000001.SZ 20180725 108.031
+ 12 000001.SZ 20180724 108.031
+ 13 000001.SZ 20180723 108.031
+ 14 000001.SZ 20180720 108.031
+ 15 000001.SZ 20180719 108.031
+ 16 000001.SZ 20180718 108.031
+ 17 000001.SZ 20180717 108.031
+ 18 000001.SZ 20180716 108.031
+ 19 000001.SZ 20180713 108.031
+ 20 000001.SZ 20180712 108.031
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..6f8554c95
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\244\215\346\235\203\350\241\214\346\203\205.md"
@@ -0,0 +1,85 @@
+## A่‚กๅคๆƒ่กŒๆƒ…
+----
+
+**ๆŽฅๅฃๅ็งฐ** ๏ผšpro_bar
+**ๆŽฅๅฃ่ฏดๆ˜Ž** ๏ผšๅคๆƒ่กŒๆƒ…้€š่ฟ‡[้€š็”จ่กŒๆƒ…ๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=109)ๅฎž็Žฐ๏ผŒๅˆฉ็”จTushare Proๆไพ›็š„[ๅคๆƒๅ› ๅญ](https://tushare.pro/document/2?doc_id=28)่ฟ›่กŒๅŠจๆ€่ฎก็ฎ—๏ผŒๅ› ๆญคhttpๆ–นๅผๆ— ๆณ•่ฐƒๅ–ใ€‚่‹ฅ้œ€่ฆ้™ๆ€ๅคๆƒ่กŒๆƒ…๏ผˆๆ”ฏๆŒhttp๏ผ‰๏ผŒ่ฏท่ฎฟ้—ฎ[่‚ก็ฅจๆŠ€ๆœฏๅ› ๅญๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=328)ใ€‚
+**Python SDK็‰ˆๆœฌ่ฆๆฑ‚**๏ผš >= 1.2.26
+
+<br>
+<br>
+
+**ๅคๆƒ่ฏดๆ˜Ž**
+
+| ็ฑปๅž‹ | ็ฎ—ๆณ• | ๅ‚ๆ•ฐๆ ‡่ฏ† |
+| -------- | -------- | -------- |
+| ไธๅคๆƒ | ๆ—  | ็ฉบๆˆ–None |
+| ๅ‰ๅคๆƒ | ๅฝ“ๆ—ฅๆ”ถ็›˜ไปท ร— ๅฝ“ๆ—ฅๅคๆƒๅ› ๅญ / ๆœ€ๆ–ฐๅคๆƒๅ› ๅญ | qfq |
+| ๅŽๅคๆƒ | ๅฝ“ๆ—ฅๆ”ถ็›˜ไปท ร— ๅฝ“ๆ—ฅๅคๆƒๅ› ๅญ | hfq |
+
+<br>
+<br>
+ๆณจ๏ผš็›ฎๅ‰ๅชๆ”ฏๆŒA่‚ก็š„ๆ—ฅ็บฟๅคๆƒใ€‚ๅœจTushareๆ•ฐๆฎๆŽฅๅฃ้‡Œ๏ผŒไธ็ฎกๆ˜ฏๆ—ง็‰ˆ็š„ไธ€ไบ›ๆŽฅๅฃ่ฟ˜ๆ˜ฏPro็‰ˆ็š„่กŒๆƒ…ๆŽฅๅฃ๏ผŒ้ƒฝๆ˜ฏไปฅ็”จๆˆท่ฎพๅฎš็š„end_dateๅผ€ๅง‹ๅพ€ๅ‰ๅคๆƒ๏ผŒ่ทŸๆ‰€ๆœ‰่กŒๆƒ…่ฝฏไปถๆˆ–่€…่ดข็ป็ฝ‘็ซ™ไธŠ็œ‹ๅˆฐ็š„ๅ‰ๅคๆƒๅฏ่ƒฝๅญ˜ๅœจๅทฎๅผ‚๏ผŒๅ› ไธบ่กŒๆƒ…่ฝฏไปถ้ƒฝๆ˜ฏไปฅๆœ€่ฟ‘ไธ€ไธชไบคๆ˜“ๆ—ฅๅผ€ๅง‹ๅพ€ๅ‰ๅคๆƒ็š„ใ€‚ๆฏ”ๅฆ‚ไปŠๅคฉๆ˜ฏ2018ๅนด10ๆœˆ26ๆ—ฅ๏ผŒๆ‚จๆƒณๆŸฅ2018ๅนด1ๆœˆ5ๆ—ฅ๏ฝž2018ๅนด9ๆœˆ28ๆ—ฅ็š„ๅ‰ๅคๆƒๆ•ฐๆฎ๏ผŒTushareๆ˜ฏๅ…ˆๆŸฅๆ‰พ9ๆœˆ28ๆ—ฅ็š„ๅคๆƒๅ› ๅญ๏ผŒไปŽ28ๆ—ฅๅผ€ๅง‹ๅคๆƒ๏ผŒ่€Œ่กŒๆƒ…่ฝฏไปถๆ˜ฏไปŽ10ๆœˆ26ๆ—ฅ่ฟ™ๅคฉๅผ€ๅง‹ๅคๆƒ็š„ใ€‚ๅŒๆ—ถ๏ผŒTushare็š„ๅคๆƒ้‡‡็”จโ€œๅˆ†็บขๅ†ๆŠ•โ€ๆจกๅผ่ฎก็ฎ—ใ€‚
+
+<br>
+<br>
+
+**ๆŽฅๅฃๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่ฏๅˆธไปฃ็ 
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ (ๆ ผๅผ๏ผšYYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ (ๆ ผๅผ๏ผšYYYYMMDD)
+asset | str | Y | ่ต„ไบง็ฑปๅˆซ๏ผšE่‚ก็ฅจ IๆฒชๆทฑๆŒ‡ๆ•ฐ Cๆ•ฐๅญ—่ดงๅธ FTๆœŸ่ดง FDๅŸบ้‡‘ OๆœŸๆƒ๏ผŒ้ป˜่ฎคE
+adj | str | N | ๅคๆƒ็ฑปๅž‹(ๅช้’ˆๅฏน่‚ก็ฅจ)๏ผšNoneๆœชๅคๆƒ qfqๅ‰ๅคๆƒ hfqๅŽๅคๆƒ , ้ป˜่ฎคNone
+freq | str | Y | ๆ•ฐๆฎ้ข‘ๅบฆ ๏ผš1MIN่กจ็คบ1ๅˆ†้’Ÿ๏ผˆ1/5/15/30/60ๅˆ†้’Ÿ๏ผ‰ Dๆ—ฅ็บฟ ๏ผŒ้ป˜่ฎคD
+ma | list | N | ๅ‡็บฟ๏ผŒๆ”ฏๆŒไปปๆ„ๅ‘จๆœŸ็š„ๅ‡ไปทๅ’Œๅ‡้‡๏ผŒ่พ“ๅ…ฅไปปๆ„ๅˆ็†intๆ•ฐๅ€ผ
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็”จไพ‹**
+
+
+ๆ—ฅ็บฟๅคๆƒ
+
+```python
+
+#ๅ–000001็š„ๅ‰ๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', adj='qfq', start_date='20180101', end_date='20181011')
+
+#ๅ–000001็š„ๅŽๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', adj='hfq', start_date='20180101', end_date='20181011')
+
+```
+
+<br>
+
+
+ๅ‘จ็บฟๅคๆƒ
+
+```python
+
+#ๅ–000001็š„ๅ‘จ็บฟๅ‰ๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar( ts_code='000001.SZ', freq='W', adj='qfq', start_date='20180101', end_date='20181011')
+
+#ๅ–000001็š„ๅ‘จ็บฟๅŽๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', freq='W', adj='hfq', start_date='20180101', end_date='20181011')
+
+```
+
+<br>
+
+
+ๆœˆ็บฟๅคๆƒ
+
+```python
+
+#ๅ–000001็š„ๆœˆ็บฟๅ‰ๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', freq='M', adj='qfq', start_date='20180101', end_date='20181011')
+
+#ๅ–000001็š„ๆœˆ็บฟๅŽๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', freq='M', adj='hfq', start_date='20180101', end_date='20181011')
+
+```
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237.md"
new file mode 100644
index 000000000..af36f09df
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\345\210\206\351\222\237.md"
@@ -0,0 +1,65 @@
+## A่‚กๅฎžๆ—ถๅˆ†้’Ÿ
+----
+
+ๆŽฅๅฃ๏ผšrt_min
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จA่‚ก็ฅจๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ1~60min
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000่กŒๆ•ฐๆฎ๏ผŒๅฏไปฅ้€š่ฟ‡่‚ก็ฅจไปฃ็ ๆๅ–ๆ•ฐๆฎ๏ผŒๆ”ฏๆŒ้€—ๅทๅˆ†้š”็š„ๅคšไธชไปฃ็ ๅŒๆ—ถๆๅ–
+ๆƒ้™๏ผšๆญฃๅผๆƒ้™่ฏทๅ‚้˜… <u>[ๆƒ้™่ฏดๆ˜Ž](https://tushare.pro/document/1?doc_id=290) </u>
+
+ๆณจ๏ผšๆ”ฏๆŒ่‚ก็ฅจๅฝ“ๆ—ฅๅผ€็›˜ไปฅๆฅ็š„ๆ‰€ๆœ‰ๅކๅฒๅˆ†้’Ÿๆ•ฐๆฎๆๅ–๏ผŒๆŽฅๅฃๅ๏ผšrt_min_daily๏ผˆไป…ๆ”ฏๆŒไธ€ไธชไธช่‚ก็ฅจๆๅ–๏ผŒไธๅŒๅŒๆ—ถๆๅ–ๅคšไธช๏ผ‰๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+freq | str | Y | 1MIN,5MIN,15MIN,30MIN,60MIN ๏ผˆๅคงๅ†™๏ผ‰
+ts_code | str | Y | ๆ”ฏๆŒๅ•ไธชๅ’Œๅคšไธช๏ผš600000.SH ๆˆ–่€… 600000.SH,000001.SZ
+
+
+<br>
+<br>
+
+**freqๅ‚ๆ•ฐ่ฏดๆ˜Ž**
+
+freq | ่ฏดๆ˜Ž
+--- | ----
+1MIN | 1ๅˆ†้’Ÿ
+5MIN | 5ๅˆ†้’Ÿ
+15MIN | 15ๅˆ†้’Ÿ
+30MIN | 30ๅˆ†้’Ÿ
+60MIN | 60ๅˆ†้’Ÿ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+time | None | Y | ไบคๆ˜“ๆ—ถ้—ด
+open | float | Y | ๅผ€็›˜ไปท
+close | float | Y | ๆ”ถ็›˜ไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+vol | float | Y | ๆˆไบค้‡(่‚ก๏ผ‰
+amount | float | Y | ๆˆไบค้ข๏ผˆๅ…ƒ๏ผ‰
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๆตฆๅ‘้“ถ่กŒ60000.SH็š„ๅฎžๆ—ถๅˆ†้’Ÿๆ•ฐๆฎ
+df = pro.rt_min(ts_code='600000.SH', freq='1MIN')
+
+```
+
+<br>
+<br>
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\346\227\245\347\272\277.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\346\227\245\347\272\277.md"
new file mode 100644
index 000000000..7a050b243
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\345\256\236\346\227\266\346\227\245\347\272\277.md"
@@ -0,0 +1,80 @@
+## ๆฒชๆทฑไบฌๅฎžๆ—ถๆ—ฅ็บฟ
+----
+
+ๆŽฅๅฃ๏ผšrt_k
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…๏ผŒๆ”ฏๆŒๆŒ‰่‚ก็ฅจไปฃ็ ๅŠ่‚ก็ฅจไปฃ็ ้€š้…็ฌฆไธ€ๆฌกๆ€งๆๅ–ๅ…จ้ƒจ่‚ก็ฅจๅฎžๆ—ถๆ—ฅk็บฟ่กŒๆƒ…
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏๆๅ–6000ๆกๆ•ฐๆฎ๏ผŒ็ญ‰ๅŒไบŽไธ€ๆฌกๆๅ–ๅ…จๅธ‚ๅœบ
+็งฏๅˆ†๏ผšๆœฌๆŽฅๅฃๆ˜ฏๅ•็‹ฌๅผ€ๆƒ้™็š„ๆ•ฐๆฎ๏ผŒๅ•็‹ฌ็”ณ่ฏทๆƒ้™่ฏทๅ‚่€ƒ[ๆƒ้™ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=290)๏ผŒๅฏไปฅ[ๅœจ็บฟๅผ€้€š](https://tushare.pro/weborder/#/permission)ๆƒ้™ใ€‚
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ๆ”ฏๆŒ้€š้…็ฌฆๆ–นๅผ๏ผŒe.g. ๆ‰€ๆœ‰ไธŠไบคๆ‰€่‚ก็ฅจ๏ผš6\*.SHใ€ๆ‰€ๆœ‰ๅˆ›ไธšๆฟ่‚ก็ฅจ3\*.SZใ€ๆ‰€ๆœ‰็ง‘ๅˆ›ๆฟ่‚ก็ฅจ688*.SH๏ผŒๆˆ–ๅ•ไธช่‚ก็ฅจ600000.SH
+
+<br>
+ๆณจ๏ผšts_codeไปฃ็ ไธ€ๅฎš่ฆๅธฆ<font color="red">.SH/.SZ/.BJ</font>ๅŽ็ผ€
+
+
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | None | Y | ่‚ก็ฅจๅ็งฐ
+pre_close | float | Y | ๆ˜จๆ”ถไปท
+high | float | Y | ๆœ€้ซ˜ไปท
+open | float | Y | ๅผ€็›˜ไปท
+low | float | Y | ๆœ€ไฝŽไปท
+close | float | Y | ๆ”ถ็›˜ไปท๏ผˆๆœ€ๆ–ฐไปท๏ผ‰
+vol | int | Y | ๆˆไบค้‡๏ผˆ่‚ก๏ผ‰
+amount | int | Y | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+num | int | Y | ๅผ€็›˜ไปฅๆฅๆˆไบค็ฌ”ๆ•ฐ
+ask_price1 | float | N | ๅง”ๆ‰˜ๅ–็›˜๏ผˆๅ…ƒ๏ผ‰
+ask_volume1 | int | N | ๅง”ๆ‰˜ๅ–็›˜๏ผˆ่‚ก๏ผ‰
+bid_price1 | float | N | ๅง”ๆ‰˜ไนฐ็›˜๏ผˆๅ…ƒ๏ผ‰
+bid_volume1 | int | N | ๅง”ๆ‰˜ไนฐ็›˜๏ผˆ่‚ก๏ผ‰
+trade_time | str | N | ไบคๆ˜“ๆ—ถ้—ด
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ไปŠๆ—ฅๅผ€็›˜ไปฅๆฅๆ‰€ๆœ‰ๅˆ›ไธšๆฟๅฎžๆ—ถๆ—ฅ็บฟๅ’Œๆˆไบค็ฌ”ๆ•ฐ
+df = pro.rt_k(ts_code='3*.SZ')
+
+#่Žทๅ–ไปŠๆ—ฅๅผ€็›˜ไปฅๆฅๅ…จๅธ‚ๅœบๆ‰€ๆœ‰่‚ก็ฅจๅฎžๆ—ถๆ—ฅ็บฟๅ’Œๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธๅปบ่ฎฎไธ€ๆฌกๆๅ–ๅ…จๅธ‚ๅœบ๏ผŒๅฏๅˆ†ๆ‰นๆๅ–ๆ€ง่ƒฝๆ›ดๅฅฝ๏ผ‰
+df = pro.rt_k(ts_code='3*.SZ,6*.SH,0*.SZ,9*.BJ')
+
+#่Žทๅ–ๅฝ“ๆ—ฅๅผ€็›˜ไปฅๆฅๅ•ไธช่‚ก็ฅจๅฎžๆ—ถๆ—ฅ็บฟๅ’Œๆˆไบค็ฌ”ๆ•ฐ
+df = pro.rt_k(ts_code='600000.SH,000001.SZ')
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code name pre_close high open low close vol amount num
+ 0 601866.SH ไธญ่ฟœๆตทๅ‘ 2.28 2.28 2.28 2.23 2.24 55845293 125364882 19904
+ 1 601811.SH ๆ–ฐๅŽๆ–‡่ฝฉ 15.47 15.59 15.42 15.24 15.46 4169900 64212329 10524
+ 2 601877.SH ๆญฃๆณฐ็”ตๅ™จ 22.06 22.10 22.06 21.81 21.89 9816735 215350906 21733
+ 3 601699.SH ๆฝžๅฎ‰็Žฏ่ƒฝ 11.78 11.77 11.77 11.56 11.61 12121234 140750449 13836
+ 4 601858.SH ไธญๅ›ฝ็ง‘ไผ  18.45 18.77 18.56 18.36 18.56 2665300 49383660 7033
+ .. ... ... ... ... ... ... ... ... ... ...
+ 220 601880.SH ่พฝๆธฏ่‚กไปฝ 1.50 1.50 1.50 1.46 1.47 79855960 117767408 11820
+ 221 601616.SH ๅนฟ็”ต็”ตๆฐ” 4.00 4.05 4.02 3.96 4.03 18984200 75975252 18220
+ 222 601611.SH ไธญๅ›ฝๆ ธๅปบ 8.86 8.86 8.86 8.62 8.67 27793715 241360488 24970
+ 223 601218.SH ๅ‰้‘ซ็ง‘ๆŠ€ 3.00 3.02 2.99 2.96 3.00 10487500 31316964 6327
+ 224 601966.SH ็Žฒ็‘่ฝฎ่ƒŽ 15.31 15.38 15.38 15.18 15.27 11297200 172527086 31828
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\234\210\347\272\277\350\241\214\346\203\205.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\234\210\347\272\277\350\241\214\346\203\205.md"
new file mode 100644
index 000000000..edceb5966
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\234\210\347\272\277\350\241\214\346\203\205.md"
@@ -0,0 +1,102 @@
+## ๆœˆ็บฟ่กŒๆƒ…
+----
+
+ๆŽฅๅฃ๏ผšmonthly
+ๆ่ฟฐ๏ผš่Žทๅ–A่‚กๆœˆ็บฟๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง4500่กŒ๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็  ๏ผˆts_code,trade_dateไธคไธชๅ‚ๆ•ฐไปป้€‰ไธ€๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆฏๆœˆๆœ€ๅŽไธ€ไธชไบคๆ˜“ๆ—ฅๆ—ฅๆœŸ๏ผŒYYYYMMDDๆ ผๅผ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | Y | ๆœˆๆ”ถ็›˜ไปท
+open | float | Y | ๆœˆๅผ€็›˜ไปท
+high | float | Y | ๆœˆๆœ€้ซ˜ไปท
+low | float | Y | ๆœˆๆœ€ไฝŽไปท
+pre_close | float | Y | ไธŠๆœˆๆ”ถ็›˜ไปท
+change | float | Y | ๆœˆๆถจ่ทŒ้ข
+pct_chg | float | Y | ๆœˆๆถจ่ทŒๅน… ๏ผˆๆœชๅคๆƒ๏ผŒๅฆ‚ๆžœๆ˜ฏๅคๆƒ่ฏท็”จ [้€š็”จ่กŒๆƒ…ๆŽฅๅฃ](https://tushare.pro/document/2?doc_id=109) ๏ผ‰
+vol | float | Y | ๆœˆๆˆไบค้‡
+amount | float | Y | ๆœˆๆˆไบค้ข
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.monthly(ts_code='000001.SZ', start_date='20180101', end_date='20181101', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.monthly(trade_date='20181031', fields='ts_code,trade_date,open,high,low,close,vol,amount')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date close open high low vol \
+ 0 000001.SZ 20181031 10.91 10.70 11.46 9.70 27801557.09
+ 1 000001.SZ 20180930 11.05 10.09 11.27 9.68 18821004.99
+ 2 000001.SZ 20180831 10.13 9.42 10.43 8.64 21896873.02
+ 3 000001.SZ 20180731 9.42 9.05 9.59 8.45 20430278.02
+ 4 000001.SZ 20180630 9.09 10.15 10.46 8.87 18179888.58
+ 5 000001.SZ 20180531 10.18 10.97 11.23 10.02 18267177.83
+ 6 000001.SZ 20180430 10.85 10.87 11.94 10.51 23495990.53
+ 7 000001.SZ 20180331 10.90 11.92 12.34 10.55 23129969.15
+ 8 000001.SZ 20180228 12.05 13.95 14.57 11.38 25624473.21
+ 9 000001.SZ 20180131 14.05 13.35 15.13 12.86 46145376.46
+ 10 000001.SZ 20171231 13.30 13.40 13.86 12.64 29661838.16
+ 11 000001.SZ 20171130 13.38 11.56 15.24 11.09 42481293.87
+ 12 000001.SZ 20171031 11.54 11.57 11.73 11.12 13951964.07
+ 13 000001.SZ 20170930 11.11 11.28 11.94 10.82 16101838.41
+ 14 000001.SZ 20170831 11.28 10.64 11.74 9.99 26281362.76
+ 15 000001.SZ 20170731 10.67 9.40 11.33 9.27 35360949.04
+ 16 000001.SZ 20170630 9.39 9.20 9.49 8.99 12718091.74
+ 17 000001.SZ 20170531 9.20 8.96 9.23 8.54 12252646.46
+ 18 000001.SZ 20170430 8.99 9.16 9.22 8.89 8024338.26
+ 19 000001.SZ 20170331 9.17 9.49 9.55 9.06 12889345.37
+ 20 000001.SZ 20170228 9.48 9.34 9.62 9.23 8460527.09
+ 21 000001.SZ 20170131 9.33 9.11 9.34 9.07 7629258.66
+
+ amount
+ 0 2.960878e+07
+ 1 1.942842e+07
+ 2 2.088672e+07
+ 3 1.832737e+07
+ 4 1.791251e+07
+ 5 1.965278e+07
+ 6 2.655691e+07
+ 7 2.692560e+07
+ 8 3.322504e+07
+ 9 6.454870e+07
+ 10 3.914290e+07
+ 11 5.604279e+07
+ 12 1.597217e+07
+ 13 1.827867e+07
+ 14 2.859479e+07
+ 15 3.736988e+07
+ 16 1.171552e+07
+ 17 1.083921e+07
+ 18 7.268941e+06
+ 19 1.197751e+07
+ 20 7.977982e+06
+ 21 7.001209e+06
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\345\201\234\345\244\215\347\211\214\344\277\241\346\201\257.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\345\201\234\345\244\215\347\211\214\344\277\241\346\201\257.md"
new file mode 100644
index 000000000..dbf2122d4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\345\201\234\345\244\215\347\211\214\344\277\241\346\201\257.md"
@@ -0,0 +1,70 @@
+## ๆฏๆ—ฅๅœๅค็‰Œไฟกๆฏ
+----
+
+ๆŽฅๅฃ๏ผšsuspend_d
+ๆ›ดๆ–ฐๆ—ถ้—ด๏ผšไธๅฎšๆœŸ
+ๆ่ฟฐ๏ผšๆŒ‰ๆ—ฅๆœŸๆ–นๅผ่Žทๅ–่‚ก็ฅจๆฏๆ—ฅๅœๅค็‰Œไฟกๆฏ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ (ๅฏ่พ“ๅ…ฅๅคšๅ€ผ)
+trade_date| str | N | ไบคๆ˜“ๆ—ฅๆ—ฅๆœŸ
+start_date | str | N | ๅœๅค็‰ŒๆŸฅ่ฏขๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅœๅค็‰ŒๆŸฅ่ฏข็ป“ๆŸๆ—ฅๆœŸ
+suspend_type | str | N | ๅœๅค็‰Œ็ฑปๅž‹๏ผšS-ๅœ็‰Œ,R-ๅค็‰Œ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ๅœๅค็‰Œๆ—ฅๆœŸ
+suspend_timing | str | Y | ๆ—ฅๅ†…ๅœ็‰Œๆ—ถ้—ดๆฎต
+suspend_type | str | Y | ๅœๅค็‰Œ็ฑปๅž‹๏ผšS-ๅœ็‰Œ๏ผŒR-ๅค็‰Œ
+
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+#ๆๅ–2020-03-12็š„ๅœ็‰Œ่‚ก็ฅจ
+df = pro.suspend_d(suspend_type='S', trade_date='20200312')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code suspend_type trade_date suspend_timing
+ 0 000029.SZ S 20200312 None
+ 1 000502.SZ S 20200312 None
+ 2 000939.SZ S 20200312 None
+ 3 000977.SZ S 20200312 None
+ 4 000995.SZ S 20200312 None
+ 5 002260.SZ S 20200312 None
+ 6 002450.SZ S 20200312 None
+ 7 002604.SZ S 20200312 None
+ 8 300028.SZ S 20200312 None
+ 9 300104.SZ S 20200312 None
+ 10 300216.SZ S 20200312 None
+ 11 300592.SZ S 20200312 None
+ 12 300819.SZ S 20200312 09:30-10:00
+ 13 300821.SZ S 20200312 09:30-10:00
+ 14 600074.SH S 20200312 None
+ 15 600145.SH S 20200312 None
+ 16 600228.SH S 20200312 None
+ 17 600310.SH S 20200312 None
+ 18 600610.SH S 20200312 None
+ 19 600745.SH S 20200312 None
+ 20 600766.SH S 20200312 None
+ 21 600891.SH S 20200312 None
+ 22 601127.SH S 20200312 None
+ 23 601162.SH S 20200312 None
+ 24 603002.SH S 20200312 None
+ 25 603399.SH S 20200312 None
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\207\346\240\207.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\207\346\240\207.md"
new file mode 100644
index 000000000..7c27fd1ce
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\214\207\346\240\207.md"
@@ -0,0 +1,83 @@
+## ๆฏๆ—ฅๆŒ‡ๆ ‡
+----
+
+ๆŽฅๅฃ๏ผšdaily_basic๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ›ดๆ–ฐๆ—ถ้—ด๏ผšไบคๆ˜“ๆ—ฅๆฏๆ—ฅ15็‚น๏ฝž17็‚นไน‹้—ด
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จ้ƒจ่‚ก็ฅจๆฏๆ—ฅ้‡่ฆ็š„ๅŸบๆœฌ้ขๆŒ‡ๆ ‡๏ผŒๅฏ็”จไบŽ้€‰่‚กๅˆ†ๆžใ€ๆŠฅ่กจๅฑ•็คบ็ญ‰ใ€‚ๅ•ๆฌก่ฏทๆฑ‚ๆœ€ๅคง่ฟ”ๅ›ž6000ๆกๆ•ฐๆฎ๏ผŒๅฏๆŒ‰ๆ—ฅ็บฟๅพช็Žฏๆๅ–ๅ…จ้ƒจๅކๅฒใ€‚
+็งฏๅˆ†๏ผš่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ๆ— ๆ€ป้‡้™ๅˆถ๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ(YYYYMMDD)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ(YYYYMMDD)
+
+**ๆณจ๏ผšๆ—ฅๆœŸ้ƒฝๅกซYYYYMMDDๆ ผๅผ๏ผŒๆฏ”ๅฆ‚20181010**
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+close | float | ๅฝ“ๆ—ฅๆ”ถ็›˜ไปท
+turnover_rate | float | ๆขๆ‰‹็އ๏ผˆ%๏ผ‰
+turnover_rate_f | float | ๆขๆ‰‹็އ๏ผˆ่‡ช็”ฑๆต้€š่‚ก๏ผ‰
+volume_ratio | float | ้‡ๆฏ”
+pe | float | ๅธ‚็›ˆ็އ๏ผˆๆ€ปๅธ‚ๅ€ผ/ๅ‡€ๅˆฉๆถฆ๏ผŒ ไบๆŸ็š„PEไธบ็ฉบ๏ผ‰
+pe_ttm | float | ๅธ‚็›ˆ็އ๏ผˆTTM๏ผŒไบๆŸ็š„PEไธบ็ฉบ๏ผ‰
+pb | float | ๅธ‚ๅ‡€็އ๏ผˆๆ€ปๅธ‚ๅ€ผ/ๅ‡€่ต„ไบง๏ผ‰
+ps | float | ๅธ‚้”€็އ
+ps_ttm | float | ๅธ‚้”€็އ๏ผˆTTM๏ผ‰
+dv_ratio | float | ่‚กๆฏ็އ ๏ผˆ%๏ผ‰
+dv_ttm | float | ่‚กๆฏ็އ๏ผˆTTM๏ผ‰๏ผˆ%๏ผ‰
+total_share | float | ๆ€ป่‚กๆœฌ ๏ผˆไธ‡่‚ก๏ผ‰
+float_share | float | ๆต้€š่‚กๆœฌ ๏ผˆไธ‡่‚ก๏ผ‰
+free_share | float | ่‡ช็”ฑๆต้€š่‚กๆœฌ ๏ผˆไธ‡๏ผ‰
+total_mv | float | ๆ€ปๅธ‚ๅ€ผ ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+circ_mv | float | ๆต้€šๅธ‚ๅ€ผ๏ผˆไธ‡ๅ…ƒ๏ผ‰
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+```python
+
+pro = ts.pro_api()
+
+df = pro.daily_basic(ts_code='', trade_date='20180726', fields='ts_code,trade_date,turnover_rate,volume_ratio,pe,pb')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('daily_basic', ts_code='', trade_date='20180726',fields='ts_code,trade_date,turnover_rate,volume_ratio,pe,pb')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code trade_date turnover_rate volume_ratio pe pb
+ 0 600230.SH 20180726 2.4584 0.72 8.6928 3.7203
+ 1 600237.SH 20180726 1.4737 0.88 166.4001 1.8868
+ 2 002465.SZ 20180726 0.7489 0.72 71.8943 2.6391
+ 3 300732.SZ 20180726 6.7083 0.77 21.8101 3.2513
+ 4 600007.SH 20180726 0.0381 0.61 23.7696 2.3774
+ 5 300068.SZ 20180726 1.4583 0.52 27.8166 1.7549
+ 6 300552.SZ 20180726 2.0728 0.95 56.8004 2.9279
+ 7 601369.SH 20180726 0.2088 0.95 44.1163 1.8001
+ 8 002518.SZ 20180726 0.5814 0.76 15.1004 2.5626
+ 9 002913.SZ 20180726 12.1096 1.03 33.1279 2.9217
+ 10 601818.SH 20180726 0.1893 0.86 6.3064 0.7209
+ 11 600926.SH 20180726 0.6065 0.46 9.1772 0.9808
+ 12 002166.SZ 20180726 0.7582 0.82 16.9868 3.3452
+ 13 600841.SH 20180726 0.3754 1.02 66.2647 2.2302
+ 14 300634.SZ 20180726 23.1127 1.26 120.3053 14.3168
+ 15 300126.SZ 20180726 1.2304 1.11 348.4306 1.5171
+ 16 300718.SZ 20180726 17.6612 0.92 32.0239 3.8661
+ 17 000708.SZ 20180726 0.5575 0.70 10.3674 1.0276
+ 18 002626.SZ 20180726 0.6187 0.83 22.7580 4.2446
+ 19 600816.SH 20180726 0.6745 0.65 11.0778 3.2214
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md"
new file mode 100644
index 000000000..4bb374e63
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\257\217\346\227\245\346\266\250\350\267\214\345\201\234\344\273\267\346\240\274.md"
@@ -0,0 +1,82 @@
+## ๆฏๆ—ฅๆถจ่ทŒๅœไปทๆ ผ
+----
+
+ๆŽฅๅฃ๏ผšstk_limit
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จๅธ‚ๅœบ๏ผˆๅŒ…ๅซA/B่‚กๅ’ŒๅŸบ้‡‘๏ผ‰ๆฏๆ—ฅๆถจ่ทŒๅœไปทๆ ผ๏ผŒๅŒ…ๆ‹ฌๆถจๅœไปทๆ ผ๏ผŒ่ทŒๅœไปทๆ ผ็ญ‰๏ผŒๆฏไธชไบคๆ˜“ๆ—ฅ8็‚น40ๅทฆๅณๆ›ดๆ–ฐๅฝ“ๆ—ฅ่‚ก็ฅจๆถจ่ทŒๅœไปทๆ ผใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคšๆๅ–5800ๆก่ฎฐๅฝ•๏ผŒๅฏๅพช็Žฏ่ฐƒๅ–๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ•ไฝๅˆ†้’Ÿๆœ‰ๆตๆŽง๏ผŒ็งฏๅˆ†่ถŠ้ซ˜ๆต้‡่ถŠๅคง๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+pre_close | float | N | ๆ˜จๆ—ฅๆ”ถ็›˜ไปท
+up_limit | float | Y | ๆถจๅœไปท
+down_limit | float | Y | ่ทŒๅœไปท
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎๆถจ่ทŒๅœไปทๆ ผ
+df = pro.stk_limit(trade_date='20190625')
+
+#่Žทๅ–ๅ•ไธช่‚ก็ฅจๆ•ฐๆฎ
+df = pro.stk_limit(ts_code='002149.SZ', start_date='20190115', end_date='20190615')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code up_limit down_limit
+ 0 20190625 000001.SZ 15.06 12.32
+ 1 20190625 000002.SZ 30.94 25.32
+ 2 20190625 000004.SZ 25.15 20.57
+ 3 20190625 000005.SZ 3.49 2.85
+ 4 20190625 000006.SZ 6.14 5.02
+ 5 20190625 000007.SZ 7.74 6.34
+ 6 20190625 000008.SZ 4.28 3.50
+ 7 20190625 000009.SZ 6.36 5.20
+ 8 20190625 000010.SZ 3.51 3.17
+ 9 20190625 000011.SZ 10.58 8.66
+ 10 20190625 000012.SZ 5.16 4.22
+ 11 20190625 000014.SZ 10.98 8.98
+ 12 20190625 000016.SZ 4.81 3.93
+ 13 20190625 000017.SZ 5.15 4.21
+ 14 20190625 000018.SZ 1.44 1.30
+ 15 20190625 000019.SZ 8.09 6.62
+ 16 20190625 000020.SZ 12.21 9.99
+ 17 20190625 000021.SZ 9.30 7.61
+ 18 20190625 000023.SZ 14.61 11.95
+ 19 20190625 000025.SZ 23.08 18.88
+ 20 20190625 000026.SZ 8.66 7.08
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md"
new file mode 100644
index 000000000..e09785735
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\262\252\346\267\261\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md"
@@ -0,0 +1,74 @@
+## ๆฒชๆทฑ่‚ก้€šๅๅคงๆˆไบค่‚ก
+----
+
+ๆŽฅๅฃ๏ผšhsgt_top10
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒช่‚ก้€šใ€ๆทฑ่‚ก้€šๆฏๆ—ฅๅ‰ๅๅคงๆˆไบค่ฏฆ็ป†ๆ•ฐๆฎ๏ผŒๆฏๅคฉ18~20็‚นไน‹้—ดๅฎŒๆˆๅฝ“ๆ—ฅๆ›ดๆ–ฐ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+market_type | str | N | ๅธ‚ๅœบ็ฑปๅž‹๏ผˆ1๏ผšๆฒชๅธ‚ 3๏ผšๆทฑๅธ‚๏ผ‰
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | ่‚ก็ฅจไปฃ็ 
+name | str | ่‚ก็ฅจๅ็งฐ
+close | float | ๆ”ถ็›˜ไปท
+change | float | ๆถจ่ทŒ้ข
+rank | int | ่ต„้‡‘ๆŽ’ๅ
+market_type | str | ๅธ‚ๅœบ็ฑปๅž‹๏ผˆ1๏ผšๆฒชๅธ‚ 3๏ผšๆทฑๅธ‚๏ผ‰
+amount | float | ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+net_amount | float | ๅ‡€ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+buy | float | ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sell | float | ๅ–ๅ‡บ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+pro = ts.pro_api()
+
+pro.hsgt_top10(trade_date='20180725', market_type='1')
+```
+
+ๆˆ–่€…
+
+```python
+
+pro.query('hsgt_top10', ts_code='600519.SH', start_date='20180701', end_date='20180725')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name close change rank market_type \
+ 0 20180725 600009.SH ไธŠๆตทๆœบๅœบ 62.69 2.0677 9 1
+ 1 20180725 600019.SH ๅฎ้’ข่‚กไปฝ 8.62 0.9368 7 1
+ 2 20180725 600036.SH ๆ‹›ๅ•†้“ถ่กŒ 28.22 1.6937 10 1
+ 3 20180725 600276.SH ๆ’็‘žๅŒป่ฏ 71.89 1.2393 5 1
+ 4 20180725 600519.SH ่ดตๅทž่Œ…ๅฐ 743.81 -0.2133 2 1
+ 5 20180725 600585.SH ๆตท่žบๆฐดๆณฅ 38.23 -0.4427 3 1
+ 6 20180725 600690.SH ้’ๅฒ›ๆตทๅฐ” 18.09 0.0000 8 1
+ 7 20180725 600887.SH ไผŠๅˆฉ่‚กไปฝ 27.54 -1.7131 6 1
+ 8 20180725 601318.SH ไธญๅ›ฝๅนณๅฎ‰ 62.16 0.6803 1 1
+ 9 20180725 601888.SH ไธญๅ›ฝๅ›ฝๆ—… 74.19 5.5184 4 1
+
+ amount net_amount buy sell
+ 0 240958518.0 31199144.0 136078831.0 104879687.0
+ 1 245582396.0 81732606.0 163657501.0 81924895.0
+ 2 240655550.0 142328622.0 191492086.0 49163464.0
+ 3 329472455.0 -71519443.0 128976506.0 200495949.0
+ 4 508590993.0 226149667.0 367370330.0 141220663.0
+ 5 357946144.0 51215890.0 204581017.0 153365127.0
+ 6 243840019.0 -55595149.0 94122435.0 149717584.0
+ 7 296552611.0 -40273759.0 128139426.0 168413185.0
+ 8 534002916.0 287838388.0 410920652.0 123082264.0
+ 9 342115066.0 -63262966.0 139426050.0 202689016.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md"
new file mode 100644
index 000000000..8ccbe1b34
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\345\215\201\345\244\247\346\210\220\344\272\244\350\202\241.md"
@@ -0,0 +1,123 @@
+## ๆธฏ่‚ก้€šๅๅคงๆˆไบค่‚ก
+----
+
+ๆŽฅๅฃ๏ผšggt_top10
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบคๆ•ฐๆฎ๏ผŒๅ…ถไธญๅŒ…ๆ‹ฌๆฒชๅธ‚ใ€ๆทฑๅธ‚่ฏฆ็ป†ๆ•ฐๆฎ๏ผŒๆฏๅคฉ18~20็‚นไน‹้—ดๅฎŒๆˆๅฝ“ๆ—ฅๆ›ดๆ–ฐ
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆไบŒ้€‰ไธ€๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+market_type | str | N | ๅธ‚ๅœบ็ฑปๅž‹ 2๏ผšๆธฏ่‚ก้€š๏ผˆๆฒช๏ผ‰ 4๏ผšๆธฏ่‚ก้€š๏ผˆๆทฑ๏ผ‰
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | ่‚ก็ฅจไปฃ็ 
+name | str | ่‚ก็ฅจๅ็งฐ
+close | float | ๆ”ถ็›˜ไปท
+p_change | float | ๆถจ่ทŒๅน…
+rank | int | ่ต„้‡‘ๆŽ’ๅ
+market_type | str | ๅธ‚ๅœบ็ฑปๅž‹ 2๏ผšๆธฏ่‚ก้€š๏ผˆๆฒช๏ผ‰ 4๏ผšๆธฏ่‚ก้€š๏ผˆๆทฑ๏ผ‰
+amount | float | ็ดฏ่ฎกๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+net_amount | float | ๅ‡€ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sh_amount | float | ๆฒชๅธ‚ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sh_net_amount | float | ๆฒชๅธ‚ๅ‡€ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sh_buy | float | ๆฒชๅธ‚ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sh_sell | float | ๆฒชๅธ‚ๅ–ๅ‡บ้‡‘้ข
+sz_amount | float | ๆทฑๅธ‚ๆˆไบค้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sz_net_amount | float | ๆทฑๅธ‚ๅ‡€ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sz_buy | float | ๆทฑๅธ‚ไนฐๅ…ฅ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+sz_sell | float | ๆทฑๅธ‚ๅ–ๅ‡บ้‡‘้ข๏ผˆๅ…ƒ๏ผ‰
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+pro.ggt_top10(trade_date='20180727')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+pro.query('ggt_top10', ts_code='00700', start_date='20180701', end_date='20180727')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ts_code name close p_change rank market_type \
+ 0 20180727 00175 ๅ‰ๅˆฉๆฑฝ่ฝฆ 18.42 -3.2563 4.0 2
+ 1 20180727 00175 ๅ‰ๅˆฉๆฑฝ่ฝฆ 18.42 -3.2563 4.0 4
+ 2 20180727 00581 ไธญๅ›ฝไธœๆ–น้›†ๅ›ข 6.60 5.9390 NaN 4
+ 3 20180727 00607 ไธฐ็››ๆŽง่‚ก 3.48 -2.5210 NaN 4
+ 4 20180727 00700 ่…พ่ฎฏๆŽง่‚ก 373.00 -0.4803 1.0 2
+ 5 20180727 00700 ่…พ่ฎฏๆŽง่‚ก 373.00 -0.4803 1.0 4
+ 6 20180727 00763 ไธญๅ…ด้€š่ฎฏ 13.74 0.8811 NaN 4
+ 7 20180727 00914 ๆตท่žบๆฐดๆณฅ 49.10 2.1852 NaN 4
+ 8 20180727 00939 ๅปบ่ฎพ้“ถ่กŒ 7.11 -0.5594 2.0 2
+ 9 20180727 01088 ไธญๅ›ฝ็ฅžๅŽ 18.24 3.2843 9.0 2
+ 10 20180727 01288 ๅ†œไธš้“ถ่กŒ 3.81 0.0000 5.0 2
+ 11 20180727 01299 ๅ‹้‚ฆไฟ้™ฉ 68.65 0.5124 6.0 2
+ 12 20180727 01317 ๆžซๅถๆ•™่‚ฒ 7.07 1.1445 NaN 4
+ 13 20180727 01398 ๅทฅๅ•†้“ถ่กŒ 5.82 0.0000 3.0 2
+ 14 20180727 01448 ็ฆๅฏฟๅ›ญ 7.60 -4.6424 NaN 4
+ 15 20180727 01918 ่žๅˆ›ไธญๅ›ฝ 25.25 -0.3945 10.0 2
+ 16 20180727 02208 ้‡‘้ฃŽ็ง‘ๆŠ€ 10.30 4.9949 NaN 4
+ 17 20180727 02382 ่ˆœๅฎ‡ๅ…‰ๅญฆ็ง‘ๆŠ€ 138.60 0.8734 8.0 2
+ 18 20180727 02382 ่ˆœๅฎ‡ๅ…‰ๅญฆ็ง‘ๆŠ€ 138.60 0.8734 8.0 4
+ 19 20180727 03988 ไธญๅ›ฝ้“ถ่กŒ 3.69 0.0000 7.0 2
+
+ amount net_amount sh_amount sh_net_amount sh_buy \
+ 0 476991220.0 -71294840.0 182183940.0 -30957820.0 75613060.0
+ 1 294807280.0 -71294840.0 182183940.0 -30957820.0 75613060.0
+ 2 49196800.0 23544640.0 NaN NaN NaN
+ 3 44903050.0 -36431000.0 NaN NaN NaN
+ 4 519061900.0 -219372420.0 383183900.0 -189541460.0 96821220.0
+ 5 654939900.0 -219372420.0 383183900.0 -189541460.0 96821220.0
+ 6 94728576.0 5410088.0 NaN NaN NaN
+ 7 97702200.0 97505000.0 NaN NaN NaN
+ 8 379189670.0 -294782730.0 379189670.0 -294782730.0 42203470.0
+ 9 75536270.0 30045150.0 75536270.0 30045150.0 52790710.0
+ 10 143294570.0 19808330.0 143294570.0 19808330.0 81551450.0
+ 11 114038360.0 -112839500.0 114038360.0 -112839500.0 599430.0
+ 12 50733740.0 13866820.0 NaN NaN NaN
+ 13 237510790.0 162518450.0 237510790.0 162518450.0 200014620.0
+ 14 54901320.0 24257620.0 NaN NaN NaN
+ 15 75175350.0 -4871850.0 75175350.0 -4871850.0 35151750.0
+ 16 83730480.0 775296.0 NaN NaN NaN
+ 17 272358740.0 130884350.0 108526330.0 85936290.0 97231310.0
+ 18 163832410.0 130884350.0 108526330.0 85936290.0 97231310.0
+ 19 108853650.0 -106781530.0 108853650.0 -106781530.0 1036060.0
+
+ sh_sell sz_amount sh_net_amount sz_buy sz_sell
+ 0 106570880.0 112623340.0 -40337020.0 36143160.0 76480180.0
+ 1 106570880.0 112623340.0 -40337020.0 36143160.0 76480180.0
+ 2 NaN 49196800.0 23544640.0 36370720.0 12826080.0
+ 3 NaN 44903050.0 -36431000.0 4236025.0 40667025.0
+ 4 286362680.0 135878000.0 -29830960.0 53023520.0 82854480.0
+ 5 286362680.0 135878000.0 -29830960.0 53023520.0 82854480.0
+ 6 NaN 94728576.0 5410088.0 50069332.0 44659244.0
+ 7 NaN 97702200.0 97505000.0 97603600.0 98600.0
+ 8 336986200.0 NaN NaN NaN NaN
+ 9 22745560.0 NaN NaN NaN NaN
+ 10 61743120.0 NaN NaN NaN NaN
+ 11 113438930.0 NaN NaN NaN NaN
+ 12 NaN 50733740.0 13866820.0 32300280.0 18433460.0
+ 13 37496170.0 NaN NaN NaN NaN
+ 14 NaN 54901320.0 24257620.0 39579470.0 15321850.0
+ 15 40023600.0 NaN NaN NaN NaN
+ 16 NaN 83730480.0 775296.0 42252888.0 41477592.0
+ 17 11295020.0 55306080.0 44948060.0 50127070.0 5179010.0
+ 18 11295020.0 55306080.0 44948060.0 50127070.0 5179010.0
+ 19 107817590.0 NaN NaN NaN NaN
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\227\245\346\210\220\344\272\244\347\273\237\350\256\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\227\245\346\210\220\344\272\244\347\273\237\350\256\241.md"
new file mode 100644
index 000000000..b80325474
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\227\245\346\210\220\344\272\244\347\273\237\350\256\241.md"
@@ -0,0 +1,83 @@
+## ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบค็ปŸ่ฎก
+----
+
+ๆŽฅๅฃ๏ผšggt_daily
+ๆ่ฟฐ๏ผš่Žทๅ–ๆธฏ่‚ก้€šๆฏๆ—ฅๆˆไบคไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2014ๅนดๅผ€ๅง‹
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000๏ผŒๆ€ป้‡ๆ•ฐๆฎไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ2000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ5000็งฏๅˆ†ไปฅไธŠ้ข‘ๆฌก็›ธๅฏน่พƒ้ซ˜๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ ๏ผˆๆ ผๅผYYYYMMDD๏ผŒไธ‹ๅŒใ€‚ๆ”ฏๆŒๅ•ๆ—ฅๅ’Œๅคšๆ—ฅ่พ“ๅ…ฅ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+buy_amount | float | Y | ไนฐๅ…ฅๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+buy_volume | float | Y | ไนฐๅ…ฅๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+sell_amount | float | Y | ๅ–ๅ‡บๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+sell_volume | float | Y | ๅ–ๅ‡บๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจ็ปŸ่ฎก
+df = pro.ggt_daily(trade_date='20190625')
+
+#่Žทๅ–ๅคšๆ—ฅ็ปŸ่ฎกไฟกๆฏ
+df = pro.ggt_daily(trade_date='20190925,20180924,20170925')
+
+#่Žทๅ–ๆ—ถ้—ดๆฎต็ปŸ่ฎกไฟกๆฏ
+df = pro.ggt_daily(start_date='20180925', end_date='20190925)
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date buy_amount buy_volume sell_amount sell_volume
+ 0 20190925 31.22 5.54 27.07 4.55
+ 1 20190924 37.69 5.53 39.14 6.13
+ 2 20190923 26.69 4.43 31.50 5.01
+ 3 20190920 35.62 6.16 33.41 5.49
+ 4 20190919 31.80 5.83 29.34 5.24
+ 5 20190918 26.58 5.27 28.93 6.14
+ 6 20190917 29.92 5.76 32.70 6.30
+ 7 20190916 44.19 7.78 50.91 8.97
+ 8 20190910 30.79 6.04 32.89 5.99
+ 9 20190909 35.48 7.01 34.05 6.44
+ 10 20190906 39.46 6.98 29.47 6.07
+ 11 20190905 57.00 10.46 37.84 7.31
+ 12 20190904 49.68 8.43 43.17 6.17
+ 13 20190903 33.44 6.46 23.18 4.73
+ 14 20190902 43.02 6.91 28.06 5.64
+ 15 20190830 35.94 6.51 26.58 6.10
+ 16 20190829 39.11 6.89 24.95 4.60
+ 17 20190828 39.04 7.46 27.54 5.09
+ 18 20190827 44.36 9.44 23.12 4.84
+ 19 20190826 55.89 9.23 22.58 4.40
+ 20 20190823 33.91 6.28 18.83 4.66
+ 21 20190822 38.21 7.38 19.00 4.38
+ 22 20190821 35.38 6.42 20.39 3.77
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\234\210\346\210\220\344\272\244\347\273\237\350\256\241.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\234\210\346\210\220\344\272\244\347\273\237\350\256\241.md"
new file mode 100644
index 000000000..af8d51a0a
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\346\270\257\350\202\241\351\200\232\346\257\217\346\234\210\346\210\220\344\272\244\347\273\237\350\256\241.md"
@@ -0,0 +1,83 @@
+## ๆธฏ่‚ก้€šๆฏๆœˆๆˆไบค็ปŸ่ฎก
+----
+
+ๆŽฅๅฃ๏ผšggt_monthly
+ๆ่ฟฐ๏ผšๆธฏ่‚ก้€šๆฏๆœˆๆˆไบคไฟกๆฏ๏ผŒๆ•ฐๆฎไปŽ2014ๅนดๅผ€ๅง‹
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000
+็งฏๅˆ†๏ผš็”จๆˆท็งฏ5000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+month | str | N | ๆœˆๅบฆ๏ผˆๆ ผๅผYYYYMM๏ผŒไธ‹ๅŒ๏ผŒๆ”ฏๆŒๅคšไธช่พ“ๅ…ฅ๏ผ‰
+start_month | str | N | ๅผ€ๅง‹ๆœˆๅบฆ
+end_month | str | N | ็ป“ๆŸๆœˆๅบฆ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+month | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+day_buy_amt | float | Y | ๅฝ“ๆœˆๆ—ฅๅ‡ไนฐๅ…ฅๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+day_buy_vol | float | Y | ๅฝ“ๆœˆๆ—ฅๅ‡ไนฐๅ…ฅๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+day_sell_amt | float | Y | ๅฝ“ๆœˆๆ—ฅๅ‡ๅ–ๅ‡บๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+day_sell_vol | float | Y | ๅฝ“ๆœˆๆ—ฅๅ‡ๅ–ๅ‡บๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+total_buy_amt | float | Y | ๆ€ปไนฐๅ…ฅๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+total_buy_vol | float | Y | ๆ€ปไนฐๅ…ฅๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+total_sell_amt | float | Y | ๆ€ปๅ–ๅ‡บๆˆไบค้‡‘้ข๏ผˆไบฟๅ…ƒ๏ผ‰
+total_sell_vol | float | Y | ๆ€ปๅ–ๅ‡บๆˆไบค็ฌ”ๆ•ฐ๏ผˆไธ‡็ฌ”๏ผ‰
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆœˆๅ…จ้ƒจ็ปŸ่ฎก
+df = pro.ggt_monthly(trade_date='201906')
+
+#่Žทๅ–ๅคšๆœˆ็ปŸ่ฎกไฟกๆฏ
+df = pro.ggt_monthly(trade_date='201906,201907,201709')
+
+#่Žทๅ–ๆ—ถ้—ดๆฎต็ปŸ่ฎกไฟกๆฏ
+df = pro.ggt_monthly(start_date='201809', end_date='201908')
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ month day_buy_amt ... total_sell_amt total_sell_vol
+ 0 201908 37.77 ... 450.97 96.62
+ 1 201907 21.84 ... 382.55 80.20
+ 2 201906 27.45 ... 379.76 84.01
+ 3 201905 32.58 ... 473.15 96.49
+ 4 201904 37.52 ... 574.37 107.81
+ 5 201903 40.92 ... 734.38 137.88
+ 6 201902 34.70 ... 601.37 102.96
+ 7 201901 21.44 ... 481.81 121.27
+ 8 201812 19.56 ... 299.61 65.57
+ 9 201811 20.44 ... 496.59 112.33
+ 10 201810 31.36 ... 453.75 96.50
+ 11 201809 26.58 ... 334.69 66.25
+ 12 201808 25.67 ... 772.85 122.83
+ 13 201807 25.25 ... 569.46 98.26
+ 14 201806 28.27 ... 689.56 119.53
+ 15 201805 29.71 ... 716.09 118.85
+ 16 201804 30.49 ... 502.29 86.25
+ 17 201803 38.74 ... 879.75 141.66
+ 18 201802 75.70 ... 787.44 105.01
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\351\200\232\347\224\250\350\241\214\346\203\205\346\216\245\345\217\243.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\351\200\232\347\224\250\350\241\214\346\203\205\346\216\245\345\217\243.md"
new file mode 100644
index 000000000..0af634f28
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\241\214\346\203\205\346\225\260\346\215\256/\351\200\232\347\224\250\350\241\214\346\203\205\346\216\245\345\217\243.md"
@@ -0,0 +1,127 @@
+
+## ้€š็”จ่กŒๆƒ…ๆŽฅๅฃ
+----
+
+**ๆŽฅๅฃๅ็งฐ**๏ผšpro_bar๏ผŒๆœฌๆŽฅๅฃๆ˜ฏ้›†ๆˆๅผ€ๅ‘ๆŽฅๅฃ๏ผŒ้ƒจๅˆ†ๆŒ‡ๆ ‡ๆ˜ฏ็Žฐ็”จ็Žฐ็ฎ—
+**ๆ›ดๆ–ฐๆ—ถ้—ด**๏ผš่‚ก็ฅจๅ’ŒๆŒ‡ๆ•ฐ้€šๅธธๅœจ15็‚น๏ฝž17็‚นไน‹้—ด๏ผŒๆ•ฐๅญ—่ดงๅธๅฎžๆ—ถๆ›ดๆ–ฐ๏ผŒๅ…ทไฝ“่ฏทๅ‚่€ƒๅ„ๆŽฅๅฃๆ–‡ๆกฃๆ˜Ž็ป†ใ€‚
+**ๆ่ฟฐ**๏ผš็›ฎๅ‰ๆ•ดๅˆไบ†่‚ก็ฅจ๏ผˆๆœชๅคๆƒใ€ๅ‰ๅคๆƒใ€ๅŽๅคๆƒ๏ผ‰ใ€ๆŒ‡ๆ•ฐใ€ๆ•ฐๅญ—่ดงๅธใ€ETFๅŸบ้‡‘ใ€ๆœŸ่ดงใ€ๆœŸๆƒ็š„่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๆœชๆฅ่ฟ˜ๅฐ†ๆ•ดๅˆๅŒ…ๆ‹ฌๅค–ๆฑ‡ๅœจๅ†…็š„ๆ‰€ๆœ‰ไบคๆ˜“่กŒๆƒ…ๆ•ฐๆฎ๏ผŒๅŒๆ—ถๆไพ›ๅˆ†้’Ÿๆ•ฐๆฎใ€‚ไธๅŒๆ•ฐๆฎๅฏนๅบ”ไธๅŒ็š„็งฏๅˆ†่ฆๆฑ‚๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…ๆฏ็ฑปๆ•ฐๆฎ็š„ๆ–‡ๆกฃ่ฏดๆ˜Žใ€‚
+**ๅ…ถๅฎƒ**๏ผš็”ฑไบŽๆœฌๆŽฅๅฃๆ˜ฏ้›†ๆˆๆŽฅๅฃ๏ผŒๅœจSDKๅฑ‚ๅšไบ†ไธ€ไบ›้€ป่พ‘ๅค„็†๏ผŒ็›ฎๅ‰ๆš‚ๆ—ถๆฒกๆณ•็”จhttp็š„ๆ–นๅผ่ฐƒๅ–้€š็”จ่กŒๆƒ…ๆŽฅๅฃใ€‚็”จๆˆทๅฏไปฅ่ฎฟ้—ฎTushare็š„Github๏ผŒๆŸฅ็œ‹ๆบไปฃ็ ๅฎŒๆˆ็ฑปไผผๅŠŸ่ƒฝใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่ฏๅˆธไปฃ็ ๏ผŒไธๆ”ฏๆŒๅคšๅ€ผ่พ“ๅ…ฅ๏ผŒๅคšๅ€ผ่พ“ๅ…ฅ่Žทๅ–็ป“ๆžœไผšๆœ‰้‡ๅค่ฎฐๅฝ•
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ (ๆ—ฅ็บฟๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆๅ–ๅˆ†้’Ÿๆ•ฐๆฎ่ฏท็”จ2019-09-01 09:00:00่ฟ™็งๆ ผๅผ)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ (ๆ—ฅ็บฟๆ ผๅผ๏ผšYYYYMMDD)
+asset | str | Y | ่ต„ไบง็ฑปๅˆซ๏ผšE่‚ก็ฅจ IๆฒชๆทฑๆŒ‡ๆ•ฐ Cๆ•ฐๅญ—่ดงๅธ FTๆœŸ่ดง FDๅŸบ้‡‘ OๆœŸๆƒ CBๅฏ่ฝฌๅ€บ๏ผˆv1.2.39๏ผ‰๏ผŒ้ป˜่ฎคE
+adj | str | N | ๅคๆƒ็ฑปๅž‹(ๅช้’ˆๅฏน่‚ก็ฅจ)๏ผšNoneๆœชๅคๆƒ qfqๅ‰ๅคๆƒ hfqๅŽๅคๆƒ , ้ป˜่ฎคNone๏ผŒ**็›ฎๅ‰ๅชๆ”ฏๆŒๆ—ฅ็บฟๅคๆƒ**๏ผŒๅŒๆ—ถๅคๆƒๆœบๅˆถๆ˜ฏๆ นๆฎ่ฎพๅฎš็š„end_dateๅ‚ๆ•ฐๅŠจๆ€ๅคๆƒ๏ผŒ้‡‡็”จๅˆ†็บขๅ†ๆŠ•ๆจกๅผ๏ผŒๅ…ทไฝ“่ฏทๅ‚่€ƒ[ๅธธ่ง้—ฎ้ข˜ๅˆ—่กจ](https://tushare.pro/document/1?doc_id=122)้‡Œ็š„่ฏดๆ˜Žใ€‚
+freq | str | Y | ๆ•ฐๆฎ้ข‘ๅบฆ ๏ผšๆ”ฏๆŒๅˆ†้’Ÿ(min)/ๆ—ฅ(D)/ๅ‘จ(W)/ๆœˆ(M)K็บฟ๏ผŒๅ…ถไธญ1min่กจ็คบ1ๅˆ†้’Ÿ๏ผˆ็ฑปๆŽจ1/5/15/30/60ๅˆ†้’Ÿ๏ผ‰ ๏ผŒ้ป˜่ฎคDใ€‚ๅฏนไบŽๅˆ†้’Ÿๆ•ฐๆฎๆœ‰600็งฏๅˆ†็”จๆˆทๅฏไปฅ่ฏ•็”จ๏ผˆ่ฏทๆฑ‚2ๆฌก๏ผ‰๏ผŒๆญฃๅผๆƒ้™ๅฏไปฅๅ‚่€ƒ<a href="https://tushare.pro/document/1?doc_id=290"><u>ๆƒ้™ๅˆ—่กจ่ฏดๆ˜Ž</u></a></font> ๏ผŒไฝฟ็”จๆ–นๆณ•่ฏทๅ‚่€ƒ<a href="https://tushare.pro/document/1?doc_id=234">่‚ก็ฅจๅˆ†้’Ÿไฝฟ็”จๆ–นๆณ•</a>ใ€‚
+ma | list | N | ๅ‡็บฟ๏ผŒๆ”ฏๆŒไปปๆ„ๅˆ็†intๆ•ฐๅ€ผใ€‚ๆณจ๏ผšๅ‡็บฟๆ˜ฏๅŠจๆ€่ฎก็ฎ—๏ผŒ่ฆ่ฎพ็ฝฎไธ€ๅฎšๆ—ถ้—ด่Œƒๅ›ดๆ‰่ƒฝ่Žทๅพ—็›ธๅบ”็š„ๅ‡็บฟ๏ผŒๆฏ”ๅฆ‚5ๆ—ฅๅ‡็บฟ๏ผŒๅผ€ๅง‹ๅ’Œ็ป“ๆŸๆ—ฅๆœŸๅ‚ๆ•ฐ่ทจๅบฆๅฟ…้กป่ฆ่ถ…่ฟ‡5ๆ—ฅใ€‚็›ฎๅ‰ๅชๆ”ฏๆŒๅ•ไธ€ไธช่‚ก็ฅจๆๅ–ๅ‡็บฟ๏ผŒๅณ้œ€่ฆ่พ“ๅ…ฅts_codeๅ‚ๆ•ฐใ€‚e.g: ma_5่กจ็คบ5ๆ—ฅๅ‡ไปท๏ผŒma_v_5่กจ็คบ5ๆ—ฅๅ‡้‡
+factors | list | N | ่‚ก็ฅจๅ› ๅญ๏ผˆasset='E'ๆœ‰ๆ•ˆ๏ผ‰ๆ”ฏๆŒ torๆขๆ‰‹็އ vr้‡ๆฏ”
+adjfactor | str | N | ๅคๆƒๅ› ๅญ๏ผŒๅœจๅคๆƒๆ•ฐๆฎๆ—ถ๏ผŒๅฆ‚ๆžœๆญคๅ‚ๆ•ฐไธบTrue๏ผŒ่ฟ”ๅ›ž็š„ๆ•ฐๆฎไธญๅˆ™ๅธฆๅคๆƒๅ› ๅญ๏ผŒ้ป˜่ฎคไธบFalseใ€‚ ่ฏฅๅŠŸ่ƒฝไปŽ1.2.33็‰ˆๆœฌๅผ€ๅง‹็”Ÿๆ•ˆ
+
+
+<br>
+
+**่พ“ๅ‡บๆŒ‡ๆ ‡**
+
+ๅ…ทไฝ“่พ“ๅ‡บ็š„ๆ•ฐๆฎๆŒ‡ๆ ‡ๅฏๅ‚่€ƒๅ„่กŒๆƒ…ๅ…ทไฝ“ๆŒ‡ๆ ‡๏ผš
+
+่‚ก็ฅจDaily๏ผš<a href="https://tushare.pro/document/2?doc_id=27">https://tushare.pro/document/2?doc_id=27</a>
+
+ๅŸบ้‡‘Daily๏ผš<a href="https://tushare.pro/document/2?doc_id=127">https://tushare.pro/document/2?doc_id=127</a>
+
+ๆœŸ่ดงDaily๏ผš<a href="https://tushare.pro/document/2?doc_id=138">https://tushare.pro/document/2?doc_id=138</a>
+
+ๆœŸๆƒDaily๏ผš<a href="https://tushare.pro/document/2?doc_id=159">https://tushare.pro/document/2?doc_id=159</a>
+
+ๆŒ‡ๆ•ฐDaily๏ผš<a href="https://tushare.pro/document/2?doc_id=95">https://tushare.pro/document/2?doc_id=95</a>
+
+
+
+**ๆŽฅๅฃ็”จไพ‹**
+
+```python
+
+#ๅ–000001็š„ๅ‰ๅคๆƒ่กŒๆƒ…
+df = ts.pro_bar(ts_code='000001.SZ', adj='qfq', start_date='20180101', end_date='20181011')
+
+ ts_code trade_date open high low close \
+trade_date
+20181011 000001.SZ 20181011 1085.71 1097.59 1047.90 1065.19
+20181010 000001.SZ 20181010 1138.65 1151.61 1121.36 1128.92
+20181009 000001.SZ 20181009 1130.00 1155.93 1122.44 1140.81
+20181008 000001.SZ 20181008 1155.93 1165.65 1128.92 1128.92
+20180928 000001.SZ 20180928 1164.57 1217.51 1164.57 1193.74
+
+```
+
+
+<br>
+<br>
+
+
+```python
+
+#ๅ–ไธŠ่ฏๆŒ‡ๆ•ฐ่กŒๆƒ…ๆ•ฐๆฎ
+
+df = ts.pro_bar(ts_code='000001.SH', asset='I', start_date='20180101', end_date='20181011')
+
+In [10]: df.head()
+Out[10]:
+ ts_code trade_date close open high low \
+0 000001.SH 20181011 2583.4575 2643.0740 2661.2859 2560.3164
+1 000001.SH 20181010 2725.8367 2723.7242 2743.5480 2703.0626
+2 000001.SH 20181009 2721.0130 2713.7319 2734.3142 2711.1971
+3 000001.SH 20181008 2716.5104 2768.2075 2771.9384 2710.1781
+4 000001.SH 20180928 2821.3501 2794.2644 2821.7553 2791.8363
+
+ pre_close change pct_chg vol amount
+0 2725.8367 -142.3792 -5.2233 197150702.0 170057762.5
+1 2721.0130 4.8237 0.1773 113485736.0 111312455.3
+2 2716.5104 4.5026 0.1657 116771899.0 110292457.8
+3 2821.3501 -104.8397 -3.7159 149501388.0 141531551.8
+4 2791.7748 29.5753 1.0594 134290456.0 125369989.4
+
+```
+
+<br>
+<br>
+
+```python
+
+#ๅ‡็บฟ
+
+df = ts.pro_bar(ts_code='000001.SZ', start_date='20180101', end_date='20181011', ma=[5, 20, 50])
+
+```
+ๆณจ๏ผšTushare pro_barๆŽฅๅฃ็š„ๅ‡ไปทๅ’Œๅ‡้‡ๆ•ฐๆฎๆ˜ฏๅŠจๆ€่ฎก็ฎ—๏ผŒๆƒณ่ฆ่Žทๅ–ๆŸไธชๆ—ถ้—ดๆฎต็š„ๅ‡็บฟ๏ผŒๅฟ…้กป่ฆ่ฎพ็ฝฎstart_dateๆ—ฅๆœŸๅคงไบŽๆœ€ๅคงๅ‡็บฟ็š„ๆ—ฅๆœŸๆ•ฐ๏ผŒ็„ถๅŽ่‡ช่กŒๆˆชๅ–ๆƒณ่ฆๆ—ฅๆœŸๆฎตใ€‚ไพ‹ๅฆ‚๏ผŒๆƒณ่ฆ่Žทๅ–20190801ๅผ€ๅง‹็š„3ๆ—ฅๅ‡็บฟ๏ผŒๅฟ…้กป่ฎพ็ฝฎstart_date='20190729'๏ผŒ็„ถๅŽๅ‰”้™ค20190801ไน‹ๅ‰็š„ๆ—ฅๆœŸ่ฎฐๅฝ•ใ€‚
+
+
+<br>
+<br>
+
+```python
+
+#ๆขๆ‰‹็އtor๏ผŒ้‡ๆฏ”vr
+
+df = ts.pro_bar(ts_code='000001.SZ', start_date='20180101', end_date='20181011', factors=['tor', 'vr'])
+
+```
+
+<br>
+<br>
+
+
+**่ฏดๆ˜Ž**
+
+ๅฏนไบŽpro_apiๅ‚ๆ•ฐ๏ผŒๅฆ‚ๆžœๅœจไธ€ๅผ€ๅง‹ๅฐฑ้€š่ฟ‡ ts.set_token('xxxx') ่ฎพ็ฝฎ่ฟ‡token็š„ๆƒ…ๅ†ต๏ผŒ่ฟ™ไธชๅ‚ๆ•ฐๅฐฑไธๆ˜ฏๅฟ…้œ€็š„ใ€‚
+
+ไพ‹ๅฆ‚๏ผš
+
+```python
+
+df = ts.pro_bar(ts_code='000001.SH', asset='I', start_date='20180101', end_date='20181011')
+
+```
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\345\277\253\346\212\245.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\345\277\253\346\212\245.md"
new file mode 100644
index 000000000..e29793ea8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\345\277\253\346\212\245.md"
@@ -0,0 +1,83 @@
+## ไธš็ปฉๅฟซๆŠฅ
+----
+
+ๆŽฅๅฃ๏ผšexpress
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธไธš็ปฉๅฟซๆŠฅ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จexpress_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ,ๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ๏ผŒ20170630ๅŠๅนดๆŠฅ๏ผŒ20170930ไธ‰ๅญฃๆŠฅ)
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+revenue | float | ่ฅไธšๆ”ถๅ…ฅ(ๅ…ƒ)
+operate_profit | float | ่ฅไธšๅˆฉๆถฆ(ๅ…ƒ)
+total_profit | float | ๅˆฉๆถฆๆ€ป้ข(ๅ…ƒ)
+n_income | float | ๅ‡€ๅˆฉๆถฆ(ๅ…ƒ)
+total_assets | float | ๆ€ป่ต„ไบง(ๅ…ƒ)
+total_hldr_eqy_exc_min_int | float | ่‚กไธœๆƒ็›Šๅˆ่ฎก(ไธๅซๅฐ‘ๆ•ฐ่‚กไธœๆƒ็›Š)(ๅ…ƒ)
+diluted_eps | float | ๆฏ่‚กๆ”ถ็›Š(ๆ‘Š่–„)(ๅ…ƒ)
+diluted_roe | float | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(ๆ‘Š่–„)(%)
+yoy_net_profit | float | ๅŽปๅนดๅŒๆœŸไฟฎๆญฃๅŽๅ‡€ๅˆฉๆถฆ
+bps | float | ๆฏ่‚กๅ‡€่ต„ไบง
+yoy_sales | float | ๅŒๆฏ”ๅขž้•ฟ็އ:่ฅไธšๆ”ถๅ…ฅ
+yoy_op | float | ๅŒๆฏ”ๅขž้•ฟ็އ:่ฅไธšๅˆฉๆถฆ
+yoy_tp | float | ๅŒๆฏ”ๅขž้•ฟ็އ:ๅˆฉๆถฆๆ€ป้ข
+yoy_dedu_np | float | ๅŒๆฏ”ๅขž้•ฟ็އ:ๅฝ’ๅฑžๆฏๅ…ฌๅธ่‚กไธœ็š„ๅ‡€ๅˆฉๆถฆ
+yoy_eps | float | ๅŒๆฏ”ๅขž้•ฟ็އ:ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š
+yoy_roe | float | ๅŒๆฏ”ๅขžๅ‡:ๅŠ ๆƒๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+growth_assets | float | ๆฏ”ๅนดๅˆๅขž้•ฟ็އ:ๆ€ป่ต„ไบง
+yoy_equity | float | ๆฏ”ๅนดๅˆๅขž้•ฟ็އ:ๅฝ’ๅฑžๆฏๅ…ฌๅธ็š„่‚กไธœๆƒ็›Š
+growth_bps | float | ๆฏ”ๅนดๅˆๅขž้•ฟ็އ:ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ่‚กไธœ็š„ๆฏ่‚กๅ‡€่ต„ไบง
+or_last_year | float | ๅŽปๅนดๅŒๆœŸ่ฅไธšๆ”ถๅ…ฅ
+op_last_year | float | ๅŽปๅนดๅŒๆœŸ่ฅไธšๅˆฉๆถฆ
+tp_last_year | float | ๅŽปๅนดๅŒๆœŸๅˆฉๆถฆๆ€ป้ข
+np_last_year | float | ๅŽปๅนดๅŒๆœŸๅ‡€ๅˆฉๆถฆ
+eps_last_year | float | ๅŽปๅนดๅŒๆœŸๆฏ่‚กๆ”ถ็›Š
+open_net_assets | float | ๆœŸๅˆๅ‡€่ต„ไบง
+open_bps | float | ๆœŸๅˆๆฏ่‚กๅ‡€่ต„ไบง
+perf_summary | str | ไธš็ปฉ็ฎ€่ฆ่ฏดๆ˜Ž
+is_audit | int | ๆ˜ฏๅฆๅฎก่ฎก๏ผš 1ๆ˜ฏ 0ๅฆ
+remark | str | ๅค‡ๆณจ
+
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+pro.express(ts_code='600000.SH', start_date='20180101', end_date='20180701', fields='ts_code,ann_date,end_date,revenue,operate_profit,total_profit,n_income,total_assets')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```python
+
+df = pro.express_vip(period='20181231',fields='ts_code,ann_date,end_date,revenue,operate_profit,total_profit,n_income,total_assets')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date revenue operate_profit total_profit n_income total_assets \
+ 0 603535.SH 20180411 20180331 2.064659e+08 3.345047e+07 3.340047e+07 2.672643e+07 1.682111e+09
+ 1 603535.SH 20180208 20171231 1.034262e+09 1.323373e+08 1.440493e+08 1.188325e+08 1.710466e+09
+ 2 603535.SH 20171016 20170930 7.064117e+08 9.509520e+07 9.931530e+07 8.202480e+07 1.672986e+09
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\351\242\204\345\221\212.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\351\242\204\345\221\212.md"
new file mode 100644
index 000000000..25c3a20e1
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\232\347\273\251\351\242\204\345\221\212.md"
@@ -0,0 +1,80 @@
+## ไธš็ปฉ้ข„ๅ‘Š
+----
+
+ๆŽฅๅฃ๏ผšforecast๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธš็ปฉ้ข„ๅ‘Šๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จforecast_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ (ไบŒ้€‰ไธ€)
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ (ไบŒ้€‰ไธ€)
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ๏ผŒ20170630ๅŠๅนดๆŠฅ๏ผŒ20170930ไธ‰ๅญฃๆŠฅ)
+type | str | N | ้ข„ๅ‘Š็ฑปๅž‹(้ข„ๅขž/้ข„ๅ‡/ๆ‰ญไบ/้ฆ–ไบ/็ปญไบ/็ปญ็›ˆ/็•ฅๅขž/็•ฅๅ‡)
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+type | str | ไธš็ปฉ้ข„ๅ‘Š็ฑปๅž‹(้ข„ๅขž/้ข„ๅ‡/ๆ‰ญไบ/้ฆ–ไบ/็ปญไบ/็ปญ็›ˆ/็•ฅๅขž/็•ฅๅ‡)
+p_change_min | float | ้ข„ๅ‘Šๅ‡€ๅˆฉๆถฆๅ˜ๅŠจๅน…ๅบฆไธ‹้™๏ผˆ%๏ผ‰
+p_change_max | float | ้ข„ๅ‘Šๅ‡€ๅˆฉๆถฆๅ˜ๅŠจๅน…ๅบฆไธŠ้™๏ผˆ%๏ผ‰
+net_profit_min | float | ้ข„ๅ‘Šๅ‡€ๅˆฉๆถฆไธ‹้™๏ผˆไธ‡ๅ…ƒ๏ผ‰
+net_profit_max | float | ้ข„ๅ‘Šๅ‡€ๅˆฉๆถฆไธŠ้™๏ผˆไธ‡ๅ…ƒ๏ผ‰
+last_parent_net | float | ไธŠๅนดๅŒๆœŸๅฝ’ๅฑžๆฏๅ…ฌๅธๅ‡€ๅˆฉๆถฆ
+first_ann_date | str | ้ฆ–ๆฌกๅ…ฌๅ‘Šๆ—ฅ
+summary | str | ไธš็ปฉ้ข„ๅ‘Šๆ‘˜่ฆ
+change_reason | str | ไธš็ปฉๅ˜ๅŠจๅŽŸๅ› 
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+pro.forecast(ann_date='20190131', fields='ts_code,ann_date,end_date,type,p_change_min,p_change_max,net_profit_min')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```python
+
+df = pro.forecast_vip(period='20181231',fields='ts_code,ann_date,end_date,type,p_change_min,p_change_max,net_profit_min')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date type p_change_min p_change_max \
+ 0 000005.SZ 20190131 20181231 ้ข„ๅขž 618.5600 945.1800
+ 1 000825.SZ 20190131 20181231 ็•ฅๅขž 3.8500 12.5100
+ 2 000566.SZ 20190131 20181231 ้ข„ๅขž 50.0000 100.0000
+ 3 000932.SZ 20190131 20181231 ้ข„ๅขž 60.8864 68.1664
+ 4 000557.SZ 20190131 20181231 ้ข„ๅขž 66.6800 66.6800
+ 5 600127.SH 20190131 20181231 ้ฆ–ไบ -601.5517 -510.3604
+ 6 600159.SH 20190131 20181231 ้ข„ๅขž 315.0000 315.0000
+ 7 600963.SH 20190131 20181231 ็•ฅๅขž 2.3800 11.5800
+ 8 002336.SZ 20190131 20181231 ็ปญไบ 33.1367 47.9952
+ 9 601608.SH 20190131 20181231 ้ข„ๅขž 228.5900 274.5700
+ 10 600531.SH 20190131 20181231 ้ข„ๅ‡ -61.8800 -54.3200
+ 11 300200.SZ 20190131 20181231 ้ข„ๅขž 82.4000 112.4000
+ 12 300441.SZ 20190131 20181231 ็•ฅๅ‡ -20.5100 -0.6400
+ 13 300157.SZ 20190131 20181231 ๆ‰ญไบ 107.3969 108.5176
+ 14 300052.SZ 20190131 20181231 ็•ฅๅ‡ -30.0000 0.0000
+ 15 002328.SZ 20190131 20181231 ็•ฅๅขž 0.0000 20.0000
+ 16 300420.SZ 20190131 20181231 ้ข„ๅขž 61.1500 90.8000
+ 17 300109.SZ 20190131 20181231 ็ปญ็›ˆ -13.8100 7.7300
+ 18 300479.SZ 20190131 20181231 ็•ฅๅ‡ -35.8400 -6.6700
+ 19 000402.SZ 20190131 20181231 ็•ฅๅขž 1.0000 10.0000
+ 20 002626.SZ 20190131 20181231 ็•ฅๅขž 37.1200 47.6600
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\273\350\220\245\344\270\232\345\212\241\346\236\204\346\210\220.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\273\350\220\245\344\270\232\345\212\241\346\236\204\346\210\220.md"
new file mode 100644
index 000000000..8bef3aeec
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\344\270\273\350\220\245\344\270\232\345\212\241\346\236\204\346\210\220.md"
@@ -0,0 +1,59 @@
+## ไธป่ฅไธšๅŠกๆž„ๆˆ
+----
+
+ๆŽฅๅฃ๏ผšfina_mainbz
+ๆ่ฟฐ๏ผš่Žทๅพ—ไธŠๅธ‚ๅ…ฌๅธไธป่ฅไธšๅŠกๆž„ๆˆ๏ผŒๅˆ†ๅœฐๅŒบๅ’Œไบงๅ“ไธค็งๆ–นๅผ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13) ๏ผŒๅ•ๆฌกๆœ€ๅคงๆๅ–100่กŒ๏ผŒๆ€ป้‡ไธ้™ๅˆถ๏ผŒๅฏๅพช็Žฏ่Žทๅ–ใ€‚
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จfina_mainbz_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ,ๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ)
+type | str | N | ็ฑปๅž‹๏ผšPๆŒ‰ไบงๅ“ DๆŒ‰ๅœฐๅŒบ IๆŒ‰่กŒไธš๏ผˆ่ฏท่พ“ๅ…ฅๅคงๅ†™ๅญ—ๆฏPๆˆ–่€…D๏ผ‰
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TSไปฃ็ 
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+bz_item | str | ไธป่ฅไธšๅŠกๆฅๆบ
+bz_sales | float | ไธป่ฅไธšๅŠกๆ”ถๅ…ฅ(ๅ…ƒ)
+bz_profit | float | ไธป่ฅไธšๅŠกๅˆฉๆถฆ(ๅ…ƒ)
+bz_cost | float | ไธป่ฅไธšๅŠกๆˆๆœฌ(ๅ…ƒ)
+curr_type | str | ่ดงๅธไปฃ็ 
+update_flag | str | ๆ˜ฏๅฆๆ›ดๆ–ฐ
+
+**ไปฃ็ ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fina_mainbz(ts_code='000627.SZ', type='P')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```python
+
+df = pro.fina_mainbz_vip(period='20181231', type='P' ,fields='ts_code,end_date,bz_item,bz_sales')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code end_date bz_item bz_sales bz_profit bz_cost curr_type
+ 0 000627.SZ 20171231 ๅ…ถไป–ไบงๅ“ 1.847507e+08 None None CNY
+ 1 000627.SZ 20171231 ๅ…ถไป–ไธป่ฅไธšๅŠก 1.847507e+08 None None CNY
+ 2 000627.SZ 20171231 ่šไธ™็ƒฏ 6.629111e+07 None None CNY
+ 3 000627.SZ 20171231 ๅŽŸๆ–™่ฏไบงๅ“ 2.685909e+08 None None CNY
+ 4 000627.SZ 20171231 ไฟ้™ฉไธšๅŠก 5.288595e+10 None None CNY
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\206\347\272\242\351\200\201\350\202\241\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\206\347\272\242\351\200\201\350\202\241\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..544051b86
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\206\347\272\242\351\200\201\350\202\241\346\225\260\346\215\256.md"
@@ -0,0 +1,71 @@
+## ๅˆ†็บข้€่‚ก
+----
+
+ๆŽฅๅฃ๏ผšdividend
+ๆ่ฟฐ๏ผšๅˆ†็บข้€่‚กๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TSไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅ
+record_date | str | N | ่‚กๆƒ็™ป่ฎฐๆ—ฅๆœŸ
+ex_date | str | N | ้™คๆƒ้™คๆฏๆ—ฅ
+imp_ann_date | str | N | ๅฎžๆ–ฝๅ…ฌๅ‘Šๆ—ฅ
+
+<br>
+
+ไปฅไธŠๅ‚ๆ•ฐ่‡ณๅฐ‘ๆœ‰ไธ€ไธชไธ่ƒฝไธบ็ฉบ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+end_date | str | Y | ๅˆ†็บขๅนดๅบฆ
+ann_date | str | Y | ้ข„ๆกˆๅ…ฌๅ‘Šๆ—ฅ
+div_proc | str | Y | ๅฎžๆ–ฝ่ฟ›ๅบฆ
+stk_div | float | Y | ๆฏ่‚ก้€่ฝฌ
+stk_bo_rate | float | Y | ๆฏ่‚ก้€่‚กๆฏ”ไพ‹
+stk_co_rate | float | Y | ๆฏ่‚ก่ฝฌๅขžๆฏ”ไพ‹
+cash_div | float | Y | ๆฏ่‚กๅˆ†็บข๏ผˆ็จŽๅŽ๏ผ‰
+cash_div_tax | float | Y | ๆฏ่‚กๅˆ†็บข๏ผˆ็จŽๅ‰๏ผ‰
+record_date | str | Y | ่‚กๆƒ็™ป่ฎฐๆ—ฅ
+ex_date | str | Y | ้™คๆƒ้™คๆฏๆ—ฅ
+pay_date | str | Y | ๆดพๆฏๆ—ฅ
+div_listdate | str | Y | ็บข่‚กไธŠๅธ‚ๆ—ฅ
+imp_ann_date | str | Y | ๅฎžๆ–ฝๅ…ฌๅ‘Šๆ—ฅ
+base_date | str | N | ๅŸบๅ‡†ๆ—ฅ
+base_share | float | N | ๅŸบๅ‡†่‚กๆœฌ๏ผˆไธ‡๏ผ‰
+
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.dividend(ts_code='600848.SH', fields='ts_code,div_proc,stk_div,record_date,ex_date')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+```python
+
+ ts_code div_proc stk_div record_date ex_date
+ 0 600848.SH ๅฎžๆ–ฝ 0.10 19950606 19950607
+ 1 600848.SH ๅฎžๆ–ฝ 0.10 19970707 19970708
+ 2 600848.SH ๅฎžๆ–ฝ 0.15 19960701 19960702
+ 3 600848.SH ๅฎžๆ–ฝ 0.10 19980706 19980707
+ 4 600848.SH ้ข„ๆกˆ 0.00 None None
+ 5 600848.SH ๅฎžๆ–ฝ 0.00 20180522 20180523
+
+```
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\251\346\266\246\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\251\346\266\246\350\241\250.md"
new file mode 100644
index 000000000..d9ceac1c0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\345\210\251\346\266\246\350\241\250.md"
@@ -0,0 +1,168 @@
+## ๅˆฉๆถฆ่กจ
+----
+
+ๆŽฅๅฃ๏ผšincome๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๅˆฉๆถฆ่กจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จincome_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+f_ann_date | str | N | ๅฎž้™…ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Šๆ—ฅ็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ๏ผŒ20170630ๅŠๅนดๆŠฅ๏ผŒ20170930ไธ‰ๅญฃๆŠฅ)
+report_type | str | N | ๆŠฅๅ‘Š็ฑปๅž‹๏ผŒๅ‚่€ƒๆ–‡ๆกฃๆœ€ไธ‹ๆ–น่ฏดๆ˜Ž
+comp_type | str | N | ๅ…ฌๅธ็ฑปๅž‹๏ผˆ1ไธ€่ˆฌๅทฅๅ•†ไธš2้“ถ่กŒ3ไฟ้™ฉ4่ฏๅˆธ๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+f_ann_date | str | Y | ๅฎž้™…ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+report_type | str | Y | ๆŠฅๅ‘Š็ฑปๅž‹ ่งๅบ•้ƒจ่กจ
+comp_type | str | Y | ๅ…ฌๅธ็ฑปๅž‹(1ไธ€่ˆฌๅทฅๅ•†ไธš2้“ถ่กŒ3ไฟ้™ฉ4่ฏๅˆธ)
+end_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹
+basic_eps | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š
+diluted_eps | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Š
+total_revenue | float | Y | ่ฅไธšๆ€ปๆ”ถๅ…ฅ
+revenue | float | Y | ่ฅไธšๆ”ถๅ…ฅ
+int_income | float | Y | ๅˆฉๆฏๆ”ถๅ…ฅ
+prem_earned | float | Y | ๅทฒ่ตšไฟ่ดน
+comm_income | float | Y | ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘ๆ”ถๅ…ฅ
+n_commis_income | float | Y | ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘ๅ‡€ๆ”ถๅ…ฅ
+n_oth_income | float | Y | ๅ…ถไป–็ป่ฅๅ‡€ๆ”ถ็›Š
+n_oth_b_income | float | Y | ๅŠ :ๅ…ถไป–ไธšๅŠกๅ‡€ๆ”ถ็›Š
+prem_income | float | Y | ไฟ้™ฉไธšๅŠกๆ”ถๅ…ฅ
+out_prem | float | Y | ๅ‡:ๅˆ†ๅ‡บไฟ่ดน
+une_prem_reser | float | Y | ๆๅ–ๆœชๅˆฐๆœŸ่ดฃไปปๅ‡†ๅค‡้‡‘
+reins_income | float | Y | ๅ…ถไธญ:ๅˆ†ไฟ่ดนๆ”ถๅ…ฅ
+n_sec_tb_income | float | Y | ไปฃ็†ไนฐๅ–่ฏๅˆธไธšๅŠกๅ‡€ๆ”ถๅ…ฅ
+n_sec_uw_income | float | Y | ่ฏๅˆธๆ‰ฟ้”€ไธšๅŠกๅ‡€ๆ”ถๅ…ฅ
+n_asset_mg_income | float | Y | ๅ—ๆ‰˜ๅฎขๆˆท่ต„ไบง็ฎก็†ไธšๅŠกๅ‡€ๆ”ถๅ…ฅ
+oth_b_income | float | Y | ๅ…ถไป–ไธšๅŠกๆ”ถๅ…ฅ
+fv_value_chg_gain | float | Y | ๅŠ :ๅ…ฌๅ…ไปทๅ€ผๅ˜ๅŠจๅ‡€ๆ”ถ็›Š
+invest_income | float | Y | ๅŠ :ๆŠ•่ต„ๅ‡€ๆ”ถ็›Š
+ass_invest_income | float | Y | ๅ…ถไธญ:ๅฏน่”่ฅไผไธšๅ’Œๅˆ่ฅไผไธš็š„ๆŠ•่ต„ๆ”ถ็›Š
+forex_gain | float | Y | ๅŠ :ๆฑ‡ๅ…‘ๅ‡€ๆ”ถ็›Š
+total_cogs | float | Y | ่ฅไธšๆ€ปๆˆๆœฌ
+oper_cost | float | Y | ๅ‡:่ฅไธšๆˆๆœฌ
+int_exp | float | Y | ๅ‡:ๅˆฉๆฏๆ”ฏๅ‡บ
+comm_exp | float | Y | ๅ‡:ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘ๆ”ฏๅ‡บ
+biz_tax_surchg | float | Y | ๅ‡:่ฅไธš็จŽ้‡‘ๅŠ้™„ๅŠ 
+sell_exp | float | Y | ๅ‡:้”€ๅ”ฎ่ดน็”จ
+admin_exp | float | Y | ๅ‡:็ฎก็†่ดน็”จ
+fin_exp | float | Y | ๅ‡:่ดขๅŠก่ดน็”จ
+assets_impair_loss | float | Y | ๅ‡:่ต„ไบงๅ‡ๅ€ผๆŸๅคฑ
+prem_refund | float | Y | ้€€ไฟ้‡‘
+compens_payout | float | Y | ่ต”ไป˜ๆ€ปๆ”ฏๅ‡บ
+reser_insur_liab | float | Y | ๆๅ–ไฟ้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+div_payt | float | Y | ไฟๆˆท็บขๅˆฉๆ”ฏๅ‡บ
+reins_exp | float | Y | ๅˆ†ไฟ่ดน็”จ
+oper_exp | float | Y | ่ฅไธšๆ”ฏๅ‡บ
+compens_payout_refu | float | Y | ๅ‡:ๆ‘Šๅ›ž่ต”ไป˜ๆ”ฏๅ‡บ
+insur_reser_refu | float | Y | ๅ‡:ๆ‘Šๅ›žไฟ้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+reins_cost_refund | float | Y | ๅ‡:ๆ‘Šๅ›žๅˆ†ไฟ่ดน็”จ
+other_bus_cost | float | Y | ๅ…ถไป–ไธšๅŠกๆˆๆœฌ
+operate_profit | float | Y | ่ฅไธšๅˆฉๆถฆ
+non_oper_income | float | Y | ๅŠ :่ฅไธšๅค–ๆ”ถๅ…ฅ
+non_oper_exp | float | Y | ๅ‡:่ฅไธšๅค–ๆ”ฏๅ‡บ
+nca_disploss | float | Y | ๅ…ถไธญ:ๅ‡:้žๆตๅŠจ่ต„ไบงๅค„็ฝฎๅ‡€ๆŸๅคฑ
+total_profit | float | Y | ๅˆฉๆถฆๆ€ป้ข
+income_tax | float | Y | ๆ‰€ๅพ—็จŽ่ดน็”จ
+n_income | float | Y | ๅ‡€ๅˆฉๆถฆ(ๅซๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š)
+n_income_attr_p | float | Y | ๅ‡€ๅˆฉๆถฆ(ไธๅซๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š)
+minority_gain | float | Y | ๅฐ‘ๆ•ฐ่‚กไธœๆŸ็›Š
+oth_compr_income | float | Y | ๅ…ถไป–็ปผๅˆๆ”ถ็›Š
+t_compr_income | float | Y | ็ปผๅˆๆ”ถ็›Šๆ€ป้ข
+compr_inc_attr_p | float | Y | ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ(ๆˆ–่‚กไธœ)็š„็ปผๅˆๆ”ถ็›Šๆ€ป้ข
+compr_inc_attr_m_s | float | Y | ๅฝ’ๅฑžไบŽๅฐ‘ๆ•ฐ่‚กไธœ็š„็ปผๅˆๆ”ถ็›Šๆ€ป้ข
+ebit | float | Y | ๆฏ็จŽๅ‰ๅˆฉๆถฆ
+ebitda | float | Y | ๆฏ็จŽๆŠ˜ๆ—งๆ‘Š้”€ๅ‰ๅˆฉๆถฆ
+insurance_exp | float | Y | ไฟ้™ฉไธšๅŠกๆ”ฏๅ‡บ
+undist_profit | float | Y | ๅนดๅˆๆœชๅˆ†้…ๅˆฉๆถฆ
+distable_profit | float | Y | ๅฏๅˆ†้…ๅˆฉๆถฆ
+rd_exp | float | Y | ็ ”ๅ‘่ดน็”จ
+fin_exp_int_exp | float | Y | ่ดขๅŠก่ดน็”จ:ๅˆฉๆฏ่ดน็”จ
+fin_exp_int_inc | float | Y | ่ดขๅŠก่ดน็”จ:ๅˆฉๆฏๆ”ถๅ…ฅ
+transfer_surplus_rese | float | Y | ็›ˆไฝ™ๅ…ฌ็งฏ่ฝฌๅ…ฅ
+transfer_housing_imprest | float | Y | ไฝๆˆฟๅ‘จ่ฝฌ้‡‘่ฝฌๅ…ฅ
+transfer_oth | float | Y | ๅ…ถไป–่ฝฌๅ…ฅ
+adj_lossgain | float | Y | ่ฐƒๆ•ดไปฅๅ‰ๅนดๅบฆๆŸ็›Š
+withdra_legal_surplus | float | Y | ๆๅ–ๆณ•ๅฎš็›ˆไฝ™ๅ…ฌ็งฏ
+withdra_legal_pubfund | float | Y | ๆๅ–ๆณ•ๅฎšๅ…ฌ็›Š้‡‘
+withdra_biz_devfund | float | Y | ๆๅ–ไผไธšๅ‘ๅฑ•ๅŸบ้‡‘
+withdra_rese_fund | float | Y | ๆๅ–ๅ‚จๅค‡ๅŸบ้‡‘
+withdra_oth_ersu | float | Y | ๆๅ–ไปปๆ„็›ˆไฝ™ๅ…ฌ็งฏ้‡‘
+workers_welfare | float | Y | ่Œๅทฅๅฅ–้‡‘็ฆๅˆฉ
+distr_profit_shrhder | float | Y | ๅฏไพ›่‚กไธœๅˆ†้…็š„ๅˆฉๆถฆ
+prfshare_payable_dvd | float | Y | ๅบ”ไป˜ไผ˜ๅ…ˆ่‚ก่‚กๅˆฉ
+comshare_payable_dvd | float | Y | ๅบ”ไป˜ๆ™ฎ้€š่‚ก่‚กๅˆฉ
+capit_comstock_div | float | Y | ่ฝฌไฝœ่‚กๆœฌ็š„ๆ™ฎ้€š่‚ก่‚กๅˆฉ
+net_after_nr_lp_correct | float | N | ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆ๏ผˆๆ›ดๆญฃๅ‰๏ผ‰
+credit_impa_loss | float | N | ไฟก็”จๅ‡ๅ€ผๆŸๅคฑ
+net_expo_hedging_benefits | float | N | ๅ‡€ๆ•žๅฃๅฅ—ๆœŸๆ”ถ็›Š
+oth_impair_loss_assets | float | N | ๅ…ถไป–่ต„ไบงๅ‡ๅ€ผๆŸๅคฑ
+total_opcost | float | N | ่ฅไธšๆ€ปๆˆๆœฌ๏ผˆไบŒ๏ผ‰
+amodcost_fin_assets | float | N | ไปฅๆ‘Šไฝ™ๆˆๆœฌ่ฎก้‡็š„้‡‘่ž่ต„ไบง็ปˆๆญข็กฎ่ฎคๆ”ถ็›Š
+oth_income | float | N | ๅ…ถไป–ๆ”ถ็›Š
+asset_disp_income | float | N | ่ต„ไบงๅค„็ฝฎๆ”ถ็›Š
+continued_net_profit | float | N | ๆŒ็ปญ็ป่ฅๅ‡€ๅˆฉๆถฆ
+end_net_profit | float | N | ็ปˆๆญข็ป่ฅๅ‡€ๅˆฉๆถฆ
+update_flag | str | Y | ๆ›ดๆ–ฐๆ ‡่ฏ†
+
+
+
+**ๆŽฅๅฃไฝฟ็”จ่ฏดๆ˜Ž**
+```python
+
+pro = ts.pro_api()
+
+df = pro.income(ts_code='600000.SH', start_date='20180101', end_date='20180730', fields='ts_code,ann_date,f_ann_date,end_date,report_type,comp_type,basic_eps,diluted_eps')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```python
+
+df = pro.income_vip(period='20181231',fields='ts_code,ann_date,f_ann_date,end_date,report_type,comp_type,basic_eps,diluted_eps')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date f_ann_date end_date report_type comp_type basic_eps diluted_eps \
+ 0 600000.SH 20180428 20180428 20180331 1 2 0.46 0.46
+ 1 600000.SH 20180428 20180428 20180331 1 2 0.46 0.46
+ 2 600000.SH 20180428 20180428 20171231 1 2 1.84 1.84
+
+
+
+
+**ไธป่ฆๆŠฅ่กจ็ฑปๅž‹่ฏดๆ˜Ž**
+
+ไปฃ็  | ็ฑปๅž‹ | ่ฏดๆ˜Ž
+---- | ----- | ---- |
+1 | ๅˆๅนถๆŠฅ่กจ | ไธŠๅธ‚ๅ…ฌๅธๆœ€ๆ–ฐๆŠฅ่กจ๏ผˆ้ป˜่ฎค๏ผ‰
+2 | ๅ•ๅญฃๅˆๅนถ | ๅ•ไธ€ๅญฃๅบฆ็š„ๅˆๅนถๆŠฅ่กจ
+3 | ่ฐƒๆ•ดๅ•ๅญฃๅˆๅนถ่กจ | ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃๅˆๅนถๆŠฅ่กจ๏ผˆๅฆ‚ๆžœๆœ‰๏ผ‰
+4 | ่ฐƒๆ•ดๅˆๅนถๆŠฅ่กจ | ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ๏ผŒๆŠฅๅ‘ŠๆœŸไธบไธŠๅนดๅบฆ
+5 | ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆ•ฐๆฎๅ‘็”Ÿๅ˜ๆ›ด๏ผŒๅฐ†ๅŽŸๆ•ฐๆฎ่ฟ›่กŒไฟ็•™๏ผŒๅณ่ฐƒๆ•ดๅ‰็š„ๅŽŸๆ•ฐๆฎ
+6 | ๆฏๅ…ฌๅธๆŠฅ่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+7 | ๆฏๅ…ฌๅธๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ็š„ๅ•ๅญฃๅบฆ่กจ
+8 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃ่กจ
+9 | ๆฏๅ…ฌๅธ่ฐƒๆ•ด่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+10 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰็š„ๅŽŸๅง‹่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+11 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰ๅˆๅนถๆŠฅ่กจๅŽŸๆ•ฐๆฎ
+12 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธๆŠฅ่กจๅ‘็”Ÿๅ˜ๆ›ดๅ‰ไฟ็•™็š„ๅŽŸๆ•ฐๆฎ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
new file mode 100644
index 000000000..4b9f8a92f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\347\216\260\351\207\221\346\265\201\351\207\217\350\241\250.md"
@@ -0,0 +1,174 @@
+## ็Žฐ้‡‘ๆต้‡่กจ
+----
+
+ๆŽฅๅฃ๏ผšcashflow๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ็Žฐ้‡‘ๆต้‡่กจ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จcashflow_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+f_ann_date | str | N | ๅฎž้™…ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Šๆ—ฅ็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ๏ผŒ20170630ๅŠๅนดๆŠฅ๏ผŒ20170930ไธ‰ๅญฃๆŠฅ)
+report_type | str | N | ๆŠฅๅ‘Š็ฑปๅž‹๏ผš่งไธ‹ๆ–น่ฏฆ็ป†่ฏดๆ˜Ž
+comp_type | str | N | ๅ…ฌๅธ็ฑปๅž‹๏ผš1ไธ€่ˆฌๅทฅๅ•†ไธš 2้“ถ่กŒ 3ไฟ้™ฉ 4่ฏๅˆธ
+is_calc | int | N | ๆ˜ฏๅฆ่ฎก็ฎ—ๆŠฅ่กจ
+
+
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+f_ann_date | str | Y | ๅฎž้™…ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+comp_type | str | Y | ๅ…ฌๅธ็ฑปๅž‹(1ไธ€่ˆฌๅทฅๅ•†ไธš2้“ถ่กŒ3ไฟ้™ฉ4่ฏๅˆธ)
+report_type | str | Y | ๆŠฅ่กจ็ฑปๅž‹
+end_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹
+net_profit | float | Y | ๅ‡€ๅˆฉๆถฆ
+finan_exp | float | Y | ่ดขๅŠก่ดน็”จ
+c_fr_sale_sg | float | Y | ้”€ๅ”ฎๅ•†ๅ“ใ€ๆไพ›ๅŠณๅŠกๆ”ถๅˆฐ็š„็Žฐ้‡‘
+recp_tax_rends | float | Y | ๆ”ถๅˆฐ็š„็จŽ่ดน่ฟ”่ฟ˜
+n_depos_incr_fi | float | Y | ๅฎขๆˆทๅญ˜ๆฌพๅ’ŒๅŒไธšๅญ˜ๆ”พๆฌพ้กนๅ‡€ๅขžๅŠ ้ข
+n_incr_loans_cb | float | Y | ๅ‘ไธญๅคฎ้“ถ่กŒๅ€Ÿๆฌพๅ‡€ๅขžๅŠ ้ข
+n_inc_borr_oth_fi | float | Y | ๅ‘ๅ…ถไป–้‡‘่žๆœบๆž„ๆ‹†ๅ…ฅ่ต„้‡‘ๅ‡€ๅขžๅŠ ้ข
+prem_fr_orig_contr | float | Y | ๆ”ถๅˆฐๅŽŸไฟ้™ฉๅˆๅŒไฟ่ดนๅ–ๅพ—็š„็Žฐ้‡‘
+n_incr_insured_dep | float | Y | ไฟๆˆทๅ‚จ้‡‘ๅ‡€ๅขžๅŠ ้ข
+n_reinsur_prem | float | Y | ๆ”ถๅˆฐๅ†ไฟไธšๅŠก็Žฐ้‡‘ๅ‡€้ข
+n_incr_disp_tfa | float | Y | ๅค„็ฝฎไบคๆ˜“ๆ€ง้‡‘่ž่ต„ไบงๅ‡€ๅขžๅŠ ้ข
+ifc_cash_incr | float | Y | ๆ”ถๅ–ๅˆฉๆฏๅ’Œๆ‰‹็ปญ่ดนๅ‡€ๅขžๅŠ ้ข
+n_incr_disp_faas | float | Y | ๅค„็ฝฎๅฏไพ›ๅ‡บๅ”ฎ้‡‘่ž่ต„ไบงๅ‡€ๅขžๅŠ ้ข
+n_incr_loans_oth_bank | float | Y | ๆ‹†ๅ…ฅ่ต„้‡‘ๅ‡€ๅขžๅŠ ้ข
+n_cap_incr_repur | float | Y | ๅ›ž่ดญไธšๅŠก่ต„้‡‘ๅ‡€ๅขžๅŠ ้ข
+c_fr_oth_operate_a | float | Y | ๆ”ถๅˆฐๅ…ถไป–ไธŽ็ป่ฅๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+c_inf_fr_operate_a | float | Y | ็ป่ฅๆดปๅŠจ็Žฐ้‡‘ๆตๅ…ฅๅฐ่ฎก
+c_paid_goods_s | float | Y | ่ดญไนฐๅ•†ๅ“ใ€ๆŽฅๅ—ๅŠณๅŠกๆ”ฏไป˜็š„็Žฐ้‡‘
+c_paid_to_for_empl | float | Y | ๆ”ฏไป˜็ป™่ŒๅทฅไปฅๅŠไธบ่Œๅทฅๆ”ฏไป˜็š„็Žฐ้‡‘
+c_paid_for_taxes | float | Y | ๆ”ฏไป˜็š„ๅ„้กน็จŽ่ดน
+n_incr_clt_loan_adv | float | Y | ๅฎขๆˆท่ดทๆฌพๅŠๅžซๆฌพๅ‡€ๅขžๅŠ ้ข
+n_incr_dep_cbob | float | Y | ๅญ˜ๆ”พๅคฎ่กŒๅ’ŒๅŒไธšๆฌพ้กนๅ‡€ๅขžๅŠ ้ข
+c_pay_claims_orig_inco | float | Y | ๆ”ฏไป˜ๅŽŸไฟ้™ฉๅˆๅŒ่ต”ไป˜ๆฌพ้กน็š„็Žฐ้‡‘
+pay_handling_chrg | float | Y | ๆ”ฏไป˜ๆ‰‹็ปญ่ดน็š„็Žฐ้‡‘
+pay_comm_insur_plcy | float | Y | ๆ”ฏไป˜ไฟๅ•็บขๅˆฉ็š„็Žฐ้‡‘
+oth_cash_pay_oper_act | float | Y | ๆ”ฏไป˜ๅ…ถไป–ไธŽ็ป่ฅๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+st_cash_out_act | float | Y | ็ป่ฅๆดปๅŠจ็Žฐ้‡‘ๆตๅ‡บๅฐ่ฎก
+n_cashflow_act | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+oth_recp_ral_inv_act | float | Y | ๆ”ถๅˆฐๅ…ถไป–ไธŽๆŠ•่ต„ๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+c_disp_withdrwl_invest | float | Y | ๆ”ถๅ›žๆŠ•่ต„ๆ”ถๅˆฐ็š„็Žฐ้‡‘
+c_recp_return_invest | float | Y | ๅ–ๅพ—ๆŠ•่ต„ๆ”ถ็›Šๆ”ถๅˆฐ็š„็Žฐ้‡‘
+n_recp_disp_fiolta | float | Y | ๅค„็ฝฎๅ›บๅฎš่ต„ไบงใ€ๆ— ๅฝข่ต„ไบงๅ’Œๅ…ถไป–้•ฟๆœŸ่ต„ไบงๆ”ถๅ›ž็š„็Žฐ้‡‘ๅ‡€้ข
+n_recp_disp_sobu | float | Y | ๅค„็ฝฎๅญๅ…ฌๅธๅŠๅ…ถไป–่ฅไธšๅ•ไฝๆ”ถๅˆฐ็š„็Žฐ้‡‘ๅ‡€้ข
+stot_inflows_inv_act | float | Y | ๆŠ•่ต„ๆดปๅŠจ็Žฐ้‡‘ๆตๅ…ฅๅฐ่ฎก
+c_pay_acq_const_fiolta | float | Y | ่ดญๅปบๅ›บๅฎš่ต„ไบงใ€ๆ— ๅฝข่ต„ไบงๅ’Œๅ…ถไป–้•ฟๆœŸ่ต„ไบงๆ”ฏไป˜็š„็Žฐ้‡‘
+c_paid_invest | float | Y | ๆŠ•่ต„ๆ”ฏไป˜็š„็Žฐ้‡‘
+n_disp_subs_oth_biz | float | Y | ๅ–ๅพ—ๅญๅ…ฌๅธๅŠๅ…ถไป–่ฅไธšๅ•ไฝๆ”ฏไป˜็š„็Žฐ้‡‘ๅ‡€้ข
+oth_pay_ral_inv_act | float | Y | ๆ”ฏไป˜ๅ…ถไป–ไธŽๆŠ•่ต„ๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+n_incr_pledge_loan | float | Y | ่ดจๆŠผ่ดทๆฌพๅ‡€ๅขžๅŠ ้ข
+stot_out_inv_act | float | Y | ๆŠ•่ต„ๆดปๅŠจ็Žฐ้‡‘ๆตๅ‡บๅฐ่ฎก
+n_cashflow_inv_act | float | Y | ๆŠ•่ต„ๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+c_recp_borrow | float | Y | ๅ–ๅพ—ๅ€Ÿๆฌพๆ”ถๅˆฐ็š„็Žฐ้‡‘
+proc_issue_bonds | float | Y | ๅ‘่กŒๅ€บๅˆธๆ”ถๅˆฐ็š„็Žฐ้‡‘
+oth_cash_recp_ral_fnc_act | float | Y | ๆ”ถๅˆฐๅ…ถไป–ไธŽ็ญน่ต„ๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+stot_cash_in_fnc_act | float | Y | ็ญน่ต„ๆดปๅŠจ็Žฐ้‡‘ๆตๅ…ฅๅฐ่ฎก
+free_cashflow | float | Y | ไผไธš่‡ช็”ฑ็Žฐ้‡‘ๆต้‡
+c_prepay_amt_borr | float | Y | ๅฟ่ฟ˜ๅ€บๅŠกๆ”ฏไป˜็š„็Žฐ้‡‘
+c_pay_dist_dpcp_int_exp | float | Y | ๅˆ†้…่‚กๅˆฉใ€ๅˆฉๆถฆๆˆ–ๅฟไป˜ๅˆฉๆฏๆ”ฏไป˜็š„็Žฐ้‡‘
+incl_dvd_profit_paid_sc_ms | float | Y | ๅ…ถไธญ:ๅญๅ…ฌๅธๆ”ฏไป˜็ป™ๅฐ‘ๆ•ฐ่‚กไธœ็š„่‚กๅˆฉใ€ๅˆฉๆถฆ
+oth_cashpay_ral_fnc_act | float | Y | ๆ”ฏไป˜ๅ…ถไป–ไธŽ็ญน่ต„ๆดปๅŠจๆœ‰ๅ…ณ็š„็Žฐ้‡‘
+stot_cashout_fnc_act | float | Y | ็ญน่ต„ๆดปๅŠจ็Žฐ้‡‘ๆตๅ‡บๅฐ่ฎก
+n_cash_flows_fnc_act | float | Y | ็ญน่ต„ๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+eff_fx_flu_cash | float | Y | ๆฑ‡็އๅ˜ๅŠจๅฏน็Žฐ้‡‘็š„ๅฝฑๅ“
+n_incr_cash_cash_equ | float | Y | ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉๅ‡€ๅขžๅŠ ้ข
+c_cash_equ_beg_period | float | Y | ๆœŸๅˆ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉไฝ™้ข
+c_cash_equ_end_period | float | Y | ๆœŸๆœซ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉไฝ™้ข
+c_recp_cap_contrib | float | Y | ๅธๆ”ถๆŠ•่ต„ๆ”ถๅˆฐ็š„็Žฐ้‡‘
+incl_cash_rec_saims | float | Y | ๅ…ถไธญ:ๅญๅ…ฌๅธๅธๆ”ถๅฐ‘ๆ•ฐ่‚กไธœๆŠ•่ต„ๆ”ถๅˆฐ็š„็Žฐ้‡‘
+uncon_invest_loss | float | Y | ๆœช็กฎ่ฎคๆŠ•่ต„ๆŸๅคฑ
+prov_depr_assets | float | Y | ๅŠ :่ต„ไบงๅ‡ๅ€ผๅ‡†ๅค‡
+depr_fa_coga_dpba | float | Y | ๅ›บๅฎš่ต„ไบงๆŠ˜ๆ—งใ€ๆฒนๆฐ”่ต„ไบงๆŠ˜่€—ใ€็”Ÿไบงๆ€ง็”Ÿ็‰ฉ่ต„ไบงๆŠ˜ๆ—ง
+amort_intang_assets | float | Y | ๆ— ๅฝข่ต„ไบงๆ‘Š้”€
+lt_amort_deferred_exp | float | Y | ้•ฟๆœŸๅพ…ๆ‘Š่ดน็”จๆ‘Š้”€
+decr_deferred_exp | float | Y | ๅพ…ๆ‘Š่ดน็”จๅ‡ๅฐ‘
+incr_acc_exp | float | Y | ้ข„ๆ่ดน็”จๅขžๅŠ 
+loss_disp_fiolta | float | Y | ๅค„็ฝฎๅ›บๅฎšใ€ๆ— ๅฝข่ต„ไบงๅ’Œๅ…ถไป–้•ฟๆœŸ่ต„ไบง็š„ๆŸๅคฑ
+loss_scr_fa | float | Y | ๅ›บๅฎš่ต„ไบงๆŠฅๅบŸๆŸๅคฑ
+loss_fv_chg | float | Y | ๅ…ฌๅ…ไปทๅ€ผๅ˜ๅŠจๆŸๅคฑ
+invest_loss | float | Y | ๆŠ•่ต„ๆŸๅคฑ
+decr_def_inc_tax_assets | float | Y | ้€’ๅปถๆ‰€ๅพ—็จŽ่ต„ไบงๅ‡ๅฐ‘
+incr_def_inc_tax_liab | float | Y | ้€’ๅปถๆ‰€ๅพ—็จŽ่ดŸๅ€บๅขžๅŠ 
+decr_inventories | float | Y | ๅญ˜่ดง็š„ๅ‡ๅฐ‘
+decr_oper_payable | float | Y | ็ป่ฅๆ€งๅบ”ๆ”ถ้กน็›ฎ็š„ๅ‡ๅฐ‘
+incr_oper_payable | float | Y | ็ป่ฅๆ€งๅบ”ไป˜้กน็›ฎ็š„ๅขžๅŠ 
+others | float | Y | ๅ…ถไป–
+im_net_cashflow_oper_act | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข(้—ดๆŽฅๆณ•)
+conv_debt_into_cap | float | Y | ๅ€บๅŠก่ฝฌไธบ่ต„ๆœฌ
+conv_copbonds_due_within_1y | float | Y | ไธ€ๅนดๅ†…ๅˆฐๆœŸ็š„ๅฏ่ฝฌๆขๅ…ฌๅธๅ€บๅˆธ
+fa_fnc_leases | float | Y | ่ž่ต„็งŸๅ…ฅๅ›บๅฎš่ต„ไบง
+im_n_incr_cash_equ | float | Y | ็Žฐ้‡‘ๅŠ็Žฐ้‡‘็ญ‰ไปท็‰ฉๅ‡€ๅขžๅŠ ้ข(้—ดๆŽฅๆณ•)
+net_dism_capital_add | float | Y | ๆ‹†ๅ‡บ่ต„้‡‘ๅ‡€ๅขžๅŠ ้ข
+net_cash_rece_sec | float | Y | ไปฃ็†ไนฐๅ–่ฏๅˆธๆ”ถๅˆฐ็š„็Žฐ้‡‘ๅ‡€้ข(ๅ…ƒ)
+credit_impa_loss | float | Y | ไฟก็”จๅ‡ๅ€ผๆŸๅคฑ
+use_right_asset_dep | float | Y | ไฝฟ็”จๆƒ่ต„ไบงๆŠ˜ๆ—ง
+oth_loss_asset | float | Y | ๅ…ถไป–่ต„ไบงๅ‡ๅ€ผๆŸๅคฑ
+end_bal_cash | float | Y | ็Žฐ้‡‘็š„ๆœŸๆœซไฝ™้ข
+beg_bal_cash | float | Y | ๅ‡:็Žฐ้‡‘็š„ๆœŸๅˆไฝ™้ข
+end_bal_cash_equ | float | Y | ๅŠ :็Žฐ้‡‘็ญ‰ไปท็‰ฉ็š„ๆœŸๆœซไฝ™้ข
+beg_bal_cash_equ | float | Y | ๅ‡:็Žฐ้‡‘็ญ‰ไปท็‰ฉ็š„ๆœŸๅˆไฝ™้ข
+update_flag | str | Y | ๆ›ดๆ–ฐๆ ‡ๅฟ—(1ๆœ€ๆ–ฐ๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+
+**ๆŽฅๅฃไฝฟ็”จ่ฏดๆ˜Ž**
+```python
+
+pro = ts.pro_api()
+
+df = pro.cashflow(ts_code='600000.SH', start_date='20180101', end_date='20180730')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```
+df2 = pro.cashflow_vip(period='20181231',fields='')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date f_ann_date end_date comp_type report_type net_profit finan_exp \
+ 0 600000.SH 20180428 20180428 20180331 2 1 NaN None
+ 1 600000.SH 20180428 20180428 20171231 2 1 5.500200e+10 None
+ 2 600000.SH 20180428 20180428 20171231 2 1 5.500200e+10 None
+
+
+**ไธป่ฆๆŠฅ่กจ็ฑปๅž‹่ฏดๆ˜Ž**
+
+ไปฃ็  | ็ฑปๅž‹ | ่ฏดๆ˜Ž
+---- | ----- | ---- |
+1 | ๅˆๅนถๆŠฅ่กจ | ไธŠๅธ‚ๅ…ฌๅธๆœ€ๆ–ฐๆŠฅ่กจ๏ผˆ้ป˜่ฎค๏ผ‰
+2 | ๅ•ๅญฃๅˆๅนถ | ๅ•ไธ€ๅญฃๅบฆ็š„ๅˆๅนถๆŠฅ่กจ
+3 | ่ฐƒๆ•ดๅ•ๅญฃๅˆๅนถ่กจ | ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃๅˆๅนถๆŠฅ่กจ๏ผˆๅฆ‚ๆžœๆœ‰๏ผ‰
+4 | ่ฐƒๆ•ดๅˆๅนถๆŠฅ่กจ | ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ๏ผŒๆŠฅๅ‘ŠๆœŸไธบไธŠๅนดๅบฆ
+5 | ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆ•ฐๆฎๅ‘็”Ÿๅ˜ๆ›ด๏ผŒๅฐ†ๅŽŸๆ•ฐๆฎ่ฟ›่กŒไฟ็•™๏ผŒๅณ่ฐƒๆ•ดๅ‰็š„ๅŽŸๆ•ฐๆฎ
+6 | ๆฏๅ…ฌๅธๆŠฅ่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+7 | ๆฏๅ…ฌๅธๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ็š„ๅ•ๅญฃๅบฆ่กจ
+8 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃ่กจ
+9 | ๆฏๅ…ฌๅธ่ฐƒๆ•ด่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+10 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰็š„ๅŽŸๅง‹่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+11 | ็›ฎๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰ๅˆๅนถๆŠฅ่กจๅŽŸๆ•ฐๆฎ
+12 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธๆŠฅ่กจๅ‘็”Ÿๅ˜ๆ›ดๅ‰ไฟ็•™็š„ๅŽŸๆ•ฐๆฎ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\345\256\241\350\256\241\346\204\217\350\247\201.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\345\256\241\350\256\241\346\204\217\350\247\201.md"
new file mode 100644
index 000000000..18d201e43
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\345\256\241\350\256\241\346\204\217\350\247\201.md"
@@ -0,0 +1,53 @@
+## ่ดขๅŠกๅฎก่ฎกๆ„่ง
+----
+
+ๆŽฅๅฃ๏ผšfina_audit
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธๅฎšๆœŸ่ดขๅŠกๅฎก่ฎกๆ„่งๆ•ฐๆฎ
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๅ…ฌๅ‘Šๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Š็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ,ๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ)
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+ts_code | str | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | ๆŠฅๅ‘ŠๆœŸ
+audit_result | str | ๅฎก่ฎก็ป“ๆžœ
+audit_fees | float | ๅฎก่ฎกๆ€ป่ดน็”จ๏ผˆๅ…ƒ๏ผ‰
+audit_agency | str | ไผš่ฎกไบ‹ๅŠกๆ‰€
+audit_sign | str | ็ญพๅญ—ไผš่ฎกๅธˆ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fina_audit(ts_code='600000.SH', start_date='20100101', end_date='20180808')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date end_date audit_result audit_agency audit_sign
+ 0 600000.SH 20180428 20171231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ๅ‘จ็ซ ,ๅผ ๆญฆ
+ 1 600000.SH 20170401 20161231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ๅ‘จ็ซ ,ๅผ ๆญฆ
+ 2 600000.SH 20160407 20151231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ่ƒกไบฎ,ๅผ ๆญฆ
+ 3 600000.SH 20150319 20141231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ่ƒกไบฎ,ๅผ ๆญฆ
+ 4 600000.SH 20140320 20131231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ่ƒกไบฎ,ๅ‘จ็ซ 
+ 5 600000.SH 20130314 20121231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ่ƒกไบฎ,ๅ‘จ็ซ 
+ 6 600000.SH 20120316 20111231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๆ™ฎๅŽๆฐธ้“ไธญๅคฉไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ่ƒกไบฎ,ๅ‘จ็ซ 
+ 7 600000.SH 20110330 20101231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๅฎ‰ๆฐธๅŽๆ˜Žไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ไธฅ็››็‚œ,ๅ‘จๆ˜Ž้ช
+ 8 600000.SH 20100830 20100630 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๅฎ‰ๆฐธๅŽๆ˜Žไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ไธฅ็››็‚œ,ๅ‘จๆ˜Ž้ช
+ 9 600000.SH 20100407 20091231 ๆ ‡ๅ‡†ๆ— ไฟ็•™ๆ„่ง ๅฎ‰ๆฐธๅŽๆ˜Žไผš่ฎกๅธˆไบ‹ๅŠกๆ‰€ ไธฅ็››็‚œ,ๅ‘จๆ˜Ž้ช
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..476ad652f
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\345\212\241\346\214\207\346\240\207\346\225\260\346\215\256.md"
@@ -0,0 +1,224 @@
+## ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšfina_indicator๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ๏ผŒไธบ้ฟๅ…ๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒ็Žฐ้˜ถๆฎตๆฏๆฌก่ฏทๆฑ‚ๆœ€ๅคš่ฟ”ๅ›ž100ๆก่ฎฐๅฝ•๏ผŒๅฏ้€š่ฟ‡่ฎพ็ฝฎๆ—ฅๆœŸๅคšๆฌก่ฏทๆฑ‚่Žทๅ–ๆ›ดๅคšๆ•ฐๆฎใ€‚
+ๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จfina_indicator_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ ,e.g. 600001.SH/000001.SZ
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ,ๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ)
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+eps | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›Š
+dt_eps | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›Š
+total_revenue_ps | float | Y | ๆฏ่‚ก่ฅไธšๆ€ปๆ”ถๅ…ฅ
+revenue_ps | float | Y | ๆฏ่‚ก่ฅไธšๆ”ถๅ…ฅ
+capital_rese_ps | float | Y | ๆฏ่‚ก่ต„ๆœฌๅ…ฌ็งฏ
+surplus_rese_ps | float | Y | ๆฏ่‚ก็›ˆไฝ™ๅ…ฌ็งฏ
+undist_profit_ps | float | Y | ๆฏ่‚กๆœชๅˆ†้…ๅˆฉๆถฆ
+extra_item | float | Y | ้ž็ปๅธธๆ€งๆŸ็›Š
+profit_dedt | float | Y | ๆ‰ฃ้™ค้ž็ปๅธธๆ€งๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆ๏ผˆๆ‰ฃ้žๅ‡€ๅˆฉๆถฆ๏ผ‰
+gross_margin | float | Y | ๆฏ›ๅˆฉ
+current_ratio | float | Y | ๆตๅŠจๆฏ”็އ
+quick_ratio | float | Y | ้€ŸๅŠจๆฏ”็އ
+cash_ratio | float | Y | ไฟๅฎˆ้€ŸๅŠจๆฏ”็އ
+invturn_days | float | N | ๅญ˜่ดงๅ‘จ่ฝฌๅคฉๆ•ฐ
+arturn_days | float | N | ๅบ”ๆ”ถ่ดฆๆฌพๅ‘จ่ฝฌๅคฉๆ•ฐ
+inv_turn | float | N | ๅญ˜่ดงๅ‘จ่ฝฌ็އ
+ar_turn | float | Y | ๅบ”ๆ”ถ่ดฆๆฌพๅ‘จ่ฝฌ็އ
+ca_turn | float | Y | ๆตๅŠจ่ต„ไบงๅ‘จ่ฝฌ็އ
+fa_turn | float | Y | ๅ›บๅฎš่ต„ไบงๅ‘จ่ฝฌ็އ
+assets_turn | float | Y | ๆ€ป่ต„ไบงๅ‘จ่ฝฌ็އ
+op_income | float | Y | ็ป่ฅๆดปๅŠจๅ‡€ๆ”ถ็›Š
+valuechange_income | float | N | ไปทๅ€ผๅ˜ๅŠจๅ‡€ๆ”ถ็›Š
+interst_income | float | N | ๅˆฉๆฏ่ดน็”จ
+daa | float | N | ๆŠ˜ๆ—งไธŽๆ‘Š้”€
+ebit | float | Y | ๆฏ็จŽๅ‰ๅˆฉๆถฆ
+ebitda | float | Y | ๆฏ็จŽๆŠ˜ๆ—งๆ‘Š้”€ๅ‰ๅˆฉๆถฆ
+fcff | float | Y | ไผไธš่‡ช็”ฑ็Žฐ้‡‘ๆต้‡
+fcfe | float | Y | ่‚กๆƒ่‡ช็”ฑ็Žฐ้‡‘ๆต้‡
+current_exint | float | Y | ๆ— ๆฏๆตๅŠจ่ดŸๅ€บ
+noncurrent_exint | float | Y | ๆ— ๆฏ้žๆตๅŠจ่ดŸๅ€บ
+interestdebt | float | Y | ๅธฆๆฏๅ€บๅŠก
+netdebt | float | Y | ๅ‡€ๅ€บๅŠก
+tangible_asset | float | Y | ๆœ‰ๅฝข่ต„ไบง
+working_capital | float | Y | ่ฅ่ฟ่ต„้‡‘
+networking_capital | float | Y | ่ฅ่ฟๆตๅŠจ่ต„ๆœฌ
+invest_capital | float | Y | ๅ…จ้ƒจๆŠ•ๅ…ฅ่ต„ๆœฌ
+retained_earnings | float | Y | ็•™ๅญ˜ๆ”ถ็›Š
+diluted2_eps | float | Y | ๆœŸๆœซๆ‘Š่–„ๆฏ่‚กๆ”ถ็›Š
+bps | float | Y | ๆฏ่‚กๅ‡€่ต„ไบง
+ocfps | float | Y | ๆฏ่‚ก็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+retainedps | float | Y | ๆฏ่‚ก็•™ๅญ˜ๆ”ถ็›Š
+cfps | float | Y | ๆฏ่‚ก็Žฐ้‡‘ๆต้‡ๅ‡€้ข
+ebit_ps | float | Y | ๆฏ่‚กๆฏ็จŽๅ‰ๅˆฉๆถฆ
+fcff_ps | float | Y | ๆฏ่‚กไผไธš่‡ช็”ฑ็Žฐ้‡‘ๆต้‡
+fcfe_ps | float | Y | ๆฏ่‚ก่‚กไธœ่‡ช็”ฑ็Žฐ้‡‘ๆต้‡
+netprofit_margin | float | Y | ้”€ๅ”ฎๅ‡€ๅˆฉ็އ
+grossprofit_margin | float | Y | ้”€ๅ”ฎๆฏ›ๅˆฉ็އ
+cogs_of_sales | float | Y | ้”€ๅ”ฎๆˆๆœฌ็އ
+expense_of_sales | float | Y | ้”€ๅ”ฎๆœŸ้—ด่ดน็”จ็އ
+profit_to_gr | float | Y | ๅ‡€ๅˆฉๆถฆ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+saleexp_to_gr | float | Y | ้”€ๅ”ฎ่ดน็”จ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+adminexp_of_gr | float | Y | ็ฎก็†่ดน็”จ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+finaexp_of_gr | float | Y | ่ดขๅŠก่ดน็”จ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+impai_ttm | float | Y | ่ต„ไบงๅ‡ๅ€ผๆŸๅคฑ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+gc_of_gr | float | Y | ่ฅไธšๆ€ปๆˆๆœฌ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+op_of_gr | float | Y | ่ฅไธšๅˆฉๆถฆ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+ebit_of_gr | float | Y | ๆฏ็จŽๅ‰ๅˆฉๆถฆ/่ฅไธšๆ€ปๆ”ถๅ…ฅ
+roe | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+roe_waa | float | Y | ๅŠ ๆƒๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+roe_dt | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›Š)
+roa | float | Y | ๆ€ป่ต„ไบงๆŠฅ้…ฌ็އ
+npta | float | Y | ๆ€ป่ต„ไบงๅ‡€ๅˆฉๆถฆ
+roic | float | Y | ๆŠ•ๅ…ฅ่ต„ๆœฌๅ›žๆŠฅ็އ
+roe_yearly | float | Y | ๅนดๅŒ–ๅ‡€่ต„ไบงๆ”ถ็›Š็އ
+roa2_yearly | float | Y | ๅนดๅŒ–ๆ€ป่ต„ไบงๆŠฅ้…ฌ็އ
+roe_avg | float | N | ๅนณๅ‡ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(ๅขžๅ‘ๆกไปถ)
+opincome_of_ebt | float | N | ็ป่ฅๆดปๅŠจๅ‡€ๆ”ถ็›Š/ๅˆฉๆถฆๆ€ป้ข
+investincome_of_ebt | float | N | ไปทๅ€ผๅ˜ๅŠจๅ‡€ๆ”ถ็›Š/ๅˆฉๆถฆๆ€ป้ข
+n_op_profit_of_ebt | float | N | ่ฅไธšๅค–ๆ”ถๆ”ฏๅ‡€้ข/ๅˆฉๆถฆๆ€ป้ข
+tax_to_ebt | float | N | ๆ‰€ๅพ—็จŽ/ๅˆฉๆถฆๆ€ป้ข
+dtprofit_to_profit | float | N | ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆ/ๅ‡€ๅˆฉๆถฆ
+salescash_to_or | float | N | ้”€ๅ”ฎๅ•†ๅ“ๆไพ›ๅŠณๅŠกๆ”ถๅˆฐ็š„็Žฐ้‡‘/่ฅไธšๆ”ถๅ…ฅ
+ocf_to_or | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/่ฅไธšๆ”ถๅ…ฅ
+ocf_to_opincome | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/็ป่ฅๆดปๅŠจๅ‡€ๆ”ถ็›Š
+capitalized_to_da | float | N | ่ต„ๆœฌๆ”ฏๅ‡บ/ๆŠ˜ๆ—งๅ’Œๆ‘Š้”€
+debt_to_assets | float | Y | ่ต„ไบง่ดŸๅ€บ็އ
+assets_to_eqt | float | Y | ๆƒ็›Šไน˜ๆ•ฐ
+dp_assets_to_eqt | float | Y | ๆƒ็›Šไน˜ๆ•ฐ(ๆœ้‚ฆๅˆ†ๆž)
+ca_to_assets | float | Y | ๆตๅŠจ่ต„ไบง/ๆ€ป่ต„ไบง
+nca_to_assets | float | Y | ้žๆตๅŠจ่ต„ไบง/ๆ€ป่ต„ไบง
+tbassets_to_totalassets | float | Y | ๆœ‰ๅฝข่ต„ไบง/ๆ€ป่ต„ไบง
+int_to_talcap | float | Y | ๅธฆๆฏๅ€บๅŠก/ๅ…จ้ƒจๆŠ•ๅ…ฅ่ต„ๆœฌ
+eqt_to_talcapital | float | Y | ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ็š„่‚กไธœๆƒ็›Š/ๅ…จ้ƒจๆŠ•ๅ…ฅ่ต„ๆœฌ
+currentdebt_to_debt | float | Y | ๆตๅŠจ่ดŸๅ€บ/่ดŸๅ€บๅˆ่ฎก
+longdeb_to_debt | float | Y | ้žๆตๅŠจ่ดŸๅ€บ/่ดŸๅ€บๅˆ่ฎก
+ocf_to_shortdebt | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/ๆตๅŠจ่ดŸๅ€บ
+debt_to_eqt | float | Y | ไบงๆƒๆฏ”็އ
+eqt_to_debt | float | Y | ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ็š„่‚กไธœๆƒ็›Š/่ดŸๅ€บๅˆ่ฎก
+eqt_to_interestdebt | float | Y | ๅฝ’ๅฑžไบŽๆฏๅ…ฌๅธ็š„่‚กไธœๆƒ็›Š/ๅธฆๆฏๅ€บๅŠก
+tangibleasset_to_debt | float | Y | ๆœ‰ๅฝข่ต„ไบง/่ดŸๅ€บๅˆ่ฎก
+tangasset_to_intdebt | float | Y | ๆœ‰ๅฝข่ต„ไบง/ๅธฆๆฏๅ€บๅŠก
+tangibleasset_to_netdebt | float | Y | ๆœ‰ๅฝข่ต„ไบง/ๅ‡€ๅ€บๅŠก
+ocf_to_debt | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/่ดŸๅ€บๅˆ่ฎก
+ocf_to_interestdebt | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/ๅธฆๆฏๅ€บๅŠก
+ocf_to_netdebt | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข/ๅ‡€ๅ€บๅŠก
+ebit_to_interest | float | N | ๅทฒ่Žทๅˆฉๆฏๅ€ๆ•ฐ(EBIT/ๅˆฉๆฏ่ดน็”จ)
+longdebt_to_workingcapital | float | N | ้•ฟๆœŸๅ€บๅŠกไธŽ่ฅ่ฟ่ต„้‡‘ๆฏ”็އ
+ebitda_to_debt | float | N | ๆฏ็จŽๆŠ˜ๆ—งๆ‘Š้”€ๅ‰ๅˆฉๆถฆ/่ดŸๅ€บๅˆ่ฎก
+turn_days | float | Y | ่ฅไธšๅ‘จๆœŸ
+roa_yearly | float | Y | ๅนดๅŒ–ๆ€ป่ต„ไบงๅ‡€ๅˆฉ็އ
+roa_dp | float | Y | ๆ€ป่ต„ไบงๅ‡€ๅˆฉ็އ(ๆœ้‚ฆๅˆ†ๆž)
+fixed_assets | float | Y | ๅ›บๅฎš่ต„ไบงๅˆ่ฎก
+profit_prefin_exp | float | N | ๆ‰ฃ้™ค่ดขๅŠก่ดน็”จๅ‰่ฅไธšๅˆฉๆถฆ
+non_op_profit | float | N | ้ž่ฅไธšๅˆฉๆถฆ
+op_to_ebt | float | N | ่ฅไธšๅˆฉๆถฆ๏ผๅˆฉๆถฆๆ€ป้ข
+nop_to_ebt | float | N | ้ž่ฅไธšๅˆฉๆถฆ๏ผๅˆฉๆถฆๆ€ป้ข
+ocf_to_profit | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข๏ผ่ฅไธšๅˆฉๆถฆ
+cash_to_liqdebt | float | N | ่ดงๅธ่ต„้‡‘๏ผๆตๅŠจ่ดŸๅ€บ
+cash_to_liqdebt_withinterest | float | N | ่ดงๅธ่ต„้‡‘๏ผๅธฆๆฏๆตๅŠจ่ดŸๅ€บ
+op_to_liqdebt | float | N | ่ฅไธšๅˆฉๆถฆ๏ผๆตๅŠจ่ดŸๅ€บ
+op_to_debt | float | N | ่ฅไธšๅˆฉๆถฆ๏ผ่ดŸๅ€บๅˆ่ฎก
+roic_yearly | float | N | ๅนดๅŒ–ๆŠ•ๅ…ฅ่ต„ๆœฌๅ›žๆŠฅ็އ
+total_fa_trun | float | N | ๅ›บๅฎš่ต„ไบงๅˆ่ฎกๅ‘จ่ฝฌ็އ
+profit_to_op | float | Y | ๅˆฉๆถฆๆ€ป้ข๏ผ่ฅไธšๆ”ถๅ…ฅ
+q_opincome | float | N | ็ป่ฅๆดปๅŠจๅ•ๅญฃๅบฆๅ‡€ๆ”ถ็›Š
+q_investincome | float | N | ไปทๅ€ผๅ˜ๅŠจๅ•ๅญฃๅบฆๅ‡€ๆ”ถ็›Š
+q_dtprofit | float | N | ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›ŠๅŽ็š„ๅ•ๅญฃๅบฆๅ‡€ๅˆฉๆถฆ
+q_eps | float | N | ๆฏ่‚กๆ”ถ็›Š(ๅ•ๅญฃๅบฆ)
+q_netprofit_margin | float | N | ้”€ๅ”ฎๅ‡€ๅˆฉ็އ(ๅ•ๅญฃๅบฆ)
+q_gsprofit_margin | float | N | ้”€ๅ”ฎๆฏ›ๅˆฉ็އ(ๅ•ๅญฃๅบฆ)
+q_exp_to_sales | float | N | ้”€ๅ”ฎๆœŸ้—ด่ดน็”จ็އ(ๅ•ๅญฃๅบฆ)
+q_profit_to_gr | float | N | ๅ‡€ๅˆฉๆถฆ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ(ๅ•ๅญฃๅบฆ)
+q_saleexp_to_gr | float | Y | ้”€ๅ”ฎ่ดน็”จ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ (ๅ•ๅญฃๅบฆ)
+q_adminexp_to_gr | float | N | ็ฎก็†่ดน็”จ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ (ๅ•ๅญฃๅบฆ)
+q_finaexp_to_gr | float | N | ่ดขๅŠก่ดน็”จ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ (ๅ•ๅญฃๅบฆ)
+q_impair_to_gr_ttm | float | N | ่ต„ไบงๅ‡ๅ€ผๆŸๅคฑ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ(ๅ•ๅญฃๅบฆ)
+q_gc_to_gr | float | Y | ่ฅไธšๆ€ปๆˆๆœฌ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ (ๅ•ๅญฃๅบฆ)
+q_op_to_gr | float | N | ่ฅไธšๅˆฉๆถฆ๏ผ่ฅไธšๆ€ปๆ”ถๅ…ฅ(ๅ•ๅญฃๅบฆ)
+q_roe | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(ๅ•ๅญฃๅบฆ)
+q_dt_roe | float | Y | ๅ‡€่ต„ไบงๅ•ๅญฃๅบฆๆ”ถ็›Š็އ(ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›Š)
+q_npta | float | Y | ๆ€ป่ต„ไบงๅ‡€ๅˆฉๆถฆ(ๅ•ๅญฃๅบฆ)
+q_opincome_to_ebt | float | N | ็ป่ฅๆดปๅŠจๅ‡€ๆ”ถ็›Š๏ผๅˆฉๆถฆๆ€ป้ข(ๅ•ๅญฃๅบฆ)
+q_investincome_to_ebt | float | N | ไปทๅ€ผๅ˜ๅŠจๅ‡€ๆ”ถ็›Š๏ผๅˆฉๆถฆๆ€ป้ข(ๅ•ๅญฃๅบฆ)
+q_dtprofit_to_profit | float | N | ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›ŠๅŽ็š„ๅ‡€ๅˆฉๆถฆ๏ผๅ‡€ๅˆฉๆถฆ(ๅ•ๅญฃๅบฆ)
+q_salescash_to_or | float | N | ้”€ๅ”ฎๅ•†ๅ“ๆไพ›ๅŠณๅŠกๆ”ถๅˆฐ็š„็Žฐ้‡‘๏ผ่ฅไธšๆ”ถๅ…ฅ(ๅ•ๅญฃๅบฆ)
+q_ocf_to_sales | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข๏ผ่ฅไธšๆ”ถๅ…ฅ(ๅ•ๅญฃๅบฆ)
+q_ocf_to_or | float | N | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ข๏ผ็ป่ฅๆดปๅŠจๅ‡€ๆ”ถ็›Š(ๅ•ๅญฃๅบฆ)
+basic_eps_yoy | float | Y | ๅŸบๆœฌๆฏ่‚กๆ”ถ็›ŠๅŒๆฏ”ๅขž้•ฟ็އ(%)
+dt_eps_yoy | float | Y | ็จ€้‡Šๆฏ่‚กๆ”ถ็›ŠๅŒๆฏ”ๅขž้•ฟ็އ(%)
+cfps_yoy | float | Y | ๆฏ่‚ก็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ขๅŒๆฏ”ๅขž้•ฟ็އ(%)
+op_yoy | float | Y | ่ฅไธšๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ็އ(%)
+ebt_yoy | float | Y | ๅˆฉๆถฆๆ€ป้ขๅŒๆฏ”ๅขž้•ฟ็އ(%)
+netprofit_yoy | float | Y | ๅฝ’ๅฑžๆฏๅ…ฌๅธ่‚กไธœ็š„ๅ‡€ๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ็އ(%)
+dt_netprofit_yoy | float | Y | ๅฝ’ๅฑžๆฏๅ…ฌๅธ่‚กไธœ็š„ๅ‡€ๅˆฉๆถฆ-ๆ‰ฃ้™ค้ž็ปๅธธๆŸ็›ŠๅŒๆฏ”ๅขž้•ฟ็އ(%)
+ocf_yoy | float | Y | ็ป่ฅๆดปๅŠจไบง็”Ÿ็š„็Žฐ้‡‘ๆต้‡ๅ‡€้ขๅŒๆฏ”ๅขž้•ฟ็އ(%)
+roe_yoy | float | Y | ๅ‡€่ต„ไบงๆ”ถ็›Š็އ(ๆ‘Š่–„)ๅŒๆฏ”ๅขž้•ฟ็އ(%)
+bps_yoy | float | Y | ๆฏ่‚กๅ‡€่ต„ไบง็›ธๅฏนๅนดๅˆๅขž้•ฟ็އ(%)
+assets_yoy | float | Y | ่ต„ไบงๆ€ป่ฎก็›ธๅฏนๅนดๅˆๅขž้•ฟ็އ(%)
+eqt_yoy | float | Y | ๅฝ’ๅฑžๆฏๅ…ฌๅธ็š„่‚กไธœๆƒ็›Š็›ธๅฏนๅนดๅˆๅขž้•ฟ็އ(%)
+tr_yoy | float | Y | ่ฅไธšๆ€ปๆ”ถๅ…ฅๅŒๆฏ”ๅขž้•ฟ็އ(%)
+or_yoy | float | Y | ่ฅไธšๆ”ถๅ…ฅๅŒๆฏ”ๅขž้•ฟ็އ(%)
+q_gr_yoy | float | N | ่ฅไธšๆ€ปๆ”ถๅ…ฅๅŒๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_gr_qoq | float | N | ่ฅไธšๆ€ปๆ”ถๅ…ฅ็Žฏๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_sales_yoy | float | Y | ่ฅไธšๆ”ถๅ…ฅๅŒๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_sales_qoq | float | N | ่ฅไธšๆ”ถๅ…ฅ็Žฏๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_op_yoy | float | N | ่ฅไธšๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_op_qoq | float | Y | ่ฅไธšๅˆฉๆถฆ็Žฏๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_profit_yoy | float | N | ๅ‡€ๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_profit_qoq | float | N | ๅ‡€ๅˆฉๆถฆ็Žฏๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_netprofit_yoy | float | N | ๅฝ’ๅฑžๆฏๅ…ฌๅธ่‚กไธœ็š„ๅ‡€ๅˆฉๆถฆๅŒๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+q_netprofit_qoq | float | N | ๅฝ’ๅฑžๆฏๅ…ฌๅธ่‚กไธœ็š„ๅ‡€ๅˆฉๆถฆ็Žฏๆฏ”ๅขž้•ฟ็އ(%)(ๅ•ๅญฃๅบฆ)
+equity_yoy | float | Y | ๅ‡€่ต„ไบงๅŒๆฏ”ๅขž้•ฟ็އ
+rd_exp | float | N | ็ ”ๅ‘่ดน็”จ
+update_flag | str | N | ๆ›ดๆ–ฐๆ ‡่ฏ†
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fina_indicator(ts_code='600000.SH')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+df = pro.query('fina_indicator', ts_code='600000.SH', start_date='20170101', end_date='20180801')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date end_date eps dt_eps total_revenue_ps revenue_ps \
+ 0 600000.SH 20180830 20180630 0.95 0.95 2.8024 2.8024
+ 1 600000.SH 20180428 20180331 0.46 0.46 1.3501 1.3501
+ 2 600000.SH 20180428 20171231 1.84 1.84 5.7447 5.7447
+ 3 600000.SH 20180428 20171231 1.84 1.84 5.7447 5.7447
+ 4 600000.SH 20171028 20170930 1.45 1.45 4.2507 4.2507
+ 5 600000.SH 20171028 20170930 1.45 1.45 4.2507 4.2507
+ 6 600000.SH 20170830 20170630 0.97 0.97 2.9659 2.9659
+ 7 600000.SH 20170427 20170331 0.63 0.63 1.9595 1.9595
+ 8 600000.SH 20170427 20170331 0.63 0.63 1.9595 1.9595
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\346\212\245\346\212\253\351\234\262\346\227\245\346\234\237\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\346\212\245\346\212\253\351\234\262\346\227\245\346\234\237\350\241\250.md"
new file mode 100644
index 000000000..40300910b
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\264\242\346\212\245\346\212\253\351\234\262\346\227\245\346\234\237\350\241\250.md"
@@ -0,0 +1,61 @@
+## ่ดขๆŠฅๆŠซ้œฒ่ฎกๅˆ’
+----
+
+ๆŽฅๅฃ๏ผšdisclosure_date
+ๆ่ฟฐ๏ผš่Žทๅ–่ดขๆŠฅๆŠซ้œฒ่ฎกๅˆ’ๆ—ฅๆœŸ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | TS่‚ก็ฅจไปฃ็ 
+end_date | str | N | ่ดขๆŠฅๅ‘จๆœŸ๏ผˆๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20181231่กจ็คบ2018ๅนดๅนดๆŠฅ๏ผŒ20180630่กจ็คบไธญๆŠฅ)
+pre_date | str | N | ่ฎกๅˆ’ๆŠซ้œฒๆ—ฅๆœŸ
+ann_date | str | N |ๆœ€ๆ–ฐๆŠซ้œฒๅ…ฌๅ‘Šๆ—ฅ
+actual_date | str | N | ๅฎž้™…ๆŠซ้œฒๆ—ฅๆœŸ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+ann_date | str | Y | ๆœ€ๆ–ฐๆŠซ้œฒๅ…ฌๅ‘Šๆ—ฅ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+pre_date | str | Y | ้ข„่ฎกๆŠซ้œฒๆ—ฅๆœŸ
+actual_date | str | Y | ๅฎž้™…ๆŠซ้œฒๆ—ฅๆœŸ
+modify_date | str | N | ๆŠซ้œฒๆ—ฅๆœŸไฟฎๆญฃ่ฎฐๅฝ•
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.disclosure_date(end_date='20181231')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ ts_code ann_date end_date pre_date actual_date modify_date
+ 0 300619.SZ 20181228 20181231 20190122 20190122 None
+ 1 300125.SZ 20181228 20181231 20190129 20190129 None
+ 2 601619.SH 20181227 20181231 20190129 20190129 None
+ 3 000055.SZ 20181228 20181231 20190130 20190130 None
+ 4 002910.SZ 20181228 20181231 20190131 None None
+ 5 002188.SZ 20181228 20181231 20190131 None None
+ 6 600738.SH 20190124 20181231 20190131 None None
+ 7 002107.SZ 20181228 20181231 20190201 None None
+ 8 300748.SZ 20181228 20181231 20190201 None None
+ 9 002675.SZ 20181228 20181231 20190201 None None
+ 10 002167.SZ 20181228 20181231 20190201 None None
+ 11 002211.SZ 20190125 20181231 20190201 None None
+ 12 002240.SZ 20181228 20181231 20190201 None None
+ 13 002245.SZ 20181228 20181231 20190201 None None
+ 14 002552.SZ 20181228 20181231 20190201 None None
+ 15 002825.SZ 20181228 20181231 20190201 None None
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
new file mode 100644
index 000000000..da3269466
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\264\242\345\212\241\346\225\260\346\215\256/\350\265\204\344\272\247\350\264\237\345\200\272\350\241\250.md"
@@ -0,0 +1,230 @@
+## ่ต„ไบง่ดŸๅ€บ่กจ
+----
+
+ๆŽฅๅฃ๏ผšbalancesheet๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ไธŠๅธ‚ๅ…ฌๅธ่ต„ไบง่ดŸๅ€บ่กจ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+<font color="red">
+ๆ็คบ๏ผšๅฝ“ๅ‰ๆŽฅๅฃๅช่ƒฝๆŒ‰ๅ•ๅช่‚ก็ฅจ่Žทๅ–ๅ…ถๅކๅฒๆ•ฐๆฎ๏ผŒๅฆ‚ๆžœ้œ€่ฆ่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจไธŠๅธ‚ๅ…ฌๅธๆ•ฐๆฎ๏ผŒ่ฏทไฝฟ็”จbalancesheet_vipๆŽฅๅฃ๏ผˆๅ‚ๆ•ฐไธ€่‡ด๏ผ‰๏ผŒ้œ€็งฏๆ”’5000็งฏๅˆ†ใ€‚
+</font>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+ann_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅ…ฌๅ‘Šๆ—ฅๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๅ…ฌๅ‘Šๆ—ฅ็ป“ๆŸๆ—ฅๆœŸ
+period | str | N | ๆŠฅๅ‘ŠๆœŸ(ๆฏไธชๅญฃๅบฆๆœ€ๅŽไธ€ๅคฉ็š„ๆ—ฅๆœŸ๏ผŒๆฏ”ๅฆ‚20171231่กจ็คบๅนดๆŠฅ๏ผŒ20170630ๅŠๅนดๆŠฅ๏ผŒ20170930ไธ‰ๅญฃๆŠฅ)
+report_type | str | N | ๆŠฅๅ‘Š็ฑปๅž‹๏ผš่งไธ‹ๆ–น่ฏฆ็ป†่ฏดๆ˜Ž
+comp_type | str | N | ๅ…ฌๅธ็ฑปๅž‹๏ผš1ไธ€่ˆฌๅทฅๅ•†ไธš 2้“ถ่กŒ 3ไฟ้™ฉ 4่ฏๅˆธ
+
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TS่‚ก็ฅจไปฃ็ 
+ann_date | str | Y | ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+f_ann_date | str | Y | ๅฎž้™…ๅ…ฌๅ‘Šๆ—ฅๆœŸ
+end_date | str | Y | ๆŠฅๅ‘ŠๆœŸ
+report_type | str | Y | ๆŠฅ่กจ็ฑปๅž‹
+comp_type | str | Y | ๅ…ฌๅธ็ฑปๅž‹(1ไธ€่ˆฌๅทฅๅ•†ไธš2้“ถ่กŒ3ไฟ้™ฉ4่ฏๅˆธ)
+end_type | str | Y | ๆŠฅๅ‘ŠๆœŸ็ฑปๅž‹
+total_share | float | Y | ๆœŸๆœซๆ€ป่‚กๆœฌ
+cap_rese | float | Y | ่ต„ๆœฌๅ…ฌ็งฏ้‡‘
+undistr_porfit | float | Y | ๆœชๅˆ†้…ๅˆฉๆถฆ
+surplus_rese | float | Y | ็›ˆไฝ™ๅ…ฌ็งฏ้‡‘
+special_rese | float | Y | ไธ“้กนๅ‚จๅค‡
+money_cap | float | Y | ่ดงๅธ่ต„้‡‘
+trad_asset | float | Y | ไบคๆ˜“ๆ€ง้‡‘่ž่ต„ไบง
+notes_receiv | float | Y | ๅบ”ๆ”ถ็ฅจๆฎ
+accounts_receiv | float | Y | ๅบ”ๆ”ถ่ดฆๆฌพ
+oth_receiv | float | Y | ๅ…ถไป–ๅบ”ๆ”ถๆฌพ
+prepayment | float | Y | ้ข„ไป˜ๆฌพ้กน
+div_receiv | float | Y | ๅบ”ๆ”ถ่‚กๅˆฉ
+int_receiv | float | Y | ๅบ”ๆ”ถๅˆฉๆฏ
+inventories | float | Y | ๅญ˜่ดง
+amor_exp | float | Y | ๅพ…ๆ‘Š่ดน็”จ
+nca_within_1y | float | Y | ไธ€ๅนดๅ†…ๅˆฐๆœŸ็š„้žๆตๅŠจ่ต„ไบง
+sett_rsrv | float | Y | ็ป“็ฎ—ๅค‡ไป˜้‡‘
+loanto_oth_bank_fi | float | Y | ๆ‹†ๅ‡บ่ต„้‡‘
+premium_receiv | float | Y | ๅบ”ๆ”ถไฟ่ดน
+reinsur_receiv | float | Y | ๅบ”ๆ”ถๅˆ†ไฟ่ดฆๆฌพ
+reinsur_res_receiv | float | Y | ๅบ”ๆ”ถๅˆ†ไฟๅˆๅŒๅ‡†ๅค‡้‡‘
+pur_resale_fa | float | Y | ไนฐๅ…ฅ่ฟ”ๅ”ฎ้‡‘่ž่ต„ไบง
+oth_cur_assets | float | Y | ๅ…ถไป–ๆตๅŠจ่ต„ไบง
+total_cur_assets | float | Y | ๆตๅŠจ่ต„ไบงๅˆ่ฎก
+fa_avail_for_sale | float | Y | ๅฏไพ›ๅ‡บๅ”ฎ้‡‘่ž่ต„ไบง
+htm_invest | float | Y | ๆŒๆœ‰่‡ณๅˆฐๆœŸๆŠ•่ต„
+lt_eqt_invest | float | Y | ้•ฟๆœŸ่‚กๆƒๆŠ•่ต„
+invest_real_estate | float | Y | ๆŠ•่ต„ๆ€งๆˆฟๅœฐไบง
+time_deposits | float | Y | ๅฎšๆœŸๅญ˜ๆฌพ
+oth_assets | float | Y | ๅ…ถไป–่ต„ไบง
+lt_rec | float | Y | ้•ฟๆœŸๅบ”ๆ”ถๆฌพ
+fix_assets | float | Y | ๅ›บๅฎš่ต„ไบง
+cip | float | Y | ๅœจๅปบๅทฅ็จ‹
+const_materials | float | Y | ๅทฅ็จ‹็‰ฉ่ต„
+fixed_assets_disp | float | Y | ๅ›บๅฎš่ต„ไบงๆธ…็†
+produc_bio_assets | float | Y | ็”Ÿไบงๆ€ง็”Ÿ็‰ฉ่ต„ไบง
+oil_and_gas_assets | float | Y | ๆฒนๆฐ”่ต„ไบง
+intan_assets | float | Y | ๆ— ๅฝข่ต„ไบง
+r_and_d | float | Y | ็ ”ๅ‘ๆ”ฏๅ‡บ
+goodwill | float | Y | ๅ•†่ช‰
+lt_amor_exp | float | Y | ้•ฟๆœŸๅพ…ๆ‘Š่ดน็”จ
+defer_tax_assets | float | Y | ้€’ๅปถๆ‰€ๅพ—็จŽ่ต„ไบง
+decr_in_disbur | float | Y | ๅ‘ๆ”พ่ดทๆฌพๅŠๅžซๆฌพ
+oth_nca | float | Y | ๅ…ถไป–้žๆตๅŠจ่ต„ไบง
+total_nca | float | Y | ้žๆตๅŠจ่ต„ไบงๅˆ่ฎก
+cash_reser_cb | float | Y | ็Žฐ้‡‘ๅŠๅญ˜ๆ”พไธญๅคฎ้“ถ่กŒๆฌพ้กน
+depos_in_oth_bfi | float | Y | ๅญ˜ๆ”พๅŒไธšๅ’Œๅ…ถๅฎƒ้‡‘่žๆœบๆž„ๆฌพ้กน
+prec_metals | float | Y | ่ดต้‡‘ๅฑž
+deriv_assets | float | Y | ่ก็”Ÿ้‡‘่ž่ต„ไบง
+rr_reins_une_prem | float | Y | ๅบ”ๆ”ถๅˆ†ไฟๆœชๅˆฐๆœŸ่ดฃไปปๅ‡†ๅค‡้‡‘
+rr_reins_outstd_cla | float | Y | ๅบ”ๆ”ถๅˆ†ไฟๆœชๅ†ณ่ต”ๆฌพๅ‡†ๅค‡้‡‘
+rr_reins_lins_liab | float | Y | ๅบ”ๆ”ถๅˆ†ไฟๅฏฟ้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+rr_reins_lthins_liab | float | Y | ๅบ”ๆ”ถๅˆ†ไฟ้•ฟๆœŸๅฅๅบท้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+refund_depos | float | Y | ๅญ˜ๅ‡บไฟ่ฏ้‡‘
+ph_pledge_loans | float | Y | ไฟๆˆท่ดจๆŠผ่ดทๆฌพ
+refund_cap_depos | float | Y | ๅญ˜ๅ‡บ่ต„ๆœฌไฟ่ฏ้‡‘
+indep_acct_assets | float | Y | ็‹ฌ็ซ‹่ดฆๆˆท่ต„ไบง
+client_depos | float | Y | ๅ…ถไธญ๏ผšๅฎขๆˆท่ต„้‡‘ๅญ˜ๆฌพ
+client_prov | float | Y | ๅ…ถไธญ๏ผšๅฎขๆˆทๅค‡ไป˜้‡‘
+transac_seat_fee | float | Y | ๅ…ถไธญ:ไบคๆ˜“ๅธญไฝ่ดน
+invest_as_receiv | float | Y | ๅบ”ๆ”ถๆฌพ้กน็ฑปๆŠ•่ต„
+total_assets | float | Y | ่ต„ไบงๆ€ป่ฎก
+lt_borr | float | Y | ้•ฟๆœŸๅ€Ÿๆฌพ
+st_borr | float | Y | ็ŸญๆœŸๅ€Ÿๆฌพ
+cb_borr | float | Y | ๅ‘ไธญๅคฎ้“ถ่กŒๅ€Ÿๆฌพ
+depos_ib_deposits | float | Y | ๅธๆ”ถๅญ˜ๆฌพๅŠๅŒไธšๅญ˜ๆ”พ
+loan_oth_bank | float | Y | ๆ‹†ๅ…ฅ่ต„้‡‘
+trading_fl | float | Y | ไบคๆ˜“ๆ€ง้‡‘่ž่ดŸๅ€บ
+notes_payable | float | Y | ๅบ”ไป˜็ฅจๆฎ
+acct_payable | float | Y | ๅบ”ไป˜่ดฆๆฌพ
+adv_receipts | float | Y | ้ข„ๆ”ถๆฌพ้กน
+sold_for_repur_fa | float | Y | ๅ–ๅ‡บๅ›ž่ดญ้‡‘่ž่ต„ไบงๆฌพ
+comm_payable | float | Y | ๅบ”ไป˜ๆ‰‹็ปญ่ดนๅŠไฝฃ้‡‘
+payroll_payable | float | Y | ๅบ”ไป˜่Œๅทฅ่–ช้…ฌ
+taxes_payable | float | Y | ๅบ”ไบค็จŽ่ดน
+int_payable | float | Y | ๅบ”ไป˜ๅˆฉๆฏ
+div_payable | float | Y | ๅบ”ไป˜่‚กๅˆฉ
+oth_payable | float | Y | ๅ…ถไป–ๅบ”ไป˜ๆฌพ
+acc_exp | float | Y | ้ข„ๆ่ดน็”จ
+deferred_inc | float | Y | ้€’ๅปถๆ”ถ็›Š
+st_bonds_payable | float | Y | ๅบ”ไป˜็ŸญๆœŸๅ€บๅˆธ
+payable_to_reinsurer | float | Y | ๅบ”ไป˜ๅˆ†ไฟ่ดฆๆฌพ
+rsrv_insur_cont | float | Y | ไฟ้™ฉๅˆๅŒๅ‡†ๅค‡้‡‘
+acting_trading_sec | float | Y | ไปฃ็†ไนฐๅ–่ฏๅˆธๆฌพ
+acting_uw_sec | float | Y | ไปฃ็†ๆ‰ฟ้”€่ฏๅˆธๆฌพ
+non_cur_liab_due_1y | float | Y | ไธ€ๅนดๅ†…ๅˆฐๆœŸ็š„้žๆตๅŠจ่ดŸๅ€บ
+oth_cur_liab | float | Y | ๅ…ถไป–ๆตๅŠจ่ดŸๅ€บ
+total_cur_liab | float | Y | ๆตๅŠจ่ดŸๅ€บๅˆ่ฎก
+bond_payable | float | Y | ๅบ”ไป˜ๅ€บๅˆธ
+lt_payable | float | Y | ้•ฟๆœŸๅบ”ไป˜ๆฌพ
+specific_payables | float | Y | ไธ“้กนๅบ”ไป˜ๆฌพ
+estimated_liab | float | Y | ้ข„่ฎก่ดŸๅ€บ
+defer_tax_liab | float | Y | ้€’ๅปถๆ‰€ๅพ—็จŽ่ดŸๅ€บ
+defer_inc_non_cur_liab | float | Y | ้€’ๅปถๆ”ถ็›Š-้žๆตๅŠจ่ดŸๅ€บ
+oth_ncl | float | Y | ๅ…ถไป–้žๆตๅŠจ่ดŸๅ€บ
+total_ncl | float | Y | ้žๆตๅŠจ่ดŸๅ€บๅˆ่ฎก
+depos_oth_bfi | float | Y | ๅŒไธšๅ’Œๅ…ถๅฎƒ้‡‘่žๆœบๆž„ๅญ˜ๆ”พๆฌพ้กน
+deriv_liab | float | Y | ่ก็”Ÿ้‡‘่ž่ดŸๅ€บ
+depos | float | Y | ๅธๆ”ถๅญ˜ๆฌพ
+agency_bus_liab | float | Y | ไปฃ็†ไธšๅŠก่ดŸๅ€บ
+oth_liab | float | Y | ๅ…ถไป–่ดŸๅ€บ
+prem_receiv_adva | float | Y | ้ข„ๆ”ถไฟ่ดน
+depos_received | float | Y | ๅญ˜ๅ…ฅไฟ่ฏ้‡‘
+ph_invest | float | Y | ไฟๆˆทๅ‚จ้‡‘ๅŠๆŠ•่ต„ๆฌพ
+reser_une_prem | float | Y | ๆœชๅˆฐๆœŸ่ดฃไปปๅ‡†ๅค‡้‡‘
+reser_outstd_claims | float | Y | ๆœชๅ†ณ่ต”ๆฌพๅ‡†ๅค‡้‡‘
+reser_lins_liab | float | Y | ๅฏฟ้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+reser_lthins_liab | float | Y | ้•ฟๆœŸๅฅๅบท้™ฉ่ดฃไปปๅ‡†ๅค‡้‡‘
+indept_acc_liab | float | Y | ็‹ฌ็ซ‹่ดฆๆˆท่ดŸๅ€บ
+pledge_borr | float | Y | ๅ…ถไธญ:่ดจๆŠผๅ€Ÿๆฌพ
+indem_payable | float | Y | ๅบ”ไป˜่ต”ไป˜ๆฌพ
+policy_div_payable | float | Y | ๅบ”ไป˜ไฟๅ•็บขๅˆฉ
+total_liab | float | Y | ่ดŸๅ€บๅˆ่ฎก
+treasury_share | float | Y | ๅ‡:ๅบ“ๅญ˜่‚ก
+ordin_risk_reser | float | Y | ไธ€่ˆฌ้ฃŽ้™ฉๅ‡†ๅค‡
+forex_differ | float | Y | ๅค–ๅธๆŠฅ่กจๆŠ˜็ฎ—ๅทฎ้ข
+invest_loss_unconf | float | Y | ๆœช็กฎ่ฎค็š„ๆŠ•่ต„ๆŸๅคฑ
+minority_int | float | Y | ๅฐ‘ๆ•ฐ่‚กไธœๆƒ็›Š
+total_hldr_eqy_exc_min_int | float | Y | ่‚กไธœๆƒ็›Šๅˆ่ฎก(ไธๅซๅฐ‘ๆ•ฐ่‚กไธœๆƒ็›Š)
+total_hldr_eqy_inc_min_int | float | Y | ่‚กไธœๆƒ็›Šๅˆ่ฎก(ๅซๅฐ‘ๆ•ฐ่‚กไธœๆƒ็›Š)
+total_liab_hldr_eqy | float | Y | ่ดŸๅ€บๅŠ่‚กไธœๆƒ็›Šๆ€ป่ฎก
+lt_payroll_payable | float | Y | ้•ฟๆœŸๅบ”ไป˜่Œๅทฅ่–ช้…ฌ
+oth_comp_income | float | Y | ๅ…ถไป–็ปผๅˆๆ”ถ็›Š
+oth_eqt_tools | float | Y | ๅ…ถไป–ๆƒ็›Šๅทฅๅ…ท
+oth_eqt_tools_p_shr | float | Y | ๅ…ถไป–ๆƒ็›Šๅทฅๅ…ท(ไผ˜ๅ…ˆ่‚ก)
+lending_funds | float | Y | ่žๅ‡บ่ต„้‡‘
+acc_receivable | float | Y | ๅบ”ๆ”ถๆฌพ้กน
+st_fin_payable | float | Y | ๅบ”ไป˜็ŸญๆœŸ่ž่ต„ๆฌพ
+payables | float | Y | ๅบ”ไป˜ๆฌพ้กน
+hfs_assets | float | Y | ๆŒๆœ‰ๅพ…ๅ”ฎ็š„่ต„ไบง
+hfs_sales | float | Y | ๆŒๆœ‰ๅพ…ๅ”ฎ็š„่ดŸๅ€บ
+cost_fin_assets | float | Y | ไปฅๆ‘Šไฝ™ๆˆๆœฌ่ฎก้‡็š„้‡‘่ž่ต„ไบง
+fair_value_fin_assets | float | Y | ไปฅๅ…ฌๅ…ไปทๅ€ผ่ฎก้‡ไธ”ๅ…ถๅ˜ๅŠจ่ฎกๅ…ฅๅ…ถไป–็ปผๅˆๆ”ถ็›Š็š„้‡‘่ž่ต„ไบง
+cip_total | float | Y | ๅœจๅปบๅทฅ็จ‹(ๅˆ่ฎก)(ๅ…ƒ)
+oth_pay_total | float | Y | ๅ…ถไป–ๅบ”ไป˜ๆฌพ(ๅˆ่ฎก)(ๅ…ƒ)
+long_pay_total | float | Y | ้•ฟๆœŸๅบ”ไป˜ๆฌพ(ๅˆ่ฎก)(ๅ…ƒ)
+debt_invest | float | Y | ๅ€บๆƒๆŠ•่ต„(ๅ…ƒ)
+oth_debt_invest | float | Y | ๅ…ถไป–ๅ€บๆƒๆŠ•่ต„(ๅ…ƒ)
+oth_eq_invest | float | N | ๅ…ถไป–ๆƒ็›Šๅทฅๅ…ทๆŠ•่ต„(ๅ…ƒ)
+oth_illiq_fin_assets | float | N | ๅ…ถไป–้žๆตๅŠจ้‡‘่ž่ต„ไบง(ๅ…ƒ)
+oth_eq_ppbond | float | N | ๅ…ถไป–ๆƒ็›Šๅทฅๅ…ท:ๆฐธ็ปญๅ€บ(ๅ…ƒ)
+receiv_financing | float | N | ๅบ”ๆ”ถๆฌพ้กน่ž่ต„
+use_right_assets | float | N | ไฝฟ็”จๆƒ่ต„ไบง
+lease_liab | float | N | ็งŸ่ต่ดŸๅ€บ
+contract_assets | float | Y | ๅˆๅŒ่ต„ไบง
+contract_liab | float | Y | ๅˆๅŒ่ดŸๅ€บ
+accounts_receiv_bill | float | Y | ๅบ”ๆ”ถ็ฅจๆฎๅŠๅบ”ๆ”ถ่ดฆๆฌพ
+accounts_pay | float | Y | ๅบ”ไป˜็ฅจๆฎๅŠๅบ”ไป˜่ดฆๆฌพ
+oth_rcv_total | float | Y | ๅ…ถไป–ๅบ”ๆ”ถๆฌพ(ๅˆ่ฎก)๏ผˆๅ…ƒ๏ผ‰
+fix_assets_total | float | Y | ๅ›บๅฎš่ต„ไบง(ๅˆ่ฎก)(ๅ…ƒ)
+update_flag | str | Y | ๆ›ดๆ–ฐๆ ‡่ฏ†
+
+**ๆŽฅๅฃไฝฟ็”จ่ฏดๆ˜Ž**
+```python
+
+pro = ts.pro_api()
+
+df = pro.balancesheet(ts_code='600000.SH', start_date='20180101', end_date='20180730', fields='ts_code,ann_date,f_ann_date,end_date,report_type,comp_type,cap_rese')
+
+```
+
+่Žทๅ–ๆŸไธ€ๅญฃๅบฆๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+```
+df2 = pro.balancesheet_vip(period='20181231',fields='ts_code,ann_date,f_ann_date,end_date,report_type,comp_type,cap_rese')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ ts_code ann_date f_ann_date end_date report_type comp_type \
+ 0 600000.SH 20180830 20180830 20180630 1 2
+ 1 600000.SH 20180428 20180428 20180331 1 2
+
+ cap_rese
+ 0 8.176000e+10
+ 1 8.176000e+10
+
+
+
+**ไธป่ฆๆŠฅ่กจ็ฑปๅž‹่ฏดๆ˜Ž**
+
+ไปฃ็  | ็ฑปๅž‹ | ่ฏดๆ˜Ž
+---- | ----- | ---- |
+1 | ๅˆๅนถๆŠฅ่กจ | ไธŠๅธ‚ๅ…ฌๅธๆœ€ๆ–ฐๆŠฅ่กจ๏ผˆ้ป˜่ฎค๏ผ‰
+2 | ๅ•ๅญฃๅˆๅนถ | ๅ•ไธ€ๅญฃๅบฆ็š„ๅˆๅนถๆŠฅ่กจ
+3 | ่ฐƒๆ•ดๅ•ๅญฃๅˆๅนถ่กจ | ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃๅˆๅนถๆŠฅ่กจ๏ผˆๅฆ‚ๆžœๆœ‰๏ผ‰
+4 | ่ฐƒๆ•ดๅˆๅนถๆŠฅ่กจ | ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ๏ผŒๆŠฅๅ‘ŠๆœŸไธบไธŠๅนดๅบฆ
+5 | ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆ•ฐๆฎๅ‘็”Ÿๅ˜ๆ›ด๏ผŒๅฐ†ๅŽŸๆ•ฐๆฎ่ฟ›่กŒไฟ็•™๏ผŒๅณ่ฐƒๆ•ดๅ‰็š„ๅŽŸๆ•ฐๆฎ
+6 | ๆฏๅ…ฌๅธๆŠฅ่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+7 | ๆฏๅ…ฌๅธๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ็š„ๅ•ๅญฃๅบฆ่กจ
+8 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ•ๅญฃ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅŽ็š„ๅ•ๅญฃ่กจ
+9 | ๆฏๅ…ฌๅธ่ฐƒๆ•ด่กจ | ่ฏฅๅ…ฌๅธๆฏๅ…ฌๅธ็š„ๆœฌๅนดๅบฆๅ…ฌๅธƒไธŠๅนดๅŒๆœŸ็š„่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+10 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰็š„ๅŽŸๅง‹่ดขๅŠกๆŠฅ่กจๆ•ฐๆฎ
+11 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๅˆๅนถๆŠฅ่กจ | ๆฏๅ…ฌๅธ่ฐƒๆ•ดไน‹ๅ‰ๅˆๅนถๆŠฅ่กจๅŽŸๆ•ฐๆฎ
+12 | ๆฏๅ…ฌๅธ่ฐƒๆ•ดๅ‰ๆŠฅ่กจ | ๆฏๅ…ฌๅธๆŠฅ่กจๅ‘็”Ÿๅ˜ๆ›ดๅ‰ไฟ็•™็š„ๅŽŸๆ•ฐๆฎ
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(DC).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
new file mode 100644
index 000000000..7e214eb88
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
@@ -0,0 +1,77 @@
+## ไธช่‚ก่ต„้‡‘ๆตๅ‘๏ผˆDC๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_dc
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒไธช่‚ก่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ20230911
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง่Žทๅ–6000ๆกๆ•ฐๆฎ๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–่‚ก็ฅจไปฃ็ ๅพช็Žฏๆๅ–ๆ•ฐๆฎ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘5000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+close | float | Y | ๆœ€ๆ–ฐไปท
+net_amount | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+net_amount_rate | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅๅ‡€ๅ ๆฏ”๏ผˆ%๏ผ‰
+buy_elg_amount | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_elg_amount_rate | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”๏ผˆ%๏ผ‰
+buy_lg_amount | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_lg_amount_rate | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”๏ผˆ%๏ผ‰
+buy_md_amount | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_md_amount_rate | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”๏ผˆ%๏ผ‰
+buy_sm_amount | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_sm_amount_rate | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”๏ผˆ%๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow_dc(trade_date='20241011')
+
+#่Žทๅ–ๅ•ไธช่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow_dc(ts_code='002149.SZ', start_date='20240901', end_date='20240913')
+
+
+```
+
+<br>
+<br>
+
+ trade_date ts_code name pct_change ... buy_md_amount buy_md_amount_rate buy_sm_amount buy_sm_amount_rate
+ 0 20240913 002149.SZ ่ฅฟ้ƒจๆๆ–™ -1.34 ... -12.65 -0.35 -62.43 -1.72
+ 1 20240912 002149.SZ ่ฅฟ้ƒจๆๆ–™ 1.43 ... 13.71 0.33 -388.43 -9.25
+ 2 20240911 002149.SZ ่ฅฟ้ƒจๆๆ–™ -0.79 ... -26.10 -1.68 95.69 6.15
+ 3 20240910 002149.SZ ่ฅฟ้ƒจๆๆ–™ -0.08 ... -199.50 -7.26 -69.29 -2.52
+ 4 20240909 002149.SZ ่ฅฟ้ƒจๆๆ–™ 1.12 ... 66.76 2.48 -198.12 -7.37
+ 5 20240906 002149.SZ ่ฅฟ้ƒจๆๆ–™ -2.49 ... -104.57 -2.74 769.65 20.19
+ 6 20240905 002149.SZ ่ฅฟ้ƒจๆๆ–™ -0.70 ... -307.62 -8.11 346.51 9.14
+ 7 20240904 002149.SZ ่ฅฟ้ƒจๆๆ–™ -0.92 ... 370.98 9.56 -23.25 -0.60
+ 8 20240903 002149.SZ ่ฅฟ้ƒจๆๆ–™ 0.93 ... -195.45 -3.87 643.41 12.75
+ 9 20240902 002149.SZ ่ฅฟ้ƒจๆๆ–™ -3.44 ... 195.50 2.32 988.69 11.71
+
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(THS).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
new file mode 100644
index 000000000..009a61e1d
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
@@ -0,0 +1,68 @@
+## ไธช่‚ก่ต„้‡‘ๆตๅ‘๏ผˆTHS๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_ths
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบไธช่‚ก่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง6000๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–่‚ก็ฅจไปฃ็ ๅพช็Žฏๆๅ–ๆ•ฐๆฎ
+็งฏๅˆ†๏ผš6000็งฏๅˆ†ๅฏ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ่‚ก็ฅจไปฃ็ 
+name | str | Y | ่‚ก็ฅจๅ็งฐ
+pct_change | float | Y | ๆถจ่ทŒๅน…
+latest | float | Y | ๆœ€ๆ–ฐไปท
+net_amount | float | Y | ่ต„้‡‘ๅ‡€ๆตๅ…ฅ(ไธ‡ๅ…ƒ)
+net_d5_amount | float | Y | 5ๆ—ฅไธปๅŠ›ๅ‡€้ข(ไธ‡ๅ…ƒ)
+buy_lg_amount | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ้ข(ไธ‡ๅ…ƒ)
+buy_lg_amount_rate | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”(%)
+buy_md_amount | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ้ข(ไธ‡ๅ…ƒ)
+buy_md_amount_rate | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”(%)
+buy_sm_amount | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ้ข(ไธ‡ๅ…ƒ)
+buy_sm_amount_rate | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅๅ ๆฏ”(%)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow_ths(trade_date='20241011')
+
+#่Žทๅ–ๅ•ไธช่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow_ths(ts_code='002149.SZ', start_date='20241001', end_date='20241011')
+
+
+```
+
+ trade_date ts_code name pct_change ... buy_md_amount buy_md_amount_rate buy_sm_amount buy_sm_amount_rate
+ 0 20241011 002149.SZ ่ฅฟ้ƒจๆๆ–™ 2.47 ... -589.0 5.43 -191.0 1.76
+ 1 20241010 002149.SZ ่ฅฟ้ƒจๆๆ–™ 1.22 ... -2732.0 15.38 -1031.0 5.81
+ 2 20241009 002149.SZ ่ฅฟ้ƒจๆๆ–™ 7.00 ... -1941.0 9.25 -2079.0 9.90
+ 3 20241008 002149.SZ ่ฅฟ้ƒจๆๆ–™ 5.17 ... -2985.0 7.93 -2507.0 6.66
+
+
+<br>
+<br>
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221.md"
new file mode 100644
index 000000000..0f88362b4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\344\270\252\350\202\241\350\265\204\351\207\221\346\265\201\345\220\221.md"
@@ -0,0 +1,127 @@
+## ไธช่‚ก่ต„้‡‘ๆตๅ‘
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒชๆทฑA่‚ก็ฅจ่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๅˆ†ๆžๅคงๅ•ๅฐๅ•ๆˆไบคๆƒ…ๅ†ต๏ผŒ็”จไบŽๅˆคๅˆซ่ต„้‡‘ๅŠจๅ‘๏ผŒๆ•ฐๆฎๅผ€ๅง‹ไบŽ2010ๅนดใ€‚
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๆๅ–6000่กŒ่ฎฐๅฝ•๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+็งฏๅˆ†๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘2000็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅŸบ็ก€็งฏๅˆ†ๆœ‰ๆต้‡ๆŽงๅˆถ๏ผŒ็งฏๅˆ†่ถŠๅคšๆƒ้™่ถŠๅคง๏ผŒ่ฏท่‡ช่กŒๆ้ซ˜็งฏๅˆ†๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ่‚ก็ฅจไปฃ็  ๏ผˆ่‚ก็ฅจๅ’Œๆ—ถ้—ดๅ‚ๆ•ฐ่‡ณๅฐ‘่พ“ๅ…ฅไธ€ไธช๏ผ‰
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+ts_code | str | Y | TSไปฃ็ 
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+buy_sm_vol | int | Y | ๅฐๅ•ไนฐๅ…ฅ้‡๏ผˆๆ‰‹๏ผ‰
+buy_sm_amount | float | Y | ๅฐๅ•ไนฐๅ…ฅ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+sell_sm_vol | int | Y | ๅฐๅ•ๅ–ๅ‡บ้‡๏ผˆๆ‰‹๏ผ‰
+sell_sm_amount | float | Y | ๅฐๅ•ๅ–ๅ‡บ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_md_vol | int | Y | ไธญๅ•ไนฐๅ…ฅ้‡๏ผˆๆ‰‹๏ผ‰
+buy_md_amount | float | Y | ไธญๅ•ไนฐๅ…ฅ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+sell_md_vol | int | Y | ไธญๅ•ๅ–ๅ‡บ้‡๏ผˆๆ‰‹๏ผ‰
+sell_md_amount | float | Y | ไธญๅ•ๅ–ๅ‡บ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_lg_vol | int | Y | ๅคงๅ•ไนฐๅ…ฅ้‡๏ผˆๆ‰‹๏ผ‰
+buy_lg_amount | float | Y | ๅคงๅ•ไนฐๅ…ฅ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+sell_lg_vol | int | Y | ๅคงๅ•ๅ–ๅ‡บ้‡๏ผˆๆ‰‹๏ผ‰
+sell_lg_amount | float | Y | ๅคงๅ•ๅ–ๅ‡บ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+buy_elg_vol | int | Y | ็‰นๅคงๅ•ไนฐๅ…ฅ้‡๏ผˆๆ‰‹๏ผ‰
+buy_elg_amount | float | Y | ็‰นๅคงๅ•ไนฐๅ…ฅ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+sell_elg_vol | int | Y | ็‰นๅคงๅ•ๅ–ๅ‡บ้‡๏ผˆๆ‰‹๏ผ‰
+sell_elg_amount | float | Y | ็‰นๅคงๅ•ๅ–ๅ‡บ้‡‘้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+net_mf_vol | int | Y | ๅ‡€ๆตๅ…ฅ้‡๏ผˆๆ‰‹๏ผ‰
+net_mf_amount | float | Y | ๅ‡€ๆตๅ…ฅ้ข๏ผˆไธ‡ๅ…ƒ๏ผ‰
+
+<br>
+
+ๅ„็ฑปๅˆซ็ปŸ่ฎก่ง„ๅˆ™ๅฆ‚ไธ‹๏ผš
+**ๅฐๅ•**๏ผš5ไธ‡ไปฅไธ‹ **ไธญๅ•**๏ผš5ไธ‡๏ฝž20ไธ‡ **ๅคงๅ•**๏ผš20ไธ‡๏ฝž100ไธ‡ **็‰นๅคงๅ•**๏ผšๆˆไบค้ข>=100ไธ‡ ๏ผŒๆ•ฐๆฎๅŸบไบŽไธปๅŠจไนฐๅ–ๅ•็ปŸ่ฎก
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api('your token')
+
+#่Žทๅ–ๅ•ๆ—ฅๅ…จ้ƒจ่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow(trade_date='20190315')
+
+#่Žทๅ–ๅ•ไธช่‚ก็ฅจๆ•ฐๆฎ
+df = pro.moneyflow(ts_code='002149.SZ', start_date='20190115', end_date='20190315')
+
+
+```
+
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ ts_code trade_date buy_sm_vol buy_sm_amount sell_sm_vol \
+ 0 000779.SZ 20190315 11377 1150.17 11100
+ 1 000933.SZ 20190315 94220 4803.22 105924
+ 2 002270.SZ 20190315 43979 2330.96 45893
+ 3 002319.SZ 20190315 21502 2952.88 17155
+ 4 002604.SZ 20190315 31944 607.35 58667
+ 5 300065.SZ 20190315 16048 2294.71 16425
+ 6 600062.SH 20190315 55439 7432.13 65765
+ 7 002735.SZ 20190315 3220 797.10 4598
+ 8 300196.SZ 20190315 12534 1286.02 8340
+ 9 300350.SZ 20190315 15346 1120.12 18853
+ 10 600193.SH 20190315 12183 503.73 19576
+ 11 002866.SZ 20190315 16932 2213.68 16037
+ 12 300481.SZ 20190315 21386 4275.33 21863
+ 13 600527.SH 20190315 115462 2975.44 79272
+ 14 603980.SH 20190315 13957 1924.69 11718
+ 15 600658.SH 20190315 71767 4826.73 69535
+ 16 600812.SH 20190315 26140 1247.47 34923
+ 17 002013.SZ 20190315 170234 12286.02 148509
+ 18 600789.SH 20190315 211012 21644.56 150598
+ 19 601636.SH 20190315 70737 3117.43 68073
+ 20 000807.SZ 20190315 129668 6361.06 122077
+
+ ...
+
+ sell_sm_amount buy_md_vol buy_md_amount sell_md_vol sell_md_amount \
+ 0 1122.97 13012 1316.72 14812 1498.90
+ 1 5411.72 135976 6935.40 154023 7863.00
+ 2 2435.98 57679 3059.15 47279 2507.55
+ 3 2358.68 27245 3742.52 26708 3670.05
+ 4 1114.40 69897 1327.41 41108 781.19
+ 5 2353.34 31232 4472.05 26771 3834.95
+ 6 8817.75 86617 11615.40 79551 10676.99
+ 7 1140.61 4602 1141.61 2730 676.72
+ 8 855.45 9401 963.72 10478 1074.32
+ 9 1380.31 24224 1770.90 21588 1577.92
+ 10 812.58 28696 1185.17 31087 1286.11
+ 11 2100.70 19197 2511.62 20269 2650.56
+ 12 4379.14 31692 6345.72 32873 6578.36
+ 13 2046.54 107103 2763.00 84883 2191.24
+ 14 1619.33 14621 2019.41 14528 2005.69
+ 15 4691.29 92788 6232.80 93273 6280.13
+ 16 1669.97 38812 1855.78 39211 1874.05
+ 17 10726.22 154979 11190.69 164090 11855.76
+ 18 15479.08 269470 27660.18 236958 24338.36
+ 19 3000.73 90416 3984.68 115162 5075.50
+ 20 5999.66 175692 8627.77 178044 8751.08
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\345\244\247\347\233\230\350\265\204\351\207\221\346\265\201\345\220\221(DC).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\345\244\247\347\233\230\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
new file mode 100644
index 000000000..a38e8bd47
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\345\244\247\347\233\230\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
@@ -0,0 +1,79 @@
+## ๅคง็›˜่ต„้‡‘ๆตๅ‘๏ผˆDC๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_mkt_dc
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒๅคง็›˜่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง3000ๆก๏ผŒๅฏๆ นๆฎๆ—ฅๆœŸๆˆ–ๆ—ฅๆœŸๅŒบ้—ดๅพช็Žฏ่Žทๅ–
+็งฏๅˆ†๏ผš120็งฏๅˆ†ๅฏ่ฏ•็”จ๏ผŒ6000็งฏๅˆ†ๅฏๆญฃๅผ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+close_sh | float | Y | ไธŠ่ฏๆ”ถ็›˜ไปท๏ผˆ็‚น๏ผ‰
+pct_change_sh | float | Y | ไธŠ่ฏๆถจ่ทŒๅน…(%)
+close_sz | float | Y | ๆทฑ่ฏๆ”ถ็›˜ไปท๏ผˆ็‚น๏ผ‰
+pct_change_sz | float | Y | ๆทฑ่ฏๆถจ่ทŒๅน…(%)
+net_amount | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+net_amount_rate | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅๅ‡€ๅ ๆฏ”%
+buy_elg_amount | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_elg_amount_rate | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_lg_amount | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_lg_amount_rate | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_md_amount | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_md_amount_rate | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_sm_amount | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_sm_amount_rate | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๆ—ฅๆ‰€ๆœ‰ๆฟๅ—่ต„้‡‘ๆตๅ‘
+df = pro.moneyflow_mkt_dc(start_date='20240901', end_date='20240930')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date close_sh ptc_change_sh close_sz pct_change_sz buy_elg_amount buy_lg_amount
+ 0 20240930 3336.50 8.06 10529.76 10.67 -6500884480.00 -29199228928.00
+ 1 20240927 3087.53 2.89 9514.86 6.71 17175101440.00 -3564773376.00
+ 2 20240926 3000.95 3.61 8916.65 4.44 18894807552.00 -2446319616.00
+ 3 20240925 2896.31 1.16 8537.73 1.21 -4010342144.00 -10390331392.00
+ 4 20240924 2863.13 4.15 8435.70 4.36 22524846080.00 5433212928.00
+ 5 20240923 2748.92 0.44 8083.38 0.10 -926530816.00 -5776028928.00
+ 6 20240920 2736.81 0.03 8075.14 -0.15 -4991644160.00 -6899648256.00
+ 7 20240919 2736.02 0.69 8087.60 1.19 3472006400.00 1882220032.00
+ 8 20240918 2717.28 0.49 7992.25 0.11 -5056087040.00 -7836610048.00
+ 9 20240913 2704.09 -0.48 7983.55 -0.88 -5527845376.00 -9092720640.00
+ 10 20240912 2717.12 -0.17 8054.24 -0.63 -3747197184.00 -5645509632.00
+ 11 20240911 2721.80 -0.82 8105.38 0.39 -3585276416.00 -6461025792.00
+ 12 20240910 2744.19 0.28 8073.83 0.13 -2726709504.00 -3818158336.00
+ 13 20240909 2736.49 -1.06 8063.27 -0.83 -7874987776.00 -8608827904.00
+ 14 20240906 2765.81 -0.81 8130.77 -1.44 -5892936960.00 -13908542976.00
+ 15 20240905 2788.31 0.14 8249.66 0.28 1211718400.00 -3910650112.00
+ 16 20240904 2784.28 -0.67 8226.24 -0.51 -7008298240.00 -11212970496.00
+ 17 20240903 2802.98 -0.29 8268.05 1.17 263304192.00 -3680828928.00
+ 18 20240902 2811.04 -1.10 8172.21 -2.11 -18689678336.00 -20967354368.00
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(DC).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
new file mode 100644
index 000000000..b693329b5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(DC).md"
@@ -0,0 +1,80 @@
+## ไธœ่ดขๆฆ‚ๅฟตๅŠ่กŒไธšๆฟๅ—่ต„้‡‘ๆตๅ‘๏ผˆDC๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_ind_dc
+ๆ่ฟฐ๏ผš่Žทๅ–ไธœๆ–น่ดขๅฏŒๆฟๅ—่ต„้‡‘ๆตๅ‘๏ผŒๆฏๅคฉ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่ฐƒๅ–5000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ’Œไปฃ็ ๅพช็Žฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš6000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ๏ผˆYYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+content_type | str | N | ่ต„้‡‘็ฑปๅž‹(่กŒไธšใ€ๆฆ‚ๅฟตใ€ๅœฐๅŸŸ)
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+content_type | str | Y | ๆ•ฐๆฎ็ฑปๅž‹
+ts_code | str | Y | DCๆฟๅ—ไปฃ็ ๏ผˆ่กŒไธšใ€ๆฆ‚ๅฟตใ€ๅœฐๅŸŸ๏ผ‰
+name | str | Y | ๆฟๅ—ๅ็งฐ
+pct_change | float | Y | ๆฟๅ—ๆถจ่ทŒๅน…๏ผˆ%๏ผ‰
+close | float | Y | ๆฟๅ—ๆœ€ๆ–ฐๆŒ‡ๆ•ฐ
+net_amount | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+net_amount_rate | float | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅๅ‡€ๅ ๆฏ”%
+buy_elg_amount | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_elg_amount_rate | float | Y | ไปŠๆ—ฅ่ถ…ๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_lg_amount | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_lg_amount_rate | float | Y | ไปŠๆ—ฅๅคงๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_md_amount | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_md_amount_rate | float | Y | ไปŠๆ—ฅไธญๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_sm_amount | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€้ข๏ผˆๅ…ƒ๏ผ‰
+buy_sm_amount_rate | float | Y | ไปŠๆ—ฅๅฐๅ•ๅ‡€ๆตๅ…ฅ ๅ‡€ๅ ๆฏ”%
+buy_sm_amount_stock | str | Y | ไปŠๆ—ฅไธปๅŠ›ๅ‡€ๆตๅ…ฅๆœ€ๅคง่‚ก
+rank | int | Y | ๅบๅท
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๆ—ฅๆ‰€ๆœ‰ๆฟๅ—่ต„้‡‘ๆตๅ‘
+df = pro.moneyflow_ind_dc(trade_date='20240927', fields='trade_date,name,pct_change, close, net_amount,net_amount_rate,rank')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date name pct_change close net_amount net_amount_rate rank
+ 0 20240927 ไบ’่”็ฝ‘ๆœๅŠก 6.28 16883.55 3056382208.00 3.93 1
+ 1 20240927 ่ฏๅˆธ 8.23 135249.80 2875528704.00 4.64 2
+ 2 20240927 ่ฝฏไปถๅผ€ๅ‘ 8.28 721.35 2733378816.00 3.18 3
+ 3 20240927 ้…ฟ้…’่กŒไธš 6.47 49330.63 2568183040.00 5.24 4
+ 4 20240927 ็”ตๆฑ  8.37 731.85 1328346624.00 3.05 5
+ .. ... ... ... ... ... ... ...
+ 81 20240927 ็Ÿณๆฒน่กŒไธš 2.31 4654.40 -611530368.00 -9.39 82
+ 82 20240927 ๆฑฝ่ฝฆๆ•ด่ฝฆ 4.05 1386.22 -629528064.00 -2.42 83
+ 83 20240927 ็ปผๅˆ่กŒไธš 3.06 7437.08 -667341600.00 -7.28 84
+ 84 20240927 ๅฎถ็”ต่กŒไธš 3.95 15815.68 -670035968.00 -2.37 85
+ 85 20240927 ้“ถ่กŒ -0.33 3401.83 -2340180224.00 -6.41 86
+
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(THS).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
new file mode 100644
index 000000000..67f3554e5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\235\277\345\235\227\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
@@ -0,0 +1,71 @@
+## ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—่ต„้‡‘ๆตๅ‘๏ผˆTHS๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_cnt_ths
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบๆฆ‚ๅฟตๆฟๅ—ๆฏๆ—ฅ่ต„้‡‘ๆตๅ‘
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่ฐƒๅ–5000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ’Œไปฃ็ ๅพช็Žฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš6000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(ๆ ผๅผ๏ผšYYYYMMDD๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+name | str | Y | ๆฟๅ—ๅ็งฐ
+lead_stock | str | Y | ้ข†ๆถจ่‚ก็ฅจๅ็งฐ
+close_price | float | Y | ๆœ€ๆ–ฐไปท
+pct_change | float | Y | ่กŒไธšๆถจ่ทŒๅน…
+industry_index | float | Y | ๆฟๅ—ๆŒ‡ๆ•ฐ
+company_num | int | Y | ๅ…ฌๅธๆ•ฐ้‡
+pct_change_stock | float | Y | ้ข†ๆถจ่‚กๆถจ่ทŒๅน…
+net_buy_amount | float | Y | ๆตๅ…ฅ่ต„้‡‘(ไบฟๅ…ƒ)
+net_sell_amount | float | Y | ๆตๅ‡บ่ต„้‡‘(ไบฟๅ…ƒ)
+net_amount | float | Y | ๅ‡€้ข(ไบฟๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๆ—ฅๅŒ่Šฑ้กบๆฟๅ—่ต„้‡‘ๆตๅ‘
+df = pro.moneyflow_cnt_ths(trade_date='20250320')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code name lead_stock close_price pct_change industry_index company_num pct_change_stock net_buy_amount net_sell_amount net_amount
+ 0 20250320 885748.TI ๅฏ็‡ƒๅ†ฐ ๆตท้ป˜็ง‘ๆŠ€ 7.99 4.76 1307.56 12 4.76 21.00 19.00 1.00
+ 1 20250320 886008.TI ๅ‡้€Ÿๅ™จ ๅคงๅถ่‚กไปฝ 21.22 2.60 1862.58 103 2.60 227.00 235.00 -8.00
+ 2 20250320 885426.TI ๆตทๅทฅ่ฃ…ๅค‡ ๅคฉๆตท้˜ฒๅŠก 6.97 2.56 2711.31 85 2.56 171.00 148.00 23.00
+ 3 20250320 885372.TI ้กตๅฒฉๆฐ” ๆตท้ป˜็ง‘ๆŠ€ 7.99 2.21 2103.88 40 2.21 53.00 42.00 10.00
+ 4 20250320 886000.TI ไธ€ไฝ“ๅŒ–ๅŽ‹้“ธ ไปŠ้ฃžๅ‡ฏ่พพ 5.57 1.78 1213.60 50 1.78 95.00 86.00 9.00
+ .. ... ... ... ... ... ... ... ... ... ... ... ...
+ 389 20250320 885881.TI ไบ‘ๅŠžๅ…ฌ *ST้นๅš 1.72 -1.36 1862.72 45 -1.36 54.00 63.00 -9.00
+ 390 20250320 885947.TI DRG/DIP ๅ›ฝๆ–ฐๅฅๅบท 12.82 -1.38 1092.62 23 -1.38 25.00 30.00 -5.00
+ 391 20250320 885975.TI ็”ตๅญ่บซไปฝ่ฏ ๆ‹“ๅฐ”ๆ€ 24.16 -1.40 1438.42 40 -1.40 28.00 39.00 -11.00
+ 392 20250320 885874.TI ไบ‘ๆธธๆˆ *ST้นๅš 1.72 -1.75 1330.68 27 -1.75 67.00 91.00 -23.00
+ 393 20250320 886091.TI ๅŽไธบๆ‰‹ๆœบ ๅ‡ฏๆ ผ็ฒพๆœบ 37.23 -2.25 1183.33 35 -2.25 49.00 68.00 -18.00
+
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\265\204\351\207\221\346\265\201\345\220\221.md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\265\204\351\207\221\346\265\201\345\220\221.md"
new file mode 100644
index 000000000..24f4e7581
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\346\262\252\346\267\261\346\270\257\351\200\232\350\265\204\351\207\221\346\265\201\345\220\221.md"
@@ -0,0 +1,68 @@
+## ๆฒชๆทฑๆธฏ้€š่ต„้‡‘ๆตๅ‘
+----
+ๆŽฅๅฃ๏ผšmoneyflow_hsgt๏ผŒๅฏไปฅ้€š่ฟ‡[**ๆ•ฐๆฎๅทฅๅ…ท**](https://tushare.pro/webclient/)่ฐƒ่ฏ•ๅ’ŒๆŸฅ็œ‹ๆ•ฐๆฎใ€‚
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฒช่‚ก้€šใ€ๆทฑ่‚ก้€šใ€ๆธฏ่‚ก้€šๆฏๆ—ฅ่ต„้‡‘ๆตๅ‘ๆ•ฐๆฎ๏ผŒๆฏๆฌกๆœ€ๅคš่ฟ”ๅ›ž300ๆก่ฎฐๅฝ•๏ผŒๆ€ป้‡ไธ้™ๅˆถใ€‚
+็งฏๅˆ†่ฆๆฑ‚๏ผš2000็งฏๅˆ†่ตท๏ผŒ5000็งฏๅˆ†ๆฏๅˆ†้’Ÿๅฏๆๅ–500ๆฌก
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ (ไบŒ้€‰ไธ€)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ (ไบŒ้€‰ไธ€)
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+trade_date | str | ไบคๆ˜“ๆ—ฅๆœŸ
+ggt_ss | float | ๆธฏ่‚ก้€š๏ผˆไธŠๆตท๏ผ‰
+ggt_sz | float | ๆธฏ่‚ก้€š๏ผˆๆทฑๅœณ๏ผ‰
+hgt | float | ๆฒช่‚ก้€š๏ผˆ็™พไธ‡ๅ…ƒ๏ผ‰
+sgt | float | ๆทฑ่‚ก้€š๏ผˆ็™พไธ‡ๅ…ƒ๏ผ‰
+north_money | float | ๅŒ—ๅ‘่ต„้‡‘๏ผˆ็™พไธ‡ๅ…ƒ๏ผ‰
+south_money | float | ๅ—ๅ‘่ต„้‡‘๏ผˆ็™พไธ‡ๅ…ƒ๏ผ‰
+
+**ๆŽฅๅฃ็”จๆณ•**
+
+```python
+
+pro = ts.pro_api()
+
+pro.moneyflow_hsgt(start_date='20180125', end_date='20180808')
+
+```
+
+ๆˆ–่€…
+
+```python
+
+pro.query('moneyflow_hsgt', trade_date='20180725')
+
+```
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ trade_date ggt_ss ggt_sz hgt sgt north_money south_money
+ 0 20180808 -476.0 -188.0 962.68 799.94 1762.62 -664.0
+ 1 20180807 -261.0 177.0 2140.85 1079.82 3220.67 -84.0
+ 2 20180803 667.0 -32.0 -436.99 1088.07 651.08 635.0
+ 3 20180802 -1651.0 -366.0 874.97 -216.65 658.32 -2017.0
+ 4 20180801 -1443.0 -443.0 544.36 542.79 1087.15 -1886.0
+ 5 20180731 -299.0 -21.0 1923.72 1345.48 3269.20 -320.0
+ 6 20180730 -588.0 611.0 2536.54 146.24 2682.78 23.0
+ 7 20180727 -13.0 363.0 2182.84 533.06 2715.90 350.0
+ 8 20180726 -566.0 -339.0 1113.28 -567.47 545.81 -905.0
+ 9 20180725 319.0 370.0 1470.29 311.27 1781.56 689.0
+ 10 20180724 924.0 2312.0 1748.88 1053.52 2802.40 3236.0
+ 11 20180723 1628.0 1172.0 -279.96 334.82 54.86 2800.0
+ 12 20180720 2233.0 1773.0 606.33 1711.77 2318.10 4006.0
+ 13 20180719 456.0 206.0 1831.41 874.40 2705.81 662.0
+ 14 20180718 -181.0 261.0 126.80 -111.83 14.97 80.0
+ 15 20180717 -390.0 187.0 -90.32 -404.24 -494.56 -203.0
+ 16 20180716 -539.0 52.0 -457.00 487.60 30.60 -487.0
+ 17 20180713 -297.0 751.0 599.38 658.07 1257.45 454.0
+ 18 20180712 2635.0 1699.0 1695.62 269.56 1965.18 4334.0
+ 19 20180711 19.0 646.0 261.96 -339.20 -77.24 665.0
+ 20 20180710 668.0 889.0 514.05 262.33 776.38 1557.0
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\350\241\214\344\270\232\350\265\204\351\207\221\346\265\201\345\220\221(THS).md" "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\350\241\214\344\270\232\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
new file mode 100644
index 000000000..1ed460243
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\202\241\347\245\250\346\225\260\346\215\256/\350\265\204\351\207\221\346\265\201\345\220\221\346\225\260\346\215\256/\350\241\214\344\270\232\350\265\204\351\207\221\346\265\201\345\220\221(THS).md"
@@ -0,0 +1,73 @@
+## ๅŒ่Šฑ้กบ่กŒไธš่ต„้‡‘ๆตๅ‘๏ผˆTHS๏ผ‰
+----
+
+ๆŽฅๅฃ๏ผšmoneyflow_ind_ths
+ๆ่ฟฐ๏ผš่Žทๅ–ๅŒ่Šฑ้กบ่กŒไธš่ต„้‡‘ๆตๅ‘๏ผŒๆฏๆ—ฅ็›˜ๅŽๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคงๅฏ่ฐƒๅ–5000ๆกๆ•ฐๆฎ๏ผŒๅฏไปฅๆ นๆฎๆ—ฅๆœŸๅ’Œไปฃ็ ๅพช็Žฏๆๅ–ๅ…จ้ƒจๆ•ฐๆฎ
+็งฏๅˆ†๏ผš6000็งฏๅˆ†ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ts_code | str | N | ไปฃ็ 
+trade_date | str | N | ไบคๆ˜“ๆ—ฅๆœŸ(YYYYMMDDๆ ผๅผ๏ผŒไธ‹ๅŒ)
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+trade_date | str | Y | ไบคๆ˜“ๆ—ฅๆœŸ
+ts_code | str | Y | ๆฟๅ—ไปฃ็ 
+industry | str | Y | ๆฟๅ—ๅ็งฐ
+lead_stock | str | Y | ้ข†ๆถจ่‚ก็ฅจๅ็งฐ
+close | float | Y | ๆ”ถ็›˜ๆŒ‡ๆ•ฐ
+pct_change | float | Y | ๆŒ‡ๆ•ฐๆถจ่ทŒๅน…
+company_num | int | Y | ๅ…ฌๅธๆ•ฐ้‡
+pct_change_stock | float | Y | ้ข†ๆถจ่‚กๆถจ่ทŒๅน…
+close_price | float | Y | ้ข†ๆถจ่‚กๆœ€ๆ–ฐไปท
+net_buy_amount | float | Y | ๆตๅ…ฅ่ต„้‡‘(ไบฟๅ…ƒ)
+net_sell_amount | float | Y | ๆตๅ‡บ่ต„้‡‘(ไบฟๅ…ƒ)
+net_amount | float | Y | ๅ‡€้ข(ไบฟๅ…ƒ)
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+#่Žทๅ–ๅฝ“ๆ—ฅๆ‰€ๆœ‰ๅŒ่Šฑ้กบ่กŒไธš่ต„้‡‘ๆตๅ‘
+df = pro.moneyflow_ind_ths(trade_date='20240927')
+
+```
+
+<br>
+<br>
+
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ trade_date ts_code industry close company_num net_buy_amount net_sell_amount net_amount
+ 0 20240927 881267.TI ่ƒฝๆบ้‡‘ๅฑž 15021.70 16 490.00 46.00 3.00
+ 1 20240927 881273.TI ็™ฝ้…’ 3251.85 20 1890.00 179.00 10.00
+ 2 20240927 881279.TI ๅ…‰ไผ่ฎพๅค‡ 5940.19 70 1120.00 94.00 17.00
+ 3 20240927 881157.TI ่ฏๅˆธ 1407.41 50 3680.00 319.00 49.00
+ 4 20240927 877137.TI ่ฝฏไปถๅผ€ๅ‘ 1375.49 137 2260.00 204.00 22.00
+ .. ... ... ... ... ... ... ... ...
+ 85 20240927 881148.TI ๆธฏๅฃ่ˆช่ฟ 901.87 37 190.00 20.00 -1.00
+ 86 20240927 881105.TI ็…ค็‚ญๅผ€้‡‡ๅŠ ๅทฅ 2271.57 34 220.00 26.00 -4.00
+ 87 20240927 881169.TI ่ดต้‡‘ๅฑž 2141.46 12 240.00 32.00 -8.00
+ 88 20240927 881149.TI ๅ…ฌ่ทฏ้“่ทฏ่ฟ่พ“ 1224.59 31 210.00 29.00 -7.00
+ 89 20240927 877035.TI ้“ถ่กŒ 1080.14 84 1190.00 159.00 -40.00
+
+ [90 rows x 8 columns]
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\345\275\261\345\211\247\346\234\254\345\244\207\346\241\210\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\345\275\261\345\211\247\346\234\254\345\244\207\346\241\210\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..26d743bbd
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\345\275\261\345\211\247\346\234\254\345\244\207\346\241\210\346\225\260\346\215\256.md"
@@ -0,0 +1,58 @@
+## ๅ…จๅ›ฝ็”ตๅฝฑๅ‰งๆœฌๅค‡ๆกˆๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšfilm_record
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ…จๅ›ฝ็”ตๅฝฑๅ‰งๆœฌๅค‡ๆกˆ็š„ๅ…ฌ็คบๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง500๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘120็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠๅคš่ฐƒๅ–้ข‘ๆฌก่ถŠ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ann_date | str | N | ๅ…ฌๅธƒๆ—ฅๆœŸ ๏ผˆ่‡ณๅฐ‘่พ“ๅ…ฅไธ€ไธชๅ‚ๆ•ฐ๏ผŒๆ ผๅผ๏ผšYYYYMMDD๏ผŒๆ—ฅๆœŸไธ่ฟž็ปญ๏ผŒๅฎšๆœŸๅ…ฌๅธƒ๏ผ‰
+start_date | str | N | ๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ็ป“ๆŸๆ—ฅๆœŸ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+rec_no | str | Y | ๅค‡ๆกˆๅท
+film_name | str | Y | ๅฝฑ็‰‡ๅ็งฐ
+rec_org | str | Y | ๅค‡ๆกˆๅ•ไฝ
+script_writer | str | Y | ็ผ–ๅ‰ง
+rec_result | str | Y | ๅค‡ๆกˆ็ป“ๆžœ
+rec_area | str | Y | ๅค‡ๆกˆๅœฐ๏ผˆๅค‡ๆกˆๆ—ถ้—ด๏ผ‰
+classified | str | Y | ๅฝฑ็‰‡ๅˆ†็ฑป
+date_range | str | Y | ๅค‡ๆกˆๆ—ฅๆœŸๅŒบ้—ด
+ann_date | str | Y | ๅค‡ๆกˆ็ป“ๆžœๅ‘ๅธƒๆ—ถ้—ด
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.film_record(start_date='20181014', end_date='20181214')
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+<img src="http://tushare.org/img/film_record.png">
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\350\247\206\345\211\247\345\244\207\346\241\210\345\205\254\347\244\272\346\225\260\346\215\256.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\350\247\206\345\211\247\345\244\207\346\241\210\345\205\254\347\244\272\346\225\260\346\215\256.md"
new file mode 100644
index 000000000..73af3b2e0
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\205\250\345\233\275\347\224\265\350\247\206\345\211\247\345\244\207\346\241\210\345\205\254\347\244\272\346\225\260\346\215\256.md"
@@ -0,0 +1,127 @@
+## ๅ…จๅ›ฝๆ‹ๆ‘„ๅˆถไฝœ็”ต่ง†ๅ‰งๅค‡ๆกˆๅ…ฌ็คบๆ•ฐๆฎ
+----
+
+ๆŽฅๅฃ๏ผšteleplay_record
+ๆ่ฟฐ๏ผš่Žทๅ–2009ๅนดไปฅๆฅๅ…จๅ›ฝๆ‹ๆ‘„ๅˆถไฝœ็”ต่ง†ๅ‰งๅค‡ๆกˆๅ…ฌ็คบๆ•ฐๆฎ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง1000๏ผŒๆ€ป้‡ไธ้™ๅˆถ
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘็งฏๅˆ†600ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒ็งฏๅˆ†่ถŠๅคš่ฐƒๅ–้ข‘ๆฌก่ถŠ้ซ˜๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+report_date | str | N | ๅค‡ๆกˆๆœˆไปฝ๏ผˆYYYYMM๏ผ‰
+start_date | str | N | ๅค‡ๆกˆๅผ€ๅง‹ๆœˆไปฝ๏ผˆYYYYMM๏ผ‰
+end_date | str | N | ๅค‡ๆกˆ็ป“ๆŸๆœˆไปฝ๏ผˆYYYYMM๏ผ‰
+org | str | N | ๅค‡ๆกˆๆœบๆž„
+name | str | N | ็”ต่ง†ๅ‰งๅ็งฐ
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+name | str | Y | ็”ต่ง†ๅ‰งๅ็งฐ
+classify | str | Y | ้ข˜ๆ
+types | str | Y | ไฝ“่ฃ
+org | str | Y | ๆŠฅๅค‡ๆœบๆž„
+report_date | str | Y | ๆŠฅๅค‡ๆ—ถ้—ด
+license_key | str | Y | ่ฎธๅฏ่ฏๅท
+episodes | str | Y | ้›†ๆ•ฐ
+shooting_date | str | Y | ๆ‹ๆ‘„ๆ—ถ้—ด
+prod_cycle | str | Y | ๅˆถไฝœๅ‘จๆœŸ
+content | str | Y | ๅ†…ๅฎนๆ่ฆ
+pro_opi | str | Y | ็œ็บง็ฎก็†้ƒจ้—จๅค‡ๆกˆๆ„่ง
+dept_opi | str | Y | ็›ธๅ…ณ้ƒจ้—จๆ„่ง
+remarks | str | Y | ๅค‡ๆณจ
+
+
+<br>
+<br>
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+
+#ๆŒ‰ๅค‡ๆกˆๆœˆไปฝๆŸฅ่ฏข
+df = pro.teleplay_record(report_date='201905')
+
+df = pro.teleplay_record(start_date='201905', end_date='201906')
+
+#ๆŒ‰ๅค‡ๆกˆๆœบๆž„ๆŸฅ่ฏข
+df = pro.teleplay_record(org='ไธŠๆตทๆ–ฐๆ–‡ๅŒ–ไผ ๅช’้›†ๅ›ข่‚กไปฝๆœ‰้™ๅ…ฌๅธ')
+
+#ๆŒ‰็”ต่ง†ๅ‰งๅ็งฐๆŸฅ่ฏข
+df = pro.teleplay_record(name='ไธ‰ไฝ“')
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ name classify types org report_date license_key \
+ 0 ๆ–ฐๅคงๅคดๅ„ฟๅญๅ’Œๅฐๅคด็ˆธ็ˆธโ…ฃ ๅฝ“ไปฃ้’ๅฐ‘ ๅ–œๅ‰ง ๆ€กๅ…‰ๅ›ฝ้™…็ปๆตŽๆ–‡ๅŒ–้›†ๅ›ขๆœ‰้™ๅ…ฌๅธ 201905 ็”ฒ็ฌฌ260ๅท
+ 1 ไธคๅฒธ้’ๅนด ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ไนๆดฒ้Ÿณๅƒๅ‡บ็‰ˆๅ…ฌๅธ 201905 ็”ฒ็ฌฌ045ๅท
+ 2 ๆธฉๆš–ๅฆ‚ๅ†ฐ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌ้›…ๆณฝๆ–‡ๅŒ–ๅ‘ๅฑ•ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ7270ๅท
+ 3 ไปŽๅผ€ๅง‹ๅˆฐ็Žฐๅœจ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๅฅฝๆ•…ไบ‹ๅฝฑไธšๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ13150ๅท
+ 4 ้ป‘ๅ’–ๅ•กไนŸๅฏไปฅๅพˆ็”œ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌ็‰ˆๆ˜ ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ8580ๅท
+ 5 ็คพๅทฅๆœๅŠก็คพ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๅคฉๆฒๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ07874ๅท
+ 6 ๅ‡บๆฐด็‰กไธน ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๅคฉๆ˜Ÿไบฟๆบๅฝฑ่ง†ๆ–‡ๅŒ–่‚กไปฝๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ1113ๅท
+ 7 ไบ†ไธ่ตท็š„ๅฅณๅญฉ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌ็ˆฑๅฅ‡่‰บ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ01938ๅท
+ 8 ๅนด่ฝป็š„ๆœ‹ๅ‹ๆฅ็›ธไผš ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌไธป้ข˜ไผ ๅฅ‡ๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ6101ๅท
+ 9 ไบฌๆญๅคง่ฟๆฒณ ่ฟ‘ไปฃ้ฉๅ‘ฝ ไธ€่ˆฌ ๅŒ—ไบฌไธœๆ–น่ง†่พ‰ๅฝฑ่ง†ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ9703ๅท
+ 10 ่ˆชๅคฉๆขฆ ๅฝ“ไปฃๅ…ถๅฎƒ ไธ€่ˆฌ ๅŒ—ไบฌไบฟ้“ญๆ–น็•ฅๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ13069ๅท
+ 11 ่ฃๅ‰ชไบบ็”Ÿ ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌ็ดซ่‘ฉๅ›ฝ้™…ๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ08683ๅท
+ 12 ็ˆฑๆƒ…ๆ˜ฏ็ข—ๆฒนๆณผ้ข ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌ็‰ˆๆ˜ ็ง‘ๆŠ€ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ8580ๅท
+ 13 ๆตๅŠจ็ดซ็ฆๅŸŽ ่ฟ‘ไปฃไผ ๅฅ‡ ไธ€่ˆฌ ๅŒ—ไบฌๅŽ่ฐŠๅ…„ๅผŸๅจฑไนๆŠ•่ต„ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ2217ๅท
+ 14 ๅคงๆตท ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๅ…„ๅผŸๆ˜ ็”ปๅฝฑ่ง†ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ1805ๅท
+ 15 ๆต‘ๆฒณไน‹้ญ‚ ่ฟ‘ไปฃ้ฉๅ‘ฝ ไธ€่ˆฌ ๅŒ—ไบฌๅ‡Œไบ‘้ฃžๆ‰ฌๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ3814ๅท
+ 16 ๅ…่ฎธๅ›žๅฟ† ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๆ˜†ไป‘ๆ˜ ็”ปๅฝฑ่ง†ๆ–‡ๅŒ–ไผ ๅช’๏ผˆๅŒ—ไบฌ๏ผ‰ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ2793ๅท
+ 17 ๅ››ๅ่€Œ่Žท ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๅๅˆ†ไน่ง‚ๅฝฑ่ง†ๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ08259ๅท
+ 18 ๅƒ็ˆฑไบบไธ€ๆ ทๆ‹ฅๆŠฑไฝ  ๅฝ“ไปฃ้ƒฝๅธ‚ ไธ€่ˆฌ ๅŒ—ไบฌๆ€ๅพท็ฟๆ–‡ๅŒ–ไผ ๅช’ๆœ‰้™ๅ…ฌๅธ 201905 ๏ผˆไบฌ๏ผ‰ๅญ—็ฌฌ6317ๅท
+
+
+ episodes shooting_date prod_cycle \
+ 0 50 2019.6 3ไธชๆœˆ
+ 1 40 2019.3 10ไธชๆœˆ
+ 2 30 2020.12 4ไธชๆœˆ
+ 3 45 2019.12 18ไธชๆœˆ
+ 4 20 2019.1 3ไธชๆœˆ
+ 5 40 2019.11 24ไธชๆœˆ
+ 6 46 2019.8 12ไธชๆœˆ
+ 7 36 2019.4 5ไธชๆœˆ
+ 8 36 2019.11 5ไธชๆœˆ
+ 9 51 2019.8 9ไธชๆœˆ
+ 10 40 2019.9 6ไธชๆœˆ
+ 11 30 2019.8 7ไธชๆœˆ
+ 12 20 2019.9 3ไธชๆœˆ
+ 13 46 2019.1 12ไธชๆœˆ
+ 14 40 2019.12 6ไธชๆœˆ
+ 15 45 2019.1 12ไธชๆœˆ
+ 16 36 2019.8 3ไธชๆœˆ
+ 17 40 2019.12 3ไธชๆœˆ
+ 18 40 2020.6 18ไธชๆœˆ
+
+ content pro_opi \
+ 0 ๅœจๆœฌ้ƒจไธญๅฟซไน็š„ๅคงๅคดๅ„ฟๅญไปๆ—ง่ฟ‡็€ๅนธ็ฆ็š„็”Ÿๆดป๏ผŒๆธฉๆŸ”่ดคๆท‘็š„ๅ›ด่ฃ™ๅฆˆๅฆˆใ€้ฃŽ่ถฃๅนฝ้ป˜็š„ๅฐๅคด็ˆธ็ˆธไธ€ๅฆ‚ๆ—ขๅพ€ๅœฐไผด... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 1 ๅคง้™†ๆƒ ๅฐๆ”ฟ็ญ–็š„ๆŽจ่กŒ๏ผŒๆŽ€่ตทไบ†ๅฐๆนพๅŒ่ƒžๅˆฐๅคง้™†ๆฑ‚่Œๅˆ›ไธš็š„็ƒญๆฝฎใ€‚้กบๅบ”็ƒญๆฝฎ๏ผŒๅˆ˜ๆฌฃ็„ถ็ญ‰ไธ€ๆ‰นๅฐๆนพ้’ๅนดๆฅๅˆฐไบ†... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 2 ไนๅๅนดไปฃๆœซ๏ผŒๅ› ็ˆถไบฒๅคฑไธš๏ผŒๅ…ซๅฒ็š„่ตตๆ™“่‡ปไธๅพ—ไธๆ”พๅผƒ่Šญ่•พ๏ผŒ่ฟ›ๅ…ฅไฝ“ๆ กใ€‚็”ฑไบŽ่‡ช่บซๆกไปถ่พƒๅฅฝ๏ผŒ็ป่ฟ‡ๅ‡ ๅนดๅˆป่‹ฆ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 3 ่‹็™ฝๅ’Œ็Ÿณๆ™ฎ็”Ÿ1985ๅนด็š„ๅŒไธ€ๅคฉๅ‡บ็”ŸๅœจๅŒ—ไบฌไบบๆฐ‘ๅŒป้™ขใ€‚ๅๅนดๅŽ๏ผŒ่‹ๆฏ็š„็ช็„ถ้‡้šพใ€่‹็ˆถๅ› ๆ— ๆณ•ๆ‰ฟๅ—ๅŽ‹ๅŠ›... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 4 ้˜ณๅ…‰ๅธ…ๆฐ”็š„ๆœๆ–ฐๅฐงๆ˜ฏไธ€ๅฎถๅ’–ๅ•กๅบ—ๅš็”œๅ“ๅธˆ๏ผŒ็”œ็พŽๅฏ็ˆฑ็š„้Ÿณไนไธปๆ’ญๅฎซๆตท้ป˜ๆ˜ฏ่ฟ™ๅฎถๅบ—็š„ๅธธๅฎขใ€‚ๆœๆ–ฐๅฐง่ขซๅฎซๆตท้ป˜... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 5 ๅนฟๅทžๆปจๆฑŸๅคงๅญฆๅทฅๅ•†็ฎก็†็ณป็š„้ฉฌ่ทฏๅœจๆฏ•ไธšๅŽๆœบ็ผ˜ๅทงๅˆไธ‹ๆฅๅˆฐๆทฑๅœณไธ€ๅฎถ็คพๅทฅ็ป„็ป‡ๅฝ“็คพๅทฅ๏ผŒ้€š่ฟ‡ไธ€ๅนดๆ—ถ้—ด้ฉฌ่ทฏไปŽ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 6 ๅŽŸๆŸๅธ‚่Šฑๆ ทๆธธๆณณ้˜ŸไธปๅŠ›้˜Ÿๅ‘˜ๆŽไธน้€€ๅฝนๅŽๅ‡บไปป่ฏฅๅธ‚่Šฑๆ ทๆธธๆณณ้˜Ÿ็š„ไธปๆ•™็ปƒ๏ผŒๅนถๆŠŠไธ€ไธชๅซ็พŽ็พŽ็š„17ๅฒๅง‘ๅจ˜ๅธฆ่ฟ›... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 7 ้™†ๅฏๅ’Œๆฒˆๆ€ๆ€กๆ˜ฏไธคไธชๆ€งๆ ผ่ฟฅๅผ‚็š„ๅฅณๅญฉๅดๆ˜ฏๅฏนๆ–นๆœ€ไบฒๅฏ†็š„ๆœ‹ๅ‹ใ€‚ๆฏ•ไธšๆ—ถไธคไบบๅ› ๆฒˆๆ€ๆ€ก้œธ้“็š„ๆ€งๆ ผๅ…ณ็ณป็ ด่ฃ‚๏ผŒ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 8 1980ๅนด๏ผŒๆฅ่‡ช็ฅ–ๅ›ฝๅคฉๅ—ๆตทๅŒ—็š„ๅ…ญไธชๅนด่ฝปไบบ่ตฐ่ฟ›ๅŒไธ€ๆ‰€ๅคงๅญฆ๏ผŒๆˆไธบไบ†ๅŒๅฑŠๅŒๅญฆใ€‚ไฝ†ๅฐฑๅœจๅคงๅญฆ็ฌฌไบŒๅนด๏ผŒๅŒ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 9 ไบฌๆญๅคง่ฟๆฒณไธŠ็š„ๅŒ—้€šๅทž๏ผŒ่ฟžๅฎถ่ˆนๅ•†่ดฉๅคฉๆƒ ๆฐ‘ไปŽๅ˜‰ๅ…ดๅ—ๆน–ๅธฆๅ•†ไบบๅˆฐๆžฃๅบ„ๆ—ถๅ—ไผค๏ผŒๅ›ž้€šๅทžไปฅ็œ‹ๆŠค็‡ƒ็ฏๅก”ไธบ็”Ÿใ€‚... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 10 ๅŠไธชไธ–็บชไปฅๆฅ๏ผŒไปฅไปปๆ–ฐๅŽไธบไปฃ่กจ็š„่ˆชๅคฉไบบ๏ผŒไป–ไปฌๅœจไธญๅ›ฝไธ€็ฉทไบŒ็™ฝ็š„ๅŸบ็ก€ไธŠ๏ผŒ็ปๅކ็ง็งๅŽๅท๏ผŒๅ…‹ๆœ้‡้‡ๅ›ฐ้šพ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 11 ้˜ฟๆœตๅนณ้™่€Œๅฟซไน็š„็”Ÿๆดป๏ผŒ่ขซๅฝปๅบ•ๆ‰“็ ดไบ†ใ€‚้˜ฟๆœตๅพ—็Ÿฅๅทฒ่ฟ‡ไธ–็š„่‡ชๅทฑๅด‡ๆ‹œๅ–œ็ˆฑ็š„้˜ฟ่ŽŽๅงจๆ˜ฏ่‡ชๅทฑ็š„็”Ÿๆฏใ€‚ๅฏนๆฏไบฒ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 12 ๅŒ—ๆผ‚ไธ‰ๅนด็š„ๅฐ็ฑณๅ›žๅˆฐไบ†่‡ชๅทฑ็š„่€ๅฎถ่ฅฟๅฎ‰๏ผŒๅนถไธ่ƒฝๅพˆๅฅฝ็š„้€‚ๅบ”่ฟ™้‡Œ็š„ไธ€ๅˆ‡ใ€‚ๆ‰พไบ†ไธ€ไธชๅคšๆœˆ็š„ๅทฅไฝœ๏ผŒ้ซ˜ไธๆˆไฝŽ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 13 1932ๅนด๏ผŒๆ—ฅๆœฌไบบ้€ผ่ฟ‘ๅนณๆดฅ๏ผŒ็่—ๅœจๆ•…ๅฎซๅ†…็š„ๆ•ฐไปฅ็™พไธ‡่ฎก็š„ๅ›ฝๅฎๅฐ†่ฝๅ…ฅๆ•Œๆ‰‹ใ€‚้™ข้•ฟๆ˜“ๅŸนๅŸบๅ’Œๅ‰ฏ้™ข้•ฟ้ฉฌ่กก... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 14 ๅคงๅญฆไนๅ›ข็š„ๅฐๆ็ดๆ‰‹ๆž—ๆ›ฆๆ‚ฆ่‡ชๅฐๅญฆไน ๅฐๆ็ด๏ผŒๅดๅ› ไธบ็ˆถไบฒ็š„ๅŽปไธ–๏ผŒไธญๆ–ญไบ†้Ÿณไนไน‹่ทฏใ€‚ๆœบ็ผ˜ๅทงๅˆๅ‚ไธŽไบ†ไน็ˆฑ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 15 ๅฒๆ–ฐๅนผๅนดๆ—ถ๏ผŒไธŽไน‰็ˆถๆŸณ้›„ๅŠไน‰ๅฆนๆŸณๆœˆ็›ธไพไธบๅ‘ฝ๏ผŒๅŽไธŽๆŸณๆœˆ็ป“ไธบๅคซๅฆปๅนถๅŒๅŒๅŠ ๅ…ฅๆŠ—ๆ—ฅ้˜Ÿไผใ€‚ๅœจไธ€ๆฌกๆˆ˜ๆ–—ไธญ๏ผŒ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 16 2005ๅนด9ๆœˆ๏ผŒไนไธญๅๅ…ญ็ญ่ฟŽๆฅไบ†ๅˆไธ€ๅฑŠ้ซ˜ไธ€ๆ–ฐ็”Ÿ๏ผŒไฝ“่‚ฒ็‰น้•ฟ็”ŸๆฑŸๅ‘ไบ‘๏ผŒๅ–œๆฌข็”ปๆผซ็”ป็š„ๅฑฑไธด้’๏ผŒๅ„็ง‘ๅ…จ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 17 ๅ››ไธชๆญฅๅ…ฅ40ๅฒ็š„ไธญๅนด็”ทๆ€งๅœจ้ขๅฏน็”Ÿๆดปไธญ็š„็ง็งๅŽ‹ๅŠ›๏ผŒๆทฑ้™ทไธญๅนดๅฑๆœบใ€‚้ฉฌไธๅœจๅฅๅบทไธŽไบ‹ไธšๅ—ๅˆฐๅŒ้‡ๆ‰“ๅ‡ปๅŽ... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
+ 18 ๅฒณๆŸฏใ€ไปปๆœ—ใ€ๆ–ฝไธžๅฎ‡ๆ˜ฏๅŒไฝๅœจไธ€ไธชๅฑ‹ๆชไธ‹็š„ๅฎคๅ‹๏ผŒไธ‰ไธช็”ทไบบ้ƒฝๅฐ†้ขไธด่€Œ็ซ‹ไน‹ๅนด็š„ๅˆฐๆฅ๏ผŒ็„ถ่€Œไธ€ไธชๅคœๆ™šๆ‰“็ ด... ๅŒๆ„ๅค‡ๆกˆ๏ผŒๆŠฅ่ฏทๆ€ปๅฑ€็”ต่ง†ๅ‰ง็ฎก็†ๅธๅ…ฌ็คบใ€‚
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266.md"
new file mode 100644
index 000000000..16a62ecf5
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266.md"
@@ -0,0 +1,144 @@
+## ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถ
+----
+
+ๆŽฅๅฃ๏ผštmt_twincome
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฐๆนพTMT็”ตๅญไบงไธš้ข†ๅŸŸๅ„็ฑปไบงๅ“ๆœˆๅบฆ่ฅๆ”ถๆ•ฐๆฎใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆŠฅๅ‘ŠๆœŸ
+item | str | Y | ไบงๅ“ไปฃ็ 
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+date | str | ๆŠฅๅ‘ŠๆœŸ
+item | str | ไบงๅ“ไปฃ็ 
+op_income | str | ๆœˆๅบฆๆ”ถๅ…ฅ
+
+็”ฑไบŽๆœๅŠกๅ™จๅŽ‹ๅŠ›๏ผŒๅ•ๆฌกๆœ€ๅคš่Žทๅ–30ไธชๆœˆๆ•ฐๆฎ๏ผŒๅŽ็ปญๅ†้€ๆญฅๅ…จ้ƒจๅผ€ๆ”พ๏ผŒ็›ฎๅ‰ๅฏๆ นๆฎๆ—ฅๆœŸ่Œƒๅ›ดๅคšๆฌก่Žทๅ–ๆ•ฐๆฎใ€‚
+
+**่ฐƒ็”จไปฃ็ ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–PCBๆœˆๅบฆ่ฅๆ”ถ
+df = pro.tmt_twincome(item='8')
+
+#่Žทๅ–PCBๆœˆๅบฆ่ฅๆ”ถ๏ผˆ20120101-20181010๏ผ‰
+df = pro.tmt_twincome(item='8', start_date='20120101', end_date='20181010')
+
+```
+
+
+**ๆ•ฐๆฎๆ ทไพ‹**
+
+ date item op_income
+ 0 20180731 8 35144753.0
+ 1 20180629 8 30940090.0
+ 2 20180531 8 30982240.0
+ 3 20180430 8 30431976.0
+ 4 20180331 8 29491108.0
+ 5 20180227 8 24700223.0
+ 6 20180131 8 32962014.0
+ 7 20171229 8 32850818.0
+ 8 20171130 8 34436396.0
+ 9 20171031 8 33331667.0
+ 10 20170930 8 34220623.0
+ 11 20170831 8 32621006.0
+ 12 20170731 8 30284562.0
+ 13 20170630 8 29003264.0
+ 14 20170531 8 28382449.0
+ 15 20170428 8 27140270.0
+ 16 20170331 8 29015642.0
+ 17 20170224 8 26508381.0
+ 18 20170124 8 26927481.0
+ 19 20161230 8 29784865.0
+ 20 20161130 8 31234845.0
+ 21 20161031 8 30305625.0
+ 22 20160930 8 30523650.0
+ 23 20160831 8 30600923.0
+ 24 20160729 8 29066800.0
+ 25 20160630 8 27350576.0
+ 26 20160531 8 27752376.0
+ 27 20160429 8 26664433.0
+ 28 20160331 8 27428746.0
+ 29 20160226 8 22218229.0
+
+
+**ไบงๅ“ไปฃ็ ๅˆ—่กจ**
+
+TSไปฃ็  | ็ฑปๅˆซๅ็งฐ
+--- | ----
+1 | PC
+2 | NB
+3 | ไธปๆœบๆฟ
+4 | ๅฐๅˆท็”ต่ทฏๆฟ
+5 | IC่ฝฝๆฟ
+6 | PCB็ป„่ฃ…
+7 | ่ฝฏๆฟ
+8 | PCB
+9 | PCBๅŽŸๆ–™
+10 | ้“œ็ฎ”ๅŸบๆฟ
+11 | ็Žป็บค็บฑๅธƒ
+12 | FCCL
+13 | ๆ˜พ็คบๅก
+14 | ็ป˜ๅ›พๅก
+15 | ็”ต่ง†ๅก
+16 | ๆณ›ๅทฅไธš็”ต่„‘
+17 | POS
+18 | ๅทฅไธš็”ต่„‘
+19 | ๅ…‰็”ตIO
+20 | ็›‘่ง†ๅ™จ
+21 | ๆ‰ซๆๅ™จ
+22 | PCๅ‘จ่พน
+23 | ๅ‚จๅญ˜ๅช’ไฝ“
+24 | ๅ…‰็ขŸ
+25 | ็กฌ็›˜็ฃ็›˜
+26 | ๅ‘ๅ…‰ไบŒๆžไฝ“
+27 | ๅคช้˜ณ่ƒฝ
+28 | LCD้ขๆฟ
+29 | ่ƒŒๅ…‰ๆจก็ป„
+30 | LCDๅŽŸๆ–™
+31 | LCDๅ…ถๅฎƒ
+32 | ่งฆๆŽง้ขๆฟ
+33 | ็›‘ๆŽง็ณป็ปŸ
+34 | ๅ…ถๅฎƒๅ…‰็”ต
+35 | ็”ตๅญ้›ถ็ป„ไปถ
+36 | ไบŒๆžไฝ“ๆ•ดๆต
+37 | ่ฟžๆŽฅๅ™จ
+38 | ็”ตๆบไพ›ๅบ”ๅ™จ
+39 | ๆœบๅฃณ
+40 | ่ขซๅŠจๅ…ƒไปถ
+41 | ็Ÿณ่‹ฑๅ…ƒไปถ
+42 | 3CไบŒๆฌก็”ตๆบ
+43 | ็ฝ‘่ทฏ่ฎพๅค‡
+44 | ๆ•ฐๆฎๆœบ
+45 | ็ฝ‘่ทฏๅก
+46 | ๅŠๅฏผไฝ“
+47 | ๆ™ถๅœ†ๅˆถ้€ 
+48 | ICๅฐๆต‹
+49 | ็‰น็”จIC
+50 | ่ฎฐๅฟ†ไฝ“ๆจก็ป„
+51 | ๆ™ถๅœ†ๆๆ–™
+52 | IC่ฎพ่ฎก
+53 | ICๅ…‰็ฝฉ
+54 | ็”ตๅญ่ฎพๅค‡
+55 | ๆ‰‹ๆœบ
+56 | ้€š่ฎฏ่ฎพๅค‡
+57 | ็”ตไฟกไธš
+58 | ็ฝ‘่ทฏๆœๅŠก
+59 | ๅซๆ˜Ÿ้€š่ฎฏ
+60 | ๅ…‰็บค้€š่ฎฏ
+61 | 3C้€š่ทฏ
+62 | ๆถˆ่ดนๆ€ง็”ตๅญ
+63 | ็…ง็›ธๆœบ
+64 | ่ฝฏไปถๆœๅŠก
+65 | ็ณป็ปŸๆ•ดๅˆ
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266\346\230\216\347\273\206.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266\346\230\216\347\273\206.md"
new file mode 100644
index 000000000..532ccae55
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\217\260\346\271\276\347\224\265\345\255\220\344\272\247\344\270\232\346\234\210\350\220\245\346\224\266\346\230\216\347\273\206.md"
@@ -0,0 +1,1053 @@
+## ๅฐๆนพ็”ตๅญไบงไธšๆœˆ่ฅๆ”ถๆ˜Ž็ป†
+----
+
+ๆŽฅๅฃ๏ผštmt_twincomedetail
+ๆ่ฟฐ๏ผš่Žทๅ–ๅฐๆนพTMT่กŒไธšไธŠๅธ‚ๅ…ฌๅธๅ„็ฑปไบงๅ“ๆœˆๅบฆ่ฅๆ”ถๆƒ…ๅ†ตใ€‚
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | N | ๆŠฅๅ‘ŠๆœŸ
+item | str | N | ไบงๅ“ไปฃ็ 
+symbol | str | N | ๅ…ฌๅธไปฃ็ 
+start_date | str | N | ๆŠฅๅ‘ŠๆœŸๅผ€ๅง‹ๆ—ฅๆœŸ
+end_date | str | N | ๆŠฅๅ‘ŠๆœŸ็ป“ๆŸๆ—ฅๆœŸ
+source | str | N | None
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๆ่ฟฐ
+--- | ---- | ----
+date | str | ๆŠฅๅ‘ŠๆœŸ
+item | str | ไบงๅ“ไปฃ็ 
+symbol | str | ๅ…ฌๅธไปฃ็ 
+op_income | str | ๆœˆๅบฆ่ฅๆ”ถ
+consop_income | str | ๅˆๅนถๆœˆๅบฆ่ฅๆ”ถ๏ผˆ้ป˜่ฎคไธๅฑ•็คบ๏ผ‰
+
+**ๆ•ฐๆฎ่ฐƒ็”จ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+#่Žทๅ–ๅฐๆนพๆพไธŠ็”ตๅญPCB็š„ๆœˆๅบฆ่ฅๆ”ถๆ•ฐๆฎ
+df = pro.tmt_twincomedetail(item='8', symbol='6156')
+
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date item symbol op_income
+ 0 20180731 8 6156 429618.0
+ 1 20180629 8 6156 367786.0
+ 2 20180531 8 6156 415715.0
+ 3 20180430 8 6156 395857.0
+ 4 20180331 8 6156 405173.0
+ 5 20180227 8 6156 252961.0
+ 6 20180131 8 6156 472289.0
+ 7 20171229 8 6156 408431.0
+ 8 20171130 8 6156 390715.0
+ 9 20171031 8 6156 298781.0
+ 10 20170930 8 6156 367127.0
+ 11 20170831 8 6156 396217.0
+ 12 20170731 8 6156 373196.0
+ 13 20170630 8 6156 380075.0
+ 14 20170531 8 6156 443130.0
+ 15 20170428 8 6156 426106.0
+ 16 20170331 8 6156 418031.0
+ 17 20170224 8 6156 298844.0
+ 18 20170124 8 6156 327690.0
+ 19 20161230 8 6156 431934.0
+ 20 20161130 8 6156 417424.0
+ 21 20161031 8 6156 362774.0
+ 22 20160930 8 6156 392458.0
+ 23 20160831 8 6156 408301.0
+ 24 20160729 8 6156 293324.0
+ 25 20160630 8 6156 329383.0
+ 26 20160531 8 6156 323873.0
+ 27 20160429 8 6156 372231.0
+ 28 20160331 8 6156 388029.0
+ 29 20160226 8 6156 225912.0
+
+
+**ๅฐๆนพๅ…ฌๅธไปฃ็ **
+
+symbol | name
+--|--
+1333 | ๆฉๅพ—ๅˆฉ
+1336 | ๅฐ็ฟฐ
+1471 | ้ฆ–ๅˆฉ
+1569 | ๆปจๅท
+1582 | ไฟก้”ฆ
+1585 | ้“ ้’œ
+1595 | ๅทๅฎ
+1785 | ๅ…‰ๆด‹็ง‘
+1815 | ๅฏŒไน”
+2059 | ๅทๆน–
+2301 | ๅ…‰ๅฎ็ง‘
+2302 | ไธฝๆญฃ
+2303 | ่”็”ต
+2305 | ๅ…จๅ‹
+2308 | ๅฐ่พพ็”ต
+2312 | ้‡‘ๅฎ
+2313 | ๅŽ้€š
+2314 | ๅฐๆ‰ฌ
+2315 | ็ฅž่พพ็”ต่„‘
+2316 | ๆฅ ๆข“็”ต
+2317 | ้ธฟๆตท
+2321 | ไธœ่ฎฏ
+2323 | ไธญ็Žฏ
+2324 | ไปๅฎ
+2327 | ๅ›ฝๅทจ
+2328 | ๅนฟๅฎ‡
+2329 | ๅŽๆณฐ
+2330 | ๅฐ็งฏ็”ต
+2331 | ็ฒพ่‹ฑ
+2332 | ๅ‹่ฎฏ
+2337 | ๆ—บๅฎ
+2338 | ๅ…‰็ฝฉ
+2340 | ๅ…‰็ฃŠ
+2342 | ่Œ‚็Ÿฝ
+2344 | ๅŽ้‚ฆ็”ต
+2345 | ๆ™บ้‚ฆ
+2347 | ่”ๅผบ
+2349 | ้“ผๅพท
+2351 | ้กบๅพท
+2352 | ไฝณไธ–่พพ
+2353 | ๅฎๆฃ‹
+2354 | ้ธฟๅ‡†
+2355 | ๆ•ฌ้น
+2356 | ่‹ฑไธš่พพ
+2357 | ๅŽ็ก•
+2359 | ๆ‰€็ฝ—้—จ
+2360 | ่‡ด่Œ‚
+2362 | ่“ๅคฉ
+2363 | ็Ÿฝ็ปŸ
+2364 | ไผฆ้ฃž
+2365 | ๆ˜†็›ˆ
+2367 | ?dๅŽ
+2368 | ้‡‘ๅƒ็”ต
+2369 | ่ฑ็”Ÿ
+2373 | ้œ‡ๆ—ฆ่กŒ
+2374 | ไฝณ่ƒฝ
+2375 | ๆ™บๅฎ
+2376 | ๆŠ€ๅ˜‰
+2377 | ๅพฎๆ˜Ÿ
+2379 | ็‘žๆ˜ฑ
+2380 | ่™นๅ…‰
+2382 | ๅนฟ่พพ
+2383 | ๅฐๅ…‰็”ต
+2385 | ็พคๅ…‰
+2387 | ็ฒพๅ…ƒ
+2388 | ๅจ็››
+2390 | ไบ‘่พฐ
+2392 | ๆญฃๅดด
+2393 | ไบฟๅ…‰
+2395 | ็ ”ๅŽ
+2397 | ๅ‹้€š
+2399 | ๆ˜ ๆณฐ
+2401 | ๅ‡Œ้˜ณ
+2402 | ๆฏ…ๅ˜‰
+2404 | ๆฑ‰ๅ”
+2405 | ๆตฉ้‘ซ
+2406 | ๅ›ฝ็ก•
+2408 | ๅ—ไบš็ง‘
+2409 | ๅ‹่พพ
+2412 | ไธญๅŽ็”ต
+2413 | ็Žฏ็ง‘
+2414 | ็ฒพๆŠ€
+2415 | ้Œฉๆ–ฐ
+2417 | ๅœ†ๅˆš
+2419 | ไปฒ็ฆ
+2420 | ๆ–ฐๅทจ
+2421 | ๅปบๅ‡†
+2423 | ๅ›บ็บฌ
+2424 | ้™‡ๅŽ
+2425 | ๆ‰ฟๅฏ
+2426 | ้ผŽๅ…ƒ
+2427 | ไธ‰ๅ•†็”ต
+2428 | ๅ…ดๅ‹ค
+2429 | ้“ญๆ—บ็ง‘
+2430 | ็ฟๅค
+2431 | ่”ๆ˜Œ
+2433 | ไบ’็››็”ต
+2434 | ็ปŸๆ‡‹
+2436 | ไผŸ่ฏ ็”ต
+2438 | ็ฟ”่€€
+2439 | ็พŽๅพ‹
+2440 | ๅคช็ฉบๆขญ
+2441 | ่ถ…ไธฐ
+2442 | ๆ–ฐ็พŽ้ฝ
+2444 | ๅ…†ๅŠฒ
+2448 | ๆ™ถ็”ต
+2449 | ไบฌๅ…ƒ็”ตๅญ
+2450 | ็ฅž่„‘
+2451 | ๅˆ›่ง
+2453 | ๅ‡Œ็พค
+2454 | ่”ๅ‘็ง‘
+2455 | ๅ…จๆ–ฐ
+2456 | ๅฅ‡ๅŠ›ๆ–ฐ
+2457 | ้ฃžๅฎ
+2458 | ไน‰้š†
+2459 | ๆ•ฆๅ‰
+2460 | ๅปบ้€š
+2461 | ๅ…‰็พค้›ท
+2462 | ่‰ฏๅพ—็”ต
+2464 | ็›Ÿ็ซ‹
+2465 | ไธฝๅฐ
+2466 | ๅ† ่ฅฟ็”ต
+2467 | ๅฟ—ๅœฃ
+2468 | ๅŽ็ป
+2471 | ่ต„้€š
+2472 | ็ซ‹้š†็”ต
+2474 | ๅฏๆˆ
+2475 | ๅŽๆ˜ 
+2476 | ้’œ็ฅฅ
+2477 | ็พŽ้š†็”ต
+2478 | ๅคงๆฏ…
+2480 | ๆ•ฆ้˜ณ็ง‘
+2481 | ๅผบ่Œ‚
+2482 | ่ฟžๅฎ‡
+2483 | ็™พๅฎน
+2484 | ๅธŒๅŽ
+2485 | ๅ…†่ตซ
+2486 | ไธ€่ฏ 
+2488 | ๆฑ‰ๅนณ
+2489 | ็‘ž่ฝฉ
+2491 | ๅ‰็ฅฅๅ…จ
+2492 | ๅŽๆ–ฐ็ง‘
+2493 | ๆ‰ฌๅš
+2495 | ๆ™ฎๅฎ‰
+2496 | ๅ“่ถŠ
+2497 | ๆ€กๅˆฉ็”ต
+2498 | ๅฎ่พพ็”ต
+2499 | ไธœ่ด
+3002 | ๆฌงๆ ผ
+3003 | ๅฅๅ’Œๅ…ด
+3005 | ็ฅžๅŸบ
+3006 | ๆ™ถ่ฑช็ง‘
+3008 | ๅคง็ซ‹ๅ…‰
+3010 | ๅŽ็ซ‹
+3011 | ไปŠ็š“
+3013 | ๆ™Ÿ้“ญ็”ต
+3014 | ่”้˜ณ
+3015 | ๅ…จๆฑ‰
+3016 | ๅ˜‰ๆ™ถ
+3017 | ๅฅ‡้‹
+3018 | ๅŒๅผ€
+3019 | ไบšๅ…‰
+3021 | ้ธฟๅ
+3022 | ๅจๅผบ็”ต
+3023 | ไฟก้‚ฆ
+3024 | ๅฟ†ๅฃฐ
+3025 | ๆ˜Ÿ้€š
+3026 | ็ฆพไผธๅ ‚
+3027 | ็››่พพ
+3028 | ๅขžไฝ ๅผบ
+3029 | ้›ถๅฃน
+3030 | ๅพทๅพ‹
+3031 | ไฝฐ้ธฟ
+3032 | ไผŸ่ฎญ
+3033 | ๅจๅฅ
+3034 | ่”ๅ’
+3035 | ๆ™บๅŽŸ
+3036 | ๆ–‡ๆ™”
+3037 | ๆฌฃๅ…ด
+3038 | ๅ…จๅฐ
+3041 | ๆ‰ฌๆ™บ
+3042 | ๆ™ถๆŠ€
+3043 | ็ง‘้ฃŽ
+3044 | ๅฅ้ผŽ
+3045 | ๅฐๆนพๅคง
+3046 | ๅปบๆฃ‹
+3047 | ่ฎฏ่ˆŸ
+3048 | ็›Š็™ป
+3049 | ๅ’Œ้‘ซ
+3050 | ้’ฐๅพท
+3051 | ๅŠ›็‰น
+3054 | ็ซ‹ไธ‡ๅˆฉ
+3055 | ่”šๅŽ็ง‘
+3057 | ไน”้ผŽ
+3058 | ็ซ‹ๅพท
+3059 | ๅŽๆ™ถ็ง‘
+3060 | ้“ญๅผ‚
+3062 | ๅปบๆฑ‰
+3066 | ๆŽๆดฒ
+3067 | ๅ…จๅŸŸ
+3071 | ๅ็ฆง
+3073 | ๅ‡ฏๆŸๅฎžไธš
+3078 | ไพจๅจ
+3081 | ่”ไบš
+3085 | ๆ–ฐ้›ถๅ”ฎ
+3088 | ่‰พ่ฎฏ
+3089 | ๅ…ƒ็‚ฌ
+3090 | ๆ—ฅ็”ต่ดธ
+3092 | ้ธฟ็ก•
+3093 | ๆธฏๅปบ
+3094 | ่”ๆฐ
+3095 | ๅŠๆˆ
+3097 | ๆ‹ๆกฃ
+3105 | ็จณๆ‡‹
+3114 | ๅฅฝๅพท
+3115 | ๅฎๅฒ›ๆž
+3117 | ๅนด็จ‹
+3122 | ็ฌ™ๆณ‰
+3128 | ๅ‡้”
+3130 | ไธ€้›ถๅ››
+3131 | ๅผ˜ๅก‘
+3138 | ่€€็™ป
+3141 | ๆ™ถๅฎ
+3144 | ๆ–ฐๆ‰ฌ็ง‘
+3147 | ๅคง็ปผ
+3149 | ๆญฃ่พพ
+3150 | ้’ฐๅฎ
+3152 | ๆ™ฏๅพท
+3158 | ๅ˜‰ๅฎž
+3163 | ๆณข่‹ฅๅจ
+3168 | ไผ—็ฆ็ง‘
+3169 | ไบšไฟก
+3178 | ๅ…ฌๅ‡†
+3188 | ้‘ซ้พ™่…พ
+3189 | ๆ™ฏ็ก•
+3191 | ๅ’Œ่ฟ›
+3202 | ๆกฆๆ™Ÿ
+3206 | ๅฟ—ไธฐ
+3207 | ่€€่ƒœ
+3209 | ๅ…จ็ง‘
+3211 | ้กบ่พพ
+3213 | ่Œ‚่ฎฏ
+3217 | ไผ˜็พค
+3219 | ๅ€šๅผบ
+3221 | ๅฐๅ˜‰็ก•
+3224 | ไธ‰้กพ
+3227 | ๅŽŸ็›ธ
+3228 | ้‡‘ไธฝ็ง‘
+3229 | ๆ™Ÿ้’›
+3230 | ้”ฆๆ˜Ž
+3231 | ็บฌๅˆ›
+3232 | ๆ˜ฑๆท
+3234 | ๅ…‰็Žฏ
+3236 | ๅƒๅฆ‚
+3257 | ่™นๅ† ็”ต
+3259 | ้‘ซๅˆ›
+3260 | ๅจๅˆš
+3264 | ๆฌฃ้“จ
+3265 | ๅฐๆ˜Ÿ็ง‘
+3268 | ๆตทๅพทๅจ
+3272 | ไธœ็ก•
+3276 | ๅฎ‡็Žฏ
+3285 | ๅพฎ็ซฏ
+3287 | ๅนฟๅฏฐ็ง‘
+3288 | ็‚นๆ™ถ
+3289 | ๅฎœ็‰น
+3290 | ไธœๆตฆ
+3294 | ่‹ฑๆตŽ
+3296 | ่ƒœๅพท
+3297 | ๆญ็‰น
+3299 | ๅธ›ๆฑ‰
+3303 | ๅฒฑๆฃฑ
+3305 | ๅ‡่ดธ
+3306 | ้ผŽๅคฉ
+3308 | ่”ๅพท
+3310 | ไฝณ้ข–
+3311 | ้—ณๆ™–
+3312 | ๅผ˜ๅฟ†่‚ก
+3313 | ๆ–ๆˆ
+3317 | ๅฐผๅ…‹ๆฃฎ
+3321 | ๅŒๆณฐ
+3322 | ๅปบ่ˆœ็”ต
+3323 | ๅŠ ็™พ่ฃ•
+3324 | ๅŒ้ธฟ
+3325 | ๆ—ญๅ“
+3332 | ๅนธๅบท
+3338 | ๆณฐ็ก•
+3339 | ๆณฐ่ฐท
+3349 | ๅฎๅพท
+3354 | ๅพ‹่ƒœ
+3356 | ๅฅ‡ๅถ
+3357 | ๅฐๅบ†็ง‘
+3360 | ๅฐš็ซ‹
+3362 | ๅ…ˆ่ฟ›ๅ…‰
+3363 | ไธŠ่ฏ 
+3372 | ๅ…ธ่Œƒ
+3373 | ็ƒญๆ˜ 
+3374 | ็ฒพๆ
+3376 | ๆ–ฐๆ—ฅๅ…ด
+3377 | ๅฅๆ ผ
+3380 | ๆ˜Žๆณฐ
+3383 | ๆ–ฐไธ–็บช
+3388 | ๅด‡่ถŠ็”ต
+3390 | ๆ—ญ่ฝฏ
+3391 | ไฝณๅพ—
+3402 | ๆฑ‰็ง‘
+3406 | ็މๆ™ถๅ…‰
+3413 | ไบฌ้ผŽ
+3416 | ่ž็จ‹็”ต
+3419 | ๅ“—่ฃ•
+3428 | ๅ…‰็‡ฟ็ง‘
+3429 | ๅฝฆ้˜ณ
+3431 | ้•ฟๅคฉ
+3432 | ๅฐ็ซฏ
+3434 | ๅ“ฒๅ›บ
+3437 | ่ฃๅˆ›
+3438 | ็ฑปๆฏ”็ง‘
+3441 | ่”ไธ€ๅ…‰
+3443 | ๅˆ›ๆ„
+3444 | ๅˆฉๆœบ
+3450 | ่”้’ง
+3452 | ็›Š้€š
+3454 | ๆ™ถ็ฟ
+3455 | ็”ฑ็”ฐ
+3465 | ็ฅฅไธš
+3466 | ่‡ดๆŒฏ
+3479 | ๅฎ‰ๅ‹ค
+3481 | ็พคๅˆ›
+3483 | ๅŠ›่‡ด
+3484 | ๅดง่…พ
+3485 | ๅ™ไธฐ
+3490 | ๅ•ไบ•
+3491 | ๅ‡่พพ็ง‘
+3492 | ้•ฟ็››
+3494 | ่ฏš็ ”
+3498 | ้˜ณ็จ‹
+3499 | ็Žฏๅคฉ็ง‘
+3501 | ็ปด็†น
+3504 | ๆ‰ฌๆ˜Žๅ…‰
+3508 | ไฝ้€Ÿ
+3511 | ็Ÿฝ็Ž›
+3512 | ็š‡้พ™
+3514 | ๆ˜ฑๆ™ถ
+3515 | ๅŽๆ“Ž
+3516 | ไบšๅธๆฌง
+3518 | ๆŸ่…พ
+3519 | ็ปฟ่ƒฝ
+3520 | ๆŒฏ็ปด
+3521 | ้ธฟ็ฟŠ
+3522 | ๅพก้กถ
+3523 | ่ฟŽ่พ‰
+3526 | ๅ‡ก็”ฒ
+3527 | ่š็งฏ
+3528 | ๅฎ‰้ฉฐ
+3529 | ๅŠ›ๆ—บ
+3530 | ๆ™ถ็›ธๅ…‰
+3531 | ๅ…ˆ็›Š
+3532 | ๅฐ่ƒœ็ง‘
+3533 | ๅ˜‰ๆณฝ
+3535 | ๆ™ถๅฝฉ็ง‘
+3536 | ่ฏšๅˆ›
+3537 | ๅ ก่พพ
+3540 | ๆ›œ่ถŠ
+3541 | ่ฅฟๆŸ
+3543 | ๅทžๅทง
+3545 | ๆ•ฆๆณฐ
+3548 | ๅ…†ๅˆฉ
+3550 | ่”้ข–
+3551 | ไธ–็ฆพ
+3552 | ๅŒ่‡ด
+3555 | ้‡้น
+3556 | ็ฆพ็‘žไบš
+3557 | ๅ˜‰ๅจ
+3558 | ็ฅžๅ‡†
+3561 | ๅ‡้˜ณๅ…‰็”ต
+3562 | ้กถๆ™ถ็ง‘
+3563 | ็‰งๅพท
+3564 | ๅ…ถ้˜ณ
+3566 | ๅคช้˜ณๅ…‰
+3567 | ้€ธๆ˜Œ
+3570 | ๅคงๅ†ข
+3576 | ๆ–ฐๆ—ฅๅ…‰
+3577 | ๆณ“ๆ ผ
+3579 | ๅฐšๅฟ—
+3580 | ๅ‹ๅจ็ง‘
+3581 | ๅš็ฃŠ
+3583 | ่พ›่€˜
+3585 | ่”่‡ด
+3587 | ้—ณๅบท
+3588 | ้€šๅ˜‰
+3591 | ่‰พ็ฌ›ๆฃฎ
+3592 | ็‘ž้ผŽ
+3593 | ๅŠ›้“ญ
+3594 | ็ฃไปช
+3595 | ๅฑฑๅคชๅฃซ
+3596 | ๆ™บๆ˜“
+3597 | ๆ˜ ๅ…ด
+3601 | ๅ‰ๆบ
+3603 | ๅปบ็ฅฅๅ›ฝ้™…
+3605 | ๅฎ่‡ด
+3607 | ่ฐทๅดง
+3609 | ไธœๆž—
+3611 | ้ผŽ็ฟฐ
+3615 | ๅฎ‰ๅฏ
+3617 | ็ก•ๅคฉ
+3622 | ๆด‹ๅŽ
+3623 | ๅฏŒๆ™ถ้€š
+3624 | ๅ…‰้ข‰
+3625 | ่ฅฟ่ƒœ
+3627 | ๅŽไฟก็ง‘
+3628 | ็›ˆๆญฃ
+3629 | ๅœฐๅฟƒๅผ•ๅŠ›
+3630 | ๆ–ฐ้’œ็ง‘
+3631 | ๆ™Ÿๆฅ 
+3632 | ็ ”ๅ‹ค
+3633 | ไบ‘ๅ…‰
+3642 | ้ช็† ็”ต
+3644 | ๅ‡Œๅ˜‰็ง‘
+3645 | ่พพ่ฟˆ
+3646 | ่‰พๆฉ็‰น
+3652 | ็ฒพ่”
+3653 | ๅฅ็ญ–
+3659 | ็™พ่พฐ
+3661 | ไธ–่Šฏ-KY
+3663 | ้‘ซ็ง‘
+3664 | ๅฎ‰็‘ž-KY
+3665 | ่ดธ่”-KY
+3666 | ๅ…‰่€€
+3669 | ๅœ†ๅฑ•
+3672 | ๅบท่”่ฎฏ
+3673 | TPK-KY
+3674 | ๅบท่ฎฏ
+3675 | ๅพทๅพฎ
+3678 | ่”ไบซ
+3679 | ๆ–ฐ่‡ณๅ‡
+3680 | ๅฎถ็™ป
+3682 | ไบšๅคช็”ต
+3684 | ่ฃๆ˜Œ
+3685 | ๅ…ƒๅˆ›็ฒพๅฏ†
+3686 | ่พพ่ƒฝ
+3688 | ๅŽ็ซ‹ๆท
+3689 | ๆถŒๅพท
+3691 | ็ก•็ฆพ
+3693 | ่ฅ้‚ฆ
+3694 | ๆตทๅŽ
+3697 | F-ๆ™จๆ˜Ÿ
+3698 | ้š†่พพ
+3701 | ๅคงไผ—ๆŽง
+3702 | ๅคง่”ๅคง
+3704 | ๅˆๅ‹คๆŽง
+3706 | ็ฅž่พพ
+3707 | ๆฑ‰็ฃŠ
+3709 | ้‘ซ่”ๅคงๆŠ•ๆŽง
+3710 | ่ฟžๅฑ•ๆŠ•ๆŽง
+3711 | ๆ—ฅๆœˆๅ…‰ๆŠ•ๆŽง
+3712 | ๆฐธๅดดๆŠ•ๆŽง
+4537 | ๆ—ญไธœ
+4542 | ็ง‘ๅณค
+4545 | ้“ญ้’ฐ
+4554 | ๆฉ™็š„
+4729 | ่ง่Œ‚
+4760 | ๅ‹คๅ‡ฏ
+4903 | ่”ๅ…‰้€š
+4904 | ่ฟœไผ 
+4905 | ๅฐ่”็”ต
+4906 | ๆญฃๆ–‡
+4908 | ๅ‰้ผŽ
+4909 | ๆ–ฐๅคๅ…ด
+4912 | ่”ๅพทๆŽง่‚ก-KY
+4915 | ่‡ดไผธ
+4916 | ไบ‹ๆฌฃ็ง‘
+4919 | ๆ–ฐๅ”
+4921 | ๅฎ้˜ณ
+4923 | ๅŠ›ๅฃซ
+4924 | ๆฌฃๅŽš-KY
+4925 | ๆ™บๅพฎ
+4927 | ๆณฐ้ผŽ-KY
+4931 | ๆ–ฐ็››ๅŠ›
+4933 | ๅ‹่พ‰
+4934 | ๅคชๆž
+4935 | ่Œ‚ๆž—-KY
+4938 | ๅ’Œ็ก•
+4939 | ไบš็”ต
+4942 | ๅ˜‰ๅฝฐ
+4943 | ๅบทๆŽง-KY
+4944 | ๅ…†่ฟœ
+4947 | ๆ˜‚ๅฎ-KY
+4949 | ๆœ‰ๆˆ
+4951 | ็ฒพๆ‹“็ง‘
+4952 | ๅ‡Œ้€š
+4953 | ็บฌ่ฝฏ
+4956 | ๅ…‰้‹
+4958 | ่‡ป้ผŽ-KY
+4960 | ่ฏš็พŽๆ
+4961 | ๅคฉ้’ฐ
+4966 | ่ฐฑ็‘ž-KY
+4967 | ๅ้“จ
+4968 | ็ซ‹็งฏ
+4971 | IET-KY
+4972 | ๆฑค็Ÿณ็…งๆ˜Ž
+4973 | ๅนฟ้ข–
+4974 | ไบšๆณฐ
+4976 | ไฝณๅ‡Œ
+4977 | ไผ—่พพ-KY
+4979 | ๅŽๆ˜Ÿๅ…‰
+4980 | ไฝ่‡ป
+4984 | ็ง‘็บณ-KY
+4987 | ็ง‘่ฏš
+4989 | ่ฃ็ง‘
+4991 | ็Žฏๅฎ‡-KY
+4994 | ไผ ๅฅ‡
+4995 | ๆ™ถ่พพ
+4999 | ้‘ซ็ฆพ
+5201 | ๅ‡ฏๅซ
+5202 | ๅŠ›ๆ–ฐ
+5203 | ่ฎฏ่ฟž
+5205 | ไธญ่Œ‚
+5209 | ๆ–ฐ้ผŽ
+5210 | ๅฎ็ก•
+5211 | ่’™ๆฌ
+5212 | ๅ‡Œ็ฝ‘
+5215 | ็ง‘ๅ˜‰-KY
+5216 | ไผ˜็ฏ
+5220 | ไธ‡่พพๅ…‰็”ต
+5222 | ๅ…จ่ฎฏ
+5223 | ๅฎ‰ๅŠ›-KY
+5225 | ไธœ็ง‘-KY
+5227 | ็ซ‹ๅ‡ฏ-KY
+5228 | ้’ฐ้“ 
+5230 | ้›ท็ฌ›ๅ…‹ๅ…‰ๅญฆ
+5233 | ๆœ‰้‡
+5234 | ่พพๅ…ดๆๆ–™
+5240 | ๅปบ่…พ
+5243 | ไน™็››-KY
+5244 | ๅผ˜ๅ‡ฏ
+5245 | ๆ™บๆ™ถ
+5248 | ๆ™ฏไผ 
+5251 | ๅคฉ้’บ็”ต
+5255 | ็พŽๆก€
+5256 | ้”ๆท
+5258 | ่™นๅ ก
+5259 | ๆธ…ๆƒ 
+5262 | ็ซ‹่พพ
+5264 | ้“ ่ƒœ-KY
+5267 | ้พ™็ฟฉ
+5269 | ็ฅฅ็ก•
+5271 | ็ด˜้€š
+5272 | ็ฌ™็ง‘
+5274 | ไฟก้ช…
+5277 | ่‘ณๅคฉ
+5281 | ๅคงๅณก่ฐท-KY
+5283 | ็ฆพ่”็ก•
+5285 | ็•Œ้œ–
+5289 | ๅฎœ้ผŽ
+5291 | ้‚‘ๅ‡
+5294 | ๆท้Ÿณ็‰น
+5297 | ๅนฟๅŒ–
+5299 | ๆฐๅŠ›
+5302 | ๅคชๆฌฃ
+5304 | ้ผŽๅˆ›่พพ
+5305 | ๆ•ฆๅ—
+5309 | ็ณป็ปŸ็”ต
+5310 | ๅคฉๅˆš
+5314 | ไธ–็บช
+5315 | ๅ…‰่”
+5317 | ๅ‡ฏ็พŽ
+5321 | ๅ‹้“จ
+5328 | ๅŽๅฎน
+5340 | ๅปบ่ฃ
+5344 | ็ซ‹ๅซ
+5345 | ๅคฉๆ‰ฌ
+5347 | ไธ–็•Œ
+5348 | ็ณป้€š
+5349 | ๅ…ˆไธฐ
+5351 | ้’ฐๅˆ›
+5353 | ๅฐๆž—
+5355 | ไฝณๆ€ป
+5356 | ๅ็›Š
+5371 | ไธญๅ…‰็”ต
+5381 | ๅˆๆญฃ
+5383 | ้‡‘ๅˆฉ
+5386 | ้’ไบ‘
+5388 | ไธญ็ฃŠ
+5392 | ๅบ”ๅŽ
+5398 | ๆ…•ๅบท็”ŸๅŒป
+5403 | ไธญ่ฒ
+5410 | ๅ›ฝไผ—
+5425 | ๅฐๅŠ
+5426 | ๆŒฏๅ‘
+5432 | ่พพๅจ
+5434 | ๅด‡่ถŠ
+5438 | ไธœๅ‹
+5439 | ้ซ˜ๆŠ€
+5443 | ๅ‡่ฑช
+5450 | ๅฎ่”้€š
+5452 | ไฝถไผ˜
+5457 | ๅฎฃๅพท
+5460 | ๅŒๅ
+5464 | ้œ–ๅฎ
+5465 | ๅฏŒ้ช…
+5468 | ๅ‡ฏ้’ฐ
+5469 | ็€šๅฎ‡ๅš
+5471 | ๆพ็ฟฐ
+5474 | ่ชๆณฐ
+5475 | ๅพทๅฎ
+5480 | ็ปŸ็›Ÿ
+5481 | ๆ–ฐๅŽ
+5483 | ไธญ็พŽๆ™ถ
+5484 | ๆ…งๅ‹
+5487 | ้€šๆณฐ
+5488 | ๆพๆ™ฎ
+5489 | ๅฝฉๅฏŒ
+5490 | ๅŒไบจ
+5493 | ไธ‰่”
+5498 | ๅ‡ฏๅดด
+5536 | ๅœฃๆ™–
+6103 | ๅˆ้‚ฆ
+6104 | ๅˆ›ๆƒŸ
+6108 | ็ซžๅ›ฝ
+6109 | ไบšๅ…ƒ
+6112 | ่š็ก•
+6113 | ไบš็Ÿฝ
+6114 | ไน…ๅจ
+6115 | ้•’่ƒœ
+6116 | ๅฝฉๆ™ถ
+6117 | ่ฟŽๅนฟ
+6118 | ๅปบ่พพ
+6120 | ่พพ่ฟ
+6121 | ๆ–ฐๆ™ฎ
+6123 | ไธŠๅฅ‡
+6124 | ไธšๅผบ
+6125 | ๅนฟ่ฟ
+6126 | ไฟก้Ÿณ
+6127 | ไน่ฑช
+6128 | ไธŠ็ฆ
+6129 | ๆ™ฎ่ฏš
+6131 | ๆ‚ ๅ…‹
+6133 | ้‡‘ๆกฅ
+6134 | ไธ‡ๆ—ญ
+6136 | ๅฏŒๅฐ”็‰น
+6138 | ่Œ‚่พพ
+6139 | ไบš็ฟ”
+6140 | ่ฎฏ่พพ
+6141 | ๆŸๆ‰ฟ
+6142 | ๅ‹ๅŠฒ
+6143 | ๆŒฏๆ›œ
+6145 | ๅŠฒๆฐธ
+6146 | ่€•ๅ…ด
+6147 | ้ข€้‚ฆ
+6148 | ้ช…ๅฎ่ต„
+6150 | ๆ’ผ่ฎฏ
+6151 | ๆ™‹ไผฆ
+6152 | ็™พไธ€
+6153 | ๅ˜‰่”็›Š
+6154 | ้กบๅ‘
+6155 | ้’งๅฎ
+6156 | ๆพไธŠ
+6158 | ็ฆพๆ˜Œ
+6160 | ๆฌฃๆŠ€
+6161 | ๆทๆณข
+6163 | ๅŽ็”ต็ฝ‘
+6164 | ๅŽๅ…ด
+6165 | ๆทๆณฐ
+6166 | ๅ‡ŒๅŽ
+6167 | ไน…ๆญฃ
+6168 | ๅฎ้ฝ
+6170 | ็ปŸๆŒฏ
+6172 | ไบ’ไบฟ
+6173 | ไฟกๆ˜Œ็”ต
+6174 | ๅฎ‰ๆฃ‹
+6175 | ็ซ‹ๆ•ฆ
+6176 | ็‘žไปช
+6182 | ๅˆๆ™ถ
+6183 | ๅ…ณ่ดธ
+6185 | ๅธ็ฟ”
+6187 | ไธ‡ๆถฆ
+6188 | ๅนฟๆ˜Ž
+6189 | ไธฐ่‰บ
+6190 | ไธ‡ๆณฐ็ง‘
+6191 | ็ฒพๆˆ็ง‘
+6192 | ๅทจ่ทฏ
+6194 | ่‚ฒๅฏŒ
+6196 | ๅธ†ๅฎฃ
+6197 | ไฝณๅฟ…็ช
+6198 | ๅ‡Œๆณฐ
+6201 | ไบšๅผ˜็”ต
+6202 | ็››็พค
+6203 | ๆตท้Ÿต็”ต
+6204 | ่‰พๅŽ
+6205 | ่ฏ ๆฌฃ
+6206 | ้ฃžๆท
+6207 | ้›ท็ง‘
+6208 | ๆ—ฅๆ‰ฌ
+6209 | ไปŠๅ›ฝๅ…‰
+6210 | ๅบ†็”Ÿ
+6213 | ่”่Œ‚
+6214 | ็ฒพ่ฏš
+6215 | ๅ’Œๆคฟ
+6216 | ๅฑ…ๆ˜“
+6217 | ไธญๆŽข้’ˆ
+6218 | ่ฑชๅ‹‰
+6220 | ๅฒณไธฐ
+6221 | ๆ™‹ๆณฐ
+6222 | ไธŠๆ‰ฌ
+6223 | ๆ—บ็Ÿฝ
+6224 | ่š้ผŽ
+6225 | ๅคฉ็€š
+6226 | ๅ…‰้ผŽ
+6227 | ่Œ‚็บถ
+6228 | ๅ…จ่ฐฑ
+6229 | ็ ”้€š
+6230 | ่ถ…ไผ—
+6231 | ็ณปๅพฎ
+6233 | ๆ—บ็Ž–
+6234 | ้ซ˜ไพจ
+6235 | ๅŽๅญš
+6237 | ้ช…่ฎฏ
+6238 | ่ƒœไธฝ
+6239 | ๅŠ›ๆˆ
+6240 | ๆพๅฒ—
+6241 | ๆ˜“้€šๅฑ•
+6243 | ่ฟ…ๆฐ
+6244 | ่Œ‚่ฟช
+6245 | ็ซ‹็ซฏ
+6246 | ๅฐ้พ™
+6247 | ๆท‡่ช‰็”ต
+6251 | ๅฎš้ข–
+6257 | ็Ÿฝๆ ผ
+6259 | ็™พๅพฝ
+6261 | ไน…ๅ…ƒ
+6263 | ๆ™ฎ่Žฑๅพท
+6265 | ๆ–นๅœŸๆ˜ถ
+6266 | ๆณฐๅ’
+6269 | ๅฐ้ƒก
+6270 | ๅ€ๅพฎ
+6271 | ๅŒๆฌฃ็”ต
+6272 | ้ช…ๅ‡
+6274 | ๅฐ็‡ฟ
+6275 | ๅ…ƒๅฑฑ
+6276 | ๅฎ‰้’›ๅ…‹
+6277 | ๅฎๆญฃ
+6278 | ๅฐ่กจ็ง‘
+6279 | ่ƒก่ฟž
+6281 | ๅ…จๅ›ฝ็”ต
+6282 | ๅบท่ˆ’
+6283 | ๆทณๅฎ‰
+6284 | ไฝณ้‚ฆ
+6285 | ๅฏๆฃ‹
+6287 | ๅ…ƒ้š†
+6288 | ่”ๅ˜‰
+6289 | ๅŽไธŠ
+6290 | ่‰ฏ็ปด
+6291 | ๆฒ›ไบจ
+6292 | ่ฟ…ๅพท
+6298 | ๅดดๅผบ
+6403 | ็พค็™ป
+6404 | ้€š่ฎฏ-KY
+6405 | ๆ‚ฆๅŸŽ
+6407 | ็›ธไบ’
+6409 | ๆ—ญ้šผ
+6411 | ๆ™ถ็„ฑ
+6412 | ็พค็”ต
+6414 | ๆกฆๆฑ‰
+6415 | ็ŸฝๅŠ›-KY
+6416 | ็‘ž็ฅบ็”ต้€š
+6417 | ้Ÿฆไพจ
+6418 | ๅ’ๅ‡
+6419 | ไบฌๆ™จ็ง‘
+6422 | ๅ›่€€-KY
+6423 | ไบฟ่€Œๅพ—
+6425 | ๆ˜“ๅ‘
+6426 | ็ปŸๆ–ฐ
+6431 | ๅ…‰ไธฝ-KY
+6432 | ไปŠๅฑ•็ง‘
+6434 | ่พพ่พ‰ๅ…‰็”ต
+6435 | ๅคงไธญ
+6438 | ่ฟ…ๅพ—
+6441 | ๅนฟ้”ญ
+6442 | ๅ…‰ๅœฃ
+6443 | ๅ…ƒๆ™ถ
+6449 | ้’ฐ้‚ฆ
+6451 | ่ฎฏ่Šฏ-KY
+6456 | GIS-KY
+6457 | ็ด˜ๅบท
+6462 | ็ฅž็›พ
+6465 | ๅจๆถฆ
+6470 | ๅฎ‡ๆ™บ
+6474 | ๅŽ่ฑซๅฎ
+6475 | ๅฒฑ็‚œ
+6477 | ๅฎ‰้›†
+6485 | ็‚นๅบ
+6486 | ไบ’ๅŠจ
+6488 | ็Žฏ็ƒๆ™ถ
+6489 | ๅพทๆ™ถ
+6490 | ๅ‡Œๅ‡็ง‘
+6494 | ไน้ฝ
+6498 | ไน…็ฆพๅ…‰
+6510 | ็ฒพๆต‹
+6511 | ็ปฟๆ™
+6512 | ๅฏๅ‘็”ต
+6514 | ่Šฎ็‰น-KY
+6516 | ๅ‹คๅดด
+6525 | ๆทๆ•-KY
+6529 | ็ ”้ผŽ
+6530 | ๅˆ›ๅจ
+6531 | ็ˆฑๆ™ฎ
+6532 | ็‘ž่€˜
+6533 | ๆ™ถๅฟƒ็ง‘
+6536 | ็ก•ไธฐ
+6538 | ไป“ๅ’Œ
+6545 | ๆ“ŽๅŠ›
+6548 | ้•ฟๅŽ็ง‘
+6552 | ๆ˜“ๅŽ็”ต
+6555 | ่ฃ็‚ญ
+6556 | ่ƒœๅ“
+6558 | ๅ…ด่ƒฝ้ซ˜
+6559 | ็ ”ๆ™ถ
+6560 | ๆฌฃๆ™ฎ็ฝ—
+6561 | ๆ˜ฏๆ–น
+6565 | ็‰ฉ่”
+6568 | ๅฎ่ง‚
+6570 | ็ปด็”ฐ
+6573 | ่™นๆ‰ฌ-KY
+6577 | ๅŠฒไธฐ
+6579 | ็ ”ๆ‰ฌ
+6584 | ๅ—ไฟŠๅ›ฝ้™…
+6588 | ไธœๅ…ธๅ…‰็”ต
+6590 | ๆ™ฎ้ธฟ
+6591 | ๅŠจๅŠ›-KY
+6593 | ๅฐๆนพ้“ญๆฟ
+6594 | ๅฑ•ๆฑ‡็ง‘
+6597 | ็ซ‹่ฏš
+6599 | ๆ™ฎ่พพ
+6613 | ๆœ‹ไบฟ
+6638 | ๆฒ…ๅœฃ
+6640 | ๅ‡ๅŽ
+6642 | ๅฏŒ่‡ด
+6643 | M31
+6648 | ๆ–ฏๅ…ถๅคง
+6651 | ๅ…จๅฎ‡ๆ˜•
+6653 | ๅ˜‰่ดธ
+6654 | ๅคฉๆญฃๅ›ฝ้™…
+6664 | ็พค็ฟŠ
+6667 | ไฟก็ด˜
+6668 | ไธญๆ‰ฌๅ…‰
+6669 | ็บฌ้ข–
+6672 | ่…พ่พ‰็”ตๅญ-KY
+6673 | ๅ’Œ่ฏ 
+6674 | ้‹ๅฏถ็ง‘ๆŠ€
+6679 | ้’ฐๅคช็ง‘ๆŠ€
+6680 | ้‘ซๅˆ›็”ตๅญ
+6681 | ๅฎๆ˜ŸๆŠ€ๆœฏ
+6682 | ็ก•้’ปๆๆ–™
+6683 | ้›ๆ™บ็ง‘ๆŠ€
+6684 | ๅฎ‰ๆ ผ
+6689 | ไผŠไบ‘่ฐท
+6690 | ๅฎ‰ๆฃ‹่ต„่ฎฏ
+6691 | ๆด‹ๅŸบๅทฅ็จ‹
+7402 | ้‚‘้Œก
+7419 | ่พพ่ƒœ
+7423 | ๅฅ‡ๅคšๆฏ”
+7428 | ๆˆด็ปด
+7449 | ๅ…ƒ็š“
+7455 | ๆกฆ็บฌ
+7492 | ไธ€็ญ‰ไธ€
+7493 | ่€€่พพ
+7495 | ๅ‡Œไบ‘
+7497 | ๅก่ฎฏ
+7501 | ็€š้“ญ
+7503 | ่‡ช็”ฑ็ณป็ปŸ
+7504 | ๆ—ถๅฐš็พŽไบบ
+7505 | ็ซ‹่พพ็ง‘
+7506 | ๅŠจๅฟƒๅŒป็”ต
+7510 | ๆฃ‹่‹“
+7511 | ๅฎๆ™ฏๆ™บๆƒ็ง‘ๆŠ€
+7514 | ้กถ็จ‹ๅ›ฝ้™…
+7517 | ้ƒฝไปฅ็‰น
+7522 | ไบšๅคชๅผ€
+7523 | ไบš็ง‘ๅ›ฝ้™…
+7531 | ๆ˜ฑๅฎถ็ง‘ๆŠ€
+7533 | ้‘ซ่ฑช
+7541 | ๅฝฌ่…พ
+7545 | ๅฐ้‚ฆไผไธš
+7556 | ๆ„ๅพทๅฃซ
+7557 | ็‰ง้˜ณ่ƒฝๆŽง
+8011 | ๅฐ้€š
+8016 | ็Ÿฝๅˆ›
+8021 | ๅฐ–็‚น
+8024 | ไฝ‘ๅŽ
+8028 | ๅ‡้˜ณๅŠๅฏผไฝ“
+8032 | ๅ…‰่ฑ
+8034 | ่ฃ็พค
+8038 | ้•ฟๅ›ญ็ง‘
+8039 | ๅฐ่™น
+8040 | ไนๆš˜
+8042 | ้‡‘ๅฑฑ็”ต
+8043 | ่œœๆœ›ๅฎž
+8045 | ่พพ่ฟๅ…‰็”ต
+8046 | ๅ—็”ต
+8047 | ๆ˜Ÿไบ‘
+8048 | ๅพท่ƒœ
+8049 | ๆ™ถ้‡‡
+8050 | ๅนฟ็งฏ
+8054 | ๅฎ‰ๅ›ฝ
+8059 | ๅ‡ฏ็ก•
+8064 | ไธœๆท
+8067 | ๅฟ—ๆ—ญ
+8068 | ๅ…จ่พพ
+8069 | ๅ…ƒๅคช
+8070 | ้•ฟๅŽ
+8071 | ่ƒฝ็އ็ฝ‘้€š
+8072 | ๅ‡ๆณฐ
+8074 | ้’œๆฉก
+8076 | ไผไธฐ
+8080 | ๅฅฅๆ–ฏ็‰น
+8081 | ่‡ดๆ–ฐ
+8084 | ๅทจ่™น
+8085 | ็ฆๅŽ
+8086 | ๅฎๆท็ง‘
+8087 | ๅŽ้•้‘ซ
+8088 | ๅ“ๅฎ‰
+8089 | ๅบทๅ…จ็”ต่ฎฏ
+8091 | ็ฟ”ๅ
+8092 | ๅปบ่‹
+8093 | ไฟ้”
+8096 | ๆ“Žไบš
+8097 | ๅธธ็ต
+8099 | ๅคงไธ–็ง‘
+8101 | ๅŽๅ† 
+8103 | ็€š่ƒ
+8104 | ้“ผๅฎ
+8105 | ๅ‡Œๅทจ
+8109 | ๅšๅคง
+8110 | ๅŽไธœ
+8111 | ็ซ‹ๆฃ‹
+8112 | ่‡ณไธŠ
+8114 | ๆŒฏๆกฆ็”ต
+8115 | ๅธ้—ป
+8119 | ๅ…ฌไฟก
+8121 | ่ถŠๅณฐ
+8122 | ็ฅž้€š
+8127 | ๅˆฉๆณ›
+8131 | ็ฆๆ‡‹็ง‘
+8147 | ๆญฃๅ‡Œ
+8150 | ๅ—่Œ‚
+8155 | ๅšๆ™บ
+8163 | ่พพๆ–น
+8171 | ๅคฉๅฎ‡
+8176 | ๆ™บๆท
+8179 | ๆ—ญๅพท
+8182 | ๅŠ ้ซ˜
+8183 | ็ฒพๆ˜Ÿ
+8201 | ๆ— ๆ•Œ
+8210 | ๅ‹ค่ฏš
+8213 | ๅฟ—่ถ…
+8215 | ๆ˜ŽๅŸบๆ
+8234 | ๆ–ฐๆฑ‰
+8240 | ๅŽๅฎ
+8249 | ่ฑๅ…‰
+8261 | ๅฏŒ้ผŽ
+8271 | ๅฎ‡็žป
+8277 | ๅ•†ไธž
+8281 | ๆฌงๆ™ฎ็ฝ—
+8284 | ไธ‰็ซน
+8287 | ่‹ฑๆ ผๅฐ”
+8289 | ๆณฐ่‰บ
+8291 | ๅฐš่Œ‚
+8298 | ๅจ็ฟ
+8299 | ็พค่”
+8358 | ้‡‘ๅฑ…
+8383 | ๅƒ้™„
+8410 | ๆฃฎ็”ฐ
+8416 | ๅฎžๅจ
+8431 | ๆฑ‡้’ป็ง‘
+8455 | ๅคงๆ‹“-KY
+9912 | ไผŸ่”
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\275\261\351\231\242\346\227\245\345\272\246\347\245\250\346\210\277.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\275\261\351\231\242\346\227\245\345\272\246\347\245\250\346\210\277.md"
new file mode 100644
index 000000000..1d6dc1ebc
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\345\275\261\351\231\242\346\227\245\345\272\246\347\245\250\346\210\277.md"
@@ -0,0 +1,62 @@
+## ๅฝฑ้™ขๆฏๆ—ฅ็ฅจๆˆฟ
+----
+
+ๆŽฅๅฃ๏ผšbo_cinema
+ๆ่ฟฐ๏ผš่Žทๅ–ๆฏๆ—ฅๅ„ๅฝฑ้™ข็š„็ฅจๆˆฟๆ•ฐๆฎ
+ๆ•ฐๆฎๅކๅฒ๏ผš ๆ•ฐๆฎไปŽ2018ๅนด9ๆœˆๅผ€ๅง‹๏ผŒๆ›ดๅคšๅކๅฒๆ•ฐๆฎๆญฃๅœจ่กฅๅ……
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ(ๆ ผๅผ:YYYYMMDD)
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+c_name | str | Y | ๅฝฑ้™ขๅ็งฐ
+aud_count | int | Y | ่ง‚ไผ—ไบบๆ•ฐ
+att_ratio | float | Y | ไธŠๅบง็އ
+day_amount | float | Y | ๅฝ“ๆ—ฅ็ฅจๆˆฟ
+day_showcount | float | Y | ๅฝ“ๆ—ฅๅœบๆฌก
+avg_price | float | Y | ๅœบๅ‡็ฅจไปท๏ผˆๅ…ƒ๏ผ‰
+p_pc | float | Y | ๅœบๅ‡ไบบๆฌก
+rank | int | Y | ๆŽ’ๅ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.bo_cinema(date='20181014')
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date c_name aud_count att_ratio day_amount \
+ 0 20181014 Jackie ChanๅŒ—ไบฌ่€€่Žฑ 4973 20.70 215721.00
+ 1 20181014 ้‡‘้€ธๅŒ—ไบฌๅคงๆ‚ฆๅŸŽIMAXๅบ— 3160 29.65 197890.50
+ 2 20181014 ๅนฟๅทž้ฃžๆ‰ฌๅฝฑๅŸŽ๏ผˆๆญฃไฝณๅˆ†ๅบ—๏ผ‰ 3279 23.30 173564.30
+ 3 20181014 ้ฆ–้ƒฝ็”ตๅฝฑ้™ข่ฅฟๅ•ๅบ— 3412 30.01 167779.68
+ 4 20181014 ๅŒ—ไบฌๅฏฐๆ˜ ๅˆ็”Ÿๆฑ‡ๅบ— 2554 30.69 161035.50
+ 5 20181014 ้‡‘้€ธๅŒ—ไบฌ่Ÿ่šIMAXๅบ— 2710 18.34 150530.10
+ 6 20181014 ๅ—ไบฌๆ–ฐ่ก—ๅฃๅ›ฝ้™…ๅฝฑๅŸŽ 3685 23.58 144884.50
+ 7 20181014 ๆญฆๅ•†ๆ‘ฉๅฐ”ๅ›ฝ้™…็”ตๅฝฑๅŸŽ 4232 23.22 144577.00
+ 8 20181014 ๅนฟๅทž้ฃžๆ‰ฌๅฝฑๅŸŽ 2775 22.38 144180.00
+ 9 20181014 ไธญๅฝฑๅ›ฝ้™…ๅฝฑๅŸŽๆญฆๆฑ‰ๅ…‰่ฐทๅคฉๆฒณๅบ— 4078 37.00 137562.00
+ 10 20181014 ไธญๅฝฑๅ›ฝ้™…ๅฝฑๅŸŽ็ ๆตทๅŽๅ‘2ๅบ— 3228 34.78 136909.00
+ 11 20181014 ๅข็ฑณๅŸƒๅŒ—ไบฌ้•ฟๆฅนๅคฉ่ก—IMAXๅฝฑๅŸŽ 2197 18.04 132217.00
+ 12 20181014 ไธญๅฝฑๅ›ฝ้™…ๅฝฑๅŸŽๅŒ—ไบฌๆ˜Œๅนณๆฐธๆ—บๅบ— 3002 35.76 130213.40
+ 13 20181014 CGVๅฝฑๅŸŽ ๆทฑๅœณๅฃนๆ–นๅŸŽๅบ— 2423 19.03 130132.00
+ 14 20181014 ๅŒ—ไบฌๅธ‚้‡‘ๆณ‰ๆธฏๅ›ฝ้™…ๅฝฑๅŸŽ 2538 16.75 129530.00
+ 15 20181014 ๅŒ—ไบฌUMEๅ›ฝ้™…ๅฝฑๅŸŽๅŒไบ•ๅบ— 2052 17.98 129479.59
+ 16 20181014 ๆทฑๅœณๅธ‚็™พ่€ๆฑ‡็”ตๅฝฑไธญๅฟƒๅฝฑๅŸŽ 2515 19.71 128600.00
+ 17 20181014 ๅนฟๅทžๅธ‚็™พไธฝๅฎซ็ŒŽๅพทๅฝฑ้™ข 2007 24.84 125094.00
+ 18 20181014 ้ƒ‘ๅทžๅฅฅๆ–ฏๅก็†™ๅœฐๆธฏๅ›ฝ้™…ๅฝฑๅŸŽ 3286 27.60 124663.00
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\345\221\250\345\272\246\347\245\250\346\210\277.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\345\221\250\345\272\246\347\245\250\346\210\277.md"
new file mode 100644
index 000000000..7e58b28ed
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\345\221\250\345\272\246\347\245\250\346\210\277.md"
@@ -0,0 +1,54 @@
+## ็”ตๅฝฑๅ‘จๅบฆ็ฅจๆˆฟ
+----
+
+ๆŽฅๅฃ๏ผšbo_weekly
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ‘จๅบฆ็ฅจๆˆฟๆ•ฐๆฎ
+ๆ•ฐๆฎๆ›ดๆ–ฐ๏ผšๆœฌๅ‘จๆ›ดๆ–ฐไธŠไธ€ๅ‘จๆ•ฐๆฎ
+ๆ•ฐๆฎๅކๅฒ๏ผš ๆ•ฐๆฎไปŽ2008ๅนด็ฌฌไธ€ๅ‘จๅผ€ๅง‹๏ผŒ่ถ…่ฟ‡10ๅนดๅކๅฒๆ•ฐๆฎใ€‚
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ๏ผˆๆฏๅ‘จไธ€ๆ—ฅๆœŸ๏ผŒๆ ผๅผYYYYMMDD๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+name | str | Y | ๅฝฑ็‰‡ๅ็งฐ
+avg_price | float | Y | ๅนณๅ‡็ฅจไปท
+week_amount | float | Y | ๅฝ“ๅ‘จ็ฅจๆˆฟ๏ผˆไธ‡๏ผ‰
+total | float | Y | ็ดฏ่ฎก็ฅจๆˆฟ๏ผˆไธ‡๏ผ‰
+list_day | int | Y | ไธŠๆ˜ ๅคฉๆ•ฐ
+p_pc | int | Y | ๅœบๅ‡ไบบๆฌก
+wom_index | float | Y | ๅฃ็ข‘ๆŒ‡ๆ•ฐ
+up_ratio | float | Y | ็Žฏๆฏ”ๅ˜ๅŒ– ๏ผˆ%๏ผ‰
+rank | int | Y | ๆŽ’ๅ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.bo_weekly(date='20181008')
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date name avg_price week_amount total list_day p_pc \
+ 0 20181008 ๆ— ๅŒ 36.0 25640.0 93705.0 15 12
+ 1 20181008 ๅฝฑ 36.0 10277.0 55406.0 15 8
+ 2 20181008 ๆ‰พๅˆฐไฝ  32.0 9318.0 15234.0 10 11
+ 3 20181008 ๆŽ่Œถ็š„ๅง‘ๅฆˆ 35.0 5823.0 57263.0 15 6
+ 4 20181008 ่ƒ–ๅญ่กŒๅŠจ้˜Ÿ 34.0 3875.0 23683.0 15 7
+ 5 20181008 ๅ—ๅ—่€ๅธˆ 30.0 2917.0 2941.0 3 10
+ 6 20181008 ๆ‚ฒไผค้€†ๆตๆˆๆฒณ 34.0 2475.0 33532.0 24 7
+ 7 20181008 ่ถ…่ƒฝๆณฐๅฆ 30.0 1202.0 1202.0 3 4
+ 8 20181008 ้˜ฟๅ‡กๆไน‹ๅฅ‡็ผ˜ๅކ้™ฉ 34.0 675.0 7251.0 14 5
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\227\245\345\272\246\347\245\250\346\210\277.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\227\245\345\272\246\347\245\250\346\210\277.md"
new file mode 100644
index 000000000..b104fb627
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\227\245\345\272\246\347\245\250\346\210\277.md"
@@ -0,0 +1,55 @@
+## ็”ตๅฝฑๆ—ฅๅบฆ็ฅจๆˆฟ
+----
+
+ๆŽฅๅฃ๏ผšbo_daily
+ๆ่ฟฐ๏ผš่Žทๅ–็”ตๅฝฑๆ—ฅๅบฆ็ฅจๆˆฟ
+ๆ•ฐๆฎๆ›ดๆ–ฐ๏ผšๅฝ“ๆ—ฅๆ›ดๆ–ฐไธŠไธ€ๆ—ฅๆ•ฐๆฎ
+ๆ•ฐๆฎๅކๅฒ๏ผš ๆ•ฐๆฎไปŽ2018ๅนด9ๆœˆๅผ€ๅง‹๏ผŒๆ›ดๅคšๅކๅฒๆ•ฐๆฎๆญฃๅœจ่กฅๅ……
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ ๏ผˆๆ ผๅผYYYYMMDD๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+name | str | Y | ๅฝฑ็‰‡ๅ็งฐ
+avg_price | float | Y | ๅนณๅ‡็ฅจไปท
+day_amount | float | Y | ๅฝ“ๆ—ฅ็ฅจๆˆฟ๏ผˆไธ‡๏ผ‰
+total | float | Y | ็ดฏ่ฎก็ฅจๆˆฟ๏ผˆไธ‡๏ผ‰
+list_day | int | Y | ไธŠๆ˜ ๅคฉๆ•ฐ
+p_pc | int | Y | ๅœบๅ‡ไบบๆฌก
+wom_index | float | Y | ๅฃ็ข‘ๆŒ‡ๆ•ฐ
+up_ratio | float | Y | ็Žฏๆฏ”ๅ˜ๅŒ– ๏ผˆ%๏ผ‰
+rank | int | Y | ๆŽ’ๅ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.bo_daily(date='20181014')
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date name avg_price day_amount total list_day p_pc \
+ 0 20181014 ๆ— ๅŒ 37.0 4720.0 93611.0 15 16
+ 1 20181014 ๆ‰พๅˆฐไฝ  32.0 1893.0 15196.0 10 14
+ 2 20181014 ๅฝฑ 36.0 1763.0 55370.0 15 11
+ 3 20181014 ๅ—ๅ—่€ๅธˆ 30.0 1173.0 2912.0 3 13
+ 4 20181014 ๆŽ่Œถ็š„ๅง‘ๅฆˆ 35.0 864.0 57241.0 15 9
+ 5 20181014 ่ƒ–ๅญ่กŒๅŠจ้˜Ÿ 34.0 597.0 23671.0 15 10
+ 6 20181014 ๆ‚ฒไผค้€†ๆตๆˆๆฒณ 33.0 426.0 33522.0 24 9
+ 7 20181014 ้˜ฟๅ‡กๆไน‹ๅฅ‡็ผ˜ๅކ้™ฉ 34.0 280.0 7245.0 14 10
+ 8 20181014 ็Ž›้›…่œœ่œ‚ๅކ้™ฉ่ฎฐ 31.0 277.0 579.0 3 8
+ 9 20181014 ่ถ…่ƒฝๆณฐๅฆ 31.0 189.0 1197.0 3 2
\ No newline at end of file
diff --git "a/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\234\210\345\272\246\347\245\250\346\210\277.md" "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\234\210\345\272\246\347\245\250\346\210\277.md"
new file mode 100644
index 000000000..8d44eeff4
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\241\214\344\270\232\347\273\217\346\265\216/TMT\350\241\214\344\270\232/\347\224\265\345\275\261\346\234\210\345\272\246\347\245\250\346\210\277.md"
@@ -0,0 +1,55 @@
+## ็”ตๅฝฑๆœˆๅบฆ็ฅจๆˆฟ
+----
+
+ๆŽฅๅฃ๏ผšbo_monthly
+ๆ่ฟฐ๏ผš่Žทๅ–็”ตๅฝฑๆœˆๅบฆ็ฅจๆˆฟๆ•ฐๆฎ
+ๆ•ฐๆฎๆ›ดๆ–ฐ๏ผšๆœฌๆœˆๆ›ดๆ–ฐไธŠไธ€ๆœˆๆ•ฐๆฎ
+ๆ•ฐๆฎๅކๅฒ๏ผš ๆ•ฐๆฎไปŽ2008ๅนด1ๆœˆ1ๆ—ฅๅผ€ๅง‹๏ผŒ่ถ…่ฟ‡10ๅนดๅކๅฒๆ•ฐๆฎใ€‚
+ๆ•ฐๆฎๆƒ้™๏ผš็”จๆˆท้œ€่ฆ่‡ณๅฐ‘500็งฏๅˆ†ๆ‰ๅฏไปฅ่ฐƒๅ–๏ผŒๅ…ทไฝ“่ฏทๅ‚้˜…[็งฏๅˆ†่Žทๅ–ๅŠžๆณ•](https://tushare.pro/document/1?doc_id=13)
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ๏ผˆๆฏๆœˆ1ๅท๏ผŒๆ ผๅผYYYYMMDD๏ผ‰
+
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+date | str | Y | ๆ—ฅๆœŸ
+name | str | Y | ๅฝฑ็‰‡ๅ็งฐ
+list_date | str | Y | ไธŠๆ˜ ๆ—ฅๆœŸ
+avg_price | float | Y | ๅนณๅ‡็ฅจไปท
+month_amount | float | Y | ๅฝ“ๆœˆ็ฅจๆˆฟ๏ผˆไธ‡๏ผ‰
+list_day | int | Y | ๆœˆๅ†…ๅคฉๆ•ฐ
+p_pc | int | Y | ๅœบๅ‡ไบบๆฌก
+wom_index | float | Y | ๅฃ็ข‘ๆŒ‡ๆ•ฐ
+m_ratio | float | Y | ๆœˆๅบฆๅ ๆฏ”๏ผˆ%๏ผ‰
+rank | int | Y | ๆŽ’ๅ
+
+
+**ๆŽฅๅฃไฝฟ็”จ**
+
+```python
+pro = ts.pro_api()
+#ๆˆ–่€…
+#pro = ts.pro_api('your token')
+
+df = pro.bo_monthly(date='20180901')
+```
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ date name list_date avg_price month_amount list_day p_pc \
+ 0 20180901 ็ขŸไธญ่ฐ6๏ผšๅ…จ้ข็“ฆ่งฃ 2018-08-31 37.0 104316.0 30 14
+ 1 20180901 ๅ่ดช้ฃŽๆšด3 2018-09-14 36.0 40473.0 17 11
+ 2 20180901 ้ป„้‡‘ๅ…„ๅผŸ 2018-09-21 35.0 23242.0 10 14
+ 3 20180901 ่šไบบ2๏ผš้ป„่œ‚ๅฅณ็Žฐ่บซ 2018-08-24 35.0 14641.0 30 8
+ 4 20180901 ๆ‚ฒไผค้€†ๆตๆˆๆฒณ 2018-09-21 34.0 14054.0 10 14
+ 5 20180901 ้˜ฟๅฐ”ๆณ•๏ผš็‹ผไผดๅฝ’้€” 2018-09-07 34.0 11298.0 24 7
+ 6 20180901 ๆฑŸๆน–ๅ„ฟๅฅณ 2018-09-21 34.0 5373.0 10 8
+ 7 20180901 ๅฟซๆŠŠๆˆ‘ๅ“ฅๅธฆ่ตฐ 2018-08-17 32.0 5365.0 30 7
+ 8 20180901 ้•ฐไป“็‰ฉ่ฏญ 2018-09-14 32.0 4509.0 17 6
+ 9 20180901 ๅคง้—น่ฅฟๆธธ 2018-09-22 34.0 3419.0 9 10
diff --git "a/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\345\220\204\346\270\240\351\201\223\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241\345\215\240\346\257\224.md" "b/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\345\220\204\346\270\240\351\201\223\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241\345\215\240\346\257\224.md"
new file mode 100644
index 000000000..a96136012
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\345\220\204\346\270\240\351\201\223\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241\345\215\240\346\257\224.md"
@@ -0,0 +1,57 @@
+## ๅ„ๆธ ้“ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๅ ๆฏ”
+----
+
+ๆŽฅๅฃ๏ผšfund_sales_ratio
+ๆ่ฟฐ๏ผš่Žทๅ–ๅ„ๆธ ้“ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๅ ๆฏ”ๆ•ฐๆฎ๏ผŒๅนดๅบฆๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง100่กŒๆ•ฐๆฎ๏ผŒๆ•ฐๆฎไปŽ2015ๅนดๅผ€ๅง‹ๅ…ฌๅธƒ๏ผŒๅฝ“ๅ‰ๆ•ฐๆฎ้‡ๅพˆๅฐ
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+ๅนดไปฝ | str | N | ๅนดๅบฆ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+year | int | Y | ๅนดๅบฆ
+bank | float | Y | ๅ•†ไธš้“ถ่กŒ๏ผˆ%๏ผ‰
+sec_comp | float | Y | ่ฏๅˆธๅ…ฌๅธ๏ผˆ%๏ผ‰
+fund_comp | float | Y | ๅŸบ้‡‘ๅ…ฌๅธ็›ด้”€๏ผˆ%๏ผ‰
+indep_comp | float | Y | ็‹ฌ็ซ‹ๅŸบ้‡‘้”€ๅ”ฎๆœบๆž„๏ผˆ%๏ผ‰
+rests | float | Y | ๅ…ถไป–๏ผˆ%๏ผ‰
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_sales_ratio()
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+ year bank sec_comp fund_comp indep_comp rests
+ 0 2015 25.22 10.01 61.90 2.14 0.73
+ 1 2016 23.43 8.23 65.62 2.24 0.48
+ 2 2017 24.41 6.05 65.38 3.84 0.32
+ 3 2018 24.14 6.41 61.26 7.76 0.42
+ 4 2019 23.59 7.59 57.29 11.03 0.49
+
+
diff --git "a/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\351\224\200\345\224\256\346\234\272\346\236\204\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241.md" "b/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\351\224\200\345\224\256\346\234\272\346\236\204\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241.md"
new file mode 100644
index 000000000..e5595deb8
--- /dev/null
+++ "b/agent/src/skills/tushare/references/\350\264\242\345\257\214\347\256\241\347\220\206/\345\237\272\351\207\221\351\224\200\345\224\256\350\241\214\344\270\232\346\225\260\346\215\256/\351\224\200\345\224\256\346\234\272\346\236\204\345\205\254\345\213\237\345\237\272\351\207\221\351\224\200\345\224\256\344\277\235\346\234\211\350\247\204\346\250\241.md"
@@ -0,0 +1,80 @@
+## ้”€ๅ”ฎๆœบๆž„ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจก
+----
+
+ๆŽฅๅฃ๏ผšfund_sales_vol
+ๆ่ฟฐ๏ผš่Žทๅ–้”€ๅ”ฎๆœบๆž„ๅ…ฌๅ‹ŸๅŸบ้‡‘้”€ๅ”ฎไฟๆœ‰่ง„ๆจกๆ•ฐๆฎ๏ผŒๆœฌๆ•ฐๆฎไปŽ2021ๅนดQ1ๅผ€ๅง‹ๅ…ฌๅธƒ๏ผŒๅญฃๅบฆๆ›ดๆ–ฐ
+้™้‡๏ผšๅ•ๆฌกๆœ€ๅคง500่กŒๆ•ฐๆฎ๏ผŒ็›ฎๅ‰ๆ€ป้‡ๅชๆœ‰100่กŒ๏ผŒๆœชๆฅ้š็€ๆ•ฐๆฎ้‡ๅขžๅŠ ไผšๆ้ซ˜ไธŠ้™
+
+<br>
+<br>
+
+**่พ“ๅ…ฅๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ๅฟ…้€‰ | ๆ่ฟฐ
+---- | ----- | ---- | ----
+year | str | N | ๅนดๅบฆ
+quarter | str | N | ๅญฃๅบฆ
+name | str | N | ๆœบๆž„ๅ็งฐ
+
+<br>
+<br>
+
+**่พ“ๅ‡บๅ‚ๆ•ฐ**
+
+ๅ็งฐ | ็ฑปๅž‹ | ้ป˜่ฎคๆ˜พ็คบ | ๆ่ฟฐ
+--- | ---- | ---- | ----
+year | int | Y | ๅนดๅบฆ
+quarter | str | Y | ๅญฃๅบฆ
+inst_name | str | Y | ้”€ๅ”ฎๆœบๆž„
+fund_scale | float | Y | ่‚ก็ฅจ+ๆททๅˆๅ…ฌๅ‹ŸๅŸบ้‡‘ไฟๆœ‰่ง„ๆจก๏ผˆไบฟๅ…ƒ๏ผ‰
+scale | float | Y | ้ž่ดงๅธๅธ‚ๅœบๅ…ฌๅ‹ŸๅŸบ้‡‘ไฟๆœ‰่ง„ๆจก๏ผˆไบฟๅ…ƒ๏ผ‰
+rank | int | Y | ๆŽ’ๅ
+
+
+
+<br>
+<br>
+
+**ๆŽฅๅฃ็คบไพ‹**
+
+```python
+
+pro = ts.pro_api()
+
+df = pro.fund_sales_vol()
+
+
+```
+
+<br>
+<br>
+
+**ๆ•ฐๆฎ็คบไพ‹**
+
+
+ year quarter inst_name fund_scale scale rank
+ 0 2021 Q1 ๆ‹›ๅ•†้“ถ่กŒ่‚กไปฝๆœ‰้™ๅ…ฌๅธ 6711.00 7079.00 1
+ 1 2021 Q1 ่š‚่š๏ผˆๆญๅทž๏ผ‰ๅŸบ้‡‘้”€ๅ”ฎๆœ‰้™ๅ…ฌๅธ 5719.00 8901.00 2
+ 2 2021 Q1 ไธญๅ›ฝๅทฅๅ•†้“ถ่กŒ่‚กไปฝๆœ‰้™ๅ…ฌๅธ 4992.00 5366.00 3
+ 3 2021 Q1 ไธญๅ›ฝๅปบ่ฎพ้“ถ่กŒ่‚กไปฝๆœ‰้™ๅ…ฌๅธ 3794.00 4101.00 4
+ 4 2021 Q1 ไธŠๆตทๅคฉๅคฉๅŸบ้‡‘้”€ๅ”ฎๆœ‰้™ๅ…ฌๅธ 3750.00 4324.00 5
+ .. ... ... ... ... ... ...
+ 95 2021 Q1 ไธ‡่”่ฏๅˆธ่‚กไปฝๆœ‰้™ๅ…ฌๅธ 22.00 23.00 96
+ 96 2021 Q1 ๅŒ—ไบฌๅบฆๅฐๆปกๅŸบ้‡‘้”€ๅ”ฎๆœ‰้™ๅ…ฌๅธ 22.00 29.00 97
+ 97 2021 Q1 ๅคงๅŒ่ฏๅˆธๆœ‰้™่ดฃไปปๅ…ฌๅธ 22.00 25.00 98
+ 98 2021 Q1 ๅฎœไฟกๆ™ฎๆณฝ๏ผˆๅŒ—ไบฌ๏ผ‰ๅŸบ้‡‘้”€ๅ”ฎๆœ‰้™ๅ…ฌๅธ 21.00 36.00 99
+ 99 2021 Q1 ๆ’็”Ÿ้“ถ่กŒ๏ผˆไธญๅ›ฝ๏ผ‰ๆœ‰้™ๅ…ฌๅธ 20.00 22.00 100
+
+ [100 rows x 6 columns]
+
+
+
+<br>
+<br>
+
+
+ๆณจ๏ผš
+
+1ใ€่‚ก็ฅจ+ๆททๅˆๅ…ฌๅ‹ŸๅŸบ้‡‘ไฟๆœ‰่ง„ๆจก็ฒพ็กฎ่‡ณ0.01ไบฟๅ…ƒ่ฟ›่กŒๆŽ’ๅบใ€‚
+
+2ใ€่กจไธญๆ‰€่ฟฐโ€œไฟๆœ‰่ง„ๆจกโ€ๅŒ…ๆ‹ฌๅ„็ฑปๆŠ•่ต„่€…้€š่ฟ‡ๅŸบ้‡‘ไปฃ้”€ๆœบๆž„่ฎค็”ณ่ดญๅ…ฌๅ‹ŸๅŸบ้‡‘๏ผˆๅซไบคๆ˜“ๆ‰€ๅœบๅ†…ๅŸบ้‡‘๏ผ‰ๅŠๅทฒๅ‚ๅ…ฌ่ง„่Œƒ็š„ๅˆธๅ•†ๅคง้›†ๅˆไบงๅ“ๅฝขๆˆ็š„ไฟๆœ‰่ง„ๆจกใ€‚
\ No newline at end of file
diff --git a/agent/src/skills/tushare/scripts/fund_data_example.py b/agent/src/skills/tushare/scripts/fund_data_example.py
new file mode 100644
index 000000000..bc25e82b3
--- /dev/null
+++ b/agent/src/skills/tushare/scripts/fund_data_example.py
@@ -0,0 +1,87 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+ๅŸบ้‡‘ๆ•ฐๆฎ่Žทๅ–็คบไพ‹่„šๆœฌ
+"""
+
+import tushare as ts
+import pandas as pd
+import os
+
+# ่ฏปๅ–็Žฏๅขƒๅ˜้‡ไธญ็š„token, ๆˆ–่€…่ฏปๅ–ๆœฌๅœฐ่ฎฐๅฝ•็š„token
+token = os.getenv('TUSHARE_TOKEN') or ts.get_token()
+
+# ๅˆๅง‹ๅŒ–proๆŽฅๅฃ
+pro = ts.pro_api(token)
+
+
+def get_fund_list():
+ """
+ ่Žทๅ–ๅŸบ้‡‘ๅˆ—่กจ
+ """
+ try:
+ data = pro.fund_basic(market='E', status='L', fields='ts_code,fund_name,fund_type,found_date,issue_date,delist_date')
+ print("ๅŸบ้‡‘ๅˆ—่กจ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–ๅŸบ้‡‘ๅˆ—่กจๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def get_fund_nav(ts_code, start_date, end_date):
+ """
+ ่Žทๅ–ๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ
+ """
+ try:
+ data = pro.fund_nav(ts_code=ts_code, start_date=start_date, end_date=end_date)
+ print(f"{ts_code}ๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–ๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def get_fund_manager():
+ """
+ ่Žทๅ–ๅŸบ้‡‘็ป็†ๆ•ฐๆฎ
+ """
+ try:
+ data = pro.fund_manager(limit=10, fields='ts_code,fund_name,manager_name,begin_date,end_date')
+ print("ๅŸบ้‡‘็ป็†ๆ•ฐๆฎ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–ๅŸบ้‡‘็ป็†ๆ•ฐๆฎๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def main():
+ """
+ ไธปๅ‡ฝๆ•ฐ
+ """
+ print("===== tushare ๅŸบ้‡‘ๆ•ฐๆฎ่Žทๅ–็คบไพ‹ =====")
+
+ # ่Žทๅ–ๅŸบ้‡‘ๅˆ—่กจ
+ fund_list = get_fund_list()
+
+ if fund_list is not None:
+ # ่Žทๅ–็ฌฌไธ€ๅชๅŸบ้‡‘็š„ไปฃ็ 
+ ts_code = fund_list['ts_code'].iloc[0]
+ print(f"\nไฝฟ็”จๅŸบ้‡‘ไปฃ็ ๏ผš{ts_code}")
+
+ # ่Žทๅ–ๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ๏ผˆๆœ€่ฟ‘30ๅคฉ๏ผ‰
+ import datetime
+ end_date = datetime.datetime.now().strftime('%Y%m%d')
+ start_date = (datetime.datetime.now() - datetime.timedelta(days=30)).strftime('%Y%m%d')
+ print(f"\n่Žทๅ–ๅŸบ้‡‘ๅ‡€ๅ€ผๆ•ฐๆฎ๏ผš{start_date} ่‡ณ {end_date}")
+ get_fund_nav(ts_code, start_date, end_date)
+
+ # ่Žทๅ–ๅŸบ้‡‘็ป็†ๆ•ฐๆฎ
+ print("\n่Žทๅ–ๅŸบ้‡‘็ป็†ๆ•ฐๆฎ๏ผš")
+ get_fund_manager()
+
+
+if __name__ == "__main__":
+ main()
diff --git a/agent/src/skills/tushare/scripts/stock_data_example.py b/agent/src/skills/tushare/scripts/stock_data_example.py
new file mode 100644
index 000000000..e537b347b
--- /dev/null
+++ b/agent/src/skills/tushare/scripts/stock_data_example.py
@@ -0,0 +1,88 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+"""
+่‚ก็ฅจๆ•ฐๆฎ่Žทๅ–็คบไพ‹่„šๆœฌ
+"""
+
+import tushare as ts
+import pandas as pd
+import os
+
+# ่ฏปๅ–็Žฏๅขƒๅ˜้‡ไธญ็š„token, ๆˆ–่€…่ฏปๅ–ๆœฌๅœฐ่ฎฐๅฝ•็š„token
+token = os.getenv('TUSHARE_TOKEN') or ts.get_token()
+
+# ๅˆๅง‹ๅŒ–proๆŽฅๅฃ
+pro = ts.pro_api(token)
+
+
+def get_stock_list():
+ """
+ ่Žทๅ–่‚ก็ฅจๅˆ—่กจ
+ """
+ try:
+ data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
+ print("่‚ก็ฅจๅˆ—่กจ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–่‚ก็ฅจๅˆ—่กจๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def get_daily_data(ts_code, start_date, end_date):
+ """
+ ่Žทๅ–่‚ก็ฅจๆ—ฅ็บฟๆ•ฐๆฎ
+ """
+ try:
+ data = pro.daily(ts_code=ts_code, start_date=start_date, end_date=end_date)
+ print(f"{ts_code}ๆ—ฅ็บฟๆ•ฐๆฎ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–ๆ—ฅ็บฟๆ•ฐๆฎๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def get_financial_data(ts_code, year, quarter):
+ """
+ ่Žทๅ–่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ
+ """
+ try:
+ data = pro.fina_indicator(ts_code=ts_code, year=year, quarter=quarter)
+ print(f"{ts_code}่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎ่Žทๅ–ๆˆๅŠŸ๏ผš")
+ print(data.head())
+ return data
+ except Exception as e:
+ print(f"่Žทๅ–่ดขๅŠกๆŒ‡ๆ ‡ๆ•ฐๆฎๅคฑ่ดฅ๏ผš{e}")
+ return None
+
+
+def main():
+ """
+ ไธปๅ‡ฝๆ•ฐ
+ """
+ print("===== tushare ่‚ก็ฅจๆ•ฐๆฎ่Žทๅ–็คบไพ‹ =====")
+
+ # ่Žทๅ–่‚ก็ฅจๅˆ—่กจ
+ stock_list = get_stock_list()
+
+ if stock_list is not None:
+ # ่Žทๅ–็ฌฌไธ€ๅช่‚ก็ฅจ็š„ไปฃ็ 
+ ts_code = stock_list['ts_code'].iloc[0]
+ print(f"\nไฝฟ็”จ่‚ก็ฅจไปฃ็ ๏ผš{ts_code}")
+
+ # ่Žทๅ–ๆ—ฅ็บฟๆ•ฐๆฎ๏ผˆๆœ€่ฟ‘30ๅคฉ๏ผ‰
+ import datetime
+ end_date = datetime.datetime.now().strftime('%Y%m%d')
+ start_date = (datetime.datetime.now() - datetime.timedelta(days=30)).strftime('%Y%m%d')
+ print(f"\n่Žทๅ–ๆ—ฅ็บฟๆ•ฐๆฎ๏ผš{start_date} ่‡ณ {end_date}")
+ get_daily_data(ts_code, start_date, end_date)
+
+ # ่Žทๅ–่ดขๅŠกๆ•ฐๆฎ๏ผˆๆœ€่ฟ‘ไธ€ๅนด๏ผ‰
+ current_year = datetime.datetime.now().year
+ print(f"\n่Žทๅ–่ดขๅŠกๆ•ฐๆฎ๏ผš{current_year-1}ๅนด ็ฌฌ4ๅญฃๅบฆ")
+ get_financial_data(ts_code, current_year-1, 4)
+
+
+if __name__ == "__main__":
+ main()
diff --git a/agent/src/skills/us-etf-flow/SKILL.md b/agent/src/skills/us-etf-flow/SKILL.md
new file mode 100644
index 000000000..6b525c8c0
--- /dev/null
+++ b/agent/src/skills/us-etf-flow/SKILL.md
@@ -0,0 +1,271 @@
+---
+name: us-etf-flow
+description: US ETF fund flow analysis, sector rotation breadth, and style factor flows โ€” track institutional capital movement via ETF creation/redemption, sector breadth signals, and thematic momentum.
+---
+# US ETF Flow & Sector Breadth Analysis
+
+## Overview
+
+Track capital flows through US ETFs to identify institutional positioning, sector rotation trends, and risk appetite shifts. ETF flows are a real-time proxy for institutional capital allocation โ€” unlike 13F filings (45-day lag), ETF creation/redemption data is available daily.
+
+## Core Concepts
+
+### 1. ETF Flow Mechanics
+
+**Creation / Redemption process:**
+- **Inflows (creation)**: Authorized Participants (APs) deliver baskets of underlying securities to the ETF issuer โ†’ receive new ETF shares โ†’ sell on exchange. This happens when ETF trades at a premium to NAV.
+- **Outflows (redemption)**: APs buy ETF shares on exchange โ†’ redeem with issuer for underlying securities โ†’ sell securities. This happens when ETF trades at a discount to NAV.
+- **Signal interpretation**: sustained large inflows = institutional demand; sustained large outflows = institutional liquidation.
+
+**Key distinction:**
+- ETF price movement โ‰  ETF flow. Price can rise on low volume (momentum). Flows require actual capital commitment.
+- Flows are a **quantity** signal (how much money is moving), not a **price** signal.
+
+### 2. Major ETF Flow Categories
+
+#### Broad Market ETFs
+
+| ETF | Tracking Index | AUM | Flow Signal |
+|-----|---------------|-----|-------------|
+| SPY | S&P 500 | ~$500B | Broadest equity risk appetite |
+| IVV | S&P 500 | ~$400B | Long-term institutional allocation |
+| VOO | S&P 500 | ~$400B | Retail + advisor allocation |
+| QQQ | Nasdaq 100 | ~$250B | Tech / growth appetite |
+| IWM | Russell 2000 | ~$60B | Small-cap risk appetite |
+| DIA | Dow Jones 30 | ~$30B | Value / blue-chip sentiment |
+
+**Interpretation rules:**
+```python
+# Broad market flow signals
+if spy_flow > 0 and iwm_flow > 0:
+ signal = "risk_on" # Both large and small cap getting inflows
+elif spy_flow > 0 and iwm_flow < 0:
+ signal = "quality_flight" # Money rotating to large-cap safety
+elif spy_flow < 0 and iwm_flow < 0:
+ signal = "risk_off" # Broad equity outflows
+elif spy_flow < 0 and iwm_flow > 0:
+ signal = "risk_seeking" # Rotation from large to small (rare, usually early cycle)
+```
+
+#### Sector ETFs (SPDR Select Sector)
+
+| ETF | Sector | Economic Sensitivity | Cycle Phase |
+|-----|--------|---------------------|-------------|
+| XLK | Technology | Growth / late cycle | Expansion |
+| XLF | Financials | Rate sensitive | Early recovery |
+| XLE | Energy | Commodity linked | Late cycle / inflation |
+| XLV | Healthcare | Defensive | Recession |
+| XLY | Consumer Discretionary | Cyclical | Recovery |
+| XLP | Consumer Staples | Defensive | Recession |
+| XLI | Industrials | Cyclical | Early expansion |
+| XLU | Utilities | Defensive / rate sensitive | Late cycle / recession |
+| XLB | Materials | Commodity linked | Early cycle |
+| XLRE | Real Estate | Rate sensitive | Rate-cut cycle |
+| XLC | Communication Services | Growth (META, GOOGL) | Expansion |
+
+#### Style & Factor ETFs
+
+| ETF | Factor | Signal |
+|-----|--------|--------|
+| IVW / SPYG | S&P 500 Growth | Growth appetite |
+| IVE / SPYV | S&P 500 Value | Value rotation |
+| MTUM | MSCI USA Momentum | Trend following |
+| QUAL | MSCI USA Quality | Quality flight |
+| USMV / SPLV | Min Volatility | Defensive positioning |
+| SIZE | MSCI USA Size | Small-cap factor |
+
+#### Fixed Income ETFs
+
+| ETF | Segment | Signal |
+|-----|---------|--------|
+| TLT | 20+ Year Treasury | Duration / rate expectations |
+| IEF | 7-10 Year Treasury | Intermediate rate view |
+| SHY | 1-3 Year Treasury | Cash proxy / safe haven |
+| LQD | Investment Grade Corp | Credit appetite |
+| HYG / JNK | High Yield Corp | Risk appetite / credit cycle |
+| TIP | TIPS | Inflation expectations |
+| EMB | EM Sovereign Debt | EM risk appetite |
+
+### 3. Sector Rotation Signals
+
+**Sector breadth analysis:**
+```python
+# Sector breadth = number of sectors with positive flows / total sectors
+sector_flows = {
+ "XLK": +500, # $500M inflow
+ "XLF": +200,
+ "XLE": -100,
+ "XLV": +50,
+ "XLY": -300,
+ "XLP": +100,
+ "XLI": +150,
+ "XLU": -50,
+ "XLB": +80,
+ "XLRE": -200,
+ "XLC": +300,
+}
+
+positive_sectors = sum(1 for v in sector_flows.values() if v > 0)
+breadth = positive_sectors / len(sector_flows)
+
+# Interpretation
+# breadth > 0.7: broad-based inflows โ†’ healthy bull market
+# breadth 0.4-0.7: selective rotation โ†’ stock/sector picker's market
+# breadth < 0.4: broad outflows โ†’ risk-off environment
+```
+
+**Cyclical vs Defensive ratio:**
+```python
+cyclical = ["XLK", "XLY", "XLI", "XLF", "XLB"]
+defensive = ["XLV", "XLP", "XLU", "XLRE"]
+
+cyclical_flow = sum(sector_flows[s] for s in cyclical)
+defensive_flow = sum(sector_flows[s] for s in defensive)
+
+ratio = cyclical_flow / (cyclical_flow + defensive_flow + 1e-10)
+
+# ratio > 0.65: strong risk-on, cyclical leadership
+# ratio 0.4-0.65: balanced
+# ratio < 0.4: defensive rotation, risk-off
+```
+
+### 4. Thematic ETF Flows
+
+**Growth / innovation themes:**
+
+| Theme | Key ETFs | What It Tracks |
+|-------|----------|---------------|
+| AI / Semiconductors | SMH, SOXX, BOTZ | AI capex cycle |
+| Clean Energy | ICLN, TAN, QCLN | Energy transition spend |
+| Biotech | XBI, IBB | Pharma pipeline / M&A cycle |
+| Cybersecurity | CIBR, HACK | Security spending cycle |
+| China Internet | KWEB, FXI | China tech sentiment |
+| India | INDA, SMIN | India growth allocation |
+| Emerging Markets | EEM, VWO | EM risk appetite |
+| Gold Miners | GDX, GDXJ | Gold price leverage play |
+| Bitcoin | IBIT, FBTC | Crypto institutional adoption |
+
+**Thematic flow interpretation:**
+- Sustained 4-week+ inflows into a theme = institutional conviction, not just hot money
+- Sudden large outflows from a theme that was trending = crowded trade unwind risk
+- Divergence between thematic ETF flow and underlying asset price = potential inflection
+
+### 5. Flow-Based Trading Signals
+
+**Signal construction:**
+
+```python
+def etf_flow_signal(ticker, lookback_days=20):
+ """
+ Generate trading signal from ETF flow data.
+ """
+ # Cumulative flow over lookback period
+ cum_flow = sum(daily_flows[ticker][-lookback_days:])
+
+ # Flow as % of AUM (normalized)
+ flow_pct = cum_flow / aum[ticker]
+
+ # Flow momentum: recent 5-day vs prior 15-day
+ recent = sum(daily_flows[ticker][-5:])
+ prior = sum(daily_flows[ticker][-20:-5])
+ momentum = recent - prior
+
+ # Signal
+ if flow_pct > 0.02 and momentum > 0:
+ return "strong_inflow" # Sustained and accelerating
+ elif flow_pct > 0.01:
+ return "mild_inflow" # Positive but not accelerating
+ elif flow_pct < -0.02 and momentum < 0:
+ return "strong_outflow" # Sustained and accelerating outflows
+ elif flow_pct < -0.01:
+ return "mild_outflow"
+ else:
+ return "neutral"
+```
+
+**Contrarian vs momentum flow signals:**
+- **Momentum** (follow the flow): works best for broad market ETFs (SPY, QQQ) during trending markets
+- **Contrarian** (fade extreme flows): works best for sector/thematic ETFs at extreme levels
+- **Rule of thumb**: 3-standard-deviation flow events in sector ETFs tend to mean-revert within 2-4 weeks
+
+## Data Access
+
+### Via yfinance
+
+```python
+import yfinance as yf
+
+# ETF price and volume data
+etf = yf.download("SPY", start="2025-01-01", end="2026-03-30", progress=False)
+
+# ETF info (AUM, expense ratio, holdings)
+spy = yf.Ticker("SPY")
+info = spy.info
+print(f"AUM: {info.get('totalAssets')}")
+print(f"Expense ratio: {info.get('annualReportExpenseRatio')}")
+
+# Sector weights (for sector ETFs)
+# Not directly available via yfinance; use web scraping or manual input
+```
+
+### Flow Data Sources
+
+| Source | Access | Coverage | Latency |
+|--------|--------|----------|---------|
+| ETF.com | Free (web) | US ETFs | T+1 |
+| Bloomberg Terminal | Paid | Global ETFs | Real-time |
+| ICI (Investment Company Institute) | Free (weekly) | US mutual fund + ETF aggregate | T+7 |
+| ETF Database (etfdb.com) | Free (web) | US ETFs | T+1 |
+| VettaFi | Free (web) | US ETFs | T+1 |
+
+## Output Format
+
+```
+## ETF Flow Analysis โ€” [Date Range]
+
+### Broad Market Flows
+- **SPY**: [+/- $X.XB over N days] โ€” [risk-on / risk-off signal]
+- **QQQ**: [+/- $X.XB] โ€” [tech appetite]
+- **IWM**: [+/- $X.XB] โ€” [small-cap sentiment]
+- **Overall**: [risk-on / selective / risk-off]
+
+### Sector Rotation
+- **Inflow leaders**: [sector1 +$XM, sector2 +$XM]
+- **Outflow leaders**: [sector1 -$XM, sector2 -$XM]
+- **Breadth**: X/11 sectors with positive flows
+- **Cyclical/Defensive ratio**: X.XX [risk-on / balanced / defensive]
+
+### Style Factor Flows
+- **Growth vs Value**: [growth leading / value leading / balanced]
+- **Momentum**: [inflow / outflow]
+- **Quality/MinVol**: [inflow = defensive, outflow = risk-on]
+
+### Fixed Income Flows
+- **Duration signal**: TLT [inflow/outflow] โ†’ [rate cut expectations / rate concern]
+- **Credit signal**: HYG [inflow/outflow] โ†’ [credit cycle expansion / contraction]
+- **Inflation signal**: TIP [inflow/outflow] โ†’ [rising / falling inflation expectations]
+
+### Thematic Highlights
+- [Theme1 ETF]: [flow trend and implication]
+- [Theme2 ETF]: [flow trend and implication]
+
+### Composite Signal
+| Dimension | Signal | Basis |
+|-----------|--------|-------|
+| Risk appetite | [on/off] | SPY+QQQ flows, C/D ratio |
+| Sector rotation | [early/mid/late cycle] | Sector flow pattern |
+| Rate expectations | [cuts/hold/hikes] | TLT + TIP flows |
+
+### Investment Implication
+- **Positioning**: [overweight equities / neutral / underweight]
+- **Sector tilts**: [overweight X, underweight Y]
+- **Risk level**: [high / moderate / low]
+```
+
+## Notes
+
+- ETF flows are a proxy for institutional behavior, not a standalone signal; combine with price action and fundamentals
+- Large single-day flows can be rebalancing-driven (quarter-end, index reconstitution) rather than directional
+- Options-related ETF activity (hedging via SPY puts) can distort flow signals
+- International ETF flows (EEM, FXI, INDA) are useful for global macro positioning
+- This framework is for research purposes only and does not constitute investment advice
diff --git a/agent/src/skills/valuation-model/SKILL.md b/agent/src/skills/valuation-model/SKILL.md
new file mode 100644
index 000000000..72cf904db
--- /dev/null
+++ b/agent/src/skills/valuation-model/SKILL.md
@@ -0,0 +1,259 @@
+---
+name: valuation-model
+description: Valuation methodology โ€” absolute valuation with DCF / DDM / SOTP, relative valuation with PE-Band / PB-ROE / EV-EBITDA, sensitivity analysis, and valuation-trap detection.
+---
+
+# Valuation Methodology
+
+## Overview
+
+Systematic corporate valuation framework covering absolute valuation (`DCF / DDM / SOTP`) and relative valuation (`PE / PB / EV-EBITDA`), including sensitivity-analysis methods and a checklist for identifying valuation traps.
+
+## Absolute Valuation Methods
+
+### 1. DCF (Discounted Cash Flow)
+
+**Core formulas**:
+
+```
+Enterprise value = ฮฃ FCF_t / (1+WACC)^t + TV / (1+WACC)^n
+Equity value = enterprise value - net debt
+Per-share value = equity value / total shares outstanding
+```
+
+**Detailed steps**:
+
+#### Step 1: Forecast free cash flow (usually 5 years)
+
+```
+FCFF = EBIT ร— (1-tax rate) + depreciation & amortization - capex - increase in working capital
+
+Simplified version:
+FCFF โ‰ˆ operating cash flow - capex
+```
+
+| Year | Revenue (100m RMB) | EBIT (100m RMB) | FCFF (100m RMB) | Growth |
+|------|---------|---------|---------|------|
+| 2026E | 120 | 24 | 18 | +15% |
+| 2027E | 138 | 28 | 21 | +15% |
+| 2028E | 155 | 31 | 24 | +12% |
+| 2029E | 170 | 34 | 26 | +10% |
+| 2030E | 182 | 36 | 28 | +7% |
+
+#### Step 2: Calculate WACC
+
+```
+WACC = E/(D+E) ร— Ke + D/(D+E) ร— Kd ร— (1-T)
+
+Ke (cost of equity) = Rf + ฮฒ ร— (Rm - Rf)
+ - Rf: 10-year government bond yield (about 2.5% for China A-shares)
+ - ฮฒ: industry average or company beta (1.0-1.5)
+ - Rm-Rf: equity risk premium (about 5-7% for China A-shares)
+
+Kd: cost of debt (loan rate, about 4-5%)
+T: income tax rate (25%)
+```
+
+**Reference WACC ranges for China A-shares**:
+
+| Industry | WACC Range | Reference ฮฒ |
+|------|---------|------|
+| Consumer | 8-10% | 0.8-1.0 |
+| Technology | 10-13% | 1.2-1.5 |
+| Financials | 7-9% | 1.0-1.2 |
+| Cyclicals | 9-12% | 1.0-1.4 |
+| Utilities | 6-8% | 0.5-0.8 |
+
+#### Step 3: Terminal Value
+
+```
+Perpetual-growth method: TV = FCF_n ร— (1+g) / (WACC - g)
+ - g: perpetual growth rate (usually 2-3%, should not exceed GDP growth)
+
+Exit-multiple method: TV = EBITDA_n ร— EV/EBITDA multiple
+ - Reference the industry average or historical median
+```
+
+#### Step 4: Sensitivity Analysis
+
+```markdown
+### DCF Sensitivity Analysis (per-share value, RMB)
+
+| WACC \ g | 2.0% | 2.5% | 3.0% |
+|----------|------|------|------|
+| 9.0% | 32.5 | 35.8 | 40.2 |
+| 9.5% | 28.3 | 30.8 | 34.0 |
+| 10.0% | 24.8 | 26.7 | 29.1 |
+| 10.5% | 22.0 | 23.5 | 25.3 |
+| 11.0% | 19.6 | 20.8 | 22.2 |
+```
+
+### 2. DDM (Dividend Discount Model)
+
+**Applicable to**: high-dividend stocks (banks, utilities, mature consumer companies).
+
+```
+Two-stage DDM:
+P = ฮฃ D_t / (1+Ke)^t + D_n ร— (1+g) / [(Ke-g) ร— (1+Ke)^n]
+
+Gordon model (single stage):
+P = D_1 / (Ke - g)
+```
+
+**Applicability checklist**:
+- [x] Has paid dividends continuously for more than 3 years
+- [x] Stable payout ratio (>30%)
+- [x] Strong earnings predictability
+- [ ] Usually not suitable for high-growth stocks (no dividends / low payout)
+
+### 3. SOTP (Sum of the Parts)
+
+**Applicable to**: diversified conglomerates.
+
+```
+Group value = ฮฃ valuation of each business segment + net cash - holding-company discount
+
+Example (a group company):
+| Segment | Revenue (100m RMB) | Valuation Method | Valuation (100m RMB) |
+|------|---------|---------|---------|
+| Baijiu | 80 | 30x PE | 600 |
+| Real estate | 50 | 0.6x PB | 120 |
+| Financials | 30 | 1.0x PB | 200 |
+| Total | | | 920 |
+| Holding-company discount | | -15% | -138 |
+| Group valuation | | | 782 |
+```
+
+## Relative Valuation Methods
+
+### 1. PE Band
+
+```
+Historical PE percentile analysis:
+- Take the past 5 years of PE_TTM time series
+- Compute the 10% / 25% / 50% / 75% / 90% percentiles
+- Judge overvaluation / undervaluation from the current PE percentile
+
+| Percentile | PE | Implied Price | Interpretation |
+|------|-----|---------|------|
+| 90% | 35x | 52.5 | Severely overvalued |
+| 75% | 28x | 42.0 | Rich |
+| 50% | 22x | 33.0 | Fair |
+| 25% | 16x | 24.0 | Cheap |
+| 10% | 12x | 18.0 | Severely undervalued |
+| Current | 18x | 27.0 | Cheap (30th percentile) |
+```
+
+### 2. PB-ROE Matrix
+
+```
+Theoretical relationship: PB = (ROE - g) / (Ke - g)
+Practical use: plot companies in the industry on a PB vs ROE scatter chart
+
+| Quadrant | PB | ROE | Interpretation |
+|------|-----|-----|------|
+| Lower right | Low PB | High ROE | Undervalued (best buy zone) |
+| Upper right | High PB | High ROE | Fair (quality premium) |
+| Lower left | Low PB | Low ROE | Value trap or distressed turnaround |
+| Upper left | High PB | Low ROE | Overvalued (avoid) |
+```
+
+### 3. EV/EBITDA
+
+```
+EV = market cap + net debt (interest-bearing debt - cash)
+EBITDA = operating profit + depreciation + amortization
+
+Advantages:
+- Removes capital-structure differences (vs PE)
+- Removes depreciation-policy differences
+- Suitable for asset-heavy industries (telecom / energy / infrastructure)
+
+Reference EV/EBITDA ranges by China A-share industry:
+| Industry | Median | Undervalued | Overvalued |
+|------|--------|------|------|
+| Consumer | 15-20x | <12x | >25x |
+| Technology | 12-18x | <10x | >22x |
+| Energy | 6-10x | <5x | >12x |
+| Utilities | 8-12x | <6x | >15x |
+```
+
+## Valuation-Trap Detection
+
+### Top 10 Valuation Traps
+
+| # | Trap | Detection Method | Typical Example |
+|---|------|---------|---------|
+| 1 | Low-PE cyclical at the peak | PE is lowest when earnings are highest and about to fall | Coal at 5x PE in 2021 was the top |
+| 2 | High-PE growth can be justified | `PEG < 1` means the growth rate supports the valuation | 30x PE + 40% growth = PEG 0.75 |
+| 3 | Low-PB value destruction | Sustained `ROE < Ke` means shareholder value is being destroyed | Long-term loss-making asset-heavy company |
+| 4 | Goodwill bomb | Goodwill / net assets >30% implies impairment risk | Underperforming acquisition after paying a high premium |
+| 5 | Accounts-receivable trap | Rising receivables / revenue ratio = poor revenue quality | Government receivables + high customer concentration |
+| 6 | Capitalization trap | Capitalizing R&D / interest flatters profit | PE doubles after true expensing |
+| 7 | One-off gains | Large gap between recurring net profit and reported net profit | Asset sales / government subsidies boost earnings |
+| 8 | Share dilution | Stock options / convertible bonds reduce EPS | PE should be based on diluted EPS |
+| 9 | Related-party transactions | Buy cheap from related parties / sell high to them | Profit shifted outside the listed entity |
+| 10 | FX swings | High overseas-revenue share means large currency sensitivity | RMB appreciation erodes exporter profits |
+
+## Analysis Framework
+
+### Valuation-Method Selection Decision Tree
+
+```
+What type of company is it?
+โ”œโ”€โ”€ Mature and stable (consumer / utilities / banks)
+โ”‚ โ”œโ”€โ”€ High dividend -> DDM
+โ”‚ โ””โ”€โ”€ Low dividend -> DCF + PE Band
+โ”œโ”€โ”€ High growth (tech / pharma / new energy)
+โ”‚ โ””โ”€โ”€ DCF (high-growth phase) + PEG + PS
+โ”œโ”€โ”€ Cyclical (coal / steel / nonferrous)
+โ”‚ โ””โ”€โ”€ PB + EV/EBITDA (avoid PE)
+โ”œโ”€โ”€ Diversified conglomerate
+โ”‚ โ””โ”€โ”€ SOTP
+โ””โ”€โ”€ Loss-making company
+ โ””โ”€โ”€ PS (price-to-sales) + EV/Sales
+```
+
+### Cross-Validation
+
+```
+Use at least 2 valuation methods and take the middle value:
+1. DCF -> intrinsic value
+2. Comparable PE -> market pricing
+3. If the difference >30% -> check whether assumptions are reasonable
+```
+
+## Output Format
+
+```markdown
+## Valuation Analysis: [Company Name / Code]
+
+### Valuation Summary
+| Method | Per-Share Value | Weight | Notes |
+|------|---------|------|------|
+| DCF | ยฅ32.5 | 50% | WACC=10%, g=2.5% |
+| Comparable PE | ยฅ28.0 | 30% | Industry average 22x, EPS=1.27 |
+| PB-ROE | ยฅ30.0 | 20% | Fair PB=2.5x |
+| **Composite Target Price** | **ยฅ30.8** | | Current price 25.0, upside +23% |
+
+### Sensitivity Analysis
+[WACC vs growth-rate matrix]
+
+### Valuation-Trap Check
+- [x] Is PE a falsely low cyclical peak? -> No
+- [x] Goodwill / net asset ratio -> 12%, safe
+- [x] Receivables / revenue trend -> Stable, not deteriorating
+- [ ] Gap in recurring net profit -> 15% difference, subsidy dependence worth attention
+
+### Investment Rating: Buy
+Target price ยฅ30.8, current price ยฅ25.0, upside 23%
+```
+
+## Notes
+
+1. **DCF is highly sensitive to assumptions**: a 1% change in WACC can move valuation by 20%+, so sensitivity analysis is mandatory
+2. **Comparable companies must truly be comparable**: same industry + same scale + same stage; do not apply leader PE multiples to small companies
+3. **China A-share valuation system is unique**: shell value / liquidity premium / policy premium mean US-equity standards cannot be copied directly
+4. **Valuation is not a target price**: markets can remain irrational for a long time, and valuation is an anchor, not a trading signal
+5. **Special handling for cyclicals**: use normalized earnings (mid-cycle earnings), not current earnings
+6. **Not suitable for cryptocurrencies**: traditional valuation frameworks do not apply to BTC / ETH; use on-chain metrics instead (see `onchain-analysis`)
diff --git a/agent/src/skills/volatility/SKILL.md b/agent/src/skills/volatility/SKILL.md
new file mode 100644
index 000000000..3ae01da2c
--- /dev/null
+++ b/agent/src/skills/volatility/SKILL.md
@@ -0,0 +1,50 @@
+---
+name: volatility
+description: Volatility strategy. Trades mean reversion based on percentile ranking of historical volatility (HV). Suitable for any OHLCV data.
+---
+# Volatility Strategy
+
+## Purpose
+
+Uses percentile ranking of historical volatility (HV) to capture volatility mean reversion: build positions in low-volatility regimes while waiting for volatility expansion, and exit or short in high-volatility regimes to capture contraction.
+
+## Signal Logic
+
+1. **Compute HV**: annualized standard deviation of returns over the past `hv_window` days
+2. **Percentile ranking**: percentile position of HV within the past `lookback` days (0-100)
+3. **Signal generation**:
+ - Percentile < `low_pct` โ†’ go long (volatility is low, waiting for expansion)
+ - Percentile > `high_pct` โ†’ exit / go short (volatility is high, waiting for contraction)
+ - Middle region โ†’ keep the current position
+
+## Key Implementation Details
+
+- HV = `returns.rolling(hv_window).std() * sqrt(252)` (annualized)
+- Percentile = `hv.rolling(lookback).rank(pct=True) * 100`
+- For cryptocurrencies, use 365 instead of 252 as the annualization factor
+
+## Parameters
+
+| Parameter | Default | Description |
+|------|--------|------|
+| hv_window | 20 | Historical volatility calculation window |
+| lookback | 120 | Lookback period for percentile ranking |
+| low_pct | 20.0 | Low-volatility threshold (percentile) |
+| high_pct | 80.0 | High-volatility threshold (percentile) |
+| annualize | 252 | Annualization factor (252 for China A-shares, 365 for crypto) |
+
+## Common Pitfalls
+
+- Before the lookback window is filled, there is not enough data to compute percentiles, so the signal should be 0 (`fillna`)
+- Volatility is not direction. Going long in low-volatility regimes does not guarantee price appreciation; it only means volatility expansion is statistically more likely
+- Cryptocurrencies trade 7x24, so `annualize` should be set to 365
+
+## Dependencies
+
+```bash
+pip install pandas numpy
+```
+
+## Signal Convention
+
+- `1` = long (low-volatility regime), `-1` = short (high-volatility regime), `0` = stand aside
diff --git a/agent/src/skills/volatility/example_signal_engine.py b/agent/src/skills/volatility/example_signal_engine.py
new file mode 100644
index 000000000..98a840917
--- /dev/null
+++ b/agent/src/skills/volatility/example_signal_engine.py
@@ -0,0 +1,162 @@
+"""ๆณขๅŠจ็އ็ญ–็•ฅไฟกๅทๅผ•ๆ“Žใ€‚
+
+ๅŸบไบŽๅކๅฒๆณขๅŠจ็އ๏ผˆHV๏ผ‰็™พๅˆ†ไฝๆŽ’ๅ่ฟ›่กŒๅ‡ๅ€ผๅ›žๅฝ’ไบคๆ˜“๏ผš
+ไฝŽๆณขๅŒบ้—ดๅšๅคš็ญ‰ๅพ…ๆ‰ฉๅผ ๏ผŒ้ซ˜ๆณขๅŒบ้—ดๅš็ฉบ็ญ‰ๅพ…ๆ”ถ็ผฉใ€‚็บฏ pandas ๅฎž็Žฐใ€‚
+"""
+
+from typing import Dict
+
+import numpy as np
+import pandas as pd
+
+
+def compute_hv(close: pd.Series, window: int = 20, annualize: int = 252) -> pd.Series:
+ """่ฎก็ฎ—ๅนดๅŒ–ๅކๅฒๆณขๅŠจ็އใ€‚
+
+ Args:
+ close: ๆ”ถ็›˜ไปทๅบๅˆ—ใ€‚
+ window: ๆณขๅŠจ็އ่ฎก็ฎ—็ช—ๅฃใ€‚
+ annualize: ๅนดๅŒ–็ณปๆ•ฐ๏ผˆA่‚ก252๏ผŒๅŠ ๅฏ†365๏ผ‰ใ€‚
+
+ Returns:
+ ๅนดๅŒ–ๅކๅฒๆณขๅŠจ็އๅบๅˆ—ใ€‚
+ """
+ returns = close.pct_change()
+ return returns.rolling(window).std() * np.sqrt(annualize)
+
+
+def compute_hv_percentile(hv: pd.Series, lookback: int = 120) -> pd.Series:
+ """่ฎก็ฎ— HV ็š„ๆปšๅŠจ็™พๅˆ†ไฝๆŽ’ๅใ€‚
+
+ Args:
+ hv: ๅކๅฒๆณขๅŠจ็އๅบๅˆ—ใ€‚
+ lookback: ็™พๅˆ†ไฝๆŽ’ๅๅ›ž็œ‹ๆœŸใ€‚
+
+ Returns:
+ ็™พๅˆ†ไฝๅ€ผ๏ผˆ0-100๏ผ‰ใ€‚
+ """
+ return hv.rolling(lookback).rank(pct=True) * 100
+
+
+class SignalEngine:
+ """ๆณขๅŠจ็އๅ‡ๅ€ผๅ›žๅฝ’ไฟกๅทๅผ•ๆ“Žใ€‚
+
+ ่ฎก็ฎ—ๅކๅฒๆณขๅŠจ็އ็š„็™พๅˆ†ไฝๆŽ’ๅ๏ผŒไฝŽๆณขๅšๅคšใ€้ซ˜ๆณขๅš็ฉบใ€‚
+
+ Attributes:
+ hv_window: HV ่ฎก็ฎ—็ช—ๅฃใ€‚
+ lookback: ็™พๅˆ†ไฝๆŽ’ๅๅ›ž็œ‹ๆœŸใ€‚
+ low_pct: ไฝŽๆณข้˜ˆๅ€ผ๏ผˆ็™พๅˆ†ไฝ๏ผ‰ใ€‚
+ high_pct: ้ซ˜ๆณข้˜ˆๅ€ผ๏ผˆ็™พๅˆ†ไฝ๏ผ‰ใ€‚
+ annualize: ๅนดๅŒ–็ณปๆ•ฐใ€‚
+
+ Example:
+ >>> engine = SignalEngine(hv_window=20, lookback=120)
+ >>> signals = engine.generate({"BTC-USDT": df})
+ >>> signals["BTC-USDT"].value_counts()
+ """
+
+ def __init__(
+ self,
+ hv_window: int = 20,
+ lookback: int = 120,
+ low_pct: float = 20.0,
+ high_pct: float = 80.0,
+ annualize: int = 252,
+ ):
+ """ๅˆๅง‹ๅŒ–ๆณขๅŠจ็އๅผ•ๆ“Žใ€‚
+
+ Args:
+ hv_window: HV ่ฎก็ฎ—็ช—ๅฃใ€‚
+ lookback: ็™พๅˆ†ไฝๆŽ’ๅๅ›ž็œ‹ๆœŸใ€‚
+ low_pct: ไฝŽๆณข้˜ˆๅ€ผ๏ผˆ็™พๅˆ†ไฝ๏ผ‰ใ€‚
+ high_pct: ้ซ˜ๆณข้˜ˆๅ€ผ๏ผˆ็™พๅˆ†ไฝ๏ผ‰ใ€‚
+ annualize: ๅนดๅŒ–็ณปๆ•ฐ๏ผˆA่‚ก252๏ผŒๅŠ ๅฏ†365๏ผ‰ใ€‚
+ """
+ self.hv_window = hv_window
+ self.lookback = lookback
+ self.low_pct = low_pct
+ self.high_pct = high_pct
+ self.annualize = annualize
+
+ def generate(self, data_map: Dict[str, pd.DataFrame]) -> Dict[str, pd.Series]:
+ """ๆ นๆฎๆณขๅŠจ็އ็™พๅˆ†ไฝ็”Ÿๆˆไบคๆ˜“ไฟกๅทใ€‚
+
+ Args:
+ data_map: ๆ ‡็š„ไปฃ็ ๅˆฐ OHLCV DataFrame ็š„ๆ˜ ๅฐ„ใ€‚
+
+ Returns:
+ ๆ ‡็š„ไปฃ็ ๅˆฐไฟกๅท Series ็š„ๆ˜ ๅฐ„๏ผˆ1=ๅšๅคš, -1=ๅš็ฉบ, 0=่ง‚ๆœ›๏ผ‰ใ€‚
+ """
+ result = {}
+ for code, df in data_map.items():
+ result[code] = self._generate_one(df)
+ return result
+
+ def _generate_one(self, df: pd.DataFrame) -> pd.Series:
+ """ๅฏนๅ•ไธชๆ ‡็š„็”ŸๆˆๆณขๅŠจ็އไฟกๅทใ€‚
+
+ Args:
+ df: OHLCV DataFrameใ€‚
+
+ Returns:
+ ไฟกๅท Seriesใ€‚
+ """
+ close = df["close"]
+ hv = compute_hv(close, self.hv_window, self.annualize)
+ pct = compute_hv_percentile(hv, self.lookback)
+
+ signal = pd.Series(0, index=df.index)
+ signal[pct < self.low_pct] = 1 # ไฝŽๆณขๅšๅคš
+ signal[pct > self.high_pct] = -1 # ้ซ˜ๆณขๅš็ฉบ
+ return signal.fillna(0).astype(int)
+
+
+if __name__ == "__main__":
+ import requests
+
+ def _fetch_okx(inst_id: str, bar: str = "1D", limit: int = 300) -> pd.DataFrame:
+ """ไปŽ OKX API ่Žทๅ– K ็บฟๆ•ฐๆฎใ€‚
+
+ Args:
+ inst_id: ไบคๆ˜“ๅฏนๆ ‡่ฏ†๏ผŒๅฆ‚ "BTC-USDT"ใ€‚
+ bar: K ็บฟๅ‘จๆœŸใ€‚
+ limit: ่Žทๅ–ๆ นๆ•ฐใ€‚
+
+ Returns:
+ OHLCV DataFrameใ€‚
+ """
+ resp = requests.get(
+ "https://www.okx.com/api/v5/market/candles",
+ params={"instId": inst_id, "bar": bar, "limit": str(limit)},
+ )
+ candles = resp.json()["data"]
+ columns = ["ts", "open", "high", "low", "close", "vol", "volCcy", "volCcyQuote", "confirm"]
+ df = pd.DataFrame(reversed(candles), columns=columns)
+ df["ts"] = pd.to_datetime(df["ts"].astype("int64"), unit="ms")
+ df = df.set_index("ts")
+ for col in ["open", "high", "low", "close"]:
+ df[col] = df[col].astype(float)
+ df["volume"] = df["vol"].astype(float)
+ return df
+
+ symbols = ["BTC-USDT", "ETH-USDT", "SOL-USDT"]
+ data_map = {}
+ for sym in symbols:
+ print(f"Fetching {sym} ...")
+ data_map[sym] = _fetch_okx(sym, bar="1D", limit=300)
+
+ # ๅŠ ๅฏ†่ดงๅธ็”จ 365 ๅนดๅŒ–
+ engine = SignalEngine(hv_window=20, lookback=120, annualize=365)
+ signals = engine.generate(data_map)
+
+ for sym in symbols:
+ sig = signals[sym]
+ hv = compute_hv(data_map[sym]["close"], 20, 365)
+ pct = compute_hv_percentile(hv, 120)
+ print(f"\n{sym} ({len(sig)} bars)")
+ print(f" Current HV(20): {hv.iloc[-1]:.1%}")
+ print(f" HV Percentile: {pct.iloc[-1]:.0f}%")
+ print(f" Buy signals: {(sig == 1).sum()}")
+ print(f" Sell signals: {(sig == -1).sum()}")
+ print(f" Neutral: {(sig == 0).sum()}")
diff --git a/agent/src/skills/web-reader/SKILL.md b/agent/src/skills/web-reader/SKILL.md
new file mode 100644
index 000000000..f621a59aa
--- /dev/null
+++ b/agent/src/skills/web-reader/SKILL.md
@@ -0,0 +1,56 @@
+---
+name: web-reader
+description: Read web pages, articles, and document links by converting URLs into Markdown text. Use the `read_url` tool directly, without bash.
+---
+# Web Reading
+
+## Purpose
+
+Converts any URL into clean Markdown text, removing ads, navigation, styling, and other distractions. Suitable for:
+- Reading API documentation (`tushare`, `OKX`, `yfinance`, and similar)
+- Reading technical articles and blogs
+- Retrieving research reports and announcements
+- Reading GitHub README / Wiki pages
+
+## Usage
+
+**Call the `read_url` tool directly (do not use bash + requests, call the tool directly):**
+
+```
+read_url(url="https://tushare.pro/document/2?doc_id=27")
+```
+
+Returns JSON:
+```json
+{
+ "status": "ok",
+ "title": "Page title",
+ "url": "Original URL",
+ "content": "Page content in Markdown format",
+ "length": 12345
+}
+```
+
+## Notes
+
+- Content longer than 8000 characters will be truncated, with the total length noted at the end
+- Some websites may block Jina Reader (returning HTTP 451). In that case, fall back to bash + requests
+- Dynamically rendered SPA pages may return only skeleton HTML
+- Chinese content is supported normally
+
+## Common Usage
+
+### Read API Documentation
+```
+read_url(url="https://tushare.pro/document/2?doc_id=27")
+```
+
+### Read Technical Articles
+```
+read_url(url="https://blog.example.com/quantitative-trading-guide")
+```
+
+### Retrieve GitHub Project Information
+```
+read_url(url="https://github.com/PaddlePaddle/PaddleOCR")
+```
diff --git a/agent/src/skills/yfinance/SKILL.md b/agent/src/skills/yfinance/SKILL.md
new file mode 100644
index 000000000..ff99fb148
--- /dev/null
+++ b/agent/src/skills/yfinance/SKILL.md
@@ -0,0 +1,254 @@
+---
+name: yfinance
+description: yfinance global market data interface โ€” retrieve OHLCV, financials, insider transactions, and institutional holdings for US stocks, HK stocks, ETFs, and indices via Yahoo Finance. Free, no API key required.
+---
+# yfinance
+
+## Overview
+
+yfinance is an open-source Python wrapper for Yahoo Finance, providing global market data (US stocks, HK stocks, ETFs, indices) including historical and real-time quotes. **Completely free, no registration or API key required.**
+
+The project has a built-in yfinance DataLoader (`backtest/loaders/yfinance_loader.py`). When backtesting, set `source: "yfinance"` or `source: "auto"` to invoke it automatically.
+
+## Quick Start
+
+```bash
+pip install yfinance pandas
+```
+
+```python
+import yfinance as yf
+
+# Apple daily bars for the past year
+df = yf.download("AAPL", start="2025-01-01", end="2026-01-01", progress=False)
+print(df.head())
+
+# Tencent (HK-listed)
+df = yf.download("0700.HK", start="2025-01-01", end="2026-01-01", progress=False)
+print(df.head())
+```
+
+## Ticker Format Conversion
+
+The project uses a unified ticker format. The DataLoader automatically converts to yfinance format:
+
+| Project Format | yfinance Format | Market |
+|---------------|----------------|--------|
+| `AAPL.US` | `AAPL` | US stock |
+| `MSFT.US` | `MSFT` | US stock |
+| `700.HK` | `0700.HK` | HK stock |
+| `9988.HK` | `9988.HK` | HK stock |
+| `SPY.US` | `SPY` | US ETF |
+
+**Rules:**
+- US stocks: strip the `.US` suffix โ†’ use the raw ticker
+- HK stocks: keep `.HK`, pad the number to 4 digits (`700` โ†’ `0700`)
+
+## Supported Data Types
+
+### 1. Historical OHLCV
+
+```python
+import yfinance as yf
+import pandas as pd
+
+# Single stock
+df = yf.download("AAPL", start="2025-01-01", end="2026-01-01", progress=False)
+
+# Batch download
+df = yf.download(["AAPL", "MSFT", "GOOGL"], start="2025-01-01", end="2026-01-01", progress=False)
+
+# Specific interval
+df = yf.download("AAPL", start="2026-03-01", end="2026-03-30",
+ interval="1h", progress=False) # 1m/5m/15m/30m/1h/1d/1wk/1mo
+```
+
+**Supported intervals:**
+- Minute-level: `1m`, `2m`, `5m`, `15m`, `30m`, `60m`, `90m`
+- Hourly: `1h`
+- Daily and above: `1d`, `5d`, `1wk`, `1mo`, `3mo`
+
+**Minute data limits:**
+- `1m`: up to 7 days of history
+- `2m/5m/15m/30m/60m/90m`: up to 60 days
+- `1h`: up to 730 days
+- `1d` and above: unlimited
+
+### 2. Company Info
+
+```python
+ticker = yf.Ticker("AAPL")
+
+info = ticker.info
+print(f"Company: {info.get('longName')}")
+print(f"Industry: {info.get('industry')}")
+print(f"Market cap: {info.get('marketCap')}")
+print(f"PE: {info.get('trailingPE')}")
+print(f"EPS: {info.get('trailingEps')}")
+print(f"Dividend yield: {info.get('dividendYield')}")
+```
+
+### 3. Financial Statements
+
+```python
+ticker = yf.Ticker("AAPL")
+
+# Income statement (annual)
+income = ticker.financials
+# Income statement (quarterly)
+income_q = ticker.quarterly_financials
+
+# Balance sheet
+balance = ticker.balance_sheet
+
+# Cash flow statement
+cashflow = ticker.cashflow
+
+# Earnings data
+earnings = ticker.earnings
+```
+
+### 4. Dividends and Splits
+
+```python
+ticker = yf.Ticker("AAPL")
+
+# Dividend history
+dividends = ticker.dividends
+
+# Stock split history
+splits = ticker.splits
+
+# All corporate actions
+actions = ticker.actions
+```
+
+### 5. Institutional Holdings
+
+```python
+ticker = yf.Ticker("AAPL")
+
+# Institutional holders
+holders = ticker.institutional_holders
+
+# Major holders summary
+major = ticker.major_holders
+
+# Insider transactions
+insider = ticker.insider_transactions
+```
+
+### 6. Indices and ETFs
+
+```python
+# Major indices
+sp500 = yf.download("^GSPC", start="2025-01-01", end="2026-01-01", progress=False) # S&P 500
+nasdaq = yf.download("^IXIC", start="2025-01-01", end="2026-01-01", progress=False) # NASDAQ
+hsi = yf.download("^HSI", start="2025-01-01", end="2026-01-01", progress=False) # Hang Seng Index
+
+# ETFs
+spy = yf.download("SPY", start="2025-01-01", end="2026-01-01", progress=False)
+qqq = yf.download("QQQ", start="2025-01-01", end="2026-01-01", progress=False)
+```
+
+### 7. FX Rates
+
+```python
+# Currency pairs
+usdcny = yf.download("CNY=X", start="2025-01-01", end="2026-01-01", progress=False)
+usdhkd = yf.download("HKD=X", start="2025-01-01", end="2026-01-01", progress=False)
+eurusd = yf.download("EURUSD=X", start="2025-01-01", end="2026-01-01", progress=False)
+```
+
+## Popular Ticker Reference
+
+### US Stocks
+
+| Ticker | Company |
+|--------|---------|
+| AAPL | Apple |
+| MSFT | Microsoft |
+| GOOGL | Alphabet (Google) |
+| AMZN | Amazon |
+| NVDA | NVIDIA |
+| META | Meta Platforms |
+| TSLA | Tesla |
+| BRK-B | Berkshire Hathaway |
+
+### HK Stocks
+
+| Project Format | yfinance Format | Company |
+|---------------|----------------|---------|
+| 700.HK | 0700.HK | Tencent |
+| 9988.HK | 9988.HK | Alibaba |
+| 9618.HK | 9618.HK | JD.com |
+| 3690.HK | 3690.HK | Meituan |
+| 1810.HK | 1810.HK | Xiaomi |
+| 2318.HK | 2318.HK | Ping An |
+
+### Major Indices
+
+| Ticker | Index |
+|--------|-------|
+| ^GSPC | S&P 500 |
+| ^DJI | Dow Jones Industrial Average |
+| ^IXIC | NASDAQ Composite |
+| ^HSI | Hang Seng Index |
+| ^N225 | Nikkei 225 |
+| ^FTSE | FTSE 100 |
+
+### Sector ETFs
+
+| Ticker | Sector |
+|--------|--------|
+| XLK | Technology |
+| XLF | Financials |
+| XLE | Energy |
+| XLV | Healthcare |
+| XLY | Consumer Discretionary |
+| XLP | Consumer Staples |
+| XLI | Industrials |
+| XLU | Utilities |
+
+## Backtest Usage
+
+### config.json Example
+
+```json
+{
+ "source": "yfinance",
+ "codes": ["AAPL.US", "MSFT.US"],
+ "start_date": "2020-01-01",
+ "end_date": "2026-03-30",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "extra_fields": null
+}
+```
+
+### Cross-Market Auto Mode
+
+```json
+{
+ "source": "auto",
+ "codes": ["000001.SZ", "AAPL.US", "700.HK", "BTC-USDT"],
+ "start_date": "2024-01-01",
+ "end_date": "2026-03-30",
+ "initial_cash": 1000000,
+ "commission": 0.001,
+ "extra_fields": null
+}
+```
+
+`source: "auto"` routes automatically by ticker format: A-shares โ†’ tushare, HK/US stocks โ†’ yfinance, crypto โ†’ OKX.
+
+## Notes
+
+- **Free, no API key**: yfinance scrapes Yahoo Finance public data โ€” no registration needed
+- **Rate limits**: high-frequency requests may trigger temporary Yahoo bans โ€” prefer batch downloads over per-ticker loops
+- **Minute data range**: limited by Yahoo Finance (see table above)
+- **HK tickers**: Yahoo Finance uses 4-digit numbers + `.HK`; pad with leading zeros where needed
+- **Adjustment**: `auto_adjust=True` (default) returns forward-adjusted prices; the project loader uses `auto_adjust=False`
+- **Timezone**: returned data includes timezone info; the DataLoader strips it automatically
+- **extra_fields not supported**: yfinance via the backtest loader returns OHLCV only; PE/PB and other fundamentals require separate `yf.Ticker().info` calls
+- **Comparison with Tushare**: Tushare covers deep A-share data (financials, fund flows, block trades, etc.); yfinance covers global markets but with less depth
diff --git a/agent/src/swarm/__init__.py b/agent/src/swarm/__init__.py
new file mode 100644
index 000000000..8edea8671
--- /dev/null
+++ b/agent/src/swarm/__init__.py
@@ -0,0 +1,35 @@
+"""Swarm multi-agent system โ€” package entry point."""
+
+from __future__ import annotations
+
+from src.swarm.models import (
+ RunStatus,
+ SwarmAgentSpec,
+ SwarmEvent,
+ SwarmMessage,
+ SwarmRun,
+ SwarmTask,
+ TaskStatus,
+ WorkerResult,
+)
+from src.swarm.presets import build_run_from_preset, list_presets, load_preset
+from src.swarm.runtime import SwarmRuntime
+from src.swarm.store import SwarmStore
+from src.swarm.worker import run_worker
+
+__all__ = [
+ "RunStatus",
+ "SwarmAgentSpec",
+ "SwarmEvent",
+ "SwarmMessage",
+ "SwarmRun",
+ "SwarmRuntime",
+ "SwarmStore",
+ "SwarmTask",
+ "TaskStatus",
+ "WorkerResult",
+ "build_run_from_preset",
+ "list_presets",
+ "load_preset",
+ "run_worker",
+]
diff --git a/agent/src/swarm/api_models.py b/agent/src/swarm/api_models.py
new file mode 100644
index 000000000..186c95b35
--- /dev/null
+++ b/agent/src/swarm/api_models.py
@@ -0,0 +1,84 @@
+"""Swarm API โ€” FastAPI request/response models.
+
+Separate from core models (models.py), designed for HTTP API serialization.
+"""
+
+from __future__ import annotations
+
+from pydantic import BaseModel, Field
+
+
+class CreateSwarmRunRequest(BaseModel):
+ """Request body for creating a Swarm Run.
+
+ Attributes:
+ preset_name: YAML preset name.
+ user_vars: User variables for template rendering.
+ """
+
+ preset_name: str
+ user_vars: dict[str, str] = Field(default_factory=dict)
+
+
+class SwarmRunSummary(BaseModel):
+ """Summary entry for a Swarm Run list item.
+
+ Attributes:
+ id: Run unique ID.
+ preset_name: Preset name used.
+ status: Current status.
+ created_at: ISO-format creation time.
+ task_count: Total task count.
+ completed_count: Completed task count.
+ """
+
+ id: str
+ preset_name: str
+ status: str
+ created_at: str
+ task_count: int
+ completed_count: int
+
+
+class SwarmRunResponse(BaseModel):
+ """Swarm Run detail response.
+
+ Attributes:
+ id: Run unique ID.
+ preset_name: Preset name used.
+ status: Current status.
+ user_vars: User-provided variables.
+ agents: List of agent definitions.
+ tasks: List of task statuses.
+ created_at: ISO-format creation time.
+ completed_at: ISO-format completion time.
+ final_report: Final aggregated report.
+ """
+
+ id: str
+ preset_name: str
+ status: str
+ user_vars: dict[str, str]
+ agents: list[dict]
+ tasks: list[dict]
+ created_at: str
+ completed_at: str | None = None
+ final_report: str | None = None
+
+
+class SwarmPresetInfo(BaseModel):
+ """Swarm preset summary info.
+
+ Attributes:
+ name: Preset name.
+ title: Preset title.
+ description: Preset description.
+ agent_count: Number of agents.
+ variables: Variable definition list.
+ """
+
+ name: str
+ title: str
+ description: str
+ agent_count: int
+ variables: list[dict]
diff --git a/agent/src/swarm/mailbox.py b/agent/src/swarm/mailbox.py
new file mode 100644
index 000000000..fbce4f85f
--- /dev/null
+++ b/agent/src/swarm/mailbox.py
@@ -0,0 +1,90 @@
+"""Swarm multi-agent system โ€” file-based Mailbox.
+
+File-system-based message passing between agents. Each agent has an independent
+inbox directory. Messages are sorted by timestamp and carry only summaries and
+artifact paths, not full content.
+
+Directory structure:
+ inboxes/{agent_id}/msg-{timestamp}-{uuid_short}.json
+"""
+
+from __future__ import annotations
+
+import uuid
+from pathlib import Path
+
+from src.swarm.models import SwarmMessage
+
+
+class Mailbox:
+ """File-based agent message inbox.
+
+ Each agent has an independent directory under run_dir/inboxes/{agent_id}/.
+ Messages are stored as JSON files with timestamps in the filename for ordering.
+
+ Attributes:
+ run_dir: Root directory of the current run.
+ """
+
+ def __init__(self, run_dir: Path) -> None:
+ """Initialize Mailbox.
+
+ Args:
+ run_dir: Path to .swarm/runs/{run_id}/ directory.
+ """
+ self.run_dir = run_dir
+ self._inboxes_dir = run_dir / "inboxes"
+ self._inboxes_dir.mkdir(parents=True, exist_ok=True)
+
+ def send(self, msg: SwarmMessage) -> None:
+ """Send a message to the target agent's inbox.
+
+ Args:
+ msg: SwarmMessage to send.
+ """
+ inbox_dir = self._inboxes_dir / msg.to
+ inbox_dir.mkdir(parents=True, exist_ok=True)
+
+ ts_safe = msg.timestamp.replace(":", "-").replace(".", "-")
+ uid = uuid.uuid4().hex[:8]
+ filename = f"msg-{ts_safe}-{uid}.json"
+
+ msg_path = inbox_dir / filename
+ tmp_path = msg_path.with_suffix(".tmp")
+ tmp_path.write_text(msg.model_dump_json(indent=2), encoding="utf-8")
+ tmp_path.replace(msg_path)
+
+ def read_inbox(self, agent_id: str) -> list[SwarmMessage]:
+ """Read all messages for the given agent, sorted by timestamp.
+
+ Args:
+ agent_id: Agent ID.
+
+ Returns:
+ List of SwarmMessage sorted by timestamp ascending.
+ """
+ inbox_dir = self._inboxes_dir / agent_id
+ if not inbox_dir.exists():
+ return []
+
+ messages: list[SwarmMessage] = []
+ for path in sorted(inbox_dir.glob("msg-*.json")):
+ messages.append(
+ SwarmMessage.model_validate_json(path.read_text(encoding="utf-8"))
+ )
+
+ messages.sort(key=lambda m: m.timestamp)
+ return messages
+
+ def read_from(self, agent_id: str, from_agent: str) -> list[SwarmMessage]:
+ """Read messages in an agent's inbox from a specific sender.
+
+ Args:
+ agent_id: Receiving agent ID.
+ from_agent: Sending agent ID.
+
+ Returns:
+ List of SwarmMessage from from_agent, sorted by timestamp ascending.
+ """
+ all_messages = self.read_inbox(agent_id)
+ return [m for m in all_messages if m.from_agent == from_agent]
diff --git a/agent/src/swarm/models.py b/agent/src/swarm/models.py
new file mode 100644
index 000000000..cce9fe1df
--- /dev/null
+++ b/agent/src/swarm/models.py
@@ -0,0 +1,203 @@
+"""Swarm multi-agent system โ€” data models.
+
+All Pydantic models defined here, shared by store / task_store / mailbox / worker / runtime.
+Enums use str+Enum to ensure JSON-serialization compatibility.
+"""
+
+from __future__ import annotations
+
+from enum import Enum
+
+from pydantic import BaseModel, Field
+
+
+class TaskStatus(str, Enum):
+ """SwarmTask lifecycle status.
+
+ Transitions:
+ pending -> blocked -> in_progress -> completed | failed | cancelled
+ """
+
+ pending = "pending"
+ blocked = "blocked"
+ in_progress = "in_progress"
+ completed = "completed"
+ failed = "failed"
+ cancelled = "cancelled"
+
+
+class RunStatus(str, Enum):
+ """SwarmRun lifecycle status.
+
+ Transitions:
+ pending -> running -> completed | failed | cancelled
+ """
+
+ pending = "pending"
+ running = "running"
+ completed = "completed"
+ failed = "failed"
+ cancelled = "cancelled"
+
+
+class SwarmAgentSpec(BaseModel):
+ """Role definition for a single agent in a Swarm.
+
+ Parsed from YAML presets, describes the agent's identity, available tools, and constraints.
+
+ Attributes:
+ id: Unique identifier, e.g. "macro_analyst".
+ role: Role description.
+ system_prompt: System prompt injected into the LLM.
+ tools: Whitelist of allowed tool names.
+ skills: List of allowed skill names.
+ max_iterations: Maximum ReAct loop iterations.
+ timeout_seconds: Worker timeout in seconds.
+ model_name: Override default model; None uses global config.
+ max_retries: Maximum retry attempts on failure.
+ """
+
+ id: str
+ role: str
+ system_prompt: str
+ tools: list[str] = Field(default_factory=list)
+ skills: list[str] = Field(default_factory=list)
+ max_iterations: int = 25
+ timeout_seconds: int = 300
+ model_name: str | None = None
+ max_retries: int = 2
+
+
+class SwarmTask(BaseModel):
+ """A task node in the Swarm DAG.
+
+ Each task is bound to an agent. Dependencies are declared via depends_on,
+ and blocked_by tracks remaining incomplete upstream tasks at runtime.
+
+ Attributes:
+ id: Unique identifier, e.g. "analyze_macro".
+ agent_id: ID of the agent executing this task.
+ prompt_template: User prompt template supporting {var} placeholders.
+ depends_on: DAG-declared upstream task IDs (immutable).
+ blocked_by: Remaining incomplete upstream task IDs (shrinks at runtime).
+ input_from: Mapping to pull summaries from upstream tasks, e.g. {"macro": "analyze_macro"}.
+ status: Current task status.
+ summary: Summary text after completion.
+ artifacts: List of output file paths.
+ error: Error message on failure.
+ started_at: ISO-format start time.
+ completed_at: ISO-format completion time.
+ worker_iterations: Actual ReAct iterations executed by the worker.
+ """
+
+ id: str
+ agent_id: str
+ prompt_template: str
+ depends_on: list[str] = Field(default_factory=list)
+ blocked_by: list[str] = Field(default_factory=list)
+ input_from: dict[str, str] = Field(default_factory=dict)
+ status: TaskStatus = TaskStatus.pending
+ summary: str | None = None
+ artifacts: list[str] = Field(default_factory=list)
+ error: str | None = None
+ started_at: str | None = None
+ completed_at: str | None = None
+ worker_iterations: int = 0
+
+
+class SwarmMessage(BaseModel):
+ """Message passed between agents via the Mailbox file inbox.
+
+ Carries only summaries and artifact paths to avoid context bloat.
+
+ Attributes:
+ id: Unique message ID.
+ type: Message type, e.g. "task_result", "request", "broadcast".
+ from_agent: Sending agent ID.
+ to: Receiving agent ID.
+ content: Message body (summary level).
+ artifact_paths: Associated artifact file paths.
+ timestamp: ISO-format timestamp.
+ """
+
+ id: str
+ type: str
+ from_agent: str
+ to: str
+ content: str
+ artifact_paths: list[str] = Field(default_factory=list)
+ timestamp: str
+
+
+class SwarmEvent(BaseModel):
+ """Swarm event log entry.
+
+ Appended to events.jsonl; supports SSE streaming and post-run audit.
+
+ Attributes:
+ type: Event type, e.g. "run_started", "task_completed", "task_failed".
+ agent_id: Associated agent ID (optional).
+ task_id: Associated task ID (optional).
+ data: Arbitrary additional data.
+ timestamp: ISO-format timestamp.
+ """
+
+ type: str
+ agent_id: str | None = None
+ task_id: str | None = None
+ data: dict = Field(default_factory=dict)
+ timestamp: str
+
+
+class SwarmRun(BaseModel):
+ """Complete state of a single Swarm preset execution.
+
+ Persisted as .swarm/runs/{id}/run.json; the top-level aggregate root.
+
+ Attributes:
+ id: Unique run ID (UUID).
+ preset_name: Preset name used, e.g. "research_team".
+ status: Run status.
+ user_vars: User-provided variables for template rendering.
+ agents: List of participating agent definitions.
+ tasks: All task entries.
+ created_at: ISO-format creation time.
+ completed_at: ISO-format completion time.
+ final_report: Final aggregated report text.
+ total_input_tokens: Cumulative input tokens across all workers.
+ total_output_tokens: Cumulative output tokens across all workers.
+ """
+
+ id: str
+ preset_name: str
+ status: RunStatus = RunStatus.pending
+ user_vars: dict[str, str] = Field(default_factory=dict)
+ agents: list[SwarmAgentSpec] = Field(default_factory=list)
+ tasks: list[SwarmTask] = Field(default_factory=list)
+ created_at: str
+ completed_at: str | None = None
+ final_report: str | None = None
+ total_input_tokens: int = 0
+ total_output_tokens: int = 0
+
+
+class WorkerResult(BaseModel):
+ """Return value after worker execution completes.
+
+ Attributes:
+ status: "completed" or "failed".
+ summary: Execution summary.
+ artifact_paths: List of generated artifact file paths.
+ iterations: Actual ReAct iterations executed.
+ error: Error message on failure.
+ input_tokens: Cumulative input tokens (exact or estimated).
+ output_tokens: Cumulative output tokens (exact or estimated).
+ """
+
+ status: str
+ summary: str
+ artifact_paths: list[str] = Field(default_factory=list)
+ iterations: int = 0
+ error: str | None = None
+ input_tokens: int = 0
+ output_tokens: int = 0
diff --git a/agent/src/swarm/presets.py b/agent/src/swarm/presets.py
new file mode 100644
index 000000000..f523ed446
--- /dev/null
+++ b/agent/src/swarm/presets.py
@@ -0,0 +1,135 @@
+"""Swarm YAML preset loader.
+
+Reads YAML preset files from agent/config/swarm/ and parses them into
+SwarmRun / SwarmAgentSpec / SwarmTask data models.
+"""
+
+from __future__ import annotations
+
+import uuid
+from datetime import datetime, timezone
+from pathlib import Path
+
+import yaml
+
+from src.swarm.models import RunStatus, SwarmAgentSpec, SwarmRun, SwarmTask, TaskStatus
+
+PRESETS_DIR = Path(__file__).resolve().parents[2] / "config" / "swarm"
+
+
+def load_preset(name: str) -> dict:
+ """Load a YAML preset by name.
+
+ Args:
+ name: Preset name (without .yaml extension).
+
+ Returns:
+ Parsed YAML dict.
+
+ Raises:
+ FileNotFoundError: If the preset file does not exist.
+ """
+ path = PRESETS_DIR / f"{name}.yaml"
+ if not path.exists():
+ available = [p.stem for p in PRESETS_DIR.glob("*.yaml")] if PRESETS_DIR.exists() else []
+ raise FileNotFoundError(
+ f"Preset '{name}' not found at {path}. Available: {available}"
+ )
+ return yaml.safe_load(path.read_text(encoding="utf-8"))
+
+
+def list_presets() -> list[dict]:
+ """Return summary info for all available presets.
+
+ Returns:
+ List of dicts with keys: name, title, description, agent_count, variables.
+ """
+ if not PRESETS_DIR.exists():
+ return []
+
+ results: list[dict] = []
+ for path in sorted(PRESETS_DIR.glob("*.yaml")):
+ try:
+ data = yaml.safe_load(path.read_text(encoding="utf-8"))
+ except Exception:
+ continue
+
+ results.append({
+ "name": data.get("name", path.stem),
+ "title": data.get("title", ""),
+ "description": data.get("description", ""),
+ "agent_count": len(data.get("agents", [])),
+ "variables": data.get("variables", []),
+ })
+
+ return results
+
+
+def build_run_from_preset(preset_name: str, user_vars: dict[str, str]) -> SwarmRun:
+ """Create a SwarmRun from a preset with user variables applied.
+
+ Steps:
+ 1. Load preset YAML
+ 2. Create SwarmAgentSpec list from agents section
+ 3. Create SwarmTask list from tasks section
+ 4. Generate run_id: f"swarm-{datetime}-{uuid[:8]}"
+ 5. Return SwarmRun with all fields populated
+
+ Args:
+ preset_name: Name of the preset to load.
+ user_vars: User-provided variables for prompt template rendering.
+
+ Returns:
+ Fully constructed SwarmRun instance (status=pending).
+
+ Raises:
+ FileNotFoundError: If preset does not exist.
+ ValueError: If preset YAML is malformed.
+ """
+ data = load_preset(preset_name)
+
+ # Parse agents
+ agents: list[SwarmAgentSpec] = []
+ for agent_data in data.get("agents", []):
+ agents.append(SwarmAgentSpec(
+ id=agent_data["id"],
+ role=agent_data.get("role", ""),
+ system_prompt=agent_data.get("system_prompt", ""),
+ tools=agent_data.get("tools", []),
+ skills=agent_data.get("skills", []),
+ max_iterations=agent_data.get("max_iterations", 25),
+ timeout_seconds=agent_data.get("timeout_seconds", 300),
+ model_name=agent_data.get("model_name"),
+ max_retries=agent_data.get("max_retries", 2),
+ ))
+
+ # Parse tasks, initialize blocked_by from depends_on
+ tasks: list[SwarmTask] = []
+ for task_data in data.get("tasks", []):
+ depends_on = task_data.get("depends_on", [])
+ status = TaskStatus.blocked if depends_on else TaskStatus.pending
+ tasks.append(SwarmTask(
+ id=task_data["id"],
+ agent_id=task_data["agent_id"],
+ prompt_template=task_data.get("prompt_template", ""),
+ depends_on=depends_on,
+ blocked_by=list(depends_on),
+ input_from=task_data.get("input_from", {}),
+ status=status,
+ ))
+
+ # Generate run ID
+ now = datetime.now(timezone.utc)
+ ts = now.strftime("%Y%m%d-%H%M%S")
+ short_uuid = uuid.uuid4().hex[:8]
+ run_id = f"swarm-{ts}-{short_uuid}"
+
+ return SwarmRun(
+ id=run_id,
+ preset_name=preset_name,
+ status=RunStatus.pending,
+ user_vars=user_vars,
+ agents=agents,
+ tasks=tasks,
+ created_at=now.isoformat(),
+ )
diff --git a/agent/src/swarm/runtime.py b/agent/src/swarm/runtime.py
new file mode 100644
index 000000000..aa06f08a4
--- /dev/null
+++ b/agent/src/swarm/runtime.py
@@ -0,0 +1,492 @@
+"""Swarm DAG orchestration runtime.
+
+Core orchestrator: schedules workers by topological layer, parallel within each
+layer and serial between layers. Execution runs in a background daemon thread
+with cancellation and event callback support.
+"""
+
+from __future__ import annotations
+
+import logging
+import threading
+from concurrent.futures import Future, ThreadPoolExecutor, as_completed
+from datetime import datetime, timezone
+from pathlib import Path
+from typing import Callable
+
+from src.swarm.mailbox import Mailbox
+from src.swarm.models import (
+ RunStatus,
+ SwarmAgentSpec,
+ SwarmEvent,
+ SwarmRun,
+ SwarmTask,
+ TaskStatus,
+ WorkerResult,
+)
+from src.swarm.presets import build_run_from_preset
+from src.swarm.store import SwarmStore
+from src.swarm.task_store import (
+ TaskStore,
+ resolve_dependencies,
+ topological_layers,
+ validate_dag,
+)
+from src.swarm.worker import run_worker
+
+logger = logging.getLogger(__name__)
+
+
+class SwarmRuntime:
+ """Swarm DAG orchestration engine.
+
+ Manages the full lifecycle of a swarm run: creation, scheduling, execution,
+ and cancellation. Each run executes in an independent background daemon thread;
+ tasks within a layer run in parallel via ThreadPoolExecutor.
+
+ Attributes:
+ _store: SwarmStore persistence layer.
+ _max_workers: Maximum concurrent workers in ThreadPoolExecutor.
+ """
+
+ def __init__(self, store: SwarmStore, max_workers: int = 4) -> None:
+ """Initialize SwarmRuntime.
+
+ Args:
+ store: SwarmStore instance for run persistence.
+ max_workers: Maximum concurrent worker threads.
+ """
+ self._store = store
+ self._max_workers = max_workers
+ self._cancel_events: dict[str, threading.Event] = {}
+ self._live_callbacks: dict[str, Callable] = {}
+ self._lock = threading.Lock()
+
+ def start_run(
+ self,
+ preset_name: str,
+ user_vars: dict[str, str],
+ live_callback: Callable | None = None,
+ ) -> SwarmRun:
+ """Start a swarm run. Returns immediately, execution happens in background.
+
+ Args:
+ preset_name: YAML preset name to execute.
+ user_vars: User-provided variables for prompt templates.
+ live_callback: Optional callback invoked for each event in real-time.
+
+ Returns:
+ The created SwarmRun instance (status=pending initially).
+
+ Raises:
+ FileNotFoundError: If preset does not exist.
+ ValueError: If DAG validation fails.
+ """
+ run = build_run_from_preset(preset_name, user_vars)
+ validate_dag(run.tasks)
+ self._store.create_run(run)
+
+ cancel_event = threading.Event()
+ with self._lock:
+ self._cancel_events[run.id] = cancel_event
+ if live_callback is not None:
+ self._live_callbacks[run.id] = live_callback
+
+ thread = threading.Thread(
+ target=self._execute_run,
+ args=(run, cancel_event),
+ name=f"swarm-{run.id}",
+ daemon=True,
+ )
+ thread.start()
+
+ return run
+
+ def cancel_run(self, run_id: str) -> bool:
+ """Signal cancellation for a running swarm.
+
+ Args:
+ run_id: ID of the run to cancel.
+
+ Returns:
+ True if cancellation was signalled, False if run not found.
+ """
+ with self._lock:
+ cancel_event = self._cancel_events.get(run_id)
+ if cancel_event is None:
+ return False
+ cancel_event.set()
+ return True
+
+ def _emit_event(self, run_id: str, event: SwarmEvent) -> None:
+ """Persist an event and forward to live callback if registered.
+
+ Args:
+ run_id: Run identifier.
+ event: Event to persist.
+ """
+ try:
+ self._store.append_event(run_id, event)
+ except Exception:
+ logger.warning("Failed to persist event for run %s", run_id, exc_info=True)
+ with self._lock:
+ cb = self._live_callbacks.get(run_id)
+ if cb is not None:
+ try:
+ cb(event)
+ except Exception:
+ logger.warning("Live callback failed for run %s", run_id, exc_info=True)
+
+ def _make_event(
+ self,
+ event_type: str,
+ agent_id: str | None = None,
+ task_id: str | None = None,
+ data: dict | None = None,
+ ) -> SwarmEvent:
+ """Create a SwarmEvent with current timestamp.
+
+ Args:
+ event_type: Event type string.
+ agent_id: Optional agent identifier.
+ task_id: Optional task identifier.
+ data: Optional additional data.
+
+ Returns:
+ SwarmEvent instance.
+ """
+ return SwarmEvent(
+ type=event_type,
+ agent_id=agent_id,
+ task_id=task_id,
+ data=data or {},
+ timestamp=datetime.now(timezone.utc).isoformat(),
+ )
+
+ def _execute_run(self, run: SwarmRun, cancel_event: threading.Event) -> None:
+ """Core orchestration loop (runs in background thread).
+
+ Steps:
+ 1. Update run status to running
+ 2. Initialize TaskStore, save all tasks
+ 3. Compute topological layers
+ 4. For each layer:
+ a. Check cancellation
+ b. Submit all tasks to ThreadPoolExecutor
+ c. Collect results, resolve dependencies, update store
+ 5. Update run status to completed/failed
+
+ Args:
+ run: SwarmRun to execute.
+ cancel_event: Threading event for cancellation signalling.
+ """
+ run_id = run.id
+ run_dir = self._store.run_dir(run_id)
+
+ # Mark as running
+ run.status = RunStatus.running
+ self._store.update_run(run)
+ self._emit_event(run_id, self._make_event("run_started"))
+
+ # Initialize task store
+ task_store = TaskStore(run_dir)
+ for task in run.tasks:
+ task_store.save_task(task)
+
+ # Build agent lookup
+ agent_map: dict[str, SwarmAgentSpec] = {a.id: a for a in run.agents}
+
+ # Compute execution layers
+ layers = topological_layers(run.tasks)
+ task_summaries: dict[str, str] = {}
+ all_succeeded = True
+
+ try:
+ for layer_idx, layer_task_ids in enumerate(layers):
+ # Check cancellation between layers
+ if cancel_event.is_set():
+ logger.info("Run %s cancelled at layer %d", run_id, layer_idx)
+ self._cancel_remaining_tasks(task_store, layer_task_ids, run.tasks)
+ all_succeeded = False
+ break
+
+ self._emit_event(
+ run_id,
+ self._make_event(
+ "layer_started",
+ data={"layer": layer_idx, "tasks": layer_task_ids},
+ ),
+ )
+
+ # Execute all tasks in this layer in parallel
+ layer_results = self._execute_layer(
+ run=run,
+ task_store=task_store,
+ agent_map=agent_map,
+ layer_task_ids=layer_task_ids,
+ task_summaries=task_summaries,
+ run_dir=run_dir,
+ cancel_event=cancel_event,
+ )
+
+ # Process results
+ for tid, result in layer_results.items():
+ # Accumulate token counts to run totals
+ run.total_input_tokens += result.input_tokens
+ run.total_output_tokens += result.output_tokens
+
+ if result.status in ("completed", "timeout", "token_limit"):
+ task_summaries[tid] = result.summary
+ now_iso = datetime.now(timezone.utc).isoformat()
+ task_store.update_status(
+ tid, TaskStatus.completed,
+ summary=result.summary,
+ completed_at=now_iso,
+ artifacts=result.artifact_paths,
+ worker_iterations=result.iterations,
+ )
+ resolve_dependencies(run_dir / "tasks", tid)
+ self._emit_event(
+ run_id,
+ self._make_event("task_completed", task_id=tid,
+ data={"status": result.status,
+ "iterations": result.iterations,
+ "input_tokens": result.input_tokens,
+ "output_tokens": result.output_tokens}),
+ )
+ else:
+ all_succeeded = False
+ task_store.update_status(
+ tid, TaskStatus.failed,
+ error=result.error or "Unknown error",
+ completed_at=datetime.now(timezone.utc).isoformat(),
+ worker_iterations=result.iterations,
+ )
+ self._emit_event(
+ run_id,
+ self._make_event("task_failed", task_id=tid,
+ data={"error": result.error,
+ "input_tokens": result.input_tokens,
+ "output_tokens": result.output_tokens}),
+ )
+
+ except Exception as exc:
+ logger.error("Run %s failed with exception", run_id, exc_info=True)
+ all_succeeded = False
+ self._emit_event(
+ run_id,
+ self._make_event("run_error", data={"error": str(exc)}),
+ )
+
+ # Finalize run
+ final_status = (
+ RunStatus.cancelled if cancel_event.is_set()
+ else RunStatus.completed if all_succeeded
+ else RunStatus.failed
+ )
+ run.status = final_status
+ run.completed_at = datetime.now(timezone.utc).isoformat()
+
+ # Sync tasks back to run model
+ run.tasks = task_store.load_all()
+
+ # Set final report from aggregation task (last task) if available
+ if task_summaries:
+ last_layer = layers[-1] if layers else []
+ for tid in last_layer:
+ if tid in task_summaries:
+ run.final_report = task_summaries[tid]
+ break
+
+ self._store.update_run(run)
+ self._emit_event(run_id, self._make_event("run_completed", data={"status": final_status.value}))
+
+ # Cleanup cancel event and live callback
+ with self._lock:
+ self._cancel_events.pop(run_id, None)
+ self._live_callbacks.pop(run_id, None)
+
+ def _execute_layer(
+ self,
+ run: SwarmRun,
+ task_store: TaskStore,
+ agent_map: dict[str, SwarmAgentSpec],
+ layer_task_ids: list[str],
+ task_summaries: dict[str, str],
+ run_dir: Path,
+ cancel_event: threading.Event,
+ ) -> dict[str, WorkerResult]:
+ """Execute all tasks in a single layer in parallel, with retry on failure.
+
+ Each task is retried up to agent_spec.max_retries times if the worker
+ returns status="failed". A "task_retry" event is emitted before each retry.
+
+ Args:
+ run: The SwarmRun being executed.
+ task_store: TaskStore for task persistence.
+ agent_map: Agent specs keyed by agent_id.
+ layer_task_ids: Task IDs in this layer.
+ task_summaries: Accumulated task summaries from previous layers.
+ run_dir: Run directory path.
+ cancel_event: Cancellation event.
+
+ Returns:
+ Mapping of task_id -> WorkerResult for all tasks in this layer.
+ """
+ results: dict[str, WorkerResult] = {}
+
+ def _event_callback(event: SwarmEvent) -> None:
+ self._emit_event(run.id, event)
+
+ with ThreadPoolExecutor(max_workers=self._max_workers) as executor:
+ futures: dict[Future[WorkerResult], str] = {}
+
+ for tid in layer_task_ids:
+ task = task_store.load_task(tid)
+ agent_spec = agent_map.get(task.agent_id)
+ if agent_spec is None:
+ results[tid] = WorkerResult(
+ status="failed", summary="",
+ error=f"Agent '{task.agent_id}' not found in preset",
+ )
+ continue
+
+ # Mark task as in_progress
+ task_store.update_status(
+ tid, TaskStatus.in_progress,
+ started_at=datetime.now(timezone.utc).isoformat(),
+ )
+ self._emit_event(
+ run.id,
+ self._make_event("task_started", agent_id=agent_spec.id, task_id=tid),
+ )
+
+ # Build upstream summaries from input_from mapping
+ upstream: dict[str, str] = {}
+ for context_key, source_task_id in task.input_from.items():
+ if source_task_id in task_summaries:
+ upstream[context_key] = task_summaries[source_task_id]
+
+ future = executor.submit(
+ self._run_worker_with_retries,
+ agent_spec=agent_spec,
+ task=task,
+ upstream_summaries=upstream,
+ user_vars=run.user_vars,
+ run_dir=run_dir,
+ event_callback=_event_callback,
+ run_id=run.id,
+ )
+ futures[future] = tid
+
+ # Collect results
+ for future in as_completed(futures):
+ tid = futures[future]
+ try:
+ results[tid] = future.result()
+ except Exception as exc:
+ logger.error("Worker for task %s raised exception", tid, exc_info=True)
+ results[tid] = WorkerResult(
+ status="failed", summary="",
+ error=str(exc),
+ )
+
+ return results
+
+ def _run_worker_with_retries(
+ self,
+ agent_spec: SwarmAgentSpec,
+ task: SwarmTask,
+ upstream_summaries: dict[str, str],
+ user_vars: dict[str, str],
+ run_dir: Path,
+ event_callback: Callable[[SwarmEvent], None] | None,
+ run_id: str,
+ ) -> WorkerResult:
+ """Run a worker with automatic retry on failure.
+
+ Retries up to agent_spec.max_retries times. Emits a "task_retry" event
+ before each retry attempt. Token counts are accumulated across all
+ attempts.
+
+ Args:
+ agent_spec: Agent role specification.
+ task: The task to execute.
+ upstream_summaries: Summaries from upstream tasks.
+ user_vars: User-provided template variables.
+ run_dir: Run directory path.
+ event_callback: Optional event callback.
+ run_id: Run identifier for event emission.
+
+ Returns:
+ WorkerResult from the last attempt.
+ """
+ max_retries = agent_spec.max_retries
+ cumulative_input_tokens = 0
+ cumulative_output_tokens = 0
+ result: WorkerResult | None = None
+
+ for attempt in range(max_retries + 1):
+ if attempt > 0:
+ self._emit_event(
+ run_id,
+ self._make_event(
+ "task_retry",
+ agent_id=agent_spec.id,
+ task_id=task.id,
+ data={"attempt": attempt + 1, "max_retries": max_retries,
+ "previous_error": result.error if result else None},
+ ),
+ )
+ logger.info(
+ "Retrying task %s (attempt %d/%d)",
+ task.id, attempt + 1, max_retries + 1,
+ )
+
+ result = run_worker(
+ agent_spec=agent_spec,
+ task=task,
+ upstream_summaries=upstream_summaries,
+ user_vars=user_vars,
+ run_dir=run_dir,
+ event_callback=event_callback,
+ )
+
+ cumulative_input_tokens += result.input_tokens
+ cumulative_output_tokens += result.output_tokens
+
+ if result.status != "failed":
+ # Success (or timeout/token_limit/completed) โ€” no more retries
+ result = result.model_copy(update={
+ "input_tokens": cumulative_input_tokens,
+ "output_tokens": cumulative_output_tokens,
+ })
+ return result
+
+ # All retries exhausted, return the last failed result with cumulative tokens
+ if result is not None:
+ result = result.model_copy(update={
+ "input_tokens": cumulative_input_tokens,
+ "output_tokens": cumulative_output_tokens,
+ })
+ return result # type: ignore[return-value]
+
+ def _cancel_remaining_tasks(
+ self,
+ task_store: TaskStore,
+ current_layer_ids: list[str],
+ all_tasks: list[SwarmTask],
+ ) -> None:
+ """Mark all non-completed tasks as cancelled.
+
+ Args:
+ task_store: TaskStore for persistence.
+ current_layer_ids: Task IDs in the current (interrupted) layer.
+ all_tasks: All tasks in the run.
+ """
+ for task in all_tasks:
+ if task.status not in (TaskStatus.completed, TaskStatus.failed):
+ try:
+ task_store.update_status(task.id, TaskStatus.cancelled)
+ except Exception:
+ logger.warning("Failed to cancel task %s", task.id, exc_info=True)
diff --git a/agent/src/swarm/store.py b/agent/src/swarm/store.py
new file mode 100644
index 000000000..303781d04
--- /dev/null
+++ b/agent/src/swarm/store.py
@@ -0,0 +1,181 @@
+"""Swarm multi-agent system โ€” run state persistence.
+
+File-system-based persistence for SwarmRun. Directory structure:
+ .swarm/runs/{run_id}/
+ โ”œโ”€โ”€ run.json # SwarmRun state (atomic write)
+ โ”œโ”€โ”€ events.jsonl # append-only event log
+ โ”œโ”€โ”€ tasks/ # task state files
+ โ”œโ”€โ”€ inboxes/ # agent message inboxes
+ โ””โ”€โ”€ artifacts/ # agent outputs
+"""
+
+from __future__ import annotations
+
+import json
+import threading
+from pathlib import Path
+
+from src.swarm.models import SwarmEvent, SwarmRun
+
+
+class SwarmStore:
+ """File-based persistence store for SwarmRun.
+
+ Each run is stored under base_dir/{run_id}/. run.json uses atomic writes
+ (write to .tmp then rename) to prevent corruption. events.jsonl is append-only
+ and supports offset-based reads for SSE streaming.
+
+ Attributes:
+ base_dir: Storage root directory, typically agent/.swarm/runs.
+ """
+
+ def __init__(self, base_dir: Path) -> None:
+ """Initialize SwarmStore.
+
+ Args:
+ base_dir: Storage root directory path.
+ """
+ self.base_dir = base_dir
+ self._write_lock = threading.Lock()
+
+ def run_dir(self, run_id: str) -> Path:
+ """Return the directory path for a given run.
+
+ Args:
+ run_id: Run identifier.
+
+ Returns:
+ Path to the run directory.
+ """
+ return self.base_dir / run_id
+
+ def create_run(self, run: SwarmRun) -> Path:
+ """Create the directory structure for a new run and write initial state.
+
+ Args:
+ run: SwarmRun instance.
+
+ Returns:
+ Path to the created run directory.
+
+ Raises:
+ FileExistsError: If the run directory already exists.
+ """
+ rd = self.run_dir(run.id)
+ rd.mkdir(parents=True, exist_ok=False)
+ (rd / "tasks").mkdir()
+ (rd / "inboxes").mkdir()
+ (rd / "artifacts").mkdir()
+ self._atomic_write(rd / "run.json", run.model_dump_json(indent=2))
+ return rd
+
+ def load_run(self, run_id: str) -> SwarmRun | None:
+ """Load the state for a given run.
+
+ Args:
+ run_id: Run identifier.
+
+ Returns:
+ SwarmRun instance, or None if not found.
+ """
+ run_file = self.run_dir(run_id) / "run.json"
+ if not run_file.exists():
+ return None
+ return SwarmRun.model_validate_json(run_file.read_text(encoding="utf-8"))
+
+ def update_run(self, run: SwarmRun) -> None:
+ """Atomically update run state.
+
+ Args:
+ run: Updated SwarmRun instance.
+
+ Raises:
+ FileNotFoundError: If the run directory does not exist.
+ """
+ rd = self.run_dir(run.id)
+ if not rd.exists():
+ raise FileNotFoundError(f"Run directory not found: {rd}")
+ self._atomic_write(rd / "run.json", run.model_dump_json(indent=2))
+
+ def list_runs(self, limit: int = 50) -> list[SwarmRun]:
+ """List all runs sorted by created_at descending.
+
+ Args:
+ limit: Maximum number of runs to return.
+
+ Returns:
+ List of SwarmRun instances.
+ """
+ if not self.base_dir.exists():
+ return []
+
+ runs: list[SwarmRun] = []
+ for entry in self.base_dir.iterdir():
+ if not entry.is_dir():
+ continue
+ run_file = entry / "run.json"
+ if run_file.exists():
+ try:
+ run = SwarmRun.model_validate_json(
+ run_file.read_text(encoding="utf-8")
+ )
+ runs.append(run)
+ except (json.JSONDecodeError, ValueError):
+ continue
+
+ runs.sort(key=lambda r: r.created_at, reverse=True)
+ return runs[:limit]
+
+ def append_event(self, run_id: str, event: SwarmEvent) -> None:
+ """Append an event to events.jsonl.
+
+ Args:
+ run_id: Run identifier.
+ event: Event to append.
+
+ Raises:
+ FileNotFoundError: If the run directory does not exist.
+ """
+ rd = self.run_dir(run_id)
+ if not rd.exists():
+ raise FileNotFoundError(f"Run directory not found: {rd}")
+ events_file = rd / "events.jsonl"
+ with self._write_lock:
+ with events_file.open("a", encoding="utf-8") as f:
+ f.write(event.model_dump_json() + "\n")
+
+ def read_events(
+ self, run_id: str, after_index: int = 0
+ ) -> list[SwarmEvent]:
+ """Read the event log with optional offset for SSE incremental streaming.
+
+ Args:
+ run_id: Run identifier.
+ after_index: Skip the first N events and return from event N+1 onward.
+
+ Returns:
+ List of SwarmEvent instances.
+ """
+ events_file = self.run_dir(run_id) / "events.jsonl"
+ if not events_file.exists():
+ return []
+
+ events: list[SwarmEvent] = []
+ lines = events_file.read_text(encoding="utf-8").strip().splitlines()
+ for line in lines[after_index:]:
+ stripped = line.strip()
+ if stripped:
+ events.append(SwarmEvent.model_validate_json(stripped))
+ return events
+
+ def _atomic_write(self, path: Path, content: str) -> None:
+ """Atomically write a file: write to .tmp then rename.
+
+ Args:
+ path: Target file path.
+ content: File content.
+ """
+ tmp_path = path.with_suffix(".tmp")
+ with self._write_lock:
+ tmp_path.write_text(content, encoding="utf-8")
+ tmp_path.replace(path)
diff --git a/agent/src/swarm/task_store.py b/agent/src/swarm/task_store.py
new file mode 100644
index 000000000..17c2ec004
--- /dev/null
+++ b/agent/src/swarm/task_store.py
@@ -0,0 +1,248 @@
+"""Swarm multi-agent system โ€” Task persistence and DAG algorithms.
+
+Each task is stored independently as tasks/task-{id}.json with full CRUD support.
+Provides DAG algorithms: dependency resolution, cycle detection, and topological layering.
+"""
+
+from __future__ import annotations
+
+import threading
+from collections import defaultdict, deque
+from pathlib import Path
+
+from src.swarm.models import SwarmTask, TaskStatus
+
+
+class TaskStore:
+ """File-based persistence layer for tasks.
+
+ Each task is stored at run_dir/tasks/task-{id}.json.
+
+ Attributes:
+ run_dir: Root directory of the current run.
+ """
+
+ def __init__(self, run_dir: Path) -> None:
+ """Initialize TaskStore.
+
+ Args:
+ run_dir: Path to .swarm/runs/{run_id}/ directory.
+ """
+ self.run_dir = run_dir
+ self._tasks_dir = run_dir / "tasks"
+ self._tasks_dir.mkdir(parents=True, exist_ok=True)
+ self._lock = threading.Lock()
+
+ def _task_path(self, task_id: str) -> Path:
+ """Return the file path for a task.
+
+ Args:
+ task_id: Task ID.
+
+ Returns:
+ Path to the task JSON file.
+ """
+ return self._tasks_dir / f"task-{task_id}.json"
+
+ def save_task(self, task: SwarmTask) -> None:
+ """Save or overwrite task state.
+
+ Args:
+ task: SwarmTask instance.
+ """
+ path = self._task_path(task.id)
+ tmp_path = path.with_suffix(".tmp")
+ with self._lock:
+ tmp_path.write_text(task.model_dump_json(indent=2), encoding="utf-8")
+ tmp_path.replace(path)
+
+ def load_task(self, task_id: str) -> SwarmTask:
+ """Load a task by ID.
+
+ Args:
+ task_id: Task ID.
+
+ Returns:
+ SwarmTask instance.
+
+ Raises:
+ FileNotFoundError: If the task file does not exist.
+ """
+ path = self._task_path(task_id)
+ if not path.exists():
+ raise FileNotFoundError(f"Task not found: {path}")
+ return SwarmTask.model_validate_json(path.read_text(encoding="utf-8"))
+
+ def load_all(self) -> list[SwarmTask]:
+ """Load all tasks for the current run.
+
+ Returns:
+ List of SwarmTask sorted by ID.
+ """
+ tasks: list[SwarmTask] = []
+ for path in sorted(self._tasks_dir.glob("task-*.json")):
+ tasks.append(
+ SwarmTask.model_validate_json(path.read_text(encoding="utf-8"))
+ )
+ return tasks
+
+ def update_status(
+ self, task_id: str, status: TaskStatus, **kwargs: str | int | list[str] | None
+ ) -> SwarmTask:
+ """Update task status and additional fields.
+
+ Args:
+ task_id: Task ID.
+ status: New status.
+ **kwargs: Optional fields such as summary, error, completed_at, artifacts, etc.
+
+ Returns:
+ Updated SwarmTask instance.
+ """
+ task = self.load_task(task_id)
+ updated_data = task.model_dump()
+ updated_data["status"] = status
+ for key, value in kwargs.items():
+ if key in updated_data:
+ updated_data[key] = value
+ updated_task = SwarmTask.model_validate(updated_data)
+ self.save_task(updated_task)
+ return updated_task
+
+
+def resolve_dependencies(tasks_dir: Path, completed_task_id: str) -> list[str]:
+ """Remove a completed task ID from blocked_by in all downstream tasks.
+
+ Scans all task files under tasks_dir and removes completed_task_id from each
+ task's blocked_by list. If a task's blocked_by becomes empty and its status
+ is blocked, it is marked as newly unblocked (pending).
+
+ Args:
+ tasks_dir: Path to the tasks/ directory.
+ completed_task_id: ID of the just-completed task.
+
+ Returns:
+ List of newly unblocked task IDs (blocked_by went from non-empty to empty).
+ """
+ newly_unblocked: list[str] = []
+
+ for path in tasks_dir.glob("task-*.json"):
+ task = SwarmTask.model_validate_json(path.read_text(encoding="utf-8"))
+ if completed_task_id not in task.blocked_by:
+ continue
+
+ new_blocked_by = [tid for tid in task.blocked_by if tid != completed_task_id]
+ updated_data = task.model_dump()
+ updated_data["blocked_by"] = new_blocked_by
+
+ if not new_blocked_by and task.status == TaskStatus.blocked:
+ updated_data["status"] = TaskStatus.pending
+ newly_unblocked.append(task.id)
+
+ updated_task = SwarmTask.model_validate(updated_data)
+ tmp_path = path.with_suffix(".tmp")
+ tmp_path.write_text(updated_task.model_dump_json(indent=2), encoding="utf-8")
+ tmp_path.replace(path)
+
+ return newly_unblocked
+
+
+def validate_dag(tasks: list[SwarmTask]) -> None:
+ """DFS cycle detection to ensure the task DAG is acyclic.
+
+ Args:
+ tasks: List of SwarmTask.
+
+ Raises:
+ ValueError: If a cycle is detected; message includes the cycle path.
+ """
+ graph: dict[str, list[str]] = {t.id: list(t.depends_on) for t in tasks}
+ all_ids = {t.id for t in tasks}
+
+ for task in tasks:
+ for dep in task.depends_on:
+ if dep not in all_ids:
+ raise ValueError(
+ f"Task '{task.id}' depends on unknown task '{dep}'"
+ )
+
+ WHITE, GRAY, BLACK = 0, 1, 2
+ color: dict[str, int] = {tid: WHITE for tid in all_ids}
+ path: list[str] = []
+
+ def dfs(node: str) -> None:
+ """DFS traversal to detect back edges.
+
+ Args:
+ node: Current node ID.
+
+ Raises:
+ ValueError: If a cycle is detected.
+ """
+ color[node] = GRAY
+ path.append(node)
+
+ for neighbor in graph.get(node, []):
+ if color[neighbor] == GRAY:
+ cycle_start = path.index(neighbor)
+ cycle = path[cycle_start:] + [neighbor]
+ raise ValueError(
+ f"Cycle detected in task DAG: {' -> '.join(cycle)}"
+ )
+ if color[neighbor] == WHITE:
+ dfs(neighbor)
+
+ path.pop()
+ color[node] = BLACK
+
+ for tid in all_ids:
+ if color[tid] == WHITE:
+ dfs(tid)
+
+
+def topological_layers(tasks: list[SwarmTask]) -> list[list[str]]:
+ """Kahn's algorithm topological layering; tasks in the same layer can run in parallel.
+
+ Args:
+ tasks: List of SwarmTask (must be a valid acyclic DAG).
+
+ Returns:
+ List of layers in execution order; each layer contains task IDs that can
+ run in parallel.
+
+ Raises:
+ ValueError: If the DAG contains a cycle (topological sort cannot complete).
+ """
+ in_degree: dict[str, int] = {t.id: 0 for t in tasks}
+ dependents: dict[str, list[str]] = defaultdict(list)
+
+ for task in tasks:
+ in_degree[task.id] = len(task.depends_on)
+ for dep in task.depends_on:
+ dependents[dep].append(task.id)
+
+ queue: deque[str] = deque(
+ tid for tid, deg in in_degree.items() if deg == 0
+ )
+
+ layers: list[list[str]] = []
+ processed = 0
+
+ while queue:
+ layer: list[str] = list(queue)
+ queue.clear()
+ layers.append(layer)
+ processed += len(layer)
+
+ for tid in layer:
+ for downstream in dependents[tid]:
+ in_degree[downstream] -= 1
+ if in_degree[downstream] == 0:
+ queue.append(downstream)
+
+ if processed != len(tasks):
+ raise ValueError(
+ f"DAG contains a cycle: processed {processed}/{len(tasks)} tasks"
+ )
+
+ return layers
diff --git a/agent/src/swarm/worker.py b/agent/src/swarm/worker.py
new file mode 100644
index 000000000..3eaa905e9
--- /dev/null
+++ b/agent/src/swarm/worker.py
@@ -0,0 +1,422 @@
+"""Swarm Worker: standalone worker execution engine based on the SubagentTool ReAct pattern.
+
+Reuses the SubagentTool ReAct loop (ChatLLM.chat + manual for-loop) without
+instantiating AgentLoop, keeping the agent core unchanged.
+"""
+
+from __future__ import annotations
+
+import json
+import logging
+import time
+from datetime import datetime, timezone
+from pathlib import Path
+from typing import Callable
+
+from src.agent.context import ContextBuilder
+from src.agent.skills import SkillsLoader
+from src.providers.chat import ChatLLM
+from src.swarm.models import (
+ SwarmAgentSpec,
+ SwarmEvent,
+ SwarmTask,
+ WorkerResult,
+)
+from src.tools import build_filtered_registry
+
+logger = logging.getLogger(__name__)
+
+_DEFAULT_MAX_ITERATIONS = 50
+_DEFAULT_TIMEOUT_SECONDS = 300
+_MAX_TOKEN_ESTIMATE = 60_000
+
+
+def _emit(
+ callback: Callable[[SwarmEvent], None] | None,
+ event_type: str,
+ agent_id: str,
+ task_id: str,
+ data: dict | None = None,
+) -> None:
+ """Emit a swarm event via callback if provided.
+
+ Args:
+ callback: Optional event callback function.
+ event_type: Event type string.
+ agent_id: Agent identifier.
+ task_id: Task identifier.
+ data: Additional event data.
+ """
+ if callback is None:
+ return
+ event = SwarmEvent(
+ type=event_type,
+ agent_id=agent_id,
+ task_id=task_id,
+ data=data or {},
+ timestamp=datetime.now(timezone.utc).isoformat(),
+ )
+ try:
+ callback(event)
+ except Exception:
+ logger.warning("Event callback failed for %s", event_type, exc_info=True)
+
+
+def _filter_skill_descriptions(loader: SkillsLoader, skill_names: list[str]) -> str:
+ """Return skill descriptions filtered to the given whitelist.
+
+ Args:
+ loader: SkillsLoader instance with all skills loaded.
+ skill_names: Skill names to include. Empty list means include all.
+
+ Returns:
+ Formatted skill descriptions string.
+ """
+ if not skill_names:
+ return loader.get_descriptions()
+ lines: list[str] = []
+ for skill in loader.skills:
+ if skill.name in skill_names:
+ lines.append(f" - {skill.name}: {skill.description}")
+ return "\n".join(lines) if lines else "(no matching skills)"
+
+
+def _estimate_tokens(
+ messages: list[dict],
+ response: object,
+) -> tuple[int, int]:
+ """Estimate token usage for a single LLM call.
+
+ Tries to read actual token counts from the LLM response metadata
+ (LangChain's usage_metadata). Falls back to character-length estimation
+ (len // 4) if metadata is unavailable.
+
+ Args:
+ messages: Messages sent to the LLM for this call.
+ response: LLMResponse from ChatLLM.chat().
+
+ Returns:
+ Tuple of (input_tokens, output_tokens).
+ """
+ from src.providers.chat import LLMResponse
+
+ input_tokens = 0
+ output_tokens = 0
+
+ # response is an LLMResponse; it doesn't carry raw metadata.
+ # Estimate: input = serialized messages length // 4, output = content length // 4
+ try:
+ input_tokens = len(json.dumps(messages, ensure_ascii=False)) // 4
+ except Exception:
+ input_tokens = 0
+
+ if isinstance(response, LLMResponse):
+ output_tokens = len(response.content or "") // 4
+ else:
+ output_tokens = 0
+
+ return input_tokens, output_tokens
+
+
+def build_worker_prompt(
+ agent_spec: SwarmAgentSpec,
+ upstream_summaries: dict[str, str],
+ skill_descriptions: str,
+) -> str:
+ """Build the worker's system prompt with role, upstream context, and skills.
+
+ Args:
+ agent_spec: The agent's role specification.
+ upstream_summaries: Mapping of context_key -> upstream task summary.
+ skill_descriptions: Pre-filtered skill description text.
+
+ Returns:
+ Complete system prompt string for the worker LLM.
+ """
+ upstream_block = ""
+ if upstream_summaries:
+ sections = []
+ for key, summary in upstream_summaries.items():
+ sections.append(f"### {key}\n{summary}")
+ upstream_block = (
+ "## Upstream Context (from previous agents)\n\n"
+ + "\n\n".join(sections)
+ )
+
+ prompt_parts = [
+ f"## Role\n\n{agent_spec.role}",
+ agent_spec.system_prompt.replace("{upstream_context}", upstream_block),
+ ]
+
+ if skill_descriptions and skill_descriptions != "(no matching skills)":
+ prompt_parts.append(
+ f"## Available Skills (use load_skill to access full documentation)\n\n{skill_descriptions}"
+ )
+
+ prompt_parts.append(
+ "## Execution Rules\n\n"
+ "You have a HARD LIMIT of 20 tool calls. After that you will be cut off. Work efficiently.\n\n"
+ "**Phase 1 โ€” Plan (0 tool calls):** Before calling any tool, state your plan in 3-5 bullet points.\n\n"
+ "**Phase 2 โ€” Execute (โ‰ค15 tool calls):**\n"
+ "- `load_skill` first to get data access methods and analysis patterns.\n"
+ "- Write ONE focused Python script via `write_file`, then run it with `bash python script.py`.\n"
+ "- Do NOT write long Python code inside bash. Use write_file + bash.\n"
+ "- Do NOT fetch data with curl/requests. Use the patterns from load_skill (yfinance, OKX API via Python).\n"
+ "- If a script fails, read the error, fix with `edit_file`, re-run. Max 2 retries per script.\n\n"
+ "**Phase 3 โ€” Summarize (0 tool calls):**\n"
+ "- Write your final findings as a concise markdown summary directly in your response.\n"
+ "- Include specific numbers, dates, and actionable conclusions.\n"
+ "- Respond in the same language as the task prompt."
+ )
+
+ return "\n\n".join(prompt_parts)
+
+
+def run_worker(
+ agent_spec: SwarmAgentSpec,
+ task: SwarmTask,
+ upstream_summaries: dict[str, str],
+ user_vars: dict[str, str],
+ run_dir: Path,
+ event_callback: Callable[[SwarmEvent], None] | None = None,
+) -> WorkerResult:
+ """Execute a single worker task using the SubagentTool ReAct pattern.
+
+ Follows the exact same ReAct loop as SubagentTool:
+ 1. Build filtered ToolRegistry from agent_spec.tools
+ 2. Create ChatLLM with agent_spec.model_name
+ 3. Build system prompt with role + upstream summaries + filtered skills
+ 4. Resolve task.prompt_template with user_vars
+ 5. Run ReAct loop (for iteration in range(max_iterations))
+ 6. Write summary to artifacts/{agent_id}/summary.md
+ 7. Return WorkerResult
+
+ Args:
+ agent_spec: Agent role specification with tools/skills/model config.
+ task: The task to execute, including prompt template.
+ upstream_summaries: Summaries from upstream tasks keyed by input_from keys.
+ user_vars: User-provided variables for template rendering.
+ run_dir: Path to .swarm/runs/{run_id}/ directory.
+ event_callback: Optional callback for swarm events.
+
+ Returns:
+ WorkerResult with status, summary, artifacts, and iteration count.
+ """
+ agent_id = agent_spec.id
+ task_id = task.id
+ max_iterations = agent_spec.max_iterations or _DEFAULT_MAX_ITERATIONS
+ timeout = agent_spec.timeout_seconds or _DEFAULT_TIMEOUT_SECONDS
+
+ _emit(event_callback, "worker_started", agent_id, task_id)
+
+ # 1. Build filtered tool registry
+ registry = build_filtered_registry(agent_spec.tools)
+
+ # 2. Create LLM
+ llm = ChatLLM(model_name=agent_spec.model_name)
+
+ # 3. Build system prompt with filtered skills
+ skills_loader = SkillsLoader()
+ skill_desc = _filter_skill_descriptions(skills_loader, agent_spec.skills)
+ system_prompt = build_worker_prompt(agent_spec, upstream_summaries, skill_desc)
+
+ # 4. Resolve prompt template with user vars
+ try:
+ user_prompt = task.prompt_template.format(**user_vars)
+ except KeyError as exc:
+ error_msg = f"Missing variable in prompt template: {exc}"
+ _emit(event_callback, "worker_failed", agent_id, task_id, {"error": error_msg})
+ return WorkerResult(
+ status="failed", summary="", iterations=0, error=error_msg,
+ input_tokens=0, output_tokens=0,
+ )
+
+ # 5. Build initial messages
+ messages: list[dict] = [
+ {"role": "system", "content": system_prompt},
+ {"role": "user", "content": user_prompt},
+ ]
+
+ # 6. ReAct loop (EXACTLY like SubagentTool)
+ artifact_dir = run_dir / "artifacts" / agent_id
+ artifact_dir.mkdir(parents=True, exist_ok=True)
+
+ t0 = time.monotonic()
+ iteration = 0
+ summary = ""
+ total_input_tokens = 0
+ total_output_tokens = 0
+
+ # Threshold for injecting a "wrap up" nudge (80% of budget)
+ wrap_up_at = max(1, int(max_iterations * 0.8))
+ last_assistant_content = ""
+
+ _KEEP_RECENT_TOOLS = 3
+
+ for iteration in range(max_iterations):
+ # Microcompact: clear old tool results to prevent token bloat
+ tool_msgs = [m for m in messages if m.get("role") == "tool"]
+ if len(tool_msgs) > _KEEP_RECENT_TOOLS:
+ for msg in tool_msgs[:-_KEEP_RECENT_TOOLS]:
+ content = msg.get("content", "")
+ if isinstance(content, str) and len(content) > 100:
+ msg["content"] = "[cleared]"
+
+ # Check timeout
+ elapsed = time.monotonic() - t0
+ if elapsed > timeout:
+ summary = last_assistant_content or f"Worker timed out after {elapsed:.0f}s ({iteration} iterations)"
+ _emit(event_callback, "worker_timeout", agent_id, task_id, {"elapsed": elapsed})
+ _write_summary(artifact_dir, summary)
+ return WorkerResult(
+ status="timeout",
+ summary=summary,
+ artifact_paths=_collect_artifacts(artifact_dir),
+ iterations=iteration,
+ input_tokens=total_input_tokens,
+ output_tokens=total_output_tokens,
+ )
+
+ # Check token estimate
+ token_estimate = len(json.dumps(messages, ensure_ascii=False)) // 4
+ if token_estimate > _MAX_TOKEN_ESTIMATE:
+ summary = last_assistant_content or f"Worker context too large (~{token_estimate} tokens, {iteration} iterations)"
+ _emit(event_callback, "worker_token_limit", agent_id, task_id, {"tokens": token_estimate})
+ _write_summary(artifact_dir, summary)
+ return WorkerResult(
+ status="token_limit",
+ summary=summary,
+ artifact_paths=_collect_artifacts(artifact_dir),
+ iterations=iteration,
+ input_tokens=total_input_tokens,
+ output_tokens=total_output_tokens,
+ )
+
+ # Inject wrap-up nudge when approaching iteration limit
+ if iteration == wrap_up_at:
+ remaining = max_iterations - iteration
+ messages.append({
+ "role": "user",
+ "content": (
+ f"[SYSTEM] You have {remaining} iterations remaining. "
+ "Stop calling tools and immediately output your final analysis summary as plain text. "
+ "Do not call any more tools."
+ ),
+ })
+
+ # On last iteration, call LLM without tool definitions to force text output
+ is_last_iteration = iteration == max_iterations - 1
+ tool_defs = None if is_last_iteration else registry.get_definitions()
+
+ # Call LLM with remaining timeout
+ try:
+ remaining_timeout = max(10, int(timeout - elapsed))
+ response = llm.chat(messages, tools=tool_defs, timeout=remaining_timeout)
+ except Exception as exc:
+ error_msg = f"LLM call failed at iteration {iteration}: {exc}"
+ logger.warning(error_msg)
+ _emit(event_callback, "worker_failed", agent_id, task_id, {"error": error_msg})
+ return WorkerResult(
+ status="failed",
+ summary=last_assistant_content or "",
+ artifact_paths=_collect_artifacts(artifact_dir),
+ iterations=iteration,
+ error=error_msg,
+ input_tokens=total_input_tokens,
+ output_tokens=total_output_tokens,
+ )
+
+ # Accumulate token counts
+ iter_in, iter_out = _estimate_tokens(messages, response)
+ total_input_tokens += iter_in
+ total_output_tokens += iter_out
+
+ # Emit agent thinking text for live streaming
+ if response.content and response.content.strip():
+ _emit(event_callback, "worker_text", agent_id, task_id,
+ {"content": response.content, "iteration": iteration})
+
+ # Track last meaningful assistant content
+ if response.content and len(response.content.strip()) > 20:
+ last_assistant_content = response.content
+
+ # If no tool calls, this is the final response
+ if not response.has_tool_calls:
+ summary = response.content or last_assistant_content or "(no summary)"
+ _emit(event_callback, "worker_completed", agent_id, task_id, {"iterations": iteration + 1})
+ _write_summary(artifact_dir, summary)
+ return WorkerResult(
+ status="completed",
+ summary=summary,
+ artifact_paths=_collect_artifacts(artifact_dir),
+ iterations=iteration + 1,
+ input_tokens=total_input_tokens,
+ output_tokens=total_output_tokens,
+ )
+
+ # Append assistant message with tool calls
+ messages.append(
+ ContextBuilder.format_assistant_tool_calls(
+ response.tool_calls, content=response.content
+ )
+ )
+
+ # Execute each tool call โ€” inject run_dir so tools write inside artifact_dir
+ for tc in response.tool_calls:
+ _emit(
+ event_callback, "tool_call", agent_id, task_id,
+ {"tool": tc.name, "iteration": iteration},
+ )
+ tc_start = time.monotonic()
+ args = {**tc.arguments, "run_dir": str(artifact_dir)}
+ result = registry.execute(tc.name, args)
+ tc_elapsed = time.monotonic() - tc_start
+ _emit(
+ event_callback, "tool_result", agent_id, task_id,
+ {"tool": tc.name, "elapsed_ms": int(tc_elapsed * 1000),
+ "status": "ok", "iteration": iteration},
+ )
+ messages.append(
+ ContextBuilder.format_tool_result(tc.id, tc.name, result[:10_000])
+ )
+
+ # Hit iteration limit โ€” use last meaningful content as summary
+ summary = last_assistant_content or f"Worker hit iteration limit ({max_iterations} iterations)"
+ _emit(event_callback, "worker_iteration_limit", agent_id, task_id)
+ _write_summary(artifact_dir, summary)
+ return WorkerResult(
+ status="completed",
+ summary=summary,
+ artifact_paths=_collect_artifacts(artifact_dir),
+ iterations=max_iterations,
+ input_tokens=total_input_tokens,
+ output_tokens=total_output_tokens,
+ )
+
+
+def _write_summary(artifact_dir: Path, summary: str) -> None:
+ """Write worker summary to artifacts directory.
+
+ Args:
+ artifact_dir: Path to artifacts/{agent_id}/ directory.
+ summary: Summary text to write.
+ """
+ try:
+ summary_path = artifact_dir / "summary.md"
+ summary_path.write_text(summary, encoding="utf-8")
+ except Exception:
+ logger.warning("Failed to write summary to %s", artifact_dir, exc_info=True)
+
+
+def _collect_artifacts(artifact_dir: Path) -> list[str]:
+ """Collect all artifact file paths from agent's artifact directory.
+
+ Args:
+ artifact_dir: Path to artifacts/{agent_id}/ directory.
+
+ Returns:
+ List of artifact file path strings.
+ """
+ if not artifact_dir.exists():
+ return []
+ return [str(p) for p in artifact_dir.iterdir() if p.is_file()]
diff --git a/agent/src/tools/__init__.py b/agent/src/tools/__init__.py
new file mode 100644
index 000000000..580d77abf
--- /dev/null
+++ b/agent/src/tools/__init__.py
@@ -0,0 +1,61 @@
+"""Tool registry: v7 atomic tools + domain tools."""
+
+from src.agent.tools import ToolRegistry
+
+
+def build_registry() -> ToolRegistry:
+ """Build the v7 tool registry (atomic tools + domain tools).
+
+ Returns:
+ ToolRegistry containing all v7 tools.
+ """
+ from src.tools.bash_tool import BashTool
+ from src.tools.read_file_tool import ReadFileTool
+ from src.tools.write_file_tool import WriteFileTool
+ from src.tools.edit_file_tool import EditFileTool
+ from src.tools.load_skill_tool import LoadSkillTool
+ from src.tools.backtest_tool import BacktestTool
+ from src.tools.pattern_tool import PatternTool
+ from src.tools.compact_tool import CompactTool
+ from src.tools.subagent_tool import SubagentTool
+ from src.tools.task_tools import TaskCreateTool, TaskUpdateTool, TaskListTool, TaskGetTool
+ from src.tools.background_tools import BackgroundRunTool, CheckBackgroundTool
+ from src.tools.web_reader_tool import WebReaderTool
+ from src.tools.doc_reader_tool import DocReaderTool
+ from src.tools.factor_analysis_tool import FactorAnalysisTool
+ from src.tools.options_pricing_tool import OptionsPricingTool
+ from src.tools.swarm_tool import SwarmTool
+ registry = ToolRegistry()
+ for tool in [BashTool(), ReadFileTool(), WriteFileTool(),
+ EditFileTool(), LoadSkillTool(), BacktestTool(),
+ PatternTool(), CompactTool(), SubagentTool(),
+ TaskCreateTool(), TaskUpdateTool(), TaskListTool(), TaskGetTool(),
+ BackgroundRunTool(), CheckBackgroundTool(),
+ WebReaderTool(), DocReaderTool(),
+ FactorAnalysisTool(), OptionsPricingTool(), SwarmTool()]:
+ registry.register(tool)
+ return registry
+
+
+def build_filtered_registry(tool_names: list[str]) -> ToolRegistry:
+ """Build a ToolRegistry with only specified tools.
+
+ Creates the full registry, then filters to include only tools
+ whose names appear in the provided list. Unknown names are silently skipped.
+
+ Args:
+ tool_names: Tool names to include in the filtered registry.
+
+ Returns:
+ ToolRegistry containing only the requested tools.
+ """
+ full = build_registry()
+ filtered = ToolRegistry()
+ for name in tool_names:
+ tool = full.get(name)
+ if tool:
+ filtered.register(tool)
+ return filtered
+
+
+__all__ = ["build_registry", "build_filtered_registry"]
diff --git a/agent/src/tools/background_tools.py b/agent/src/tools/background_tools.py
new file mode 100644
index 000000000..bdd87c0e3
--- /dev/null
+++ b/agent/src/tools/background_tools.py
@@ -0,0 +1,103 @@
+"""Background tasks: thread execution + notification queue."""
+
+from __future__ import annotations
+
+import json
+import subprocess
+import threading
+import uuid
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+from src.agent.tools import BaseTool
+
+WORKDIR = Path(__file__).resolve().parents[2]
+
+
+class BackgroundManager:
+ """Background thread execution + notification queue."""
+
+ def __init__(self) -> None:
+ self.tasks: Dict[str, dict] = {}
+ self._notifications: List[dict] = []
+ self._lock = threading.Lock()
+
+ def run(self, command: str) -> str:
+ """Start a background task and return its task_id.
+
+ Args:
+ command: Shell command to execute.
+
+ Returns:
+ JSON string containing status and task_id.
+ """
+ task_id = uuid.uuid4().hex[:8]
+ self.tasks[task_id] = {"status": "running", "result": None, "command": command}
+ threading.Thread(target=self._execute, args=(task_id, command), daemon=True).start()
+ return json.dumps({"status": "ok", "task_id": task_id, "message": f"Started: {command[:80]}"})
+
+ def _execute(self, task_id: str, command: str) -> None:
+ try:
+ r = subprocess.run(command, shell=True, cwd=WORKDIR,
+ capture_output=True, text=True, timeout=300,
+ encoding="utf-8", errors="replace")
+ output = (r.stdout + r.stderr).strip()[:50000]
+ status = "completed"
+ except subprocess.TimeoutExpired:
+ output, status = "Timeout (300s)", "timeout"
+ except Exception as e:
+ output, status = str(e), "error"
+ self.tasks[task_id]["status"] = status
+ self.tasks[task_id]["result"] = output or "(no output)"
+ with self._lock:
+ self._notifications.append({
+ "task_id": task_id, "status": status,
+ "command": command[:80], "result": (output or "")[:500],
+ })
+
+ def check(self, task_id: Optional[str] = None) -> str:
+ if task_id:
+ t = self.tasks.get(task_id)
+ if not t:
+ return json.dumps({"status": "error", "error": f"Unknown task {task_id}"})
+ return json.dumps({"status": t["status"], "command": t["command"][:60],
+ "result": t.get("result") or "(running)"}, ensure_ascii=False)
+ lines = [f"{tid}: [{t['status']}] {t['command'][:60]}" for tid, t in self.tasks.items()]
+ return "\n".join(lines) if lines else "No background tasks."
+
+ def drain_notifications(self) -> List[dict]:
+ with self._lock:
+ notifs = list(self._notifications)
+ self._notifications.clear()
+ return notifs
+
+
+_BG = BackgroundManager()
+
+
+def get_background_manager() -> BackgroundManager:
+ """Return the global BackgroundManager singleton."""
+ return _BG
+
+
+class BackgroundRunTool(BaseTool):
+ name = "background_run"
+ description = "Run command in background thread. Returns task_id immediately. Use for long-running operations (ML training, large data processing)."
+ parameters = {"type": "object", "properties": {
+ "command": {"type": "string", "description": "Shell command to run in background"},
+ }, "required": ["command"]}
+
+ def execute(self, **kw: Any) -> str:
+ return _BG.run(kw["command"])
+
+
+class CheckBackgroundTool(BaseTool):
+ name = "check_background"
+ description = "Check background task status. Omit task_id to list all."
+ parameters = {"type": "object", "properties": {
+ "task_id": {"type": "string"},
+ }, "required": []}
+ repeatable = True
+
+ def execute(self, **kw: Any) -> str:
+ return _BG.check(kw.get("task_id"))
diff --git a/agent/src/tools/backtest_tool.py b/agent/src/tools/backtest_tool.py
new file mode 100644
index 000000000..a0d864711
--- /dev/null
+++ b/agent/src/tools/backtest_tool.py
@@ -0,0 +1,81 @@
+"""Backtest execution tool: validates config.json + signal_engine.py and runs the built-in engine."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+
+from src.agent.tools import BaseTool
+from src.core.runner import Runner
+
+
+def run_backtest(run_dir: str) -> str:
+ """Run backtest: validate config.json + signal_engine.py, invoke built-in engine.
+
+ Args:
+ run_dir: Path to the run directory.
+
+ Returns:
+ JSON-formatted execution result.
+ """
+ run_path = Path(run_dir)
+
+ config_path = run_path / "config.json"
+ if not config_path.exists():
+ return json.dumps({"status": "error", "error": "config.json not found"}, ensure_ascii=False)
+
+ try:
+ config = json.loads(config_path.read_text(encoding="utf-8"))
+ except json.JSONDecodeError as e:
+ return json.dumps({"status": "error", "error": f"config.json parse error: {e}"}, ensure_ascii=False)
+
+ if "source" not in config:
+ return json.dumps({"status": "error", "error": "config.json missing 'source' field (tushare/okx/yfinance)"}, ensure_ascii=False)
+
+ valid_sources = {"tushare", "okx", "yfinance", "auto"}
+ if config["source"] not in valid_sources:
+ return json.dumps({"status": "error", "error": f"source must be one of {valid_sources}, got: {config['source']}"}, ensure_ascii=False)
+
+ signal_path = run_path / "code" / "signal_engine.py"
+ if not signal_path.exists():
+ return json.dumps({"status": "error", "error": "code/signal_engine.py not found"}, ensure_ascii=False)
+
+ agent_root = Path(__file__).resolve().parents[2]
+ entry_script = agent_root / "backtest" / "runner.py"
+
+ runner = Runner(timeout=300)
+ result = runner.execute(
+ entry_script,
+ run_path,
+ cwd=agent_root,
+ cli_args=[str(run_path)],
+ )
+
+ artifacts_found = {name: str(path) for name, path in result.artifacts.items()}
+ return json.dumps({
+ "status": "ok" if result.success else "error",
+ "exit_code": result.exit_code,
+ "stdout": result.stdout[-2000:] if len(result.stdout) > 2000 else result.stdout,
+ "stderr": result.stderr[-2000:] if len(result.stderr) > 2000 else result.stderr,
+ "artifacts": artifacts_found,
+ "run_dir": run_dir,
+ }, ensure_ascii=False)
+
+
+class BacktestTool(BaseTool):
+ """Backtest execution tool."""
+
+ name = "backtest"
+ description = "Run backtest: validate config.json + signal_engine.py, invoke built-in engine."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "run_dir": {"type": "string", "description": "Path to the run directory"},
+ },
+ "required": ["run_dir"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs) -> str:
+ """Execute backtest."""
+ return run_backtest(kwargs["run_dir"])
diff --git a/agent/src/tools/bash_tool.py b/agent/src/tools/bash_tool.py
new file mode 100644
index 000000000..09664d631
--- /dev/null
+++ b/agent/src/tools/bash_tool.py
@@ -0,0 +1,71 @@
+"""Bash tool: execute shell commands under run_dir."""
+
+from __future__ import annotations
+
+import json
+import os
+import subprocess
+from typing import Any
+
+from src.agent.tools import BaseTool
+
+_OUTPUT_LIMIT = 50_000
+_DEFAULT_TIMEOUT = 120
+
+
+class BashTool(BaseTool):
+ """Execute shell commands in the working directory."""
+
+ name = "bash"
+ description = "Execute a shell command in the working directory. Use for installing packages, running scripts, or inspecting files."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "command": {"type": "string", "description": "Shell command to execute"},
+ },
+ "required": ["command"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs: Any) -> str:
+ """Execute a shell command.
+
+ Args:
+ **kwargs: Must include command. Optional run_dir used as cwd.
+
+ Returns:
+ JSON string with stdout, stderr, and exit_code.
+ """
+ command = kwargs["command"]
+ cwd = kwargs.get("run_dir")
+
+ try:
+ result = subprocess.run(
+ command,
+ shell=True,
+ cwd=cwd,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.PIPE,
+ text=True,
+ timeout=_DEFAULT_TIMEOUT,
+ encoding="utf-8",
+ errors="replace",
+ )
+ stdout = result.stdout[:_OUTPUT_LIMIT] if len(result.stdout) > _OUTPUT_LIMIT else result.stdout
+ stderr = result.stderr[:_OUTPUT_LIMIT] if len(result.stderr) > _OUTPUT_LIMIT else result.stderr
+ return json.dumps({
+ "status": "ok" if result.returncode == 0 else "error",
+ "exit_code": result.returncode,
+ "stdout": stdout,
+ "stderr": stderr,
+ }, ensure_ascii=False)
+ except subprocess.TimeoutExpired:
+ return json.dumps({
+ "status": "error",
+ "error": f"Command timed out after {_DEFAULT_TIMEOUT}s",
+ }, ensure_ascii=False)
+ except Exception as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
diff --git a/agent/src/tools/compact_tool.py b/agent/src/tools/compact_tool.py
new file mode 100644
index 000000000..5a8f93441
--- /dev/null
+++ b/agent/src/tools/compact_tool.py
@@ -0,0 +1,19 @@
+"""Compact tool: model-initiated context compression."""
+
+from __future__ import annotations
+
+import json
+from typing import Any
+
+from src.agent.tools import BaseTool
+
+
+class CompactTool(BaseTool):
+ """Compress conversation history to free context space."""
+
+ name = "compact"
+ description = "Compress conversation history to free context space. Call when the conversation feels long or you're losing track of earlier context."
+ parameters = {"type": "object", "properties": {}, "required": []}
+
+ def execute(self, **kwargs: Any) -> str:
+ return json.dumps({"status": "ok", "message": "Compression triggered"})
diff --git a/agent/src/tools/doc_reader_tool.py b/agent/src/tools/doc_reader_tool.py
new file mode 100644
index 000000000..a7cfdbd5e
--- /dev/null
+++ b/agent/src/tools/doc_reader_tool.py
@@ -0,0 +1,156 @@
+"""Document reader tool: full PDF text extraction with OCR fallback for image/scanned pages."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import List, Optional, Tuple
+
+from src.agent.tools import BaseTool
+
+_MAX_CHARS = 15000 # truncation threshold
+_MIN_TEXT_PER_PAGE = 50 # pages with fewer chars are treated as image pages and fall back to OCR
+_ocr_engine = None
+
+
+def _get_ocr():
+ """Lazily load the RapidOCR engine (first call takes ~1-2s)."""
+ global _ocr_engine
+ if _ocr_engine is None:
+ from rapidocr_onnxruntime import RapidOCR
+ _ocr_engine = RapidOCR()
+ return _ocr_engine
+
+
+def _ocr_page(doc, page_idx: int) -> str:
+ """Render a PDF page to an image and run OCR on it.
+
+ Args:
+ doc: pypdfium2 PdfDocument object.
+ page_idx: Zero-based page index.
+
+ Returns:
+ OCR-extracted text for the page.
+ """
+ import numpy as np
+
+ page = doc[page_idx]
+ bitmap = page.render(scale=300 / 72)
+ img = bitmap.to_numpy()
+
+ ocr = _get_ocr()
+ result, _ = ocr(img)
+ if not result:
+ return ""
+ # result is list of [bbox, text, confidence]
+ lines = [item[1] for item in result]
+ return "\n".join(lines)
+
+
+def read_document(file_path: str, pages: str = "") -> str:
+ """Extract text from a PDF document, falling back to OCR for image pages.
+
+ Args:
+ file_path: Absolute path to the PDF file.
+ pages: Page range (e.g. "1-10", "5", "1,3,5-8"); empty means all pages.
+
+ Returns:
+ JSON-formatted result.
+ """
+ path = Path(file_path)
+ if not path.exists():
+ return json.dumps({"status": "error", "error": f"File not found: {file_path}"}, ensure_ascii=False)
+ if path.suffix.lower() != ".pdf":
+ return json.dumps({"status": "error", "error": f"Only PDF supported, got: {path.suffix}"}, ensure_ascii=False)
+
+ try:
+ import pypdfium2 as pdfium
+
+ doc = pdfium.PdfDocument(str(path))
+ total_pages = len(doc)
+ target_pages = _parse_pages(pages, total_pages) if pages.strip() else list(range(total_pages))
+
+ texts = []
+ ocr_pages = 0
+ for i in target_pages:
+ if 0 <= i < total_pages:
+ page = doc[i]
+ text = page.get_textpage().get_text_range().strip()
+
+ if len(text) >= _MIN_TEXT_PER_PAGE:
+ texts.append(f"--- Page {i + 1} ---\n{text}")
+ else:
+ # Too little text โ€” fall back to OCR
+ ocr_text = _ocr_page(doc, i)
+ if ocr_text.strip():
+ texts.append(f"--- Page {i + 1} [OCR] ---\n{ocr_text}")
+ ocr_pages += 1
+ elif text:
+ # OCR also found nothing; use whatever text exists
+ texts.append(f"--- Page {i + 1} ---\n{text}")
+
+ doc.close()
+ full_text = "\n\n".join(texts)
+ char_count = len(full_text)
+
+ truncated = False
+ if char_count > _MAX_CHARS:
+ full_text = full_text[:_MAX_CHARS] + f"\n\n... (truncated, total {char_count} chars, {total_pages} pages)"
+ truncated = True
+
+ return json.dumps({
+ "status": "ok",
+ "file": path.name,
+ "total_pages": total_pages,
+ "pages_read": len(target_pages),
+ "ocr_pages": ocr_pages,
+ "char_count": char_count,
+ "truncated": truncated,
+ "text": full_text,
+ }, ensure_ascii=False)
+
+ except Exception as exc:
+ return json.dumps({"status": "error", "error": str(exc)}, ensure_ascii=False)
+
+
+def _parse_pages(pages_str: str, total: int) -> list:
+ """Parse a page-range string into a list of zero-based page indices.
+
+ Args:
+ pages_str: e.g. "1-10", "5", "1,3,5-8".
+ total: Total number of pages in the document.
+
+ Returns:
+ Sorted list of zero-based page indices.
+ """
+ result = []
+ for part in pages_str.split(","):
+ part = part.strip()
+ if "-" in part:
+ start, end = part.split("-", 1)
+ s = max(int(start.strip()) - 1, 0)
+ e = min(int(end.strip()), total)
+ result.extend(range(s, e))
+ elif part.isdigit():
+ result.append(int(part) - 1)
+ return sorted(set(result))
+
+
+class DocReaderTool(BaseTool):
+ """PDF document reader tool."""
+
+ name = "read_document"
+ description = "Read a PDF document: extract text pages + OCR for image/scanned pages. Supports research papers, financial reports, etc. Accepts optional page ranges."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "file_path": {"type": "string", "description": "Absolute path to the PDF file"},
+ "pages": {"type": "string", "description": "Page range (e.g. '1-10', '5', '1,3,5-8'); leave empty for all pages", "default": ""},
+ },
+ "required": ["file_path"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs) -> str:
+ """Read PDF document."""
+ return read_document(kwargs["file_path"], kwargs.get("pages", ""))
diff --git a/agent/src/tools/edit_file_tool.py b/agent/src/tools/edit_file_tool.py
new file mode 100644
index 000000000..479f604d5
--- /dev/null
+++ b/agent/src/tools/edit_file_tool.py
@@ -0,0 +1,81 @@
+"""Edit file tool: find-and-replace in workspace files."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any
+
+from src.agent.tools import BaseTool
+from src.tools.path_utils import safe_path as _safe_path
+
+
+class EditFileTool(BaseTool):
+ """Find and replace the first occurrence of a string in a workspace file."""
+
+ name = "edit_file"
+ description = "Find and replace the first occurrence of old_text with new_text in a file."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "path": {"type": "string", "description": "File path relative to run_dir"},
+ "old_text": {"type": "string", "description": "Text to find"},
+ "new_text": {"type": "string", "description": "Text to replace with"},
+ },
+ "required": ["path", "old_text", "new_text"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs: Any) -> str:
+ """Perform find-and-replace.
+
+ Args:
+ **kwargs: Must include path, old_text, new_text. Optional run_dir.
+
+ Returns:
+ JSON string with the operation result or an error.
+ """
+ file_path = kwargs["path"]
+ old_text = kwargs["old_text"]
+ new_text = kwargs["new_text"]
+ run_dir = kwargs.get("run_dir")
+
+ if not run_dir:
+ return json.dumps({
+ "status": "error",
+ "error": "run_dir is required for edit_file",
+ }, ensure_ascii=False)
+
+ try:
+ resolved = _safe_path(file_path, Path(run_dir))
+ except ValueError as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
+
+ if not resolved.exists():
+ return json.dumps({
+ "status": "error",
+ "error": f"File not found: {file_path}",
+ }, ensure_ascii=False)
+
+ try:
+ content = resolved.read_text(encoding="utf-8")
+ if old_text not in content:
+ return json.dumps({
+ "status": "error",
+ "error": f"old_text not found in {file_path}",
+ }, ensure_ascii=False)
+ new_content = content.replace(old_text, new_text, 1)
+ resolved.write_text(new_content, encoding="utf-8")
+ return json.dumps({
+ "status": "ok",
+ "path": str(resolved),
+ "message": "Edit applied successfully",
+ }, ensure_ascii=False)
+ except Exception as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
diff --git a/agent/src/tools/factor_analysis_tool.py b/agent/src/tools/factor_analysis_tool.py
new file mode 100644
index 000000000..fbabf2bd9
--- /dev/null
+++ b/agent/src/tools/factor_analysis_tool.py
@@ -0,0 +1,222 @@
+"""Factor analysis tool: compute IC/IR, layered backtest, and output analysis report."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any
+
+import numpy as np
+import pandas as pd
+from scipy.stats import spearmanr
+
+from src.agent.tools import BaseTool
+
+
+def _compute_ic_series(factor_df: pd.DataFrame, return_df: pd.DataFrame) -> pd.Series:
+ """Compute daily Spearman rank correlation (IC) between factor values and returns.
+
+ Args:
+ factor_df: Factor values; index=date, columns=codes.
+ return_df: Returns; index=date, columns=codes.
+
+ Returns:
+ IC series indexed by date.
+ """
+ common_dates = factor_df.index.intersection(return_df.index)
+ common_codes = factor_df.columns.intersection(return_df.columns)
+ if len(common_dates) == 0 or len(common_codes) == 0:
+ return pd.Series(dtype=float)
+
+ factor_df = factor_df.loc[common_dates, common_codes]
+ return_df = return_df.loc[common_dates, common_codes]
+
+ ic_values = {}
+ for date in common_dates:
+ f = factor_df.loc[date].dropna()
+ r = return_df.loc[date].dropna()
+ shared = f.index.intersection(r.index)
+ if len(shared) < 5:
+ continue
+ corr, _ = spearmanr(f[shared], r[shared])
+ if not np.isnan(corr):
+ ic_values[date] = corr
+
+ return pd.Series(ic_values, dtype=float)
+
+
+def _compute_group_equity(
+ factor_df: pd.DataFrame, return_df: pd.DataFrame, n_groups: int
+) -> pd.DataFrame:
+ """Layered backtest: rank by factor value daily, hold equal-weight, compute cumulative NAV.
+
+ Args:
+ factor_df: Factor values; index=date, columns=codes.
+ return_df: Returns; index=date, columns=codes.
+ n_groups: Number of quantile groups.
+
+ Returns:
+ DataFrame with index=date and columns Group_1 ... Group_N holding cumulative NAV.
+ """
+ common_dates = sorted(factor_df.index.intersection(return_df.index))
+ common_codes = factor_df.columns.intersection(return_df.columns)
+ if len(common_dates) == 0 or len(common_codes) == 0:
+ return pd.DataFrame()
+
+ factor_df = factor_df.loc[common_dates, common_codes]
+ return_df = return_df.loc[common_dates, common_codes]
+
+ group_returns: dict[str, list[float]] = {f"Group_{i+1}": [] for i in range(n_groups)}
+ valid_dates = []
+
+ for date in common_dates:
+ f = factor_df.loc[date].dropna()
+ r = return_df.loc[date].dropna()
+ shared = f.index.intersection(r.index)
+ if len(shared) < n_groups:
+ continue
+ valid_dates.append(date)
+ ranked = f[shared].rank(method="first")
+ bins = pd.qcut(ranked, n_groups, labels=False, duplicates="drop")
+ if bins.nunique() < n_groups:
+ # Not enough distinct values; fall back to equal-width cut
+ bins = pd.cut(ranked, n_groups, labels=False)
+ for g in range(n_groups):
+ members = bins[bins == g].index
+ if len(members) > 0:
+ group_returns[f"Group_{g+1}"].append(r[members].mean())
+ else:
+ group_returns[f"Group_{g+1}"].append(0.0)
+
+ if not valid_dates:
+ return pd.DataFrame()
+
+ ret_df = pd.DataFrame(group_returns, index=valid_dates)
+ equity_df = (1 + ret_df).cumprod()
+ return equity_df
+
+
+def run_factor_analysis(
+ factor_csv: str, return_csv: str, output_dir: str, n_groups: int = 5
+) -> str:
+ """Run the full factor analysis pipeline: IC/IR + layered backtest.
+
+ Args:
+ factor_csv: Path to factor values CSV (index=date, columns=codes).
+ return_csv: Path to returns CSV (same structure).
+ output_dir: Directory for output files.
+ n_groups: Number of quantile groups; default 5.
+
+ Returns:
+ JSON-formatted analysis summary.
+ """
+ out_path = Path(output_dir)
+ out_path.mkdir(parents=True, exist_ok=True)
+
+ try:
+ factor_df = pd.read_csv(factor_csv, index_col=0, parse_dates=True)
+ return_df = pd.read_csv(return_csv, index_col=0, parse_dates=True)
+ except Exception as e:
+ return json.dumps({"status": "error", "error": f"Failed to read CSV: {e}"}, ensure_ascii=False)
+
+ if factor_df.empty or return_df.empty:
+ return json.dumps({"status": "error", "error": "Factor or return data is empty"}, ensure_ascii=False)
+
+ ic_series = _compute_ic_series(factor_df, return_df)
+ if ic_series.empty:
+ return json.dumps(
+ {"status": "error", "error": "IC computation failed: insufficient shared dates/assets (need at least 5 per day)"},
+ ensure_ascii=False,
+ )
+
+ ic_series.to_csv(out_path / "ic_series.csv", header=["IC"])
+
+ ic_mean = float(ic_series.mean())
+ ic_std = float(ic_series.std())
+ ir = ic_mean / ic_std if ic_std > 0 else 0.0
+ ic_positive_ratio = float((ic_series > 0).mean())
+
+ summary = {
+ "ic_mean": round(ic_mean, 6),
+ "ic_std": round(ic_std, 6),
+ "ir": round(ir, 4),
+ "ic_positive_ratio": round(ic_positive_ratio, 4),
+ "ic_count": len(ic_series),
+ }
+ (out_path / "ic_summary.json").write_text(
+ json.dumps(summary, ensure_ascii=False, indent=2), encoding="utf-8"
+ )
+
+ equity_df = _compute_group_equity(factor_df, return_df, n_groups)
+ if equity_df.empty:
+ return json.dumps(
+ {"status": "error", "error": "Layered backtest failed: insufficient valid cross-section dates"},
+ ensure_ascii=False,
+ )
+ equity_df.to_csv(out_path / "group_equity.csv")
+
+ # Long-short spread: last group vs. first group
+ long_short_ret = float(equity_df.iloc[-1, -1] - equity_df.iloc[-1, 0])
+
+ result = {
+ "status": "ok",
+ "ic_mean": summary["ic_mean"],
+ "ic_std": summary["ic_std"],
+ "ir": summary["ir"],
+ "ic_positive_ratio": summary["ic_positive_ratio"],
+ "ic_count": summary["ic_count"],
+ "n_groups": n_groups,
+ "long_short_spread": round(long_short_ret, 4),
+ "group_final_equity": {
+ col: round(float(equity_df[col].iloc[-1]), 4) for col in equity_df.columns
+ },
+ "output_dir": str(out_path),
+ "files": ["ic_series.csv", "ic_summary.json", "group_equity.csv"],
+ }
+ return json.dumps(result, ensure_ascii=False, indent=2)
+
+
+class FactorAnalysisTool(BaseTool):
+ """Factor analysis tool: compute IC/IR and layered NAV."""
+
+ name = "factor_analysis"
+ description = "Factor analysis: compute IC/IR/layered NAV. Input factor CSV and return CSV, output analysis report."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "factor_csv": {
+ "type": "string",
+ "description": "Factor values CSV path (index=date, columns=codes)",
+ },
+ "return_csv": {
+ "type": "string",
+ "description": "Returns CSV path (same structure)",
+ },
+ "n_groups": {
+ "type": "integer",
+ "description": "Number of quantile groups",
+ "default": 5,
+ },
+ "output_dir": {
+ "type": "string",
+ "description": "Output directory for results",
+ },
+ },
+ "required": ["factor_csv", "return_csv", "output_dir"],
+ }
+
+ def execute(self, **kwargs: Any) -> str:
+ """Run factor analysis.
+
+ Args:
+ **kwargs: Must include factor_csv, return_csv, output_dir. Optional n_groups.
+
+ Returns:
+ JSON-formatted analysis summary.
+ """
+ return run_factor_analysis(
+ factor_csv=kwargs["factor_csv"],
+ return_csv=kwargs["return_csv"],
+ output_dir=kwargs["output_dir"],
+ n_groups=kwargs.get("n_groups", 5),
+ )
diff --git a/agent/src/tools/load_skill_tool.py b/agent/src/tools/load_skill_tool.py
new file mode 100644
index 000000000..7bff4b526
--- /dev/null
+++ b/agent/src/tools/load_skill_tool.py
@@ -0,0 +1,48 @@
+"""Load skill tool: load full skill documentation by name."""
+
+from __future__ import annotations
+
+import json
+from typing import Any
+
+from src.agent.skills import SkillsLoader
+from src.agent.tools import BaseTool
+
+
+class LoadSkillTool(BaseTool):
+ """Load the full documentation for a named skill."""
+
+ name = "load_skill"
+ description = "Load full documentation for a named skill. Use this to learn about unfamiliar strategy patterns or workflows before starting."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "name": {"type": "string", "description": "Skill name (e.g. 'strategy-generate', 'momentum')"},
+ },
+ "required": ["name"],
+ }
+ repeatable = True
+
+ def __init__(self, skills_loader: SkillsLoader | None = None) -> None:
+ """Initialize LoadSkillTool.
+
+ Args:
+ skills_loader: SkillsLoader instance; creates one automatically if omitted.
+ """
+ self._loader = skills_loader or SkillsLoader()
+
+ def execute(self, **kwargs: Any) -> str:
+ """Load skill documentation.
+
+ Args:
+ **kwargs: Must include name.
+
+ Returns:
+ Full skill documentation or an error message.
+ """
+ name = kwargs["name"]
+ content = self._loader.get_content(name)
+ return json.dumps({
+ "status": "ok" if not content.startswith("Error:") else "error",
+ "content": content,
+ }, ensure_ascii=False)
diff --git a/agent/src/tools/options_pricing_tool.py b/agent/src/tools/options_pricing_tool.py
new file mode 100644
index 000000000..51aa74ed3
--- /dev/null
+++ b/agent/src/tools/options_pricing_tool.py
@@ -0,0 +1,125 @@
+"""Options pricing tool: Black-Scholes theoretical price and Greeks."""
+
+from __future__ import annotations
+
+import json
+from typing import Any
+
+import numpy as np
+from scipy.stats import norm
+
+from src.agent.tools import BaseTool
+
+
+def _bs_price_and_greeks(
+ spot: float,
+ strike: float,
+ T: float,
+ r: float,
+ sigma: float,
+ option_type: str,
+) -> dict:
+ """Compute Black-Scholes price and Greeks.
+
+ Args:
+ spot: Current underlying price.
+ strike: Strike price.
+ T: Time to expiry in years.
+ r: Risk-free rate.
+ sigma: Annualised volatility.
+ option_type: "call" or "put".
+
+ Returns:
+ Dict containing price, delta, gamma, theta, vega.
+ """
+ if T <= 0 or sigma <= 0:
+ if option_type == "call":
+ price = max(spot - strike, 0.0)
+ delta = 1.0 if spot > strike else 0.0
+ else:
+ price = max(strike - spot, 0.0)
+ delta = -1.0 if spot < strike else 0.0
+ return {"price": price, "delta": delta, "gamma": 0.0, "theta": 0.0, "vega": 0.0}
+
+ sqrt_T = np.sqrt(T)
+ d1 = (np.log(spot / strike) + (r + sigma ** 2 / 2) * T) / (sigma * sqrt_T)
+ d2 = d1 - sigma * sqrt_T
+ nd1_pdf = float(norm.pdf(d1))
+
+ if option_type == "call":
+ price = float(spot * norm.cdf(d1) - strike * np.exp(-r * T) * norm.cdf(d2))
+ delta = float(norm.cdf(d1))
+ else:
+ price = float(strike * np.exp(-r * T) * norm.cdf(-d2) - spot * norm.cdf(-d1))
+ delta = float(norm.cdf(d1) - 1.0)
+
+ gamma = float(nd1_pdf / (spot * sigma * sqrt_T))
+
+ theta_common = -(spot * nd1_pdf * sigma) / (2 * sqrt_T)
+ if option_type == "call":
+ theta = theta_common - r * strike * np.exp(-r * T) * norm.cdf(d2)
+ else:
+ theta = theta_common + r * strike * np.exp(-r * T) * norm.cdf(-d2)
+ theta = float(theta / 365.0)
+
+ vega = float(spot * nd1_pdf * sqrt_T / 100.0)
+
+ return {
+ "price": round(price, 6),
+ "delta": round(delta, 6),
+ "gamma": round(gamma, 6),
+ "theta": round(theta, 6),
+ "vega": round(vega, 6),
+ }
+
+
+class OptionsPricingTool(BaseTool):
+ """Options pricing tool: Black-Scholes theoretical price and Greeks."""
+
+ name = "options_pricing"
+ description = "Options pricing: compute theoretical price and Greeks using the Black-Scholes model."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "spot": {"type": "number", "description": "Current underlying price"},
+ "strike": {"type": "number", "description": "Strike price"},
+ "expiry_days": {"type": "number", "description": "Days to expiry"},
+ "risk_free_rate": {"type": "number", "description": "Risk-free rate", "default": 0.05},
+ "volatility": {"type": "number", "description": "Annualised volatility"},
+ "option_type": {"type": "string", "enum": ["call", "put"], "description": "Option type"},
+ },
+ "required": ["spot", "strike", "expiry_days", "volatility", "option_type"],
+ }
+
+ def execute(self, **kwargs: Any) -> str:
+ """Run options pricing calculation.
+
+ Args:
+ **kwargs: Must include spot, strike, expiry_days, volatility, option_type.
+ Optional risk_free_rate.
+
+ Returns:
+ JSON string containing price, delta, gamma, theta, vega.
+ """
+ spot = float(kwargs["spot"])
+ strike = float(kwargs["strike"])
+ expiry_days = float(kwargs["expiry_days"])
+ r = float(kwargs.get("risk_free_rate", 0.05))
+ sigma = float(kwargs["volatility"])
+ option_type = kwargs["option_type"]
+
+ T = expiry_days / 365.0
+
+ result = _bs_price_and_greeks(spot, strike, T, r, sigma, option_type)
+ result["inputs"] = {
+ "spot": spot,
+ "strike": strike,
+ "expiry_days": expiry_days,
+ "risk_free_rate": r,
+ "volatility": sigma,
+ "option_type": option_type,
+ "T_years": round(T, 6),
+ }
+ result["status"] = "ok"
+
+ return json.dumps(result, ensure_ascii=False)
diff --git a/agent/src/tools/path_utils.py b/agent/src/tools/path_utils.py
new file mode 100644
index 000000000..a73c1ff22
--- /dev/null
+++ b/agent/src/tools/path_utils.py
@@ -0,0 +1,18 @@
+"""Shared path utilities for tools."""
+
+from __future__ import annotations
+
+from pathlib import Path
+
+
+def safe_path(p: str, workdir: Path) -> Path:
+ """Resolve a path relative to the workspace root.
+
+ Args:
+ p: Relative or absolute path.
+ workdir: Workspace root directory.
+
+ Returns:
+ Resolved absolute path.
+ """
+ return (workdir / p).resolve()
diff --git a/agent/src/tools/pattern_tool.py b/agent/src/tools/pattern_tool.py
new file mode 100644
index 000000000..bddf241de
--- /dev/null
+++ b/agent/src/tools/pattern_tool.py
@@ -0,0 +1,365 @@
+"""Chart pattern recognition tool: detect technical patterns in price series.
+
+Reads OHLCV data from run_dir/artifacts/ohlcv_*.csv.
+Can be called before coding (to inform strategy design) or after backtest (to analyse results).
+"""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any, Dict
+
+import numpy as np
+import pandas as pd
+
+from src.agent.tools import BaseTool
+
+
+# ---------------------------------------------------------------------------
+# Pattern detection functions
+# ---------------------------------------------------------------------------
+
+def find_peaks_valleys(close: pd.Series, window: int = 5) -> dict:
+ """Detect peaks and valleys in a price series.
+
+ Args:
+ close: Closing price series.
+ window: Half-window size; effective window is 2*window+1.
+
+ Returns:
+ Dict with keys "peaks" and "valleys", each a list of integer indices.
+ """
+ n = len(close)
+ if n < 2 * window + 1:
+ return {"peaks": [], "valleys": []}
+
+ values = close.values.astype(float)
+ peaks, valleys = [], []
+
+ for i in range(window, n - window):
+ seg = values[i - window : i + window + 1]
+ if np.isnan(values[i]):
+ continue
+ seg = seg[~np.isnan(seg)]
+ if len(seg) == 0:
+ continue
+ if values[i] == np.max(seg):
+ peaks.append(i)
+ if values[i] == np.min(seg):
+ valleys.append(i)
+
+ return {"peaks": peaks, "valleys": valleys}
+
+
+def candlestick_patterns(open_: pd.Series, high: pd.Series, low: pd.Series, close: pd.Series) -> pd.Series:
+ """Detect candlestick patterns: doji, hammer, and engulfing.
+
+ Args:
+ open_: Open price series.
+ high: High price series.
+ low: Low price series.
+ close: Close price series.
+
+ Returns:
+ Series with values -1 (bearish), 0 (neutral), 1 (bullish).
+ """
+ body = (close - open_).abs()
+ total_range = high - low
+ upper_shadow = high - pd.concat([open_, close], axis=1).max(axis=1)
+ lower_shadow = pd.concat([open_, close], axis=1).min(axis=1) - low
+
+ result = pd.Series(0, index=close.index, dtype=int)
+
+ safe_range = total_range.replace(0, np.nan)
+ is_doji = body / safe_range < 0.10
+
+ is_hammer = (lower_shadow > 2 * body) & (upper_shadow < body) & ~is_doji
+ result = result.where(~is_hammer, 1)
+
+ prev_bearish = close.shift(1) < open_.shift(1)
+ curr_bullish = close > open_
+ engulf_bull = prev_bearish & curr_bullish & (open_ <= close.shift(1)) & (close >= open_.shift(1)) & (body > body.shift(1))
+ result = result.where(~engulf_bull, 1)
+
+ prev_bullish = close.shift(1) > open_.shift(1)
+ curr_bearish = close < open_
+ engulf_bear = prev_bullish & curr_bearish & (open_ >= close.shift(1)) & (close <= open_.shift(1)) & (body > body.shift(1))
+ result = result.where(~engulf_bear, -1)
+
+ return result
+
+
+def support_resistance(close: pd.Series, window: int = 20, num_levels: int = 3) -> dict:
+ """Compute support and resistance levels via peak/valley clustering.
+
+ Args:
+ close: Closing price series.
+ window: Peak/valley detection window.
+ num_levels: Maximum number of levels to return.
+
+ Returns:
+ Dict with keys "support" and "resistance", each a list of price levels.
+ """
+ pv = find_peaks_valleys(close, window=window)
+ values = close.values.astype(float)
+
+ peak_prices = [float(values[i]) for i in pv["peaks"] if not np.isnan(values[i])]
+ valley_prices = [float(values[i]) for i in pv["valleys"] if not np.isnan(values[i])]
+
+ def cluster(prices: list, n: int) -> list:
+ if not prices:
+ return []
+ sp = sorted(prices)
+ if len(sp) <= n:
+ return sp
+ clusters: list[list[float]] = [[sp[0]]]
+ rng = sp[-1] - sp[0]
+ thr = rng * 0.05 if rng > 0 else 1.0
+ for p in sp[1:]:
+ if abs(p - np.mean(clusters[-1])) <= thr:
+ clusters[-1].append(p)
+ else:
+ clusters.append([p])
+ centers = [(len(c), float(np.mean(c))) for c in clusters]
+ centers.sort(reverse=True)
+ return [c for _, c in centers[:n]]
+
+ return {"support": cluster(valley_prices, num_levels), "resistance": cluster(peak_prices, num_levels)}
+
+
+def trend_line_slope(close: pd.Series, window: int = 20) -> pd.Series:
+ """Compute rolling linear-fit slope.
+
+ Args:
+ close: Closing price series.
+ window: Fitting window size.
+
+ Returns:
+ Series of slope values; first window-1 entries are NaN.
+ """
+ n = len(close)
+ slopes = np.full(n, np.nan)
+ values = close.values.astype(float)
+ x = np.arange(window, dtype=float)
+
+ for i in range(window - 1, n):
+ seg = values[i - window + 1 : i + 1]
+ if np.any(np.isnan(seg)):
+ continue
+ slopes[i] = np.polyfit(x, seg, 1)[0]
+
+ return pd.Series(slopes, index=close.index)
+
+
+def head_and_shoulders(close: pd.Series, window: int = 10) -> pd.Series:
+ """Detect head-and-shoulders top pattern.
+
+ Args:
+ close: Closing price series.
+ window: Peak/valley detection window.
+
+ Returns:
+ Series with 1 where pattern is detected, 0 otherwise.
+ """
+ result = pd.Series(0, index=close.index, dtype=int)
+ pv = find_peaks_valleys(close, window=window)
+ peaks = pv["peaks"]
+ values = close.values.astype(float)
+
+ if len(peaks) < 3:
+ return result
+
+ for i in range(len(peaks) - 2):
+ lv, hv, rv = values[peaks[i]], values[peaks[i + 1]], values[peaks[i + 2]]
+ if any(np.isnan(x) for x in (lv, hv, rv)):
+ continue
+ if hv <= lv or hv <= rv:
+ continue
+ avg = (lv + rv) / 2
+ if avg == 0 or abs(lv - rv) / avg > 0.05:
+ continue
+ result.iloc[peaks[i + 1]] = 1
+
+ return result
+
+
+def double_top_bottom(close: pd.Series, window: int = 10) -> pd.Series:
+ """Detect double-top and double-bottom patterns.
+
+ Args:
+ close: Closing price series.
+ window: Peak/valley detection window.
+
+ Returns:
+ Series with 1 (double top), -1 (double bottom), or 0 (none).
+ """
+ result = pd.Series(0, index=close.index, dtype=int)
+ pv = find_peaks_valleys(close, window=window)
+ values = close.values.astype(float)
+
+ for i in range(len(pv["peaks"]) - 1):
+ v1, v2 = values[pv["peaks"][i]], values[pv["peaks"][i + 1]]
+ if np.isnan(v1) or np.isnan(v2):
+ continue
+ avg = (v1 + v2) / 2
+ if avg != 0 and abs(v1 - v2) / avg < 0.03:
+ result.iloc[pv["peaks"][i + 1]] = 1
+
+ for i in range(len(pv["valleys"]) - 1):
+ v1, v2 = values[pv["valleys"][i]], values[pv["valleys"][i + 1]]
+ if np.isnan(v1) or np.isnan(v2):
+ continue
+ avg = (v1 + v2) / 2
+ if avg != 0 and abs(v1 - v2) / abs(avg) < 0.03:
+ if result.iloc[pv["valleys"][i + 1]] == 0:
+ result.iloc[pv["valleys"][i + 1]] = -1
+
+ return result
+
+
+def triangle(close: pd.Series, window: int = 20) -> pd.Series:
+ """Detect triangle patterns.
+
+ Args:
+ close: Closing price series.
+ window: Detection window size.
+
+ Returns:
+ Series with 1 (ascending triangle), -1 (descending triangle), or 0 (none).
+ """
+ n = len(close)
+ result = pd.Series(0, index=close.index, dtype=int)
+ values = close.values.astype(float)
+
+ for i in range(window, n):
+ seg = pd.Series(values[i - window : i + 1])
+ pv = find_peaks_valleys(seg, window=max(2, window // 5))
+ if len(pv["peaks"]) < 2 or len(pv["valleys"]) < 2:
+ continue
+ pvals = [float(seg.iloc[p]) for p in pv["peaks"]]
+ vvals = [float(seg.iloc[v]) for v in pv["valleys"]]
+ ps = np.polyfit(np.arange(len(pvals), dtype=float), pvals, 1)[0] if len(pvals) >= 2 else 0.0
+ vs = np.polyfit(np.arange(len(vvals), dtype=float), vvals, 1)[0] if len(vvals) >= 2 else 0.0
+ rng = max(pvals) - min(vvals)
+ if rng == 0:
+ continue
+ flat = rng * 0.02
+ if vs > flat and abs(ps) < flat:
+ result.iloc[i] = 1
+ elif ps < -flat and abs(vs) < flat:
+ result.iloc[i] = -1
+
+ return result
+
+
+def broadening(close: pd.Series, window: int = 20) -> pd.Series:
+ """Detect broadening (megaphone) patterns.
+
+ Args:
+ close: Closing price series.
+ window: Detection window size.
+
+ Returns:
+ Series with 1 where broadening pattern is detected, 0 otherwise.
+ """
+ n = len(close)
+ result = pd.Series(0, index=close.index, dtype=int)
+ values = close.values.astype(float)
+
+ for i in range(window, n):
+ seg = pd.Series(values[i - window : i + 1])
+ pv = find_peaks_valleys(seg, window=max(2, window // 5))
+ if len(pv["peaks"]) < 2 or len(pv["valleys"]) < 2:
+ continue
+ pvals = [float(seg.iloc[p]) for p in pv["peaks"]]
+ vvals = [float(seg.iloc[v]) for v in pv["valleys"]]
+ peaks_rising = all(pvals[j + 1] > pvals[j] for j in range(len(pvals) - 1))
+ valleys_falling = all(vvals[j + 1] < vvals[j] for j in range(len(vvals) - 1))
+ if peaks_rising and valleys_falling:
+ result.iloc[i] = 1
+
+ return result
+
+
+# ---------------------------------------------------------------------------
+# Available pattern registry
+# ---------------------------------------------------------------------------
+
+_PATTERN_FUNCS = {
+ "peaks_valleys": lambda df, w: find_peaks_valleys(df["close"], window=w),
+ "candlestick": lambda df, w: candlestick_patterns(df["open"], df["high"], df["low"], df["close"]).value_counts().to_dict(),
+ "support_resistance": lambda df, w: support_resistance(df["close"], window=w),
+ "trend_slope": lambda df, w: {"mean_slope": float(trend_line_slope(df["close"], window=w).dropna().mean())} if len(df) > w else {"mean_slope": 0},
+ "head_and_shoulders": lambda df, w: {"count": int(head_and_shoulders(df["close"], window=w).sum())},
+ "double_top_bottom": lambda df, w: {"double_top": int((double_top_bottom(df["close"], window=w) == 1).sum()), "double_bottom": int((double_top_bottom(df["close"], window=w) == -1).sum())},
+ "triangle": lambda df, w: {"ascending": int((triangle(df["close"], window=w) == 1).sum()), "descending": int((triangle(df["close"], window=w) == -1).sum())},
+ "broadening": lambda df, w: {"count": int(broadening(df["close"], window=w).sum())},
+}
+
+
+# ---------------------------------------------------------------------------
+# Tool implementation
+# ---------------------------------------------------------------------------
+
+def run_pattern(run_dir: str, patterns: str = "all", window: int = 10) -> str:
+ """Run chart pattern detection on OHLCV data in run_dir.
+
+ Args:
+ run_dir: Path to the run directory.
+ patterns: Comma-separated pattern names or "all".
+ window: Detection window size.
+
+ Returns:
+ JSON-formatted detection results.
+ """
+ arts = Path(run_dir) / "artifacts"
+ ohlcv_files = list(arts.glob("ohlcv_*.csv"))
+ if not ohlcv_files:
+ return json.dumps({"status": "error", "error": "No OHLCV data found; run backtest first"}, ensure_ascii=False)
+
+ if patterns == "all":
+ selected = list(_PATTERN_FUNCS.keys())
+ else:
+ selected = [p.strip() for p in patterns.split(",") if p.strip() in _PATTERN_FUNCS]
+ if not selected:
+ return json.dumps({"status": "error", "error": f"Invalid pattern name(s). Available: {', '.join(_PATTERN_FUNCS.keys())}"}, ensure_ascii=False)
+
+ results: Dict[str, Any] = {}
+ for f in ohlcv_files:
+ code = f.stem.replace("ohlcv_", "")
+ df = pd.read_csv(f, index_col=0, parse_dates=True)
+ if df.empty:
+ continue
+ code_results: Dict[str, Any] = {}
+ for pattern_name in selected:
+ func = _PATTERN_FUNCS[pattern_name]
+ code_results[pattern_name] = func(df, window)
+ results[code] = code_results
+
+ return json.dumps({"status": "ok", "results": results, "patterns": selected, "window": window}, ensure_ascii=False, default=str)
+
+
+class PatternTool(BaseTool):
+ """Chart pattern recognition tool."""
+
+ name = "pattern"
+ description = "Run chart pattern detection on backtest data (head-and-shoulders, double top/bottom, candlestick, support/resistance, etc.). Call after backtest."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "run_dir": {"type": "string", "description": "Path to the run directory"},
+ "patterns": {"type": "string", "description": "Comma-separated pattern names or 'all'. Options: peaks_valleys, candlestick, support_resistance, trend_slope, head_and_shoulders, double_top_bottom, triangle, broadening"},
+ "window": {"type": "integer", "description": "Detection window size (default 10)"},
+ },
+ "required": ["run_dir"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs) -> str:
+ """Run pattern detection."""
+ return run_pattern(
+ run_dir=kwargs["run_dir"],
+ patterns=kwargs.get("patterns", "all"),
+ window=kwargs.get("window", 10),
+ )
diff --git a/agent/src/tools/read_file_tool.py b/agent/src/tools/read_file_tool.py
new file mode 100644
index 000000000..cdb341b4f
--- /dev/null
+++ b/agent/src/tools/read_file_tool.py
@@ -0,0 +1,91 @@
+"""Read file tool: read file contents from the workspace."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any
+
+from src.agent.tools import BaseTool
+from src.tools.path_utils import safe_path as _safe_path
+
+_OUTPUT_LIMIT = 50_000
+
+
+class ReadFileTool(BaseTool):
+ """Read file contents with optional line limit."""
+
+ name = "read_file"
+ description = "Read a file from the workspace. Returns file contents with optional line limit."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "path": {"type": "string", "description": "File path relative to run_dir or skills/"},
+ "limit": {"type": "integer", "description": "Max number of lines to return (default: all)"},
+ },
+ "required": ["path"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs: Any) -> str:
+ """Read a file.
+
+ Args:
+ **kwargs: Must include path. Optional limit and run_dir.
+
+ Returns:
+ JSON string containing content or an error.
+ """
+ file_path = kwargs["path"]
+ limit = kwargs.get("limit")
+ run_dir = kwargs.get("run_dir")
+
+ allowed_roots = []
+ if run_dir:
+ allowed_roots.append(Path(run_dir).resolve())
+ # Read-only access to skills/
+ skills_dir = Path(__file__).resolve().parents[1] / "skills"
+ if skills_dir.exists():
+ allowed_roots.append(skills_dir.resolve())
+
+ # Strip redundant "skills/" prefix that LLMs sometimes add
+ paths_to_try = [file_path]
+ if file_path.startswith("skills/"):
+ paths_to_try.append(file_path[len("skills/"):])
+
+ resolved = None
+ for root in allowed_roots:
+ for p in paths_to_try:
+ try:
+ candidate = _safe_path(p, root)
+ if candidate.exists():
+ resolved = candidate
+ break
+ except ValueError:
+ continue
+ if resolved:
+ break
+
+ if resolved is None:
+ return json.dumps({
+ "status": "error",
+ "error": f"File not found or path escapes workspace: {file_path}",
+ }, ensure_ascii=False)
+
+ try:
+ text = resolved.read_text(encoding="utf-8")
+ if limit and limit > 0:
+ lines = text.splitlines(keepends=True)
+ text = "".join(lines[:limit])
+ if len(text) > _OUTPUT_LIMIT:
+ text = text[:_OUTPUT_LIMIT] + "\n... (truncated)"
+ return json.dumps({
+ "status": "ok",
+ "path": str(resolved),
+ "content": text,
+ }, ensure_ascii=False)
+ except Exception as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
diff --git a/agent/src/tools/subagent_tool.py b/agent/src/tools/subagent_tool.py
new file mode 100644
index 000000000..edb988cfd
--- /dev/null
+++ b/agent/src/tools/subagent_tool.py
@@ -0,0 +1,100 @@
+"""Subagent tool: isolated-context child agent that shares the filesystem and returns only a summary."""
+
+from __future__ import annotations
+
+import json
+import time
+from typing import Any
+
+from src.agent.tools import BaseTool, ToolRegistry
+from src.agent.context import ContextBuilder
+
+_MAX_SUBAGENT_ITERATIONS = 25
+_MAX_SUBAGENT_TIMEOUT_SEC = 300
+_MAX_SUBAGENT_TOKEN_ESTIMATE = 30000
+
+
+class SubagentTool(BaseTool):
+ """Spawn a child agent to execute an independent task with isolated context."""
+
+ name = "subagent"
+ description = (
+ "Spawn a subagent with fresh context. It shares the filesystem but not "
+ "conversation history. Use for parallel research, isolated exploration, "
+ "or tasks that would pollute the main context. Returns only a summary."
+ )
+ parameters = {
+ "type": "object",
+ "properties": {
+ "prompt": {"type": "string", "description": "Task for the subagent"},
+ "description": {"type": "string", "description": "Short label for display"},
+ },
+ "required": ["prompt"],
+ }
+
+ def execute(self, **kwargs: Any) -> str:
+ """Start a child agent and return its summary.
+
+ Three guards against infinite loops:
+ - Iteration cap: _MAX_SUBAGENT_ITERATIONS rounds
+ - Time cap: _MAX_SUBAGENT_TIMEOUT_SEC seconds
+ - Token estimate cap: _MAX_SUBAGENT_TOKEN_ESTIMATE tokens
+
+ Args:
+ **kwargs: Must include prompt (str). Optional run_dir (str) and description (str).
+
+ Returns:
+ JSON string with status and summary fields.
+ """
+ prompt = kwargs["prompt"]
+ run_dir = kwargs.get("run_dir")
+
+ from src.providers.chat import ChatLLM
+ from src.tools.bash_tool import BashTool
+ from src.tools.read_file_tool import ReadFileTool
+ from src.tools.write_file_tool import WriteFileTool
+ from src.tools.edit_file_tool import EditFileTool
+ from src.tools.load_skill_tool import LoadSkillTool
+ from src.tools.backtest_tool import BacktestTool
+
+ llm = ChatLLM()
+ child = ToolRegistry()
+ for t in [BashTool(), ReadFileTool(), WriteFileTool(),
+ EditFileTool(), LoadSkillTool(), BacktestTool()]:
+ child.register(t)
+
+ messages = [
+ {"role": "system", "content": "You are a quantitative research subagent. Complete the task using tools, then summarize findings."},
+ {"role": "user", "content": prompt},
+ ]
+
+ t0 = time.monotonic()
+ for iteration in range(_MAX_SUBAGENT_ITERATIONS):
+ elapsed = time.monotonic() - t0
+ if elapsed > _MAX_SUBAGENT_TIMEOUT_SEC:
+ return json.dumps(
+ {"status": "timeout", "summary": f"Subagent timed out after {elapsed:.0f}s ({iteration} iterations)"},
+ ensure_ascii=False,
+ )
+
+ token_estimate = len(json.dumps(messages)) // 4
+ if token_estimate > _MAX_SUBAGENT_TOKEN_ESTIMATE:
+ return json.dumps(
+ {"status": "token_limit", "summary": f"Subagent context too large (~{token_estimate} tokens, {iteration} iterations)"},
+ ensure_ascii=False,
+ )
+
+ response = llm.chat(messages, tools=child.get_definitions())
+ if not response.has_tool_calls:
+ return json.dumps({"status": "ok", "summary": response.content or "(no summary)"}, ensure_ascii=False)
+ messages.append(ContextBuilder.format_assistant_tool_calls(response.tool_calls, content=response.content))
+ for tc in response.tool_calls:
+ if run_dir and "run_dir" not in tc.arguments:
+ tc.arguments["run_dir"] = run_dir
+ result = child.execute(tc.name, tc.arguments)
+ messages.append(ContextBuilder.format_tool_result(tc.id, tc.name, result[:10000]))
+
+ return json.dumps(
+ {"status": "iteration_limit", "summary": f"Subagent hit iteration limit ({_MAX_SUBAGENT_ITERATIONS} iterations)"},
+ ensure_ascii=False,
+ )
diff --git a/agent/src/tools/swarm_tool.py b/agent/src/tools/swarm_tool.py
new file mode 100644
index 000000000..db4295507
--- /dev/null
+++ b/agent/src/tools/swarm_tool.py
@@ -0,0 +1,709 @@
+"""SwarmTool: tool for the main agent to invoke a swarm multi-agent team.
+
+The user provides a natural-language prompt; the tool auto-selects the best preset and extracts variables.
+Blocks synchronously until the run completes and returns a JSON summary.
+"""
+
+from __future__ import annotations
+
+import json
+import logging
+import re
+import time
+from pathlib import Path
+from typing import Any
+
+from src.agent.tools import BaseTool
+
+logger = logging.getLogger(__name__)
+
+_POLL_INTERVAL_SECONDS = 5
+_MAX_WAIT_SECONDS = 1800 # 30 minutes
+
+# Preset matching: (preset_name, keyword_patterns, weight_boost). Patterns match user intent (EN + ZH).
+_PRESET_KEYWORDS: list[tuple[str, list[str], float]] = [
+ (
+ "global_allocation_committee",
+ [
+ r"cross[- ]?market",
+ r"global\s+alloc",
+ "multi[- ]asset",
+ "ไธ‰ๅธ‚ๅœบ",
+ "ๅ…จ็ƒ้…็ฝฎ",
+ "่ต„ไบง้…็ฝฎ",
+ "ๆธฏ็พŽ.*A่‚ก",
+ "A่‚ก.*ๅŠ ๅฏ†",
+ "ๅŠ ๅฏ†.*A่‚ก",
+ "ๅคšๅธ‚ๅœบ",
+ ],
+ 1.0,
+ ),
+ (
+ "risk_committee",
+ [
+ r"risk\s+audit",
+ "drawdown",
+ r"tail\s+risk",
+ r"stress\s+test",
+ r"\bVaR\b",
+ "้ฃŽๆŽง",
+ "้ฃŽ้™ฉๅฎก่ฎก",
+ "ๅ›žๆ’ค",
+ "ๅฐพ้ƒจ้ฃŽ้™ฉ",
+ "ๅŽ‹ๅŠ›ๆต‹่ฏ•",
+ "้ฃŽ้™ฉ่ฏ„ไผฐ",
+ ],
+ 1.0,
+ ),
+ (
+ "quant_strategy_desk",
+ [
+ r"\bquant\b",
+ "alpha",
+ "factor",
+ "backtest",
+ "ๅคšๅ› ๅญ",
+ "้‡ๅŒ–็ญ–็•ฅ",
+ "ๅ› ๅญ",
+ "้€‰่‚ก",
+ "็ญ–็•ฅ.*ๅ›žๆต‹",
+ ],
+ 1.0,
+ ),
+ (
+ "equity_research_team",
+ [
+ "equity research",
+ "stock research",
+ "็ ”ๆŠฅ",
+ "็ ”็ฉถๆŠฅๅ‘Š",
+ "่กŒไธšๅˆ†ๆž",
+ "ไธช่‚กๅˆ†ๆž",
+ "ๆŠ•่ต„ๅˆ†ๆž",
+ "macro.*sector",
+ "ๆŠ•่ต„ๆœบไผš",
+ ],
+ 0.85,
+ ),
+ (
+ "factor_research_committee",
+ [
+ r"factor\s+research",
+ r"\bIC\b",
+ "ICIR",
+ "ๅ› ๅญๅง”ๅ‘˜ไผš",
+ "ๅ› ๅญ็ ”็ฉถ",
+ ],
+ 0.9,
+ ),
+ (
+ "event_driven_task_force",
+ [
+ r"M&A",
+ "merger",
+ "insider",
+ r"earnings\s+surprise",
+ "ไบ‹ไปถ้ฉฑๅŠจ",
+ "ๅนถ่ดญ",
+ "่ดขๆŠฅ",
+ ],
+ 0.9,
+ ),
+ (
+ "etf_allocation_desk",
+ [
+ r"\bETF\b",
+ r"index\s+fund",
+ "ๆŒ‡ๆ•ฐๅŸบ้‡‘",
+ "ETF้…็ฝฎ",
+ ],
+ 0.9,
+ ),
+ (
+ "derivatives_strategy_desk",
+ [
+ r"\boption\b",
+ "call",
+ "put",
+ "Greeks",
+ r"implied\s+vol",
+ "IV",
+ "ๆœŸๆƒ",
+ "่ก็”Ÿๅ“",
+ ],
+ 0.9,
+ ),
+ (
+ "crypto_research_lab",
+ [
+ r"\bBTC\b",
+ r"\bETH\b",
+ r"\bSOL\b",
+ "crypto",
+ "bitcoin",
+ "ๅŠ ๅฏ†",
+ "ๆ•ฐๅญ—่ดงๅธ",
+ ],
+ 0.95,
+ ),
+ (
+ "credit_research_team",
+ [
+ r"credit\s+bond",
+ "LGFV",
+ r"\bYTM\b",
+ "ๅˆฉๅทฎ",
+ "ไฟก็”จๅ€บ",
+ "ๅŸŽๆŠ•",
+ ],
+ 0.9,
+ ),
+ (
+ "convertible_bond_team",
+ [
+ "convertible",
+ "ๅฏ่ฝฌๅ€บ",
+ r"\bCB\b",
+ ],
+ 0.9,
+ ),
+ (
+ "fundamental_research_team",
+ [
+ "fundamental",
+ r"deep\s+dive",
+ "่ดขๅŠก",
+ "ๅŸบๆœฌ้ข",
+ ],
+ 0.85,
+ ),
+ (
+ "commodity_research_team",
+ [
+ "commodity",
+ "crude",
+ "gold",
+ "copper",
+ r"iron\s+ore",
+ "ๅ•†ๅ“",
+ "ๅŽŸๆฒน",
+ "้ป„้‡‘",
+ ],
+ 0.9,
+ ),
+ (
+ "fund_selection_panel",
+ [
+ r"\bFOF\b",
+ r"mutual\s+fund",
+ "ๅŸบ้‡‘็ญ›้€‰",
+ "้€‰ๅŸบ",
+ ],
+ 0.85,
+ ),
+ (
+ "social_alpha_team",
+ [
+ r"social\s+media",
+ "twitter",
+ "reddit",
+ "็คพๅช’",
+ "่ˆ†ๆƒ…",
+ ],
+ 0.85,
+ ),
+ (
+ "geopolitical_war_room",
+ [
+ "geopolitical",
+ r"war\s+risk",
+ "sanction",
+ "ๅœฐ็ผ˜",
+ "ๅฑๆœบๅœบๆ™ฏ",
+ ],
+ 0.9,
+ ),
+ (
+ "pairs_research_lab",
+ [
+ r"pairs\s+trading",
+ "cointegration",
+ "้…ๅฏน",
+ "็ปŸ่ฎกๅฅ—ๅˆฉ",
+ ],
+ 0.9,
+ ),
+ (
+ "investment_committee",
+ [
+ r"investment\s+committee",
+ "ๆŠ•ๅง”ไผš",
+ "ๆŠ•่ต„ๅ†ณ็ญ–",
+ ],
+ 0.85,
+ ),
+ (
+ "macro_strategy_forum",
+ [
+ r"\bFed\b",
+ r"\bCPI\b",
+ r"\bPMI\b",
+ "macro",
+ "่ดงๅธๆ”ฟ็ญ–",
+ "ๅฎ่ง‚",
+ ],
+ 0.9,
+ ),
+ (
+ "statistical_arbitrage_desk",
+ [
+ r"statistical\s+arbitrage",
+ r"stat\s+arb",
+ "็ปŸ่ฎกๅฅ—ๅˆฉ",
+ ],
+ 0.9,
+ ),
+ (
+ "sentiment_intelligence_team",
+ [
+ "sentiment",
+ r"fear\s+and\s+greed",
+ "ๆƒ…็ปช",
+ "ๆๆ…Œ",
+ ],
+ 0.85,
+ ),
+ (
+ "technical_analysis_panel",
+ [
+ r"technical\s+analysis",
+ r"\bRSI\b",
+ r"\bMACD\b",
+ "ๆŠ€ๆœฏๅˆ†ๆž",
+ "K็บฟ",
+ ],
+ 0.85,
+ ),
+ (
+ "sector_rotation_team",
+ [
+ r"sector\s+rotation",
+ "ๆฟๅ—่ฝฎๅŠจ",
+ "่กŒไธš่ฝฎๅŠจ",
+ ],
+ 0.85,
+ ),
+ (
+ "portfolio_review_board",
+ [
+ r"portfolio\s+review",
+ "็ป„ๅˆๅค็›˜",
+ "ไธš็ปฉๅฝ’ๅ› ",
+ ],
+ 0.85,
+ ),
+ (
+ "ml_quant_lab",
+ [
+ r"\bML\b",
+ r"machine\s+learning",
+ "LSTM",
+ "XGBoost",
+ "ๆœบๅ™จๅญฆไน ",
+ "ๆทฑๅบฆๅญฆไน ",
+ ],
+ 0.9,
+ ),
+]
+
+# Market labels used in YAML templates (English, compatible with {market} placeholders).
+_MARKET_PATTERNS: list[tuple[str, list[str]]] = [
+ ("A-shares", [r"A่‚ก", r"a่‚ก", "ๆฒชๆทฑ", "ไธŠ่ฏ", "ๆทฑ่ฏ", "ๅˆ›ไธšๆฟ", "็ง‘ๅˆ›ๆฟ", "ไธญ่ฏ", r"\bCSI\b"]),
+ ("crypto", ["ๅŠ ๅฏ†", r"\bcrypto\b", r"\bBTC\b", r"\bETH\b", "ๅธ", "USDT", "ๆ•ฐๅญ—่ดงๅธ"]),
+ ("Hong Kong", ["ๆธฏ่‚ก", "ๆ’็”Ÿ", r"H่‚ก", "ๆธฏไบคๆ‰€", r"\.HK\b"]),
+ ("US", ["็พŽ่‚ก", "็บณๆ–ฏ่พพๅ…‹", "ๆ ‡ๆ™ฎ", "้“็ผๆ–ฏ", r"S&P", r"\.US\b"]),
+]
+
+# Risk tolerance for global_allocation_committee (English).
+_RISK_PATTERNS: list[tuple[str, list[str]]] = [
+ ("conservative", ["ไฟๅฎˆ", r"ไฝŽ้ฃŽ้™ฉ", "็จณๅฅๅไฟๅฎˆ", r"conservative"]),
+ ("moderate", ["็จณๅฅ", "ไธญ็ญ‰้ฃŽ้™ฉ", r"moderate", r"balanced"]),
+ ("aggressive", ["ๆฟ€่ฟ›", "้ซ˜้ฃŽ้™ฉ", "่ฟ›ๅ–", r"aggressive"]),
+]
+
+
+_STRATEGY_TYPE_PATTERNS: list[tuple[str, list[str]]] = [
+ ("low-price", [r"\blow[- ]price\b", r"\bcheap\b", r"\bdiscount\b", r"\blow premium\b"]),
+ ("dual-low", [r"\bdual[- ]low\b", r"\bdouble[- ]low\b"]),
+ ("high-convexity", [r"\bhigh[- ]convexity\b", r"\bconvexity\b"]),
+ ("rotation", [r"\brotation\b", r"\brotate\b", r"\brebalance\b"]),
+]
+
+_TARGET_VARIABLE_PATTERNS: list[tuple[str, list[str]]] = [
+ ("volatility", [r"\bvolatility\b", r"\bvol\b", r"\bvariance\b", r"\brisk\b"]),
+ ("direction", [r"\bdirection(?:al)?\b", r"\bup[- ]down\b", r"\bclassification\b"]),
+ ("return", [r"\breturns?\b", r"\balpha\b", r"\bpredict\b", r"\bforecast\b"]),
+]
+
+_REVIEW_PERIOD_PATTERNS: list[tuple[str, list[str]]] = [
+ ("monthly", [r"\bmonthly\b", r"\bmonth(?:ly)?\b"]),
+ ("quarterly", [r"\bquarter(?:ly)?\b", r"\bq[1-4]\b"]),
+]
+
+_SECTOR_PATTERNS: list[tuple[str, list[str]]] = [
+ ("banks", [r"\bbank(?:s|ing)?\b", r"\bfinancials?\b"]),
+ ("consumer", [r"\bconsumer\b", r"\bretail\b", r"\bstaples\b", r"\bdiscretionary\b"]),
+ ("semiconductors", [r"\bsemi(?:s|conductors?)?\b", r"\bchip(?:s)?\b"]),
+ ("technology", [r"\btech(?:nology)?\b", r"\bsoftware\b", r"\binternet\b"]),
+ ("energy", [r"\benergy\b", r"\boil\b", r"\bgas\b", r"\bpower\b"]),
+ ("healthcare", [r"\bhealth ?care\b", r"\bbiotech\b", r"\bpharma\b"]),
+ ("industrials", [r"\bindustrial(?:s)?\b", r"\bmanufacturing\b"]),
+ ("real estate", [r"\breal estate\b", r"\bproperty\b", r"\breit(?:s)?\b"]),
+ ("utilities", [r"\butilit(?:y|ies)\b"]),
+ ("materials", [r"\bmaterials?\b", r"\bmetals?\b", r"\bmining\b"]),
+]
+
+
+def _match_preset(prompt: str) -> str:
+ """Match user prompt to best preset using keyword scoring.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Best matching preset name.
+ """
+ scores: dict[str, float] = {}
+ for preset_name, keywords, boost in _PRESET_KEYWORDS:
+ score = 0.0
+ for kw in keywords:
+ if re.search(kw, prompt, re.IGNORECASE):
+ score += boost
+ scores[preset_name] = score
+
+ best = max(scores, key=scores.get) # type: ignore[arg-type]
+ if scores[best] > 0:
+ return best
+
+ return "equity_research_team"
+
+
+def _extract_market(prompt: str) -> str:
+ """Extract target market label from prompt.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Market label for template variables, default A-shares.
+ """
+ for market, patterns in _MARKET_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return market
+ return "A-shares"
+
+
+def _extract_risk_tolerance(prompt: str) -> str:
+ """Extract risk tolerance from prompt (English labels).
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ conservative | moderate | aggressive.
+ """
+ for level, patterns in _RISK_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return level
+ return "moderate"
+
+
+def _risk_to_etf_profile(risk: str) -> str:
+ """Map tolerance to etf_allocation_desk risk_profile values."""
+ return {"conservative": "conservative", "moderate": "balanced", "aggressive": "aggressive"}.get(risk, "balanced")
+
+
+def _extract_strategy_type(prompt: str) -> str:
+ """Extract convertible bond strategy type from prompt.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Strategy type label used by the convertible bond preset.
+ """
+ for strategy_type, patterns in _STRATEGY_TYPE_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return strategy_type
+ return "rotation"
+
+
+def _extract_target_variable(prompt: str) -> str:
+ """Extract ML prediction target from prompt.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Prediction target label for ml_quant_lab.
+ """
+ for target_variable, patterns in _TARGET_VARIABLE_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return target_variable
+ return "return"
+
+
+def _extract_review_period(prompt: str) -> str:
+ """Extract portfolio review cadence from prompt.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Review cadence label for portfolio_review_board.
+ """
+ for review_period, patterns in _REVIEW_PERIOD_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return review_period
+ return "quarterly"
+
+
+def _extract_sector(prompt: str) -> str:
+ """Extract sector constraint from prompt.
+
+ Args:
+ prompt: User's natural language prompt.
+
+ Returns:
+ Sector filter value, or empty string for full-market scans.
+ """
+ broad_market_patterns = [
+ r"\bfull market\b",
+ r"\bbroad market\b",
+ r"\ball sectors\b",
+ r"\bacross sectors\b",
+ ]
+ for pat in broad_market_patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return ""
+
+ for sector, patterns in _SECTOR_PATTERNS:
+ for pat in patterns:
+ if re.search(pat, prompt, re.IGNORECASE):
+ return sector
+ return ""
+
+
+def _snippet(prompt: str, max_len: int = 240) -> str:
+ """Trim prompt for auxiliary fields."""
+ s = prompt.strip()
+ return s if len(s) <= max_len else s[: max_len - 3] + "..."
+
+
+def _build_variables(preset_name: str, prompt: str) -> dict[str, str]:
+ """Build template variables from prompt for the matched preset.
+
+ Args:
+ preset_name: Matched preset name.
+ prompt: User's original prompt.
+
+ Returns:
+ Dict of template variables required by the YAML preset.
+ """
+ market = _extract_market(prompt)
+ risk = _extract_risk_tolerance(prompt)
+ goal = prompt.strip()
+ g = _snippet(goal, 2000)
+
+ # Preset-specific variable sets (see agent/config/swarm/*.yaml).
+ builders: dict[str, dict[str, str]] = {
+ "global_allocation_committee": {"goal": g, "risk_tolerance": risk},
+ "equity_research_team": {"market": market, "goal": g},
+ "quant_strategy_desk": {"market": market, "goal": g},
+ "risk_committee": {"goal": g},
+ "factor_research_committee": {"market": market, "factor_type": "value"},
+ "event_driven_task_force": {"market": market, "event_type": "all types"},
+ "etf_allocation_desk": {"risk_profile": _risk_to_etf_profile(risk), "market": market},
+ "derivatives_strategy_desk": {"target": g, "view": "neutral"},
+ "crypto_research_lab": {"target": "BTC, ETH, SOL", "timeframe": "medium-term 1-3 months"},
+ "credit_research_team": {"target": g, "market": "China credit bonds"},
+ "convertible_bond_team": {
+ "market": "A-share convertible bonds",
+ "goal": g,
+ "strategy_type": _extract_strategy_type(prompt),
+ },
+ "fundamental_research_team": {"target": g, "market": market},
+ "commodity_research_team": {"commodity": "gold", "horizon": "3 months"},
+ "fund_selection_panel": {"fund_type": "equity", "goal": g},
+ "social_alpha_team": {"target": g, "timeframe": "daily"},
+ "geopolitical_war_room": {"crisis": g, "market": market},
+ "pairs_research_lab": {"market": market, "sector": _extract_sector(prompt)},
+ "investment_committee": {"target": g, "market": market},
+ "macro_strategy_forum": {"market": market, "horizon": "quarterly"},
+ "statistical_arbitrage_desk": {"market": market, "goal": g, "sector": _extract_sector(prompt)},
+ "sentiment_intelligence_team": {"market": market, "timeframe": "daily"},
+ "technical_analysis_panel": {"target": g, "timeframe": "daily"},
+ "sector_rotation_team": {"market": market, "goal": g},
+ "portfolio_review_board": {"portfolio": g, "review_period": _extract_review_period(prompt), "goal": g},
+ "ml_quant_lab": {"market": market, "target_variable": _extract_target_variable(prompt), "goal": g},
+ }
+
+ return builders.get(preset_name, {"market": market, "goal": g})
+
+
+class SwarmTool(BaseTool):
+ """Launch a swarm multi-agent team to execute complex tasks.
+
+ Accepts a natural-language prompt, auto-selects the best preset,
+ and blocks synchronously until the swarm run completes or times out.
+ """
+
+ name = "run_swarm"
+ description = (
+ "Run a multi-agent swarm team for complex analysis tasks. "
+ "Provide a natural language prompt; the tool picks a preset from agent/config/swarm "
+ "(e.g. equity_research_team, quant_strategy_desk, global_allocation_committee, risk_committee) "
+ "and fills template variables. "
+ "Example: run_swarm(prompt='Analyze A-share new energy opportunities for Q2 2026')"
+ )
+ parameters = {
+ "type": "object",
+ "properties": {
+ "prompt": {
+ "type": "string",
+ "description": "Natural language description of the analysis task.",
+ },
+ },
+ "required": ["prompt"],
+ }
+
+ def execute(self, **kwargs: Any) -> str:
+ """Start a swarm run: auto-match preset, extract variables, wait for completion.
+
+ Args:
+ **kwargs: Must include prompt (str).
+
+ Returns:
+ JSON string with status, preset, variables, final_report, tasks, token_usage.
+ """
+ prompt = kwargs.get("prompt", "")
+
+ if not prompt:
+ return json.dumps(
+ {"status": "error", "error": "Missing 'prompt' parameter"},
+ ensure_ascii=False,
+ )
+
+ preset = _match_preset(prompt)
+ variables = _build_variables(preset, prompt)
+
+ logger.info(
+ "SwarmTool: matched preset=%s, variables=%s from prompt: %s",
+ preset,
+ variables,
+ prompt[:100],
+ )
+
+ from src.swarm.runtime import SwarmRuntime
+ from src.swarm.store import SwarmStore
+
+ swarm_base_dir = Path(__file__).resolve().parents[2] / ".swarm" / "runs"
+ swarm_base_dir.mkdir(parents=True, exist_ok=True)
+ store = SwarmStore(base_dir=swarm_base_dir)
+ runtime = SwarmRuntime(store=store)
+
+ try:
+ run = runtime.start_run(preset, variables)
+ except FileNotFoundError as exc:
+ return json.dumps(
+ {"status": "error", "error": f"Preset not found: {exc}"},
+ ensure_ascii=False,
+ )
+ except ValueError as exc:
+ return json.dumps(
+ {"status": "error", "error": f"Invalid DAG: {exc}"},
+ ensure_ascii=False,
+ )
+ except Exception as exc:
+ return json.dumps(
+ {"status": "error", "error": f"Failed to start swarm: {exc}"},
+ ensure_ascii=False,
+ )
+
+ run_id = run.id
+ logger.info("SwarmTool: started run %s (preset=%s)", run_id, preset)
+
+ t0 = time.monotonic()
+ while time.monotonic() - t0 < _MAX_WAIT_SECONDS:
+ time.sleep(_POLL_INTERVAL_SECONDS)
+
+ loaded = store.load_run(run_id)
+ if loaded is None:
+ return json.dumps(
+ {"status": "error", "error": f"Run {run_id} disappeared"},
+ ensure_ascii=False,
+ )
+
+ if loaded.status.value in ("completed", "failed", "cancelled"):
+ return _format_result(loaded, preset, variables)
+
+ runtime.cancel_run(run_id)
+ loaded = store.load_run(run_id)
+ if loaded is not None:
+ return _format_result(loaded, preset, variables, timed_out=True)
+
+ return json.dumps(
+ {"status": "timeout", "error": f"Swarm run {run_id} timed out after {_MAX_WAIT_SECONDS}s"},
+ ensure_ascii=False,
+ )
+
+
+def _format_result(
+ run: Any,
+ preset: str,
+ variables: dict[str, str],
+ timed_out: bool = False,
+) -> str:
+ """Format a SwarmRun into a JSON result string.
+
+ Args:
+ run: SwarmRun instance.
+ preset: Matched preset name.
+ variables: Extracted variables.
+ timed_out: Whether the run was terminated due to timeout.
+
+ Returns:
+ JSON string with run status, report, task summaries, and token usage.
+ """
+ task_summaries = []
+ for task in run.tasks:
+ task_summaries.append(
+ {
+ "id": task.id,
+ "agent_id": task.agent_id,
+ "status": task.status.value if hasattr(task.status, "value") else str(task.status),
+ "summary": task.summary or "",
+ "iterations": task.worker_iterations,
+ }
+ )
+
+ status = "timeout" if timed_out else run.status.value
+
+ result = {
+ "status": status,
+ "run_id": run.id,
+ "preset": preset,
+ "auto_variables": variables,
+ "final_report": run.final_report or "",
+ "tasks": task_summaries,
+ "token_usage": {
+ "total_input_tokens": run.total_input_tokens,
+ "total_output_tokens": run.total_output_tokens,
+ },
+ }
+ return json.dumps(result, ensure_ascii=False, indent=2)
diff --git a/agent/src/tools/task_tools.py b/agent/src/tools/task_tools.py
new file mode 100644
index 000000000..dcfe29301
--- /dev/null
+++ b/agent/src/tools/task_tools.py
@@ -0,0 +1,135 @@
+"""Task system: persistent tasks + dependency graph stored as JSON files."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any
+
+from src.agent.tools import BaseTool
+
+TASKS_DIR = Path(__file__).resolve().parents[2] / ".tasks"
+
+
+class TaskManager:
+ """Task CRUD + dependency graph; one JSON file per task."""
+
+ def __init__(self) -> None:
+ self.dir = TASKS_DIR
+ self.dir.mkdir(exist_ok=True)
+ self._next_id = self._max_id() + 1
+
+ def _max_id(self) -> int:
+ ids = [int(f.stem.split("_")[1]) for f in self.dir.glob("task_*.json")]
+ return max(ids) if ids else 0
+
+ def _load(self, task_id: int) -> dict:
+ path = self.dir / f"task_{task_id}.json"
+ if not path.exists():
+ raise ValueError(f"Task {task_id} not found")
+ return json.loads(path.read_text(encoding="utf-8"))
+
+ def _save(self, task: dict) -> None:
+ path = self.dir / f"task_{task['id']}.json"
+ path.write_text(json.dumps(task, indent=2, ensure_ascii=False), encoding="utf-8")
+
+ def create(self, subject: str, description: str = "") -> str:
+ task = {"id": self._next_id, "subject": subject, "description": description,
+ "status": "pending", "blockedBy": [], "blocks": []}
+ self._save(task)
+ self._next_id += 1
+ return json.dumps(task, indent=2, ensure_ascii=False)
+
+ def get(self, task_id: int) -> str:
+ return json.dumps(self._load(task_id), indent=2, ensure_ascii=False)
+
+ def update(self, task_id: int, status: str = None,
+ addBlockedBy: list = None, addBlocks: list = None) -> str:
+ task = self._load(task_id)
+ if status:
+ task["status"] = status
+ if status == "completed":
+ self._clear_dep(task_id)
+ if addBlockedBy:
+ task["blockedBy"] = list(set(task["blockedBy"] + addBlockedBy))
+ if addBlocks:
+ task["blocks"] = list(set(task["blocks"] + addBlocks))
+ for bid in addBlocks:
+ try:
+ blocked = self._load(bid)
+ if task_id not in blocked["blockedBy"]:
+ blocked["blockedBy"].append(task_id)
+ self._save(blocked)
+ except ValueError:
+ pass
+ self._save(task)
+ return json.dumps(task, indent=2, ensure_ascii=False)
+
+ def _clear_dep(self, completed_id: int) -> None:
+ for f in self.dir.glob("task_*.json"):
+ task = json.loads(f.read_text(encoding="utf-8"))
+ if completed_id in task.get("blockedBy", []):
+ task["blockedBy"].remove(completed_id)
+ self._save(task)
+
+ def list_all(self) -> str:
+ tasks = [json.loads(f.read_text(encoding="utf-8")) for f in sorted(self.dir.glob("task_*.json"))]
+ if not tasks:
+ return "No tasks."
+ lines = []
+ for t in tasks:
+ m = {"pending": "[ ]", "in_progress": "[>]", "completed": "[x]"}.get(t["status"], "[?]")
+ b = f" (blocked by: {t['blockedBy']})" if t.get("blockedBy") else ""
+ lines.append(f"{m} #{t['id']}: {t['subject']}{b}")
+ return "\n".join(lines)
+
+
+TASKS = TaskManager()
+
+
+class TaskCreateTool(BaseTool):
+ name = "task_create"
+ description = "Create a new task."
+ parameters = {"type": "object", "properties": {
+ "subject": {"type": "string"}, "description": {"type": "string"}
+ }, "required": ["subject"]}
+
+ def execute(self, **kw: Any) -> str:
+ return TASKS.create(kw["subject"], kw.get("description", ""))
+
+
+class TaskUpdateTool(BaseTool):
+ name = "task_update"
+ description = "Update a task's status or dependencies."
+ parameters = {"type": "object", "properties": {
+ "task_id": {"type": "integer"},
+ "status": {"type": "string", "enum": ["pending", "in_progress", "completed"]},
+ "addBlockedBy": {"type": "array", "items": {"type": "integer"}},
+ "addBlocks": {"type": "array", "items": {"type": "integer"}},
+ }, "required": ["task_id"]}
+ repeatable = True
+
+ def execute(self, **kw: Any) -> str:
+ return TASKS.update(kw["task_id"], kw.get("status"), kw.get("addBlockedBy"), kw.get("addBlocks"))
+
+
+class TaskListTool(BaseTool):
+ name = "task_list"
+ description = "List all tasks with status summary."
+ parameters = {"type": "object", "properties": {}, "required": []}
+ repeatable = True
+
+ def execute(self, **kw: Any) -> str:
+ return TASKS.list_all()
+
+
+class TaskGetTool(BaseTool):
+ name = "task_get"
+ description = "Get full details of a task by ID."
+ parameters = {"type": "object", "properties": {
+ "task_id": {"type": "integer"},
+ }, "required": ["task_id"]}
+ repeatable = True
+
+ def execute(self, **kw: Any) -> str:
+ return TASKS.get(kw["task_id"])
diff --git a/agent/src/tools/web_reader_tool.py b/agent/src/tools/web_reader_tool.py
new file mode 100644
index 000000000..fa3eb3a9e
--- /dev/null
+++ b/agent/src/tools/web_reader_tool.py
@@ -0,0 +1,77 @@
+"""Web reader tool: fetch a URL as Markdown text via the Jina Reader API."""
+
+from __future__ import annotations
+
+import json
+
+import requests
+
+from src.agent.tools import BaseTool
+
+_JINA_PREFIX = "https://r.jina.ai/"
+_TIMEOUT = 30
+_MAX_LENGTH = 8000
+
+
+def read_url(url: str) -> str:
+ """Fetch web page content via the Jina Reader API.
+
+ Args:
+ url: Target URL.
+
+ Returns:
+ JSON-formatted result containing title, content, and url.
+ """
+ try:
+ resp = requests.get(
+ f"{_JINA_PREFIX}{url}",
+ headers={"Accept": "text/markdown"},
+ timeout=_TIMEOUT,
+ )
+ if resp.status_code != 200:
+ return json.dumps({
+ "status": "error",
+ "error": f"Jina Reader returned {resp.status_code}: {resp.text[:500]}",
+ }, ensure_ascii=False)
+
+ text = resp.text
+ title = ""
+ for line in text.split("\n"):
+ if line.startswith("Title:"):
+ title = line[6:].strip()
+ break
+
+ if len(text) > _MAX_LENGTH:
+ text = text[:_MAX_LENGTH] + f"\n\n... (truncated, total {len(resp.text)} chars)"
+
+ return json.dumps({
+ "status": "ok",
+ "title": title,
+ "url": url,
+ "content": text,
+ "length": len(resp.text),
+ }, ensure_ascii=False)
+
+ except requests.Timeout:
+ return json.dumps({"status": "error", "error": f"Request timed out ({_TIMEOUT}s)"}, ensure_ascii=False)
+ except Exception as exc:
+ return json.dumps({"status": "error", "error": str(exc)}, ensure_ascii=False)
+
+
+class WebReaderTool(BaseTool):
+ """Web reader tool."""
+
+ name = "read_url"
+ description = "Fetch web page content: provide a URL and receive the page as Markdown text. Useful for reading docs, articles, API references, etc."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "url": {"type": "string", "description": "URL of the web page to read"},
+ },
+ "required": ["url"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs) -> str:
+ """Fetch web page."""
+ return read_url(kwargs["url"])
diff --git a/agent/src/tools/write_file_tool.py b/agent/src/tools/write_file_tool.py
new file mode 100644
index 000000000..fccb91093
--- /dev/null
+++ b/agent/src/tools/write_file_tool.py
@@ -0,0 +1,67 @@
+"""Write file tool: create or overwrite files in the workspace."""
+
+from __future__ import annotations
+
+import json
+from pathlib import Path
+from typing import Any
+
+from src.agent.tools import BaseTool
+from src.tools.path_utils import safe_path as _safe_path
+
+
+class WriteFileTool(BaseTool):
+ """Create or overwrite a workspace file, creating parent directories as needed."""
+
+ name = "write_file"
+ description = "Write content to a file in the workspace. Creates parent directories automatically."
+ parameters = {
+ "type": "object",
+ "properties": {
+ "path": {"type": "string", "description": "File path relative to run_dir"},
+ "content": {"type": "string", "description": "Content to write"},
+ },
+ "required": ["path", "content"],
+ }
+ repeatable = True
+
+ def execute(self, **kwargs: Any) -> str:
+ """Write content to a file.
+
+ Args:
+ **kwargs: Must include path and content. Optional run_dir.
+
+ Returns:
+ JSON string with bytes_written or an error.
+ """
+ file_path = kwargs["path"]
+ content = kwargs["content"]
+ run_dir = kwargs.get("run_dir")
+
+ if not run_dir:
+ return json.dumps({
+ "status": "error",
+ "error": "run_dir is required for write_file",
+ }, ensure_ascii=False)
+
+ try:
+ resolved = _safe_path(file_path, Path(run_dir))
+ except ValueError as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
+
+ try:
+ resolved.parent.mkdir(parents=True, exist_ok=True)
+ resolved.write_text(content, encoding="utf-8")
+ return json.dumps({
+ "status": "ok",
+ "path": str(resolved),
+ "bytes_written": len(content.encode("utf-8")),
+ }, ensure_ascii=False)
+ except Exception as exc:
+ return json.dumps({
+ "status": "error",
+ "error": str(exc),
+ }, ensure_ascii=False)
diff --git a/agent/src/ui_services.py b/agent/src/ui_services.py
new file mode 100644
index 000000000..5221a5211
--- /dev/null
+++ b/agent/src/ui_services.py
@@ -0,0 +1,570 @@
+"""UI-oriented services for run analysis and local process management.
+
+This module centralizes the data shaping needed by the frontend workbench:
+
+- parse run metadata into frontend-friendly context
+- reconstruct market data for historical runs when artifacts are incomplete
+- compute indicator overlays and trade markers
+- read runner logs for the detail page
+- (LocalApiManager removed โ€“ dead code)
+"""
+
+from __future__ import annotations
+
+import csv
+import json
+from datetime import datetime, timedelta
+from pathlib import Path
+from typing import Any, Dict, List, Optional
+
+DEFAULT_ANALYSIS_PERIODS = [5, 20]
+
+
+def format_run_date(date_str: Optional[str]) -> Optional[str]:
+ """Normalize supported date strings into ``YYYY-MM-DD``.
+
+ Args:
+ date_str: Raw date string from request or planner artifacts.
+
+ Returns:
+ The normalized date string, or ``None`` when the input is empty.
+ """
+ if not date_str:
+ return None
+
+ value = str(date_str).strip()
+ if not value:
+ return None
+ if "-" in value and len(value) == 10:
+ return value
+ if len(value) == 8 and value.isdigit():
+ return f"{value[:4]}-{value[4:6]}-{value[6:8]}"
+ # Handle datetime strings like "2022-04-13 16:00:00" โ†’ extract date part
+ if "-" in value and len(value) > 10 and value[4] == "-" and value[7] == "-":
+ return value[:10]
+ return value
+
+
+def load_json_file(path: Path) -> Optional[Dict[str, Any]]:
+ """Load a JSON file if it exists.
+
+ Args:
+ path: JSON file path.
+
+ Returns:
+ The decoded object when the file exists and is valid JSON.
+ """
+ try:
+ if path.exists():
+ return json.loads(path.read_text(encoding="utf-8"))
+ except Exception:
+ return None
+ return None
+
+
+def load_csv_records(path: Path) -> List[Dict[str, Any]]:
+ """Load CSV rows as dictionaries.
+
+ Args:
+ path: CSV file path.
+
+ Returns:
+ Parsed CSV rows. Missing or unreadable files return an empty list.
+ """
+ if not path.exists():
+ return []
+
+ try:
+ with path.open("r", encoding="utf-8", newline="") as handle:
+ return [dict(row) for row in csv.DictReader(handle)]
+ except Exception:
+ return []
+
+
+def normalize_codes(raw_codes: Any) -> List[str]:
+ """Normalize a run's code selection into a list of symbols.
+
+ Args:
+ raw_codes: Input from ``req.json``.
+
+ Returns:
+ A list of non-empty symbol strings.
+ """
+ if isinstance(raw_codes, list):
+ return [str(code).strip() for code in raw_codes if str(code).strip()]
+ if isinstance(raw_codes, str):
+ return [code.strip() for code in raw_codes.split(",") if code.strip()]
+ return []
+
+
+def load_run_context(run_dir: Path) -> Dict[str, Any]:
+ """Load normalized request context for a run detail page.
+
+ Falls back to planner_output.json when req.json context is empty
+ (common in session mode where the LLM extracts codes/dates).
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ A dictionary containing prompt, codes, dates, and the raw context.
+ """
+ request_data = load_json_file(run_dir / "req.json") or {}
+ context = dict(request_data.get("context") or {})
+ prompt = str(request_data.get("prompt") or "").strip()
+ codes = normalize_codes(context.get("codes"))
+ start_date = format_run_date(context.get("start_date"))
+ end_date = format_run_date(context.get("end_date"))
+
+ # Fallback: extract from planner_output.json (session mode stores codes there)
+ if not codes or not start_date or not end_date:
+ planner = load_json_file(run_dir / "planner_output.json") or {}
+ contract = planner.get("coding_contract") or {}
+ req_ctx = (planner.get("requirements") or {}).get("context") or {}
+
+ if not codes:
+ raw = contract.get("target_scope") or req_ctx.get("codes") or contract.get("codes")
+ codes = normalize_codes(raw) or codes
+ if not codes:
+ for req in contract.get("data_requirements") or []:
+ scope = req.get("symbol_scope", "")
+ if isinstance(scope, str) and scope.strip():
+ codes.extend(c.strip() for c in scope.split(",") if c.strip())
+ codes = list(dict.fromkeys(codes))
+
+ if not start_date:
+ start_date = format_run_date(contract.get("start_date") or req_ctx.get("start_date"))
+ if not end_date:
+ end_date = format_run_date(contract.get("end_date") or req_ctx.get("end_date"))
+
+ return {
+ "prompt": prompt,
+ "codes": codes,
+ "start_date": start_date,
+ "end_date": end_date,
+ "raw_context": context,
+ }
+
+
+def infer_indicator_periods(run_dir: Path) -> List[int]:
+ """Infer moving-average periods from planner or design artifacts.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ Sorted indicator periods. Defaults to ``[5, 20]`` when unspecified.
+ """
+ periods: set[int] = set()
+
+ planner = load_json_file(run_dir / "planner_output.json") or {}
+ contract = planner.get("coding_contract") or {}
+ input_logic = contract.get("input_logic") or {}
+ parameters = input_logic.get("parameters") or {}
+ signal_params = parameters.get("signal_params") or {}
+
+ for key, value in signal_params.items():
+ if "ma" in str(key).lower():
+ try:
+ periods.add(int(value))
+ except (TypeError, ValueError):
+ continue
+
+ design = load_json_file(run_dir / "design_spec.json") or {}
+ defaults = design.get("defaults_and_tunables") or {}
+ assumptions = defaults.get("parameter_assumptions") or {}
+ for key, value in assumptions.items():
+ if "ma" in str(key).lower():
+ try:
+ periods.add(int(value))
+ except (TypeError, ValueError):
+ continue
+
+ if not periods:
+ return list(DEFAULT_ANALYSIS_PERIODS)
+ return sorted(periods)
+
+
+def infer_run_stage(run_dir: Path) -> str:
+ """Infer a human-friendly run stage from persisted artifacts.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ A stage token suitable for UI badges.
+ """
+ state_data = load_json_file(run_dir / "state.json") or {}
+ state_status = str(state_data.get("status") or "").lower()
+ if state_status == "success":
+ return "done"
+ if state_status == "failed":
+ return "failed"
+ if (run_dir / "artifacts" / "metrics.csv").exists():
+ return "backtest"
+ if (run_dir / "review_report.json").exists():
+ return "review"
+ if (run_dir / "code" / "signal_engine.py").exists():
+ return "coding"
+ if (run_dir / "design_spec.json").exists():
+ return "design"
+ if (run_dir / "planner_output.json").exists():
+ return "planning"
+ if (run_dir / "req.json").exists():
+ return "queued"
+ return "unknown"
+
+
+def collect_run_logs(run_dir: Path, line_limit: int = 200) -> List[Dict[str, Any]]:
+ """Read stdout/stderr files into a flat log entry list.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+ line_limit: Maximum number of lines to keep per file.
+
+ Returns:
+ Tagged log entries ordered by file, then line number.
+ """
+ entries: List[Dict[str, Any]] = []
+ log_files = [
+ ("stdout", run_dir / "logs" / "runner_stdout.txt"),
+ ("stderr", run_dir / "logs" / "runner_stderr.txt"),
+ ("compile", run_dir / "logs" / "compile_error.txt"),
+ ]
+
+ for source, path in log_files:
+ if not path.exists():
+ continue
+ lines = path.read_text(encoding="utf-8", errors="replace").splitlines()
+ if line_limit > 0:
+ lines = lines[-line_limit:]
+ for index, line in enumerate(lines, start=1):
+ entries.append(
+ {
+ "source": source,
+ "line_number": index,
+ "message": line,
+ }
+ )
+
+ return entries
+
+
+def build_trade_markers(trades: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
+ """Normalize trade rows into frontend marker objects.
+
+ Args:
+ trades: Trade rows loaded from ``trades.csv``.
+
+ Returns:
+ Marker dictionaries consumed by the detail chart.
+ """
+ markers: List[Dict[str, Any]] = []
+ for row in trades:
+ side = str(row.get("side") or "").upper()
+ timestamp = str(row.get("timestamp") or "")
+ markers.append(
+ {
+ "time": timestamp[:10],
+ "timestamp": timestamp,
+ "code": row.get("code"),
+ "side": side,
+ "price": _safe_float(row.get("price")),
+ "qty": _safe_float(row.get("qty")),
+ "reason": row.get("reason"),
+ "text": f"{side} {row.get('code') or ''}".strip(),
+ }
+ )
+ return markers
+
+
+def group_price_rows(price_rows: List[Dict[str, Any]]) -> Dict[str, List[Dict[str, Any]]]:
+ """Group normalized price rows by symbol.
+
+ Args:
+ price_rows: Flat list of normalized price rows.
+
+ Returns:
+ A dictionary keyed by symbol.
+ """
+ grouped: Dict[str, List[Dict[str, Any]]] = {}
+ for row in price_rows:
+ code = str(row.get("code") or "UNKNOWN")
+ grouped.setdefault(code, []).append(row)
+ return grouped
+
+
+def build_indicator_series(
+ price_rows: List[Dict[str, Any]],
+ periods: Optional[List[int]] = None,
+) -> Dict[str, Dict[str, List[Dict[str, Any]]]]:
+ """Compute moving-average overlays from normalized price rows.
+
+ Args:
+ price_rows: Flat list of normalized OHLC rows.
+ periods: Moving-average windows to compute.
+
+ Returns:
+ Nested dictionaries grouped by symbol and indicator label.
+ """
+ grouped = group_price_rows(price_rows)
+ indicator_periods = sorted(set(periods or DEFAULT_ANALYSIS_PERIODS))
+ output: Dict[str, Dict[str, List[Dict[str, Any]]]] = {}
+
+ for code, rows in grouped.items():
+ ordered_rows = sorted(
+ (
+ {
+ **row,
+ "time": str(row.get("time") or format_run_date(row.get("timestamp")) or ""),
+ }
+ for row in rows
+ ),
+ key=lambda item: item["time"],
+ )
+ closes = [float(row["close"]) for row in ordered_rows]
+ code_series: Dict[str, List[Dict[str, Any]]] = {}
+ for period in indicator_periods:
+ label = f"ma{period}"
+ values: List[Dict[str, Any]] = []
+ for index, row in enumerate(ordered_rows):
+ if index + 1 < period:
+ current = None
+ else:
+ window = closes[index - period + 1 : index + 1]
+ current = round(sum(window) / period, 6)
+ values.append({"time": row["time"], "value": current})
+ code_series[label] = values
+ output[code] = code_series
+
+ return output
+
+
+def _load_ohlcv_artifacts(run_dir: Path) -> List[Dict[str, Any]]:
+ """Read individual ohlcv_*.csv files saved by the backtest engine.
+
+ The engine writes ``ohlcv_{code}.csv`` per symbol with columns
+ ``trade_date,open,high,low,close,volume``. This function reads
+ them all and returns a flat list of normalized rows.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ Normalized OHLC rows, empty list if no files found.
+ """
+ artifacts = run_dir / "artifacts"
+ if not artifacts.is_dir():
+ return []
+ ohlcv_files = sorted(artifacts.glob("ohlcv_*.csv"))
+ if not ohlcv_files:
+ return []
+ rows: List[Dict[str, Any]] = []
+ for f in ohlcv_files:
+ code = f.stem.removeprefix("ohlcv_")
+ for r in load_csv_records(f):
+ ts = r.get("trade_date") or r.get("timestamp") or r.get("time") or r.get("")
+ if not ts:
+ continue
+ rows.append({
+ "time": ts, "timestamp": ts, "code": code,
+ "open": r.get("open", 0), "high": r.get("high", 0),
+ "low": r.get("low", 0), "close": r.get("close", 0),
+ "volume": r.get("volume", 0),
+ })
+ return _normalize_price_rows(rows)
+
+
+def load_price_series(run_dir: Path) -> List[Dict[str, Any]]:
+ """Load chart-ready price rows: price_series.csv > ohlcv_*.csv > API reconstruct.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ Normalized OHLC rows sorted by (code, date).
+ """
+ artifact_path = run_dir / "artifacts" / "price_series.csv"
+ if artifact_path.exists():
+ return _normalize_price_rows(load_csv_records(artifact_path))
+ rows = _load_ohlcv_artifacts(run_dir)
+ if rows:
+ return rows
+ return reconstruct_price_series(run_dir)
+
+
+def reconstruct_price_series(run_dir: Path) -> List[Dict[str, Any]]:
+ """Rebuild OHLC rows for a historical run using its generated loader.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ Normalized OHLC rows clipped to the run's visible backtest range.
+ """
+ context = load_run_context(run_dir)
+ codes = context.get("codes") or []
+ start_date = context.get("start_date")
+ end_date = context.get("end_date")
+ if not codes or not start_date or not end_date:
+ return []
+
+ signal_path = run_dir / "code" / "signal_engine.py"
+ if not signal_path.exists():
+ return []
+
+ agent_root = Path(__file__).resolve().parents[1]
+ try:
+ from src.providers.llm import _ensure_dotenv
+
+ _ensure_dotenv()
+ except Exception:
+ pass
+ fetch_start_date = _compute_fetch_start_date(run_dir, start_date)
+
+ try:
+ source = context.get("source", "tushare")
+ if source == "okx":
+ from backtest.loaders.okx import DataLoader
+ elif source == "yfinance":
+ from backtest.loaders.yfinance_loader import DataLoader
+ else:
+ from backtest.loaders.tushare import DataLoader
+ loader = DataLoader()
+ data_map = loader.fetch(codes, fetch_start_date, end_date)
+ except Exception as exc:
+ print(f"[WARN] reconstruct_price_series: DataLoader failed ({exc})")
+ return []
+
+ if not data_map:
+ print(f"[WARN] reconstruct_price_series: DataLoader returned empty")
+ return []
+
+ return _flatten_data_map(data_map, start_date=start_date)
+
+
+def build_run_analysis(run_dir: Path) -> Dict[str, Any]:
+ """Build the analysis payload consumed by the run detail page.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+
+ Returns:
+ A serializable dictionary of chart, trade, and log data.
+ """
+ price_rows = load_price_series(run_dir)
+ periods = infer_indicator_periods(run_dir)
+ trades = load_csv_records(run_dir / "artifacts" / "trades.csv")
+
+ return {
+ "run_stage": infer_run_stage(run_dir),
+ "run_context": load_run_context(run_dir),
+ "price_series": group_price_rows(price_rows),
+ "indicator_series": build_indicator_series(price_rows, periods) if price_rows else {},
+ "trade_markers": build_trade_markers(trades),
+ "run_logs": collect_run_logs(run_dir),
+ }
+
+
+def _safe_float(value: Any) -> Optional[float]:
+ """Convert values to floats without raising.
+
+ Args:
+ value: Value to convert.
+
+ Returns:
+ A float or ``None`` when conversion fails.
+ """
+ try:
+ if value is None or value == "":
+ return None
+ return float(value)
+ except (TypeError, ValueError):
+ return None
+
+
+def _compute_fetch_start_date(run_dir: Path, start_date: str) -> str:
+ """Compute the lookback-aware fetch start date for a run.
+
+ Args:
+ run_dir: The run directory under ``runs/``.
+ start_date: Visible backtest start date.
+
+ Returns:
+ The fetch start date used to rebuild market data.
+ """
+ planner = load_json_file(run_dir / "planner_output.json") or {}
+ lookback = int(((planner.get("coding_contract") or {}).get("data_lookback_days")) or 0)
+ if lookback <= 0:
+ return start_date
+
+ start_dt = datetime.strptime(start_date, "%Y-%m-%d")
+ buffer_days = int(lookback * 1.5) + 10
+ return (start_dt - timedelta(days=buffer_days)).strftime("%Y-%m-%d")
+
+
+def _normalize_price_rows(rows: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
+ """Normalize stored price rows for charting.
+
+ Args:
+ rows: Raw rows loaded from CSV or generated data frames.
+
+ Returns:
+ Normalized price rows.
+ """
+ normalized: List[Dict[str, Any]] = []
+ for row in rows:
+ timestamp = format_run_date(row.get("timestamp") or row.get("time"))
+ if not timestamp:
+ continue
+ normalized.append(
+ {
+ "time": timestamp,
+ "timestamp": timestamp,
+ "code": str(row.get("code") or "UNKNOWN"),
+ "open": float(row.get("open") or 0.0),
+ "high": float(row.get("high") or 0.0),
+ "low": float(row.get("low") or 0.0),
+ "close": float(row.get("close") or 0.0),
+ "volume": float(row.get("volume") or 0.0),
+ }
+ )
+ return sorted(normalized, key=lambda item: (item["code"], item["time"]))
+
+
+def _flatten_data_map(data_map: Dict[str, Any], start_date: str) -> List[Dict[str, Any]]:
+ """Convert a fetched ``data_map`` into normalized price rows.
+
+ Args:
+ data_map: Symbol-keyed frame dictionary returned by ``DataLoader``.
+ start_date: Visible backtest start date.
+
+ Returns:
+ Normalized price rows clipped to ``start_date``.
+ """
+ import pandas as pd
+
+ clip_dt = pd.Timestamp(start_date)
+ rows: List[Dict[str, Any]] = []
+
+ for code, frame in data_map.items():
+ current = frame.copy()
+ if not isinstance(current.index, pd.DatetimeIndex):
+ current.index = pd.to_datetime(current.index)
+ current = current[current.index >= clip_dt]
+ current = current.sort_index()
+ for timestamp, row in current.iterrows():
+ rows.append(
+ {
+ "time": pd.Timestamp(timestamp).strftime("%Y-%m-%d"),
+ "timestamp": pd.Timestamp(timestamp).strftime("%Y-%m-%d"),
+ "code": code,
+ "open": round(float(row.get("open") or 0.0), 6),
+ "high": round(float(row.get("high") or 0.0), 6),
+ "low": round(float(row.get("low") or 0.0), 6),
+ "close": round(float(row.get("close") or 0.0), 6),
+ "volume": round(float(row.get("volume") or 0.0), 6),
+ }
+ )
+
+ return rows
diff --git a/assets/Frontend.mp4 b/assets/Frontend.mp4
new file mode 100644
index 000000000..702889e47
Binary files /dev/null and b/assets/Frontend.mp4 differ
diff --git a/assets/cli.mp4 b/assets/cli.mp4
new file mode 100644
index 000000000..bc3146a0f
Binary files /dev/null and b/assets/cli.mp4 differ
diff --git a/assets/icon.png b/assets/icon.png
new file mode 100644
index 000000000..7b1edcd6f
Binary files /dev/null and b/assets/icon.png differ
diff --git a/assets/pip-install.svg b/assets/pip-install.svg
new file mode 100644
index 000000000..0dfd16175
--- /dev/null
+++ b/assets/pip-install.svg
@@ -0,0 +1,58 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="340" height="50" viewBox="0 0 340 50">
+ <defs>
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+ <stop offset="0%" stop-color="#1a1a2e"/>
+ <stop offset="100%" stop-color="#16213e"/>
+ </linearGradient>
+ </defs>
+ <style>
+ @keyframes reveal {
+ 0% { width: 0 }
+ 56% { width: 268px }
+ 100% { width: 268px }
+ }
+ @keyframes blink {
+ 0%,100% { opacity: 1 }
+ 50% { opacity: 0 }
+ }
+ @keyframes cursor-move {
+ 0% { x: 30px }
+ 56% { x: 298px }
+ 100% { x: 298px }
+ }
+ .terminal-text {
+ font-family: 'SF Mono','Fira Code','Cascadia Code',Consolas,monospace;
+ font-size: 15px;
+ }
+ .clip-box {
+ animation: reveal 5s steps(27,end) infinite;
+ }
+ .cursor {
+ animation: blink 1s step-end infinite, cursor-move 5s steps(27,end) infinite;
+ }
+ </style>
+
+ <!-- Background -->
+ <rect width="340" height="50" rx="10" fill="url(#bg)"/>
+ <rect x="1" y="1" width="338" height="48" rx="9" fill="none" stroke="#3a3a5c" stroke-width="1" opacity="0.5"/>
+
+ <!-- Window dots -->
+ <circle cx="16" cy="15" r="4" fill="#ff5f56"/>
+ <circle cx="28" cy="15" r="4" fill="#ffbd2e"/>
+ <circle cx="40" cy="15" r="4" fill="#27c93f"/>
+
+ <!-- Static prompt $ -->
+ <text x="16" y="39" class="terminal-text" fill="#6c6c8a">$</text>
+
+ <!-- Typing text clipped by animated rect -->
+ <clipPath id="typed">
+ <rect x="30" y="20" height="25" class="clip-box"/>
+ </clipPath>
+ <g clip-path="url(#typed)">
+ <text x="32" y="39" class="terminal-text" fill="#27c93f">pip install</text>
+ <text x="152" y="39" class="terminal-text" fill="#e2e2ff" font-weight="bold"> vibe-trading-ai</text>
+ </g>
+
+ <!-- Blinking cursor -->
+ <rect y="27" width="9" height="16" rx="1" fill="#27c93f" opacity="0.9" class="cursor"/>
+</svg>
diff --git a/assets/scene-backtest.png b/assets/scene-backtest.png
new file mode 100644
index 000000000..f86d63680
Binary files /dev/null and b/assets/scene-backtest.png differ
diff --git a/assets/scene-quant.png b/assets/scene-quant.png
new file mode 100644
index 000000000..6e0295e42
Binary files /dev/null and b/assets/scene-quant.png differ
diff --git a/assets/scene-research.png b/assets/scene-research.png
new file mode 100644
index 000000000..cf1233eda
Binary files /dev/null and b/assets/scene-research.png differ
diff --git a/assets/scene-swarm.png b/assets/scene-swarm.png
new file mode 100644
index 000000000..0d13f5b9a
Binary files /dev/null and b/assets/scene-swarm.png differ
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 000000000..4a55bb8df
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,17 @@
+services:
+ vibe-trading:
+ build: .
+ ports:
+ - "8899:8899"
+ env_file:
+ - agent/.env
+ volumes:
+ - fin-data:/app/data
+ - fin-runs:/app/agent/runs
+ - fin-sessions:/app/agent/sessions
+ restart: unless-stopped
+
+volumes:
+ fin-data:
+ fin-runs:
+ fin-sessions:
diff --git a/frontend/.gitignore b/frontend/.gitignore
new file mode 100644
index 000000000..f06235c46
--- /dev/null
+++ b/frontend/.gitignore
@@ -0,0 +1,2 @@
+node_modules
+dist
diff --git a/frontend/index.html b/frontend/index.html
new file mode 100644
index 000000000..dee684751
--- /dev/null
+++ b/frontend/index.html
@@ -0,0 +1,19 @@
+๏ปฟ<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Vibe-Trading โ€” vibe trading with your professional financial agent team</title>
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
+ <meta name="description" content="Vibe-Trading โ€” vibe trading with your professional financial agent team. Natural-language finance research, backtesting, swarm workflows, document reading, and multi-market analysis." />
+ </head>
+ <body class="min-h-screen bg-background text-foreground antialiased">
+ <div id="root"></div>
+ <script type="module" src="/src/main.tsx"></script>
+ </body>
+</html>
+
+
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
new file mode 100644
index 000000000..2dc29b4d7
--- /dev/null
+++ b/frontend/package-lock.json
@@ -0,0 +1,4526 @@
+{
+ "name": "vibe-trading-frontend",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "vibe-trading-frontend",
+ "version": "0.1.0",
+ "dependencies": {
+ "clsx": "^2.1.0",
+ "echarts": "^6.0.0",
+ "lucide-react": "^0.460.0",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "react-markdown": "^9.0.0",
+ "react-router-dom": "^7.1.0",
+ "rehype-highlight": "^7.0.0",
+ "remark-gfm": "^4.0.1",
+ "sonner": "^2.0.7",
+ "tailwind-merge": "^2.6.0",
+ "zustand": "^5.0.0"
+ },
+ "devDependencies": {
+ "@tailwindcss/typography": "^0.5.0",
+ "@types/react": "^19.0.0",
+ "@types/react-dom": "^19.0.0",
+ "@vitejs/plugin-react": "^4.3.0",
+ "autoprefixer": "^10.4.0",
+ "postcss": "^8.4.0",
+ "tailwindcss": "^3.4.0",
+ "typescript": "^5.7.0",
+ "vite": "^6.0.0"
+ }
+ },
+ "node_modules/@alloc/quick-lru": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
+ "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@babel/code-frame": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",
+ "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/compat-data": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",
+ "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/core": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",
+ "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-compilation-targets": "^7.28.6",
+ "@babel/helper-module-transforms": "^7.28.6",
+ "@babel/helpers": "^7.28.6",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/traverse": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/remapping": "^2.3.5",
+ "convert-source-map": "^2.0.0",
+ "debug": "^4.1.0",
+ "gensync": "^1.0.0-beta.2",
+ "json5": "^2.2.3",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/babel"
+ }
+ },
+ "node_modules/@babel/generator": {
+ "version": "7.29.1",
+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",
+ "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.29.0",
+ "@babel/types": "^7.29.0",
+ "@jridgewell/gen-mapping": "^0.3.12",
+ "@jridgewell/trace-mapping": "^0.3.28",
+ "jsesc": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-compilation-targets": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",
+ "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/compat-data": "^7.28.6",
+ "@babel/helper-validator-option": "^7.27.1",
+ "browserslist": "^4.24.0",
+ "lru-cache": "^5.1.1",
+ "semver": "^6.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-globals": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",
+ "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-imports": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",
+ "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/traverse": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-module-transforms": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",
+ "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-module-imports": "^7.28.6",
+ "@babel/helper-validator-identifier": "^7.28.5",
+ "@babel/traverse": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0"
+ }
+ },
+ "node_modules/@babel/helper-plugin-utils": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",
+ "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-string-parser": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
+ "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.28.5",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",
+ "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-option": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",
+ "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helpers": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.2.tgz",
+ "integrity": "sha512-HoGuUs4sCZNezVEKdVcwqmZN8GoHirLUcLaYVNBK2J0DadGtdcqgr3BCbvH8+XUo4NGjNl3VOtSjEKNzqfFgKw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.29.2",
+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.2.tgz",
+ "integrity": "sha512-4GgRzy/+fsBa72/RZVJmGKPmZu9Byn8o4MoLpmNe1m8ZfYnz5emHLQz3U4gLud6Zwl0RZIcgiLD7Uq7ySFuDLA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.29.0"
+ },
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-self": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",
+ "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/plugin-transform-react-jsx-source": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",
+ "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.27.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ }
+ },
+ "node_modules/@babel/template": {
+ "version": "7.28.6",
+ "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",
+ "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.28.6",
+ "@babel/parser": "^7.28.6",
+ "@babel/types": "^7.28.6"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/traverse": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",
+ "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/code-frame": "^7.29.0",
+ "@babel/generator": "^7.29.0",
+ "@babel/helper-globals": "^7.28.0",
+ "@babel/parser": "^7.29.0",
+ "@babel/template": "^7.28.6",
+ "@babel/types": "^7.29.0",
+ "debug": "^4.3.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/types": {
+ "version": "7.29.0",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",
+ "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/helper-string-parser": "^7.27.1",
+ "@babel/helper-validator-identifier": "^7.28.5"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.13",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.5.0",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/remapping": {
+ "version": "2.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
+ "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.5",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.5.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.31",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@rolldown/pluginutils": {
+ "version": "1.0.0-beta.27",
+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",
+ "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-android-arm-eabi": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz",
+ "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-android-arm64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz",
+ "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-arm64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz",
+ "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-darwin-x64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz",
+ "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-arm64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz",
+ "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-freebsd-x64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz",
+ "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz",
+ "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz",
+ "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz",
+ "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-arm64-musl": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz",
+ "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz",
+ "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-loong64-musl": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz",
+ "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz",
+ "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-ppc64-musl": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz",
+ "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz",
+ "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-riscv64-musl": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz",
+ "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-s390x-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz",
+ "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz",
+ "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "glibc"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz",
+ "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "libc": [
+ "musl"
+ ],
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-openbsd-x64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz",
+ "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ]
+ },
+ "node_modules/@rollup/rollup-openharmony-arm64": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz",
+ "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-arm64-msvc": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz",
+ "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-ia32-msvc": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz",
+ "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-gnu": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz",
+ "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@rollup/rollup-win32-x64-msvc": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz",
+ "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ]
+ },
+ "node_modules/@tailwindcss/typography": {
+ "version": "0.5.19",
+ "resolved": "https://registry.npmjs.org/@tailwindcss/typography/-/typography-0.5.19.tgz",
+ "integrity": "sha512-w31dd8HOx3k9vPtcQh5QHP9GwKcgbMp87j58qi6xgiBnFFtKEAgCWnDw4qUT8aHwkCp8bKvb/KGKWWHedP0AAg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "6.0.10"
+ },
+ "peerDependencies": {
+ "tailwindcss": ">=3.0.0 || insiders || >=4.0.0-alpha.20 || >=4.0.0-beta.1"
+ }
+ },
+ "node_modules/@types/babel__core": {
+ "version": "7.20.5",
+ "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
+ "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.20.7",
+ "@babel/types": "^7.20.7",
+ "@types/babel__generator": "*",
+ "@types/babel__template": "*",
+ "@types/babel__traverse": "*"
+ }
+ },
+ "node_modules/@types/babel__generator": {
+ "version": "7.27.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",
+ "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__template": {
+ "version": "7.4.4",
+ "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",
+ "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.1.0",
+ "@babel/types": "^7.0.0"
+ }
+ },
+ "node_modules/@types/babel__traverse": {
+ "version": "7.28.0",
+ "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",
+ "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/types": "^7.28.2"
+ }
+ },
+ "node_modules/@types/debug": {
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",
+ "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/ms": "*"
+ }
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "license": "MIT"
+ },
+ "node_modules/@types/estree-jsx": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",
+ "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "*"
+ }
+ },
+ "node_modules/@types/hast": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",
+ "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
+ "node_modules/@types/mdast": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",
+ "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "*"
+ }
+ },
+ "node_modules/@types/ms": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",
+ "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/react": {
+ "version": "19.2.14",
+ "resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.14.tgz",
+ "integrity": "sha512-ilcTH/UniCkMdtexkoCN0bI7pMcJDvmQFPvuPvmEaYA/NSfFTAgdUSLAoVjaRJm7+6PvcM+q1zYOwS4wTYMF9w==",
+ "license": "MIT",
+ "dependencies": {
+ "csstype": "^3.2.2"
+ }
+ },
+ "node_modules/@types/react-dom": {
+ "version": "19.2.3",
+ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.2.3.tgz",
+ "integrity": "sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@types/react": "^19.2.0"
+ }
+ },
+ "node_modules/@types/unist": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
+ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
+ "license": "MIT"
+ },
+ "node_modules/@ungap/structured-clone": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
+ "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",
+ "license": "ISC"
+ },
+ "node_modules/@vitejs/plugin-react": {
+ "version": "4.7.0",
+ "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",
+ "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/core": "^7.28.0",
+ "@babel/plugin-transform-react-jsx-self": "^7.27.1",
+ "@babel/plugin-transform-react-jsx-source": "^7.27.1",
+ "@rolldown/pluginutils": "1.0.0-beta.27",
+ "@types/babel__core": "^7.20.5",
+ "react-refresh": "^0.17.0"
+ },
+ "engines": {
+ "node": "^14.18.0 || >=16.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/autoprefixer": {
+ "version": "10.4.27",
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.27.tgz",
+ "integrity": "sha512-NP9APE+tO+LuJGn7/9+cohklunJsXWiaWEfV3si4Gi/XHDwVNgkwr1J3RQYFIvPy76GmJ9/bW8vyoU1LcxwKHA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/autoprefixer"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "browserslist": "^4.28.1",
+ "caniuse-lite": "^1.0.30001774",
+ "fraction.js": "^5.3.4",
+ "picocolors": "^1.1.1",
+ "postcss-value-parser": "^4.2.0"
+ },
+ "bin": {
+ "autoprefixer": "bin/autoprefixer"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ },
+ "peerDependencies": {
+ "postcss": "^8.1.0"
+ }
+ },
+ "node_modules/bail": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",
+ "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/baseline-browser-mapping": {
+ "version": "2.10.8",
+ "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.8.tgz",
+ "integrity": "sha512-PCLz/LXGBsNTErbtB6i5u4eLpHeMfi93aUv5duMmj6caNu6IphS4q6UevDnL36sZQv9lrP11dbPKGMaXPwMKfQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "baseline-browser-mapping": "dist/cli.cjs"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
+ "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fill-range": "^7.1.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/browserslist": {
+ "version": "4.28.1",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",
+ "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "baseline-browser-mapping": "^2.9.0",
+ "caniuse-lite": "^1.0.30001759",
+ "electron-to-chromium": "^1.5.263",
+ "node-releases": "^2.0.27",
+ "update-browserslist-db": "^1.2.0"
+ },
+ "bin": {
+ "browserslist": "cli.js"
+ },
+ "engines": {
+ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/caniuse-lite": {
+ "version": "1.0.30001780",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001780.tgz",
+ "integrity": "sha512-llngX0E7nQci5BPJDqoZSbuZ5Bcs9F5db7EtgfwBerX9XGtkkiO4NwfDDIRzHTTwcYC8vC7bmeUEPGrKlR/TkQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "CC-BY-4.0"
+ },
+ "node_modules/ccount": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",
+ "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",
+ "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-html4": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",
+ "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-entities-legacy": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",
+ "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/character-reference-invalid": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",
+ "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/comma-separated-tokens": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",
+ "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/convert-source-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",
+ "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/cookie": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-1.1.1.tgz",
+ "integrity": "sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",
+ "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",
+ "license": "MIT"
+ },
+ "node_modules/debug": {
+ "version": "4.4.3",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",
+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "^2.1.3"
+ },
+ "engines": {
+ "node": ">=6.0"
+ },
+ "peerDependenciesMeta": {
+ "supports-color": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/decode-named-character-reference": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",
+ "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/dequal": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
+ "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/devlop": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",
+ "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
+ "license": "MIT",
+ "dependencies": {
+ "dequal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/echarts": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/echarts/-/echarts-6.0.0.tgz",
+ "integrity": "sha512-Tte/grDQRiETQP4xz3iZWSvoHrkCQtwqd6hs+mifXcjrCuo2iKWbajFObuLJVBlDIJlOzgQPd1hsaKt/3+OMkQ==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "tslib": "2.3.0",
+ "zrender": "6.0.0"
+ }
+ },
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.321",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.321.tgz",
+ "integrity": "sha512-L2C7Q279W2D/J4PLZLk7sebOILDSWos7bMsMNN06rK482umHUrh/3lM8G7IlHFOYip2oAg5nha1rCMxr/rs6ZQ==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/esbuild": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.12",
+ "@esbuild/android-arm": "0.25.12",
+ "@esbuild/android-arm64": "0.25.12",
+ "@esbuild/android-x64": "0.25.12",
+ "@esbuild/darwin-arm64": "0.25.12",
+ "@esbuild/darwin-x64": "0.25.12",
+ "@esbuild/freebsd-arm64": "0.25.12",
+ "@esbuild/freebsd-x64": "0.25.12",
+ "@esbuild/linux-arm": "0.25.12",
+ "@esbuild/linux-arm64": "0.25.12",
+ "@esbuild/linux-ia32": "0.25.12",
+ "@esbuild/linux-loong64": "0.25.12",
+ "@esbuild/linux-mips64el": "0.25.12",
+ "@esbuild/linux-ppc64": "0.25.12",
+ "@esbuild/linux-riscv64": "0.25.12",
+ "@esbuild/linux-s390x": "0.25.12",
+ "@esbuild/linux-x64": "0.25.12",
+ "@esbuild/netbsd-arm64": "0.25.12",
+ "@esbuild/netbsd-x64": "0.25.12",
+ "@esbuild/openbsd-arm64": "0.25.12",
+ "@esbuild/openbsd-x64": "0.25.12",
+ "@esbuild/openharmony-arm64": "0.25.12",
+ "@esbuild/sunos-x64": "0.25.12",
+ "@esbuild/win32-arm64": "0.25.12",
+ "@esbuild/win32-ia32": "0.25.12",
+ "@esbuild/win32-x64": "0.25.12"
+ }
+ },
+ "node_modules/escalade": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
+ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/escape-string-regexp": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz",
+ "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/estree-util-is-identifier-name": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",
+ "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/extend": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",
+ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
+ "license": "MIT"
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
+ "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.8"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fastq": {
+ "version": "1.20.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz",
+ "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
+ "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/fraction.js": {
+ "version": "5.3.4",
+ "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz",
+ "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/rawify"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/gensync": {
+ "version": "1.0.0-beta.2",
+ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
+ "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/hast-util-is-element": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz",
+ "integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hast-util-to-jsx-runtime": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",
+ "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/unist": "^3.0.0",
+ "comma-separated-tokens": "^2.0.0",
+ "devlop": "^1.0.0",
+ "estree-util-is-identifier-name": "^3.0.0",
+ "hast-util-whitespace": "^3.0.0",
+ "mdast-util-mdx-expression": "^2.0.0",
+ "mdast-util-mdx-jsx": "^3.0.0",
+ "mdast-util-mdxjs-esm": "^2.0.0",
+ "property-information": "^7.0.0",
+ "space-separated-tokens": "^2.0.0",
+ "style-to-js": "^1.0.0",
+ "unist-util-position": "^5.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hast-util-to-text": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/hast-util-to-text/-/hast-util-to-text-4.0.2.tgz",
+ "integrity": "sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/unist": "^3.0.0",
+ "hast-util-is-element": "^3.0.0",
+ "unist-util-find-after": "^5.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/hast-util-whitespace": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",
+ "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/highlight.js": {
+ "version": "11.11.1",
+ "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.11.1.tgz",
+ "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==",
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=12.0.0"
+ }
+ },
+ "node_modules/html-url-attributes": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",
+ "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/inline-style-parser": {
+ "version": "0.2.7",
+ "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",
+ "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",
+ "license": "MIT"
+ },
+ "node_modules/is-alphabetical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",
+ "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-alphanumerical": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",
+ "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",
+ "license": "MIT",
+ "dependencies": {
+ "is-alphabetical": "^2.0.0",
+ "is-decimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.16.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",
+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "hasown": "^2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-decimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",
+ "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-hexadecimal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",
+ "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/is-plain-obj": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",
+ "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.7",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
+ "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/jsesc": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "jsesc": "bin/jsesc"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/json5": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "json5": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",
+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/longest-streak": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",
+ "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/lowlight": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-3.3.0.tgz",
+ "integrity": "sha512-0JNhgFoPvP6U6lE/UdVsSq99tn6DhjjpAj5MxG49ewd2mOBVtwWYIT8ClyABhq198aXXODMU6Ox8DrGy/CpTZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "devlop": "^1.0.0",
+ "highlight.js": "~11.11.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/lru-cache": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
+ "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",
+ "dev": true,
+ "license": "ISC",
+ "dependencies": {
+ "yallist": "^3.0.2"
+ }
+ },
+ "node_modules/lucide-react": {
+ "version": "0.460.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.460.0.tgz",
+ "integrity": "sha512-BVtq/DykVeIvRTJvRAgCsOwaGL8Un3Bxh8MbDxMhEWlZay3T4IpEKDEpwt5KZ0KJMHzgm6jrltxlT5eXOWXDHg==",
+ "license": "ISC",
+ "peerDependencies": {
+ "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/markdown-table": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-3.0.4.tgz",
+ "integrity": "sha512-wiYz4+JrLyb/DqW2hkFJxP7Vd7JuTDm77fvbM8VfEQdmSMqcImWeeRbHwZjBjIFki/VaMK2BhFi7oUUZeM5bqw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/mdast-util-find-and-replace": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-find-and-replace/-/mdast-util-find-and-replace-3.0.2.tgz",
+ "integrity": "sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "escape-string-regexp": "^5.0.0",
+ "unist-util-is": "^6.0.0",
+ "unist-util-visit-parents": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-from-markdown": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.3.tgz",
+ "integrity": "sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark": "^4.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm/-/mdast-util-gfm-3.1.0.tgz",
+ "integrity": "sha512-0ulfdQOM3ysHhCJ1p06l0b0VKlhU0wuQs3thxZQagjcjPrlFRqY215uZGHHJan9GEAXd9MbfPjFJz+qMkVR6zQ==",
+ "license": "MIT",
+ "dependencies": {
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-gfm-autolink-literal": "^2.0.0",
+ "mdast-util-gfm-footnote": "^2.0.0",
+ "mdast-util-gfm-strikethrough": "^2.0.0",
+ "mdast-util-gfm-table": "^2.0.0",
+ "mdast-util-gfm-task-list-item": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-autolink-literal": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-autolink-literal/-/mdast-util-gfm-autolink-literal-2.0.1.tgz",
+ "integrity": "sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-find-and-replace": "^3.0.0",
+ "micromark-util-character": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-footnote": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-footnote/-/mdast-util-gfm-footnote-2.1.0.tgz",
+ "integrity": "sha512-sqpDWlsHn7Ac9GNZQMeUzPQSMzR6Wv0WKRNvQRg0KqHh02fpTz69Qc1QSseNX29bhz1ROIyNyxExfawVKTm1GQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-strikethrough": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-strikethrough/-/mdast-util-gfm-strikethrough-2.0.0.tgz",
+ "integrity": "sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-table": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-table/-/mdast-util-gfm-table-2.0.0.tgz",
+ "integrity": "sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "markdown-table": "^3.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-gfm-task-list-item": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-gfm-task-list-item/-/mdast-util-gfm-task-list-item-2.0.0.tgz",
+ "integrity": "sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-expression": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",
+ "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdx-jsx": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",
+ "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "ccount": "^2.0.0",
+ "devlop": "^1.1.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "parse-entities": "^4.0.0",
+ "stringify-entities": "^4.0.0",
+ "unist-util-stringify-position": "^4.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-mdxjs-esm": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",
+ "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree-jsx": "^1.0.0",
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "mdast-util-to-markdown": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-phrasing": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",
+ "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-hast": {
+ "version": "13.2.1",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",
+ "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "@ungap/structured-clone": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "trim-lines": "^3.0.0",
+ "unist-util-position": "^5.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-markdown": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",
+ "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "@types/unist": "^3.0.0",
+ "longest-streak": "^3.0.0",
+ "mdast-util-phrasing": "^4.0.0",
+ "mdast-util-to-string": "^4.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-decode-string": "^2.0.0",
+ "unist-util-visit": "^5.0.0",
+ "zwitch": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/mdast-util-to-string": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",
+ "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromark": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",
+ "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@types/debug": "^4.0.0",
+ "debug": "^4.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-core-commonmark": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",
+ "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "devlop": "^1.0.0",
+ "micromark-factory-destination": "^2.0.0",
+ "micromark-factory-label": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-factory-title": "^2.0.0",
+ "micromark-factory-whitespace": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-html-tag-name": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-subtokenize": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-extension-gfm": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm/-/micromark-extension-gfm-3.0.0.tgz",
+ "integrity": "sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-extension-gfm-autolink-literal": "^2.0.0",
+ "micromark-extension-gfm-footnote": "^2.0.0",
+ "micromark-extension-gfm-strikethrough": "^2.0.0",
+ "micromark-extension-gfm-table": "^2.0.0",
+ "micromark-extension-gfm-tagfilter": "^2.0.0",
+ "micromark-extension-gfm-task-list-item": "^2.0.0",
+ "micromark-util-combine-extensions": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-autolink-literal": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-autolink-literal/-/micromark-extension-gfm-autolink-literal-2.1.0.tgz",
+ "integrity": "sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-footnote": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-footnote/-/micromark-extension-gfm-footnote-2.1.0.tgz",
+ "integrity": "sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-core-commonmark": "^2.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-normalize-identifier": "^2.0.0",
+ "micromark-util-sanitize-uri": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-strikethrough": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-strikethrough/-/micromark-extension-gfm-strikethrough-2.1.0.tgz",
+ "integrity": "sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-classify-character": "^2.0.0",
+ "micromark-util-resolve-all": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-table": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-table/-/micromark-extension-gfm-table-2.1.1.tgz",
+ "integrity": "sha512-t2OU/dXXioARrC6yWfJ4hqB7rct14e8f7m0cbI5hUmDyyIlwv5vEtooptH8INkbLzOatzKuVbQmAYcbWoyz6Dg==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-tagfilter": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-tagfilter/-/micromark-extension-gfm-tagfilter-2.0.0.tgz",
+ "integrity": "sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==",
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-extension-gfm-task-list-item": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-extension-gfm-task-list-item/-/micromark-extension-gfm-task-list-item-2.1.0.tgz",
+ "integrity": "sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==",
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/micromark-factory-destination": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",
+ "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-label": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",
+ "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-space": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",
+ "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-title": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",
+ "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-factory-whitespace": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",
+ "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-factory-space": "^2.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-character": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",
+ "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-chunked": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",
+ "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-classify-character": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",
+ "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-combine-extensions": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",
+ "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-numeric-character-reference": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",
+ "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-decode-string": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",
+ "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decode-named-character-reference": "^1.0.0",
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-decode-numeric-character-reference": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-encode": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",
+ "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-html-tag-name": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",
+ "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-normalize-identifier": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",
+ "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-resolve-all": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",
+ "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-sanitize-uri": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",
+ "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "micromark-util-character": "^2.0.0",
+ "micromark-util-encode": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-subtokenize": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",
+ "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "devlop": "^1.0.0",
+ "micromark-util-chunked": "^2.0.0",
+ "micromark-util-symbol": "^2.0.0",
+ "micromark-util-types": "^2.0.0"
+ }
+ },
+ "node_modules/micromark-util-symbol": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",
+ "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromark-util-types": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",
+ "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",
+ "funding": [
+ {
+ "type": "GitHub Sponsors",
+ "url": "https://github.com/sponsors/unifiedjs"
+ },
+ {
+ "type": "OpenCollective",
+ "url": "https://opencollective.com/unified"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.8",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",
+ "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "braces": "^3.0.3",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.11",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/node-releases": {
+ "version": "2.0.36",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.36.tgz",
+ "integrity": "sha512-TdC8FSgHz8Mwtw9g5L4gR/Sh9XhSP/0DEkQxfEFXOpiul5IiHgHan2VhYYb6agDSfp4KuvltmGApc8HMgUrIkA==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-hash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/parse-entities": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",
+ "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "character-entities-legacy": "^3.0.0",
+ "character-reference-invalid": "^2.0.0",
+ "decode-named-character-reference": "^1.0.0",
+ "is-alphanumerical": "^2.0.0",
+ "is-decimal": "^2.0.0",
+ "is-hexadecimal": "^2.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/parse-entities/node_modules/@types/unist": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",
+ "license": "MIT"
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.7",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",
+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.5.8",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",
+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.11",
+ "picocolors": "^1.1.1",
+ "source-map-js": "^1.2.1"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-import": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "postcss-value-parser": "^4.0.0",
+ "read-cache": "^1.0.0",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-js": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",
+ "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "camelcase-css": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12 || ^14 || >= 16"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.21"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",
+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "lilconfig": "^3.1.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "jiti": ">=1.21.0",
+ "postcss": ">=8.0.9",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",
+ "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "postcss-selector-parser": "^6.1.1"
+ },
+ "engines": {
+ "node": ">=12.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-nested/node_modules/postcss-selector-parser": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.0.10",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz",
+ "integrity": "sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/property-information": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",
+ "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/react": {
+ "version": "19.2.4",
+ "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz",
+ "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-dom": {
+ "version": "19.2.4",
+ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz",
+ "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==",
+ "license": "MIT",
+ "dependencies": {
+ "scheduler": "^0.27.0"
+ },
+ "peerDependencies": {
+ "react": "^19.2.4"
+ }
+ },
+ "node_modules/react-markdown": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz",
+ "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "devlop": "^1.0.0",
+ "hast-util-to-jsx-runtime": "^2.0.0",
+ "html-url-attributes": "^3.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-rehype": "^11.0.0",
+ "unified": "^11.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18",
+ "react": ">=18"
+ }
+ },
+ "node_modules/react-refresh": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",
+ "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/react-router": {
+ "version": "7.13.1",
+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-7.13.1.tgz",
+ "integrity": "sha512-td+xP4X2/6BJvZoX6xw++A2DdEi++YypA69bJUV5oVvqf6/9/9nNlD70YO1e9d3MyamJEBQFEzk6mbfDYbqrSA==",
+ "license": "MIT",
+ "dependencies": {
+ "cookie": "^1.0.1",
+ "set-cookie-parser": "^2.6.0"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ },
+ "peerDependenciesMeta": {
+ "react-dom": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/react-router-dom": {
+ "version": "7.13.1",
+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-7.13.1.tgz",
+ "integrity": "sha512-UJnV3Rxc5TgUPJt2KJpo1Jpy0OKQr0AjgbZzBFjaPJcFOb2Y8jA5H3LT8HUJAiRLlWrEXWHbF1Z4SCZaQjWDHw==",
+ "license": "MIT",
+ "dependencies": {
+ "react-router": "7.13.1"
+ },
+ "engines": {
+ "node": ">=20.0.0"
+ },
+ "peerDependencies": {
+ "react": ">=18",
+ "react-dom": ">=18"
+ }
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "pify": "^2.3.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/rehype-highlight": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/rehype-highlight/-/rehype-highlight-7.0.2.tgz",
+ "integrity": "sha512-k158pK7wdC2qL3M5NcZROZ2tR/l7zOzjxXd5VGdcfIyoijjQqpHd3JKtYSBDpDZ38UI2WJWuFAtkMDxmx5kstA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "hast-util-to-text": "^4.0.0",
+ "lowlight": "^3.0.0",
+ "unist-util-visit": "^5.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-gfm": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/remark-gfm/-/remark-gfm-4.0.1.tgz",
+ "integrity": "sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-gfm": "^3.0.0",
+ "micromark-extension-gfm": "^3.0.0",
+ "remark-parse": "^11.0.0",
+ "remark-stringify": "^11.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-parse": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",
+ "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-from-markdown": "^2.0.0",
+ "micromark-util-types": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-rehype": {
+ "version": "11.1.2",
+ "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",
+ "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/hast": "^3.0.0",
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-hast": "^13.0.0",
+ "unified": "^11.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/remark-stringify": {
+ "version": "11.0.0",
+ "resolved": "https://registry.npmjs.org/remark-stringify/-/remark-stringify-11.0.0.tgz",
+ "integrity": "sha512-1OSmLd3awB/t8qdoEOMazZkNsfVTeY4fTsgzcQFdXNq8ToTN4ZGwrMnlda4K6smTFKD+GRV6O48i6Z4iKgPPpw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/mdast": "^4.0.0",
+ "mdast-util-to-markdown": "^2.0.0",
+ "unified": "^11.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.11",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",
+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-core-module": "^2.16.1",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",
+ "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.59.0",
+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz",
+ "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.8"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.59.0",
+ "@rollup/rollup-android-arm64": "4.59.0",
+ "@rollup/rollup-darwin-arm64": "4.59.0",
+ "@rollup/rollup-darwin-x64": "4.59.0",
+ "@rollup/rollup-freebsd-arm64": "4.59.0",
+ "@rollup/rollup-freebsd-x64": "4.59.0",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.59.0",
+ "@rollup/rollup-linux-arm-musleabihf": "4.59.0",
+ "@rollup/rollup-linux-arm64-gnu": "4.59.0",
+ "@rollup/rollup-linux-arm64-musl": "4.59.0",
+ "@rollup/rollup-linux-loong64-gnu": "4.59.0",
+ "@rollup/rollup-linux-loong64-musl": "4.59.0",
+ "@rollup/rollup-linux-ppc64-gnu": "4.59.0",
+ "@rollup/rollup-linux-ppc64-musl": "4.59.0",
+ "@rollup/rollup-linux-riscv64-gnu": "4.59.0",
+ "@rollup/rollup-linux-riscv64-musl": "4.59.0",
+ "@rollup/rollup-linux-s390x-gnu": "4.59.0",
+ "@rollup/rollup-linux-x64-gnu": "4.59.0",
+ "@rollup/rollup-linux-x64-musl": "4.59.0",
+ "@rollup/rollup-openbsd-x64": "4.59.0",
+ "@rollup/rollup-openharmony-arm64": "4.59.0",
+ "@rollup/rollup-win32-arm64-msvc": "4.59.0",
+ "@rollup/rollup-win32-ia32-msvc": "4.59.0",
+ "@rollup/rollup-win32-x64-gnu": "4.59.0",
+ "@rollup/rollup-win32-x64-msvc": "4.59.0",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/scheduler": {
+ "version": "0.27.0",
+ "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz",
+ "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==",
+ "license": "MIT"
+ },
+ "node_modules/semver": {
+ "version": "6.3.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",
+ "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",
+ "dev": true,
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ }
+ },
+ "node_modules/set-cookie-parser": {
+ "version": "2.7.2",
+ "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.7.2.tgz",
+ "integrity": "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==",
+ "license": "MIT"
+ },
+ "node_modules/sonner": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.7.tgz",
+ "integrity": "sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==",
+ "license": "MIT",
+ "peerDependencies": {
+ "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc",
+ "react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-rc"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/space-separated-tokens": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",
+ "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/stringify-entities": {
+ "version": "4.0.4",
+ "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",
+ "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",
+ "license": "MIT",
+ "dependencies": {
+ "character-entities-html4": "^2.0.0",
+ "character-entities-legacy": "^3.0.0"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/style-to-js": {
+ "version": "1.1.21",
+ "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",
+ "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",
+ "license": "MIT",
+ "dependencies": {
+ "style-to-object": "1.0.14"
+ }
+ },
+ "node_modules/style-to-object": {
+ "version": "1.0.14",
+ "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",
+ "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",
+ "license": "MIT",
+ "dependencies": {
+ "inline-style-parser": "0.2.7"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.1",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",
+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "tinyglobby": "^0.2.11",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tailwind-merge": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-2.6.1.tgz",
+ "integrity": "sha512-Oo6tHdpZsGpkKG88HJ8RR1rg/RdnEkQEfMoEk2x1XRI3F1AxeU+ijRXpiVUF4UbLfcxxRGw6TbUINKYdWVsQTQ==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/dcastil"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "3.4.19",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.19.tgz",
+ "integrity": "sha512-3ofp+LL8E+pK/JuPLPggVAIaEuhvIz4qNcf3nA1Xn2o/7fb7s/TYpHhwGDv1ZU3PkBluUVaF8PyCHcm48cKLWQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.6.0",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.3.2",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.21.7",
+ "lilconfig": "^3.1.3",
+ "micromatch": "^4.0.8",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.1.1",
+ "postcss": "^8.4.47",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",
+ "postcss-nested": "^6.2.0",
+ "postcss-selector-parser": "^6.1.2",
+ "resolve": "^1.22.8",
+ "sucrase": "^3.35.0"
+ },
+ "bin": {
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/tailwindcss/node_modules/postcss-selector-parser": {
+ "version": "6.1.2",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",
+ "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/tinyglobby": {
+ "version": "0.2.15",
+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "fdir": "^6.5.0",
+ "picomatch": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/SuperchupuDev"
+ }
+ },
+ "node_modules/tinyglobby/node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/tinyglobby/node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/trim-lines": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",
+ "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/trough": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",
+ "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ },
+ "node_modules/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
+ "node_modules/tslib": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
+ "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==",
+ "license": "0BSD"
+ },
+ "node_modules/typescript": {
+ "version": "5.9.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",
+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "bin": {
+ "tsc": "bin/tsc",
+ "tsserver": "bin/tsserver"
+ },
+ "engines": {
+ "node": ">=14.17"
+ }
+ },
+ "node_modules/unified": {
+ "version": "11.0.5",
+ "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",
+ "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "bail": "^2.0.0",
+ "devlop": "^1.0.0",
+ "extend": "^3.0.0",
+ "is-plain-obj": "^4.0.0",
+ "trough": "^2.0.0",
+ "vfile": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-find-after": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz",
+ "integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-is": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",
+ "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-position": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",
+ "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-stringify-position": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
+ "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",
+ "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0",
+ "unist-util-visit-parents": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/unist-util-visit-parents": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",
+ "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-is": "^6.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/update-browserslist-db": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",
+ "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/browserslist"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "escalade": "^3.2.0",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "update-browserslist-db": "cli.js"
+ },
+ "peerDependencies": {
+ "browserslist": ">= 4.21.0"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vfile": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",
+ "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "vfile-message": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/vfile-message": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",
+ "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",
+ "license": "MIT",
+ "dependencies": {
+ "@types/unist": "^3.0.0",
+ "unist-util-stringify-position": "^4.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/vite": {
+ "version": "6.4.1",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.1.tgz",
+ "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "^0.25.0",
+ "fdir": "^6.4.4",
+ "picomatch": "^4.0.2",
+ "postcss": "^8.5.3",
+ "rollup": "^4.34.9",
+ "tinyglobby": "^0.2.13"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
+ "jiti": ">=1.21.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "sass-embedded": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.16.0",
+ "tsx": "^4.8.1",
+ "yaml": "^2.4.2"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "jiti": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "sass-embedded": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ },
+ "tsx": {
+ "optional": true
+ },
+ "yaml": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite/node_modules/fdir": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",
+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "peerDependencies": {
+ "picomatch": "^3 || ^4"
+ },
+ "peerDependenciesMeta": {
+ "picomatch": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vite/node_modules/picomatch": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",
+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/yallist": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",
+ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/zrender": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/zrender/-/zrender-6.0.0.tgz",
+ "integrity": "sha512-41dFXEEXuJpNecuUQq6JlbybmnHaqqpGlbH1yxnA5V9MMP4SbohSVZsJIwz+zdjQXSSlR1Vc34EgH1zxyTDvhg==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tslib": "2.3.0"
+ }
+ },
+ "node_modules/zustand": {
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-5.0.12.tgz",
+ "integrity": "sha512-i77ae3aZq4dhMlRhJVCYgMLKuSiZAaUPAct2AksxQ+gOtimhGMdXljRT21P5BNpeT4kXlLIckvkPM029OljD7g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=12.20.0"
+ },
+ "peerDependencies": {
+ "@types/react": ">=18.0.0",
+ "immer": ">=9.0.6",
+ "react": ">=18.0.0",
+ "use-sync-external-store": ">=1.2.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "immer": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "use-sync-external-store": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/zwitch": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",
+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",
+ "license": "MIT",
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/wooorm"
+ }
+ }
+ }
+}
diff --git a/frontend/package.json b/frontend/package.json
new file mode 100644
index 000000000..9239d3e59
--- /dev/null
+++ b/frontend/package.json
@@ -0,0 +1,36 @@
+{
+ "name": "vibe-trading-frontend",
+ "private": true,
+ "version": "0.1.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "preview": "vite preview"
+ },
+ "dependencies": {
+ "clsx": "^2.1.0",
+ "echarts": "^6.0.0",
+ "lucide-react": "^0.460.0",
+ "react": "^19.0.0",
+ "react-dom": "^19.0.0",
+ "react-markdown": "^9.0.0",
+ "react-router-dom": "^7.1.0",
+ "rehype-highlight": "^7.0.0",
+ "remark-gfm": "^4.0.1",
+ "sonner": "^2.0.7",
+ "tailwind-merge": "^2.6.0",
+ "zustand": "^5.0.0"
+ },
+ "devDependencies": {
+ "@tailwindcss/typography": "^0.5.0",
+ "@types/react": "^19.0.0",
+ "@types/react-dom": "^19.0.0",
+ "@vitejs/plugin-react": "^4.3.0",
+ "autoprefixer": "^10.4.0",
+ "postcss": "^8.4.0",
+ "tailwindcss": "^3.4.0",
+ "typescript": "^5.7.0",
+ "vite": "^6.0.0"
+ }
+}
diff --git a/frontend/postcss.config.js b/frontend/postcss.config.js
new file mode 100644
index 000000000..2aa7205d4
--- /dev/null
+++ b/frontend/postcss.config.js
@@ -0,0 +1,6 @@
+export default {
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+};
diff --git a/frontend/public/favicon.svg b/frontend/public/favicon.svg
new file mode 100644
index 000000000..1c3b507ff
--- /dev/null
+++ b/frontend/public/favicon.svg
@@ -0,0 +1,8 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none">
+ <rect width="32" height="32" rx="6" fill="#1a365d"/>
+ <!-- V -->
+ <path d="M6 8 L11 24 L16 8" stroke="#22d3ee" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" fill="none"/>
+ <!-- T -->
+ <line x1="18" y1="8" x2="28" y2="8" stroke="#f1f5f9" stroke-width="3" stroke-linecap="round"/>
+ <line x1="23" y1="8" x2="23" y2="24" stroke="#f1f5f9" stroke-width="3" stroke-linecap="round"/>
+</svg>
diff --git a/frontend/public/logo.svg b/frontend/public/logo.svg
new file mode 100644
index 000000000..e68582e8b
--- /dev/null
+++ b/frontend/public/logo.svg
@@ -0,0 +1,25 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 360 48" fill="none">
+ <!-- P mark: stylized from grid/network nodes -->
+ <g>
+ <!-- Vertical stem of P -->
+ <rect x="4" y="4" width="6" height="40" rx="3" fill="#1a365d"/>
+ <!-- P bowl: arc of connected nodes -->
+ <circle cx="14" cy="10" r="2.5" fill="#0891b2"/>
+ <circle cx="24" cy="6" r="2.5" fill="#0891b2"/>
+ <circle cx="34" cy="8" r="2.5" fill="#0891b2"/>
+ <circle cx="38" cy="16" r="2.5" fill="#0891b2"/>
+ <circle cx="34" cy="24" r="2.5" fill="#0891b2"/>
+ <circle cx="24" cy="26" r="2.5" fill="#0891b2"/>
+ <circle cx="14" cy="24" r="2.5" fill="#0891b2"/>
+ <!-- Node connections forming the P bowl -->
+ <path d="M14 10 L24 6 L34 8 L38 16 L34 24 L24 26 L14 24" stroke="#0891b2" stroke-width="1.5" fill="none" stroke-linejoin="round"/>
+ <!-- Internal data grid lines -->
+ <line x1="24" y1="6" x2="24" y2="26" stroke="#22d3ee" stroke-width="0.8" opacity="0.5"/>
+ <line x1="14" y1="16" x2="38" y2="16" stroke="#22d3ee" stroke-width="0.8" opacity="0.5"/>
+ <!-- Corner accent node -->
+ <circle cx="24" cy="16" r="1.8" fill="#22d3ee"/>
+ </g>
+ <!-- Wordmark -->
+ <text x="52" y="34" font-family="Inter, system-ui, sans-serif" font-weight="700" font-size="22" fill="#1a365d" letter-spacing="-0.4">FIN-</text>
+ <text x="103" y="34" font-family="Inter, system-ui, sans-serif" font-weight="700" font-size="22" fill="#0891b2" letter-spacing="-0.4">ANYTHING</text>
+</svg>
diff --git a/frontend/src/components/charts/CandlestickChart.tsx b/frontend/src/components/charts/CandlestickChart.tsx
new file mode 100644
index 000000000..2a67a58e0
--- /dev/null
+++ b/frontend/src/components/charts/CandlestickChart.tsx
@@ -0,0 +1,315 @@
+import { useEffect, useRef, useState, useMemo, useCallback } from "react";
+import { cn } from "@/lib/utils";
+import { ChevronDown } from "lucide-react";
+import type { PriceBar, TradeMarker, IndicatorPoint } from "@/lib/api";
+import { calcMA, calcBOLL, calcMACD, calcRSI, calcKDJ, calcEMA } from "@/lib/indicators";
+import { getChartTheme } from "@/lib/chart-theme";
+import { abbreviateNum } from "@/lib/formatters";
+import { echarts, CHART_GROUP, connectCharts } from "@/lib/echarts";
+import { useDarkMode } from "@/hooks/useDarkMode";
+
+type Sub = "vol" | "macd" | "rsi" | "kdj";
+type Range = "1M" | "3M" | "6M" | "1Y" | "ALL";
+type Overlay = "ma5" | "ma10" | "ma20" | "ma60" | "ema12" | "ema26" | "boll";
+
+const OVERLAY_OPTIONS: { id: Overlay; label: string; group: string }[] = [
+ { id: "ma5", label: "MA5", group: "MA" },
+ { id: "ma10", label: "MA10", group: "MA" },
+ { id: "ma20", label: "MA20", group: "MA" },
+ { id: "ma60", label: "MA60", group: "MA" },
+ { id: "ema12", label: "EMA12", group: "MA" },
+ { id: "ema26", label: "EMA26", group: "MA" },
+ { id: "boll", label: "BOLL", group: "Channel" },
+];
+
+const RANGE_BARS: Record<Range, number> = { "1M": 22, "3M": 63, "6M": 126, "1Y": 252, ALL: Infinity };
+const OVERLAY_COLORS = ["#f59e0b", "#8b5cf6", "#3b82f6", "#ec4899", "#10b981", "#f97316", "#6366f1"];
+
+interface Props {
+ data: PriceBar[];
+ markers?: TradeMarker[];
+ indicators?: Record<string, IndicatorPoint[]>;
+ height?: number;
+}
+
+export function CandlestickChart({ data, markers, indicators, height = 500 }: Props) {
+ const containerRef = useRef<HTMLDivElement>(null);
+ const chartRef = useRef<ReturnType<typeof echarts.init> | null>(null);
+ const [sub, setSub] = useState<Sub>("vol");
+ const [range, setRange] = useState<Range>("ALL");
+ const [overlays, setOverlays] = useState<Set<Overlay>>(new Set(["ma5", "ma20"]));
+ const [showMenu, setShowMenu] = useState(false);
+ const { dark } = useDarkMode();
+
+ const toggleOverlay = useCallback((id: Overlay) => {
+ setOverlays(prev => {
+ const next = new Set(prev);
+ if (next.has(id)) next.delete(id); else next.add(id);
+ return next;
+ });
+ }, []);
+
+ // Memoize base data arrays โ€” only recompute when raw data changes
+ const baseData = useMemo(() => {
+ const dates = data.map(d => d.time);
+ const closes = data.map(d => d.close);
+ const highs = data.map(d => d.high);
+ const lows = data.map(d => d.low);
+ const opens = data.map(d => d.open);
+ const candle = data.map(d => [d.open, d.close, d.low, d.high]);
+ return { dates, closes, highs, lows, opens, candle };
+ }, [data]);
+
+ // Memoize indicator calculations โ€” only recompute when data changes (not on overlay toggle)
+ const indicatorCache = useMemo(() => ({
+ ma5: calcMA(baseData.closes, 5),
+ ma10: calcMA(baseData.closes, 10),
+ ma20: calcMA(baseData.closes, 20),
+ ma60: calcMA(baseData.closes, 60),
+ ema12: calcEMA(baseData.closes, 12),
+ ema26: calcEMA(baseData.closes, 26),
+ boll: calcBOLL(baseData.closes, 20, 2),
+ macd: calcMACD(baseData.closes),
+ rsi: calcRSI(baseData.closes),
+ kdj: calcKDJ(baseData.highs, baseData.lows, baseData.closes),
+ }), [baseData]);
+
+ // Memoize backend indicator series with Map lookup (O(1) instead of O(n) find)
+ const extraIndicators = useMemo(() => {
+ if (!indicators) return [];
+ return Object.entries(indicators).map(([name, points]) => {
+ const lookup = new Map(points.map(p => [p.time, p.value]));
+ return { name: name.toUpperCase(), values: baseData.dates.map(d => lookup.get(d) ?? null) };
+ });
+ }, [indicators, baseData.dates]);
+
+ // Init chart instance โ€” only on mount/unmount and dark mode change
+ useEffect(() => {
+ if (!containerRef.current || data.length === 0) return;
+ const chart = echarts.init(containerRef.current);
+ chart.group = CHART_GROUP;
+ connectCharts();
+ chartRef.current = chart;
+
+ const ro = new ResizeObserver(() => chart.resize());
+ ro.observe(containerRef.current);
+ return () => { ro.disconnect(); chart.dispose(); chartRef.current = null; };
+ }, [data.length === 0, dark]); // only re-init when going emptyโ†”non-empty or theme changes
+
+ // Update chart options โ€” setOption on existing instance, no dispose
+ useEffect(() => {
+ const chart = chartRef.current;
+ if (!chart || data.length === 0) return;
+
+ const t = getChartTheme();
+ const { dates, closes, opens, candle } = baseData;
+
+ // Overlay series
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ const overlaySeries: any[] = [];
+ const legendNames: string[] = ["K"];
+ let colorIdx = 0;
+
+ const overlayMap: Record<string, { name: string; data: (number | null)[] }> = {
+ ma5: { name: "MA5", data: indicatorCache.ma5 },
+ ma10: { name: "MA10", data: indicatorCache.ma10 },
+ ma20: { name: "MA20", data: indicatorCache.ma20 },
+ ma60: { name: "MA60", data: indicatorCache.ma60 },
+ ema12: { name: "EMA12", data: indicatorCache.ema12 },
+ ema26: { name: "EMA26", data: indicatorCache.ema26 },
+ };
+
+ for (const [key, { name, data: lineData }] of Object.entries(overlayMap)) {
+ if (overlays.has(key as Overlay)) {
+ overlaySeries.push({ name, type: "line", data: lineData, xAxisIndex: 0, yAxisIndex: 0, symbol: "none", lineStyle: { color: OVERLAY_COLORS[colorIdx], width: 1 } });
+ legendNames.push(name);
+ colorIdx++;
+ }
+ }
+
+ if (overlays.has("boll")) {
+ const boll = indicatorCache.boll;
+ overlaySeries.push(
+ { name: "BOLL+", type: "line", data: boll.upper, xAxisIndex: 0, yAxisIndex: 0, symbol: "none", lineStyle: { color: t.bollColor, width: 0.8, type: "dashed" } },
+ { name: "BOLL", type: "line", data: boll.mid, xAxisIndex: 0, yAxisIndex: 0, symbol: "none", lineStyle: { color: t.bollColor, width: 1 } },
+ { name: "BOLL-", type: "line", data: boll.lower, xAxisIndex: 0, yAxisIndex: 0, symbol: "none", lineStyle: { color: t.bollColor, width: 0.8, type: "dashed" } },
+ );
+ legendNames.push("BOLL");
+ }
+
+ // Trade markers
+ const marks = (markers || []).map(m => ({
+ coord: [m.time, m.price],
+ value: m.side === "BUY" ? "B" : "S",
+ name: [`${m.side} @ ${m.price}`, m.qty ? `Qty: ${m.qty}` : "", m.reason || ""].filter(Boolean).join("\n"),
+ itemStyle: { color: m.side === "BUY" ? t.upColor : t.downColor },
+ label: { color: "#fff", fontSize: 10, fontWeight: "bold" as const },
+ }));
+
+ // Volume
+ const vol = data.map((d, i) => ({
+ value: d.volume,
+ itemStyle: { color: closes[i] >= opens[i] ? t.volumeUp : t.volumeDown },
+ }));
+
+ // Sub-chart
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ let subSeries: any[] = [];
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ let subYAxis: any = { scale: true, gridIndex: 1, splitLine: { lineStyle: { color: t.gridColor } }, axisLabel: { color: t.textColor, fontSize: 10 } };
+
+ if (sub === "vol") {
+ subSeries = [{ name: "Vol", type: "bar", data: vol, xAxisIndex: 1, yAxisIndex: 1 }];
+ subYAxis = { ...subYAxis, axisLabel: { ...subYAxis.axisLabel, formatter: (v: number) => abbreviateNum(v) } };
+ legendNames.push("Vol");
+ } else if (sub === "macd") {
+ const m = indicatorCache.macd;
+ subSeries = [
+ { name: "DIF", type: "line", data: m.dif, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1, color: t.infoColor } },
+ { name: "DEA", type: "line", data: m.signal, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1, color: t.warningColor } },
+ { name: "MACD", type: "bar", data: m.histogram.map(v => ({ value: v ?? 0, itemStyle: { color: (v ?? 0) >= 0 ? t.upColor : t.downColor } })), xAxisIndex: 1, yAxisIndex: 1 },
+ ];
+ legendNames.push("DIF", "DEA", "MACD");
+ } else if (sub === "rsi") {
+ subSeries = [{ name: "RSI", type: "line", data: indicatorCache.rsi, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1.5, color: t.infoColor } }];
+ subYAxis = { ...subYAxis, min: 0, max: 100 };
+ legendNames.push("RSI");
+ } else {
+ const kdj = indicatorCache.kdj;
+ subSeries = [
+ { name: "%K", type: "line", data: kdj.k, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1, color: t.infoColor } },
+ { name: "%D", type: "line", data: kdj.d, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1, color: t.warningColor } },
+ { name: "%J", type: "line", data: kdj.j, xAxisIndex: 1, yAxisIndex: 1, symbol: "none", lineStyle: { width: 1, color: "#a855f7" } },
+ ];
+ legendNames.push("%K", "%D", "%J");
+ }
+
+ // Backend custom indicators (Map-based O(1) lookup)
+ const extraSeries = extraIndicators.map((ind, i) => {
+ legendNames.push(ind.name);
+ return { name: ind.name, type: "line" as const, data: ind.values, xAxisIndex: 0, yAxisIndex: 0, symbol: "none", lineStyle: { width: 1, color: OVERLAY_COLORS[(colorIdx + i) % OVERLAY_COLORS.length], type: "dashed" as const } };
+ });
+
+ const maxBars = RANGE_BARS[range];
+ const defaultStart = maxBars >= data.length ? 0 : Math.max(0, 100 - (maxBars / data.length) * 100);
+
+ chart.setOption({
+ backgroundColor: "transparent",
+ tooltip: {
+ trigger: "axis", axisPointer: { type: "cross" },
+ backgroundColor: t.tooltipBg, borderColor: t.tooltipBorder,
+ textStyle: { color: t.tooltipText, fontSize: 11 },
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ formatter: (params: any) => {
+ if (!Array.isArray(params) || !params.length) return "";
+ let html = `<b>${params[0].axisValue}</b>`;
+ for (const p of params) {
+ if (p.seriesName === "K" && Array.isArray(p.value)) {
+ const [open, close, low, high] = p.value;
+ const chg = close - open;
+ const pct = open ? ((chg / open) * 100).toFixed(2) : "0.00";
+ const clr = chg >= 0 ? t.upColor : t.downColor;
+ html += `<br/>O: ${open.toFixed(2)}&nbsp; H: ${high.toFixed(2)}`;
+ html += `<br/>L: ${low.toFixed(2)}&nbsp; C: <span style="color:${clr}"><b>${close.toFixed(2)}</b> ${chg >= 0 ? "+" : ""}${chg.toFixed(2)} (${chg >= 0 ? "+" : ""}${pct}%)</span>`;
+ } else if (p.seriesName === "Vol") {
+ html += `<br/>Vol: ${abbreviateNum(Number(p.value))}`;
+ } else if (p.value != null) {
+ html += `<br/>${p.marker} ${p.seriesName}: ${Number(p.value).toFixed(2)}`;
+ }
+ }
+ return html;
+ },
+ },
+ toolbox: {
+ feature: { saveAsImage: { title: "Save" }, dataZoom: { title: { zoom: "Zoom", back: "Reset" } }, restore: { title: "Reset" } },
+ right: 8, top: 0, iconStyle: { borderColor: t.textColor },
+ },
+ legend: { data: legendNames, textStyle: { color: t.textColor, fontSize: 10 }, right: 80, top: 2, type: "scroll", itemWidth: 12, itemHeight: 8, itemGap: 8 },
+ grid: [
+ { left: 8, right: 8, top: 36, height: "55%", containLabel: true },
+ { left: 8, right: 8, top: "66%", height: "22%", containLabel: true },
+ ],
+ xAxis: [
+ { type: "category", data: dates, gridIndex: 0, axisLine: { lineStyle: { color: t.axisColor } }, axisLabel: { color: t.textColor, fontSize: 10 }, boundaryGap: true },
+ { type: "category", data: dates, gridIndex: 1, axisLine: { lineStyle: { color: t.axisColor } }, axisLabel: { show: false }, boundaryGap: true },
+ ],
+ yAxis: [
+ { scale: true, gridIndex: 0, splitLine: { lineStyle: { color: t.gridColor } }, axisLabel: { color: t.textColor, fontSize: 10 } },
+ subYAxis,
+ ],
+ dataZoom: [
+ { type: "inside", xAxisIndex: [0, 1], start: defaultStart, end: 100 },
+ { type: "slider", xAxisIndex: [0, 1], bottom: 4, height: 20, labelFormatter: (val: string) => val },
+ ],
+ series: [
+ {
+ name: "K", type: "candlestick", data: candle, xAxisIndex: 0, yAxisIndex: 0,
+ itemStyle: { color: t.upColor, color0: t.downColor, borderColor: t.upColor, borderColor0: t.downColor },
+ markPoint: marks.length > 0 ? { data: marks, symbolSize: 28, tooltip: { formatter: (p: { name?: string; value?: string }) => p.name || p.value || "" } } : undefined,
+ },
+ ...overlaySeries,
+ ...extraSeries,
+ ...subSeries,
+ ],
+ }, true);
+ }, [data, markers, baseData, indicatorCache, extraIndicators, sub, range, overlays, dark]);
+
+ if (data.length === 0) {
+ return <div className="text-muted-foreground text-sm p-4">No price data</div>;
+ }
+
+ return (
+ <div>
+ <div className="flex items-center gap-2 mb-1 flex-wrap">
+ {/* Time range */}
+ <div className="flex gap-0.5">
+ {(["1M", "3M", "6M", "1Y", "ALL"] as const).map((r) => (
+ <button key={r} onClick={() => setRange(r)} className={cn("px-1.5 py-0.5 rounded text-[10px] font-mono transition-colors", range === r ? "bg-primary/15 text-primary font-medium" : "text-muted-foreground/50 hover:text-muted-foreground")}>{r}</button>
+ ))}
+ </div>
+
+ <div className="w-px h-3 bg-border/40" />
+
+ {/* Indicator dropdown */}
+ <div className="relative">
+ <button
+ onClick={() => setShowMenu(!showMenu)}
+ className="flex items-center gap-1 px-2 py-0.5 rounded text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors"
+ >
+ Indicators ({overlays.size}) <ChevronDown className="h-3 w-3" />
+ </button>
+ {showMenu && (
+ <div className="absolute top-full left-0 mt-1 z-50 bg-card border rounded-lg shadow-lg p-2 min-w-[160px]" onMouseLeave={() => setShowMenu(false)}>
+ {["MA", "Channel"].map(group => (
+ <div key={group}>
+ <p className="text-[9px] text-muted-foreground/50 uppercase tracking-wider px-1 pt-1">{group}</p>
+ {OVERLAY_OPTIONS.filter(o => o.group === group).map(o => (
+ <label key={o.id} className="flex items-center gap-2 px-1 py-0.5 rounded hover:bg-muted/30 cursor-pointer">
+ <input type="checkbox" checked={overlays.has(o.id)} onChange={() => toggleOverlay(o.id)} className="h-3 w-3 rounded accent-primary" />
+ <span className="text-xs">{o.label}</span>
+ </label>
+ ))}
+ </div>
+ ))}
+ <div className="border-t mt-1 pt-1">
+ <button onClick={() => { setOverlays(new Set()); setShowMenu(false); }} className="text-[10px] text-muted-foreground hover:text-foreground px-1 py-0.5 w-full text-left rounded hover:bg-muted/30">
+ Bare K (clear all)
+ </button>
+ </div>
+ </div>
+ )}
+ </div>
+
+ <div className="w-px h-3 bg-border/40" />
+
+ {/* Sub-chart selector */}
+ <div className="flex gap-0.5">
+ {(["vol", "macd", "rsi", "kdj"] as const).map((id) => (
+ <button key={id} onClick={() => setSub(id)} className={cn("px-1.5 py-0.5 rounded text-[10px] font-mono uppercase transition-colors", sub === id ? "bg-primary/15 text-primary font-medium" : "text-muted-foreground/50 hover:text-muted-foreground")}>{id}</button>
+ ))}
+ </div>
+ </div>
+ <div ref={containerRef} style={{ height }} />
+ </div>
+ );
+}
diff --git a/frontend/src/components/charts/EquityChart.tsx b/frontend/src/components/charts/EquityChart.tsx
new file mode 100644
index 000000000..6d05ae606
--- /dev/null
+++ b/frontend/src/components/charts/EquityChart.tsx
@@ -0,0 +1,112 @@
+import { useEffect, useRef } from "react";
+import type { EquityPoint } from "@/lib/api";
+import { getChartTheme } from "@/lib/chart-theme";
+import { abbreviateNum } from "@/lib/formatters";
+import { echarts, CHART_GROUP, connectCharts } from "@/lib/echarts";
+import { useDarkMode } from "@/hooks/useDarkMode";
+
+interface Props {
+ data: EquityPoint[];
+ height?: number;
+}
+
+export function EquityChart({ data, height = 300 }: Props) {
+ const ref = useRef<HTMLDivElement>(null);
+ const { dark } = useDarkMode();
+
+ useEffect(() => {
+ if (!ref.current || data.length === 0) return;
+ const t = getChartTheme();
+ const chart = echarts.init(ref.current);
+ chart.group = CHART_GROUP;
+ connectCharts();
+
+ const dates = data.map((d) => d.time);
+ const equity = data.map((d) => Number(d.equity));
+ const drawdown = data.map((d) => (Number(d.drawdown) * 100).toFixed(2));
+ const minDD = Math.min(...drawdown.map(Number));
+
+ chart.setOption({
+ backgroundColor: "transparent",
+ tooltip: {
+ trigger: "axis",
+ axisPointer: { type: "cross" },
+ backgroundColor: t.tooltipBg,
+ borderColor: t.tooltipBorder,
+ textStyle: { color: t.tooltipText, fontSize: 11 },
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ formatter: (params: any) => {
+ if (!Array.isArray(params) || !params.length) return "";
+ let html = `<b>${params[0].axisValue}</b>`;
+ for (const p of params) {
+ const val = p.seriesName === "Drawdown%"
+ ? `${p.value}%`
+ : Number(p.value).toLocaleString();
+ html += `<br/>${p.marker} ${p.seriesName}: <b>${val}</b>`;
+ }
+ return html;
+ },
+ },
+ toolbox: {
+ feature: {
+ saveAsImage: { title: "Save" },
+ restore: { title: "Reset" },
+ },
+ right: 8, top: 0,
+ iconStyle: { borderColor: t.textColor },
+ },
+ legend: { data: ["Equity", "Drawdown%"], textStyle: { color: t.textColor, fontSize: 11 }, right: 60, top: 4 },
+ grid: [
+ { left: 8, right: 8, top: 36, height: "56%", containLabel: true },
+ { left: 8, right: 8, top: "68%", height: "20%", containLabel: true },
+ ],
+ xAxis: [
+ { type: "category", data: dates, gridIndex: 0, axisLine: { lineStyle: { color: t.axisColor } }, axisLabel: { color: t.textColor, fontSize: 10 } },
+ { type: "category", data: dates, gridIndex: 1, axisLine: { lineStyle: { color: t.axisColor } }, axisLabel: { show: false } },
+ ],
+ yAxis: [
+ {
+ type: "value", gridIndex: 0,
+ splitLine: { lineStyle: { color: t.gridColor } },
+ axisLabel: { color: t.textColor, fontSize: 10, formatter: (v: number) => abbreviateNum(v) },
+ },
+ {
+ type: "value", gridIndex: 1,
+ splitLine: { lineStyle: { color: t.gridColor } },
+ axisLabel: { color: t.textColor, fontSize: 10, formatter: "{value}%" },
+ },
+ ],
+ dataZoom: [{ type: "inside", xAxisIndex: [0, 1] }],
+ series: [
+ {
+ name: "Equity", type: "line", xAxisIndex: 0, yAxisIndex: 0,
+ data: equity, smooth: false, symbol: "none",
+ lineStyle: { color: t.infoColor, width: 2 },
+ areaStyle: {
+ color: { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: t.infoColor + "40" }, { offset: 1, color: t.infoColor + "00" }] },
+ },
+ },
+ {
+ name: "Drawdown%", type: "line", xAxisIndex: 1, yAxisIndex: 1,
+ data: drawdown, smooth: false, symbol: "none",
+ lineStyle: { color: t.downColor, width: 1 },
+ areaStyle: { color: t.downColor + "25" },
+ markLine: {
+ silent: true, symbol: "none",
+ data: [{ yAxis: minDD, label: { formatter: `Max DD: ${minDD}%`, position: "insideEndTop", fontSize: 10, color: t.downColor } }],
+ lineStyle: { color: t.downColor, type: "dashed", width: 1 },
+ },
+ },
+ ],
+ });
+
+ const ro = new ResizeObserver(() => chart.resize());
+ ro.observe(ref.current!);
+ return () => { ro.disconnect(); chart.dispose(); };
+ }, [data, dark]);
+
+ if (data.length === 0) {
+ return <div className="text-muted-foreground text-sm p-4">No equity data</div>;
+ }
+ return <div ref={ref} style={{ height }} />;
+}
diff --git a/frontend/src/components/charts/MiniEquityChart.tsx b/frontend/src/components/charts/MiniEquityChart.tsx
new file mode 100644
index 000000000..3a20fb9b8
--- /dev/null
+++ b/frontend/src/components/charts/MiniEquityChart.tsx
@@ -0,0 +1,47 @@
+import { useEffect, useRef } from "react";
+import { echarts } from "@/lib/echarts";
+import { getChartTheme } from "@/lib/chart-theme";
+import { useDarkMode } from "@/hooks/useDarkMode";
+
+interface Props {
+ data: Array<{ time: string; equity: number | string }>;
+ height?: number;
+}
+
+export function MiniEquityChart({ data, height = 80 }: Props) {
+ const ref = useRef<HTMLDivElement>(null);
+ const { dark } = useDarkMode();
+
+ useEffect(() => {
+ if (!ref.current || data.length < 2) return;
+ const t = getChartTheme();
+ const chart = echarts.init(ref.current);
+
+ const values = data.map(d => Number(d.equity));
+ const positive = values[values.length - 1] >= values[0];
+ const color = positive ? t.upColor : t.downColor;
+
+ chart.setOption({
+ backgroundColor: "transparent",
+ grid: { left: 0, right: 0, top: 0, bottom: 0 },
+ xAxis: { type: "category", data: data.map(d => d.time), show: false },
+ yAxis: { type: "value", show: false, scale: true },
+ series: [{
+ type: "line", data: values, symbol: "none", smooth: true,
+ lineStyle: { color, width: 1.5 },
+ areaStyle: {
+ color: { type: "linear", x: 0, y: 0, x2: 0, y2: 1,
+ colorStops: [{ offset: 0, color: color + "30" }, { offset: 1, color: color + "05" }],
+ },
+ },
+ }],
+ });
+
+ const ro = new ResizeObserver(() => chart.resize());
+ ro.observe(ref.current);
+ return () => { ro.disconnect(); chart.dispose(); };
+ }, [data, dark]);
+
+ if (data.length < 2) return null;
+ return <div ref={ref} style={{ height }} className="rounded-lg overflow-hidden" />;
+}
diff --git a/frontend/src/components/chat/AgentAvatar.tsx b/frontend/src/components/chat/AgentAvatar.tsx
new file mode 100644
index 000000000..fb07e8139
--- /dev/null
+++ b/frontend/src/components/chat/AgentAvatar.tsx
@@ -0,0 +1,7 @@
+export function AgentAvatar() {
+ return (
+ <div className="h-8 w-8 rounded-lg bg-gradient-to-br from-[#1a365d] to-[#0891b2] flex items-center justify-center text-white text-xs font-bold shrink-0 mt-0.5 select-none">
+ P
+ </div>
+ );
+}
diff --git a/frontend/src/components/chat/ConversationTimeline.tsx b/frontend/src/components/chat/ConversationTimeline.tsx
new file mode 100644
index 000000000..076d26457
--- /dev/null
+++ b/frontend/src/components/chat/ConversationTimeline.tsx
@@ -0,0 +1,67 @@
+import { memo, useEffect, useState, useCallback } from "react";
+import { cn } from "@/lib/utils";
+import type { AgentMessage } from "@/types/agent";
+
+interface Props {
+ messages: AgentMessage[];
+ containerRef: React.RefObject<HTMLDivElement | null>;
+}
+
+export const ConversationTimeline = memo(function ConversationTimeline({ messages, containerRef }: Props) {
+ const [activeIdx, setActiveIdx] = useState(-1);
+
+ const userIndices = messages
+ .map((m, i) => m.type === "user" ? i : -1)
+ .filter(i => i >= 0);
+
+ useEffect(() => {
+ const container = containerRef.current;
+ if (!container || userIndices.length === 0) return;
+
+ const onScroll = () => {
+ const rect = container.getBoundingClientRect();
+ const mid = rect.top + rect.height / 2;
+ let closest = userIndices[0];
+ let minDist = Infinity;
+ for (const idx of userIndices) {
+ const el = container.querySelector(`[data-msg-idx="${idx}"]`);
+ if (!el) continue;
+ const elRect = el.getBoundingClientRect();
+ const dist = Math.abs(elRect.top - mid);
+ if (dist < minDist) { minDist = dist; closest = idx; }
+ }
+ setActiveIdx(closest);
+ };
+
+ container.addEventListener("scroll", onScroll, { passive: true });
+ onScroll();
+ return () => container.removeEventListener("scroll", onScroll);
+ }, [containerRef, userIndices]);
+
+ const scrollTo = useCallback((idx: number) => {
+ const container = containerRef.current;
+ if (!container) return;
+ const el = container.querySelector(`[data-msg-idx="${idx}"]`);
+ if (el) el.scrollIntoView({ behavior: "smooth", block: "center" });
+ }, [containerRef]);
+
+ if (userIndices.length < 2) return null;
+
+ return (
+ <div className="fixed right-3 top-1/2 -translate-y-1/2 h-2/3 flex flex-col justify-between items-center z-20 py-4">
+ {userIndices.map((idx) => (
+ <button
+ key={idx}
+ onClick={() => scrollTo(idx)}
+ className={cn(
+ "rounded-full transition-all shrink-0",
+ idx === activeIdx
+ ? "w-3 h-3 bg-primary shadow-sm shadow-primary/30"
+ : "w-2 h-2 bg-muted-foreground/25 hover:bg-muted-foreground/50"
+ )}
+ title={messages[idx].content.slice(0, 40)}
+ />
+ ))}
+ </div>
+ );
+});
diff --git a/frontend/src/components/chat/MessageBubble.tsx b/frontend/src/components/chat/MessageBubble.tsx
new file mode 100644
index 000000000..467b07e8f
--- /dev/null
+++ b/frontend/src/components/chat/MessageBubble.tsx
@@ -0,0 +1,121 @@
+import { memo, useState, useCallback } from "react";
+import { User, XCircle, RefreshCw, Copy, Check } from "lucide-react";
+import ReactMarkdown from "react-markdown";
+import remarkGfm from "remark-gfm";
+import rehypeHighlight from "rehype-highlight";
+import { formatTimestamp } from "@/lib/formatters";
+import type { AgentMessage } from "@/types/agent";
+import { AgentAvatar } from "./AgentAvatar";
+import { RunCompleteCard } from "./RunCompleteCard";
+
+const remarkPlugins = [remarkGfm];
+const rehypePlugins = [rehypeHighlight];
+
+function CopyButton({ text }: { text: string }) {
+ const [copied, setCopied] = useState(false);
+ const handleCopy = useCallback(() => {
+ navigator.clipboard.writeText(text).then(() => {
+ setCopied(true);
+ setTimeout(() => setCopied(false), 1500);
+ });
+ }, [text]);
+ return (
+ <button
+ onClick={handleCopy}
+ className="absolute top-2 right-2 p-1.5 rounded-md bg-muted/80 hover:bg-muted text-muted-foreground hover:text-foreground opacity-0 group-hover:opacity-100 transition-opacity"
+ title={copied ? "Copied" : "Copy"}
+ >
+ {copied ? <Check className="h-3.5 w-3.5 text-success" /> : <Copy className="h-3.5 w-3.5" />}
+ </button>
+ );
+}
+
+function getRetryHint(content: string): string {
+ const lower = content.toLowerCase();
+ if (lower.includes("timeout") || lower.includes("timed out")) {
+ return "Execution timed out. Try simplifying the strategy or reducing the number of assets.";
+ }
+ if (lower.includes("api") || lower.includes("rate limit") || lower.includes("429") || lower.includes("500") || lower.includes("502") || lower.includes("503")) {
+ return "API call failed. Please retry later.";
+ }
+ return "Execution failed. Click to retry.";
+}
+
+interface Props {
+ msg: AgentMessage;
+ onRetry?: (msg: AgentMessage) => void;
+}
+
+export const MessageBubble = memo(function MessageBubble({ msg, onRetry }: Props) {
+ const ts = msg.timestamp ? formatTimestamp(msg.timestamp) : null;
+
+ if (msg.type === "user") {
+ return (
+ <div className="flex justify-end gap-3 group">
+ <div className="max-w-[72%] rounded-2xl rounded-tr-sm bg-primary text-primary-foreground px-4 py-2.5 text-sm leading-relaxed whitespace-pre-wrap">
+ {msg.content}
+ {ts && <span className="block text-[9px] opacity-50 text-right mt-1">{ts}</span>}
+ </div>
+ <div className="h-8 w-8 rounded-full bg-muted flex items-center justify-center shrink-0 mt-0.5">
+ <User className="h-4 w-4 text-muted-foreground" />
+ </div>
+ </div>
+ );
+ }
+
+ if (msg.type === "answer") {
+ return (
+ <div className="flex gap-3 group">
+ <AgentAvatar />
+ <div className="flex-1 min-w-0 relative">
+ <CopyButton text={msg.content} />
+ <div className="prose prose-sm dark:prose-invert max-w-none leading-relaxed prose-table:border prose-table:border-border/50 prose-th:bg-muted/30 prose-th:px-3 prose-th:py-1.5 prose-td:px-3 prose-td:py-1.5 prose-th:text-left prose-th:text-xs prose-th:font-medium prose-td:text-xs">
+ <ReactMarkdown remarkPlugins={remarkPlugins} rehypePlugins={rehypePlugins}>{msg.content}</ReactMarkdown>
+ </div>
+ {ts && <span className="text-[9px] text-muted-foreground/30 mt-1 opacity-0 group-hover:opacity-100 transition-opacity">{ts}</span>}
+ </div>
+ </div>
+ );
+ }
+
+ if (msg.type === "run_complete" && msg.runId) {
+ return <RunCompleteCard msg={msg} />;
+ }
+
+ if (msg.type === "error") {
+ const hint = getRetryHint(msg.content);
+ return (
+ <div className="flex gap-3">
+ <AgentAvatar />
+ <div className="space-y-2">
+ <div className="flex items-start gap-2 rounded-xl border border-danger/30 bg-danger/5 px-4 py-3">
+ <XCircle className="h-4 w-4 text-danger shrink-0 mt-0.5" />
+ <p className="text-sm text-danger leading-relaxed">{msg.content}</p>
+ </div>
+ {onRetry && (
+ <button
+ onClick={() => onRetry(msg)}
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs text-muted-foreground hover:text-foreground hover:bg-muted/80 border border-transparent hover:border-border transition-all"
+ title={hint}
+ >
+ <RefreshCw className="h-3 w-3" />
+ <span>{hint}</span>
+ </button>
+ )}
+ </div>
+ </div>
+ );
+ }
+
+ // Fallback: show content for any unhandled message type
+ if (msg.content) {
+ return (
+ <div className="flex gap-3">
+ <AgentAvatar />
+ <p className="text-sm text-muted-foreground leading-relaxed">{msg.content}</p>
+ </div>
+ );
+ }
+
+ return null;
+});
diff --git a/frontend/src/components/chat/MetricsCard.tsx b/frontend/src/components/chat/MetricsCard.tsx
new file mode 100644
index 000000000..573ff15ee
--- /dev/null
+++ b/frontend/src/components/chat/MetricsCard.tsx
@@ -0,0 +1,47 @@
+import { memo } from "react";
+import { cn } from "@/lib/utils";
+import { useI18n } from "@/lib/i18n";
+import { getMetricLabel, DISPLAY_ORDER, formatMetricVal, metricSentiment } from "@/lib/formatters";
+
+const SENTIMENT = {
+ positive: "text-success",
+ neutral: "text-foreground",
+ negative: "text-danger",
+} as const;
+
+interface Props {
+ metrics: Record<string, number>;
+ compact?: boolean;
+}
+
+export const MetricsCard = memo(function MetricsCard({ metrics, compact = false }: Props) {
+ const { t } = useI18n();
+ const entries = DISPLAY_ORDER
+ .filter((k) => metrics[k] != null)
+ .map((k) => ({ k, v: metrics[k] }));
+
+ if (entries.length === 0) return null;
+
+ const shown = compact ? entries.slice(0, 6) : entries;
+
+ return (
+ <div className={cn(
+ "grid gap-1.5 rounded-xl border border-border/60 bg-muted/20 p-3",
+ compact ? "grid-cols-3" : "grid-cols-[repeat(auto-fit,minmax(120px,1fr))]"
+ )}>
+ {shown.map(({ k, v }) => (
+ <div key={k} className="text-center py-1">
+ <p className="text-[10px] text-muted-foreground uppercase tracking-wide font-medium">
+ {getMetricLabel(k, t as unknown as Record<string, string>)}
+ </p>
+ <p className={cn(
+ "text-sm font-bold font-mono tabular-nums mt-0.5",
+ SENTIMENT[metricSentiment(k, v)]
+ )}>
+ {formatMetricVal(k, v)}
+ </p>
+ </div>
+ ))}
+ </div>
+ );
+});
diff --git a/frontend/src/components/chat/RunCompleteCard.tsx b/frontend/src/components/chat/RunCompleteCard.tsx
new file mode 100644
index 000000000..f62454067
--- /dev/null
+++ b/frontend/src/components/chat/RunCompleteCard.tsx
@@ -0,0 +1,47 @@
+import { memo, useEffect, useState } from "react";
+import { Link } from "react-router-dom";
+import { BarChart3 } from "lucide-react";
+import { useI18n } from "@/lib/i18n";
+import { api } from "@/lib/api";
+import { AgentAvatar } from "./AgentAvatar";
+import { MetricsCard } from "./MetricsCard";
+import { MiniEquityChart } from "@/components/charts/MiniEquityChart";
+import type { AgentMessage } from "@/types/agent";
+
+interface Props {
+ msg: AgentMessage;
+}
+
+export const RunCompleteCard = memo(function RunCompleteCard({ msg }: Props) {
+ const { t } = useI18n();
+ const [curve, setCurve] = useState(msg.equityCurve);
+
+ useEffect(() => {
+ if (!curve && msg.runId) {
+ api.getRun(msg.runId).then(r => {
+ if (r.equity_curve) setCurve(r.equity_curve.map(e => ({ time: e.time, equity: e.equity })));
+ }).catch(() => {});
+ }
+ }, [msg.runId, curve]);
+
+ return (
+ <div className="flex gap-3">
+ <AgentAvatar />
+ <div className="flex-1 min-w-0 space-y-2">
+ {msg.metrics && Object.keys(msg.metrics).length > 0 && (
+ <MetricsCard metrics={msg.metrics} compact />
+ )}
+ {curve && curve.length > 1 && (
+ <MiniEquityChart data={curve} height={80} />
+ )}
+ <Link
+ to={`/runs/${msg.runId}`}
+ className="text-sm text-primary hover:underline inline-flex items-center gap-1.5 font-medium"
+ >
+ <BarChart3 className="h-3.5 w-3.5" />
+ {t.fullReport}
+ </Link>
+ </div>
+ </div>
+ );
+});
diff --git a/frontend/src/components/chat/SwarmDashboard.tsx b/frontend/src/components/chat/SwarmDashboard.tsx
new file mode 100644
index 000000000..754a866ca
--- /dev/null
+++ b/frontend/src/components/chat/SwarmDashboard.tsx
@@ -0,0 +1,211 @@
+import { useEffect, useState, useRef } from "react";
+import { CheckCircle2, XCircle, Loader2, Clock, Timer } from "lucide-react";
+import ReactMarkdown from "react-markdown";
+import remarkGfm from "remark-gfm";
+
+export interface SwarmAgent {
+ id: string;
+ status: "waiting" | "running" | "done" | "failed" | "retry";
+ tool: string;
+ iters: number;
+ startedAt: number;
+ elapsed: number;
+ lastText: string;
+ summary: string;
+}
+
+export interface SwarmDashboardProps {
+ preset: string;
+ agents: Record<string, SwarmAgent>;
+ agentOrder: string[];
+ currentLayer: number;
+ finished: boolean;
+ finalStatus: string;
+ startTime: number;
+ completedSummaries: Array<{ agentId: string; summary: string }>;
+ finalReport: string;
+}
+
+const AGENT_COLORS = [
+ "text-cyan-400", "text-violet-400", "text-emerald-400",
+ "text-amber-400", "text-blue-400", "text-rose-400",
+ "text-teal-400", "text-pink-400",
+];
+const AGENT_BG = [
+ "bg-cyan-500/10", "bg-violet-500/10", "bg-emerald-500/10",
+ "bg-amber-500/10", "bg-blue-500/10", "bg-rose-500/10",
+ "bg-teal-500/10", "bg-pink-500/10",
+];
+
+function agentColor(idx: number) { return AGENT_COLORS[idx % AGENT_COLORS.length]; }
+function agentBg(idx: number) { return AGENT_BG[idx % AGENT_BG.length]; }
+
+function formatTime(seconds: number) {
+ if (seconds <= 0) return "\u2014";
+ if (seconds < 60) return `${seconds.toFixed(1)}s`;
+ const m = Math.floor(seconds / 60);
+ const s = Math.floor(seconds % 60);
+ return `${m}:${s.toString().padStart(2, "0")}`;
+}
+
+function StatusIcon({ status }: { status: SwarmAgent["status"] }) {
+ switch (status) {
+ case "running": return <Loader2 className="h-3.5 w-3.5 animate-spin text-primary" />;
+ case "done": return <CheckCircle2 className="h-3.5 w-3.5 text-emerald-500" />;
+ case "failed": return <XCircle className="h-3.5 w-3.5 text-red-500" />;
+ case "retry": return <Loader2 className="h-3.5 w-3.5 animate-spin text-amber-500" />;
+ default: return <Clock className="h-3.5 w-3.5 text-muted-foreground/40" />;
+ }
+}
+
+function StatusLabel({ status }: { status: SwarmAgent["status"] }) {
+ switch (status) {
+ case "running": return <span className="text-primary font-medium">running</span>;
+ case "done": return <span className="text-emerald-500 font-medium">done</span>;
+ case "failed": return <span className="text-red-500 font-medium">failed</span>;
+ case "retry": return <span className="text-amber-500 font-medium">retry</span>;
+ default: return <span className="text-muted-foreground/50">waiting</span>;
+ }
+}
+
+export function SwarmDashboard(props: SwarmDashboardProps) {
+ const { preset, agents, agentOrder, finished, finalStatus, startTime, completedSummaries, finalReport } = props;
+ const [now, setNow] = useState(Date.now());
+ const timerRef = useRef<ReturnType<typeof setInterval>>(undefined);
+
+ useEffect(() => {
+ timerRef.current = setInterval(() => setNow(Date.now()), 250);
+ return () => clearInterval(timerRef.current);
+ }, []);
+
+ const elapsedTotal = (now - startTime) / 1000;
+ const doneCount = Object.values(agents).filter(a => a.status === "done" || a.status === "failed").length;
+ const totalCount = Math.max(agentOrder.length, 1);
+ const pct = Math.round((doneCount / totalCount) * 100);
+
+ const borderColor = finished
+ ? (finalStatus === "completed" ? "border-emerald-500/50" : "border-red-500/50")
+ : "border-primary/30";
+ const headerBg = finished
+ ? (finalStatus === "completed" ? "bg-emerald-500/5" : "bg-red-500/5")
+ : "bg-primary/5";
+
+ return (
+ <div className="space-y-3 w-full">
+ {/* Dashboard panel */}
+ <div className={`rounded-xl border ${borderColor} overflow-hidden`}>
+ {/* Header */}
+ <div className={`px-4 py-2.5 ${headerBg} flex items-center justify-between`}>
+ <div className="flex items-center gap-2">
+ <span className="font-semibold text-sm">{preset}</span>
+ {finished ? (
+ <span className={`text-xs px-2 py-0.5 rounded-full font-medium ${
+ finalStatus === "completed"
+ ? "bg-emerald-500/20 text-emerald-500"
+ : "bg-red-500/20 text-red-500"
+ }`}>
+ {finalStatus.toUpperCase()}
+ </span>
+ ) : (
+ <span className="text-xs px-2 py-0.5 rounded-full bg-primary/20 text-primary font-medium">
+ RUNNING
+ </span>
+ )}
+ </div>
+ <div className="flex items-center gap-1.5 text-xs text-muted-foreground">
+ <Timer className="h-3 w-3" />
+ {formatTime(elapsedTotal)}
+ </div>
+ </div>
+
+ {/* Agent rows */}
+ <div className="divide-y divide-border/50">
+ {agentOrder.map((agentId, idx) => {
+ const agent = agents[agentId];
+ if (!agent) return null;
+ const elapsed = agent.status === "running" && agent.startedAt
+ ? (now - agent.startedAt) / 1000
+ : agent.elapsed / 1000;
+
+ return (
+ <div key={agentId} className="px-4 py-2 flex items-center gap-3 text-sm">
+ {/* Agent name */}
+ <div className={`w-40 shrink-0 font-mono text-xs truncate ${agentColor(idx)}`}>
+ {agent.id}
+ </div>
+ {/* Status */}
+ <div className="w-20 shrink-0 flex items-center gap-1.5">
+ <StatusIcon status={agent.status} />
+ <StatusLabel status={agent.status} />
+ </div>
+ {/* Tool */}
+ <div className="w-28 shrink-0 text-xs text-muted-foreground font-mono truncate">
+ {agent.tool || "\u2014"}
+ </div>
+ {/* Time */}
+ <div className="w-16 shrink-0 text-xs text-muted-foreground text-right tabular-nums">
+ {formatTime(elapsed)}
+ </div>
+ {/* Iters */}
+ <div className="w-10 shrink-0 text-xs text-muted-foreground text-right tabular-nums">
+ {agent.iters > 0 ? agent.iters : "\u2014"}
+ </div>
+ {/* Last output */}
+ <div className="flex-1 min-w-0 text-xs text-muted-foreground/60 truncate">
+ {agent.lastText}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+
+ {/* Progress bar */}
+ <div className="px-4 py-2 border-t border-border/50 flex items-center gap-3">
+ <div className="flex-1 h-1.5 rounded-full bg-muted overflow-hidden">
+ <div
+ className={`h-full rounded-full transition-all duration-500 ${
+ finished
+ ? (finalStatus === "completed" ? "bg-emerald-500" : "bg-red-500")
+ : "bg-primary"
+ }`}
+ style={{ width: `${pct}%` }}
+ />
+ </div>
+ <span className="text-xs text-muted-foreground tabular-nums w-10 text-right">{pct}%</span>
+ </div>
+ </div>
+
+ {/* Completed agent summaries */}
+ {completedSummaries.length > 0 && (
+ <div className="space-y-2">
+ {completedSummaries.map(({ agentId, summary }, idx) => {
+ const agentIdx = agentOrder.indexOf(agentId);
+ const colorIdx = agentIdx >= 0 ? agentIdx : idx;
+ const lines = summary.split("\n");
+ const preview = lines.slice(0, 8).join("\n") + (lines.length > 8 ? "\n..." : "");
+ return (
+ <div key={agentId + idx} className={`rounded-lg ${agentBg(colorIdx)} px-4 py-3`}>
+ <div className={`text-xs font-semibold mb-1.5 ${agentColor(colorIdx)}`}>
+ {agentId}
+ </div>
+ <div className="text-xs text-muted-foreground leading-relaxed whitespace-pre-wrap">
+ {preview}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Final report */}
+ {finalReport && (
+ <div className="rounded-xl border border-emerald-500/30 bg-emerald-500/5 px-5 py-4">
+ <div className="text-xs font-semibold text-emerald-500 mb-3">Final Report</div>
+ <div className="prose prose-sm dark:prose-invert max-w-none">
+ <ReactMarkdown remarkPlugins={[remarkGfm]}>{finalReport}</ReactMarkdown>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/frontend/src/components/chat/ThinkingTimeline.tsx b/frontend/src/components/chat/ThinkingTimeline.tsx
new file mode 100644
index 000000000..ddbae03b9
--- /dev/null
+++ b/frontend/src/components/chat/ThinkingTimeline.tsx
@@ -0,0 +1,159 @@
+import { useState, useEffect, useMemo, memo } from "react";
+import { ChevronDown, ChevronRight, CheckCircle2, XCircle, Circle, Loader2 } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { useI18n } from "@/lib/i18n";
+import type { AgentMessage } from "@/types/agent";
+
+/* ---------- Tool display name keys (mapped to i18n) ---------- */
+const TOOL_I18N_KEY: Record<string, string> = {
+ load_skill: "toolLoadSkill",
+ write_file: "toolWriteFile",
+ edit_file: "toolEditFile",
+ read_file: "toolReadFile",
+ run_backtest: "toolRunBacktest",
+ bash: "toolBash",
+ read_url: "toolReadUrl",
+ read_document: "toolReadDocument",
+ compact: "toolCompact",
+ create_task: "toolCreateTask",
+ update_task: "toolUpdateTask",
+ spawn_subagent: "toolSpawnSubagent",
+};
+
+interface Props {
+ messages: AgentMessage[];
+ isLatest?: boolean;
+}
+
+export const ThinkingTimeline = memo(function ThinkingTimeline({ messages, isLatest = false }: Props) {
+ const { t } = useI18n();
+ const [expanded, setExpanded] = useState(isLatest);
+
+ const toolLabel = (tool?: string): string => {
+ if (!tool) return t.toolProcessing;
+ const key = TOOL_I18N_KEY[tool];
+ return key ? (t as Record<string, string>)[key] || tool : tool;
+ };
+
+ useEffect(() => {
+ if (!isLatest) setExpanded(false);
+ }, [isLatest]);
+
+ const { steps, hasError, isRunning, totalMs, latestTool, latestThinking } = useMemo(() => {
+ let totalMs = 0;
+ let latestTool = "";
+ let latestThinking = "";
+ // Merge tool_call + tool_result pairs into "steps"
+ const steps: Array<{ tool: string; label: string; status: "running" | "ok" | "error"; elapsed_ms?: number }> = [];
+
+ for (const m of messages) {
+ if (m.type === "thinking" && m.content) latestThinking = m.content;
+ if (m.type === "tool_call") {
+ steps.push({ tool: m.tool || "", label: toolLabel(m.tool), status: m.status === "running" ? "running" : "ok", elapsed_ms: undefined });
+ if (m.status === "running") latestTool = m.tool || "";
+ }
+ if (m.type === "tool_result") {
+ const existing = [...steps].reverse().find(s => s.tool === m.tool);
+ if (existing) {
+ existing.status = m.status === "ok" ? "ok" : "error";
+ existing.elapsed_ms = m.elapsed_ms;
+ }
+ if (m.elapsed_ms) totalMs += m.elapsed_ms;
+ }
+ }
+
+ return {
+ steps,
+ hasError: steps.some(s => s.status === "error"),
+ isRunning: steps.some(s => s.status === "running"),
+ totalMs,
+ latestTool,
+ latestThinking,
+ };
+ }, [messages]);
+
+ const stepCount = steps.length;
+ const summaryText = isRunning
+ ? t.thinkingRunning.replace("{tool}", toolLabel(latestTool))
+ : t.thinkingDone.replace("{count}", String(stepCount)) + (totalMs > 0 ? ` ยท ${(totalMs / 1000).toFixed(1)}s` : "");
+
+ return (
+ <div className="rounded-lg border border-border/40 bg-muted/5 overflow-hidden">
+ {/* Summary bar */}
+ <button
+ onClick={() => setExpanded(!expanded)}
+ className="w-full flex items-center gap-2 px-3 py-2 text-xs hover:bg-muted/10 transition-colors"
+ >
+ {expanded
+ ? <ChevronDown className="h-3 w-3 text-muted-foreground shrink-0" />
+ : <ChevronRight className="h-3 w-3 text-muted-foreground shrink-0" />}
+ {isRunning ? (
+ <Loader2 className="h-3 w-3 text-primary animate-spin shrink-0" />
+ ) : hasError ? (
+ <XCircle className="h-3 w-3 text-danger shrink-0" />
+ ) : (
+ <CheckCircle2 className="h-3 w-3 text-success/70 shrink-0" />
+ )}
+ <span className={cn("text-muted-foreground", isRunning && "text-foreground")}>
+ {summaryText}
+ </span>
+ </button>
+
+ {/* Thinking preview when running but collapsed */}
+ {!expanded && isRunning && latestThinking && (
+ <div className="px-3 pb-2 -mt-1">
+ <p className="text-[11px] text-muted-foreground/40 line-clamp-1 pl-5 italic">
+ {latestThinking.slice(-100)}
+ </p>
+ </div>
+ )}
+
+ {/* Expanded step list */}
+ {expanded && steps.length > 0 && (
+ <div className="border-t border-border/30 px-3 py-1.5 space-y-0.5">
+ {steps.map((step, i) => (
+ <div key={`${step.tool}-${i}`} className="flex items-center gap-2 py-1 text-xs">
+ {/* Tree connector */}
+ <span className="text-border/60 shrink-0 w-3 text-center">
+ {i < steps.length - 1 ? "โ”œ" : "โ””"}
+ </span>
+
+ {/* Status icon */}
+ {step.status === "running" ? (
+ <Loader2 className="h-3 w-3 text-primary animate-spin shrink-0" />
+ ) : step.status === "error" ? (
+ <XCircle className="h-3 w-3 text-danger shrink-0" />
+ ) : (
+ <Circle className="h-3 w-3 text-success/50 shrink-0" fill="currentColor" />
+ )}
+
+ {/* Label */}
+ <span className={cn(
+ "flex-1",
+ step.status === "running" ? "text-foreground" : "text-muted-foreground/60"
+ )}>
+ {step.label}
+ </span>
+
+ {/* Duration or status */}
+ {step.status === "running" ? (
+ <span className="text-[10px] text-primary/60">{t.toolRunning}</span>
+ ) : step.elapsed_ms != null ? (
+ <span className="text-[10px] text-muted-foreground/40 tabular-nums">{(step.elapsed_ms / 1000).toFixed(1)}s</span>
+ ) : null}
+ </div>
+ ))}
+ </div>
+ )}
+
+ {/* Expanded: show thinking content if any (for Q&A without tools) */}
+ {expanded && steps.length === 0 && latestThinking && (
+ <div className="border-t border-border/30 px-3 py-2">
+ <p className="text-xs text-muted-foreground/50 leading-relaxed line-clamp-4">
+ {latestThinking}
+ </p>
+ </div>
+ )}
+ </div>
+ );
+});
diff --git a/frontend/src/components/chat/WelcomeScreen.tsx b/frontend/src/components/chat/WelcomeScreen.tsx
new file mode 100644
index 000000000..fce5911f1
--- /dev/null
+++ b/frontend/src/components/chat/WelcomeScreen.tsx
@@ -0,0 +1,177 @@
+๏ปฟimport { Bot, TrendingUp, Bitcoin, Globe, Sparkles, Users } from "lucide-react";
+import { useI18n } from "@/lib/i18n";
+
+interface Example {
+ title: string;
+ desc: string;
+ prompt: string;
+}
+
+interface Category {
+ label: string;
+ icon: React.ReactNode;
+ color: string;
+ examples: Example[];
+}
+
+const CATEGORIES: Category[] = [
+ {
+ label: "Multi-Market Backtest",
+ icon: <TrendingUp className="h-4 w-4" />,
+ color: "text-red-400 border-red-500/30 hover:border-red-500/60 hover:bg-red-500/5",
+ examples: [
+ {
+ title: "Cross-Market Portfolio",
+ desc: "A-shares + crypto + US equities with risk-parity optimizer",
+ prompt: "Backtest a risk-parity portfolio of 000001.SZ, BTC-USDT, and AAPL for full-year 2024, compare against equal-weight baseline",
+ },
+ {
+ title: "BTC 5-Min MACD Strategy",
+ desc: "Minute-level crypto backtest with real-time OKX data",
+ prompt: "Backtest BTC-USDT 5-minute MACD strategy, fast=12 slow=26 signal=9, last 30 days",
+ },
+ {
+ title: "US Tech Max Diversification",
+ desc: "Portfolio optimizer across FAANG+ via yfinance",
+ prompt: "Backtest AAPL, MSFT, GOOGL, AMZN, NVDA with max_diversification portfolio optimizer, full-year 2024",
+ },
+ ],
+ },
+ {
+ label: "Research & Analysis",
+ icon: <Sparkles className="h-4 w-4" />,
+ color: "text-amber-400 border-amber-500/30 hover:border-amber-500/60 hover:bg-amber-500/5",
+ examples: [
+ {
+ title: "Multi-Factor Alpha Model",
+ desc: "IC-weighted factor synthesis across 300 stocks",
+ prompt: "Build a multi-factor alpha model using momentum, reversal, volatility, and turnover on CSI 300 constituents with IC-weighted factor synthesis, backtest 2023-2024",
+ },
+ {
+ title: "Options Greeks Analysis",
+ desc: "Black-Scholes pricing with Delta/Gamma/Theta/Vega",
+ prompt: "Calculate option Greeks using Black-Scholes: spot=100, strike=105, risk-free rate=3%, vol=25%, expiry=90 days, analyze Delta/Gamma/Theta/Vega",
+ },
+ ],
+ },
+ {
+ label: "Swarm Teams",
+ icon: <Users className="h-4 w-4" />,
+ color: "text-violet-400 border-violet-500/30 hover:border-violet-500/60 hover:bg-violet-500/5",
+ examples: [
+ {
+ title: "Investment Committee Review",
+ desc: "Multi-agent debate: long vs short, risk review, PM decision",
+ prompt: "[Swarm Team Mode] Use the investment_committee preset to evaluate whether to go long or short on NVDA given current market conditions",
+ },
+ {
+ title: "Quant Strategy Desk",
+ desc: "Screening โ†’ factor research โ†’ backtest โ†’ risk audit pipeline",
+ prompt: "[Swarm Team Mode] Use the quant_strategy_desk preset to find and backtest the best momentum strategy on CSI 300 constituents",
+ },
+ ],
+ },
+ {
+ label: "Document & Web Research",
+ icon: <Globe className="h-4 w-4" />,
+ color: "text-blue-400 border-blue-500/30 hover:border-blue-500/60 hover:bg-blue-500/5",
+ examples: [
+ {
+ title: "Analyze an Earnings Report PDF",
+ desc: "Upload a PDF and ask questions about the financials",
+ prompt: "Summarize the key financial metrics, risks, and outlook from the uploaded earnings report",
+ },
+ {
+ title: "Web Research: Macro Outlook",
+ desc: "Read live web sources for macro analysis",
+ prompt: "Read the latest Fed meeting minutes and summarize the key takeaways for equity and crypto markets",
+ },
+ ],
+ },
+];
+
+const CAPABILITY_CHIPS = [
+ "56 Finance Skills",
+ "25 Swarm Presets",
+ "19 Agent Tools",
+ "3 Markets: A-Share ยท Crypto ยท HK/US",
+ "Minute to Daily Timeframes",
+ "4 Portfolio Optimizers",
+ "15+ Risk Metrics",
+ "Options & Derivatives",
+ "PDF & Web Research",
+ "Factor Analysis & ML",
+];
+
+interface Props {
+ onExample: (s: string) => void;
+}
+
+export function WelcomeScreen({ onExample }: Props) {
+ const { t } = useI18n();
+
+ return (
+ <div className="flex flex-col items-center justify-center min-h-[60vh] space-y-8 text-center">
+ {/* Header */}
+ <div className="space-y-3">
+ <div className="h-16 w-16 mx-auto rounded-2xl bg-gradient-to-br from-primary/80 to-info/80 flex items-center justify-center shadow-lg">
+ <Bot className="h-8 w-8 text-white" />
+ </div>
+ <div>
+ <h2 className="text-2xl font-bold tracking-tight">Vibe-Trading</h2>
+ <p className="text-xs text-muted-foreground mt-1 max-w-sm mx-auto leading-relaxed">
+ vibe trading with your professional financial agent team
+ </p>
+ <p className="text-sm text-muted-foreground mt-2 max-w-md leading-relaxed mx-auto">
+ {t.describeStrategy}
+ </p>
+ </div>
+ </div>
+
+ {/* Capability chips */}
+ <div className="flex flex-wrap justify-center gap-2 max-w-lg">
+ {CAPABILITY_CHIPS.map((chip) => (
+ <span
+ key={chip}
+ className="px-2.5 py-1 text-xs rounded-full border border-border/60 text-muted-foreground bg-muted/30"
+ >
+ {chip}
+ </span>
+ ))}
+ </div>
+
+ {/* Example categories grid */}
+ <div className="w-full max-w-2xl text-left space-y-4">
+ <p className="text-xs text-muted-foreground px-1">{t.examples}</p>
+ <div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
+ {CATEGORIES.map((cat) => (
+ <div key={cat.label} className="space-y-2">
+ <div className={`flex items-center gap-1.5 text-xs font-medium px-1 ${cat.color.split(" ").filter(c => c.startsWith("text-")).join(" ")}`}>
+ {cat.icon}
+ <span>{cat.label}</span>
+ </div>
+ <div className="space-y-1.5">
+ {cat.examples.map((ex) => (
+ <button
+ key={ex.title}
+ onClick={() => onExample(ex.prompt)}
+ className={`block w-full text-left px-3 py-2.5 rounded-xl border transition-colors ${cat.color}`}
+ >
+ <span className="text-sm font-medium text-foreground leading-snug">
+ {ex.title}
+ </span>
+ <span className="block text-xs text-muted-foreground mt-0.5 leading-snug">
+ {ex.desc}
+ </span>
+ </button>
+ ))}
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </div>
+ );
+}
+
+
diff --git a/frontend/src/components/common/ErrorBoundary.tsx b/frontend/src/components/common/ErrorBoundary.tsx
new file mode 100644
index 000000000..2a14935e3
--- /dev/null
+++ b/frontend/src/components/common/ErrorBoundary.tsx
@@ -0,0 +1,25 @@
+import { Component, type ReactNode } from "react";
+import { AlertTriangle } from "lucide-react";
+
+interface Props { children: ReactNode; fallback?: ReactNode; }
+interface State { hasError: boolean; error?: Error; }
+
+export class ErrorBoundary extends Component<Props, State> {
+ state: State = { hasError: false };
+
+ static getDerivedStateFromError(error: Error): State {
+ return { hasError: true, error };
+ }
+
+ render() {
+ if (this.state.hasError) {
+ return this.props.fallback ?? (
+ <div className="flex items-center gap-2 p-4 rounded-lg border border-destructive/30 bg-destructive/5 text-sm text-destructive">
+ <AlertTriangle className="h-4 w-4 shrink-0" />
+ <span>{this.state.error?.message || "Something went wrong"}</span>
+ </div>
+ );
+ }
+ return this.props.children;
+ }
+}
diff --git a/frontend/src/components/common/Skeleton.tsx b/frontend/src/components/common/Skeleton.tsx
new file mode 100644
index 000000000..861b41825
--- /dev/null
+++ b/frontend/src/components/common/Skeleton.tsx
@@ -0,0 +1,22 @@
+import { cn } from "@/lib/utils";
+
+export function Skeleton({ className, style }: { className?: string; style?: React.CSSProperties }) {
+ return <div className={cn("animate-pulse rounded-md bg-muted/50", className)} style={style} />;
+}
+
+export function SkeletonMetrics() {
+ return (
+ <div className="grid grid-cols-3 gap-1.5 p-3">
+ {Array.from({ length: 6 }).map((_, i) => (
+ <div key={i} className="flex flex-col items-center gap-1.5 py-2">
+ <Skeleton className="h-2 w-10" />
+ <Skeleton className="h-4 w-14" />
+ </div>
+ ))}
+ </div>
+ );
+}
+
+export function SkeletonChart({ height = 300 }: { height?: number }) {
+ return <Skeleton className="w-full" style={{ height }} />;
+}
diff --git a/frontend/src/components/layout/ConnectionBanner.tsx b/frontend/src/components/layout/ConnectionBanner.tsx
new file mode 100644
index 000000000..c15ff7577
--- /dev/null
+++ b/frontend/src/components/layout/ConnectionBanner.tsx
@@ -0,0 +1,29 @@
+import { WifiOff, RefreshCw } from "lucide-react";
+import { useI18n } from "@/lib/i18n";
+import type { SSEStatus } from "@/hooks/useSSE";
+
+interface Props {
+ status: SSEStatus;
+ retryAttempt?: number;
+}
+
+export function ConnectionBanner({ status, retryAttempt }: Props) {
+ const { t } = useI18n();
+ if (status === "connected" || status === "disconnected") return null;
+
+ return (
+ <div className="flex items-center gap-2 px-4 py-2 text-xs bg-warning/15 text-warning border-b border-warning/30">
+ {status === "reconnecting" ? (
+ <>
+ <RefreshCw className="h-3.5 w-3.5 animate-spin" />
+ <span>{t.reconnectingN.replace("{n}", String(retryAttempt || 1))}</span>
+ </>
+ ) : (
+ <>
+ <WifiOff className="h-3.5 w-3.5" />
+ <span>{t.disconnected}</span>
+ </>
+ )}
+ </div>
+ );
+}
diff --git a/frontend/src/components/layout/Layout.tsx b/frontend/src/components/layout/Layout.tsx
new file mode 100644
index 000000000..6790107fa
--- /dev/null
+++ b/frontend/src/components/layout/Layout.tsx
@@ -0,0 +1,244 @@
+๏ปฟimport { useEffect, useState } from "react";
+import { Link, Outlet, useLocation, useSearchParams } from "react-router-dom";
+import { BarChart3, Bot, Moon, Sun, Plus, Trash2, Pencil, MessageSquare, ChevronsLeft, ChevronsRight } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { useI18n } from "@/lib/i18n";
+import { useDarkMode } from "@/hooks/useDarkMode";
+import { api, type SessionItem } from "@/lib/api";
+import { useAgentStore } from "@/stores/agent";
+import { ConnectionBanner } from "@/components/layout/ConnectionBanner";
+
+const NAV = [
+ { to: "/", icon: BarChart3, key: "home" as const },
+ { to: "/agent", icon: Bot, key: "agent" as const },
+];
+
+export function Layout() {
+ const { pathname } = useLocation();
+ const [searchParams] = useSearchParams();
+ const { t } = useI18n();
+ const { dark, toggle } = useDarkMode();
+ const [sessions, setSessions] = useState<SessionItem[]>([]);
+ const [sessionsLoading, setSessionsLoading] = useState(true);
+ const sseStatus = useAgentStore(s => s.sseStatus);
+ const sseRetryAttempt = useAgentStore(s => s.sseRetryAttempt);
+ const [collapsed, setCollapsed] = useState(() => localStorage.getItem("qa-sidebar") === "collapsed");
+
+ const activeSessionId = searchParams.get("session");
+
+ useEffect(() => {
+ localStorage.setItem("qa-sidebar", collapsed ? "collapsed" : "expanded");
+ }, [collapsed]);
+
+ const loadSessions = () => {
+ api.listSessions()
+ .then((list) => setSessions(Array.isArray(list) ? list : []))
+ .catch(() => {})
+ .finally(() => setSessionsLoading(false));
+ };
+
+ // Load sessions on mount. Also refresh when navigating TO /agent or when
+ // the active session changes (covers new session creation from Agent).
+ const isAgentPage = pathname.startsWith("/agent");
+ useEffect(() => { loadSessions(); }, [isAgentPage, activeSessionId]);
+
+ const [deleteTarget, setDeleteTarget] = useState<string | null>(null);
+ const [renameTarget, setRenameTarget] = useState<string | null>(null);
+ const [renameValue, setRenameValue] = useState("");
+
+ const deleteSession = async (sid: string) => {
+ try {
+ await api.deleteSession(sid);
+ setSessions((prev) => prev.filter((s) => s.session_id !== sid));
+ } catch { /* ignore */ }
+ setDeleteTarget(null);
+ };
+
+ const renameSession = async (sid: string) => {
+ if (!renameValue.trim()) { setRenameTarget(null); return; }
+ try {
+ await api.renameSession(sid, renameValue.trim());
+ setSessions((prev) => prev.map((s) => s.session_id === sid ? { ...s, title: renameValue.trim() } : s));
+ } catch { /* ignore */ }
+ setRenameTarget(null);
+ };
+
+ return (
+ <div className="flex h-screen bg-background">
+ {/* Sidebar */}
+ <aside className={cn(
+ "border-r bg-card flex flex-col shrink-0 transition-all duration-200",
+ collapsed ? "w-12" : "w-64"
+ )}>
+ {/* Brand */}
+ <div className={cn("border-b", collapsed ? "p-2 flex justify-center" : "p-4")}>
+ <Link to="/" className={cn("flex items-center font-bold text-base tracking-tight", collapsed ? "justify-center" : "gap-2")}>
+ <BarChart3 className="h-5 w-5 text-primary shrink-0" />
+ {!collapsed && "Vibe-Trading"}
+ </Link>
+ </div>
+
+ {/* Nav */}
+ <nav className={cn("space-y-0.5", collapsed ? "p-1" : "p-2")}>
+ {NAV.map(({ to, icon: Icon, key }) => (
+ <Link
+ key={to}
+ to={to}
+ className={cn(
+ "flex items-center rounded-md text-sm transition-colors",
+ collapsed ? "justify-center p-2" : "gap-3 px-3 py-2",
+ (to === "/" ? pathname === "/" : pathname.startsWith(to))
+ ? "bg-primary/10 text-primary font-medium"
+ : "text-muted-foreground hover:bg-muted hover:text-foreground"
+ )}
+ title={collapsed ? t[key] : undefined}
+ >
+ <Icon className="h-4 w-4 shrink-0" />
+ {!collapsed && t[key]}
+ </Link>
+ ))}
+ </nav>
+
+ {/* Sessions โ€” hidden when collapsed */}
+ {!collapsed && (
+ <div className="flex-1 overflow-auto border-t mt-2 flex flex-col">
+ <div className="flex items-center justify-between px-4 py-2">
+ <span className="flex items-center gap-1.5 text-xs font-medium text-muted-foreground">
+ <MessageSquare className="h-3.5 w-3.5" />
+ {t.sessions}
+ </span>
+ <Link
+ to="/agent"
+ className="flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors"
+ title={t.newChat}
+ >
+ <Plus className="h-3.5 w-3.5" />
+ </Link>
+ </div>
+
+ <div className="px-2 pb-2 space-y-0.5 overflow-auto flex-1">
+ {sessionsLoading ? (
+ <div className="space-y-1.5 px-2 py-1">
+ {[1, 2, 3].map((i) => (
+ <div key={i} className="h-7 rounded-md bg-muted/50 animate-pulse" />
+ ))}
+ </div>
+ ) : sessions.length === 0 ? (
+ <p className="px-3 py-2 text-xs text-muted-foreground/60">{t.noSessions}</p>
+ ) : null}
+ {sessions.map((s) => {
+ const isActive = s.session_id === activeSessionId;
+ const isDeleting = deleteTarget === s.session_id;
+ const isRenaming = renameTarget === s.session_id;
+ return (
+ <div key={s.session_id} className="group relative flex items-center">
+ {isRenaming ? (
+ <input
+ autoFocus
+ value={renameValue}
+ onChange={(e) => setRenameValue(e.target.value)}
+ onKeyDown={(e) => { if (e.key === "Enter") renameSession(s.session_id); if (e.key === "Escape") setRenameTarget(null); }}
+ onBlur={() => renameSession(s.session_id)}
+ className="flex-1 min-w-0 pl-3 pr-2 py-1 rounded-md text-xs border border-primary bg-background outline-none"
+ />
+ ) : (
+ <Link
+ to={`/agent?session=${s.session_id}`}
+ className={cn(
+ "flex-1 min-w-0 pl-3 pr-14 py-1.5 rounded-md text-xs transition-colors truncate block border-l-2",
+ isActive
+ ? "border-l-primary bg-primary/10 text-primary font-medium"
+ : "border-l-transparent text-muted-foreground hover:bg-muted hover:text-foreground"
+ )}
+ title={s.title || s.session_id}
+ >
+ <span className="flex items-center gap-1.5">
+ <span className={cn(
+ "h-1.5 w-1.5 rounded-full shrink-0",
+ s.status === "failed" ? "bg-danger" : isActive ? "bg-warning" : "bg-success/60"
+ )} />
+ {s.title || s.session_id.slice(0, 16)}
+ </span>
+ </Link>
+ )}
+ {!isRenaming && isDeleting ? (
+ <div className="absolute right-0.5 flex items-center gap-0.5">
+ <button onClick={() => deleteSession(s.session_id)} className="p-1 text-danger hover:bg-danger/10 rounded text-[10px] font-medium">{t.confirmDelete}</button>
+ <button onClick={() => setDeleteTarget(null)} className="p-1 text-muted-foreground hover:bg-muted rounded text-[10px]">{t.cancelDelete}</button>
+ </div>
+ ) : !isRenaming ? (
+ <div className="absolute right-1 opacity-0 group-hover:opacity-100 flex items-center gap-0.5 transition-opacity">
+ <button
+ onClick={(e) => { e.preventDefault(); e.stopPropagation(); setRenameTarget(s.session_id); setRenameValue(s.title || ""); }}
+ className="p-1 text-muted-foreground hover:text-foreground rounded"
+ title="Rename"
+ >
+ <Pencil className="h-3 w-3" />
+ </button>
+ <button
+ onClick={(e) => { e.preventDefault(); e.stopPropagation(); setDeleteTarget(s.session_id); }}
+ className="p-1 text-muted-foreground hover:text-danger rounded"
+ title={t.deleteConfirm}
+ >
+ <Trash2 className="h-3 w-3" />
+ </button>
+ </div>
+ ) : null}
+ </div>
+ );
+ })}
+ </div>
+ </div>
+ )}
+
+ {/* Spacer when collapsed */}
+ {collapsed && <div className="flex-1" />}
+
+ {/* Footer */}
+ <div className={cn("border-t", collapsed ? "p-1 flex flex-col items-center gap-1" : "p-3 space-y-2")}>
+ {collapsed ? (
+ <>
+ <button onClick={toggle} className="p-1.5 text-muted-foreground hover:text-foreground rounded transition-colors" title={dark ? t.lightMode : t.darkMode}>
+ {dark ? <Sun className="h-3.5 w-3.5" /> : <Moon className="h-3.5 w-3.5" />}
+ </button>
+ <button onClick={() => setCollapsed(false)} className="p-1.5 text-muted-foreground hover:text-foreground rounded transition-colors" title="Expand">
+ <ChevronsRight className="h-3.5 w-3.5" />
+ </button>
+ </>
+ ) : (
+ <>
+ <div className="flex items-center justify-between">
+ <button
+ onClick={toggle}
+ className="flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors"
+ >
+ {dark ? <Sun className="h-3.5 w-3.5" /> : <Moon className="h-3.5 w-3.5" />}
+ {dark ? t.lightMode : t.darkMode}
+ </button>
+ <div className="flex items-center gap-1">
+ <button
+ onClick={() => setCollapsed(true)}
+ className="p-1 text-muted-foreground hover:text-foreground rounded transition-colors"
+ title="Collapse"
+ >
+ <ChevronsLeft className="h-3.5 w-3.5" />
+ </button>
+ </div>
+ </div>
+ <p className="text-xs text-muted-foreground/60">v0.1.0</p>
+ </>
+ )}
+ </div>
+ </aside>
+
+ {/* Main */}
+ <div className="flex-1 flex flex-col overflow-hidden">
+ <ConnectionBanner status={sseStatus} retryAttempt={sseRetryAttempt} />
+ <main className="flex-1 overflow-auto">
+ <Outlet />
+ </main>
+ </div>
+ </div>
+ );
+}
+
diff --git a/frontend/src/hooks/useDarkMode.ts b/frontend/src/hooks/useDarkMode.ts
new file mode 100644
index 000000000..24515158a
--- /dev/null
+++ b/frontend/src/hooks/useDarkMode.ts
@@ -0,0 +1,16 @@
+import { useEffect, useState } from "react";
+
+export function useDarkMode() {
+ const [dark, setDark] = useState(() => {
+ const saved = localStorage.getItem("qa-theme");
+ if (saved) return saved === "dark";
+ return window.matchMedia("(prefers-color-scheme: dark)").matches;
+ });
+
+ useEffect(() => {
+ document.documentElement.classList.toggle("dark", dark);
+ localStorage.setItem("qa-theme", dark ? "dark" : "light");
+ }, [dark]);
+
+ return { dark, toggle: () => setDark((d) => !d) };
+}
diff --git a/frontend/src/hooks/useSSE.ts b/frontend/src/hooks/useSSE.ts
new file mode 100644
index 000000000..1063508e9
--- /dev/null
+++ b/frontend/src/hooks/useSSE.ts
@@ -0,0 +1,170 @@
+/**
+ * SSE Hook โ€” auto-reconnect + exponential backoff + LRU dedup + Last-Event-ID resume.
+ */
+
+import { useCallback, useRef } from "react";
+
+type EventHandler = (data: Record<string, unknown>) => void;
+type Handlers = Record<string, EventHandler>;
+
+export type SSEStatus = "disconnected" | "connected" | "reconnecting";
+
+interface SSEConfig {
+ initialRetryMs?: number;
+ maxRetryMs?: number;
+ backoffFactor?: number;
+ dedupeCapacity?: number;
+}
+
+const DEFAULTS: Required<SSEConfig> = {
+ initialRetryMs: 1000,
+ maxRetryMs: 30000,
+ backoffFactor: 2,
+ dedupeCapacity: 500,
+};
+
+export function useSSE(config?: SSEConfig) {
+ const opts = { ...DEFAULTS, ...config };
+ const sourceRef = useRef<EventSource | null>(null);
+ const handlersRef = useRef<Handlers>({});
+ const urlRef = useRef<string>("");
+ const closedRef = useRef(true);
+ const retryCountRef = useRef(0);
+ const retryTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
+ const lastEventIdRef = useRef<string | null>(null);
+ const statusRef = useRef<SSEStatus>("disconnected");
+ const onStatusChangeRef = useRef<((s: SSEStatus) => void) | null>(null);
+
+ // LRU dedup set
+ const seenIdsRef = useRef<Set<string>>(new Set());
+ const seenOrderRef = useRef<string[]>([]);
+
+ const trackEventId = useCallback((eventId: string): boolean => {
+ if (!eventId) return false;
+ const seen = seenIdsRef.current;
+ const order = seenOrderRef.current;
+ if (seen.has(eventId)) return true; // duplicate
+ seen.add(eventId);
+ order.push(eventId);
+ if (order.length > opts.dedupeCapacity) {
+ const oldest = order.shift()!;
+ seen.delete(oldest);
+ }
+ return false;
+ }, [opts.dedupeCapacity]);
+
+ const setStatus = useCallback((s: SSEStatus) => {
+ statusRef.current = s;
+ onStatusChangeRef.current?.(s);
+ }, []);
+
+ const buildUrl = useCallback((baseUrl: string) => {
+ const sep = baseUrl.includes("?") ? "&" : "?";
+ if (lastEventIdRef.current) {
+ return `${baseUrl}${sep}Last-Event-ID=${encodeURIComponent(lastEventIdRef.current)}`;
+ }
+ return baseUrl;
+ }, []);
+
+ const doConnect = useCallback(() => {
+ if (closedRef.current) return;
+
+ const url = buildUrl(urlRef.current);
+ const source = new EventSource(url);
+ sourceRef.current = source;
+
+ source.onopen = () => {
+ retryCountRef.current = 0;
+ setStatus("connected");
+ };
+
+ // Only subscribe to event types the backend actually emits
+ const knownTypes = [
+ "text_delta", "thinking_done", "tool_call", "tool_result", "compact",
+ "attempt.completed", "attempt.failed",
+ "heartbeat", "done",
+ ];
+
+ const handleRaw = (eventType: string, raw: MessageEvent) => {
+ if (raw.lastEventId) {
+ lastEventIdRef.current = raw.lastEventId;
+ }
+ if (raw.lastEventId && trackEventId(raw.lastEventId)) return;
+
+ let parsed: Record<string, unknown>;
+ try {
+ parsed = JSON.parse(raw.data);
+ } catch {
+ parsed = { raw: raw.data };
+ }
+
+ const handler = handlersRef.current[eventType] ?? handlersRef.current["message"];
+ handler?.(parsed);
+ };
+
+ for (const eventType of knownTypes) {
+ source.addEventListener(eventType, (e) => handleRaw(eventType, e as MessageEvent));
+ }
+
+ source.onerror = () => {
+ if (closedRef.current) return;
+ source.close();
+ sourceRef.current = null;
+ scheduleReconnect();
+ };
+ }, [buildUrl, trackEventId, setStatus]);
+
+ const scheduleReconnect = useCallback(() => {
+ if (closedRef.current) return;
+ retryCountRef.current += 1;
+ const delay = Math.min(
+ opts.initialRetryMs * Math.pow(opts.backoffFactor, retryCountRef.current - 1),
+ opts.maxRetryMs,
+ );
+ setStatus("reconnecting");
+ handlersRef.current["reconnect"]?.({ attempt: retryCountRef.current, delayMs: delay });
+
+ retryTimerRef.current = setTimeout(() => {
+ retryTimerRef.current = null;
+ doConnect();
+ }, delay);
+ }, [opts.initialRetryMs, opts.backoffFactor, opts.maxRetryMs, setStatus, doConnect]);
+
+ const connect = useCallback((url: string, handlers: Handlers) => {
+ closedRef.current = true;
+ sourceRef.current?.close();
+ if (retryTimerRef.current) {
+ clearTimeout(retryTimerRef.current);
+ retryTimerRef.current = null;
+ }
+
+ urlRef.current = url;
+ handlersRef.current = handlers;
+ closedRef.current = false;
+ retryCountRef.current = 0;
+ lastEventIdRef.current = null;
+ seenIdsRef.current.clear();
+ seenOrderRef.current.length = 0;
+
+ doConnect();
+ }, [doConnect]);
+
+ const disconnect = useCallback(() => {
+ closedRef.current = true;
+ if (retryTimerRef.current) {
+ clearTimeout(retryTimerRef.current);
+ retryTimerRef.current = null;
+ }
+ sourceRef.current?.close();
+ sourceRef.current = null;
+ setStatus("disconnected");
+ }, [setStatus]);
+
+ const getStatus = useCallback(() => statusRef.current, []);
+
+ const onStatusChange = useCallback((cb: (s: SSEStatus) => void) => {
+ onStatusChangeRef.current = cb;
+ }, []);
+
+ return { connect, disconnect, getStatus, onStatusChange };
+}
diff --git a/frontend/src/index.css b/frontend/src/index.css
new file mode 100644
index 000000000..31f7121f7
--- /dev/null
+++ b/frontend/src/index.css
@@ -0,0 +1,81 @@
+@tailwind base;
+@tailwind components;
+@tailwind utilities;
+
+@layer base {
+ :root {
+ /* Light mode surfaces */
+ --background: 220 20% 98%;
+ --foreground: 220 20% 10%;
+ --card: 0 0% 100%;
+ --card-foreground: 220 20% 10%;
+
+ /* Brand accent */
+ --primary: 27 90% 52%;
+ --primary-foreground: 0 0% 100%;
+
+ --muted: 220 14% 92%;
+ --muted-foreground: 220 14% 46%;
+ --destructive: 0 84% 60%;
+ --destructive-foreground: 0 0% 100%;
+ --border: 220 14% 87%;
+ --radius: 0.5rem;
+
+ /* Semantic colors */
+ --success: 142 71% 45%;
+ --danger: 0 84% 60%;
+ --warning: 38 92% 50%;
+ --info: 217 91% 60%;
+
+ /* Chart tokens */
+ --chart-grid: 220 14% 90%;
+ --chart-text: 220 14% 46%;
+ --chart-axis: 220 14% 80%;
+ --chart-compare-a: #3b82f6;
+ --chart-compare-b: #f59e0b;
+ }
+
+ .dark {
+ /* Dark mode: 4-level surface system */
+ --background: 220 20% 5%; /* bg-base */
+ --foreground: 220 10% 92%;
+ --card: 220 20% 8%; /* surface-1 */
+ --card-foreground: 220 10% 92%;
+
+ --primary: 27 90% 52%;
+ --primary-foreground: 0 0% 100%;
+
+ --muted: 220 20% 13%; /* surface-2 */
+ --muted-foreground: 220 10% 55%;
+ --destructive: 0 62% 50%;
+ --destructive-foreground: 0 0% 100%;
+ --border: 220 20% 18%; /* surface-3 */
+
+ /* Semantic colors */
+ --success: 142 71% 45%;
+ --danger: 0 62% 50%;
+ --warning: 38 92% 50%;
+ --info: 217 91% 60%;
+
+ /* Chart tokens */
+ --chart-grid: 220 20% 12%;
+ --chart-text: 220 10% 42%;
+ --chart-axis: 220 20% 22%;
+ --chart-compare-a: #60a5fa;
+ --chart-compare-b: #fbbf24;
+ }
+
+ * { @apply border-border; }
+ body { @apply bg-background text-foreground; }
+
+ /* Prose table enhancements */
+ .prose table { border-collapse: collapse; width: 100%; }
+ .prose th, .prose td { border: 1px solid hsl(var(--border)); }
+ .prose tbody tr:nth-child(even) { background: hsl(var(--muted) / 0.3); }
+
+ /* Smooth scrollbar for webkit */
+ ::-webkit-scrollbar { width: 6px; height: 6px; }
+ ::-webkit-scrollbar-track { background: transparent; }
+ ::-webkit-scrollbar-thumb { background: hsl(var(--border)); border-radius: 3px; }
+ ::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground)); }
+}
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.ts
new file mode 100644
index 000000000..c671b7c6c
--- /dev/null
+++ b/frontend/src/lib/api.ts
@@ -0,0 +1,191 @@
+const BASE = "";
+
+async function request<T>(path: string, options?: RequestInit): Promise<T> {
+ const res = await fetch(`${BASE}${path}`, {
+ headers: { "Content-Type": "application/json", ...options?.headers },
+ ...options,
+ });
+ if (!res.ok) {
+ let detail = `HTTP ${res.status}`;
+ try {
+ const body = await res.json();
+ detail = body.detail || body.message || detail;
+ } catch { /* ignore */ }
+ throw new Error(detail);
+ }
+ const text = await res.text();
+ return text ? JSON.parse(text) : ({} as T);
+}
+
+export interface UploadResult {
+ status: string;
+ file_path: string;
+ filename: string;
+}
+
+async function uploadFile(file: File): Promise<UploadResult> {
+ const form = new FormData();
+ form.append("file", file);
+ const res = await fetch(`${BASE}/upload`, { method: "POST", body: form });
+ if (!res.ok) {
+ let detail = `HTTP ${res.status}`;
+ try {
+ const body = await res.json();
+ detail = body.detail || body.message || detail;
+ } catch { /* ignore */ }
+ throw new Error(detail);
+ }
+ return res.json();
+}
+
+export const api = {
+ uploadFile,
+ listRuns: () => request<RunListItem[]>("/runs"),
+ getRun: (id: string) => request<RunData>(`/runs/${id}`),
+ getRunCode: (id: string) => request<Record<string, string>>(`/runs/${id}/code`),
+ listSessions: () => request<SessionItem[]>("/sessions"),
+ createSession: (title?: string) => request<SessionItem>("/sessions", { method: "POST", body: JSON.stringify({ title: title || "" }) }),
+ deleteSession: (sid: string) => request<{ status: string }>(`/sessions/${sid}`, { method: "DELETE" }),
+ renameSession: (sid: string, title: string) => request<{ status: string }>(`/sessions/${sid}`, { method: "PATCH", body: JSON.stringify({ title }) }),
+ sendMessage: (sid: string, content: string) => request<{ message_id: string; attempt_id: string }>(`/sessions/${sid}/messages`, { method: "POST", body: JSON.stringify({ content }) }),
+ cancelSession: (sid: string) => request<{ status: string }>(`/sessions/${sid}/cancel`, { method: "POST" }),
+ getSessionMessages: (sid: string) => request<MessageItem[]>(`/sessions/${sid}/messages`),
+ sseUrl: (sid: string) => `${BASE}/sessions/${sid}/events`,
+
+ // Swarm API
+ listSwarmPresets: () => request<SwarmPreset[]>("/swarm/presets"),
+ createSwarmRun: (preset_name: string, user_vars: Record<string, string>) =>
+ request<{ id: string; status: string }>("/swarm/runs", {
+ method: "POST",
+ body: JSON.stringify({ preset_name, user_vars }),
+ }),
+ listSwarmRuns: () => request<SwarmRunSummary[]>("/swarm/runs"),
+ getSwarmRun: (id: string) => request<Record<string, unknown>>(`/swarm/runs/${id}`),
+ cancelSwarmRun: (id: string) =>
+ request<{ status: string }>(`/swarm/runs/${id}/cancel`, { method: "POST" }),
+};
+
+// --- Swarm types ---
+
+export interface SwarmPreset {
+ name: string;
+ title: string;
+ description: string;
+ agent_count: number;
+ variables: { name: string; description: string; required: boolean }[];
+}
+
+export interface SwarmRunSummary {
+ id: string;
+ preset_name: string;
+ status: string;
+ created_at: string;
+ task_count: number;
+ completed_count: number;
+}
+
+// --- Types matching backend API contracts ---
+
+export interface RunListItem {
+ run_id: string;
+ status: string;
+ created_at: string;
+ prompt?: string;
+ total_return?: number;
+ sharpe?: number;
+ codes?: string[];
+ start_date?: string;
+ end_date?: string;
+}
+
+export interface PriceBar {
+ time: string;
+ timestamp?: string;
+ code?: string;
+ open: number;
+ high: number;
+ low: number;
+ close: number;
+ volume: number;
+}
+
+export interface TradeMarker {
+ time: string;
+ timestamp?: string;
+ code?: string;
+ side: "BUY" | "SELL";
+ price: number;
+ qty?: number;
+ reason?: string;
+ text?: string;
+}
+
+export interface EquityPoint {
+ time: string;
+ equity: string | number;
+ drawdown: string | number;
+}
+
+export interface RunData {
+ status: string;
+ run_id: string;
+ prompt?: string;
+ elapsed_seconds?: number;
+ run_directory?: string;
+ run_stage?: string;
+ run_context?: Record<string, unknown>;
+
+ metrics?: BacktestMetrics;
+ artifacts?: ArtifactInfo[];
+
+ price_series?: Record<string, PriceBar[]>;
+ indicator_series?: Record<string, Record<string, IndicatorPoint[]>>;
+ trade_markers?: TradeMarker[];
+ equity_curve?: EquityPoint[];
+ trade_log?: Array<Record<string, string>>;
+ run_logs?: Array<{ source?: string; line_number?: number; message?: string }>;
+}
+
+export interface BacktestMetrics {
+ final_value: number;
+ total_return: number;
+ annual_return: number;
+ max_drawdown: number;
+ sharpe: number;
+ win_rate: number;
+ trade_count: number;
+ [key: string]: number;
+}
+
+
+export interface IndicatorPoint {
+ time: string;
+ value: number;
+}
+
+export interface ArtifactInfo {
+ name: string;
+ path: string;
+ type: string;
+ size: number;
+ exists: boolean;
+}
+
+export interface SessionItem {
+ session_id: string;
+ title?: string;
+ status?: string;
+ created_at?: string;
+ updated_at?: string;
+ last_attempt_id?: string;
+}
+
+export interface MessageItem {
+ message_id: string;
+ session_id: string;
+ role: string;
+ content: string;
+ created_at: string;
+ linked_attempt_id?: string;
+ metadata?: Record<string, unknown>;
+}
diff --git a/frontend/src/lib/chart-theme.ts b/frontend/src/lib/chart-theme.ts
new file mode 100644
index 000000000..a4fea7067
--- /dev/null
+++ b/frontend/src/lib/chart-theme.ts
@@ -0,0 +1,65 @@
+function css(name: string): string {
+ return getComputedStyle(document.documentElement).getPropertyValue(name).trim();
+}
+
+function hslToHex(hsl: string): string {
+ if (!hsl) return "";
+ const [h, s, l] = hsl.split(/\s+/).map(parseFloat);
+ if (isNaN(h)) return "";
+ const a = (s / 100) * Math.min(l / 100, 1 - l / 100);
+ const f = (n: number) => {
+ const k = (n + h / 30) % 12;
+ const color = l / 100 - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
+ return Math.round(255 * color).toString(16).padStart(2, "0");
+ };
+ return `#${f(0)}${f(8)}${f(4)}`;
+}
+
+function isChinese(): boolean {
+ return (document.documentElement.lang || navigator.language || "").startsWith("zh");
+}
+
+let _cache: ReturnType<typeof buildTheme> | null = null;
+let _cacheKey = "";
+
+function buildTheme() {
+ const cn = isChinese();
+ const isDark = document.documentElement.classList.contains("dark");
+
+ const successHex = hslToHex(css("--success")) || "#22c55e";
+ const dangerHex = hslToHex(css("--danger")) || "#ef4444";
+ const infoHex = hslToHex(css("--info")) || "#3b82f6";
+ const warningHex = hslToHex(css("--warning")) || "#f59e0b";
+ const gridHex = hslToHex(css("--chart-grid")) || (isDark ? "#1e2433" : "#e5e7eb");
+ const textHex = hslToHex(css("--chart-text")) || "#6b7280";
+ const axisHex = hslToHex(css("--chart-axis")) || "#374151";
+
+ // Locale-aware candlestick colors: China = red up / green down
+ const upHex = cn ? dangerHex : successHex;
+ const downHex = cn ? successHex : dangerHex;
+
+ return {
+ gridColor: gridHex,
+ textColor: textHex,
+ axisColor: axisHex,
+ upColor: upHex,
+ downColor: downHex,
+ maColors: [warningHex, "#8b5cf6", infoHex],
+ bollColor: "rgba(99,102,241,0.5)",
+ volumeUp: upHex + "66",
+ volumeDown: downHex + "66",
+ infoColor: infoHex,
+ warningColor: warningHex,
+ tooltipBg: isDark ? "rgba(10,14,22,0.92)" : "rgba(255,255,255,0.96)",
+ tooltipBorder: isDark ? "#1e2433" : "#e5e7eb",
+ tooltipText: isDark ? "#d1d5db" : "#374151",
+ };
+}
+
+export function getChartTheme() {
+ const key = `${document.documentElement.className}|${document.documentElement.lang || navigator.language}`;
+ if (_cache && _cacheKey === key) return _cache;
+ _cache = buildTheme();
+ _cacheKey = key;
+ return _cache;
+}
diff --git a/frontend/src/lib/echarts.ts b/frontend/src/lib/echarts.ts
new file mode 100644
index 000000000..e4a79cf80
--- /dev/null
+++ b/frontend/src/lib/echarts.ts
@@ -0,0 +1,34 @@
+import * as echarts from "echarts/core";
+import { CandlestickChart, LineChart, BarChart } from "echarts/charts";
+import {
+ GridComponent,
+ TooltipComponent,
+ LegendComponent,
+ DataZoomComponent,
+ MarkPointComponent,
+ ToolboxComponent,
+ MarkLineComponent,
+ MarkAreaComponent,
+} from "echarts/components";
+import { CanvasRenderer } from "echarts/renderers";
+
+echarts.use([
+ CandlestickChart, LineChart, BarChart,
+ GridComponent, TooltipComponent, LegendComponent,
+ DataZoomComponent, MarkPointComponent,
+ ToolboxComponent, MarkLineComponent, MarkAreaComponent,
+ CanvasRenderer,
+]);
+
+export const CHART_GROUP = "quant-charts";
+
+let _connected = false;
+
+export function connectCharts() {
+ if (!_connected) {
+ echarts.connect(CHART_GROUP);
+ _connected = true;
+ }
+}
+
+export { echarts };
diff --git a/frontend/src/lib/formatters.ts b/frontend/src/lib/formatters.ts
new file mode 100644
index 000000000..36f856f67
--- /dev/null
+++ b/frontend/src/lib/formatters.ts
@@ -0,0 +1,73 @@
+/** Maps metric keys to i18n translation keys */
+export const METRIC_I18N_KEYS: Record<string, string> = {
+ total_return: "metricTotalReturn",
+ annual_return: "metricAnnualReturn",
+ sharpe: "metricSharpe",
+ max_drawdown: "metricMaxDrawdown",
+ win_rate: "metricWinRate",
+ trade_count: "metricTradeCount",
+ final_value: "metricFinalValue",
+ calmar: "metricCalmar",
+ sortino: "metricSortino",
+ profit_loss_ratio: "metricProfitLossRatio",
+ max_consecutive_loss: "metricMaxConsecutiveLoss",
+ avg_holding_days: "metricAvgHoldingDays",
+ benchmark_return: "metricBenchmarkReturn",
+ excess_return: "metricExcessReturn",
+ information_ratio: "metricIR",
+};
+
+/** Resolve metric label using i18n translations object */
+export function getMetricLabel(k: string, t: Record<string, string>): string {
+ const i18nKey = METRIC_I18N_KEYS[k];
+ return i18nKey ? (t[i18nKey] || k) : k;
+}
+
+const PCT_KEYS = ["total_return", "annual_return", "win_rate", "max_drawdown", "benchmark_return", "excess_return"];
+const RATIO_KEYS = ["sharpe", "calmar", "sortino", "profit_loss_ratio", "information_ratio"];
+const INT_KEYS = ["trade_count", "max_consecutive_loss"];
+const NEUTRAL_KEYS = new Set(["trade_count", "avg_holding_days", "final_value"]);
+
+export function formatMetricVal(k: string, v: number): string {
+ if (PCT_KEYS.includes(k)) {
+ const sign = v > 0 ? "+" : "";
+ return `${sign}${(v * 100).toFixed(2)}%`;
+ }
+ if (RATIO_KEYS.includes(k)) {
+ const sign = v > 0 ? "+" : "";
+ return `${sign}${v.toFixed(2)}`;
+ }
+ if (INT_KEYS.includes(k)) return String(Math.round(v));
+ if (k === "final_value") return v.toLocaleString(undefined, { maximumFractionDigits: 0 });
+ if (k === "avg_holding_days") return v.toFixed(1);
+ return v.toFixed(4);
+}
+
+export function metricSentiment(k: string, v: number): "positive" | "neutral" | "negative" {
+ if (NEUTRAL_KEYS.has(k)) return "neutral";
+ if (k === "max_drawdown") return v > -0.05 ? "positive" : v > -0.2 ? "neutral" : "negative";
+ if (k === "max_consecutive_loss") return v <= 3 ? "positive" : v <= 6 ? "neutral" : "negative";
+ if (k === "win_rate") return v >= 0.5 ? "positive" : v >= 0.35 ? "neutral" : "negative";
+ if (k === "sharpe" || k === "calmar" || k === "sortino") return v >= 1.0 ? "positive" : v >= 0.3 ? "neutral" : "negative";
+ if (k === "information_ratio") return v >= 0.5 ? "positive" : v >= 0 ? "neutral" : "negative";
+ return v > 0 ? "positive" : v === 0 ? "neutral" : "negative";
+}
+
+export const DISPLAY_ORDER = [
+ "total_return", "annual_return", "sharpe", "max_drawdown", "win_rate", "trade_count",
+ "calmar", "sortino", "profit_loss_ratio", "max_consecutive_loss",
+ "benchmark_return", "excess_return", "information_ratio", "final_value", "avg_holding_days",
+];
+
+export function formatTimestamp(ts: number): string {
+ const d = new Date(ts);
+ return `${d.getHours().toString().padStart(2, "0")}:${d.getMinutes().toString().padStart(2, "0")}`;
+}
+
+export function abbreviateNum(v: number): string {
+ const abs = Math.abs(v);
+ if (abs >= 1e9) return (v / 1e9).toFixed(1) + "B";
+ if (abs >= 1e6) return (v / 1e6).toFixed(1) + "M";
+ if (abs >= 1e4) return (v / 1e3).toFixed(0) + "K";
+ return v.toLocaleString();
+}
diff --git a/frontend/src/lib/i18n.tsx b/frontend/src/lib/i18n.tsx
new file mode 100644
index 000000000..d1d243742
--- /dev/null
+++ b/frontend/src/lib/i18n.tsx
@@ -0,0 +1,120 @@
+import { createContext, useContext, type ReactNode } from "react";
+
+const messages = {
+ home: "Home", agent: "Agent", runs: "Runs", settings: "Settings",
+ startResearch: "Start Research", describeStrategy: "Describe a trading strategy to get started.",
+ prompt: "e.g. Create a dual MA crossover strategy for 000001.SZ, backtest 2024",
+ send: "Send", loading: "Loading...", noRuns: "No runs yet. Go to Agent to create one.",
+ runHistory: "Run History", status: "Status", elapsed: "Elapsed",
+ chart: "Chart", trades: "Trades", code: "Code", trace: "Trace",
+ noData: "No data available", noTrades: "No trades recorded.", noCode: "No code files.",
+ noTrace: "No trace data.", priceAndTrades: "Price & Trades", equityAndDrawdown: "Equity & Drawdown",
+ examples: "Try an example:", bye: "Goodbye",
+ heroTitle: "AI-Powered Quant Strategy Research",
+ heroDesc: "Describe a trading strategy in natural language. The agent generates code, runs backtests, and optimizes โ€” all in real time.",
+ feat1: "AI Agent", feat1d: "Natural language strategy generation with ReAct reasoning",
+ feat2: "Built-in Backtest", feat2d: "3 data sources: A-shares, US/HK, Crypto",
+ feat3: "Real-time Streaming", feat3d: "Watch the agent think, call tools, and iterate",
+ score: "Score", passed: "Passed", failed: "Failed", findings: "Findings", recommendations: "Recommendations",
+ darkMode: "Dark", lightMode: "Light", language: "Language",
+ sessions: "Sessions", newChat: "New Chat", deleteConfirm: "Delete?",
+ noSessions: "No sessions yet",
+ viewDetails: "View Details",
+ fullReport: "Full Report โ†’",
+ strategyComparison: "Strategy Comparison",
+ baseline: "Baseline", compareTo: "Compare", delta: "Delta", metric: "Metric",
+ selectRun: "-- Select --",
+ selectTwoRuns: "Select two runs to compare their metrics.",
+ online: "Online", offline: "Offline",
+ checking: "Checkingโ€ฆ", checkConnection: "Check Connection",
+ appearance: "Appearance",
+ connection: "Connection",
+ endpoints: "Endpoints",
+ review: "Review",
+ noReview: "No review data available.",
+ colTime: "Time", colCode: "Code", colSide: "Side",
+ colPrice: "Price", colQty: "Qty", colReason: "Reason",
+ equityDrawdown: "Equity & Drawdown",
+ noPriceData: "No price data", noEquityData: "No equity data",
+ filterLogs: "Filter logs...",
+ confirmDelete: "Confirm", cancelDelete: "Cancel",
+ reconnectingN: "Connection lost, reconnecting (attempt {n})โ€ฆ",
+ disconnected: "Connection lost",
+ sessionCreated: "Session started",
+ sendFailed: "Failed to send message, please retry.",
+ reconnecting: "Connection lost, reconnectingโ€ฆ",
+ connected: "Connection restored",
+ toolLoadSkill: "Load strategy knowledge",
+ toolWriteFile: "Generate code",
+ toolEditFile: "Edit code",
+ toolReadFile: "Read file",
+ toolRunBacktest: "Run backtest",
+ toolBash: "Run command",
+ toolReadUrl: "Read webpage",
+ toolReadDocument: "Read document",
+ toolCompact: "Compact context",
+ toolCreateTask: "Create task",
+ toolUpdateTask: "Update task",
+ toolSpawnSubagent: "Spawn sub-agent",
+ toolProcessing: "Processing",
+ toolRunning: "Running",
+ thinkingRunning: "Running {tool}...",
+ thinkingDone: "Done ยท {count} steps",
+ metricTotalReturn: "Total Return",
+ metricAnnualReturn: "Annual",
+ metricSharpe: "Sharpe",
+ metricMaxDrawdown: "Max DD",
+ metricWinRate: "Win Rate",
+ metricTradeCount: "Trades",
+ metricFinalValue: "Final Value",
+ metricCalmar: "Calmar",
+ metricSortino: "Sortino",
+ metricProfitLossRatio: "P/L Ratio",
+ metricMaxConsecutiveLoss: "Max Consec. Loss",
+ metricAvgHoldingDays: "Avg Hold Days",
+ metricBenchmarkReturn: "Benchmark",
+ metricExcessReturn: "Excess Return",
+ metricIR: "IR",
+ overlayMA: "Moving Avg",
+ overlayChannel: "Channel",
+ overlayIndicators: "Indicators",
+ overlayClearAll: "Bare K (clear all)",
+ rename: "Rename",
+ goBack: "Go back",
+ noChartData: "No chart data available",
+ noChartDataHint: "The backtest engine may not have generated price data. Check the artifacts/ directory.",
+ executionFailed: "Execution failed",
+ executionTimeout: "Execution timed out, automatically stopped",
+ cancelSent: "Cancel request sent",
+ cancelFailed: "Cancel failed",
+ exportChat: "Export chat",
+ stopGeneration: "Stop generation",
+ newMessages: "New messages",
+ stepN: "Step {n}",
+ exportTitle: "# Chat Export",
+ exportTime: "Export time",
+ exportUser: "## User",
+ exportAssistant: "## Assistant",
+ exportError: "## Error",
+ exportToolCall: "> Tool call",
+ exportRunComplete: "> Backtest complete",
+ downloadTradesCsv: "Download Trades CSV",
+ downloadMetricsCsv: "Download Metrics CSV",
+ example1: "Dual MA crossover on 000001.SZ (5/20 day), backtest 2024",
+ example2: "Build a dual MA crossover strategy for 000001.SZ, backtest 2024",
+ example3: "Bollinger band mean-reversion on 600519.SH, backtest last 3 years",
+} as const;
+
+type Messages = typeof messages;
+
+const I18nCtx = createContext<{ t: Messages }>({ t: messages });
+
+export function I18nProvider({ children }: { children: ReactNode }) {
+ return (
+ <I18nCtx.Provider value={{ t: messages }}>
+ {children}
+ </I18nCtx.Provider>
+ );
+}
+
+export function useI18n() { return useContext(I18nCtx); }
diff --git a/frontend/src/lib/indicators.ts b/frontend/src/lib/indicators.ts
new file mode 100644
index 000000000..f8eb2c852
--- /dev/null
+++ b/frontend/src/lib/indicators.ts
@@ -0,0 +1,113 @@
+type N = number | null;
+
+export function calcMA(data: number[], period: number): N[] {
+ return data.map((_, i) => {
+ if (i < period - 1) return null;
+ let s = 0;
+ for (let j = i - period + 1; j <= i; j++) s += data[j];
+ return s / period;
+ });
+}
+
+export function calcEMA(data: number[], period: number): N[] {
+ const k = 2 / (period + 1);
+ const out: N[] = [];
+ let ema: number | null = null;
+ for (let i = 0; i < data.length; i++) {
+ if (i < period - 1) {
+ out.push(null);
+ } else if (ema === null) {
+ let s = 0;
+ for (let j = 0; j < period; j++) s += data[j];
+ ema = s / period;
+ out.push(ema);
+ } else {
+ ema = data[i] * k + ema * (1 - k);
+ out.push(ema);
+ }
+ }
+ return out;
+}
+
+export function calcBOLL(data: number[], period = 20, mult = 2) {
+ const mid = calcMA(data, period);
+ const upper: N[] = [];
+ const lower: N[] = [];
+ for (let i = 0; i < data.length; i++) {
+ if (mid[i] === null) { upper.push(null); lower.push(null); continue; }
+ let sq = 0;
+ for (let j = i - period + 1; j <= i; j++) sq += (data[j] - mid[i]!) ** 2;
+ const std = Math.sqrt(sq / period);
+ upper.push(mid[i]! + mult * std);
+ lower.push(mid[i]! - mult * std);
+ }
+ return { upper, mid, lower };
+}
+
+export function calcMACD(data: number[], fast = 12, slow = 26, sig = 9) {
+ const ef = calcEMA(data, fast);
+ const es = calcEMA(data, slow);
+ const dif: N[] = data.map((_, i) =>
+ ef[i] !== null && es[i] !== null ? ef[i]! - es[i]! : null
+ );
+
+ // Signal = EMA of non-null DIF values
+ const valid: number[] = [];
+ const idx: number[] = [];
+ dif.forEach((v, i) => { if (v !== null) { valid.push(v); idx.push(i); } });
+ const sigEma = calcEMA(valid, sig);
+
+ const signal: N[] = new Array(data.length).fill(null);
+ const hist: N[] = new Array(data.length).fill(null);
+ idx.forEach((ii, j) => {
+ if (sigEma[j] !== null) {
+ signal[ii] = sigEma[j];
+ hist[ii] = dif[ii]! - sigEma[j]!;
+ }
+ });
+ return { dif, signal, histogram: hist };
+}
+
+export function calcRSI(data: number[], period = 14): N[] {
+ if (data.length < period + 1) return data.map(() => null);
+ const out: N[] = new Array(data.length).fill(null);
+ let avgG = 0, avgL = 0;
+ for (let i = 1; i <= period; i++) {
+ const c = data[i] - data[i - 1];
+ if (c > 0) avgG += c; else avgL -= c;
+ }
+ avgG /= period;
+ avgL /= period;
+ out[period] = avgL === 0 ? 100 : 100 - 100 / (1 + avgG / avgL);
+ for (let i = period + 1; i < data.length; i++) {
+ const c = data[i] - data[i - 1];
+ avgG = (avgG * (period - 1) + (c > 0 ? c : 0)) / period;
+ avgL = (avgL * (period - 1) + (c < 0 ? -c : 0)) / period;
+ out[i] = avgL === 0 ? 100 : 100 - 100 / (1 + avgG / avgL);
+ }
+ return out;
+}
+
+export function calcKDJ(highs: number[], lows: number[], closes: number[], period = 9) {
+ const n = closes.length;
+ const k: N[] = new Array(n).fill(null);
+ const d: N[] = new Array(n).fill(null);
+ const j: N[] = new Array(n).fill(null);
+ if (n < period) return { k, d, j };
+
+ let pk = 50, pd = 50;
+ for (let i = period - 1; i < n; i++) {
+ let hi = -Infinity, lo = Infinity;
+ for (let p = i - period + 1; p <= i; p++) {
+ if (highs[p] > hi) hi = highs[p];
+ if (lows[p] < lo) lo = lows[p];
+ }
+ const rsv = hi === lo ? 50 : ((closes[i] - lo) / (hi - lo)) * 100;
+ pk = (pk * 2 + rsv) / 3;
+ pd = (pd * 2 + pk) / 3;
+ k[i] = pk;
+ d[i] = pd;
+ j[i] = 3 * pk - 2 * pd;
+ }
+ return { k, d, j };
+}
diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts
new file mode 100644
index 000000000..a5ef19350
--- /dev/null
+++ b/frontend/src/lib/utils.ts
@@ -0,0 +1,6 @@
+import { clsx, type ClassValue } from "clsx";
+import { twMerge } from "tailwind-merge";
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs));
+}
diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx
new file mode 100644
index 000000000..1c7e7c226
--- /dev/null
+++ b/frontend/src/main.tsx
@@ -0,0 +1,20 @@
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import { RouterProvider } from "react-router-dom";
+import { Toaster } from "sonner";
+import { I18nProvider } from "./lib/i18n";
+import { ErrorBoundary } from "./components/common/ErrorBoundary";
+import { router } from "./router";
+import "highlight.js/styles/github-dark-dimmed.min.css";
+import "./index.css";
+
+createRoot(document.getElementById("root")!).render(
+ <StrictMode>
+ <ErrorBoundary>
+ <I18nProvider>
+ <RouterProvider router={router} />
+ <Toaster position="bottom-right" richColors closeButton duration={3500} />
+ </I18nProvider>
+ </ErrorBoundary>
+ </StrictMode>
+);
diff --git a/frontend/src/pages/Agent.tsx b/frontend/src/pages/Agent.tsx
new file mode 100644
index 000000000..b59254807
--- /dev/null
+++ b/frontend/src/pages/Agent.tsx
@@ -0,0 +1,845 @@
+import { useEffect, useRef, useState, useMemo, useCallback, type FormEvent } from "react";
+import { useSearchParams } from "react-router-dom";
+import { Send, Loader2, ArrowDown, CheckCircle2, Square, Download, Plus, Paperclip, X, Users } from "lucide-react";
+import { toast } from "sonner";
+import { useAgentStore } from "@/stores/agent";
+import { useSSE } from "@/hooks/useSSE";
+import { useI18n } from "@/lib/i18n";
+import { api } from "@/lib/api";
+import type { AgentMessage, ToolCallEntry } from "@/types/agent";
+import { AgentAvatar } from "@/components/chat/AgentAvatar";
+import { WelcomeScreen } from "@/components/chat/WelcomeScreen";
+import { MessageBubble } from "@/components/chat/MessageBubble";
+import { ThinkingTimeline } from "@/components/chat/ThinkingTimeline";
+import { ConversationTimeline } from "@/components/chat/ConversationTimeline";
+import { SwarmDashboard, type SwarmAgent, type SwarmDashboardProps } from "@/components/chat/SwarmDashboard";
+
+/* ---------- Message grouping ---------- */
+type MsgGroup =
+ | { kind: "single"; msg: AgentMessage }
+ | { kind: "timeline"; msgs: AgentMessage[] };
+
+function groupMessages(msgs: AgentMessage[]): MsgGroup[] {
+ const out: MsgGroup[] = [];
+ let buf: AgentMessage[] = [];
+ const flush = () => { if (buf.length) { out.push({ kind: "timeline", msgs: [...buf] }); buf = []; } };
+ for (const m of msgs) {
+ if (["thinking", "tool_call", "tool_result", "compact"].includes(m.type)) {
+ buf.push(m);
+ } else {
+ flush();
+ out.push({ kind: "single", msg: m });
+ }
+ }
+ flush();
+ return out;
+}
+
+const act = () => useAgentStore.getState();
+
+/* ---------- Component ---------- */
+export function Agent() {
+ const [input, setInput] = useState("");
+ const [searchParams, setSearchParams] = useSearchParams();
+ const listRef = useRef<HTMLDivElement>(null);
+ const inputRef = useRef<HTMLTextAreaElement>(null);
+ const sseSessionRef = useRef<string | null>(null);
+ const prevSseStatusRef = useRef<string>("disconnected");
+ const genRef = useRef(0);
+ const [showScrollBtn, setShowScrollBtn] = useState(false);
+ const lastEventRef = useRef(0);
+
+ const [attachment, setAttachment] = useState<{ filename: string; filePath: string } | null>(null);
+ const [uploading, setUploading] = useState(false);
+ const [showUploadMenu, setShowUploadMenu] = useState(false);
+ const uploadMenuRef = useRef<HTMLDivElement>(null);
+ const fileInputRef = useRef<HTMLInputElement>(null);
+ const [swarmPreset, setSwarmPreset] = useState<{ name: string; title: string } | null>(null);
+ const swarmCancelRef = useRef(false);
+ const [swarmDash, setSwarmDash] = useState<SwarmDashboardProps | null>(null);
+ const swarmDashRef = useRef<SwarmDashboardProps | null>(null);
+
+ const messages = useAgentStore(s => s.messages);
+ const streamingText = useAgentStore(s => s.streamingText);
+ const status = useAgentStore(s => s.status);
+ const sessionId = useAgentStore(s => s.sessionId);
+ const toolCalls = useAgentStore(s => s.toolCalls);
+ const sessionLoading = useAgentStore(s => s.sessionLoading);
+
+ const { connect, disconnect, onStatusChange } = useSSE();
+ const { t } = useI18n();
+
+ const urlSessionId = searchParams.get("session");
+
+ /* Smart scroll โ€” only auto-scroll when near bottom */
+ const isNearBottom = useCallback(() => {
+ const el = listRef.current;
+ if (!el) return true;
+ return el.scrollHeight - el.scrollTop - el.clientHeight < 100;
+ }, []);
+
+ const rafRef = useRef(0);
+ const scrollToBottom = useCallback(() => {
+ if (!isNearBottom()) {
+ setShowScrollBtn(true);
+ return;
+ }
+ cancelAnimationFrame(rafRef.current);
+ rafRef.current = requestAnimationFrame(() => {
+ if (listRef.current) listRef.current.scrollTop = listRef.current.scrollHeight;
+ });
+ }, [isNearBottom]);
+
+ const forceScrollToBottom = useCallback(() => {
+ setShowScrollBtn(false);
+ requestAnimationFrame(() => {
+ if (listRef.current) listRef.current.scrollTop = listRef.current.scrollHeight;
+ });
+ }, []);
+
+ /* Track scroll position to show/hide scroll button */
+ useEffect(() => {
+ const el = listRef.current;
+ if (!el) return;
+ const onScroll = () => {
+ if (isNearBottom()) setShowScrollBtn(false);
+ };
+ el.addEventListener("scroll", onScroll, { passive: true });
+ return () => el.removeEventListener("scroll", onScroll);
+ }, [isNearBottom]);
+
+ useEffect(() => {
+ onStatusChange((s) => {
+ act().setSseStatus(s);
+ if (s === "reconnecting" && prevSseStatusRef.current === "connected") toast.warning(t.reconnecting);
+ else if (s === "connected" && prevSseStatusRef.current === "reconnecting") toast.success(t.connected);
+ prevSseStatusRef.current = s;
+ });
+ }, [onStatusChange, t]);
+
+ const doDisconnect = useCallback(() => {
+ disconnect();
+ sseSessionRef.current = null;
+ }, [disconnect]);
+
+ const loadSessionMessages = useCallback(async (sid: string, gen: number) => {
+ try {
+ const msgs = await api.getSessionMessages(sid);
+ if (genRef.current !== gen) return;
+ const agentMsgs: AgentMessage[] = [];
+ for (const m of msgs) {
+ const meta = m.metadata as Record<string, unknown> | undefined;
+ const runId = meta?.run_id as string | undefined;
+ const metrics = meta?.metrics as Record<string, number> | undefined;
+ const ts = new Date(m.created_at).getTime();
+ if (m.role === "user") {
+ agentMsgs.push({ id: m.message_id, type: "user", content: m.content, timestamp: ts });
+ } else if (runId) {
+ // Show text answer first (if non-empty), then chart card
+ if (m.content && m.content !== "Strategy execution completed.") {
+ agentMsgs.push({ id: m.message_id + "_ans", type: "answer", content: m.content, timestamp: ts });
+ }
+ agentMsgs.push({ id: m.message_id, type: "run_complete", content: "", runId, metrics, timestamp: ts + 1 });
+ } else {
+ agentMsgs.push({ id: m.message_id, type: "answer", content: m.content, timestamp: ts });
+ }
+ }
+ if (genRef.current !== gen) return;
+ act().loadHistory(agentMsgs);
+ act().setSessionLoading(false);
+ act().cacheSession(sid, agentMsgs);
+ setTimeout(() => forceScrollToBottom(), 50);
+ } catch {
+ act().setSessionLoading(false);
+ }
+ }, [forceScrollToBottom]);
+
+ const setupSSE = useCallback((sid: string) => {
+ if (sseSessionRef.current === sid) return;
+ disconnect();
+ sseSessionRef.current = sid;
+
+ const touch = () => { lastEventRef.current = Date.now(); };
+
+ connect(api.sseUrl(sid), {
+ text_delta: (d) => { touch(); act().appendDelta(String(d.delta || "")); scrollToBottom(); },
+ thinking_done: () => { touch(); /* don't flush โ€” keep streaming text visible */ },
+
+ tool_call: (d) => {
+ touch();
+ const toolName = String(d.tool || "");
+ // Only update toolCalls tracker (no message creation during streaming)
+ act().addToolCall({
+ id: toolName, tool: toolName,
+ arguments: (d.arguments as Record<string, string>) ?? {},
+ status: "running", timestamp: Date.now(),
+ });
+ scrollToBottom();
+ },
+
+ tool_result: (d) => {
+ touch();
+ // Only update tracker (no message creation during streaming)
+ act().updateToolCall(String(d.tool || ""), {
+ status: d.status === "ok" ? "ok" : "error",
+ preview: String(d.preview || ""),
+ elapsed_ms: Number(d.elapsed_ms || 0),
+ });
+ },
+
+ compact: () => { touch(); },
+
+ "attempt.completed": async (d) => {
+ touch();
+ const s = act();
+ // Build ThinkingTimeline summary from accumulated toolCalls
+ const completedTools = s.toolCalls;
+ if (completedTools.length > 0) {
+ const totalMs = completedTools.reduce((a, tc) => a + (tc.elapsed_ms || 0), 0);
+ for (const tc of completedTools) {
+ s.addMessage({ id: tc.id + "_call", type: "tool_call", content: "", tool: tc.tool, args: tc.arguments, status: tc.status || "ok", timestamp: tc.timestamp });
+ if (tc.elapsed_ms != null) {
+ s.addMessage({ id: "", type: "tool_result", content: tc.preview || "", tool: tc.tool, status: tc.status || "ok", elapsed_ms: tc.elapsed_ms, timestamp: tc.timestamp + 1 });
+ }
+ }
+ }
+
+ // Clear streaming text (don't create thinking message)
+ s.clearStreaming();
+
+ // Add final answer
+ const runDir = String(d.run_dir || "");
+ const runId = runDir ? runDir.split(/[/\\]/).pop() : undefined;
+ const summary = String(d.summary || "");
+ if (summary) s.addMessage({ id: "", type: "answer", content: summary, timestamp: Date.now() });
+
+ // Only show RunCompleteCard if backtest produced metrics
+ if (runId) {
+ try {
+ const runData = await api.getRun(runId);
+ const hasMetrics = runData.metrics && Object.keys(runData.metrics).length > 0;
+ if (hasMetrics) {
+ s.addMessage({
+ id: "", type: "run_complete", content: "", runId,
+ metrics: runData.metrics,
+ equityCurve: runData.equity_curve?.map(e => ({ time: e.time, equity: e.equity })),
+ timestamp: Date.now(),
+ });
+ }
+ } catch { /* ignore */ }
+ }
+
+ // Reset
+ s.setStatus("idle");
+ useAgentStore.setState({ toolCalls: [] });
+ scrollToBottom();
+ },
+
+ "attempt.failed": (d) => {
+ touch();
+ act().clearStreaming();
+ act().addMessage({ id: "", type: "error", content: String(d.error || "Execution failed"), timestamp: Date.now() });
+ act().setStatus("idle");
+ scrollToBottom();
+ },
+
+ heartbeat: () => {},
+ reconnect: (d) => { act().setSseStatus("reconnecting", Number(d.attempt ?? 0)); },
+ });
+ }, [connect, disconnect, scrollToBottom]);
+
+ useEffect(() => {
+ const gen = ++genRef.current;
+ const { sessionId: curSid, messages: curMsgs, cacheSession, reset, getCachedSession, switchSession } = act();
+
+ if (urlSessionId && urlSessionId !== curSid) {
+ doDisconnect();
+ if (curSid && curMsgs.length > 0) cacheSession(curSid, curMsgs);
+
+ // Atomic switch: cache hit = instant, cache miss = show loading skeleton
+ const cached = getCachedSession(urlSessionId);
+ switchSession(urlSessionId, cached);
+ if (cached) {
+ setTimeout(() => forceScrollToBottom(), 50);
+ } else {
+ loadSessionMessages(urlSessionId, gen);
+ }
+ setupSSE(urlSessionId);
+ } else if (!urlSessionId && curSid) {
+ doDisconnect();
+ if (curMsgs.length > 0) cacheSession(curSid, curMsgs);
+ reset();
+ }
+ }, [urlSessionId, doDisconnect, loadSessionMessages, setupSSE, forceScrollToBottom]);
+
+ useEffect(() => () => doDisconnect(), [doDisconnect]);
+
+ /* Safety timeout: if streaming but no SSE event for 90s, reset to idle */
+ useEffect(() => {
+ if (status !== "streaming") return;
+ const timer = setInterval(() => {
+ if (lastEventRef.current && Date.now() - lastEventRef.current > 90_000 && act().status === "streaming") {
+ act().setStatus("idle");
+ toast.warning("Execution timed out, automatically stopped");
+ }
+ }, 10_000);
+ return () => clearInterval(timer);
+ }, [status]);
+
+ const runSwarm = async (presetName: string, presetTitle: string, prompt: string) => {
+ let sid = act().sessionId;
+ if (!sid) {
+ try {
+ const session = await api.createSession(`[Swarm] ${presetTitle}: ${prompt.slice(0, 30)}`);
+ sid = session.session_id;
+ act().setSessionId(sid);
+ setSearchParams({ session: sid }, { replace: true });
+ } catch { /* continue without session */ }
+ }
+
+ act().addMessage({ id: "", type: "user", content: `[${presetTitle}] ${prompt}`, timestamp: Date.now() });
+ act().setStatus("streaming");
+ // Add a placeholder swarm-progress message (rendered as SwarmDashboard)
+ act().addMessage({ id: "swarm-progress", type: "answer", content: "", timestamp: Date.now() });
+ forceScrollToBottom();
+ swarmCancelRef.current = false;
+
+ // Initialize dashboard state
+ const dash: SwarmDashboardProps = {
+ preset: presetTitle,
+ agents: {},
+ agentOrder: [],
+ currentLayer: 0,
+ finished: false,
+ finalStatus: "",
+ startTime: Date.now(),
+ completedSummaries: [],
+ finalReport: "",
+ };
+ swarmDashRef.current = dash;
+ setSwarmDash({ ...dash });
+
+ const ensureAgent = (agentId: string): SwarmAgent => {
+ if (!dash.agents[agentId]) {
+ dash.agents[agentId] = {
+ id: agentId, status: "waiting", tool: "", iters: 0,
+ startedAt: 0, elapsed: 0, lastText: "", summary: "",
+ };
+ dash.agentOrder.push(agentId);
+ }
+ return dash.agents[agentId];
+ };
+
+ const flush = () => { swarmDashRef.current = dash; setSwarmDash({ ...dash }); scrollToBottom(); };
+
+ try {
+ const result = await api.createSwarmRun(presetName, { goal: prompt });
+ const runId = result.id;
+ const sseUrl = `/swarm/runs/${runId}/events`;
+ const evtSource = new EventSource(sseUrl);
+ let sseFinished = false;
+
+ evtSource.addEventListener("layer_started", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ dash.currentLayer = d.data?.layer ?? 0;
+ flush();
+ } catch {}
+ });
+
+ evtSource.addEventListener("task_started", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ if (agentId) {
+ const a = ensureAgent(agentId);
+ a.status = "running";
+ a.startedAt = Date.now();
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("worker_text", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ const content = (d.data?.content || "").trim();
+ if (agentId && content) {
+ const a = ensureAgent(agentId);
+ const lastLine = content.split("\n").pop()?.trim() || "";
+ if (lastLine) a.lastText = lastLine.slice(0, 60);
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("tool_call", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ const tool = d.data?.tool || "";
+ if (agentId && tool) {
+ const a = ensureAgent(agentId);
+ a.tool = tool;
+ a.iters++;
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("tool_result", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ if (agentId) {
+ const a = ensureAgent(agentId);
+ const ok = (d.data?.status || "ok") === "ok";
+ a.tool = `${a.tool} ${ok ? "\u2713" : "\u2717"}`;
+ a.elapsed = a.startedAt ? Date.now() - a.startedAt : 0;
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("task_completed", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ if (agentId) {
+ const a = ensureAgent(agentId);
+ a.status = "done";
+ a.elapsed = a.startedAt ? Date.now() - a.startedAt : 0;
+ a.iters = d.data?.iterations ?? a.iters;
+ const summary = d.data?.summary || "";
+ if (summary) {
+ a.summary = summary;
+ dash.completedSummaries.push({ agentId, summary });
+ }
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("task_failed", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ if (agentId) {
+ const a = ensureAgent(agentId);
+ a.status = "failed";
+ a.elapsed = a.startedAt ? Date.now() - a.startedAt : 0;
+ const error = (d.data?.error || "").slice(0, 80);
+ dash.completedSummaries.push({ agentId, summary: `FAILED: ${error}` });
+ flush();
+ }
+ } catch {}
+ });
+
+ evtSource.addEventListener("task_retry", (e) => {
+ try {
+ const d = JSON.parse(e.data);
+ const agentId = d.agent_id || "";
+ if (agentId) { ensureAgent(agentId).status = "retry"; flush(); }
+ } catch {}
+ });
+
+ evtSource.addEventListener("done", () => { sseFinished = true; evtSource.close(); });
+ evtSource.onerror = () => { if (!sseFinished) evtSource.close(); };
+
+ // Poll for completion
+ for (let i = 0; i < 720; i++) {
+ await new Promise(r => setTimeout(r, 2500));
+ if (swarmCancelRef.current) { evtSource.close(); break; }
+ try {
+ const run = await api.getSwarmRun(runId);
+ const rs = String(run.status || "");
+ if (["completed", "failed", "cancelled"].includes(rs)) {
+ evtSource.close();
+ dash.finished = true;
+ dash.finalStatus = rs;
+ const report = String(run.final_report || "");
+ if (!report) {
+ const tasks = (run.tasks || []) as Array<{ agent_id: string; summary?: string }>;
+ dash.finalReport = tasks
+ .filter(t => t.summary && !t.summary.startsWith("Worker hit iteration limit"))
+ .map(t => `### ${t.agent_id}\n${t.summary}`)
+ .join("\n\n") || "Swarm completed.";
+ } else {
+ dash.finalReport = report;
+ }
+ flush();
+ act().setStatus("idle");
+ return;
+ }
+ } catch {}
+ }
+ evtSource.close();
+ act().addMessage({ id: "", type: "error", content: "Swarm timed out", timestamp: Date.now() });
+ act().setStatus("idle");
+ } catch (err) {
+ act().setStatus("error");
+ act().addMessage({ id: "", type: "error", content: `Swarm failed: ${err instanceof Error ? err.message : "Unknown"}`, timestamp: Date.now() });
+ }
+ };
+
+ const runPrompt = async (prompt: string) => {
+ if (!prompt.trim() || status === "streaming") return;
+
+ let finalPrompt = prompt;
+
+ // Swarm mode: let agent auto-select the right preset
+ if (swarmPreset) {
+ setSwarmPreset(null);
+ finalPrompt = `[Swarm Team Mode] Use the swarm tool to assemble the best specialist team for this task. Auto-select the most appropriate preset.\n\n${prompt}`;
+ }
+
+ if (attachment) {
+ finalPrompt = `[Uploaded file: ${attachment.filename}, path: ${attachment.filePath}]\n\n${finalPrompt}`;
+ setAttachment(null);
+ }
+ setInput("");
+ act().addMessage({ id: "", type: "user", content: finalPrompt, timestamp: Date.now() });
+ act().setStatus("streaming");
+ forceScrollToBottom();
+ inputRef.current?.focus();
+
+ try {
+ let sid = act().sessionId;
+ if (!sid) {
+ const session = await api.createSession(prompt.slice(0, 50));
+ sid = session.session_id;
+ act().setSessionId(sid);
+ setSearchParams({ session: sid }, { replace: true });
+ }
+ setupSSE(sid);
+ await api.sendMessage(sid, finalPrompt);
+ } catch {
+ act().setStatus("error");
+ toast.error(t.sendFailed);
+ act().addMessage({ id: "", type: "error", content: t.sendFailed, timestamp: Date.now() });
+ }
+ };
+
+ const handleSubmit = (e: FormEvent) => { e.preventDefault(); runPrompt(input.trim()); };
+
+ const handleCancel = async () => {
+ swarmCancelRef.current = true;
+ if (!sessionId) {
+ act().setStatus("idle");
+ return;
+ }
+ try {
+ await api.cancelSession(sessionId);
+ act().setStatus("idle");
+ act().clearStreaming();
+ useAgentStore.setState({ toolCalls: [] });
+ toast.info("Cancel request sent");
+ } catch {
+ toast.error("Cancel failed");
+ }
+ };
+
+ const handleRetry = useCallback((errorMsg: AgentMessage) => {
+ if (status === "streaming") return;
+ const msgs = act().messages;
+ const errorIdx = msgs.findIndex(m => m.id === errorMsg.id);
+ if (errorIdx === -1) return;
+ // Find the most recent user message before this error
+ let userContent: string | null = null;
+ for (let i = errorIdx - 1; i >= 0; i--) {
+ if (msgs[i].type === "user") {
+ userContent = msgs[i].content;
+ break;
+ }
+ }
+ if (!userContent) return;
+ runPrompt(userContent);
+ }, [status]);
+
+ const handleExport = () => {
+ if (messages.length === 0) return;
+ const lines: string[] = [`# Chat Export`, ``, `Export time: ${new Date().toLocaleString()}`, ``];
+ for (const msg of messages) {
+ const time = new Date(msg.timestamp).toLocaleString();
+ if (msg.type === "user") {
+ lines.push(`## User (${time})`, ``, msg.content, ``);
+ } else if (msg.type === "answer") {
+ lines.push(`## Assistant (${time})`, ``, msg.content, ``);
+ } else if (msg.type === "error") {
+ lines.push(`## Error (${time})`, ``, msg.content, ``);
+ } else if (msg.type === "tool_call") {
+ lines.push(`> Tool call: ${msg.tool || "unknown"}`, ``);
+ } else if (msg.type === "run_complete") {
+ lines.push(`> Backtest complete: ${msg.runId || ""}`, ``);
+ }
+ }
+ const blob = new Blob([lines.join("\n")], { type: "text/markdown;charset=utf-8" });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement("a");
+ a.href = url;
+ a.download = `chat_${new Date().toISOString().slice(0, 10)}.md`;
+ a.click();
+ URL.revokeObjectURL(url);
+ };
+
+ const handleFileSelect = useCallback(async (e: React.ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0];
+ if (!file) return;
+ e.target.value = "";
+ if (!file.name.toLowerCase().endsWith(".pdf")) {
+ toast.error("Only PDF files are supported");
+ return;
+ }
+ if (file.size > 50 * 1024 * 1024) {
+ toast.error("File size exceeds 50 MB limit");
+ return;
+ }
+ setUploading(true);
+ setShowUploadMenu(false);
+ try {
+ const result = await api.uploadFile(file);
+ setAttachment({ filename: result.filename, filePath: result.file_path });
+ toast.success(`Uploaded: ${result.filename}`);
+ } catch (err) {
+ toast.error(`Upload failed: ${err instanceof Error ? err.message : "Unknown error"}`);
+ } finally {
+ setUploading(false);
+ }
+ }, []);
+
+ useEffect(() => {
+ const handleClickOutside = (e: MouseEvent) => {
+ if (uploadMenuRef.current && !uploadMenuRef.current.contains(e.target as Node)) {
+ setShowUploadMenu(false);
+ }
+ };
+ if (showUploadMenu) {
+ document.addEventListener("mousedown", handleClickOutside);
+ return () => document.removeEventListener("mousedown", handleClickOutside);
+ }
+ }, [showUploadMenu]);
+
+ const groups = useMemo(() => groupMessages(messages), [messages]);
+
+ return (
+ <div className="flex flex-col flex-1 min-w-0 overflow-hidden h-full">
+ <div ref={listRef} className="flex-1 overflow-auto p-6 scroll-smooth relative">
+ <div className="max-w-3xl mx-auto space-y-4">
+ {sessionLoading && (
+ <div className="space-y-4 py-4">
+ {[1, 2, 3].map(i => (
+ <div key={i} className="flex gap-3 animate-pulse">
+ <div className="h-8 w-8 rounded-full bg-muted shrink-0" />
+ <div className="flex-1 space-y-2">
+ <div className="h-4 bg-muted rounded w-3/4" />
+ <div className="h-3 bg-muted/60 rounded w-1/2" />
+ </div>
+ </div>
+ ))}
+ </div>
+ )}
+ {!sessionLoading && messages.length === 0 && <WelcomeScreen onExample={runPrompt} />}
+
+ {groups.map((g, i) => {
+ if (g.kind === "timeline") {
+ return (
+ <ThinkingTimeline
+ key={g.msgs[0].id || g.msgs[0].timestamp}
+ messages={g.msgs}
+ isLatest={i === groups.length - 1 && status === "streaming"}
+ />
+ );
+ }
+ const msgIdx = messages.indexOf(g.msg);
+ // Render swarm-progress as SwarmDashboard
+ if (g.msg.id === "swarm-progress" && swarmDash) {
+ return (
+ <div key="swarm-dash" className="flex gap-3">
+ <AgentAvatar />
+ <div className="flex-1 min-w-0">
+ <SwarmDashboard {...swarmDash} />
+ </div>
+ </div>
+ );
+ }
+ return (
+ <div key={g.msg.id || g.msg.timestamp} data-msg-idx={msgIdx}>
+ <MessageBubble msg={g.msg} onRetry={g.msg.type === "error" ? handleRetry : undefined} />
+ </div>
+ );
+ })}
+
+ {/* Live streaming area: text + tool status */}
+ {(streamingText || (status === "streaming" && toolCalls.length > 0)) && (
+ <div className="flex gap-3">
+ <AgentAvatar />
+ <div className="flex-1 min-w-0 space-y-1.5">
+ {streamingText && (
+ <div className="prose prose-sm dark:prose-invert max-w-none leading-relaxed">
+ {streamingText}
+ <span className="inline-block w-0.5 h-4 bg-primary ml-0.5 animate-pulse align-middle" />
+ </div>
+ )}
+ {status === "streaming" && toolCalls.length > 0 && (() => {
+ const latest = toolCalls[toolCalls.length - 1];
+ const running = latest.status === "running";
+ return (
+ <div className="flex items-center gap-2 text-xs text-muted-foreground">
+ {running
+ ? <Loader2 className="h-3 w-3 animate-spin text-primary shrink-0" />
+ : <CheckCircle2 className="h-3 w-3 text-success/60 shrink-0" />}
+ <span>Step {toolCalls.length} ยท {latest.tool}</span>
+ </div>
+ );
+ })()}
+ </div>
+ </div>
+ )}
+
+ </div>
+
+ {/* Scroll to bottom button */}
+ {showScrollBtn && (
+ <button
+ onClick={forceScrollToBottom}
+ className="sticky bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-1 px-3 py-1.5 rounded-full bg-primary text-primary-foreground text-xs font-medium shadow-lg hover:opacity-90 transition-opacity z-10"
+ >
+ <ArrowDown className="h-3 w-3" /> New messages
+ </button>
+ )}
+ <ConversationTimeline messages={messages} containerRef={listRef} />
+ </div>
+
+ <form onSubmit={handleSubmit} className="border-t p-4 bg-background/80 backdrop-blur-sm">
+ <div className="max-w-3xl mx-auto space-y-2">
+ {/* Swarm preset badge */}
+ {swarmPreset && (
+ <div className="flex items-center gap-1">
+ <span className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-violet-500/10 text-violet-600 dark:text-violet-400 text-xs font-medium">
+ <Users className="h-3 w-3" />
+ {swarmPreset.title}
+ <button type="button" onClick={() => setSwarmPreset(null)} className="hover:text-destructive transition-colors">
+ <X className="h-3 w-3" />
+ </button>
+ </span>
+ </div>
+ )}
+ {/* Attachment badge */}
+ {attachment && (
+ <div className="flex items-center gap-1">
+ <span className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-primary/10 text-primary text-xs font-medium">
+ <Paperclip className="h-3 w-3" />
+ {attachment.filename}
+ <button type="button" onClick={() => setAttachment(null)} className="hover:text-destructive transition-colors">
+ <X className="h-3 w-3" />
+ </button>
+ </span>
+ </div>
+ )}
+ {/* Uploading indicator */}
+ {uploading && (
+ <div className="flex items-center gap-1.5 text-xs text-muted-foreground">
+ <Loader2 className="h-3 w-3 animate-spin" />
+ Uploading...
+ </div>
+ )}
+ <div className="flex gap-2 items-end">
+ {/* "+" menu: PDF upload + Swarm presets */}
+ <div className="relative" ref={uploadMenuRef}>
+ <button
+ type="button"
+ onClick={() => setShowUploadMenu(prev => !prev)}
+ disabled={status === "streaming" || uploading}
+ className="w-9 h-9 rounded-full border flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted transition-colors disabled:opacity-40 shrink-0"
+ title="More options"
+ >
+ <Plus className="h-4 w-4" />
+ </button>
+ {showUploadMenu && (
+ <div className="absolute bottom-full left-0 mb-2 w-52 rounded-xl border bg-background/95 backdrop-blur-sm shadow-lg py-1 z-50">
+ <button
+ type="button"
+ onClick={() => { fileInputRef.current?.click(); setShowUploadMenu(false); }}
+ className="w-full px-3 py-2 text-left text-sm hover:bg-muted transition-colors flex items-center gap-2"
+ >
+ <Paperclip className="h-4 w-4" />
+ Upload PDF document
+ </button>
+ <div className="border-t my-1" />
+ <button
+ type="button"
+ onClick={() => {
+ setShowUploadMenu(false);
+ setSwarmPreset({ name: "auto", title: "Agent Swarm" });
+ inputRef.current?.focus();
+ }}
+ className="w-full px-3 py-2 text-left text-sm hover:bg-muted transition-colors flex items-center gap-2"
+ >
+ <Users className="h-4 w-4" />
+ Agent Swarm
+ </button>
+ </div>
+ )}
+ </div>
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept=".pdf"
+ onChange={handleFileSelect}
+ className="hidden"
+ />
+ <textarea
+ ref={inputRef}
+ value={input}
+ rows={1}
+ onChange={(e) => setInput(e.target.value)}
+ onInput={(e) => {
+ const el = e.target as HTMLTextAreaElement;
+ el.style.height = "auto";
+ el.style.height = el.scrollHeight + "px";
+ }}
+ onKeyDown={(e) => {
+ if (e.key === "Enter" && !e.shiftKey) {
+ e.preventDefault();
+ runPrompt(input.trim());
+ }
+ }}
+ placeholder={t.prompt}
+ className="flex-1 px-4 py-2.5 rounded-xl border bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/40 transition-shadow resize-none max-h-32 overflow-y-auto"
+ disabled={status === "streaming"}
+ />
+ {messages.length > 0 && (
+ <button
+ type="button"
+ onClick={handleExport}
+ className="px-3 py-2.5 rounded-xl border text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
+ title="Export chat"
+ >
+ <Download className="h-4 w-4" />
+ </button>
+ )}
+ {status === "streaming" ? (
+ <button
+ type="button"
+ onClick={handleCancel}
+ className="px-4 py-2.5 rounded-xl bg-destructive text-destructive-foreground text-sm font-medium hover:opacity-90 transition-opacity"
+ title="Stop generation"
+ >
+ <Square className="h-4 w-4" />
+ </button>
+ ) : (
+ <button
+ type="submit"
+ disabled={!input.trim() && !attachment}
+ className="px-4 py-2.5 rounded-xl bg-primary text-primary-foreground text-sm font-medium disabled:opacity-40 hover:opacity-90 transition-opacity"
+ >
+ <Send className="h-4 w-4" />
+ </button>
+ )}
+ </div>
+ </div>
+ </form>
+ </div>
+ );
+}
diff --git a/frontend/src/pages/Compare.tsx b/frontend/src/pages/Compare.tsx
new file mode 100644
index 000000000..0aa2036c5
--- /dev/null
+++ b/frontend/src/pages/Compare.tsx
@@ -0,0 +1,320 @@
+import { useEffect, useRef, useState } from "react";
+import { GitCompare, ArrowRight } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { api, type RunListItem, type RunData, type EquityPoint } from "@/lib/api";
+import { useI18n } from "@/lib/i18n";
+import { echarts, CHART_GROUP, connectCharts } from "@/lib/echarts";
+import { getChartTheme } from "@/lib/chart-theme";
+import { useDarkMode } from "@/hooks/useDarkMode";
+
+interface MetricDef {
+ key: string;
+ label: string;
+ type: "pct" | "num" | "int" | "days";
+ higherIsBetter: boolean;
+}
+
+function fmt(v: unknown, type: "pct" | "num" | "int" | "days" = "num"): string {
+ const n = Number(v);
+ if (!Number.isFinite(n)) return "\u2014";
+ if (type === "pct") return (n * 100).toFixed(2) + "%";
+ if (type === "int") return n.toFixed(0);
+ if (type === "days") return n.toFixed(1);
+ return n.toFixed(3);
+}
+
+function diffClass(a: unknown, b: unknown, higherIsBetter: boolean): string {
+ const na = Number(a), nb = Number(b);
+ if (!Number.isFinite(na) || !Number.isFinite(nb)) return "";
+ const better = higherIsBetter ? nb > na : nb < na;
+ const worse = higherIsBetter ? nb < na : nb > na;
+ return better ? "text-green-600 dark:text-green-400" : worse ? "text-red-600 dark:text-red-400" : "";
+}
+
+function diffStr(a: unknown, b: unknown, type: "pct" | "num" | "int" | "days"): string {
+ const na = Number(a), nb = Number(b);
+ if (!Number.isFinite(na) || !Number.isFinite(nb)) return "\u2014";
+ const d = nb - na;
+ return (d > 0 ? "+" : "") + fmt(d, type);
+}
+
+function truncatePrompt(prompt: string | undefined, maxLen = 40): string {
+ if (!prompt) return "";
+ const trimmed = prompt.replace(/\n/g, " ").trim();
+ return trimmed.length > maxLen ? trimmed.slice(0, maxLen) + "\u2026" : trimmed;
+}
+
+function runLabel(r: RunListItem): string {
+ const summary = truncatePrompt(r.prompt);
+ if (summary) return summary;
+ return r.run_id;
+}
+
+const METRICS: MetricDef[] = [
+ { key: "total_return", label: "Total Return", type: "pct", higherIsBetter: true },
+ { key: "annualized_return", label: "Annualized Return", type: "pct", higherIsBetter: true },
+ { key: "sharpe", label: "Sharpe Ratio", type: "num", higherIsBetter: true },
+ { key: "calmar_ratio", label: "Calmar Ratio", type: "num", higherIsBetter: true },
+ { key: "sortino_ratio", label: "Sortino Ratio", type: "num", higherIsBetter: true },
+ { key: "max_drawdown", label: "Max Drawdown", type: "pct", higherIsBetter: false },
+ { key: "volatility", label: "Volatility", type: "pct", higherIsBetter: false },
+ { key: "win_rate", label: "Win Rate", type: "pct", higherIsBetter: true },
+ { key: "profit_factor", label: "Profit Factor", type: "num", higherIsBetter: true },
+ { key: "avg_win", label: "Avg Win", type: "pct", higherIsBetter: true },
+ { key: "avg_loss", label: "Avg Loss", type: "pct", higherIsBetter: false },
+ { key: "trade_count", label: "Trades", type: "int", higherIsBetter: true },
+ { key: "max_consecutive_losses", label: "Max Consec. Losses", type: "int", higherIsBetter: false },
+ { key: "exposure_time", label: "Exposure Time", type: "pct", higherIsBetter: true },
+ { key: "avg_holding_period", label: "Avg Holding Period", type: "days", higherIsBetter: false },
+];
+
+// Also accept backend aliases
+const METRIC_ALIASES: Record<string, string> = {
+ annual_return: "annualized_return",
+ calmar: "calmar_ratio",
+ sortino: "sortino_ratio",
+ profit_loss_ratio: "profit_factor",
+ max_consec_loss: "max_consecutive_losses",
+ max_consecutive_loss: "max_consecutive_losses",
+ avg_hold_days: "avg_holding_period",
+ avg_holding_days: "avg_holding_period",
+};
+
+function resolveMetric(metrics: Record<string, number> | null, key: string): number | undefined {
+ if (!metrics) return undefined;
+ if (metrics[key] !== undefined) return metrics[key];
+ // Check if any alias maps to this key
+ for (const [alias, canonical] of Object.entries(METRIC_ALIASES)) {
+ if (canonical === key && metrics[alias] !== undefined) return metrics[alias];
+ }
+ return undefined;
+}
+
+interface EquityChartOverlayProps {
+ leftCurve: EquityPoint[];
+ rightCurve: EquityPoint[];
+ leftLabel: string;
+ rightLabel: string;
+}
+
+function EquityChartOverlay({ leftCurve, rightCurve, leftLabel, rightLabel }: EquityChartOverlayProps) {
+ const ref = useRef<HTMLDivElement>(null);
+ const { dark } = useDarkMode();
+
+ useEffect(() => {
+ if (!ref.current) return;
+ if (leftCurve.length === 0 && rightCurve.length === 0) return;
+
+ const t = getChartTheme();
+ const chart = echarts.init(ref.current);
+ chart.group = CHART_GROUP;
+ connectCharts();
+
+ // Merge dates from both curves and sort
+ const dateSet = new Set<string>();
+ for (const p of leftCurve) dateSet.add(p.time);
+ for (const p of rightCurve) dateSet.add(p.time);
+ const dates = Array.from(dateSet).sort();
+
+ // Build lookup maps
+ const leftMap = new Map(leftCurve.map((p) => [p.time, Number(p.equity)]));
+ const rightMap = new Map(rightCurve.map((p) => [p.time, Number(p.equity)]));
+
+ const leftData = dates.map((d) => leftMap.get(d) ?? null);
+ const rightData = dates.map((d) => rightMap.get(d) ?? null);
+
+ const PRIMARY_COLOR = getComputedStyle(document.documentElement).getPropertyValue("--chart-compare-a").trim() || "#3b82f6";
+ const SECONDARY_COLOR = getComputedStyle(document.documentElement).getPropertyValue("--chart-compare-b").trim() || "#f59e0b";
+
+ chart.setOption({
+ backgroundColor: "transparent",
+ tooltip: {
+ trigger: "axis",
+ axisPointer: { type: "cross" },
+ backgroundColor: t.tooltipBg,
+ borderColor: t.tooltipBorder,
+ textStyle: { color: t.tooltipText, fontSize: 11 },
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ formatter: (params: any) => {
+ if (!Array.isArray(params) || !params.length) return "";
+ let html = `<b>${params[0].axisValue}</b>`;
+ for (const p of params) {
+ if (p.value == null) continue;
+ html += `<br/>${p.marker} ${p.seriesName}: <b>${Number(p.value).toLocaleString()}</b>`;
+ }
+ return html;
+ },
+ },
+ legend: {
+ data: [leftLabel, rightLabel],
+ textStyle: { color: t.textColor, fontSize: 11 },
+ right: 8,
+ top: 4,
+ },
+ grid: { left: 8, right: 8, top: 36, bottom: 40, containLabel: true },
+ xAxis: {
+ type: "category",
+ data: dates,
+ axisLine: { lineStyle: { color: t.axisColor } },
+ axisLabel: { color: t.textColor, fontSize: 10 },
+ },
+ yAxis: {
+ type: "value",
+ splitLine: { lineStyle: { color: t.gridColor } },
+ axisLabel: { color: t.textColor, fontSize: 10 },
+ },
+ dataZoom: [{ type: "inside" }, { type: "slider", height: 20, bottom: 4 }],
+ series: [
+ {
+ name: leftLabel,
+ type: "line",
+ data: leftData,
+ smooth: false,
+ symbol: "none",
+ lineStyle: { color: PRIMARY_COLOR, width: 2 },
+ connectNulls: true,
+ },
+ {
+ name: rightLabel,
+ type: "line",
+ data: rightData,
+ smooth: false,
+ symbol: "none",
+ lineStyle: { color: SECONDARY_COLOR, width: 2 },
+ connectNulls: true,
+ },
+ ],
+ });
+
+ const ro = new ResizeObserver(() => chart.resize());
+ ro.observe(ref.current!);
+ return () => { ro.disconnect(); chart.dispose(); };
+ }, [leftCurve, rightCurve, leftLabel, rightLabel, dark]);
+
+ if (leftCurve.length === 0 && rightCurve.length === 0) return null;
+
+ return <div ref={ref} style={{ height: 320 }} />;
+}
+
+export function Compare() {
+ const { t } = useI18n();
+ const [runs, setRuns] = useState<RunListItem[]>([]);
+ const [leftId, setLeftId] = useState("");
+ const [rightId, setRightId] = useState("");
+ const [leftData, setLeftData] = useState<Record<string, number> | null>(null);
+ const [rightData, setRightData] = useState<Record<string, number> | null>(null);
+ const [leftCurve, setLeftCurve] = useState<EquityPoint[]>([]);
+ const [rightCurve, setRightCurve] = useState<EquityPoint[]>([]);
+
+ useEffect(() => {
+ api.listRuns().then((items) => {
+ setRuns(Array.isArray(items) ? items : []);
+ if (items.length >= 2) { setLeftId(items[1].run_id); setRightId(items[0].run_id); }
+ else if (items.length === 1) { setLeftId(items[0].run_id); }
+ }).catch(() => {});
+ }, []);
+
+ useEffect(() => {
+ if (leftId) {
+ api.getRun(leftId).then((d: RunData) => {
+ setLeftData(d.metrics || null);
+ setLeftCurve(d.equity_curve || []);
+ }).catch(() => { setLeftData(null); setLeftCurve([]); });
+ } else {
+ setLeftData(null);
+ setLeftCurve([]);
+ }
+ }, [leftId]);
+
+ useEffect(() => {
+ if (rightId) {
+ api.getRun(rightId).then((d: RunData) => {
+ setRightData(d.metrics || null);
+ setRightCurve(d.equity_curve || []);
+ }).catch(() => { setRightData(null); setRightCurve([]); });
+ } else {
+ setRightData(null);
+ setRightCurve([]);
+ }
+ }, [rightId]);
+
+ const leftRun = runs.find((r) => r.run_id === leftId);
+ const rightRun = runs.find((r) => r.run_id === rightId);
+
+ return (
+ <div className="p-8 max-w-4xl space-y-6">
+ <h1 className="text-xl font-bold flex items-center gap-2">
+ <GitCompare className="h-5 w-5" /> {t.strategyComparison}
+ </h1>
+
+ {/* Selectors */}
+ <div className="flex gap-4 items-end">
+ <div className="flex-1">
+ <label className="text-xs text-muted-foreground block mb-1">{t.baseline}</label>
+ <select value={leftId} onChange={(e) => setLeftId(e.target.value)} className="w-full px-3 py-2 rounded-lg border bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/30" title={leftRun?.prompt || leftId}>
+ <option value="">{t.selectRun}</option>
+ {runs.map((r) => <option key={r.run_id} value={r.run_id}>{runLabel(r)} ({r.status})</option>)}
+ </select>
+ </div>
+ <ArrowRight className="h-5 w-5 text-muted-foreground mb-2 shrink-0" />
+ <div className="flex-1">
+ <label className="text-xs text-muted-foreground block mb-1">{t.compareTo}</label>
+ <select value={rightId} onChange={(e) => setRightId(e.target.value)} className="w-full px-3 py-2 rounded-lg border bg-background text-sm focus:outline-none focus:ring-2 focus:ring-primary/30" title={rightRun?.prompt || rightId}>
+ <option value="">{t.selectRun}</option>
+ {runs.map((r) => <option key={r.run_id} value={r.run_id}>{runLabel(r)} ({r.status})</option>)}
+ </select>
+ </div>
+ </div>
+
+ {/* Equity curve overlay */}
+ {(leftCurve.length > 0 || rightCurve.length > 0) && (
+ <div className="border rounded-xl p-4">
+ <h2 className="text-sm font-medium text-muted-foreground mb-2">{t.equityDrawdown}</h2>
+ <EquityChartOverlay
+ leftCurve={leftCurve}
+ rightCurve={rightCurve}
+ leftLabel={leftRun ? truncatePrompt(leftRun.prompt, 20) || t.baseline : t.baseline}
+ rightLabel={rightRun ? truncatePrompt(rightRun.prompt, 20) || t.compareTo : t.compareTo}
+ />
+ </div>
+ )}
+
+ {/* Metrics table */}
+ {(leftData || rightData) && (
+ <div className="border rounded-xl overflow-hidden">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="border-b bg-muted/40">
+ <th className="text-left px-4 py-2.5 text-muted-foreground font-medium">{t.metric}</th>
+ <th className="text-right px-4 py-2.5 text-muted-foreground font-medium">{t.baseline}</th>
+ <th className="text-right px-4 py-2.5 text-muted-foreground font-medium">{t.compareTo}</th>
+ <th className="text-right px-4 py-2.5 text-muted-foreground font-medium">{t.delta}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {METRICS.map(({ key, label, type, higherIsBetter }) => {
+ const lv = resolveMetric(leftData, key);
+ const rv = resolveMetric(rightData, key);
+ return (
+ <tr key={key} className="border-b last:border-0 hover:bg-muted/20">
+ <td className="px-4 py-2.5 font-medium">{label}</td>
+ <td className="px-4 py-2.5 text-right font-mono tabular-nums">{fmt(lv, type)}</td>
+ <td className="px-4 py-2.5 text-right font-mono tabular-nums">{fmt(rv, type)}</td>
+ <td className={cn("px-4 py-2.5 text-right font-mono tabular-nums font-semibold", diffClass(lv, rv, higherIsBetter))}>{diffStr(lv, rv, type)}</td>
+ </tr>
+ );
+ })}
+ </tbody>
+ </table>
+ </div>
+ )}
+
+ {!leftData && !rightData && (
+ <div className="text-center py-16 text-muted-foreground">
+ <GitCompare className="h-12 w-12 mx-auto mb-3 opacity-20" />
+ <p className="text-sm">{t.selectTwoRuns}</p>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx
new file mode 100644
index 000000000..b40cdcd3f
--- /dev/null
+++ b/frontend/src/pages/Home.tsx
@@ -0,0 +1,38 @@
+import { Link } from "react-router-dom";
+import { ArrowRight, Bot, BarChart3, Zap } from "lucide-react";
+import { useI18n } from "@/lib/i18n";
+
+export function Home() {
+ const { t } = useI18n();
+
+ const FEATURES = [
+ { icon: Bot, title: t.feat1, desc: t.feat1d },
+ { icon: BarChart3, title: t.feat2, desc: t.feat2d },
+ { icon: Zap, title: t.feat3, desc: t.feat3d },
+ ];
+
+ return (
+ <div className="flex flex-col items-center justify-center min-h-screen p-8">
+ <div className="max-w-2xl text-center space-y-6">
+ <h1 className="text-4xl font-bold tracking-tight">{t.heroTitle}</h1>
+ <p className="text-lg text-muted-foreground">{t.heroDesc}</p>
+ <Link
+ to="/agent"
+ className="inline-flex items-center gap-2 px-6 py-3 rounded-lg bg-primary text-primary-foreground font-medium hover:opacity-90 transition"
+ >
+ {t.startResearch} <ArrowRight className="h-4 w-4" />
+ </Link>
+ </div>
+
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-6 mt-16 max-w-4xl w-full">
+ {FEATURES.map(({ icon: Icon, title, desc }) => (
+ <div key={title} className="border rounded-lg p-6 space-y-3">
+ <Icon className="h-8 w-8 text-primary" />
+ <h3 className="font-semibold">{title}</h3>
+ <p className="text-sm text-muted-foreground">{desc}</p>
+ </div>
+ ))}
+ </div>
+ </div>
+ );
+}
diff --git a/frontend/src/pages/RunDetail.tsx b/frontend/src/pages/RunDetail.tsx
new file mode 100644
index 000000000..dca6d0d2e
--- /dev/null
+++ b/frontend/src/pages/RunDetail.tsx
@@ -0,0 +1,237 @@
+import { useEffect, useState } from "react";
+import { useParams, Link, useNavigate } from "react-router-dom";
+import { CheckCircle2, XCircle, BarChart3, List, Code2, ArrowLeft, Download } from "lucide-react";
+import { cn } from "@/lib/utils";
+import { useI18n } from "@/lib/i18n";
+import { api, type RunData, type BacktestMetrics } from "@/lib/api";
+import ReactMarkdown from "react-markdown";
+import rehypeHighlight from "rehype-highlight";
+import { CandlestickChart } from "@/components/charts/CandlestickChart";
+import { EquityChart } from "@/components/charts/EquityChart";
+import { MetricsCard } from "@/components/chat/MetricsCard";
+import { Skeleton, SkeletonMetrics, SkeletonChart } from "@/components/common/Skeleton";
+import { ErrorBoundary } from "@/components/common/ErrorBoundary";
+
+const rehypePlugins = [rehypeHighlight];
+
+type Tab = "chart" | "trades" | "code";
+
+function downloadCsv(filename: string, csvContent: string) {
+ const blob = new Blob(["\uFEFF" + csvContent], { type: "text/csv;charset=utf-8;" });
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement("a");
+ a.href = url;
+ a.download = filename;
+ a.click();
+ URL.revokeObjectURL(url);
+}
+
+function escapeCsvField(value: unknown): string {
+ const str = String(value ?? "");
+ if (str.includes(",") || str.includes('"') || str.includes("\n")) {
+ return `"${str.replace(/"/g, '""')}"`;
+ }
+ return str;
+}
+
+function buildTradesCsv(trades: Array<Record<string, string>>): string {
+ if (trades.length === 0) return "";
+ const keys = [...new Set(trades.flatMap(Object.keys))];
+ const header = keys.map(escapeCsvField).join(",");
+ const rows = trades.map(tr => keys.map(k => escapeCsvField(tr[k])).join(","));
+ return [header, ...rows].join("\n");
+}
+
+function buildMetricsCsv(metrics: BacktestMetrics): string {
+ const header = "metric,value";
+ const rows = Object.entries(metrics).map(([k, v]) => `${escapeCsvField(k)},${escapeCsvField(v)}`);
+ return [header, ...rows].join("\n");
+}
+
+export function RunDetail() {
+ const { runId } = useParams<{ runId: string }>();
+ const { t } = useI18n();
+ const navigate = useNavigate();
+ const [run, setRun] = useState<RunData | null>(null);
+ const [code, setCode] = useState<Record<string, string>>({});
+ const [tab, setTab] = useState<Tab>("chart");
+ const [loading, setLoading] = useState(true);
+
+ const TABS: { id: Tab; label: string; icon: typeof BarChart3 }[] = [
+ { id: "chart", label: t.chart, icon: BarChart3 },
+ { id: "trades", label: t.trades, icon: List },
+ { id: "code", label: t.code, icon: Code2 },
+ ];
+
+ useEffect(() => {
+ if (!runId) return;
+ Promise.all([
+ api.getRun(runId).catch(() => null),
+ api.getRunCode(runId).catch(() => ({})),
+ ]).then(([r, c]) => { setRun(r); setCode(c || {}); }).finally(() => setLoading(false));
+ }, [runId]);
+
+ if (loading) {
+ return (
+ <div className="p-8 space-y-4">
+ <Skeleton className="h-6 w-48" />
+ <SkeletonMetrics />
+ <SkeletonChart height={400} />
+ </div>
+ );
+ }
+ if (!run) return <div className="p-8 text-red-500">Run not found</div>;
+
+ const ok = run.status === "success";
+
+ return (
+ <div className="flex flex-col h-full">
+ {/* Header */}
+ <div className="border-b p-4 space-y-3">
+ <div className="flex items-center gap-3">
+ <button
+ onClick={() => navigate(-1)}
+ className="p-1 rounded-md hover:bg-muted transition-colors text-muted-foreground hover:text-foreground"
+ title="Go back"
+ >
+ <ArrowLeft className="h-4 w-4" />
+ </button>
+ {ok ? <CheckCircle2 className="h-5 w-5 text-success" /> : <XCircle className="h-5 w-5 text-danger" />}
+ <h1 className="font-mono text-sm font-medium">{runId}</h1>
+ {run.elapsed_seconds && <span className="text-xs text-muted-foreground">{run.elapsed_seconds.toFixed(1)}s</span>}
+ </div>
+ {run.prompt && <p className="text-sm text-muted-foreground">{run.prompt}</p>}
+ {run.metrics && <MetricsCard metrics={run.metrics as Record<string, number>} />}
+
+ <div className="flex items-center gap-1">
+ {TABS.map(({ id, label, icon: Icon }) => (
+ <button
+ key={id}
+ onClick={() => setTab(id)}
+ className={cn(
+ "flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm transition-colors",
+ tab === id ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted"
+ )}
+ >
+ <Icon className="h-3.5 w-3.5" /> {label}
+ </button>
+ ))}
+
+ <div className="ml-auto flex gap-1">
+ {run.trade_log && run.trade_log.length > 0 && (
+ <button
+ onClick={() => downloadCsv(`trades_${runId}.csv`, buildTradesCsv(run.trade_log!))}
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs text-muted-foreground hover:bg-muted transition-colors"
+ title={t.downloadTradesCsv}
+ >
+ <Download className="h-3.5 w-3.5" /> {t.downloadTradesCsv}
+ </button>
+ )}
+ {run.metrics && (
+ <button
+ onClick={() => downloadCsv(`metrics_${runId}.csv`, buildMetricsCsv(run.metrics!))}
+ className="flex items-center gap-1.5 px-3 py-1.5 rounded-md text-xs text-muted-foreground hover:bg-muted transition-colors"
+ title={t.downloadMetricsCsv}
+ >
+ <Download className="h-3.5 w-3.5" /> {t.downloadMetricsCsv}
+ </button>
+ )}
+ </div>
+ </div>
+ </div>
+
+ <div className="flex-1 overflow-auto">
+ <ErrorBoundary>
+ {tab === "chart" && <ChartTab run={run} />}
+ {tab === "trades" && <TradesTab run={run} />}
+ {tab === "code" && <CodeTab code={code} />}
+ </ErrorBoundary>
+ </div>
+ </div>
+ );
+}
+
+function ChartTab({ run }: { run: RunData }) {
+ const entries = run.price_series ? Object.entries(run.price_series) : [];
+ const hasEquity = run.equity_curve && run.equity_curve.length > 0;
+
+ if (entries.length === 0 && !hasEquity) {
+ return (
+ <div className="p-8 text-center text-muted-foreground space-y-2">
+ <p className="text-sm">No chart data available</p>
+ <p className="text-xs">The backtest engine may not have generated price data. Check the artifacts/ directory.</p>
+ </div>
+ );
+ }
+
+ return (
+ <div className="p-4 space-y-4">
+ {entries.map(([sym, bars]) => (
+ <div key={sym}>
+ <h3 className="text-sm font-medium mb-1">{sym}</h3>
+ <CandlestickChart data={bars} markers={run.trade_markers?.filter(m => m.code === sym)} indicators={run.indicator_series?.[sym]} height={500} />
+ </div>
+ ))}
+ {hasEquity && (
+ <div>
+ <h3 className="text-sm font-medium mb-1">Equity & Drawdown</h3>
+ <EquityChart data={run.equity_curve!} height={280} />
+ </div>
+ )}
+ </div>
+ );
+}
+
+function TradesTab({ run }: { run: RunData }) {
+ const trades = run.trade_log || [];
+ if (trades.length === 0) return <div className="p-8 text-muted-foreground text-sm">No trades recorded.</div>;
+ return (
+ <div className="p-4">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="border-b text-left text-muted-foreground">
+ <th className="py-2 pr-4">Time</th>
+ <th className="py-2 pr-4">Code</th>
+ <th className="py-2 pr-4">Side</th>
+ <th className="py-2 pr-4">Price</th>
+ <th className="py-2 pr-4">Qty</th>
+ <th className="py-2">Reason</th>
+ </tr>
+ </thead>
+ <tbody>
+ {trades.map((tr, i) => (
+ <tr key={i} className="border-b last:border-0 hover:bg-muted/20">
+ <td className="py-2 pr-4 font-mono text-xs">{tr.time || tr.timestamp}</td>
+ <td className="py-2 pr-4">{tr.code}</td>
+ <td className={cn("py-2 pr-4 font-medium", tr.side === "BUY" ? "text-success" : "text-danger")}>{tr.side}</td>
+ <td className="py-2 pr-4 tabular-nums">{tr.price}</td>
+ <td className="py-2 pr-4 tabular-nums">{tr.qty}</td>
+ <td className="py-2 text-muted-foreground">{tr.reason}</td>
+ </tr>
+ ))}
+ </tbody>
+ </table>
+ </div>
+ );
+}
+
+function CodeTab({ code }: { code: Record<string, string> }) {
+ const files = Object.entries(code);
+ const [active, setActive] = useState(files[0]?.[0] || "");
+ if (files.length === 0) return <div className="p-8 text-muted-foreground text-sm">No code files.</div>;
+ return (
+ <div className="flex flex-col h-full">
+ <div className="flex gap-1 p-2 border-b">
+ {files.map(([name]) => (
+ <button key={name} onClick={() => setActive(name)} className={cn("px-3 py-1 rounded text-xs font-mono", active === name ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted")}>{name}</button>
+ ))}
+ </div>
+ <div className="flex-1 overflow-auto p-3 text-[11px] leading-relaxed bg-muted/20 [&_pre]:m-0 [&_pre]:bg-transparent [&_code]:text-[11px]">
+ <ReactMarkdown rehypePlugins={rehypePlugins}>
+ {`\`\`\`python\n${code[active] || ""}\n\`\`\``}
+ </ReactMarkdown>
+ </div>
+ </div>
+ );
+}
+
diff --git a/frontend/src/router.tsx b/frontend/src/router.tsx
new file mode 100644
index 000000000..6d01966e3
--- /dev/null
+++ b/frontend/src/router.tsx
@@ -0,0 +1,18 @@
+import { createBrowserRouter } from "react-router-dom";
+import { Layout } from "@/components/layout/Layout";
+import { Home } from "@/pages/Home";
+import { Agent } from "@/pages/Agent";
+import { RunDetail } from "@/pages/RunDetail";
+import { Compare } from "@/pages/Compare";
+
+export const router = createBrowserRouter([
+ {
+ element: <Layout />,
+ children: [
+ { path: "/", element: <Home /> },
+ { path: "/agent", element: <Agent /> },
+ { path: "/runs/:runId", element: <RunDetail /> },
+ { path: "/compare", element: <Compare /> },
+ ],
+ },
+]);
diff --git a/frontend/src/stores/agent.ts b/frontend/src/stores/agent.ts
new file mode 100644
index 000000000..bb2c3c227
--- /dev/null
+++ b/frontend/src/stores/agent.ts
@@ -0,0 +1,107 @@
+import { create } from "zustand";
+import type { AgentMessage, ToolCallEntry } from "@/types/agent";
+
+const SESSION_CACHE_MAX = 5;
+const _sessionCache = new Map<string, AgentMessage[]>();
+
+interface AgentState {
+ messages: AgentMessage[];
+ sessionId: string | null;
+ status: "idle" | "streaming" | "error";
+ streamingText: string;
+
+ toolCalls: ToolCallEntry[];
+
+ sseStatus: "disconnected" | "connected" | "reconnecting";
+ sseRetryAttempt: number;
+
+ addMessage: (msg: Omit<AgentMessage, "id"> & { id?: string }) => void;
+ appendDelta: (delta: string) => void;
+ setStatus: (s: AgentState["status"]) => void;
+ setSessionId: (id: string | null) => void;
+ loadHistory: (msgs: AgentMessage[]) => void;
+
+ addToolCall: (entry: ToolCallEntry) => void;
+ updateToolCall: (id: string, update: Partial<ToolCallEntry>) => void;
+
+ cacheSession: (sid: string, msgs: AgentMessage[]) => void;
+ getCachedSession: (sid: string) => AgentMessage[] | undefined;
+
+ clearStreaming: () => void;
+
+ setSseStatus: (s: AgentState["sseStatus"], retryAttempt?: number) => void;
+
+ switchSession: (sid: string, msgs?: AgentMessage[]) => void;
+ sessionLoading: boolean;
+ setSessionLoading: (v: boolean) => void;
+
+ reset: () => void;
+}
+
+let _id = 0;
+const nextId = () => String(++_id);
+
+export const useAgentStore = create<AgentState>((set) => ({
+ messages: [],
+ sessionId: null,
+ status: "idle",
+ streamingText: "",
+ toolCalls: [],
+ sseStatus: "disconnected",
+ sseRetryAttempt: 0,
+ sessionLoading: false,
+
+ addMessage: (msg) =>
+ set((s) => ({ messages: [...s.messages, { ...msg, id: msg.id || nextId() } as AgentMessage] })),
+
+ appendDelta: (delta) =>
+ set((s) => ({ streamingText: s.streamingText + delta })),
+
+ setStatus: (status) => set({ status }),
+ setSessionId: (sessionId) => set({ sessionId }),
+ loadHistory: (msgs) => set({ messages: msgs }),
+
+ addToolCall: (entry) =>
+ set((s) => ({ toolCalls: [...s.toolCalls, entry] })),
+ updateToolCall: (id, update) =>
+ set((s) => ({
+ toolCalls: s.toolCalls.map((tc) => tc.id === id ? { ...tc, ...update } : tc),
+ })),
+
+ cacheSession: (sid, msgs) => {
+ _sessionCache.delete(sid);
+ _sessionCache.set(sid, msgs);
+ if (_sessionCache.size > SESSION_CACHE_MAX) {
+ const oldest = _sessionCache.keys().next().value;
+ if (oldest) _sessionCache.delete(oldest);
+ }
+ },
+ getCachedSession: (sid) => _sessionCache.get(sid),
+
+ clearStreaming: () => set({ streamingText: "" }),
+
+ setSseStatus: (sseStatus, retryAttempt) =>
+ set({ sseStatus, sseRetryAttempt: retryAttempt ?? 0 }),
+
+ switchSession: (sid, msgs) => {
+ _id = 0;
+ set({
+ sessionId: sid,
+ messages: msgs || [],
+ status: "idle",
+ streamingText: "",
+ toolCalls: [],
+ sessionLoading: !msgs,
+ });
+ },
+
+ setSessionLoading: (sessionLoading) => set({ sessionLoading }),
+
+ reset: () => {
+ _id = 0;
+ set({
+ messages: [], status: "idle", streamingText: "",
+ sessionId: null, toolCalls: [], sessionLoading: false,
+ });
+ },
+}));
diff --git a/frontend/src/types/agent.ts b/frontend/src/types/agent.ts
new file mode 100644
index 000000000..465180f95
--- /dev/null
+++ b/frontend/src/types/agent.ts
@@ -0,0 +1,31 @@
+/** Chat message types */
+export type AgentMessageType =
+ | "user" | "thinking" | "tool_call" | "tool_result"
+ | "answer" | "error" | "run_complete" | "compact";
+
+export interface AgentMessage {
+ id: string;
+ type: AgentMessageType;
+ content: string;
+ tool?: string;
+ args?: Record<string, string>;
+ status?: "running" | "ok" | "error";
+ elapsed_ms?: number;
+ timestamp: number;
+ runId?: string;
+ metrics?: Record<string, number>;
+ equityCurve?: Array<{ time: string; equity: number | string }>;
+ /** Phase label for thinking entries */
+ stage?: string;
+}
+
+/** Tool call tracking entry */
+export interface ToolCallEntry {
+ id: string;
+ tool: string;
+ arguments: Record<string, string>;
+ status: "running" | "ok" | "error";
+ preview?: string;
+ elapsed_ms?: number;
+ timestamp: number;
+}
diff --git a/frontend/tailwind.config.ts b/frontend/tailwind.config.ts
new file mode 100644
index 000000000..67a474dc1
--- /dev/null
+++ b/frontend/tailwind.config.ts
@@ -0,0 +1,29 @@
+import type { Config } from "tailwindcss";
+
+export default {
+ darkMode: "class",
+ content: ["./index.html", "./src/**/*.{ts,tsx}"],
+ theme: {
+ extend: {
+ colors: {
+ border: "hsl(var(--border))",
+ background: "hsl(var(--background))",
+ foreground: "hsl(var(--foreground))",
+ muted: { DEFAULT: "hsl(var(--muted))", foreground: "hsl(var(--muted-foreground))" },
+ primary: { DEFAULT: "hsl(var(--primary))", foreground: "hsl(var(--primary-foreground))" },
+ destructive: { DEFAULT: "hsl(var(--destructive))", foreground: "hsl(var(--destructive-foreground))" },
+ card: { DEFAULT: "hsl(var(--card))", foreground: "hsl(var(--card-foreground))" },
+ success: "hsl(var(--success))",
+ danger: "hsl(var(--danger))",
+ warning: "hsl(var(--warning))",
+ info: "hsl(var(--info))",
+ },
+ fontFamily: {
+ sans: ["Inter", "system-ui", "sans-serif"],
+ mono: ["JetBrains Mono", "ui-monospace", "monospace"],
+ },
+ borderRadius: { lg: "var(--radius)", md: "calc(var(--radius) - 2px)", sm: "calc(var(--radius) - 4px)" },
+ },
+ },
+ plugins: [require("@tailwindcss/typography")],
+} satisfies Config;
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 000000000..3f4424f9d
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,22 @@
+{
+ "compilerOptions": {
+ "target": "ES2020",
+ "useDefineForClassFields": true,
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "skipLibCheck": true,
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "isolatedModules": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+ "strict": true,
+ "noUnusedLocals": false,
+ "noUnusedParameters": false,
+ "noFallthroughCasesInSwitch": true,
+ "baseUrl": ".",
+ "paths": { "@/*": ["./src/*"] }
+ },
+ "include": ["src"]
+}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
new file mode 100644
index 000000000..1a19726b4
--- /dev/null
+++ b/frontend/vite.config.ts
@@ -0,0 +1,35 @@
+import { defineConfig } from "vite";
+import react from "@vitejs/plugin-react";
+import path from "path";
+
+export default defineConfig({
+ plugins: [react()],
+ resolve: {
+ alias: { "@": path.resolve(__dirname, "./src") },
+ },
+ server: {
+ port: 5899,
+ proxy: {
+ "/run": { target: "http://localhost:8899", changeOrigin: true },
+ "/runs": { target: "http://localhost:8899", changeOrigin: true },
+ "/health": { target: "http://localhost:8899", changeOrigin: true },
+ "/sessions": { target: "http://localhost:8899", changeOrigin: true },
+ "/skills": { target: "http://localhost:8899", changeOrigin: true },
+ "/swarm/presets": { target: "http://localhost:8899", changeOrigin: true },
+ "/swarm/runs": { target: "http://localhost:8899", changeOrigin: true },
+ "/upload": { target: "http://localhost:8899", changeOrigin: true },
+ "/api": { target: "http://localhost:8899", changeOrigin: true },
+ "/system": { target: "http://localhost:8899", changeOrigin: true },
+ },
+ },
+ build: {
+ rollupOptions: {
+ output: {
+ manualChunks: {
+ "vendor-react": ["react", "react-dom", "react-router-dom"],
+ "vendor-charts": ["echarts"],
+ },
+ },
+ },
+ },
+});
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000000000..c66075730
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,82 @@
+[project]
+name = "vibe-trading-ai"
+version = "0.1.3"
+description = "Natural-language finance research AI agent with backtesting"
+requires-python = ">=3.11"
+license = "MIT"
+readme = "README.md"
+authors = [
+ {name = "HKUDS", email = "[email protected]"},
+]
+keywords = ["finance", "trading", "backtesting", "agent", "swarm", "quantitative"]
+classifiers = [
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Financial and Insurance Industry",
+ "Programming Language :: Python :: 3.11",
+ "Programming Language :: Python :: 3.12",
+ "Topic :: Office/Business :: Financial :: Investment",
+]
+dependencies = [
+ "rich>=13.0.0",
+ "pyyaml>=6.0.0",
+ "langchain>=0.1.0",
+ "langchain-core>=0.1.0",
+ "langchain-openai>=0.0.5",
+ "langgraph>=0.2.50,<0.3",
+ "langgraph-checkpoint>=2.0.0",
+ "python-dotenv>=1.0.0",
+ "pandas>=2.0.0",
+ "numpy>=1.24.0",
+ "scipy>=1.10.0",
+ "duckdb>=1.2.0",
+ "scikit-learn>=1.3.0",
+ "joblib>=1.3.0",
+ "smartmoneyconcepts>=0.0.1",
+ "pyharmonics>=1.5.0",
+ "tushare>=1.2.89",
+ "requests>=2.31.0",
+ "yfinance>=0.2.30",
+ "fastapi>=0.104.0",
+ "uvicorn[standard]>=0.24.0",
+ "pydantic>=2.0.0",
+ "python-multipart>=0.0.6",
+ "sse-starlette>=1.6.0",
+ "fastmcp>=2.0.0",
+]
+
+[project.urls]
+Homepage = "https://github.com/HKUDS/Vibe-Trading"
+Repository = "https://github.com/HKUDS/Vibe-Trading"
+Issues = "https://github.com/HKUDS/Vibe-Trading/issues"
+
+[project.scripts]
+vibe-trading = "cli:main"
+vibe-trading-mcp = "mcp_server:main"
+
+[tool.setuptools]
+package-dir = {"" = "agent"}
+py-modules = ["cli", "run_agent", "api_server", "mcp_server"]
+
+[tool.setuptools.packages.find]
+where = ["agent"]
+include = ["src*", "backtest*"]
+
+[tool.setuptools.package-data]
+"src" = [
+ "skills/**/*.md",
+ "skills/**/*.yaml",
+ "skills/**/*.json",
+]
+"backtest" = ["*.py"]
+
+[tool.setuptools.data-files]
+"config/swarm" = ["agent/config/swarm/*.yaml"]
+
+[tool.ruff]
+target-version = "py311"
+line-length = 120
+src = ["agent"]
+
+[tool.ruff.lint]
+select = ["E", "F", "W"]
+ignore = ["E501"]