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

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

Good fit Use it to query daily, minute, weekly, or monthly candles by symbol and dates, with optional price adjustment and compatibility settings.

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

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00098 $0.00993
Opus 5.5 $0.00039 $0.00397
Sonnet 5.5 $0.00020 $0.00199
Haiku 4.5 $0.00010 $0.00099

Measured 3mo ago against content hash 525e9feafef0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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=250,until_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. 3mo 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 (65 stars, last pushed 6d ago), licensed MIT. It adds 98 tokens to every session and 993 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-08-30.

Related

daec-ohlcs compared with skills from other repositories

daec-ohlcs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
daec-ohlcsFTShare-Lab/FTShare-skillSkill656d agoMITA98Claude Code, Codex
tickdb-market-dataTickDB/tickdb-unified-realtime-marketdata-apiSkill94824d agoMITA165Claude Code, Codex
defeatbeta-earnings-analysisdefeat-beta/defeatbeta-apiSkill81120d 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