/v1/irr
Internal rate of return
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/financecalc-api/v1/irr" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/financecalc-api/v1/irr", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/financecalc-api/v1/irr");
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/financecalc-api/v1/irr",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"irr": 0.23375193,
"cashflows": [
-1000,
500,
500,
500
],
"npv_at_irr": 0,
"irr_percent": 23.3752
},
"meta": {
"timestamp": "2026-06-03T17:42:08.315Z",
"request_id": "10d911fd-c18a-4d4f-bda7-9740f76bc0ac"
},
"status": "ok",
"message": "IRR",
"success": true
}