Μετάβαση στο περιεχόμενο
GET /v1/future

Future value of savings

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/savings-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "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
}