| name | market-data |
| description | 提供A股/美股/港股的实时行情、历史K线、指数批量查询、板块排行与成分、资金流向及市场成交额等数据能力,适合市场快照与基础分析。 |
Market Data Skill
Provides real-time quotes, historical K-lines, fund flow, sector data, and market turnover for A-share, HK, and US markets.
Capabilities
- Quotes: Real-time price, volume, change for Stocks, ETFs, and Indices.
- K-Line: Historical OHLCV data (Daily/Weekly/Monthly).
- Indices: Bulk fetch key indices (CN/HK/US).
- Sectors: Industry/Concept rankings and constituent stocks.
- Fund Flow: North/South water, individual stock flow.
- Turnover: Total market turnover (A-share).
Usage
CLI
./setup.sh
source .venv/bin/activate
python scripts/market_data.py quote 600036
python scripts/market_data.py quote 上证指数
python scripts/market_data.py indices CN
python scripts/market_data.py kline 600036 --period daily --limit 20
python scripts/market_data.py rank --type industry --limit 10
python scripts/market_data.py constituents "酿酒行业" --limit 10
python scripts/market_data.py turnover
Python Import
from scripts.market_data import MarketDataSkill
skill = MarketDataSkill()
quote = skill.get_quote("600036")
kline = skill.get_kline("600036", limit=100)