Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt

Use this file to discover all available pages before exploring further.

Source OpenAPI: 0xArchive API 1.5.0; 116 paths; 90 component schemas. Get current latency metrics for all exchanges including WebSocket, REST API, and data freshness.

Route Metadata

FieldValue
MethodGET
Path/v1/data-quality/latency
operationIdgetLatencyMetrics
TagData Quality
FamilyData Quality
Deprecated or legacyno

Response Contracts

Status 200

Latency metrics

application/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 required

application/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"
    }
  }
}
OpenAPI example
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
Last modified on May 18, 2026