hsi-daily-weight

hsi-daily-weight is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 118 tokens per session (1,553 once invoked), scanned A, original, MIT.

A market-data lookup for the percentage weights of stocks in Hang Seng family indices. The weight shows how much each constituent stock contributes to an index.

In plain words
What is it for?
Use it to find constituent weights for the Hang Seng Index, Hang Seng China Enterprises Index, or a specified Hong Kong stock.
Why use it?
It saves you from querying and filtering the underlying index-constituent data manually. You can filter by date, index, or stock.

Skill for Claude CodeCodex

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

Good fit Use it to find constituent weights for the Hang Seng Index, Hang Seng China Enterprises Index, or a specified Hong Kong stock.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ftshare-lab/ftshare-skill/hsi-daily-weight
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 hsi-daily-weight
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 hsi-daily-weight

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/hsi-daily-weight"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/hsi-daily-weight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,553 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.00118 $0.01553
Opus 5.5 $0.00047 $0.00621
Sonnet 5.5 $0.00024 $0.00311
Haiku 4.5 $0.00012 $0.00155

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

Security

Grade A, and why

hsi-daily-weight 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 1mo 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/hsi-daily-weight/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

查询恒生系列指数成份股权重

接口说明

项目 说明
接口名称 对外接口-查询恒生指数成分权重
接口列表 hsi-daily-weight
外部接口 GET /api/v1/market/data/hk/hsi-daily-weight
请求方式 GET
适用场景 查询恒生系列指数成份股的权重数据,支持按交易日、日期范围、指数代码、股票代码过滤。

请求参数

参数名 类型 是否必填 描述 取值示例 备注
trade_date int 否 交易日 20260529 YYYYMMDD;与 start_date/end_date 互斥
start_date int 否 交易日下界 20260501 YYYYMMDD;须与 end_date 同时提供
end_date int 否 交易日上界 20260529 YYYYMMDD;须与 start_date 同时提供
index_slug string 否 指数代码(大小写不敏感) HSI HSI(恒生)/HSCEI(国企)/HSAIT(见注意)
stock_code string 否 4 位港股代码 0700 如 0700(腾讯),4 位非 5 位
page / page_size int 否 分页 1 / 50 默认 1 / 50,page_size 最大 200

至少需要一个过滤条件:trade_date、start_date+end_date、index_slug、stock_code,否则 400。

执行方式

# 恒生指数 HSI 某日成份权重(先按指数取,再按最新交易日筛)
python scripts/handler.py --index_slug HSI --page 1 --page_size 200
# 某日某指数成份权重
python scripts/handler.py --trade_date 20260529 --index_slug HSCEI
# 某股票在各指数的权重历史
python scripts/handler.py --stock_code 0700
# 日期范围 + 指数
python scripts/handler.py --start_date 20260501 --end_date 20260529 --index_slug HSI

响应结构(信封:code/message/data.records)

{
  "code": 0, "message": "success",
  "data": {
    "pageNum": 1, "pageSize": 50, "total": 90, "pages": 2,
    "records": [
      { "trade_date": "2026-05-29", "index_slug": "hsi", "index_name": "hsi",
        "stock_code": "0700", "stock_name": "TENCENT 騰訊控股", "weight_pct": "8.4",
        "source_file": "con_29May26.pdf", "url_hash": "...", "processed_at": "2026-05-29 19:34:36" }
    ]
  }
}

⚠️ 数据在 data.records,不是顶层数组。

records 字段

字段 说明
trade_date 交易日 YYYY-MM-DD
index_slug 指数代码(小写,如 hsi/hscei/hsait)
index_name 当前与 index_slug 相同(小写代码,非中文名)
stock_code 4 位港股代码(0700,非 00700)
stock_name 股票名称(多为英文/繁体,如 TENCENT 騰訊控股)
weight_pct 权重百分比,字符串(如 "8.4");未缩放,直接是百分数
source_file / url_hash / processed_at 来源文件 / URL 哈希 / 处理时间

Read the full file on GitHub · 94 lines

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. 1mo ago Changed ad8a1d2244c6
  2. 1mo ago First seen · 94 lines · 118 tokens per session scan A 8f437f618753

Subscribe to this mod's changes

hsi-daily-weight is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (64 stars, last pushed 7d ago), licensed MIT. It adds 118 tokens to every session and 1,553 once invoked, about $0.0005 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

Other skills, from other repositories

defeatbeta-earnings-analysis

Create professional equity research earnings update reports (8-12 pages, 3,000-5,000 words) analyzing quarterly results for companies already under coverage. Fast-turnaround format focusing on beat/miss analysis, key metrics, updated estimates, and revised thesis. Includes 1-3 summary tables and 8-12 charts. Use when…

defeat-beta/defeatbeta-api · 112 tokens

tickdb-market-data

A real-time market-data API for foreign exchange, metals, indexes, stocks, and cryptocurrencies. An API is a service that software can call to request data.

TickDB/tickdb-unified-realtime-marketdata-api · 165 tokens

defeatbeta-earnings-preview

Build pre-earnings analysis with normalized baselines, weighted decision models, company-specific veto gates, scenario frameworks, catalysts, historical reactions, and options-implied moves. Use before a company reports quarterly earnings to prepare positioning notes or bilingual three-page PDF reports.

defeat-beta/defeatbeta-api · 60 tokens

defeatbeta-analyst

Professional financial analysis using 60+ market data APIs. Use for: company fundamentals (revenue, margins, EPS, balance sheet), valuation (P/E, P/B, P/S, PEG, DCF, intrinsic value), profitability (ROE, ROA, ROIC), growth trends (YoY revenue/earnings/FCF), earnings transcripts (key data, changes, guidance), industry…

defeat-beta/defeatbeta-api · 154 tokens

defeatbeta-earnings-key-data

Run one of three traceable earnings-call transcript templates through the DefeatBeta MCP tools: (1) extract current-quarter results plus next-quarter and full-year guidance, (2) extract factual QoQ or YoY financial-metric change sentences, or (3) extract numerical forward-looking forecast sentences with…

defeat-beta/defeatbeta-api · 138 tokens

sprr

Single PR reviewer for awesome-quant. Use when the user asks to review, validate, comment on, label, close, or merge one specific pull request that adds README.md entries. Triggers include "sprr", "review PR", "check PR", and "validate contribution".

wilsonfreitas/awesome-quant · 60 tokens