Zum Inhalt springen
GET /v1/carry

Differential, carry income & leveraged return

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "days": 365,
        "note": "differential = rate_long - rate_short - financing_spread (annual %). Positive carry earns; negative pays. Returns leveraged by margin = notional / leverage.",
        "margin": 10000,
        "source": "CARRY",
        "leverage": 10,
        "notional": 100000,
        "direction": "positive_carry",
        "rate_long": 5.5,
        "rate_short": 0.5,
        "daily_carry": 13.69863,
        "differential_pct": 5,
        "financing_spread": 0,
        "carry_income_annual": 5000,
        "carry_income_period": 5000,
        "return_on_margin_annual_pct": 50,
        "return_on_margin_period_pct": 50
    },
    "meta": {
        "timestamp": "2026-06-11T07:49:22.593Z",
        "request_id": "3f453786-03a0-48b7-a04a-d6f5e911719f"
    },
    "status": "ok",
    "message": "Carry computed",
    "success": true
}