stocktoday
A股 / 港股 / 美股 / 基金 / 期货 / 期权 / 债券 / 宏观 数据研究技能. 提供 276 个数据接口, 后端走 StockToday 自定义加速 (https://tushare.citydata.club/), 接口命名跟 tushare 100% 兼容. 适用于把"看走势 / 查财报 /…
by usa2046601 installs in other catalogs
Install stocktoday in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
stocktoday
StockToday 自有数据研究技能, 提供 276 个数据接口, 后端走 StockToday 自定义加速 (https://tushare.citydata.club/). 接口命名跟 tushare 100% 兼容, LLM 用标准 tushare 写法即可调用.
🚀 首次使用 (必读, 3 步)
⚠️ 没有 token 任何接口都返 TOKEN 无效. 装好 skill 后, 第 1 步就是配 token.
Step 1: 申请 token
去 https://stocktoday.cn 注册账号, 在控制台拿 API token.
Step 2: 设置环境变量
# Windows PowerShell
$env:TUSHARE_TOKEN = "your_token_here"
# macOS / Linux
export TUSHARE_TOKEN="your_token_here"
Step 3: 验证
TUSHARE_TOKEN=your_token python <skill_dir>/scripts/proxy_demo.py
5 个 demo 全通 (茅台日线 / 财务指标 / 白酒对比 / 资金流 / 板块) = 装好 ✅.
LLM 提示: 装好 skill 后, 主动告诉用户这 3 步. 不要直接 exec 才发现没 token 报错.
import tushare as ts
pro = ts.pro_api("your_token")
pro._DataApi__http_url = "https://tushare.citydata.club/" # 走 stocktoday gateway
df = pro.daily(ts_code="600519.SH", start_date="20240101", end_date="20241231")
详见 scripts/proxy_demo.py, 提供
get_client()封装, 一行初始化完成接入.
⚡ 客户端初始化 (1 段就够, 别再翻文档)
import sys
sys.path.insert(0, "<skill_dir>/scripts")
from proxy_demo import get_client
pro = get_client("your_token_here")
# 或者从环境变量读:
# export TUSHARE_TOKEN="your_token_here"
# pro = get_client() # 自动读 env
# 然后跟 tushare 官方用法完全一样
df = pro.daily(ts_code="600519.SH", start_date="20240101", end_date="20241231")
print(df.head())
💡 小贴士:
TUSHARE_TOKEN可以用环境变量, 也可以在调用get_client(token=...)时显式传. skill 内部不存储任何 token, 也不上传到任何第三方, 流量直连https://tushare.citydata.club/.
🧭 任务驱动 (从自然语言到接口)
核心原则: 用户说人话时, 先判断任务类型 → 选推荐接口 → 套默认参数, 不要从 276 个接口里瞎挑. 下方 10 大任务路由覆盖 95% 真实请求.
自然语言触发 (这些说法直接进 skill)
- "看下 XX 最近怎么样" / "XX 这段时间涨了多少" / "今年表现" / "最近强不强" → 行情/趋势
- "看 XX 财报" / "营收趋势" / "ROE 多少" / "现金流好不好" → 财务/估值
- "对比 XX 和 YY" / "谁更强" / "排个前 10" → 多标的对/排行
- "最近哪个板块最强" / "半导体行情" / "指数成分" → 板块/指数
- "北向资金" / "主力流入" / "龙虎榜" → 资金流/情绪
- "今天涨停" / "连板梯队" / "炸板率" → 打板/情绪
- "XX 公告" / "新闻" / "最近政策" → 公告/新闻
- "CPI / PMI / 利率" / "港股美股" → 宏观/跨市场
- "导出 XX 行情 CSV" / "做回测数据" → 数据导出
- "快速研究 XX" / "做份简报" → 综合研究
10 大任务路由 (默认接口 + 默认参数)
1. 行情/趋势 → daily + pro_bar + daily_basic
- 默认窗口: "最近" = 近 20 个交易日; "这段时间" = 近 3 个月
- 配套:
daily_basic拿 PE/PB/换手率,adj_factor算复权
2. 财务/估值 → income + fina_indicator + balancesheet + cashflow
- 不传
period自动取最近季度报告期 (skill 端友好增强) - 配套:
forecast/express看业绩预告,disclosure_date看披露计划
3. 多标的对/排行 → daily_basic + fina_indicator (排序打分)
- 推荐: 选 3-5 个关键指标 (PE / ROE / 营收增速), 用
fields限定 - 配套: 多
ts_code逗号分隔, 一次拉
4. 板块/指数 → index_daily + index_member_all + ths_index/ths_member
- ⚠️ 指数代码 (000001.SH / 000300.SH) 不要用
daily, 必须用index_daily - 分类口径: 行业用
sw_daily, 概念用ths_index, 地域用dc_index - 配套:
ths_hot/dc_hot看热度榜
5. 资金流/情绪 → moneyflow + moneyflow_hsgt + top_list/top_inst
- 口径区分: 北向=沪深港通 / 主力=moneyflow 大单 / 龙虎榜=top_list
- 配套:
moneyflow_ind_dc看板块资金,moneyflow_mkt_dc看市场资金
6. 打板/情绪 → limit_list_d + limit_step + kpl_list + ths_hot/dc_hot
- 默认窗口: 当日
trade_date=今天, 涨停梯队看limit_step的nums='2,3,4' - 配套:
cyq_perf看筹码活跃度
7. 公告/新闻 → anns_d + news + major_news + npr
anns_d必传ts_code + start_date + end_date- 配套:
research_report看券商研报,irm_qa_sh/sz看互动问答
8. 宏观/跨市场 → cn_cpi/ppi/pmi/m + us_tycr + hk_daily + us_daily
- 配套:
shibor/shibor_lpr看利率
9. 数据导出 → daily + pro_bar + fina_indicator (按 ts_code+日期范围)
- 长区间分段拉: 日线按年/季度切, 财报按年切, 分钟按月切
- 输出 CSV / parquet, 命名格式:
daily_600519.SH_20240101_20241231_20260620.csv
10. 综合研究简报 → 组合调 1+2+5+7
- 一句话结论 → 行情 → 财务 → 资金流 → 公告 → 风险点
- 配套:
token_info自查权限 (高级接口需要 V2+)
⭐ 29 个核心接口 (覆盖 80% 任务)
优先从这 29 个里选, 其它 250+ 接口按需翻
references/数据接口.md.
| 分类 | 接口 |
|---|---|
| 基础 | stock_basic, trade_cal, token_info |
| 行情 | daily, pro_bar, daily_basic, adj_factor |
| 财务 | income, balancesheet, cashflow, fina_indicator, forecast, express |
| 资金/情绪 | moneyflow, moneyflow_hsgt, hsgt_top10, top_list, top_inst |
| 指数/板块 | index_daily, index_basic, sw_daily, ths_index, ths_member |
| 打板 | limit_list_d, limit_step, ths_hot, dc_hot |
| 公告/宏观 | anns_d, news, cn_cpi, us_tycr |
🎯 中文自然语言默认口径
| 用户说 | 解释为 |
|---|---|
| "最近 / 这段时间" | 近 20 个交易日 |
| "今年 / 今年以来" | 1 月 1 日至今 |
| "财报 / 业绩" | 最近 8 个季度 + 最近年度 |
| "强不强" | 走势 + 相对强弱 + 活跃度 |
| "资金关注" | 净流入 + 活跃成交 + 龙虎榜/北向 |
| "估值" | PE / PB / 股息率 |
| "对比 / 排前 10" | 选 3-5 个关键指标排序 |
📤 交付规范 (Output Contract)
核心原则: 用户没明说只要原始表, 就要按"先结论 → 再数据 → 后风险"的方式给, 不要直接吐 pandas DataFrame.
5 段式输出 (默认结构)
每次给结果, 严格按这 5 段:
- 一句话结论 — 用一句话回答用户的核心问题 (涨跌 / 估值高低 / 资金方向 / 风险点)
- 数据范围与口径 — 标的代码 / 时间窗口 / 数据源 / 是否包含复权 / 是否含交易日历过滤
- 关键指标 / 关键表格 — 3-7 个最关键数字, 或对比表 (PE/ROE/涨跌幅/净流入), 不要全字段 dump
- 异常点 / 风险点 / 解释限制 — 数据缺失原因 / 非交易日 / 接口权限 / 单日噪声 / 字段含义
- 本地输出 (如有) — CSV / parquet 路径, 方便用户回看
4 种交付形态
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the stocktoday skill do?
A股 / 港股 / 美股 / 基金 / 期货 / 期权 / 债券 / 宏观 数据研究技能. 提供 276 个数据接口, 后端走 StockToday 自定义加速 (https://tushare.citydata.club/), 接口命名跟 tushare 100% 兼容. 适用于把"看走势 / 查财报 / 比较公司 / 看板块 / 看资金流 / 梳理公告新闻 / 看宏观 / 拉数据导出"这类请求, 转成可执行的金融数据获取 / 清洗 / 对比 / 筛选 / 导出流程.
How do I install the stocktoday skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the stocktoday skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…