ashare-rating-factor-snapshot

ashare-rating-factor-snapshot is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 73 tokens per session (813 once invoked), scanned A, original, MIT.

A tool that returns the highest-ranked related companies for a specified A-share stock. A-shares are mainland Chinese stocks traded in renminbi.

In plain words
What is it for?
Use it to request related securities for a trading code, date, and top-k limit.
Why use it?
It helps identify stocks that are statistically related to a chosen stock, including their correlation scores.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to request related securities for a trading code, date, and top-k limit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add FTShare-Lab/FTShare-skill --skill ashare-rating-factor-snapshot
Clone the repo
git clone --depth 1 https://github.com/FTShare-Lab/FTShare-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ashare-rating-factor-snapshot

README.md
[![agentmods](https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot/github.svg)](https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot)
Your own site
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ashare-rating-factor-snapshot

Your own site · 80×15
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-rating-factor-snapshot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 813 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00813
Opus 5.5 $0.00029 $0.00325
Sonnet 5.5 $0.00015 $0.00163
Haiku 4.5 $0.00007 $0.00081

Measured 7d ago against content hash c54e6e4ed463, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ashare-rating-factor-snapshot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/handler.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ftshare-market-data/sub-skills/ashare-rating-factor-snapshot/SKILL.md · 49 lines

What it actually says

A股相关性 Top-K

接口:GET /api/v3/market/data/ashare-rating-factor-snapshot。在线文档:《A股相关性 Top-K》

指定股票时返回该股票的相关公司列表,不指定时返回当日全市场股票的相关公司列表。每个交易日更新一份快照。

所有请求必须设置环境变量 FTSHARE_API_KEY;handler 将其作为 FTSHARE_API_KEY 请求头发送。缺失凭据时不会发起请求。

参数

参数 必填 说明
--trade-code 否 目标股票代码,标准格式 六位数字.SH/SZ;也接受 SH:600000、600000.XSHG 和不带后缀的 600000;省略时返回当日全部股票
--date 否 快照日期,格式 YYYYMMDD;非交易日返回空结果,省略时使用最新交易日
--top-k 否 每只股票返回的相关公司数量,默认 10,范围 1–10
--page 否 页码,从 1 开始,默认 1
--page-size 否 每页返回的股票数,默认 200,范围 1–500
--all 否 自动翻页取回全部结果(全市场遍历时使用)

命令

python <RUN_PY> ashare-rating-factor-snapshot --trade-code 600000.SH --date 20261117 --top-k 3
python <RUN_PY> ashare-rating-factor-snapshot --date 20261117 --page 1 --page-size 200
python <RUN_PY> ashare-rating-factor-snapshot --date 20261117 --all
python <RUN_PY> ashare-rating-factor-snapshot --trade-code 600000.SH

返回

  • 外层:code、message、data
  • data:pageNum、pageSize、total、pages、records
  • records[]:trade_code(六位数字.SH/SZ)、snapshot_date(实际命中的快照交易日)、related_securities[]
  • related_securities[]:trade_code、score、rank、corr
    • score:0–10 的整数评分,由 corr 分档得到;0 表示未评级,数值越大相关性越强
    • rank:名次,从 1 开始
    • corr:原始相关系数,取值 -1 ~ 1

注意

  • 当前可查数据自 20251117 起。
  • 相关公司按评分降序、相关系数降序、代码升序排列,不包含目标股票自身,同一目标股票下不重复。
  • 本接口覆盖沪深股票,暂不返回北交所数据;传入北交所代码时结果为空。
  • 非交易日或该日期无数据时返回 HTTP 200 和空 records。
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +18 lines · +38 tokens per session c54e6e4ed463
  2. 11d ago Changed · +14 lines 36b33a6ba2d0
  3. 2mo ago First seen · 17 lines · 35 tokens per session scan A c4b4426b2068

Subscribe to this mod's changes

ashare-rating-factor-snapshot is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (65 stars, last pushed 7d ago), licensed MIT. It adds 73 tokens to every session and 813 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

ashare-rating-factor-snapshot compared with skills from other repositories

ashare-rating-factor-snapshot next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ashare-rating-factor-snapshotFTShare-Lab/FTShare-skillSkill657d agoMITA73Claude Code, Codex
tickdb-market-dataTickDB/tickdb-unified-realtime-marketdata-apiSkill95025d agoMITA165Claude Code, Codex
defeatbeta-earnings-analysisdefeat-beta/defeatbeta-apiSkill81221d agoApache-2.0A112Claude Code
bprrwilsonfreitas/awesome-quantSkill31ktodaynoneA36Claude Code, Codex
create-entrywilsonfreitas/awesome-quantSkill31ktodaynoneA43Claude Code, Codex
update-pypi-dateswilsonfreitas/awesome-quantSkill31ktodaynoneA47Claude Code, Codex
defeatbeta-earnings-previewdefeat-beta/defeatbeta-apiSkill81221d agoApache-2.0A60Claude Code, Codex