/v1/cagr
Compound annual growth rate
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/cagr-api/v1/cagr" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/cagr-api/v1/cagr", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/cagr-api/v1/cagr");
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/cagr-api/v1/cagr",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"cagr": 0.14869835,
"note": "CAGR = (end/begin)^(1/years) − 1 — the smooth annual rate that compounds the start value to the end value. €1,000 → €2,000 over 5 years is ≈14.87 %/yr.",
"inputs": {
"years": 5,
"end_value": 2000,
"begin_value": 1000
},
"multiple": 2,
"cagr_percent": 14.869835,
"total_return": 1,
"total_return_percent": 100
},
"meta": {
"timestamp": "2026-06-05T19:50:25.539Z",
"request_id": "e095da69-bd5b-4a80-9d82-0b607afe2900"
},
"status": "ok",
"message": "Compound annual growth rate",
"success": true
}