/v1/annuity
Solve a level annuity
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/financecalc-api/v1/annuity" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/financecalc-api/v1/annuity", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/financecalc-api/v1/annuity");
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/annuity",
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": {
"type": "ordinary annuity (payments at period end)",
"payment": 100,
"periods": 10,
"future_value": 1257.79,
"rate_percent": 5,
"present_value": 772.17
},
"meta": {
"timestamp": "2026-06-03T17:42:08.118Z",
"request_id": "37373a41-d88c-40c6-898a-7826849b78db"
},
"status": "ok",
"message": "Annuity",
"success": true
}