# zaref Bond Price Calculator

> zaref Bond Price Calculator is a paid API for AI agents from zaref.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Calculates the clean or dirty price of a South African government bond given yield, coupon, and maturity inputs

## Facts

- Endpoint: HEAD https://zaref.dev/calc/bond-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/zaref-bond-price-calculator-8efbd9a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z5GWNBVlZwlZRU7VXO95k

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 zaref-bond-price-calculator-8efbd9a3 -d '<json body>'
```

Example prompt: What's the clean price of a South African government bond with a 10.5% coupon, maturing on 2032-02-28, settling on 2025-07-01, at a yield of 9.8%?

## When to prefer this

Use this endpoint when you need to price a South African government bond using local market conventions (e.g. BESA/JSE settlement rules, semi-annual coupons), especially when you already have the yield and want the corresponding price. Prefer this over generic bond calculators when South African-specific day count conventions and market norms matter.

## Known failure modes

- Missing required parameters (yield, coupon, maturity, settlement) returns a 4xx error
- Invalid date formats or impossible date combinations (settlement after maturity) return validation errors
- HEAD method used for discovery only — actual computation requires GET or POST
- Out-of-range yield or coupon values may return calculation errors
- Network or service unavailability returns 5xx

## How this service works

South African reference data as clean, cited JSON: fuel prices, interest rates, FX and bond yields, tax tables, tariffs, wages and grants, live government tenders and crypto prices, plus calculators. Built for AI agents and applications.

## Output

Returns a JSON object containing the calculated bond price (clean and/or dirty), accrued interest, and potentially duration or other risk metrics, cited and formatted for South African bond market conventions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "face_value": {
       "type": "string"
      },
      "yield_percent": {
       "type": "string"
      },
      "coupon_percent": {
       "type": "string"
      },
      "payments_per_year": {
       "type": "string"
      },
      "years_to_maturity": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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