# Saylor Innovations Bond Calculator

> Saylor Innovations Bond Calculator is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Calculates bond price from yield-to-maturity (or YTM from price) along with duration, modified duration, convexity, and current yield metrics

## Facts

- Endpoint: GET https://saylorinnovations.com/api/finance/bond?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-bond-calculator-b7a128f8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v1vTg9qpmE4H7RhcE-Wj7

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 saylor-innovations-bond-calculator-b7a128f8
```

Example prompt: Calculate the price and duration metrics for a bond with a 5% annual coupon, 10 years to maturity, and a yield to maturity of 6%, with semi-annual payments.

## When to prefer this

Use this endpoint when you need a complete set of fixed-income analytics (price, YTM, duration, modified duration, convexity, current yield) computed in a single call without needing real-time market data feeds. It is ideal for valuing a hypothetical or known bond given a yield assumption, performing interest rate sensitivity analysis, or enriching bond data in an agent workflow. Prefer this over a full market data service when you already know the coupon rate, maturity, and yield and simply need derived analytics.

## Known failure modes

- Missing required parameters (coupon, years, ytm) returns a 400 error
- Invalid or non-numeric parameter values cause computation errors
- Extreme yield or coupon values (e.g. negative YTM) may produce unexpected results or errors
- Payment frequency values outside 1, 2, 4, or 12 may be rejected or default to 2
- Zero or negative years to maturity are likely to fail validation

## How this service works

Bond price from yield or yield to maturity from price with duration, modified duration, convexity, current yield and the price move for a one point yield change

## Output

Returns a JSON object with the bond price (absolute and as percent of par), yield to maturity (decimal and percent), Macaulay duration in years, modified duration, convexity, current yield percent, annual coupon income, whether the bond trades at premium/discount/par, the inputs used (face value, coupon rate, years, payment frequency), an optional note, and a data source attribution.

## 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": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coupon",
      "years",
      "ytm"
     ],
     "properties": {
      "ytm": {
       "type": "string",
       "description": "Yield to maturity decimal (to compute price)"
      },
      "freq": {
       "type": "string",
       "description": "optional payments per year 1, 2 (default), 4 or 12"
      },
      "years": {
       "type": "string",
       "description": "Years to maturity"
      },
      "coupon": {
       "type": "string",
       "description": "Annual coupon rate as decimal (0.05 = 5%)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "inputs",
      "price",
      "yield_to_maturity"
     ],
     "properties": {
      "note": {
       "type": "string",
       "description": "Caveat or context for reading the result"
      },
      "price": {
       "type": "number",
       "description": "Price"
      },
      "inputs": {
       "type": "object",
       "description": "Inputs used: face value, annual coupon rate, years to maturity and payments per year"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "trading": {
       "type": "string",
       "description": "Whether the bond trades at a premium, discount or par"
      },
      "convexity": {
       "type": "number",
       "description": "Convexity of the bond"
      },
      "modified_duration": {
       "type": "number",
       "description": "Modified duration"
      },
      "yield_to_maturity": {
       "type": "number",
       "description": "Yield to maturity"
      },
      "annual_coupon_income": {
       "type": [
        "number",
        "null"
       ],
       "description": "Annual coupon income"
      },
      "price_percent_of_par": {
       "type": "number",
       "description": "Price percent of par"
      },
      "current_yiel
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-bond-calculator-b7a128f8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
