/v1/carry
Differential, carry income & leveraged return
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}