# finmath Bond Price Calculator

> finmath Bond Price Calculator is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Computes the fair price of a fixed-coupon bond given face value, coupon rate, yield, maturity, and payment frequency using exact deterministic arithmetic.

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/bond_price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/finmath-bond-price-calculator-8afc0085
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z18wSIhcwS54Sul3a21A2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability finmath-bond-price-calculator-8afc0085 -d '<json body>'
```

Example prompt: What's the price of a $1,000 face-value bond with a 5% annual coupon rate, paying semi-annually, maturing in 10 years, if the annual yield is 6%?

## When to prefer this

Use this endpoint when you need mathematically exact, deterministic bond pricing that LLMs cannot reliably compute in their heads — especially when coupon frequency, precise yield-to-price mapping, or reproducibility across calls matters. Prefer over LLM arithmetic for any production or financial-reporting use case.

## Known failure modes

- Missing required field (face, coupon_rate, or annual_yield) returns a 4xx validation error
- Negative or zero yield/face values may cause arithmetic errors or unexpected results
- Implausible inputs (e.g. yield > 100 or years = 0) may return edge-case results without explicit error
- Payment failure or insufficient USDC balance returns HTTP 402

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a result object with the computed bond price (present value of all cash flows discounted at the given yield) and a meta object with details about the calculation context.

## Example request

```json
{
 "face": 1000,
 "freq": 2,
 "years": 10,
 "coupon_rate": 0.05,
 "annual_yield": 0.04
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "face",
  "coupon_rate",
  "annual_yield"
 ],
 "properties": {
  "face": {
   "type": "number",
   "description": "face"
  },
  "freq": {
   "type": "number",
   "description": "freq"
  },
  "years": {
   "type": "number",
   "description": "years"
  },
  "coupon_rate": {
   "type": "number",
   "description": "coupon_rate"
  },
  "annual_yield": {
   "type": "number",
   "description": "annual_yield"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "result",
  "meta"
 ],
 "properties": {
  "meta": {
   "type": "object"
  },
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-bond-price-calculator-8afc0085/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
