/v1/portfolio
Wealth projection with periodic contributions
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
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_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}