finance_bond
Bond price, yield and duration — Offline bond math that matches spreadsheet PRICE / YIELD / DURATION / MDURATION. Required: coupon= (annual %) plus price= (clean, per 100) to solve yield OR ytm= (%) to solve price; and maturity=YYYY-MM-DD (optional settlement=, default today) or years=. Optional: freq= 1|2|4|12 (default 2), basis= 30/360 (default) | act/act | act/360 | act/365 | 30e/360, redemption= (default 100), face= (default 1000), call_date= + call_price= for yield-to-call/worst. Returns clean/dirty price, accrued interest, YTM, current yield, Macaulay and modified duration, convexity, DV01, +/-100bp price estimates, coupon dates and the cash-flow schedule. Price: $0.002 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coupon": "<coupon>",
"ytm": "<ytm>",
"settlement": "<settlement>",
"maturity": "<maturity>"
},
"name": "finance_bond"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ytm | Yes | 6.5 | |
| coupon | Yes | 5.75 | |
| maturity | Yes | 2017-11-15 | |
| settlement | Yes | 2008-02-15 |