Zum Inhalt springen
GET /v1/meta

Spec

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/bond-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/bond-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bond-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bond-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/bond-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "notes": "Face value defaults to 1000; coupon_rate and ytm are annual percents; maturity in years; frequency is coupons per year (default 2). Zero-coupon = coupon_rate 0.",
        "service": "bond-api",
        "formulae": {
            "price": "Σ c/(1+y)ᵗ + F/(1+y)ⁿ",
            "convexity": "Σ t(t+1)·CF/(1+y)^(t+2) / price",
            "modified_duration": "Macaulay / (1 + y)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/price": "Bond price, clean price, current yield and premium/discount from the YTM.",
            "GET /v1/yield": "Yield to maturity and current yield from a market price.",
            "GET /v1/duration": "Macaulay and modified duration, convexity and DV01."
        },
        "description": "Bond analytics: price from yield, yield to maturity from price, and Macaulay/modified duration with convexity."
    },
    "meta": {
        "timestamp": "2026-06-05T03:09:00.502Z",
        "request_id": "6482e1ac-3a62-482f-8436-cc9bc8f62886"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}