Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsMITIn 1 marketplace
Reproduces CGB futures cheapest-to-deliver, implied repo, and net basis and examines financing and delivery-switch scenarios.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 | English
冻结快照上的最便宜可交割券、隐含回购利率与净基差复现,加上融资 / 曲线情景和全成本可执行边界。
这是本地研究项目
agent-cfe-ctd-irr:面向研究员与 AI Agent 编排场景,把国债期货交割券判定、融资与 CTD 切换情景、全成本闸门整理成 L1–L5 研究输出。不自动下单,不输出无条件买卖指令,也不承诺收益。不是 QuantSkills 官方或社区收录项目;未经维护者审核,不代表 QuantSkills 官方背书。
这组可交割券里谁是 CTD,账面净基差盖不盖得住全成本?
flowchart LR
q["研究问题"] --> d["数据前提<br/>冻结快照 / 缺口降级"]
d --> p["定价复现<br/>应计·发票价·IRR·BNOC"]
p --> s["情景扫描<br/>融资·曲线平移"]
s --> b["可执行边界<br/>全成本·容量·CF 敏感性"]
b --> o["L1–L5 研究输出<br/>结论·证据·图表·导出"]
o --> human["人工阅读"]
b -. 不下单·账面偏差不是可执行结论 .-> human
本地运行产物写入 reports/runtime_out/<run_id>/:
| 层级 | 内容 | 形式 |
|---|---|---|
| L1 | 一句话条件化结论 | report.md / stdout |
| L2 | 逐券证据表、CTD 双判据、可执行边界 | Markdown 表 |
| L3 | IRR 排序 | ASCII |
| L4 | 研究仪表盘 | delivery/visualization/index.html |
| L5 | 逐券表、情景扫描、边界与门禁 | CSV / JSON |
结构样例见 reports/samples/e2e_ctd_sample.md。样例只展示版式;打开 delivery/visualization/index.html 看当前结果。
agent-cfe-ctd-irr/
├── AGENTS.md Agent 声明 + 行为入口
├── SKILL.md 方法正文:输入输出、运行、验收与边界
├── README.md / README.en.md 仓库主页
├── LICENSE MIT
├── agents/ Cursor / OpenAI / portable loader / 发布清单
├── runtime/ 定价、情景、门禁与统一 CLI
├── scripts/ 快照、重建、对照
├── references/ 数据指南、方法论、可执行边界、价值验收
├── data/ 冻结快照与官方锚定输入
├── tests/ 硬断言
├── reports/runtime_out/ 当前口径两个 run,外加一份 v1 验收锚
├── reports/samples/ 结构样例
├── delivery/visualization/ 客户页面(双击 index.html)
└── requirements.txt
方式一:读样例 —— 打开 reports/samples/e2e_ctd_sample.md。客户视图直接打开 delivery/visualization/index.html。
方式二:在 AI Agent 里触发
在冻结快照上复现国债期货 CTD、IRR 和净基差,
对照买入持有与简单对冲,扫描融资和 CTD 切换,给出全成本可执行边界。
缺数据就降级并标明缺什么,不要编造数值,也不要把账面偏差写成无风险套利。
方式三:本机 CLI
python -m runtime self-test
python -m unittest discover -s tests -v
python -m runtime run --input data/input_snapshot.json
python scripts/rebuild_all.py
计算主链路是 Python 3.10+ 标准库,不必先 pip install。官方数据拉取是可选链路,需要 panda_data SDK;凭据只从本机 ~/.pandadata/pandadata.env 读入内存。调用前先读依赖 Skill ~/.claude/skills/pandadata-api/SKILL.md。
rebuild_all.py 从输入规格重出两个 run、发布快照、对照和客户页面,不删除既有 run。修正历史数据后加 --refresh-snapshot。
本仓库以 AGENTS.md 为 Agent 声明与行为入口,方法正文在 SKILL.md,可在 QuantStudio、Claude Code、Codex、Cursor 中加载:
| 运行时 | 入口 |
|---|---|
| Claude Code / Codex | 加载本目录 AGENTS.md,计算前读 SKILL.md |
| Cursor | agents/cursor-rule.mdc |
| OpenAI 兼容 | agents/openai.yaml |
| 其他宿主 | agents/portable-loader.md |
| QuantStudio | 平台路径由 DSH_HOME / QUANTSTUDIO_HOME 发现,见 agents/portable-loader.md |
发布元数据:agents/skill-manifest.yaml。依赖 Skill:pandadata-api。
data/input_snapshot.json(声明式情景,source_mode=degraded)。data/official/,尚未接入计算。INVALID_MIXED_STATE,不作为市场结论。data_version(输入)与 semantics_version(计算口径,当前 v2-exante-execution)是两条独立轴。当前口径下,持仓等于结算日判定的期初 CTD。references/data_guide.md。live_order=false;交易环节是事先声明的等价回放)。alpha-* 生产因子包,不产出可交易 parquet。AGENTS.md — 项目声明、行为入口、场景、限制与元数据SKILL.md — 方法正文、输入输出与复跑references/methodology.md — 公式与事前 / 事后口径references/data_guide.md — 字段与时点references/executable_boundary.md — 可执行边界本地维护(maintainer_type: local)。版权见 LICENSE(ProjectAGI,2026)。
MIT。详见 LICENSE。
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
cfe-ctd-irr@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin cfe-ctd-irrPlugins from other owners that cover similar ground