Simulation Endpoint
const url = 'https://example.com/api/v1/reports/simulation';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/reports/simulationA seeded Monte Carlo retirement simulation in today’s money over a fixed 5,000 paths.
The balance, spending and savings are the financial independence figures; the balance grows until the retirement age, then the spending is drawn down for the retirement length. The same seed and inputs always give the same result. Volatility is a percent. Read-only.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
A seeded retirement simulation. success_rate is the percent of paths still positive at
the end of the last retirement year; it and years are empty unless status is ok.
object
The balance percentiles at the start of one age, in today’s money.
object
The inputs the simulation actually used; rates are in percent.
object
Report warnings plus the accounts left out of the starting balance for a missing rate.
object
Example
{ "status": "ok", "inputs": { "annual_spending_source": "ledger", "accounts_source": "override", "annual_spending_excluded": "0" }, "warnings": { "missing_rate_currencies": [], "excluded_transactions": 0, "excluded_accounts": 0 }}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}