Zinseszins API
Prognostiziert Sparwachstum mit Zinseszins bei jährlicher, vierteljährlicher, monatlicher oder täglicher Verrechnung.
Anforderungsheader
| Name | Required | Description |
|---|---|---|
X-RapidAPI-Key | required | Your RapidAPI key. Get one free. |
X-RapidAPI-Host | required | compound-interest.p.rapidapi.com |
Endpunkte
/v1/finance/interest Compute compound interest growth over time
Parameter
| Name | Type | Required | Default | Constraints |
|---|---|---|---|---|
frequency | integer | optional | 1 | — |
principal | number | optional | — | <= 1000000000000 |
rate | number | optional | — | <= 1000 |
years | number | optional | — | <= 1000 |
Codebeispiele
curl --request GET \
--url 'https://compound-interest.p.rapidapi.com/v1/finance/interest?frequency=1&principal=0' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: compound-interest.p.rapidapi.com' const url = "https://compound-interest.p.rapidapi.com/v1/finance/interest?frequency=1&principal=0";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "compound-interest.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://compound-interest.p.rapidapi.com/v1/finance/interest"
querystring = {"frequency": 1, "principal": 0}
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "compound-interest.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json()) /v1/finance/interest/frequencies List all supported compounding frequencies (per year).
Codebeispiele
curl --request GET \
--url 'https://compound-interest.p.rapidapi.com/v1/finance/interest/frequencies' \
--header 'x-rapidapi-key: YOUR_API_KEY' \
--header 'x-rapidapi-host: compound-interest.p.rapidapi.com' const url = "https://compound-interest.p.rapidapi.com/v1/finance/interest/frequencies";
const options = {
method: "GET",
headers: {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "compound-interest.p.rapidapi.com"
}
};
const response = await fetch(url, options);
const data = await response.json();
console.log(data); import requests
url = "https://compound-interest.p.rapidapi.com/v1/finance/interest/frequencies"
headers = {
"x-rapidapi-key": "YOUR_API_KEY",
"x-rapidapi-host": "compound-interest.p.rapidapi.com"
}
response = requests.get(url, headers=headers)
print(response.json()) Interaktives Beispiel
$ GET /v1/finance/interest?principal=1000&rate=5&years=10&frequency=12
{"final_amount":1647.01,"interest_earned":647.01} Abonnieren und lizenzieren
Greifen Sie auf diese API mit kommerziellen Stufen auf RapidAPI zu. Flexible Pläne für Nebenprojekte, Startups und großvolumige Produktionsarchitekturen.
Entwicklerunterstützung
Benötigen Sie Hilfe bei der Integration oder haben Sie eine individuelle Endpunktanfrage? Unser Technikteam ist hier, um Sie bei der Authentifizierung, Nutzlastschemata und der Erhöhung der Hochfrequenz-Ratenbegrenzung zu unterstützen.
Systemleistung
Rund um die Uhr überwacht mit einem SLA für eine Verfügbarkeit von 99,9 %. Basierend auf Cloud-nativen Microservices mit global verteiltem Edge-Caching, um Reaktionszeiten mit äußerst geringer Latenz zu gewährleisten.