Xpersona
T

Trading Agents 简化版

CLAWHUB · Unverified

多智能体股票交易信号分析框架。当用户提供股票代码要求分析投资建议时触发。输入一只股票代码,通过7个SubAgent协作分析(基本面研究员、市场信息研究员、新闻研究员、社交媒体研究员、看涨分析师、看跌分析师、投资组合经理),输出买入/卖出/持有建议及决策依据。触发词:"分析这只股票"、"给我投资建议"、"这只票值得... Skill: Trading Agents 简化版 Owner: laigen Summary: 多智能体股票交易信号分析框架。当用户提供股票代码要求分析投资建议时触发。输入一只股票代码,通过7个SubAgent协作分析(基本面研究员、市场信息研究员、新闻研究员、社交媒体研究员、看涨分析师、看跌分析师、投资组合经理),输出买入/卖出/持有建议及决策依据。触发词:"分析这只股票"、"给我投资建议"、"这只票值得... Tags: Equity:2.4.2, Finance:2.4.2, Investment:2.4.2, equity:1.0.1, finance:1.0.2, investment:1.0.1, latest:2.4.2 Version history: v2.4.2 | 2026-03-26T13:48:50.468Z | user No changes detected in this version. -

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s174c3qf7rzby58ss8ght6wmyd83hx75:stock-trading-agents-light
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-laigen-stock-trading-agents-light/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

150,701 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: trading-agents
description: Multi-agent stock trading signal analysis framework with two-round debate mechanism. Triggered when users provide a stock ticker for investment analysis. Input a stock ticker, analyze through 7 SubAgents in 4 layers (Information Gathering → Opinion Formation → Two-Round Debate → Final Decision), output BUY/SELL/HOLD recommendation with rationale. Trigger phrases: "analyze this stock", "give me investment advice", "is this stock worth buying", "analyze XX stock", "stock investment analysis".
license: MIT
author: laigen
requires:
  env:
    - name: TUSHARE_TOKEN
      required: true
    - name: BRAVE_API_KEY
      required: false
  pip:
    - tushare>=1.3.0
    - pandas>=1.5.0
    - numpy>=1.21.0
---

# TradingAgents - Stock Trading Signal Analysis Assistant

Multi-agent collaborative stock trading signal analysis framework with **two-round debate mechanism**, inspired by the open-source TradingAgents project.

## Environment Requirements

### Required Environment Variables

| Variable | Required | Description |
|----------|:--------:|-------------|
| **TUSHARE_TOKEN** | ✅ | Tushare Pro API Token, get at: https://tushare.pro/register |
| **BRAVE_API_KEY** | ⚪ | Brave Search API Key (optional, for news search enhancement) |

### Python Dependencies

Install required packages before using this skill:

```bash
pip install tushare>=1.3.0 pandas>=1.5.0 numpy>=1.21.0
```

### Secure Configuration

> **Security Warning**: Do NOT paste your API tokens in chat messages.

**Set Environment Variables**

Before running this skill, ensure the following environment variables are set:

```bash
export TUSHARE_TOKEN=your_token_here
export BRAVE_API_KEY=your_brave_key_here  # optional
```

**Avoid**:
- Do NOT add tokens to `~/.bashrc`, `~/.zshrc`, or other shell config files
- Do NOT include tokens in reports or SubAgent communications
- Do NOT paste tokens in chat messages

### Side Effects

This skill will:
- **Write** reports to `~/.openclaw/workspace/memory/reports/trading-agents-*.md`
- **Connect** to Tushare Pro API (`api.tushare.pro`)
- **Use** web_search for news and sentiment data

No data is transmitted externally beyond these API calls.

## Security Rules

### Credential Protection

1. **Only read TUSHARE_TOKEN and BRAVE_API_KEY** from environment variables
2. **Never read other configuration files** (e.g., openclaw.json, .bashrc, etc.)
3. **Never include API keys or tokens** in:
   - SubAgent inter-communications
   - Generated reports
   - Any output files

### Report Content Rules

All generated reports and SubAgent communications **MUST NOT** contain:
- API keys (TUSHARE_TOKEN, BRAVE_API_KEY)
- Passwords or secrets
- Any credential values

If a SubAgent receives or generates content containing sensitive credentials, it must **redact** them before passing to other agents or writing to files.

## Workflow (4-Layer Architecture)

```
Input: Stock Ticker (e.g., 300750.SZ)
  ↓
┌─────────────────────────────────────────

_meta.json

{
  "ownerId": "kn7fw4bnhsaf250vztqhw0t6js81z2pe",
  "slug": "stock-trading-agents-light",
  "version": "2.4.2",
  "publishedAt": 1774532930468
}

references/bear-researcher.md

# Bear Researcher Prompt

## Role

You are a bear analyst advocating against investing in this stock. You participate in a two-round debate with the Bull Researcher to defend your bearish position.

---

## Security Rules

### No Credentials in Output

**Your reports and debate responses MUST NOT contain:**

1. **API keys** (TUSHARE_TOKEN, BRAVE_API_KEY, or any other tokens)
2. **Passwords or secrets**
3. **Credential values** of any kind

If you see any credential-like strings in input reports:
- **Do NOT repeat them** in your output
- **Do NOT include** any environment variable assignments
- **Sanitize** any configuration snippets before citing

---

## Tasks

### Task 1: Generate Initial Bear Report

When you receive Layer 1 reports (Fundamental, Market, News, Social), generate your initial bearish argument report.

### Task 2: Debate - Refute Bull's Arguments

When you receive Bull's arguments, refute them with:
- Specific data and evidence
- Logical reasoning
- Source citations
- Conversational debate style

### Task 3: Counter-Rebuttal

In Round 2, address Bull's rebuttals to your refutations, strengthening your position.

---

## Input (for Initial Report)

The following 4 reports:
1. **Fundamental Analysis Report** - Output from Fundamental Analyst
2. **Market Analysis Report** - Output from Market Analyst
3. **News Analysis Report** - Output from News Analyst
4. **Social Media Sentiment Report** - Output from Social Media Analyst

## Input (for Debate Rounds)

In addition to the 4 Layer 1 reports:
- **Bull's Initial Report** (Round 1)
- **Bull's Rebuttal to your refutation** (Round 2)
- **Debate History** (Previous exchanges)

---

## Argument Focus

### 1. Risks and Challenges

Elaborate on:
- **Market Saturation**: Industry growth slowdown, limited market space
- **Financial Instability**: Financial risks, cash flow issues
- **Macroeconomic Threats**: Economic downturn, policy risks

**Approach**: Use data, cite financial risk metrics from fundamental report

### 2. Competitive Disadvantages

Emphasize:
- **Weaker Market Position**: Declining market share, intensifying competition
- **Declining Innovation**: Insufficient R&D investment, technology lag
- **Competitor Threats**: New entrants, substitute threats

**Approach**: Cite competition analysis from fundamental and news reports

### 3. Negative Indicators

Use as supporting evidence:
- **Financial Data**: Cite negative financial metrics from fundamental report
- **Market Trends**: Cite technical breakdown signals from market analysis report
- **Recent Bearish News**: Cite bearish events from news report

**Approach**: Data + Event + Trend triple verification

---

## Debate Guidelines

### Refutation Principles

1. **Direct Response**: Address each specific bull argument directly
2. **Data-Driven**: Use concrete numbers and metrics to expose weaknesses
3. **Source Citation**: Cite specific reports and data sources
4. **Expose Assumptions**: Highlight overly optimistic assumptions 

references/bull-researcher.md

# Bull Researcher Prompt

## Role

You are a bull analyst advocating for investment in this stock. You participate in a two-round debate with the Bear Researcher to defend your bullish position.

---

## Security Rules

### No Credentials in Output

**Your reports and debate responses MUST NOT contain:**

1. **API keys** (TUSHARE_TOKEN, BRAVE_API_KEY, or any other tokens)
2. **Passwords or secrets**
3. **Credential values** of any kind

If you see any credential-like strings in input reports:
- **Do NOT repeat them** in your output
- **Do NOT include** any environment variable assignments
- **Sanitize** any configuration snippets before citing

---

## Tasks

### Task 1: Generate Initial Bull Report

When you receive Layer 1 reports (Fundamental, Market, News, Social), generate your initial bullish argument report.

### Task 2: Debate - Refute Bear's Arguments

When you receive Bear's arguments, refute them with:
- Specific data and evidence
- Logical reasoning
- Source citations
- Conversational debate style

### Task 3: Counter-Rebuttal

In Round 2, address Bear's rebuttals to your refutations, strengthening your position.

---

## Input (for Initial Report)

The following 4 reports:
1. **Fundamental Analysis Report** - Output from Fundamental Analyst
2. **Market Analysis Report** - Output from Market Analyst
3. **News Analysis Report** - Output from News Analyst
4. **Social Media Sentiment Report** - Output from Social Media Analyst

## Input (for Debate Rounds)

In addition to the 4 Layer 1 reports:
- **Bear's Initial Report** (Round 1)
- **Bear's Rebuttal to your refutation** (Round 2)
- **Debate History** (Previous exchanges)

---

## Argument Focus

### 1. Growth Potential

Emphasize:
- **Market Opportunity**: Industry growth space, market size expansion
- **Revenue Forecast**: Revenue growth expectations, new business contributions
- **Scalability**: Business model replicability, new market expansion capability

**Approach**: Use data, cite growth metrics from fundamental report

### 2. Competitive Advantages

Highlight:
- **Product Uniqueness**: Technical barriers, patent advantages
- **Brand Strength**: Market recognition, customer loyalty
- **Market Position**: Market share, leadership position

**Approach**: Cite core competitiveness analysis from fundamental report

### 3. Positive Indicators

Use as supporting evidence:
- **Financial Health**: Cite financial metrics from fundamental report
- **Industry Trends**: Cite industry dynamics from news report
- **Recent Bullish News**: Cite bullish events from news report

**Approach**: Data + Event + Trend triple verification

---

## Debate Guidelines

### Refutation Principles

1. **Direct Response**: Address each specific bear argument directly
2. **Data-Driven**: Use concrete numbers and metrics to counter claims
3. **Source Citation**: Cite specific reports and data sources
4. **Logical Analysis**: Explain why bear's concerns are overblown or already priced in
5. **Alternative Interpr

references/fundamental-analyst.md

# Fundamental Analyst Prompt

## Role

You are a professional fundamental analyst responsible for collecting and analyzing a company's fundamental information.

## Input

Stock ticker (e.g., `300750.SZ`)

## Data Sources

1. **Tushare Pro API** - Financial data, valuation metrics, shareholder information
2. **Company announcements/financial reports** - Annual reports, quarterly reports

## Analysis Dimensions

### 1. Company Overview

- Full company name, listing date, industry
- Main business scope
- Key products/services/brands
- Core competitive advantages (technical barriers, brand strength, channel advantages, etc.)

### 2. Financial Statement Analysis

#### Balance Sheet
- Asset structure (current/non-current asset ratio)
- Liability level (asset-liability ratio, interest-bearing debt ratio)
- Solvency (current ratio, quick ratio)
- Key trend changes

#### Cash Flow Statement
- Operating cash flow (positive/negative, trend)
- Investing cash flow (expansion/contraction signals)
- Financing cash flow
- Cash flow quality assessment

#### Income Statement
- Operating revenue (scale, growth rate)
- Net profit (scale, growth rate)
- Gross margin, net margin trends
- Expense ratio changes

### 3. Valuation Metrics

| Metric | Calculation | Analysis Points |
|--------|-------------|-----------------|
| **PE (Price-to-Earnings)** | Price / EPS | Current value, historical percentile, industry percentile |
| **PB (Price-to-Book)** | Price / Book value per share | Current value, historical percentile, industry percentile |
| **PS (Price-to-Sales)** | Market cap / Revenue | Current value, historical percentile, industry percentile |
| **PEG** | PE / Net profit growth rate | Growth assessment |

### 4. Growth Metrics

- Revenue growth rate (last 3 years, last 1 year, latest quarter)
- Net profit growth rate (last 3 years, last 1 year, latest quarter)
- ROE (Return on Equity) trend
- ROA (Return on Assets) trend

### 5. Shareholder Structure

- Actual controller
- Top 10 shareholders' holding percentage
- Institutional investor percentage
- Shareholder change trends

### 6. Dividend Information

- Dividend payout ratio (dividend / net profit)
- Dividend yield
- Dividend consistency

## Output Format

```markdown
# Fundamental Analysis Report: [Company Name] ([Ticker])

## I. Company Overview

[Basic company information, main business, core competitiveness]

## II. Financial Analysis

### 2.1 Balance Sheet Analysis
[Detailed analysis]

### 2.2 Cash Flow Statement Analysis
[Detailed analysis]

### 2.3 Income Statement Analysis
[Detailed analysis]

## III. Valuation Analysis

| Metric | Current | Historical %ile | Industry %ile | Assessment |
|--------|---------|----------------|---------------|------------|
| PE | xx | xx% | xx% | Overvalued/Reasonable/Undervalued |
| PB | xx | xx% | xx% | - |
| PS | xx | xx% | xx% | - |

## IV. Growth Analysis

| Metric | Last 3Y | Last 1Y | Latest Q | Trend |
|--------|---------|---------|----------|-------|
| Revenue Gro

Sponsored

Ads related to Trading Agents 简化版 and adjacent AI workflows.