futures-kline-batch

futures-kline-batch is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 87 tokens per session (1,427 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 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,427 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.00087 $0.01427
Opus 5.5 $0.00035 $0.00571
Sonnet 5.5 $0.00017 $0.00285
Haiku 4.5 $0.00009 $0.00143

Measured 2d ago against content hash 942d607212da, 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 2d 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 · 76 lines

How it starts

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

批量期货合约历史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.DCE,M2611.DCE 1~20 个;接口侧以重复 query 参数发送
interval string 否 K 线周期 daily daily/weekly/monthly/quarterly/yearly;默认 daily
start int 否 起始时间戳(毫秒) 1790784000000 闭区间;按北京时间解释
end int 否 结束时间戳(毫秒) 1791647999000 闭区间;不能单独传入
limit int 否 每个合约返回的最新 K 线条数 5 默认 500

3. 响应说明

外层固定为 code(成功 200)/ message(成功 success)/ data。data 为对象:items(按请求顺序返回的合约分组列表)和 total(请求中合约的数量,不是 K 线记录总数)。

分组对象字段:

字段名 类型 说明
symbol string 请求中的合约代码(保留请求值)
items array 该合约符合条件且经 limit 截断后的 K 线记录列表
total int 该合约符合条件的 K 线记录总数,不受 limit 截断影响

真机验证:limit=2 时 items 为 2 条,而分组 total 仍为符合条件的全部数量(如 216);limit 只截断 items 条数,不改变 total。

分组内每根 K 线字段:

字段名 类型 说明
symbol string 去除交易所后缀并转小写后的合约代码
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.DCE,M2611.DCE --interval daily --start 1790784000000 --end 1791647999000 --limit 5
python <RUN_PY> futures-kline-batch --symbols A2611.DCE,M2611.DCE,CU2611.SHF --interval weekly --limit 5

Read the full file on GitHub · 76 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. 2d 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 2d ago), licensed MIT. It adds 87 tokens to every session and 1,427 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

Other skills, from other repositories

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-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

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