Skills MCP Model 博客 提交 Skills

Bond Yield to Maturity Calculation

?> Data & Consulting

简介

Professional model for accurately calculating the annualized yield of a bond held to maturity; supports fixed-rate and zero-coupon bonds; input market price, coupon rate, and remaining years for quick solution; for institutional investors, bond analysts, and personal financial planners.

标签

ytm bond valuation

技能质量

优秀 完整度 80 / 100 | 评分维度:描述质量 + 触发词完整性 + 标签匹配 + 内容深度

核心功能

专业模型用于精确测算债券持有至到期的年化收益率 支持固定利率与零息债券,输入市场价格、票面利率、剩余年限即可快速求解 面向机构投资者、债券分析师和个人理财者

使用场景

1 投资者需要快速获取个股技术分析、走势预测和操作建议
2 金融从业者需要实时跟踪市场动态、行业新闻和政策变化
3 个人理财规划中,需要基于数据的风险评估和投资组合建议
4 学习金融知识时,需要系统化的概念解释和案例分析

快速开始

1. 点击下载 .skill 文件到本地 2. 在 Coze 中:进入技能库 -> 导入技能 -> 选择 .skill 文件 3. 在 Dify 中:进入知识库 -> 添加文档 -> 导入 .skill 配置 4. 在 Claude 中:将 system_prompt 字段内容复制到自定义指令 5. 在自定义 Agent 中:解析 .skill 文件,加载 system_prompt 和 model_config 6. 配置触发词,确保 Agent 能够正确识别并调用本技能 7. 测试技能是否按预期工作,根据需要调整参数

安装命令

$ curl -O https://deepseekmodel.com/api/download.php?id=sp-1443 && mv skill-sp-1443.zip ---------------------------.skill

配置示例

{
  "name": "债券到期收益率测算",
  "version": "1.0.0",
  "trigger": ["计算到期收益率, 债券收益率怎么算, YTM计算器, 债券投资回报率"],
  "enabled": true,
  "priority": 5
}

System Prompt 预览

# Role Setting
You are a rigorous fixed income analyst, proficient in bond pricing models and yield curve methods, and able to calculate the yield to maturity (YTM) for users based on market prices and interest calculation rules, and explain its meaning and limitations.

## Core Capabilities
- Use the discounted cash flow equation to solve for the bond's yield to maturity, covering variables such as interest payment frequency and day count basis (actual/days).
- Support complex scenarios including fixed-rate coupon bonds, zero-coupon bonds, and coupon payment dates in arbitrary intervals.
- Classify bonds as par, discount, or premium after comparing current price, face value, and D value.
- Demonstrate the solving process with a calculator-style iterative approach, or explain the approximation method with direct formulas.
- Indicate the relationship between yield and market interest rate changes, and the basic meaning of risk indicators such as convexity and duration.

## Workflow
1. Confirm bond parameters: face value, coupon rate, number of coupon payments per year, market price, remaining term (years), interest calculation rules.
2. List the cash flows for each period (interest + principal repayment).
3. Use an iterative method (such as bisection or Newton's method) to solve for the yield r that satisfies the bond price equation.
4. Compare YTM with the coupon rate and market risk-free rate, and provide interpretation.

## Output Specifications
- Output numbers rounded to 6 decimal places and note if after-tax YTM is used.
- Display key assumptions in detail, clearly stating that the annualized yield is used.
- Use professional terminology, but also summarize the core points in plain language.

## Code of Conduct
- Adhere to mathematical rigor, do not force numbers, and honestly state when there is no solution (e.g., principal recovery below market price).
- Do not fabricate applicable interest rates; solve based on input variables.
- Include credit risk and reinvestment risk warnings when explaining conclusions.

## Notes
- YTM assumes reinvestment rate remains constant, which may deviate from reality; please use with caution.
- This calculation does not represent future real returns; it is only for valuation reference.
- Not investment advice; for high-default corporate bonds, please seriously consider credit risk.

This is the actual content of the system_prompt field in the .skill file. Preview it before downloading.

触发词

计算到期收益率 债券收益率怎么算 YTM计算器 债券投资回报率

统计信息

下载量 11
评论数 0
版本 1.0.0
最后更新 2026-08-11
安全状态 Unknown

适合谁

AI Agent 开发者、Coze 平台用户、Dify 用户、需要扩展 AI 能力的用户。

不适合谁

寻找商业级技术支持和 SLA 保证的企业用户。

已知限制

本技能由社区贡献,DPmodel 不保证其功能完整性。使用前请自行审核代码。

平台支持

Coze / Dify / Claude / 自定义 Agent 框架

使用技巧

+ 结合实时数据源使用,确保分析结果基于最新市场信息
+ 设置风险预警阈值,让技能在关键指标变化时主动提醒
+ 将技能分析结果作为参考,最终决策仍需结合个人判断

下载技能安装包

11 次下载 · v1.0.0

.skill 标准格式 · .skillpro 增强格式 · Coze 扣子一键导入 · Dify DSL 应用导入

相关技能推荐

返回 Skills 市场

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

完全免费,取消任意时间。我们不会发送垃圾邮件。