market-data

Retrieve real-time and historical market data for A-share, HK, and US markets.

6|2|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/EricOo0/stock-trading-platform --skill market-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: market-data
Source: https://github.com/EricOo0/stock-trading-platform/tree/main/backend/skills/market-data
Command: npx skills add https://github.com/EricOo0/stock-trading-platform --skill market-data

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires akshare, pandas, tenacity, and includes scripts (resource) components.

What problem does it solve?

This Skill consolidates real-time and historical market data for A-share, HK, and US markets, enabling fast insights without manual data stitching.

Core Features & Use Cases

  • Real-time quotes, volumes, and price changes for stocks, ETFs, and indices.
  • Historical K-line data (daily/weekly/monthly) and bulk indices summaries.
  • Sector data, fund flow, and market turnover to track market momentum.
  • Quick-use scenario: fetch the latest price for a stock, then pull its 60-day history to identify trends.

Quick Start

Setup dependencies with the provided setup script or install via pip, then try the CLI:

  • python scripts/market_data.py quote 600036
  • python scripts/market_data.py kline 600036 --period daily --limit 20
  • python scripts/market_data.py indices CN

Frequently Asked Questions about market-data

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

FAQPage Schema
How do I retrieve real-time market data for A-share, HK, and US stocks using Python?

You retrieve real-time market data by running the Python CLI to fetch current quotes, volumes, and price changes across A-share, HK, and US markets using AKShare and Pandas without manual data stitching.

Can I fetch historical K-line data for a specific stock with a daily period?

Yes, you can fetch historical K-line data by specifying the symbol and period via the CLI. The tool supports daily, weekly, and monthly K-line history limits to identify price trends.

What's the best way to track A-share sector data and fund flow for market momentum?

The best way to track market momentum is using this Skill to pull sector data, fund flow, and market turnover, consolidating bulk indices summaries into quick market snapshots for analysis.

Do I need to install akshare and pandas to run the market data scripts?

Yes, you need to install akshare, pandas, and tenacity. You can set up these dependencies using the provided setup script or install them via pip before executing the market data CLI.

How do I get bulk indices summaries for the CN market?

You get bulk indices summaries by running the CLI with the indices parameter and specifying the CN market. This retrieves bulk indices data for quick market snapshots and momentum tracking.