daec-ohlcs

daec-ohlcs is a skill for Claude Code, Codex from FTShare-Lab/FTShare-skill. It costs 98 tokens per session (993 once invoked), scanned A, original, MIT.

A tool for retrieving historical OHLC price candles for a financial instrument over a date range. OHLC means the opening, highest, lowest, and closing prices for each time period.

In plain words
What is it for?
Use it to query daily, minute, weekly, or monthly candles by symbol and dates, with optional price adjustment and compatibility settings.
Why use it?
It avoids manually collecting market history and can return either the standard data format or a compatibility format for older software.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/ftshare-lab/ftshare-skill/daec-ohlcs
Any agent
npx skills add FTShare-Lab/FTShare-skill --skill daec-ohlcs
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 daec-ohlcs

README.md
[![agentmods](https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/daec-ohlcs.svg)](https://agentmods.dev/skills/ftshare-lab/ftshare-skill/daec-ohlcs)
Your own site
<a href="https://agentmods.dev/skills/ftshare-lab/ftshare-skill/daec-ohlcs"><img src="https://agentmods.dev/badge/skills/ftshare-lab/ftshare-skill/daec-ohlcs.svg" alt="Measured on agentmods" 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 993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00098 $0.00993
Opus 5 $0.00049 $0.00496
Sonnet 5 $0.00020 $0.00199
Haiku 4.5 $0.00010 $0.00099

Measured 4d ago against content hash 525e9feafef0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

daec-ohlcs 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 4d 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/daec-ohlcs/SKILL.md · 80 lines

What it actually says

查询 DAEC 历史 OHLC

接口说明

项目 说明
接口名称 查询 DAEC 历史 OHLC
外部接口 GET /api/v1/market/data/daec/history/ohlcs
请求方式 GET
适用场景 按标的和日期区间查询历史 OHLC K 线;兼容模式可供旧前端直接消费

请求参数

参数名 类型 是否必填 描述 取值示例 备注
symbol string 标的代码 600000.XSHG -
since string 标准模式必填 起始日期 20260701 YYYYMMDD
until string 标准模式必填 结束日期 20260731 YYYYMMDD
interval string 周期 Day Minute/Day/Week/Month,默认 Day
adjust string 复权 Forward None/Forward/Backward
compat string 兼容版开关 v2 v2 启用兼容版响应
span string 兼容模式周期 DAY1 DAY1/WEEK1/MONTH1,默认 DAY1
limit int 兼容模式返回数量 250 默认 250
until_ts_ms int64 兼容模式结束时间戳 1785488400000 毫秒;优先于默认当前日期

执行方式

# 标准模式
python <RUN_PY> daec-ohlcs --symbol 600000.XSHG --since 20260701 --until 20260731 --interval Day --adjust Forward
# 兼容 v2 模式
python <RUN_PY> daec-ohlcs --symbol 600000.XSHG --compat v2 --span DAY1 --limit 250

<RUN_PY> 为主 SKILL.md 同级的 run.py 绝对路径。

响应结构

外层 code/message/data

标准模式

data 直接为数组,每项字段:

字段 类型 说明
open_ts_ms / close_ts_ms int64 K 线开始 / 结束时间(毫秒)
open / high / low / close string 开高低收
volume int64 成交量
turnover string 成交额
{
  "code": 200,
  "message": "success",
  "data": [
    {
      "close_ts_ms": 1785488400000, "close": "10.25", "high": "10.36",
      "low": "10.08", "open": "10.12", "open_ts_ms": 1785461400000,
      "turnover": "126530000.00", "volume": 12345678
    }
  ]
}

兼容模式(compat=v2)

data 为对象,含 current_time/has_last_empty/prev_close/ohlcs/ma5/ma10/ma20。其中 ohlcs 使用缩写字段 o/h/l/c/v/t/otm/ctm

注意事项

  • 标准模式下 since/until 必填,格式 YYYYMMDD。
  • 兼容模式默认 limit=250until_ts_ms 优先于默认当前日期。
  • 标准模式字段以字符串返回,volume 为 int64。
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. 4d ago First seen · 80 lines · 98 tokens per session scan A 525e9feafef0

Subscribe to this mod's changes

daec-ohlcs is a skill published in the GitHub repository FTShare-Lab/FTShare-skill (63 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 993 once invoked, about $0.0005 per session on Opus 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-08-30.

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

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

bprr

Bulk PR reviewer for awesome-quant. Use when the user asks to review all open PRs, review unreviewed PRs, bulk review, or mentions "bprr". Reviews open PRs lacking the reviewed label and presents a summary before any merge/comment/label action.

wilsonfreitas/awesome-quant · 61 tokens

update-pypi-dates

Refresh tracked PyPI last-updated dates in awesome-quant README.md. Use when the user asks to update PyPI dates, refresh PyPI metadata, or run update-pypi-dates.

wilsonfreitas/awesome-quant · 47 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-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