Hermes Plant logo

Hermes Plant

Finance & quant APIs for AI agents

Bond yield, duration, and amortization for AI agents

In bond mode, BondLens solves price from yield or yield-to-maturity from price, plus current yield, Macaulay and modified duration, and convexity. In loan mode it produces a level-payment amortization schedule with mo…

4 resources

What BondLens computes, What you send, How an agent calls it

What BondLens computes

In bond mode, BondLens solves price from yield or yield-to-maturity from price, plus current yield, Macaulay and modified duration, and convexity. In loan mode it produces a level-payment amortization schedule with monthly payment and total interest. One endpoint covers fixed income and lending math.

What you send

For a bond, send face value, coupon rate, periods to maturity, payment frequency, and either a price or a yield. For a loan, send principal, annual rate, and term in months. Everything is computed from the instrument terms — there is no rate feed to license.

How an agent calls it

POST the terms to /api/agent-services/bond/analyze and pay $0.25 per call over x402. A fixed-income or credit agent gets duration and convexity for rate-sensitivity analysis, or a full amortization schedule for underwriting, in a single deterministic response.

Why determinism matters

Yield-to-maturity needs a solver and duration needs careful discounting; both are error-prone for a model guessing tokens. BondLens returns audited numbers a risk desk can rely on.