API · x402

Bond price from yield or yield to maturity from price with duration, modified duration,…

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

by Saylor Innovations Knowledge Base · verified provider · updated 2026-10-26

What it does

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

Tags: bond price from yield · yield to maturity calculator · bond duration and convexity · is a bond at a premium · price change if rates rise one

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/saylorinnovations-api-finance-bond.json for the price and payment options.
  3. Pay. Call GET https://saylorinnovations.com/api/finance/bond. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC or USDT or SOL on Base, Polygon, Arbitrum One, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.01 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base, Polygon, Arbitrum One, Solana

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactPolygon
eip155:137
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactArbitrum One
eip155:42161
USDC$0.010xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDC$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
USDT$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
exactSolana
solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp
SOL$0.017LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7120s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
    "amount": "10000",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
    "asset": "So11111111111111111111111111111111111111112",
    "amount": "95830",
    "amountUsd": 0.01,
    "maxTimeoutSeconds": 120
  }
]

Schemas

Output schema (JSON Schema)
{
  "type": "object",
  "properties": {
    "inputs": {
      "type": "object",
      "description": "Inputs used: face value, annual coupon rate, years to maturity and payments per year"
    },
    "yield_to_maturity": {
      "type": "number",
      "description": "Yield to maturity"
    },
    "yield_to_maturity_percent": {
      "type": "number",
      "description": "Yield to maturity, as a percentage"
    },
    "price": {
      "type": "number",
      "description": "Price"
    },
    "price_percent_of_par": {
      "type": "number",
      "description": "Price percent of par"
    },
    "trading": {
      "type": "string",
      "description": "Whether the bond trades at a premium, discount or par"
    },
    "current_yield_percent": {
      "type": "number",
      "description": "Current yield, as a percentage"
    },
    "macaulay_duration_years": {
      "type": "number",
      "description": "Macaulay duration years"
    },
    "modified_duration": {
      "type": "number",
      "description": "Modified duration"
    },
    "convexity": {
      "type": "number",
      "description": "Convexity of the bond"
    },
    "note": {
      "type": "string",
      "description": "Caveat or context for reading the result"
    },
    "source": {
      "type": "string",
      "description": "Data source the values come from"
    },
    "annual_coupon_income": {
      "type": [
        "number",
        "null"
      ],
      "description": "Annual coupon income"
    },
    "price_change_if_yield_rises_1pt_percent": {
      "type": [
        "number",
        "null"
      ],
      "description": "Price change if yield rises 1pt, as a percentage"
    },
    "price_change_if_yield_falls_1pt_percent": {
      "type": [
        "number",
        "null"
      ],
      "description": "Price change if yield falls 1pt, as a percentage"
    },
    "approx_price_move_per_1pt_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Approx price move per 1pt, in US dollars"
    }
  },
  "required": [
    "inputs",
    "price",
    "yield_to_maturity"
  ]
}
Example shape — generated from the schema, not a captured live response
{
  "inputs": {},
  "yield_to_maturity": 0,
  "yield_to_maturity_percent": 0,
  "price": 0,
  "price_percent_of_par": 0,
  "trading": "string",
  "current_yield_percent": 0,
  "macaulay_duration_years": 0,
  "modified_duration": 0,
  "convexity": 0,
  "note": "string",
  "source": "string",
  "annual_coupon_income": 0,
  "price_change_if_yield_rises_1pt_percent": 0,
  "price_change_if_yield_falls_1pt_percent": 0,
  "approx_price_move_per_1pt_usd": 0
}

Examples

curl
curl "https://saylorinnovations.com/api/finance/bond"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://saylorinnovations.com/api/finance/bond");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://saylorinnovations.com/api/finance/bond")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
Saylor Innovations Knowledge Base
Endpoint
https://saylorinnovations.com/api/finance/bond
Side effects
Paid calls settle the advertised payment; see the provider contract for execution behavior.
Machine-readable
/resources/saylorinnovations-api-finance-bond.json