stk-premarket

stk-premarket is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 95 tokens per session (1,482 once invoked), scanned A, original, MIT.

A market-data lookup for stock information available before the trading day begins. It calls a financial data service and requires an API key.

In plain words
What is it for?
Use it to retrieve pre-market stock data for analysis or monitoring before the market opens.
Why use it?
It avoids manually collecting pre-market figures from separate sources. Without the required API key, no request is sent.

Skill for Claude CodeCodex

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

Good fit Use it to retrieve pre-market stock data for analysis or monitoring before the market opens.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/stk-premarket"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/stk-premarket.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,482 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.00095 $0.01482
Opus 5.5 $0.00038 $0.00593
Sonnet 5.5 $0.00019 $0.00296
Haiku 4.5 $0.00010 $0.00148

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

Security

Grade A, and why

stk-premarket 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/handler.py, scripts/test_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/stk-premarket/SKILL.md · 83 lines

How it starts

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

盘前数据

接口:GET /api/v2/market/data/stk-premarket 在线文档:https://market.ft.tech/gateway/doc/pages/q1zs7bsw.md

返回每个标的每个交易日的总股本、A 股流通股本、昨收、涨跌停价、价格(当日为预测开盘价、历史为收盘价)及据此计算的总市值与流通市值。

查询模式

  1. 单日全市场:--trade-date 20261113(约 5500+ 只,需翻页)
  2. 单票历史区间:--ts-code 600036.SH --start-date 20250101 --end-date 20261116
  3. 单票最新一天:只传 --ts-code(等价于该标的最新交易日 1 条)

--trade-date 与 --start-date/--end-date 互斥;--start-date/--end-date 必须成对且配合 --ts-code。

参数

参数 类型 必填 说明
--ts-code string N 标的代码,如 000001.SZ / 600519.SH。只传本参数时仅返回最新交易日 1 条
--trade-date int N 交易日 YYYYMMDD,查该日全市场;非交易日返回空数组
--start-date int N 区间起始日 YYYYMMDD,须与 --end-date 成对、并配合 --ts-code
--end-date int N 区间结束日 YYYYMMDD
--page int N 页码,默认 1
--page-size int N 每页条数,默认 50、最大 500;配合 --all 时默认 500
--all flag N 按 total_pages 自动翻页并合并 items(单票全历史推荐)

分页(关键)

  • 响应信封:{"code":200,"message":"success","data":{"items":[...],"total_items":N,"total_pages":P}}。
  • total_pages = ceil(total_items / page_size),依赖 page_size:同一区间 page_size=50 与 500 的页数不同。
  • 默认只返回第 1 页(50 条),按 trade_date 升序 —— 单次请求看到的是最早 50 个交易日,最容易被误判成"历史只到某月"。
  • 取全量:加 --all,或自行循环 --page 到 total_pages。

已知边界(实测)

场景 行为
只传 --ts-code 最新交易日 1 条;代码无效/无数据返回空数组(如旧北交所 830799.BJ)
历史起点 2022-01-04;2022 以前无数据,跨起点区间静默截断(2021-12-01~2022-06-30 返回 117 条,从 20220104 起,不报错)
非交易日 --trade-date 200 + items: []、total_items: 0
--start-date 或 --end-date 单独给 本地拦截;服务端 400 start_date and end_date must be provided together
--trade-date 与区间同给 本地拦截;服务端 400 trade_date cannot be used with start_date/end_date
区间不配 --ts-code 本地拦截;服务端 400 start_date/end_date must be used with ts_code
page_size 越界(0 / 501 / 1000) 400 page_size must be between 1 and 500
page=0 400 page must be greater than 0
页码超出末页 200 + items: [],总数照常返回
日期格式 必须 YYYYMMDD,YYYY-MM-DD 返回 400
北交所代码 已统一为 92xxxx(如 920002.BJ);旧 43xxxx / 83xxxx 返回空

Read the full file on GitHub · 83 lines

Files

What ships with it

2 files 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. 11d ago Changed · +66 lines · +58 tokens per session b461142738af
  2. 2mo ago First seen · 17 lines · 37 tokens per session scan A 1aca91f4b052

Subscribe to this mod's changes

stk-premarket is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (65 stars, last pushed 7d ago), licensed MIT. It adds 95 tokens to every session and 1,482 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

stk-premarket compared with skills from other repositories

stk-premarket next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stk-premarketFTShare-Lab/FTShare-skillSkill657d agoMITA95Claude 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