Naar de inhoud
GET /v1/composition

Latest full debt breakdown by security class

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/debtcomposition-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/debtcomposition-api/v1/composition" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/debtcomposition-api/v1/composition", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/debtcomposition-api/v1/composition");
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/debtcomposition-api/v1/composition",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "date": "2026-05-31",
        "count": 11,
        "source": "US Treasury (MSPD)",
        "composition": [
            {
                "share_pct": 40.66,
                "amount_busd": 15942.7,
                "amount_musd": 15942721.4171,
                "security_type": "Marketable",
                "security_class": "Notes",
                "held_by_public_busd": 15939.4,
                "intragovernmental_busd": 3.3
            },
            {
                "share_pct": 20.51,
                "amount_busd": 8039.7,
                "amount_musd": 8039717.26834849,
                "security_type": "Nonmarketable",
                "security_class": "Government Account Series",
                "held_by_public_busd": 366.8,
                "intragovernmental_busd": 7672.9
            },
            {
                "share_pct": 17.24,
                "amount_busd": 6758.8,
                "amount_musd": 6758778.5857,
                "security_type": "Marketable",
                "security_class": "Bills",
                "held_by_public_busd": 6758.3,
                "intragovernmental_busd": 0.5
            },
            {
                "share_pct": 13.8,
                "amount_busd": 5412.1,
                "amount_musd": 5412096.5247,
                "security_type": "Marketable",
                "security_class": "Bonds",
                "held_by_public_busd": 5401.1,
                "intragovernmental_busd": 11
            },
            {
                "share_pct": 5.4,
                "amount_busd": 2118,
                "amount_musd": 2118028.27552178,
                "security_type": "Marketable",
                "security_class": "TIPS",
                "held_by_public_busd": 2117.5,
                "intragovernmental_busd": 0.5
            },
            {
                "share_pct": 1.73,
                "amount_busd": 678.3,
                "amount_musd": 678316.5054,
                "security_type": "Marketable",
                "security_class": "Floating Rate Notes",
                "held_by_public_busd": 678.2,
                "intragovernmental_busd": 0.1
            },
            {
                "share_pct": 0.38,
                "amount_busd": 148.3,
                "amount_musd": 148275.82870477,
                "security_type": "Nonmarketable",
                "security_class": "United States Savings Securities",
                "held_by_public_busd": 148.3,
                "intragovernmental_busd": 0
            },
            {
                "share_pct": 0.23,
                "amount_busd": 89.9,
                "amount_musd": 89868.07291209,
                "security_type": "Nonmarketable",
                "security_class": "State and Local Government Series",
                "held_by_public_busd": 89.9,
                "intragovernmental_busd": 0
            },
            {
                "share_pct": 0.03,
                "amount_busd": 10.7,
                "amount_musd": 10
…