API Reference
API Reference
Reference for the Scratio API endpoints, authentication, rate limits, and error responses.
Overview
The Scratio API provides endpoints for uploading market data and calculating portfolio risk.
API responses are returned as JSON.
Base URL
All API requests should use the Scratio API base URL.
https://quant-risk.scratio.com/api/v1/riskPOST /datasets/uploadPOST /calculateAuthentication
Authenticated API requests require your Scratio API key.
Send your API key using the X-API-Key header.
X-API-Key: qr_live_xxxxxxxxxxxxKeep your API key private and avoid exposing it in client-side applications or public repositories.
Available Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
| POST | /datasets/upload | Upload a CSV dataset. |
| POST | /calculate | Calculate VaR and CVaR. |
See the Endpoints section for request and response details.