Check a bond valuation for consistency
check_consistency_toolAudit a claimed bond yield against required bounds: below par yields must exceed coupon and current yield; above par reverses. Returns the correct yield to show error size.
Instructions
Test a yield someone has already produced against the required bounds.
Use this to audit a figure rather than compute one — for example when checking work, or when a yield appears in a document and its plausibility matters.
A bond priced below par must yield more than its coupon and more than its current yield; above par, the ordering reverses. These bounds need no iteration and reject a whole class of wrong answers immediately. The correctly solved yield is returned too, so the size of any error is visible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day_count | No | Day-count convention used for accrual. ACT/ACT ICMA is the standard for most government and corporate bonds. | ACT/ACT ICMA |
| face_value | Yes | Redemption amount in currency units, e.g. 1000. | |
| issue_date | Yes | Issue (dated) date in ISO format, e.g. 2024-03-15. | |
| maturity_date | Yes | Redemption date in ISO format, e.g. 2029-03-15. | |
| claimed_ytm_pct | Yes | The yield to audit, as a percentage. This is the figure to be tested, not one to compute. | |
| coupon_rate_pct | Yes | Annual coupon rate as a PERCENTAGE. Pass 4.0 for a 4% coupon, not 0.04. Zero for a zero-coupon bond. | |
| settlement_date | Yes | Valuation date in ISO format. Must fall between issue and maturity, e.g. 2025-09-11. | |
| payments_per_year | Yes | Coupon payments per year: 1 annual, 2 semi-annual, 4 quarterly, 12 monthly. Most government bonds pay semi-annually. | |
| clean_price_pct_of_face | Yes | Quoted clean price as a PERCENTAGE OF FACE, excluding accrued interest. Pass 97.80 for a bond quoted at 97.80%. This is not a currency amount. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||