Naar de inhoud
GET /v1/doubling

Doubling time

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/investment-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}