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/risk
POST /datasets/upload
POST /calculate

Authentication

Authenticated API requests require your Scratio API key.

Send your API key using the X-API-Key header.

X-API-Key: qr_live_xxxxxxxxxxxx

Keep your API key private and avoid exposing it in client-side applications or public repositories.

Available Endpoints

MethodEndpointPurpose
POST/datasets/uploadUpload a CSV dataset.
POST/calculateCalculate VaR and CVaR.

See the Endpoints section for request and response details.