trading-agents

Generates multi-agent stock research reports from QuantMind local data with PDF export.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill trading-agents-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trading-agents
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/trading-agents
Command: npx skills add https://github.com/qusong0627/QuantMind --skill trading-agents-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pandas, and includes references (resource) components.

What problem does it solve? Manually researching a stock requires pulling features, risk scores, model inference signals, and news from many sources, then synthesizing them into a coherent report. This Skill automates that entire pipeline: it pulls QuantMind local data (371-dimension features, 6-dimension risk scores, model inference history, K-lines, RSS news), runs a bull-versus-bear sub-agent debate, and produces a formatted Markdown and PDF report that appears on the platform's stock reports page. ## Core Features & Use Cases - Local data aggregation: Fetches features, risk scorecards, multi-model inference scores, K-lines, market rankings, and sentiment-tagged news via the QuantMind API. - Bull/bear multi-agent debate: Organizes at least two opposing sub-agents that argue with concrete data points, then adjudicates by evidence strength. - Report generation and export: Assembles a standardized Markdown report and converts it to a Chinese-font-embedded PDF saved under /data/reports/trading_agents/. - Use Case: Ask the agent to deeply analyze stock 600519; it pulls all local data, debates bull and bear cases, cross-validates model inference scores, and delivers a rated PDF report visible in the stock reports page. ## Quick Start Ask the agent to run a deep investment analysis on stock 600519 and export the report as a PDF to the stock reports page.

Frequently Asked Questions about trading-agents

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a stock research report with multi-agent debate?

Authenticate against the QuantMind API, pull the stock's features, risk score, inference history, K-line, and news endpoints, then run at least two opposing bull and bear sub-agents citing concrete data. Assemble the standardized Markdown template and convert it to PDF with md_to_pdf_report.py.

What data sources does the trading-agents analysis use?

It uses QuantMind local APIs: 371-dimension research features, a 6-dimension risk scorecard, model inference score history across multiple models, 120-day K-lines, daily market selection rankings, and RSS news articles filtered by ticker, industry, sentiment, and event tags.

Can any LLM run this stock analysis skill?

Yes, the autonomous mode works with any LLM such as deepseek, qwen, glm, openai, or minimax because the agent itself fetches data and assembles the report. The optional container TradingAgents pipeline requires configured LLM API keys inside the container.

Why is the generated PDF missing Chinese characters?

Chinese rendering fails when no embeddable font is found. Place WQY MicroHei and ZenHei TTF files in docker/training/fonts/ so they bind-mount into the container; otherwise the script falls back to STSong-Light CID fonts that some viewers cannot render.

Why does the report not appear on the stock reports page?

The directory name must exactly match the backend market names such as A股市场 with no space, under /data/reports/trading_agents/{market}/{stock name}/. Verify with the files/list API and check that the filename follows the {name}{code}_{date}_投研分析报告 convention.

What happens when a stock has no news or inference data?

The report must mark the section as data missing rather than fabricating content. For missing news, the agent reminds the user to add RSS sources in the admin panel; for missing inference records, it notes that no recent inference data exists.