API

Open API · no auth · slowapi rate-limit only

Explore the sparse index replication API through this site's secure proxy. CORS allowlist, Redis caching, telemetry, and rate limits are env-var driven.

cURL examples

Health

curl /api/proxy/api/v1/health

Portfolio (cached weights)

curl '/api/proxy/api/v1/portfolio?index=sp500'

Allocate $10k

curl '/api/proxy/api/v1/invest?capital=10000&index=sp500'

Live retrain on Nifty 50

curl '/api/proxy/api/v1/invest_live?capital=500000&index=nifty50'

Walk-forward 2020 window

curl '/api/proxy/api/v1/backtest/walkforward?start=2020-01-01&end=2020-12-31'

λ-path for the slider

curl '/api/proxy/api/v1/lambda-path?index=sp500'

Swagger UI

Use the embedded Swagger UI below to inspect endpoints and schemas.