ashare-news-sentiment-factors

ashare-news-sentiment-factors is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 98 tokens per session (959 once invoked), scanned A, original, MIT.

A command-line skill for retrieving news-sentiment factors for a specified Chinese A-share. These factors are market data derived from news sentiment, and the request requires an API key.

In plain words
What is it for?
Use it to query sentiment-factor data for a stock over a chosen date range and page through the results.
Why use it?
It avoids manually assembling the endpoint, required stock code, date filters, pagination, and authentication headers.

Skill for Claude CodeCodex

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

Good fit Use it to query sentiment-factor data for a stock over a chosen date range and page through the results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors
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-news-sentiment-factors
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-news-sentiment-factors

README.md
[![agentmods](https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors/github.svg)](https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors)
Your own site
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors/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-news-sentiment-factors

Your own site · 80×15
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/ashare-news-sentiment-factors.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 959 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.00098 $0.00959
Opus 5.5 $0.00039 $0.00384
Sonnet 5.5 $0.00020 $0.00192
Haiku 4.5 $0.00010 $0.00096

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

Security

Grade A, and why

ashare-news-sentiment-factors 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-news-sentiment-factors/SKILL.md · 52 lines

What it actually says

A股新闻情绪因子

接口:GET /api/v3/market/data/ashare-news-sentiment-factors。在线文档:《A股新闻情绪因子》

查询指定 A 股的新闻情绪因子,结果按预测日升序排列。

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

参数

参数 必填 说明
--trade-code 是 股票代码,标准格式 六位数字.SH/SZ/BJ;也接受 SH:600000、600000.XSHG 和不带后缀的 600000
--date 否 单日预测日,格式 YYYYMMDD;与 --start-date、--end-date 互斥
--start-date 否 起始预测日,格式 YYYYMMDD,包含该日;必须与 --end-date 同时传入,含首尾跨度不超过 31 天
--end-date 否 截止预测日,格式 YYYYMMDD,包含该日;必须与 --start-date 同时传入,含首尾跨度不超过 31 天
--page 否 页码,从 1 开始,默认 1
--page-size 否 每页返回的预测因子行数,默认 50,范围 1–200

--date 与 --start-date、--end-date 不能同时传入;日期区间三选一或都不传。都不传时查询当天的预测日。

命令

python <RUN_PY> ashare-news-sentiment-factors --trade-code 600000.SH --date 20261117
python <RUN_PY> ashare-news-sentiment-factors --trade-code 600000.SH --start-date 20261112 --end-date 20261113 --page-size 20
python <RUN_PY> ashare-news-sentiment-factors --trade-code 600000.SH

返回

  • 记录容器:data.records;分页字段:pageNum、pageSize、total、pages
  • 记录字段:
    • prediction_date:预测日,YYYYMMDD,均为交易日
    • trade_code:统一为 六位数字.SH/SZ/BJ
    • company_name:公司名称
    • sentiment_index:情绪分数,整数 -2 ~ 2,正为利好、负为利空、0 为无关或中性
    • confidence:置信度,整数 0 ~ 2,越大越有把握
    • reasoning:情绪判断依据,6 ~ 500 字;方向被调整时末尾带说明
    • price_context:预测日前的价格位置说明,含近期涨跌幅与价格在区间中的位置

注意

  • 当前数据自 20260417 起,当日数据在凌晨 4 点前更新完成。
  • 只有当日有新闻覆盖的股票才会生成记录;无新闻时返回空记录,total 为 0。
  • 非交易日不产生数据,查询非交易日返回空 records。
  • start_date 与 end_date 含首尾跨度超过 31 天(即 end_date - start_date 超过 30 天)、只传其中一个、或与 date 同时传入,均返回 400。
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 · +12 lines · +39 tokens per session 7a62bd703d62
  2. 11d ago Changed · +23 lines · -4 tokens per session 855862b6492e
  3. 2mo ago First seen · 17 lines · 63 tokens per session scan A 74a0f61e06ce

Subscribe to this mod's changes

ashare-news-sentiment-factors is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (65 stars, last pushed 7d ago), licensed MIT. It adds 98 tokens to every session and 959 once invoked, about $0.0004 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-news-sentiment-factors compared with skills from other repositories

ashare-news-sentiment-factors next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ashare-news-sentiment-factorsFTShare-Lab/FTShare-skillSkill657d agoMITA98Claude 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