Vai al contenuto
GET /v1/doubling

Doubling time

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}