/v1/future
Future value of savings
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/savings-api/v1/future" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/savings-api/v1/future", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/savings-api/v1/future");
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/savings-api/v1/future",
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": {
"note": "FV = initial·(1+r)^n + deposit·((1+r)^n − 1)/r, with r the monthly rate and n the number of months.",
"inputs": {
"years": 10,
"initial": 1000,
"annual_rate": 5,
"monthly_deposit": 200
},
"months": 120,
"future_value": 32703.47,
"interest_earned": 7703.47,
"total_contributions": 25000
},
"meta": {
"timestamp": "2026-06-04T18:38:15.846Z",
"request_id": "4d233409-e267-4c78-afd6-ba607e96de34"
},
"status": "ok",
"message": "Future value",
"success": true
}