Borrowing it
Nothing to install: this file belongs to glide-the/im-dream. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/glide-the/im-dream/develop/.claude/skills/investment-data/SKILL.mdgit clone --depth 1 https://github.com/glide-the/im-dreamWrote 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.
[](https://agentmods.dev/skills/glide-the/im-dream/investment-data)<a href="https://agentmods.dev/skills/glide-the/im-dream/investment-data"><img src="https://agentmods.dev/badge/skills/glide-the/im-dream/investment-data/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.
<a href="https://agentmods.dev/skills/glide-the/im-dream/investment-data"><img src="https://agentmods.dev/badge/skills/glide-the/im-dream/investment-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.01336 |
| Opus 5.5 | $0.00025 | $0.00534 |
| Sonnet 5.5 | $0.00012 | $0.00267 |
| Haiku 4.5 | $0.00006 | $0.00134 |
Grade A, and why
investment-data scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
"requires": { "bins": ["python3", "wget", "tar"] }, How it starts
The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.
A 股投资数据获取 Skill
基于 investment_data 项目,提供高质量 A 股投资数据。
🎯 核心功能
- 数据下载 - 自动下载最新数据集
- 数据查询 - 查询股票历史数据
- 数据更新 - 每日自动更新
- 多格式支持 - Qlib、CSV、JSON
📊 数据类型
- 日终价格 - 开高低收、成交量、成交额
- 涨跌停数据 - 涨跌停价格、涨跌停状态
- 指数数据 - 主要指数价格和权重
- 复权数据 - 前复权、后复权价格
🚀 快速开始
1. 下载最新数据
python scripts/download_data.py --latest
2. 查询股票数据
from scripts.data_client import InvestmentData
# 初始化客户端
client = InvestmentData()
# 查询单只股票
df = client.get_stock_data("000001.SZ", start_date="2024-01-01", end_date="2024-12-31")
# 查询指数成分
weights = client.get_index_weights("000300.SH")
# 查询涨跌停
limits = client.get_limit_data("000001.SZ", date="2024-12-01")
3. 批量查询
python scripts/query_batch.py --stocks "000001.SZ,000002.SZ" --start 2024-01-01 --end 2024-12-31 --output csv
📖 详细文档
🔧 配置
环境变量
# 数据存储路径(可选)
export INVESTMENT_DATA_DIR=~/.qlib/qlib_data/cn_data
# Tushare Token(可选,用于实时更新)
export TUSHARE_TOKEN=your_token_here
配置文件
编辑 config/config.yaml:
data:
# 数据存储路径
data_dir: ~/.qlib/qlib_data/cn_data
# 自动更新
auto_update: true
update_time: "09:00"
# 数据源优先级
sources:
- final
- ts
- ak
- yahoo
query:
# 默认输出格式
output_format: csv
# 日期格式
date_format: "%Y-%m-%d"
📝 使用示例
Python API
from scripts.data_client import InvestmentData
client = InvestmentData()
# 查询股票日 K 线
df = client.get_stock_daily("000001.SZ", "2024-01-01", "2024-12-31")
print(df.head())
# 查询指数数据
index_df = client.get_index_daily("000300.SH", "2024-01-01", "2024-12-31")
# 查询股票列表
stocks = client.get_stock_list(date="2024-12-31")
# 查询退市股票
delisted = client.get_delisted_stocks()
命令行
# 查询单只股票
python scripts/query.py --stock 000001.SZ --start 2024-01-01 --end 2024-12-31
# 批量查询
python scripts/query_batch.py --file stocks.txt --start 2024-01-01 --output json
# 更新数据
python scripts/update_data.py --daily
# 导出数据
python scripts/export.py --stock 000001.SZ --format excel
What ships with it
12 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.
- _meta.json 134 B
- .clawhub/origin.json 147 B
- config/config.yaml 550 B
- examples/usage_examples.md 4.8 KB
- README.md 5.4 KB
- references/fields.md 3.7 KB
- requirements.txt 95 B
- scripts/data_client.py 6.0 KB runs code
- scripts/download_data.py 3.8 KB runs code
- scripts/query.py 1.4 KB runs code
- skill-card.md 2.5 KB
- tests/test_basic.py 1.1 KB runs code
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.
- 12d ago First seen · 205 lines · 62 tokens per session scan A bc43d8626aee
investment-data is a skill published in the GitHub repository glide-the/im-dream (0 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 1,336 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.
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.
twitter-reader
Read Twitter/X for financial research through opencli: the user's home timeline, tweet search, trending topics, bookmarks, a user's recent tweets, threads, articles, profiles, followers and following, and notifications. Use this skill whenever the user wants to know what people are saying on Twitter/X or fintwit about…
strategy-pivot-designer
Detect backtest iteration stagnation and generate structurally different strategy pivot proposals when parameter tuning reaches a local optimum.
energy-procurement
Codified expertise for electricity and gas procurement, tariff optimization, demand charge management, renewable PPA evaluation, and multi-facility energy cost management. Informed by energy procurement managers with 15+ years experience at large commercial and industrial consumers. Includes market structure analysis…
china-portfolio-monitoring
A monitoring framework for tracking the financial results, operating measures, strategic milestones, and risks of companies held by China-focused private-equity funds. It uses measures such as revenue growth, margins, debt, cash flow, and return on equity.
airdrop-hunting-guide
Guide to finding and qualifying for crypto airdrops — eligibility criteria, farming strategies, on-chain activity requirements, Sybil detection avoidance, and tracking tools. Use when helping users understand airdrops, check eligibility, or plan participation strategies.