{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coinrithm-com/json-schema/coinrithm-com-public-crypto-treasury-response-schema.json",
  "title": "PublicCryptoTreasuryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coinrithm-com-public-market-data-api-openapi.yml#/components/schemas/PublicCryptoTreasuryResponse",
  "type": "object",
  "required": [
    "coin",
    "status",
    "totalHoldings",
    "totalValueUsd",
    "companies",
    "asOf",
    "source",
    "meta"
  ],
  "properties": {
    "coin": {
      "type": "string",
      "description": "Canonical coin id (`bitcoin`, `ethereum`, `solana`, `binancecoin`)."
    },
    "status": {
      "$ref": "#/$defs/PublicDataStatus"
    },
    "totalHoldings": {
      "type": [
        "number",
        "null"
      ]
    },
    "totalValueUsd": {
      "type": [
        "number",
        "null"
      ]
    },
    "companies": {
      "type": "array",
      "description": "Largest holding first; former holders with zero balance are excluded.",
      "items": {
        "$ref": "#/$defs/PublicCryptoTreasuryCompany"
      }
    },
    "asOf": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When CoinRithm read the upstream list."
    },
    "source": {
      "$ref": "#/$defs/PublicCoinGeckoAttribution"
    },
    "meta": {
      "$ref": "#/$defs/PublicFreshUntilMeta"
    }
  },
  "$defs": {
    "PublicCoinGeckoAttribution": {
      "type": "object",
      "description": "Keep this attribution next to any display of the data.",
      "required": [
        "name",
        "url",
        "attribution"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution": {
          "type": "string"
        }
      }
    },
    "PublicCryptoTreasuryCompany": {
      "type": "object",
      "required": [
        "name",
        "symbol",
        "country",
        "holdings",
        "valueUsd",
        "pctOfSupply",
        "tradfiTicker"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "symbol": {
          "type": [
            "string",
            "null"
          ],
          "description": "Upstream listing symbol such as `MSTR.US` or `3350.T`; null when unlisted upstream."
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "description": "ISO 3166-1 alpha-2 code, or null."
        },
        "holdings": {
          "type": "number",
          "description": "Coins held."
        },
        "valueUsd": {
          "type": "number",
          "description": "Current value of the holding in USD."
        },
        "pctOfSupply": {
          "type": "number",
          "description": "Percent of the coin's total supply."
        },
        "tradfiTicker": {
          "type": [
            "string",
            "null"
          ],
          "description": "CoinRithm TradFi reference ticker for US listings in the catalog, else null."
        }
      }
    },
    "PublicDataStatus": {
      "type": "string",
      "enum": [
        "fresh",
        "stale",
        "unavailable"
      ],
      "description": "Freshness of an upstream dataset CoinRithm re-reads on a schedule.\n`stale` data is still served inside its documented maximum age;\n`unavailable` means no usable copy, never zero or empty truth.\n"
    },
    "PublicFreshUntilMeta": {
      "type": "object",
      "required": [
        "freshUntil"
      ],
      "properties": {
        "freshUntil": {
          "type": "string",
          "format": "date-time",
          "description": "Instant until which shared caches may reuse this response."
        }
      }
    }
  }
}