stock-market-analysis

Analyze stock markets and generate research-grade reports from QuantDB data via QuantMind APIs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, duckdb, numpy, psycopg2, sqlalchemy, and includes scripts (resource) and references (resource) components.

What problem does it solve? It turns raw QuantDB market data (K-line, financials, valuation, 315+ factors, margin trading, order microstructure, news) into rigorous, broker-grade stock analysis and exportable datasets, eliminating manual data wrangling and unit-caliber errors. ## Core Features & Use Cases - Full-Market Signal Scanning & Industry Rotation: Query daily selection signals, market state, sector money flow, and heatmaps via the QuantMind API to screen candidates across 11,000+ signals. - 9-Layer Deep Stock Analysis: Produce research reports covering market environment, valuation percentiles, three-statement financials, technicals, capital flows, L2 order microstructure cross-sectional ranks, industry/concept strength, multi-model AI signals, and seven-dimension news sentiment. - Data Export & Report Delivery: Export selection candidates, feature sets, and risk scorecards to CSV/Excel, and render Markdown reports into styled PDFs saved to the trading_agents report directory. - Use Case: Ask for a deep analysis of 600519.SH and receive a 14-section report with valuation percentiles, financial quality checks, multi-model consensus, and bull/bear evidence tables delivered as MD and PDF. ## Quick Start Ask the assistant to run a deep analysis of a specific stock such as 600519.SH and export the resulting research report as a PDF.

Frequently Asked Questions about stock-market-analysis

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

FAQPage Schema
How do I run a deep analysis on a single A-share stock?

Run the stock_9layer_fetch.py script with the stock code inside the quantmind container, then follow the nine-layer runbook covering market, valuation, financials, technicals, capital flow, microstructure, industry, models, and news. The output is written as Markdown and converted to PDF in the trading_agents report directory.

How do I export stock screening results to CSV?

Call the /api/v1/selection/daily endpoint with an auth token, then parse the candidates array into a CSV with utf-8-sig encoding. Similar export snippets exist for full feature sets, batch stock comparisons, and risk scorecards.

Why do financial and margin trading queries require docker exec?

Financial statements and margin trading data live in parquet files, not the REST API, and the required libraries (pandas, duckdb) only exist inside the quantmind container. Scripts must be copied in with docker cp and executed via docker exec.

Why are L2 capital flow fields showing NaN values?

The l2_factors partitions stopped updating at 20260227 on the vendor side, so recent flow, chip, and microstructure fields are legitimately empty. Reports must mark this as missing data rather than fabricating values.

What unit pitfalls cause wrong stock analysis results?

Stock volume is in shares while index volume is in lots, amounts are in ten-thousand yuan, valuation close is unadjusted while technical indicators use back-adjusted prices, and dividend_rate switched to percentage format on 20260814. Always verify against the quantdb-fields reference before computing.

Can this skill analyze markets other than A-shares?

Yes, the platform supports A-share, Hong Kong, US, futures, and crypto markets, with multi-market K-line endpoints available. However, the deepest nine-layer pipeline with parquet financials and L2 microstructure is built primarily around A-share QuantDB data.