{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cabalspy-xyz/json-schema/cabalspy-xyz-token-schema.json",
  "title": "Token",
  "description": "Token block.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cabalspy-xyz-openapi.json#/components/schemas/Token",
  "type": "object",
  "properties": {
    "mint": {
      "type": "string",
      "description": "Token mint or contract address."
    },
    "token_name": {
      "type": "string",
      "description": "Token name."
    },
    "blockchain": {
      "type": "string",
      "description": "Chain."
    },
    "currency": {
      "type": "string",
      "description": "Native currency."
    },
    "token_supply": {
      "type": "number",
      "description": "Total supply."
    },
    "token_decimals": {
      "type": "integer",
      "description": "Token decimals."
    },
    "market_cap": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current market cap in native currency. Solana only, null otherwise."
    },
    "market_cap_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current market cap in USD. Solana only, null otherwise."
    },
    "market_cap_currency": {
      "type": [
        "string",
        "null"
      ],
      "description": "Currency of the market cap value (SOL), or null."
    },
    "price": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current token price in native currency. Solana only."
    },
    "price_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "Current token price in USD. Solana only."
    },
    "sol_price_usd": {
      "type": [
        "number",
        "null"
      ],
      "description": "SOL price in USD used for USD conversions. Solana only."
    }
  },
  "additionalProperties": true
}