Explore in MochiBot. Install in chat.

Hosted workspaces and MochiBot lightweight setups include the Skills assistant. Choose a Skill and ask for installation in chat. Other OpenClaw setups can follow the first-install guide.

How to use Skills →
MOCHILAB / AI SKILL

Bond Yield and Duration Lab

Price plain fixed-coupon bonds and solve nominal YTM, duration, convexity and rate-shock repricing.

What it does

Price plain fixed-coupon bonds and solve nominal YTM, duration, convexity and rate-shock repricing.

  • Discount remaining coupon cash flows
  • Solve nominal YTM from dirty price
  • Macaulay and modified duration plus convexity
  • Exact versus approximated yield-shock repricing

Try saying

Use my supplied records to price plain fixed-coupon bonds and solve nominal YTM, duration, convexity and rate-shock repricing.
Export a reproducible report with the assumptions, key metrics and detailed CSV. Ask me for missing facts first.

Calculation scope

Equally spaced plain fixed-coupon remaining cash flows are valued at a coupon-date boundary. market_dirty_price includes accrued interest, not a clean quote. Yield is nominal annual divided by payments_per_year; remaining_periods counts coupon periods, not years. Callable, floating-rate, defaulted and irregular-period instruments are excluded.

Deliverables and runtime

Includes executable Python 3.10+ standard-library calculations, independent numerical tests, fictional examples and an input reference. Supported flat collections accept CSV. No extra market-data key is needed. Files stay in the active assistant workspace, with input and output hashes. Analysis only; no account access or automatic trading.

References

Your tasks, with you. Hear when they are ready.

Try hosted workspace service for 3 days without upfront payment or server setup. Bring your model API; usage is billed separately.