futures-kline-batch

futures-kline-batch is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 85 tokens per session (1,412 once invoked), scanned A, original, MIT.

A tool for retrieving historical daily, weekly, monthly, quarterly, or yearly price bars for several futures contracts at once. It groups the results by contract and includes prices, trading volume, and open interest.

In plain words
What is it for?
Use it to compare historical futures performance, trading activity, and open interest across a list of contracts. It supports up to 20 contracts per request.
Why use it?
It removes the need to send separate history requests for each contract and then match the results. It is suited to comparing multiple contracts over the same period.

Skill for Claude CodeCodex

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

Good fit Use it to compare historical futures performance, trading activity, and open interest across a list of contracts. It supports up to 20 contracts per request.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/futures-kline-batch"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/futures-kline-batch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,412 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.
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.00085 $0.01412
Opus 5.5 $0.00034 $0.00565
Sonnet 5.5 $0.00017 $0.00282
Haiku 4.5 $0.00009 $0.00141

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

Security

Grade A, and why

futures-kline-batch 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/futures-kline-batch/SKILL.md · 74 lines

How it starts

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

批量期货合约历史K线

接口:GET /api/v2/market/data/futures/kline/batch。在线文档:《批量期货合约历史K线》

1. 接口描述

项目 说明
接口名称 批量期货合约历史K线(futures_kline_batch)
外部接口 GET /api/v2/market/data/futures/kline/batch
请求方式 GET(query 参数,symbols 使用逗号分隔)
适用场景 一次批量获取多个期货合约的历史 K 线(开高低收、成交量、成交额、vwap、持仓量),支持日/周/月/季周期
数据范围 支持日、周、月、季 K 线;周、月、季 K 线由历史日 K 线聚合生成
单次限量 symbols 支持 1~20 个合约;每个合约 limit 默认 500;时间范围不超过 12 个自然月

2. 请求参数

参数名 类型 是否必填 描述 取值示例 备注
symbols string 是 不带交易所后缀的期货合约代码列表,逗号分隔传给 CLI A2611,M2611 1~20 个;请求不区分大小写,CZCE 真实合约必须使用四位年份代码(如 AP2612);接口侧以逗号分隔发送,兼容旧的重复参数格式
interval string 否 K 线周期 daily daily/weekly/monthly/quarterly;默认 daily
start int 否 起始时间戳(毫秒) 1790784000000 闭区间;按北京时间解释
end int 否 结束时间戳(毫秒) 1791647999000 闭区间;不能单独传入
limit int 否 每个合约返回的最新 K 线条数 5 默认 500

3. 响应说明

外层固定为 code(成功 200)/ message(成功 success)/ data。data 为按请求顺序排列的标的分组数组(非分页),每项结构为 {symbol, items, total}:

字段名 类型 说明
symbol string 请求中合约代码规范化后的裸代码,大小写沿用对应交易所官网格式;CZCE 真实合约返回四位年份代码
items array 该合约符合条件且经 limit 截断后的 K 线记录列表
total integer items 中的 K 线记录数(已应用 limit);无数据时为 0

分组内每根 K 线字段:

字段名 类型 说明
symbol string 不带交易所后缀的官网合约代码,大小写沿用对应交易所官网格式;CZCE 真实合约返回四位年份代码
datetime int K 线时间戳(毫秒)
trade_date int 交易日 YYYYMMDD
open / high / low / close number 开盘价 / 最高价 / 最低价 / 收盘价
volume int 成交量
amount number 成交额
vwap number 成交量加权均价
open_interest number 持仓量
dominant_contract string / null 主力合约;当前接口返回 null
forward_factor number / null 前复权因子;当前接口返回 null
backward_factor number / null 后复权因子;当前接口返回 null

4. 调用方式

python <RUN_PY> futures-kline-batch --symbols A2611,M2611 --interval daily --start 1790784000000 --end 1791647999000 --limit 5
python <RUN_PY> futures-kline-batch --symbols A2611,M2611,CU2611 --interval weekly --limit 5

Read the full file on GitHub · 74 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 · +2 lines 4b7b86aa2912
  2. 1mo ago Changed · -4 lines · -2 tokens per session 3634d6ad8770
  3. 1mo ago First seen · 76 lines · 87 tokens per session scan A 942d607212da

Subscribe to this mod's changes

futures-kline-batch is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (65 stars, last pushed 7d ago), licensed MIT. It adds 85 tokens to every session and 1,412 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-10-15.

Related

futures-kline-batch compared with skills from other repositories

futures-kline-batch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
futures-kline-batchFTShare-Lab/FTShare-skillSkill657d agoMITA85Claude Code, Codex
tickdb-market-dataTickDB/tickdb-unified-realtime-marketdata-apiSkill95025d agoMITA165Claude Code, Codex
defeatbeta-earnings-analysisdefeat-beta/defeatbeta-apiSkill81221d agoApache-2.0A112Claude Code
sprrwilsonfreitas/awesome-quantSkill31ktodaynoneA54Claude Code, Codex
bprrwilsonfreitas/awesome-quantSkill31ktodaynoneA36Claude Code, Codex
create-entrywilsonfreitas/awesome-quantSkill31ktodaynoneA43Claude Code, Codex
update-pypi-dateswilsonfreitas/awesome-quantSkill31ktodaynoneA47Claude Code, Codex