> This page is for Datasets.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# Coverage object

**Key** `coverage/{exchange}.json` · **Since** contract `2.4.0`

One JSON object per exchange at layout.coverage: which days are closed and which of them are partial, and for each family and symbol the first and last day with a file. It is a fold over the exchange's day manifests and states nothing they do not, so it can be rebuilt from them at any time; a day manifest remains the commit of its day. Every day in the object is a UTC date and inclusive. Unknown additive fields must be ignored, as in a manifest. Types: date is a yyyy-MM-dd string; int and int64 are JSON numbers with no fraction; int_array is a JSON array of int; object is a JSON object keyed as its description says.

## Fields

| Field               | Type     | Description                                                                                                                                                                                                                                                                       |
| ------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `contract_version`  | `string` | The contract version of the publisher that wrote the object.                                                                                                                                                                                                                      |
| `exchange`          | `string` | The exchange code, as in the key.                                                                                                                                                                                                                                                 |
| `first_day`         | `date`   | The first closed day the object holds.                                                                                                                                                                                                                                            |
| `published_through` | `date`   | The last closed day the object holds. A day that days does not list, wherever it lies, is not closed as far as the object states: either it has no day manifest and nothing of it is published, or the object is behind it, as freshness says. The day manifest is the authority. |
| `days`              | `object` | One entry per closed day the object holds, keyed by the day; each has day_fields.                                                                                                                                                                                                 |
| `families`          | `object` | One entry per family with a file on any closed day, keyed by the family. Under it, one entry per symbol with such a file, keyed by the canonical symbol; each has symbol_fields.                                                                                                  |

### A day

| Field             | Type        | Description                                                                                                                                                                               |
| ----------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`          | `enum`      | The day manifest's status, publication.day_status. One of `ok`, `partial`.                                                                                                                |
| `manifest_sha256` | `string`    | SHA-256 of the day manifest's stored bytes as the object's writer read them. A day manifest with another digest was rewritten since, by a repair; freshness says when the object follows. |
| `gaps`            | `int`       | How many gaps the day manifest lists, each failed hour's full-hour gap among them. The gaps themselves stay in the manifest: the count says which days to read.                           |
| `failed_hours`    | `int_array` | The hours of the day, 0 to 23 in ascending order, that the day manifest lists under failed_hours. Empty on an ok day.                                                                     |

### A symbol

| Field       | Type    | Description                                                                                                                                                                                                                                                                 |
| ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `first_day` | `date`  | The first closed day with a file of this family and symbol.                                                                                                                                                                                                                 |
| `last_day`  | `date`  | The last closed day with one.                                                                                                                                                                                                                                               |
| `days`      | `int`   | How many closed days have one. A file exists only if it has rows, so a count below the span from first_day to last_day means days with no file. Such a day is a quiet day only when it is closed and nothing in its manifest covers the symbol: no gap, and no failed hour. |
| `bytes`     | `int64` | The compressed bytes of those files, summed: what fetching every day of this family and symbol transfers.                                                                                                                                                                   |

## Freshness

The live publisher brings the object up to date once after it starts and after each day manifest it commits. An update that fails costs the day's close nothing and is tried again, so for a while the object can lack a day the publisher itself closed. A bounded run, a backfill or a forced repair, does not write it: a day it closed or rewrote reaches the object at the live publisher's next day close for that exchange. So the object can be behind the day manifests and is never ahead of them: every day it lists has a day manifest. An exchange with no closed day has no object.

## Coverage

`coverage/{exchange}.json` says in one read what the day manifests say between them: which
days of an exchange are closed, which of those are partial, and where each family's symbols
begin and end. It is written from contract `2.4.0`, one object per exchange with a closed day.

```json
{
  "contract_version": "2.4.0",
  "exchange": "OKX",
  "first_day": "2026-09-30",
  "published_through": "2026-11-12",
  "days": {
    "2026-10-16": {"status": "partial", "manifest_sha256": "…", "gaps": 3, "failed_hours": [12]},
    "2026-11-11": {"status": "ok", "manifest_sha256": "…", "gaps": 25, "failed_hours": []}
  },
  "families": {
    "trades": {
      "BTC/USDT": {"first_day": "2026-09-30", "last_day": "2026-11-12", "days": 44, "bytes": 1234567890}
    }
  }
}
```

Every day in it is a UTC date and inclusive.

| Field                                | Meaning                                                                                                 |
| ------------------------------------ | ------------------------------------------------------------------------------------------------------- |
| `contract_version`                   | The contract version of the publisher that wrote the object                                             |
| `exchange`                           | The exchange code, as in the key                                                                        |
| `first_day`                          | The first closed day the object holds                                                                   |
| `published_through`                  | The last closed day the object holds: yesterday is ready when this is yesterday                         |
| `days`                               | One entry per closed day the object holds, keyed by the day                                             |
| `days.*.status`                      | The day manifest's `status`, `ok` or `partial`                                                          |
| `days.*.manifest_sha256`             | SHA-256 of the day manifest's bytes as the object's writer read them                                    |
| `days.*.gaps`                        | How many gaps the day manifest lists, each failed hour's full-hour gap among them                       |
| `days.*.failed_hours`                | The hours of the day, 0 to 23 ascending, that failed; an empty list on an `ok` day                      |
| `families`                           | One entry per family with a file on any closed day; under it one per canonical symbol                   |
| `families.*.*.first_day`, `last_day` | The first and last closed day with a file of that family and symbol                                     |
| `families.*.*.days`                  | How many closed days have one                                                                           |
| `families.*.*.bytes`                 | Those files' compressed bytes, summed: what fetching the symbol's whole history of the family transfers |

Reading it:

* **A day that `days` does not list is not closed as far as the object states**, wherever it
  lies: before `first_day`, after `published_through` or between them. Either it has no day
  manifest, and nothing of it is published, or the object is behind it (*It is derived, and can
  be behind*, below). The day manifest is the authority.
* **A symbol's `days` below the span from its `first_day` to its `last_day` means days with no
  file.** A file exists only if it has rows, so such a day is a quiet day when it is closed and
  nothing in its manifest covers the symbol: no gap, and no failed hour. Otherwise the
  publisher was not watching, and the day's manifest says when and why. The object carries
  each day's gap count and failed hours so a reader knows which manifests to open; the gaps
  themselves stay there.
* **A family's first day says nothing about days before the family existed.** The rule under
  [Files and identity](/datasets/reference/files/overview#files-and-identity) holds: a family's `since` and each hour manifest's
  `contract_version` say whether an hour could hold it.
* **It is derived, and can be behind.** It states nothing the day manifests do not, a day
  manifest is still the commit of its day, and every day the object lists has one. The live
  publisher brings it up to date as it starts and after each day manifest it commits; an update
  that fails costs the close nothing and is tried again, so for a while the object can lack a
  day the publisher itself closed. A backfill or a forced repair does not write it: the day it
  closed or rewrote reaches the object at the live publisher's next day close for that
  exchange. Until then that day is missing from the object, or its `manifest_sha256` is not
  its manifest's digest. Read keys and checksums from the day manifest, never from here: the
  object names no file.
* **An exchange with no closed day has no object.**