Error Responses
Standard HTTP status codes used across all endpoints.
| Status | Meaning | When |
|---|---|---|
| 200 | OK | Success |
| 400 | Bad Request | Missing required parameter |
| 401 | Unauthorized | Missing X-API-Key header |
| 403 | Forbidden | Invalid or revoked API key |
| 404 | Not Found | Market or snapshot not found |
| 500 | Server Error | Database query failure |
// 400
{"error": "timestamp is required"}
// 401
{"error": "API key required", "message": "Include your API key in the X-API-Key header."}
// 403
{"error": "Invalid API key", "message": "The provided API key is not valid or has been revoked."}
// 404
{"error": "Market not found"}