Communitygithub.com

RaoHai/ClaudeQuant

A-share quantitative analysis tool providing real-time market data, technical analysis, capital flows, and portfolio analysis. Uses the AkShare data source (free, no token required). Triggered when users inquire about stock quotes, A-share analysis, portfolio queries, or technical indicators.

What is ClaudeQuant?

ClaudeQuant is an A-share quantitative analysis tool built for developers and AI agent users who need quick, actionable insights into Chinese stock markets. It leverages the free and open-source AkShare data source, requiring no API tokens or paid subscriptions, making it highly accessible. The tool supports real-time quotes, technical analysis (e.g., moving averages, RSI), capital flow tracking, and portfolio position summaries. Users can query individual stocks by their exchange codes (e.g., 600519 for Shanghai, 000001 for Shenzhen), and the system automatically detects the correct market. CLI commands allow straightforward integration into automation workflows or agent scripts, and the portfolio configuration is managed via a simple `.env` file. This skill is ideal for personal investment monitoring, rapid prototyping of trading strategies, and embedding quantitative analysis capabilities into larger AI agent systems.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add RaoHai/ClaudeQuant

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

ClaudeQuant - A-share Portfolio Analysis

A-share quantitative analysis tool using AkShare data source (free, no token required).

Usage

cd /home/nanobot/.nanobot/workspace/skills/claudequant

# View portfolio summary
python cli.py portfolio

# Get real-time quote
python cli.py quote <stock_code>

# Technical analysis
python cli.py technical <stock_code>

# Full analysis report
python cli.py analyze

Configure Portfolio

Edit the .env file:

PORTFOLIO_SYMBOLS=600519,000858,601318

Stock Code Format

  • Shenzhen: 000001
  • Shanghai: 600519
  • Beijing Stock Exchange: 430090

The system automatically identifies the market.

Related Skills