Zum Inhalt springen
GET /v1/doubling

Doubling time

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/investment-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Exact doubling time = ln(2)/ln(1+r). The Rule of 72 (72/rate%) is a quick mental estimate.",
        "inputs": {
            "rate_pct": 8
        },
        "rule_of_70_years": 8.75,
        "rule_of_72_years": 9,
        "rule_of_69_3_years": 8.6625,
        "exact_doubling_years": 9.006468
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:08.556Z",
        "request_id": "5e3dac9e-ce7a-4ddc-90bb-b36a0c7d4095"
    },
    "status": "ok",
    "message": "Doubling time",
    "success": true
}