{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/metastreams/json-schema/metastreams-ui-holder-series-schema.json",
  "title": "UiHolderSeries",
  "description": "One token's current holders on one chain, an element of the `GET /v1/holders` response.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/metastreams-openapi.json#/components/schemas/UiHolderSeries",
  "type": "object",
  "required": [
    "chain",
    "address",
    "holders",
    "holderCount",
    "hasMore"
  ],
  "properties": {
    "address": {
      "type": "string",
      "description": "Token address."
    },
    "chain": {
      "$ref": "#/$defs/SpotChain",
      "description": "Chain the token trades on."
    },
    "hasMore": {
      "type": "boolean",
      "description": "Whether this series has another page."
    },
    "holderCount": {
      "type": "integer",
      "format": "int64",
      "description": "The token's own holder total, whatever the `limit` and any `flags` filter. It counts\ntrading wallets only, so it can run below a full listing that includes pool vaults.",
      "minimum": 0
    },
    "holders": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UiSpotHolder"
      },
      "description": "Holders on this page, largest balance first."
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "The cursor of this series' next page when `hasMore` is `true`; `null` on its last page."
    },
    "top10": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/UiHolderCohortStats",
          "description": "Balance-weighted entry and exit prices across the first 10 holders; the filtered cohort\nunder `flags`. `null` on every page after the first."
        }
      ],
      "description": "Balance-weighted entry and exit prices across the first 10 holders; the filtered cohort\nunder `flags`. `null` on every page after the first."
    }
  },
  "$defs": {
    "Decimal": {
      "type": "string",
      "format": "decimal",
      "description": "An exact decimal, as a string."
    },
    "FundingSourceKind": {
      "type": "string",
      "description": "Whether a known exchange or another wallet funded the creator.",
      "enum": [
        "cex",
        "wallet"
      ]
    },
    "FundingStatus": {
      "type": "string",
      "description": "Whether the creator wallet's funding lookup has settled.",
      "enum": [
        "unresolved",
        "resolved"
      ]
    },
    "IdentitySource": {
      "type": "string",
      "description": "Who resolved a trader's identity. The set grows; keep a value you do not recognize.",
      "enum": [
        "codex",
        "fomo",
        "pump",
        "gmgn",
        "axiom",
        "arkham",
        "unknown"
      ]
    },
    "SpotChain": {
      "type": "string",
      "description": "Chain slug. One spelling per chain, in paths and bodies alike. Only a chain with spot data is published.",
      "enum": [
        "solana",
        "bsc",
        "robinhood",
        "elysium",
        "ethereum",
        "base"
      ]
    },
    "UiHolderCohortStats": {
      "type": "object",
      "description": "Balance-weighted entry and exit prices across a holder cohort.",
      "properties": {
        "avgEntryPrice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Balance-weighted entry price across the cohort; `null` when no holder has one."
            }
          ],
          "description": "Balance-weighted entry price across the cohort; `null` when no holder has one."
        },
        "avgExitPrice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Balance-weighted exit price across the cohort; `null` when no holder has one."
            }
          ],
          "description": "Balance-weighted exit price across the cohort; `null` when no holder has one."
        }
      }
    },
    "UiMoney": {
      "type": "object",
      "description": "A chain-denominated value with its USD equivalent. The enclosing object carries the\n`chain` that names `native`'s unit.",
      "required": [
        "native"
      ],
      "properties": {
        "native": {
          "$ref": "#/$defs/Decimal",
          "description": "Value in the owning chain's gas asset."
        },
        "usd": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/Decimal",
              "description": "Value in USD; `null` when the native asset is unpriced."
            }
          ],
          "description": "Value in USD; `null` when the native asset is unpriced."
        }
      }
    },
    "UiPlatform": {
      "oneOf": [
        {
          "type": "object",
          "description": "fomo.family, the terminal that routed the trade. The trader's profile is the `fomo`\nelement of `identities`.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "fomo"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "A token's DexScreener listing; present only while its profile is paid.",
          "required": [
            "isPaid",
            "platform"
          ],
          "properties": {
            "isPaid": {
              "type": "boolean",
              "description": "Whether the token's DexScreener profile is paid."
            },
            "paidAt": {
              "oneOf": [
                {
                  "type": "null"
                },
                {
                  "$ref": "#/$defs/UnixMilliseconds",
                  "description": "Earliest profile payment time."
                }
              ],
              "description": "Earliest profile payment time."
            },
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "dexScreener"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Axiom.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "axiom"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"Banana Gun\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "bananaGun"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Bloom.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "bloom"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"BONKbot\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "bonkbot"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "BtcTurk.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "btcTurk"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "BullX.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "bullX"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Click.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "click"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"GMGN\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "gmgn"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"Lucky Block\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "luckyBlock"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Maestro.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "maestro"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"Manifold Trading\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "manifoldTrading"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"MEVX\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "mevx"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Mintech.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "mintech"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Nighthawk.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "nighthawk"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Nova.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "nova"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"OX.FUN\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "oxFun"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Padre.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "padre"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "PepeBoost.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "pepeBoost"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Phantom.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "phantom"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Photon.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "photon"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "SexBotSolana.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "sexBotSolana"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Shuriken.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "shuriken"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"SOL Sniper Bot\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "solSniperBot"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "\"Sol Trading Bot\".",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "solTradingBot"
              ]
            }
          }
        },
        {
          "type": "object",
          "description": "Trojan.",
          "required": [
            "platform"
          ],
          "properties": {
            "platform": {
              "type": "string",
              "description": "Which platform this is.",
              "enum": [
                "trojan"
              ]
            }
          }
        }
      ],
      "description": "A platform attached to a token, a wallet, or a trade.\n\nThe fieldless variants are trading terminals, each described by its display name."
    },
    "UiSpotHolder": {
      "type": "object",
      "description": "One wallet's holding and trading figures on one token.\n\nVolumes, token totals, trade counts, entry and exit prices and realized PnL cover the\n`period` that the read or the `spot.holders` subscription names.",
      "required": [
        "address",
        "balance",
        "supplyPct",
        "buyVolume",
        "tokensBought",
        "buyCount",
        "sellVolume",
        "tokensSold",
        "sellCount",
        "realizedPnl",
        "remainingPct",
        "funding"
      ],
      "properties": {
        "address": {
          "type": "string",
          "description": "Wallet address."
        },
        "avgEntryMarketCap": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Size-weighted market cap across the wallet's buys; `null` when none was recorded."
            }
          ],
          "description": "Size-weighted market cap across the wallet's buys; `null` when none was recorded."
        },
        "avgEntryPrice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Entry price per token over the period; `null` before the period's first buy. `cycle`\nreads the open position's cost basis, and `lifetime` averages every buy."
            }
          ],
          "description": "Entry price per token over the period; `null` before the period's first buy. `cycle`\nreads the open position's cost basis, and `lifetime` averages every buy."
        },
        "avgExitMarketCap": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Size-weighted market cap across the wallet's sells; `null` when none was recorded."
            }
          ],
          "description": "Size-weighted market cap across the wallet's sells; `null` when none was recorded."
        },
        "avgExitPrice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UiMoney",
              "description": "Volume-weighted exit price over the period; `null` until the wallet sells in it."
            }
          ],
          "description": "Volume-weighted exit price over the period; `null` until the wallet sells in it."
        },
        "balance": {
          "$ref": "#/$defs/Decimal",
          "description": "Token units the wallet holds now."
        },
        "buyCount": {
          "type": "integer",
          "format": "int32",
          "description": "Buy trades over the period.",
          "minimum": 0
        },
        "buyVolume": {
          "$ref": "#/$defs/UiMoney",
          "description": "Spent buying this token over the period."
        },
        "firstPurchaseAt": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UnixMilliseconds",
              "description": "The wallet's first buy of this token; `null` for a wallet that only received transfers."
            }
          ],
          "description": "The wallet's first buy of this token; `null` for a wallet that only received transfers."
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "A flag the classifier put on the wallet. This is an open enumeration: the classifier learns new flags, so keep a value you do not recognize."
          },
          "description": "Classifications the wallet carries."
        },
        "funding": {
          "$ref": "#/$defs/UiWalletFunding",
          "description": "The wallet's first inbound funding. Always present; its status says whether the lookup\nhas settled."
        },
        "identities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UiWalletIdentity"
          },
          "description": "The wallet's resolved identities, one element per source."
        },
        "nativeBalance": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/Decimal",
              "description": "The wallet's balance of the chain's native asset; `null` until the chain reports one."
            }
          ],
          "description": "The wallet's balance of the chain's native asset; `null` until the chain reports one."
        },
        "platforms": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UiPlatform"
          },
          "description": "The wallet's trading-platform identities."
        },
        "rank": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "1-based rank in the requested ordering; a `flags` filter ranks within the filtered\ncohort. Absent on live `spot.holders` updates.",
          "minimum": 0
        },
        "realizedPnl": {
          "$ref": "#/$defs/UiMoney",
          "description": "Profit or loss the wallet locked in by selling over the period."
        },
        "remainingPct": {
          "$ref": "#/$defs/Decimal",
          "description": "Share of its peak holdings the wallet still holds, 0-100."
        },
        "sellCount": {
          "type": "integer",
          "format": "int32",
          "description": "Sell trades over the period.",
          "minimum": 0
        },
        "sellVolume": {
          "$ref": "#/$defs/UiMoney",
          "description": "Received from selling this token over the period."
        },
        "supplyPct": {
          "$ref": "#/$defs/Decimal",
          "description": "Share of total supply the wallet holds, 0-100."
        },
        "tokensBought": {
          "$ref": "#/$defs/Decimal",
          "description": "Token units bought over the period, including any sold since."
        },
        "tokensSold": {
          "$ref": "#/$defs/Decimal",
          "description": "Token units sold over the period."
        }
      }
    },
    "UiWalletFunding": {
      "type": "object",
      "description": "A wallet's first inbound funding.",
      "required": [
        "status"
      ],
      "properties": {
        "address": {
          "type": [
            "string",
            "null"
          ],
          "description": "Funder wallet or exchange address."
        },
        "amount": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/Decimal",
              "description": "Amount received, denominated in `asset`."
            }
          ],
          "description": "Amount received, denominated in `asset`."
        },
        "asset": {
          "type": [
            "string",
            "null"
          ],
          "description": "Asset the funding moved; `null` for the chain's native asset."
        },
        "sourceKind": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/FundingSourceKind",
              "description": "What the funder is (exchange, bridge, wallet, …)."
            }
          ],
          "description": "What the funder is (exchange, bridge, wallet, …)."
        },
        "sourceLabel": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display label for the funder, e.g. an exchange name."
        },
        "status": {
          "$ref": "#/$defs/FundingStatus",
          "description": "Whether the lookup has settled."
        },
        "symbol": {
          "type": [
            "string",
            "null"
          ],
          "description": "Display ticker of `asset`."
        },
        "timestamp": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/UnixMilliseconds",
              "description": "When the funding transfer occurred."
            }
          ],
          "description": "When the funding transfer occurred."
        },
        "tx": {
          "type": [
            "string",
            "null"
          ],
          "description": "The funding transaction's signature or hash."
        }
      }
    },
    "UiWalletIdentity": {
      "type": "object",
      "description": "One source's resolved profile for a trade's trader.",
      "required": [
        "source"
      ],
      "properties": {
        "avatar": {
          "type": [
            "string",
            "null"
          ],
          "description": "CDN URL of the avatar to render; `null` until the picture is mirrored."
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ],
          "description": "Human-readable name to render."
        },
        "farcaster": {
          "type": [
            "string",
            "null"
          ],
          "description": "The wallet's Farcaster handle, where the source links one."
        },
        "handle": {
          "type": [
            "string",
            "null"
          ],
          "description": "The wallet's handle on the source."
        },
        "source": {
          "$ref": "#/$defs/IdentitySource",
          "description": "Who resolved this identity."
        },
        "telegram": {
          "type": [
            "string",
            "null"
          ],
          "description": "The wallet's Telegram handle, where the source links one."
        },
        "twitter": {
          "type": [
            "string",
            "null"
          ],
          "description": "The wallet's bare X handle, where the source links one."
        }
      }
    },
    "UnixMilliseconds": {
      "type": "integer",
      "format": "int64",
      "description": "An instant, as milliseconds since the Unix epoch."
    }
  }
}