Skip to Content
BlitzPulse docs are live. Looking for the app? Visit https://app.blitzglobalcapital.com.
Api ReferenceAnalytics API

Analytics API

Auto-generated from openapi-snapshot.json. Do not edit by hand — changes are overwritten by scripts/docs/generate_api_reference.py.

9 endpoints in this group.

GET /api/analytics/aum

Get Aum

AUM history with capital breakdown: net_capital = contributed capital from capital_accounts unrealized = sum of unrealized_pnl from latest snapshot realized_ytd = sum of gain_loss from realized_trades YTD total_aum = net_capital + unrealized + realized_ytd

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/cumulative-pnl

Cumulative Pnl

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional
yearqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/date-range

Get Date Range

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/drawdown

Compute Drawdown

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional
yearqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/investor-allocation

Get Investor Allocation

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/pnl

Aggregate Pnl

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional
periodquerystringoptionaldaily
yearqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

POST /api/analytics/xirr

Compute Xirr

Compute XIRR (irregular cash flow IRR) using Newton-Raphson. Returns annualized rate of return. None if no convergence.

Request body: application/json

Responses

CodeDescription
200Successful Response
422Validation Error

GET /api/analytics/yoy

Yoy Summary

Year-over-year P&L summary with growth rates and return %. Includes pnl_growth_pct vs prior year and aum_growth_pct.

Parameters

NameInTypeRequiredDescription
tenant_idqueryintegeroptional
account_idqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error

POST /api/market/refresh

Refresh Market Data

Fetch latest prices from yfinance and update daily_position_snapshots.

Parameters

NameInTypeRequiredDescription
symbolsquerystringoptionalComma-separated symbols to refresh
tenant_idqueryintegeroptional
account_idqueryoptional

Responses

CodeDescription
200Successful Response
422Validation Error