Once a calculation completes, you can retrieve results at different levels of granularity:
1. Portfolio Aggregates (Dashboard View)
Get high-level portfolio metrics—total NAV, total distributions, portfolio IRR, etc.
GET /api/v1/scenarios/:scenarioId/aggregates/latestSAGE
curl -X GET https://api.nagarehq.com/api/v1/scenarios/SCN-123/aggregates/latest \
-H "Authorization: Bearer fnd_live_YOUR_API_KEY"
Response: Portfolio Aggregates
{
"scenarioId": "SCN-123",
"asOfDate": "2024-03-16",
"currency": "USD",
"totalCommitment": 250000000,
"totalCalled": 180000000,
"totalDistributed": 95000000,
"totalNAV": 215000000,
"portfolioTVPI": 1.72,
"portfolioIRR": 0.185,
"portfolioDPI": 0.53,
"portfolioRVPI": 1.19
}
2. Per-Fund Latest Data
Get the most recent quarter's data for each fund in the scenario:
GET /api/v1/scenarios/:scenarioId/funds/latestSAGE
curl -X GET https://api.nagarehq.com/api/v1/scenarios/SCN-123/funds/latest \
-H "Authorization: Bearer fnd_live_YOUR_API_KEY"
3. Cashflow Series (Time Series)
Get quarterly cashflow data for the entire forecast horizon (for charts):
GET /api/v1/scenarios/:scenarioId/cashflowSAGE
curl -X GET https://api.nagarehq.com/api/v1/scenarios/SCN-123/cashflow \
-H "Authorization: Bearer fnd_live_YOUR_API_KEY"
Response: Cashflow Series
{
"scenarioId": "SCN-123",
"currency": "USD",
"quarters": [
{
"quarter": 1,
"year": 2024,
"capitalCall": 12000000,
"distribution": 5000000,
"nav": 45000000,
"cumCapitalCall": 12000000,
"cumDistribution": 5000000
},
{
"quarter": 2,
"year": 2024,
"capitalCall": 15000000,
"distribution": 8000000,
"nav": 52000000,
"cumCapitalCall": 27000000,
"cumDistribution": 13000000
},
...
]
}