Portfolio Analytics APISend your price series, get back Sharpe, Sortino, Calmar, beta, alpha, max drawdown, information ratio, correlation matrices, diversification scores and rebalancing deltas. You bring the data — we do the math.
Recomputing portfolio analytics correctly is fiddly and easy to get wrong. This API does it for you — as a pure, deterministic compute service.
You send the price series. We never fetch or redistribute third-party market data — so there are no data-license constraints and no PII involved.
Total & annualized return, volatility, Sharpe, Sortino, Calmar, max drawdown, beta, alpha and information ratio — in one call.
Pearson correlation matrices with insights, plus asset-class / geography / sector diversification scoring and an HHI concentration index.
Pure computation, low latency, no side effects. Same input, same output — every time.
Four POST endpoints. JSON in, JSON out.
POST /v1/metrics11 risk/return metrics for a portfolio vs a benchmark.
POST /v1/correlationPearson correlation matrix for 2–50 instruments, plus significant insights.
POST /v1/diversificationAsset-class / geography / sector spread and HHI concentration — a 0–100 score.
POST /v1/rebalancingBuy / sell / hold deltas versus a target allocation, with position-level notes.
curl -X POST \
https://portfolio-analytics.p.rapidapi.com/v1/metrics \
-H "Content-Type: application/json" \
-H "X-RapidAPI-Host: portfolio-analytics.p.rapidapi.com" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-d '{
"history": [{"date":"2024-01-01","close":100},{"date":"2024-01-02","close":101},{"date":"2024-01-03","close":103}],
"benchmark": [{"date":"2024-01-01","close":100},{"date":"2024-01-02","close":100.5},{"date":"2024-01-03","close":101}]
}'
Every metric a portfolio dashboard needs — computed for you.
Start free. Usage-based paid tiers come later.