{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tesseralytics-dev/json-schema/tesseralytics-dev-partitions-response-schema.json",
  "title": "PartitionsResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tesseralytics-dev-openapi-openapi.json#/components/schemas/PartitionsResponse",
  "type": "object",
  "required": [
    "asset",
    "generated_at",
    "partitions"
  ],
  "properties": {
    "asset": {
      "type": "string",
      "description": "Dataset name the partitions belong to."
    },
    "generated_at": {
      "type": "string",
      "description": "RFC3339 timestamp the catalog manifest was generated."
    },
    "partitions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Partition"
      }
    }
  },
  "$defs": {
    "Partition": {
      "type": "object",
      "required": [
        "month",
        "size_bytes"
      ],
      "properties": {
        "coin": {
          "type": [
            "string",
            "null"
          ],
          "description": "Coin symbol, e.g. `BTC`. Absent (`None`) for market-wide (coinless)\ndatasets whose parquet is one row per month with no coin dimension —\nnone are currently published."
        },
        "coverage": {
          "type": [
            "number",
            "null"
          ],
          "format": "double",
          "description": "Fraction of the expected time-buckets that are populated (`rows` ÷\nelapsed buckets) — the tradable-universe signal: the 1-minute grid is\ntrade-driven and gappy on thin coins, the hourly grids near-complete.\nPresent alongside `rows`; `None` elsewhere."
        },
        "days": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "The `YYYY-MM-DD` day objects this partition is made of, when it is\n**day-backed**. The open month has no single object: it is one parquet per\nday until the month closes, and a download of it is one presigned URL per\nentry here. Absent (from a v5 and older manifest) means the partition is a\nsingle month object — the shape every finalised month has once compacted."
        },
        "is_open": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "Whether this is the current, in-progress month. A finalised month is one\nparquet; the open month is **day-backed** (see `days`) and has no month\nobject, so it is materialised continuously and grows under the customer.\nAbsent (`None`) in older (v1) manifests."
        },
        "last_time": {
          "type": [
            "string",
            "null"
          ],
          "description": "RFC3339 UTC timestamp of the newest row in the partition's data (the max\nof the footers' `time` statistics) — how far this partition's data\nreaches. The point of the field is the **open month**: it is updated as\nthe day arrives, so `last_time` tells a consumer that today's bars are\nalready downloadable (and how far they run). For a finalised month it is\nthat month's last bar. Present only on the time-series tiles, from v4\nmanifests; `None` elsewhere, and for a partition whose footer carries no\n`time` statistics."
        },
        "modified_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "RFC3339 timestamp of the last write, if known."
        },
        "month": {
          "type": "string",
          "description": "Partition month, `YYYY-MM`."
        },
        "rows": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Row count (parquet `num_rows`). Present only for the time-series tiles\n(`gold_ohlcv_1m`, `gold_funding_1h`, `gold_positioning_1h`) from v3\nmanifests; `None` elsewhere and in older manifests."
        },
        "size_bytes": {
          "type": "integer",
          "format": "int64",
          "description": "Parquet object size in bytes."
        }
      }
    }
  }
}