Zum Inhalt springen
GET /v1/portfolio

Wealth projection with periodic contributions

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "goal": 1000000,
        "seed": 12345,
        "paths": 10000,
        "years": 30,
        "source": "MONTECARLO",
        "initial": 10000,
        "volatility": 0.15,
        "expected_return": 0.07,
        "prob_reach_goal": 0.1376,
        "terminal_wealth": {
            "mean": 640695.34,
            "median": 547051.42,
            "percentiles": {
                "p5": 225605.59785,
                "p10": 274677.065911,
                "p25": 374954.09741,
                "p50": 547051.419783,
                "p75": 791395.252508,
                "p90": 1103548.851129,
                "p95": 1361315.679122
            }
        },
        "total_contributed": 190000,
        "annual_contribution": 6000
    },
    "meta": {
        "timestamp": "2026-06-10T22:56:13.698Z",
        "request_id": "cf57734a-58bd-47f2-8c83-7742e79d1835"
    },
    "status": "ok",
    "message": "Portfolio projection computed",
    "success": true
}