Vai al contenuto
GET /v1/compound-interest

Compound interest

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/fincalc-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/fincalc-api/v1/compound-interest" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fincalc-api/v1/compound-interest", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fincalc-api/v1/compound-interest");
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/fincalc-api/v1/compound-interest",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "years": 20,
        "principal": 10000,
        "annual_rate": 7,
        "future_value": 300850.72,
        "interest_earned": 170850.72,
        "compounds_per_year": 12,
        "total_contributions": 130000,
        "contribution_per_period": 500
    },
    "meta": {
        "timestamp": "2026-06-02T16:52:02.926Z",
        "request_id": "989624e9-4e07-496e-8aa6-288ca0908d42"
    },
    "status": "ok",
    "message": "Compound interest",
    "success": true
}