Ir al contenido
GET /v1/doubling

Doubling time

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/investment-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

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