From quant-skills
Fetches A-share market data, financials, and macro indicators via Tushare API. Provides scripts for daily K-line, income statements, and index data. Requires Tushare token.
How this skill is triggered — by the user, by Claude, or both
Slash command
/quant-skills:tushareThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- 本 Skill 用于:通过 Tushare 数据接口获取 A 股市场数据、财务指标和宏观数据
python scripts/market_data.py --type daily --ts_code 000001.SZ --start_date 20240101 --end_date 20240131python scripts/financial_data.py --type financial --ts_code 000001.SZ --period 2023python scripts/stock_info.py --type stock_basicpython scripts/macro_index_data.py --type index_daily --ts_code 000001.SH --start_date 20240101 --end_date 20240131python scripts/market_data.py --type daily --ts_code 000001.SZ --start_date 20240301 --end_date 20240331python scripts/financial_data.py --type fina_indicator --ts_code 600036.SH --period 2023python scripts/macro_index_data.py --type index_daily --ts_code 000001.SH --start_date 20240301 --end_date 20240331import tushare as ts
import pandas as pd
# 设置 Token(需先设置环境变量 TUSHARE_TOKEN)
ts.set_token(os.environ.get('TUSHARE_TOKEN', ''))
pro = ts.pro_api()
# 获取日K线数据
df = pro.daily(ts_code='000001.SZ', start_date='20240101', end_date='20241231')
# 获取财务指标
df = pro.fina_indicator(ts_code='600036.SH', period='2023')
# 获取指数数据
df = pro.index_daily(ts_code='000001.SH', start_date='20240101', end_date='20241231')
| 特性 | tushare | jqdatasdk | baostock | akshare |
|---|---|---|---|---|
| 费用 | 免费/付费 | 需注册积分 | 免费 | 免费 |
| 注册要求 | ✅ 需要 | ✅ 需要 | ❌ 不需要 | ❌ 不需要 |
| 数据范围 | 全面(含宏观) | A股+因子 | A股为主 | 全面 |
| 宏观数据 | ✅ 丰富 | ❌ | ❌ | ✅ |
| 调用频率 | 免费有限制 | 有 | 无限制 | 无限制 |
npx claudepluginhub lzwme/finance-quant-skills --plugin quant-skillsFetches A-share market data (prices, K-lines, fundamentals, factors) via JoinQuant SDK. Requires a JoinQuant account token.
Queries A-share securities data (K-line, financials, macro, industry) via the free BaoStock Python API, returning pandas DataFrames.
Queries Chinese A-share data via local akshare Python library: real-time quotes, historical K-lines (daily/weekly/monthly/minute), adjusted prices, shareholder counts, announcements. Uses EM/Sina APIs, outputs CSV/JSON.