Route Metadata
| Field | Value |
|---|---|
| Method | GET |
| Path | /v1/data-quality/latency |
| operationId | getLatencyMetrics |
| Tag | Data Quality |
| Family | Data Quality |
| Deprecated or legacy | no |
Human endpoint reference
OpenGET /v1/data-quality/latency for authentication, parameters, responses, and examples.
Response Contracts
Status 200
Latency metricsapplication/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getLatencyMetrics response 200",
"description": "Latency metrics response",
"type": "object",
"properties": {
"exchanges": {
"type": "object",
"additionalProperties": {
"description": "Latency metrics for an exchange",
"type": "object",
"properties": {
"data_freshness": {
"description": "Data freshness metrics",
"type": "object",
"properties": {
"fills_lag_ms": {
"type": "integer",
"nullable": true
},
"funding_lag_ms": {
"type": "integer",
"nullable": true
},
"oi_lag_ms": {
"type": "integer",
"nullable": true
},
"orderbook_lag_ms": {
"type": "integer",
"nullable": true
}
}
},
"rest_api": {
"nullable": true,
"allOf": [
{
"type": "object",
"properties": {
"avg_1h_ms": {
"type": "integer"
},
"avg_24h_ms": {
"type": "integer"
},
"current_ms": {
"type": "integer"
}
}
}
]
},
"websocket": {
"nullable": true,
"allOf": [
{
"type": "object",
"properties": {
"avg_1h_ms": {
"type": "integer"
},
"avg_24h_ms": {
"type": "integer"
},
"current_ms": {
"type": "integer"
},
"p99_24h_ms": {
"type": "integer",
"nullable": true
}
}
}
]
}
}
}
},
"measured_at": {
"type": "string",
"format": "date-time"
}
}
}
Status 401
Authentication requiredapplication/json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "getLatencyMetrics response 401",
"description": "Error response",
"type": "object",
"properties": {
"code": {
"description": "HTTP status code",
"type": "integer"
},
"error": {
"description": "Error message",
"type": "string"
},
"error_code": {
"description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
"type": "string"
},
"param": {
"description": "The parameter at fault, when the error is about one parameter.",
"type": "string"
},
"request_id": {
"description": "Unique request ID for support",
"type": "string",
"format": "uuid"
},
"success": {
"description": "Always false on an error.",
"type": "boolean",
"example": false
}
}
}
OpenAPI example
{
"code": 401,
"error": "Missing authentication credentials. Provide X-API-Key header or Bearer token.",
"error_code": "unauthorized",
"request_id": "71ed4b6f-63ef-4ae1-a123-07ffa47c1c14",
"success": false
}