> ## 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.

# ExchangeLatency Schema

> Latency metrics for an exchange. Includes required fields, field types, schema references, and generated JSON details from the 0xArchive OpenAPI contract.

Source OpenAPI: 0xArchive API 1.8.0; 227 paths; 217 component schemas.

Latency metrics for an exchange

## Required Fields

No required fields are declared on this component schema.

## JSON Schema

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ExchangeLatency",
  "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
            }
          }
        }
      ]
    }
  }
}
```

## Referenced components

* [ApiLatency](/schemas/components/api-latency)
* [DataFreshness](/schemas/components/data-freshness)
* [WebSocketLatency](/schemas/components/web-socket-latency)

## Components using this schema

* [LatencyResponse](/schemas/components/latency-response)

## Referenced By

Use this shared schema with the generated component index and route-specific endpoint pages during implementation.

## Operations using this component transitively

* [`GET /v1/data-quality/latency`](/schemas/operations/get-latency-metrics)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.