market-ohlcv

market-ohlcv is a skill for Claude Code, Codex from duolongworld/AI_Renaissance. It costs 93 tokens per session (1,560 once invoked), scanned A, original, Apache-2.0.

A standard interface for loading OHLCV stock data: opening price, highest price, lowest price, closing price, and trading volume.

In plain words
What is it for?
Use it to load daily or other-frequency stock data by code or from a CSV file, with optional date ranges and price adjustments.
Why use it?
It gives technical-analysis tools one consistent data format and handles the choice between available market-data sources when the preferred source cannot be used.

Skill for Claude CodeCodex

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

Good fit Use it to load daily or other-frequency stock data by code or from a CSV file, with optional date ranges and price adjustments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duolongworld/ai_renaissance/market_ohlcv
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 duolongworld/AI_Renaissance --skill market_ohlcv
Clone the repo
git clone --depth 1 https://github.com/duolongworld/AI_Renaissance

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/duolongworld/ai_renaissance/market_ohlcv/github.svg)](https://agentmods.dev/skills/duolongworld/ai_renaissance/market_ohlcv)
Your own site
<a href="https://agentmods.dev/skills/duolongworld/ai_renaissance/market_ohlcv"><img src="https://agentmods.dev/badge/skills/duolongworld/ai_renaissance/market_ohlcv/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 market-ohlcv

Your own site · 80×15
<a href="https://agentmods.dev/skills/duolongworld/ai_renaissance/market_ohlcv"><img src="https://agentmods.dev/badge/skills/duolongworld/ai_renaissance/market_ohlcv.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,560 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.00093 $0.01560
Opus 5 $0.00046 $0.00780
Sonnet 5 $0.00019 $0.00312
Haiku 4.5 $0.00009 $0.00156

Measured 12d ago against content hash d360ffe9938e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

market-ohlcv 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 12d ago.

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.

skills/data/market_ohlcv/SKILL.md · 163 lines

How it starts

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

Market OHLCV 统一行情接口 Skill

定位

本 Skill 只描述数据接口、调用方式、输出字段和边界,不承载真实抓取/解析逻辑。真实实现位于:

data_sources.market_ohlcv

技术分析 Skill 或 Agent 需要行情数据时,应直接调用 data_sources.market_ohlcv,不要在 skills/technical/ 内实现数据源细节,也不要再通过 skills/data/market_ohlcv/scripts/ohlcv_loader.py 中转;该旧包装入口已移除。

当前运行时边界:

  • data_sources/:真实 HTTP 请求、CSV 解析、字段归一化、数据源兜底策略。
  • skills/data/market_ohlcv/SKILL.md:接口契约说明,供 Agent/Skill 作者理解如何调用。
  • skills/technical/:只做技术分析,不持有行情数据源实现。

推荐调用方式

直接函数调用

from data_sources.market_ohlcv import load_rows_from_code, load_ohlcv_csv

rows, uncertainties = load_rows_from_code(
    code="600519",
    start="2026-01-01",
    end="2026-05-23",
    freq="D",
    adjust="none",
)

类封装调用

from data_sources.market_ohlcv import MarketOhlcvDataSource

source = MarketOhlcvDataSource()
rows, uncertainties = source.load_rows_from_code("600519", "2026-01-01", "2026-05-23")

CSV 调用

from data_sources.market_ohlcv import load_ohlcv_csv

rows = load_ohlcv_csv("/path/to/ohlcv.csv")

接口

load_rows_from_code(code, start, end, freq="D", adjust="none")

统一股票代码行情入口。优先 EastMoney,失败或未配置 EASTMONEY_UT 时兜底到 Tencent Technical。

参数:

参数 类型 必填 说明
code str 股票代码,如 600519000001300750
start str 开始日期,格式 YYYY-MM-DD
end str 结束日期,格式 YYYY-MM-DD
freq str K 线周期:D/W/M,默认 D
adjust str 复权口径,默认 none;Tencent 兜底对复权口径存在近似说明

返回:

Tuple[List[Dict], List[str]]
  • 第一个元素 rows:标准化 OHLCV 行情数组。
  • 第二个元素 uncertainties:数据源选择、复权口径、异常兜底等不确定性说明。

每条 row 至少包含:

{
  "date": "2026-05-22",
  "open": 1300.0,
  "high": 1310.0,
  "low": 1280.0,
  "close": 1290.2,
  "volume": 49157.0
}

可选字段:amountturnover_rateturnovermoney

uncertainties 示例:

[
    "未配置 EASTMONEY_UT,使用 data_sources.tencent_technical 行情数据源。",
    "Tencent 行情接口默认返回 qfq/前复权日线,可能与 EastMoney none 口径存在差异。",
    "行情来源:tencent_technical:sh600519",
]

Read the full file on GitHub · 163 lines

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. 12d ago First seen · 163 lines · 93 tokens per session scan A d360ffe9938e

Subscribe to this mod's changes

market-ohlcv is a skill published in the GitHub repository duolongworld/AI_Renaissance (59 stars, last pushed 15d ago), licensed Apache-2.0. It adds 93 tokens to every session and 1,560 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

sector-rotation

An analysis framework for comparing industries in the Chinese A-share stock market, using business conditions, price momentum, valuation, and money flows. It produces rankings and higher- or lower-allocation suggestions.

HKUDS/Vibe-Trading · 39 tokens

strategy-pivot-designer

Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.

tradermonty/claude-trading-skills · 28 tokens

twitter-reader

Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…

himself65/finance-skills · 161 tokens

chenhao-limit-up

A framework for judging Chinese A-share stocks that have reached the daily price-rise limit, using market mood, sector leadership, and trading momentum.

questflowai/investorskills · 44 tokens

furusato

A Japanese hometown-tax donation manager for furusato nozei, a system where donations to municipalities can qualify for an income-tax or local-tax deduction. It reads donation receipts, stores donation records, and calculates deduction limits.

kazukinagata/shinkoku · 102 tokens

reading-receipt

An image-reading workflow for extracting structured information from receipts, invoices, and hometown-tax donation certificates. It can first extract text from PDFs and otherwise read their images.

kazukinagata/shinkoku · 64 tokens