{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/immix/json-schema/immix-data-asset-page-schema.json",
  "title": "AssetPage",
  "description": "A page of assets.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/immix-assets-api-openapi.yml#/components/schemas/data_AssetPage",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/data_Asset"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the next page. Null on the last page."
    },
    "prevCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pass as `cursor` for the previous page. Null on the first page."
    },
    "total": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Exact count matching the filter. Null unless `include=total`."
    },
    "asOfSeqTsNs": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[0-9]+$",
      "description": "The sequencer timestamp (epoch-ns) the data is complete through; also sent as X-Immix-As-Of-Seq-Ts. Null when unknown."
    }
  },
  "required": [
    "items",
    "nextCursor",
    "prevCursor",
    "total",
    "asOfSeqTsNs"
  ],
  "$defs": {
    "data_Asset": {
      "type": "object",
      "properties": {
        "assetId": {
          "type": "string",
          "description": "The asset's id. Ids are opaque strings."
        },
        "symbol": {
          "type": "string",
          "description": "The asset's symbol, as instrument symbols spell it: the `BTC` in `OKX@BTC/USDT`."
        },
        "type": {
          "type": "string",
          "description": "The asset class: `COIN`, `TOKEN`, `FIAT`, `STABLE_COIN`, `INDEX`, `COMMODITY`, `STOCK` or `OTHER`. Append-only: tolerate values you don't know."
        },
        "updatedAtNs": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[0-9]+$",
          "description": "When the asset record last changed, as a sequencer timestamp in epoch nanoseconds. Null when unknown."
        }
      },
      "required": [
        "assetId",
        "symbol",
        "type",
        "updatedAtNs"
      ],
      "description": "A coin, token, fiat currency or index that instruments are quoted in, settle in or are written on.",
      "title": "Asset"
    }
  }
}