# fastapi.online — Bond Yields Calculator

> fastapi.online — Bond Yields Calculator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-13).

Calculates bond yield metrics via a self-hosted finance calculator endpoint, priced per call with crypto.

## Facts

- Endpoint: POST https://api.fastapi.online/yields?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-bond-yields-calculator-61a44ce8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I7Ai7MtE6n8yIABVW8Grv

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 fastapi-online-bond-yields-calculator-61a44ce8 -d '<json body>'
```

Example prompt: Calculate the yield to maturity for a bond with a face value of $1000, a coupon rate of 5%, a current price of $950, and 10 years to maturity.

## When to prefer this

Choose this endpoint when you need a lightweight, per-call bond yield computation without subscribing to a full financial data platform. Ideal for agents that need on-demand fixed-income math without API keys or monthly fees, paying only $0.002 USDC per calculation.

## Known failure modes

- Missing required bond input parameters returns a validation error
- Invalid numeric values (negative price, zero maturity) may cause computation errors
- Malformed JSON body returns 400 bad request
- Network or server unavailability returns 5xx error
- Insufficient USDC payment causes 402 payment required

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns computed bond yield metrics such as yield to maturity (YTM), current yield, or related financial calculations based on the bond parameters provided.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-bond-yields-calculator-61a44ce8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
