> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0xinsider.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Market holders

> The graded holder roster of one market, the list a Pick of the Day shows for its market, for any Polymarket market: every S/A/B wallet with open shares on either outcome, from a complete provider holder scan, each with its shares, Polymarket's own currentValue for the leg, its grade, its win record in the market's category, and its badges. Both outcomes are listed; a wallet holding both is listed once on its net side. Ordered by current_value_usd DESC, then shares DESC, then address. The roster is computed at most once a minute per market and shared by every caller; a page is cut from that roster, so paging is cheap and `total` is exact. The route never widens past the graded cohort: `scan.wallet_count` reports every wallet the walk saw, graded or not. An incomplete, unstable or failed scan is a 503 with Retry-After, never a shorter list.

Every S, A, and B wallet with open shares on either side of one Polymarket market, largest `current_value_usd` first, from a complete provider holder scan. It is the roster a Pick of the Day shows for its market. For one wallet's positions, use [Positions](/api-reference/endpoint/get-positions); for a cross-market feed of big positions, use [Large positions](/api-reference/endpoint/list-large-positions).

## Filters

| Parameter   | Rule                                                                                           |
| ----------- | ---------------------------------------------------------------------------------------------- |
| `outcome`   | `yes`, `no`, or `all` (default). A wallet holding both sides is listed once, on its net side.  |
| `min_grade` | `S`, `A`, or `B` (default). `A` keeps S and A; `C`, `D`, and `F` answer `400`.                 |
| `limit`     | 1 to 100. Default 20.                                                                          |
| `cursor`    | `mh_` prefix. Pages are cut from one shared roster, so a cursor survives the roster's refresh. |

## Fields worth knowing

| Field                    | Meaning                                                                                                                                     |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `current_value_usd`      | Polymarket's own current value for the leg. `null` when the snapshot predates the value map.                                                |
| `other_outcome_shares`   | Present only when the wallet holds both sides.                                                                                              |
| `category_win_rate`      | 0 to 1, the wallet's win rate in `market.category`. Present only with `category_win_rate_status` `measured`, which needs 5 decided markets. |
| `category_win_record`    | The `wins` and `decided` counts behind the rate. A market settled at exactly 0 P\&L is in neither.                                          |
| `category_win_rate_game` | On an esports market, the game the rate was measured in when the wallet clears the floor there. Label the rate with it when present.        |
| `scan.wallet_count`      | Every wallet the walk saw, graded or not. The only count that includes ungraded wallets.                                                    |
| `totals`                 | Roster totals before your `outcome` and `min_grade` filters: counts, shares, USD, and grade mix per side.                                   |
| `total`                  | Holders matching your filters across every page. Exact.                                                                                     |
| `market.status`          | `open`, `closed`, or `resolved`. A resolved market's roster empties as holders redeem.                                                      |

The roster is computed at most once a minute per market and shared by every caller. The provider walk behind it is reused for 180 seconds.

## Example

```bash theme={null}
curl -H "Authorization: Bearer $OXINSIDER_API_KEY" \
  "https://api.0xinsider.com/api/v1/market/0x123.../holders?outcome=yes&min_grade=A&limit=100"
```

## What it does not return

* An ungraded wallet, whatever `min_grade` says. `scan.wallet_count` is the only trace of them.
* A partial list. A scan that is incomplete, unstable, failed, or over its 20-second budget answers `503` with `error.reason` `read_model_warming` and a `Retry-After`.
* A rate limit under that `503`. Retry this route alone after `Retry-After`.
* A market Polymarket does not have. That is a `404`.
* Trade history. `last_traded_at` is the wallet's last trade anywhere, not on this market.

## Cache it

Send the `ETag` back as `If-None-Match`. An unchanged page answers `304 Not Modified` with an empty body.


## OpenAPI

````yaml GET /api/v1/market/{condition_id}/holders
openapi: 3.1.0
info:
  x-generated-rate-limit-policy-from: web/src/lib/rate-limit-facts.ts via web/scripts/generate-api-policy.ts
  title: 0xinsider API
  description: >-
    Follow provider-exposed large-trade activity from Polymarket. Polymarket
    wallet-attributed trades can add grades, P&L, strategy, and diagnostic-score
    context when sufficient source data exists. Fields can be null or
    unavailable. Normal API requests use a 30-second server timeout that returns
    HTTP 408 Request Timeout with the standard error envelope (error.code
    request_timeout) when exceeded. Every /api/v1 failure answers that envelope,
    including a body that is not JSON or does not fit the request schema (400
    invalid_body), a query or path value that does not parse (400 invalid_query,
    invalid_path), a missing Content-Type: application/json (415
    unsupported_media_type), a body over 1048576 bytes (413 payload_too_large)
    and a method the path does not serve (405 method_not_allowed), each with
    error.param naming the field where one is known and meta.request_id equal to
    X-Request-Id. Public REST /api/v1/* endpoints, excluding /api/v1/mcp, use
    Bearer-token based non-credentialed browser CORS: any Origin may call with
    Authorization, Content-Type, If-None-Match, Idempotency-Key, and
    Mcp-Session-Id request headers. Remote MCP at /api/v1/mcp is
    non-credentialed, but still validates Origin against the 0xinsider/localhost
    allowlist per MCP Streamable HTTP DNS-rebinding guidance. Successful browser
    CORS preflight responses advertise Access-Control-Max-Age: 86400. Browser
    JavaScript may read RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset,
    the legacy X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
    Retry-After, ETag, X-Request-Id, X-Request-Cost, X-Usage-Accounting,
    X-Batch-RateLimit-Limit, X-Batch-RateLimit-Remaining,
    X-Batch-RateLimit-Reset, Mcp-Session-Id, and X-Mcp-Error-Code response
    headers. Rate-limit headers describe the budget a request was counted
    against: the API key's per-minute window on an authenticated call, and the
    per-IP budget on a public route or on a refused credential (401, 402, 403,
    423), so a client looping on a bad or lapsed key still sees how much room it
    has. Conditional GET: these operations return a weak ETag and answer
    If-None-Match with 304 Not Modified and an empty body: GET /api/v1/health,
    GET /api/v1/insider-radar, GET /api/v1/insider-radar/{id}, GET
    /api/v1/large-positions, GET /api/v1/leaderboard, GET
    /api/v1/leaderboard/trending, GET /api/v1/market/{condition_id}/candles, GET
    /api/v1/market/{condition_id}/intel, GET
    /api/v1/market/{condition_id}/snapshot, GET /api/v1/markets/explore, GET
    /api/v1/markets/sharp-money-flows, GET /api/v1/markets/smart-money-flows,
    GET /api/v1/pick-of-the-day, GET /api/v1/pick-of-the-day/archive, GET
    /api/v1/positions, GET /api/v1/sports-edge-observations, GET
    /api/v1/sports-edge-signals, GET /api/v1/trader/{address}, GET
    /api/v1/trader/{address}/context, GET /api/v1/trader/{address}/pnl, GET
    /api/v1/trader/{address}/position-timeline, GET
    /api/v1/traders/{trader}/position-timeline, GET /api/v1/whale-trades, GET
    /api/v1/whale-trades/history, GET /api/v1/whale-trades/{id}, GET
    /api/v1/whale-trades/{id}/counterparties/executions, GET
    /api/v1/whale-trades/{id}/counterparties/executions/{execution_id}/makers.
    Credentialed first-party routes such as /api/keys, /api/billing, and auth
    endpoints remain restricted to configured 0xinsider origins. Protected V1
    responses, except the zero-cost /api/v1/usage route, after handler execution
    carry X-Usage-Accounting: persisted, failed, or unknown. This reports the
    usage-record write; it does not change the handler result. Do not replay a
    successful mutation to repair an unknown usage record. Before execution,
    unavailable accounting capacity returns HTTP 503 with
    error.reason=request_accounting_unavailable; honor Retry-After. Public API
    responses add the browser-readable Server-Timing header: Processing time in
    milliseconds, for example api;dur=12.345. Includes API authentication, quota
    admission, handler work and response construction. Excludes network transit
    and streamed body or export-file transfer. The engineering budget is
    strictly below 250 ms; this header reports observations, not a latency
    guarantee or a new timeout.
  version: 1.0.0
  contact:
    name: 0xinsider
    email: support@0xinsider.com
    url: https://0xinsider.com
servers:
  - url: https://api.0xinsider.com
    description: >-
      Production (live data). Authenticate with a live key (oxi_sk_live_...);
      requires an active Pro subscription. A sandbox key (oxi_sk_test_...) is
      answered with 401 invalid_api_key and error.reason sandbox_api_key.
  - url: https://0xinsider.com/sandbox
    description: >-
      Sandbox. No credential required and no production data: every documented
      operation answers with its documented example or a deterministic sample of
      its response schema. Add ?sandbox_status=<code> to receive one of the
      error responses the operation documents (for example 429 with
      Retry-After). Request bodies and parameters are not validated, streams and
      file downloads are not simulated, and nothing is stored. A sandbox key
      (oxi_sk_test_..., issued with no account by POST
      https://api.0xinsider.com/api/v1/agents/register) is optional: on an
      operation that requires a credential, a well-formed key is answered with
      X-Oxi-Sandbox-Key: valid and a malformed one with 401 invalid_api_key.
security:
  - bearerAuth: []
  - oauth2:
      - read
tags:
  - name: Traders
    description: Trader intelligence, batch lookups, timelines, and export readiness.
  - name: Positions
    description: Current prediction-market position snapshots from backend-owned mirrors.
  - name: Large Positions
    description: Largest current open positions from graded traders (Polymarket-only).
  - name: Whale Trades
    description: Recent and historical large trade intelligence.
  - name: Leaderboard
    description: Ranked trader discovery and category/strategy leaderboards.
  - name: Pick of the Day
    description: >-
      One sourced sharp-money call a day: the side profitable wallets are
      backing, with pre-game odds, the holders, and the track record.
  - name: Markets
    description: Market search, discovery, snapshots, and smart-score flow.
  - name: Content
    description: Search across 0xinsider editorial content.
  - name: Insider Radar
    description: Suspicious trading pattern flags.
  - name: Events
    description: Durable public event replay streams.
  - name: Streaming
    description: Resumable real-time Server-Sent Events stream of live feed envelopes.
  - name: Webhooks
    description: Signed builder webhook destinations and delivery controls.
  - name: Usage
    description: Developer API budget and usage introspection.
  - name: Onboarding
    description: >-
      Self-serve agent registration: a sandbox key with no account, and the path
      to live access.
  - name: System
    description: Health and operational status checks.
  - name: MCP
    description: Remote Model Context Protocol transport.
  - name: Reports
    description: Daily, weekly, monthly, and trader export report snapshots.
  - name: Account
    description: Identify the account and credential authenticated for a paid API request.
externalDocs:
  description: 0xinsider API docs
  url: https://docs.0xinsider.com
paths:
  /api/v1/market/{condition_id}/holders:
    get:
      tags:
        - Markets
      summary: List a market's graded holders
      description: >-
        The graded holder roster of one market, the list a Pick of the Day shows
        for its market, for any Polymarket market: every S/A/B wallet with open
        shares on either outcome, from a complete provider holder scan, each
        with its shares, Polymarket's own currentValue for the leg, its grade,
        its win record in the market's category, and its badges. Both outcomes
        are listed; a wallet holding both is listed once on its net side.
        Ordered by current_value_usd DESC, then shares DESC, then address. The
        roster is computed at most once a minute per market and shared by every
        caller; a page is cut from that roster, so paging is cheap and `total`
        is exact. The route never widens past the graded cohort:
        `scan.wallet_count` reports every wallet the walk saw, graded or not. An
        incomplete, unstable or failed scan is a 503 with Retry-After, never a
        shorter list.
      operationId: getMarketHolders
      parameters:
        - name: condition_id
          in: path
          required: true
          description: >-
            Market condition ID. Accepts the raw provider-backed condition_id
            returned by /api/v1/markets/search or the mkt_-prefixed market.id
            emitted by V1 responses.
          schema:
            type: string
        - name: outcome
          in: query
          description: Keep holders netting one side. `all` (default) lists both.
          schema:
            type: string
            enum:
              - 'yes'
              - 'no'
              - all
            default: all
        - name: min_grade
          in: query
          description: >-
            Narrow within the graded cohort: `S` keeps S, `A` keeps S and A, `B`
            (default) keeps S, A and B. `C`, `D` and `F` are rejected with 400:
            the route lists the S/A/B cohort only.
          schema:
            type: string
            enum:
              - S
              - A
              - B
            default: B
        - name: limit
          in: query
          description: Maximum holders per page.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          description: >-
            Pagination cursor from the previous response's next_cursor (prefix
            mh_). Pages are cut from one shared roster, so a cursor stays valid
            across the roster's refresh.
          schema:
            type: string
        - name: If-None-Match
          in: header
          required: false
          description: >-
            Conditional GET validator from a previous ETag. Matching values
            return 304 Not Modified with an empty body.
          schema:
            type: string
      responses:
        '200':
          description: One page of the market's graded holder roster.
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            ETag:
              $ref: '#/components/headers/ETag'
            X-Usage-Accounting:
              $ref: '#/components/headers/X-Usage-Accounting'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                  - has_more
                  - total
                  - market
                  - scan
                  - totals
                  - meta
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/MarketHolder'
                  has_more:
                    type: boolean
                  next_cursor:
                    type: string
                    description: Absent on the last page.
                  total:
                    type: integer
                    description: >-
                      Holders matching the request's `outcome` and `min_grade`
                      filters across every page.
                  market:
                    $ref: '#/components/schemas/MarketHoldersMarket'
                  scan:
                    $ref: '#/components/schemas/MarketHoldersScan'
                  totals:
                    $ref: '#/components/schemas/MarketHoldersTotals'
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
        '304':
          description: >-
            Not Modified. Returned when If-None-Match matches the current
            payload.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit:
              $ref: '#/components/headers/X-RateLimit-Limit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/X-RateLimit-Remaining'
            X-RateLimit-Reset:
              $ref: '#/components/headers/X-RateLimit-Reset'
            X-Request-Id:
              $ref: '#/components/headers/X-Request-Id'
            X-Usage-Accounting:
              $ref: '#/components/headers/X-Usage-Accounting'
            Server-Timing:
              $ref: '#/components/headers/Server-Timing'
          x-empty-body: true
        '400':
          description: Invalid request parameter
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '402':
          description: >-
            Active Pro subscription required. The key is valid but the account
            has no active Pro subscription; error.reason is
            subscription_inactive and error.message names the reactivation URL
            (https://0xinsider.com/billing). Permanent until a person
            reactivates: no Retry-After, never retry on a schedule.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Account access denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: No Polymarket market has this condition_id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '408':
          description: >-
            The handler did not answer inside the server's 30-second timeout.
            error.code is request_timeout. On GET and HEAD the response carries
            Retry-After and error.retry_at; on a mutation it carries neither,
            because the request may have completed on the server: check its
            state before repeating it, and reuse its Idempotency-Key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '429':
          description: >-
            Rate limit exceeded. Three independent budgets. (1) 100
            requests/minute per user (sliding window), on every authenticated
            route. (2) On the BATCH routes only: 2500 batch item units/minute
            per user, reserved before any item is executed. A batch with N
            requested items costs N item units, including duplicate and invalid
            items. 2500 = 100 requests x 25 items per batch, which is the most
            item work a key can buy through the request limiter at all: a caller
            may spend their entire 100-request minute on full 25-item batches
            without the item budget being what stops them. The REQUEST budget is
            the effective ceiling, and batching is never the more expensive
            choice. The item budget can still deny at a sliding-window boundary
            (both counters carry the previous window forward with a floor, and
            the item counter runs 25x the request counter), so honor a 429 from
            either. Over-quota batches return 429 with Retry-After plus
            RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset before any
            item work is done. (3) The monthly quota: Pro includes 250,000
            authenticated requests per UTC calendar month, whatever the billing
            cadence. Over 250,000: with pay as you go on, requests keep
            answering and the excess bills at USD 0.20 per 1,000 on a monthly
            invoice, up to 1,000,000 requests a month; without it, from 1
            October 2026 the next request answers 429 rate_limited with
            error.reason monthly_quota_exceeded and a Retry-After to the month's
            reset, and from the same day a pay-as-you-go account answers the
            same past 1,000,000. A refused request is not counted. Every
            authenticated response carries X-Monthly-Quota-Limit,
            X-Monthly-Quota-Remaining, and X-Monthly-Quota-Reset (unix seconds,
            the first of next month).
          headers:
            Retry-After:
              description: Seconds until rate limit resets.
              schema:
                type: integer
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            X-RateLimit-Limit:
              schema:
                type: integer
            X-RateLimit-Remaining:
              schema:
                type: integer
            X-RateLimit-Reset:
              schema:
                type: integer
            X-Request-Id:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '503':
          description: >-
            The holder scan could not be served: the provider walk was
            incomplete, unstable, unavailable, or ran past its 20 s budget, or
            the roster's single-flight lease expired with nothing published. The
            body's error.reason is read_model_warming; retry after Retry-After.
            A shorter list is never served in place of the market.
          headers:
            Retry-After:
              description: Seconds to wait before asking for this market's roster again.
              schema:
                type: integer
            X-Request-Id:
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl -sS \
              -H 'Authorization: Bearer $OXI_SK' \
              'https://api.0xinsider.com/api/v1/market/{condition_id}/holders?limit=100'
        - lang: curl
          label: cURL (YES side, S and A only)
          source: |-
            curl -sS \
              -H 'Authorization: Bearer $OXI_SK' \
              'https://api.0xinsider.com/api/v1/market/{condition_id}/holders?outcome=yes&min_grade=A'
components:
  headers:
    RateLimit-Limit:
      description: >-
        Request limit of the budget this request was counted against, for its
        current window: the API key's per-minute sliding window on an
        authenticated call; the per-IP budget on a public route and on a refused
        credential (401, 402, 403, 423), which never reaches the per-key
        limiter. Standard RateLimit header spelling.
      schema:
        type: integer
        example: 100
    RateLimit-Remaining:
      description: >-
        Requests remaining in that budget's current window after this response.
        Standard RateLimit header spelling.
      schema:
        type: integer
        example: 84
    RateLimit-Reset:
      description: >-
        Seconds until that budget's current window resets. Standard RateLimit
        header spelling.
      schema:
        type: integer
        example: 42
    X-RateLimit-Limit:
      description: >-
        Request limit of the budget this request was counted against, for its
        current window: the API key's per-minute sliding window on an
        authenticated call; the per-IP budget on a public route and on a refused
        credential (401, 402, 403, 423).
      schema:
        type: integer
        example: 100
    X-RateLimit-Remaining:
      description: Requests remaining in that budget's current window after this response.
      schema:
        type: integer
        example: 84
    X-RateLimit-Reset:
      description: Unix timestamp when that budget's current window resets.
      schema:
        type: integer
        example: 1710772860
    X-Request-Id:
      description: >-
        Server-generated request identifier for support and tracing. On every
        /api/v1 response, including 304, 408, CORS preflights and every error,
        and always equal to meta.request_id in the body. It is the key of the
        request's usage accounting row and of every log line the request
        emitted, so quote either form to support. A client-supplied X-Request-Id
        request header is ignored: the value is never adopted or echoed.
      schema:
        type: string
        example: req_550e8400
    ETag:
      description: >-
        Weak semantic validator for conditional GET. Request-specific response
        metadata is excluded; send as If-None-Match to receive 304 when the
        stable payload is unchanged.
      schema:
        type: string
        example: W/"8f14e45fceea167a5a36dedd4bea2543"
    X-Usage-Accounting:
      description: >-
        Usage-record persistence for a protected V1 handler response. persisted:
        confirmed row; failed: write failed; unknown: completion could not be
        confirmed. Independent of handler success; do not replay successful
        mutations to repair accounting. Absent before accounting admission and
        on public routes. The zero-cost /api/v1/usage route also omits it.
      schema:
        type: string
        enum:
          - persisted
          - failed
          - unknown
    Server-Timing:
      description: >-
        Processing time in milliseconds, for example api;dur=12.345. Includes
        API authentication, quota admission, handler work and response
        construction. Excludes network transit and streamed body or export-file
        transfer. The engineering budget is strictly below 250 ms; this header
        reports observations, not a latency guarantee or a new timeout.
      schema:
        type: string
      example: api;dur=12.345
  schemas:
    MarketHolder:
      type: object
      required:
        - id
        - trader_id
        - address
        - name
        - side
        - token_id
        - grade
        - shares
        - current_value_usd
        - last_traded_at
        - category_win_rate_status
      properties:
        id:
          type: string
          description: >-
            Composite `pos_<wallet>:<condition_id>:<outcome_index>`, the same id
            `GET /api/v1/positions` gives this leg.
        trader_id:
          type: string
          description: >-
            `trd_`-prefixed trader id, accepted by `GET
            /api/v1/trader/{address}`.
        address:
          type: string
          description: Lowercased proxy wallet.
        name:
          type: string
          nullable: true
          description: >-
            Polymarket's public display name from the same holder snapshot; null
            for a private wallet, which the provider redacts at the source.
        side:
          type: string
          enum:
            - 'YES'
            - 'NO'
          description: >-
            The outcome this wallet nets to. A wallet holding both outcomes is
            listed once, on its net side; see `other_outcome_shares`.
        token_id:
          type: string
          nullable: true
          description: >-
            Polymarket CLOB token id (ERC1155 asset id, decimal string) for
            `side`; null when the market has no stored token id.
        grade:
          type: string
          enum:
            - S
            - A
            - B
          nullable: true
          description: >-
            All-time trader grade. This route lists the S/A/B cohort only, the
            same cohort a Pick of the Day roster lists.
        shares:
          type: number
          description: Shares held on `side`, from the complete provider scan.
        current_value_usd:
          type: number
          nullable: true
          description: >-
            Polymarket's own currentValue for this leg, in USD. Null when the
            snapshot predates the value map.
        other_outcome_shares:
          type: number
          description: >-
            Shares on the other outcome when the wallet holds both. Absent when
            the wallet is one-sided.
        last_traded_at:
          type: string
          format: date-time
          nullable: true
          description: The wallet's last recorded trade anywhere, null when unknown.
        category_win_rate:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            This wallet's win rate in the market's canonical category
            (`market.category`): the share of its resolved markets in that
            category whose realized P&L closed positive, as a 0..1 fraction.
            Present only with `category_win_rate_status` = `measured`. The same
            read `GET /api/v1/trader/{address}/categories` serves per wallet.
        category_win_record:
          type: object
          required:
            - wins
            - decided
          properties:
            wins:
              type: integer
              minimum: 0
              description: >-
                Resolved markets in the category that this wallet closed with a
                profit.
            decided:
              type: integer
              minimum: 0
              description: >-
                Resolved markets in the category that this wallet closed with a
                profit or a loss. A market resolved at zero realized P&L is in
                neither count.
          description: >-
            The two counts `category_win_rate` is the ratio of, from the same
            row: `wins / decided` equals the rate. Every resolved Polymarket
            market the wallet traded in the market's canonical category, at any
            position size, rebuilt daily. Present only with
            `category_win_rate_status` = `measured`.
        category_win_rate_game:
          type: string
          description: >-
            For an esports market, the game `category_win_rate` and
            `category_win_record` were measured in: `LoL`, `CS2`, `Dota 2`,
            `Valorant`, `Call of Duty`, `Honor of Kings`, `Mobile Legends: Bang
            Bang`, `Overwatch`, `Rainbow Six Siege`, `Rocket League` or
            `StarCraft II`. Present only when the wallet's record in that game
            clears the 5-resolved-market floor, in which case the rate and
            record are the game's rather than the `Esports` bucket's. Absent
            when the rate is the bucket's (the wallet's game history is under
            the floor), on every non-esports market, and beside every
            non-measured status. Label the rate with this when present and with
            the market's `category` otherwise.
        category_win_rate_status:
          type: string
          enum:
            - measured
            - not_enough_data
            - unavailable
          description: >-
            Why `category_win_rate` is present or absent: `measured` (rate
            present), `not_enough_data` (under the floor of 5 decided markets in
            the category), or `unavailable` (the market has no canonical
            category, or the read failed; retry later). Always present on this
            route.
        category_evidence:
          $ref: '#/components/schemas/HolderCategoryEvidence'
        wallet_age_days:
          type: number
          nullable: true
          description: >-
            Days since this wallet's first trade. The five badge fields are
            present together, only for a wallet that draws at least one badge.
        is_new_wallet:
          type: boolean
          description: True when the wallet's first trade was under 30 days ago.
        markets_traded:
          type: integer
          nullable: true
          description: Distinct markets the wallet has traded.
        is_bot:
          type: boolean
          description: True when the wallet is flagged as automated.
        x_username:
          type: string
          nullable: true
          description: The wallet's X handle without the @, when linked.
    MarketHoldersMarket:
      type: object
      required:
        - id
        - condition_id
        - title
        - category
        - outcome_yes
        - outcome_no
        - token_id_yes
        - token_id_no
        - status
      properties:
        id:
          type: string
          description: '`mkt_`-prefixed market id.'
        condition_id:
          type: string
        title:
          type: string
          nullable: true
        slug:
          type: string
        event_slug:
          type: string
        category:
          type: string
          nullable: true
          description: The canonical category bucket `category_win_rate` is measured in.
        outcome_yes:
          type: string
          nullable: true
        outcome_no:
          type: string
          nullable: true
        token_id_yes:
          type: string
          nullable: true
        token_id_no:
          type: string
          nullable: true
        end_date:
          type: string
          format: date-time
        status:
          type: string
          enum:
            - open
            - closed
            - resolved
          description: >-
            A settled market's roster is whatever the provider still lists as
            open; it empties as holders redeem.
    MarketHoldersScan:
      type: object
      required:
        - source
        - complete
        - fetched_at
        - wallet_count
      properties:
        source:
          type: string
          enum:
            - cached
            - live
          description: >-
            `cached`: the shared holder snapshot, at most 180 s old at compute
            time. `live`: the provider answered a fresh complete walk for this
            compute.
        complete:
          type: boolean
          description: >-
            Always true on a served roster. An incomplete or unstable scan is a
            503, never a partial list.
        fetched_at:
          type: string
          format: date-time
          nullable: true
          description: When the provider walk that produced the holder population finished.
        wallet_count:
          type: integer
          description: >-
            Every distinct wallet the complete walk saw with open shares, graded
            or not. The roster lists the graded S/A/B subset.
    MarketHoldersTotals:
      type: object
      required:
        - graded_count
        - yes_count
        - no_count
        - yes_shares
        - no_shares
        - yes_usd
        - no_usd
        - yes_grades
        - no_grades
      description: >-
        Roster totals BEFORE any `outcome` or `min_grade` filter, so a page
        always knows the whole market it was cut from.
      properties:
        graded_count:
          type: integer
          description: >-
            Distinct graded wallets with net exposure; a two-sided wallet counts
            once.
        yes_count:
          type: integer
        no_count:
          type: integer
        yes_shares:
          type: number
        no_shares:
          type: number
        yes_usd:
          type: number
          description: Polymarket currentValue summed over the graded wallets netting YES.
        no_usd:
          type: number
          description: Polymarket currentValue summed over the graded wallets netting NO.
        yes_grades:
          $ref: '#/components/schemas/MarketHoldersSideGrades'
        no_grades:
          $ref: '#/components/schemas/MarketHoldersSideGrades'
    ResponseMeta:
      type: object
      required:
        - request_id
        - cached
        - cost
      properties:
        request_id:
          type: string
          description: >-
            Unique request ID (req_ prefix). The same value as the X-Request-Id
            response header, the request's usage accounting row and its log
            lines.
        cached:
          type: boolean
        cache_age_s:
          type: integer
          nullable: true
          description: >-
            Cache age in seconds. Omitted when the response was not cached, and
            also when it was cached but its age cannot be established (an entry
            stored before its cache carried a computed instant). Never a
            placeholder: an unknown age is reported as no value rather than as
            the cache TTL.
        cost:
          type: integer
          description: >-
            Advisory request weight (relative compute cost). 1 for simple reads;
            higher for heavier endpoints. Not a credit/price.
        ranking_generation:
          type: integer
          nullable: true
          description: >-
            Committed PostgreSQL-owned leaderboard generation for the returned
            rows and cursor. Present on GET /api/v1/leaderboard; omitted on
            endpoints that do not read this ranking.
        ranking_as_of:
          type: string
          format: date-time
          nullable: true
          description: >-
            Authoritative RFC3339 timestamp from cache_generations.updated_at
            for ranking_generation. It is read in the same repeatable-read
            snapshot as the leaderboard rows and is not request time, cache
            write time, or row insertion order.
        directional_source:
          type: string
          enum:
            - live
            - degraded
          description: >-
            Which path produced the team-directional read on this response. Only
            present on endpoints that compute one (today: GET
            /api/v1/sports-edge-signals). "live" means the read RAN. "degraded"
            means it FAILED, so nothing was measured and the ranking fell back
            to raw conviction. The flag describes the READ, not its consequence:
            a read that ran and found nothing groupable also leaves the
            directional fields null, and that is honestly "live" -- the
            per-signal nulls already say "nothing to enrich here", so this
            snapshot-level flag carries only what they cannot, namely whether
            the read ran at all. A degraded response is cached on the shorter
            degraded TTL so it self-heals. Reported SEPARATELY from
            ranking_source because the two degradations are independent -- a
            smart-money DB miss weakens the ranking DATA, a directional failure
            removes a ranking WEIGHT -- and a consumer down-weighting a degraded
            response needs to know which input it lost. Omitted on endpoints
            that compute no directional read.
        ranking_source:
          type: string
          enum:
            - live
            - db_only
          description: >-
            Which ranking-data path produced this response. Only present on
            endpoints that can degrade a ranking (today: GET
            /api/v1/sports-edge-signals). "live" is the normal path (the current
            holder pile from the provider batch); "db_only" is the degraded
            fallback (a truthful but weaker trader_markets ranking) served when
            the live sharp-money ranking batch is unavailable (a smart-money DB
            read failure, not a Polymarket outage) and cached on a shorter TTL,
            so a consumer can down-weight or skip it. Omitted on endpoints that
            never degrade.
        category_skill_source:
          type: string
          enum:
            - live
            - partial
            - degraded
            - unavailable
          description: >-
            Whole filtered snapshot category-evidence status before pagination.
            Operational live always remains partial source coverage.
        category_skill_model_version:
          type: string
        category_skill_taxonomy_version:
          type: string
        category_skill_platform:
          type: string
          const: polymarket
        category_skill_scope:
          type: string
          const: observed_goldsky_primary_taker_fill
        category_skill_source_coverage:
          type: string
          enum:
            - partial_whale_threshold_fills
            - graded_wallet_fills
        category_skill_observation_started_at:
          type: string
          format: date-time
        category_skill_model_operationally_degraded:
          type: boolean
          description: >-
            Whole-model operational readiness captured with the category model
            snapshot. Present on category-enriched responses even when the
            filtered signal list is empty. When true, category_skill_source is
            degraded and sports-edge-signals uses the shorter degraded cache
            TTL.
        category_skill_status_counts:
          type: object
          required:
            - live
            - insufficient
            - stale
            - unknown
            - degraded
          properties:
            live:
              type: integer
              minimum: 0
            insufficient:
              type: integer
              minimum: 0
            stale:
              type: integer
              minimum: 0
            unknown:
              type: integer
              minimum: 0
            degraded:
              type: integer
              minimum: 0
        category_skill_base_payload_hash:
          type: string
          pattern: ^[0-9a-f]{64}$
          description: >-
            SHA-256 of the funded signal membership/order/rank/cursor vector
            immediately before category-skill enrichment. Sports-edge-signals
            only.
        category_skill_enriched_base_payload_hash:
          type: string
          pattern: ^[0-9a-f]{64}$
          description: >-
            Independent SHA-256 recomputation over the same base fields
            immediately after category-skill enrichment. Equality with
            category_skill_base_payload_hash proves shadow enrichment did not
            change funded inputs. Sports-edge-signals only.
    ApiError:
      type: object
      required:
        - object
        - error
        - meta
      properties:
        object:
          type: string
          const: error
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: >-
                FROZEN: an existing value never changes meaning. request_timeout
                (408, #16146) was added the way insufficient_scope was: the
                handler did not answer inside the server's 30-second timeout.
                Retry-After and retry_at ride on it only for a safe method (GET,
                HEAD); a timed-out mutation may have completed, so check its
                state and reuse its Idempotency-Key.
              enum:
                - bad_request
                - invalid_api_key
                - subscription_required
                - forbidden
                - insufficient_scope
                - not_found
                - account_locked
                - rate_limited
                - rate_limit_unavailable
                - internal_error
                - request_timeout
            message:
              type: string
            doc_url:
              type: string
              nullable: true
            param:
              type: string
              nullable: true
            retry_at:
              type: string
              format: date-time
              nullable: true
              description: >-
                The recommended next request instant (RFC3339), always in the
                future. Present on every retryable error: `pick_not_released`,
                `rate_limited`, `rate_limit_unavailable`, and
                `read_model_warming`. Omitted otherwise. The absolute twin of
                `Retry-After`; prefer the header for the sleep duration. For
                `pick_not_released`, the earliest of the next scheduled release,
                the next automatic selector attempt, the operating-window start,
                or about 60 seconds. See that response.
            reason:
              type: string
              enum:
                - cursor_expired
                - unknown_endpoint
                - pick_not_released
                - trader_not_tracked
                - read_model_warming
                - database_unavailable
                - request_accounting_unavailable
                - idempotency_in_progress
                - webhook_delivery_in_progress
                - sandbox_api_key
                - api_key_in_query
                - subscription_inactive
                - monthly_quota_exceeded
                - invalid_query
                - invalid_path
                - invalid_body
                - unsupported_media_type
                - payload_too_large
                - method_not_allowed
              nullable: true
              description: >-
                ADDITIVE (#7209). The specific, actionable cause behind `code`,
                when there is one more specific than the code itself. `code`
                keeps its published values, so existing clients are unaffected;
                new clients branch on `reason`. Omitted when the code already
                says everything we know. pick_not_released: no Pick of the Day
                is published for the current product day; schedule one request
                against retry_at instead of polling. unknown_endpoint: the PATH
                is not a route on this API -- read GET /api/v1, do not retry.
                trader_not_tracked: the wallet is real and the URL is right, but
                the trader is outside the HOT/WARM sync tiers -- stop asking for
                this wallet. cursor_expired: pagination went stale mid-walk --
                re-request the first page and continue. read_model_warming: the
                requested endpoint cannot serve its read model yet; exact causes
                are endpoint-specific and can include a cold or contended
                refresh or a dependency that prevented refresh.
                database_unavailable: the API's database or its connection pool
                is temporarily unreachable (a connection-class failure, not a
                query fault); code stays rate_limit_unavailable, nothing is
                rate-limited, retry after Retry-After / retry_at.
                idempotency_in_progress: retain the exact Idempotency-Key and
                request body, then retry shortly. webhook_delivery_in_progress:
                retry the URL or signing-secret configuration change after the
                destination's active request completes.
                request_accounting_unavailable: accounting capacity is
                unavailable before the handler executes; retry after Retry-After
                / retry_at. sandbox_api_key: the credential is a sandbox key
                (oxi_sk_test_) from POST /api/v1/agents/register, which only the
                sandbox server accepts -- call the sandbox base URL with it, or
                get a live key or OAuth access token; do not retry it here.
                api_key_in_query: the key was sent as a ?token= query parameter,
                which no route reads because URLs land in logs and history; the
                key itself was not checked -- resend it as Authorization:
                Bearer. subscription_inactive: the key is valid but the
                account's Pro subscription has lapsed (402
                subscription_required); permanent until a person reactivates at
                https://0xinsider.com/billing, which the message names -- stop
                retrying on a schedule and surface the link. The key owner is
                emailed once per lapse. monthly_quota_exceeded: the account has
                used the requests Pro includes for the UTC calendar month (429
                rate_limited); retry_at and Retry-After name the first of next
                month, the only retry that can succeed, and the message names
                https://0xinsider.com/developers, where pay as you go for
                requests over the quota is turned on. The X-Monthly-Quota-Limit,
                X-Monthly-Quota-Remaining and X-Monthly-Quota-Reset headers on
                every authenticated response say how close the account is.
                invalid_query, invalid_path, invalid_body (400 bad_request,
                #16146): a query parameter, a path segment or the JSON body did
                not parse or does not fit the route's schema, so no handler ran;
                param names the field when the parser named one (a query key, a
                path segment, a JSON path such as traders[0], or body); fix the
                request, never retry it as sent. unsupported_media_type (415
                bad_request, param content-type): send the body with
                Content-Type: application/json. payload_too_large (413
                bad_request, param body): the body is over 1048576 bytes.
                method_not_allowed (405 bad_request): the path is a route but
                not with this method; the Allow header names the methods it
                serves.
        meta:
          $ref: '#/components/schemas/ResponseMeta'
    HolderCategoryEvidence:
      type: object
      required:
        - status
      description: >-
        Current category evidence, independent of the global grade. Pick of the
        Day stamps only the served display roster; frozen entry snapshots remain
        unchanged.
      properties:
        status:
          type: string
          enum:
            - live
            - insufficient
            - stale
            - unknown
            - degraded
        canonical_category:
          type: string
        skill:
          $ref: '#/components/schemas/CategorySkillV2'
    MarketHoldersSideGrades:
      type: object
      required:
        - s
        - a
        - b
      properties:
        s:
          type: integer
        a:
          type: integer
        b:
          type: integer
    CategorySkillV2:
      type: object
      description: >-
        Forward-only category evidence from observed Polymarket taker fills.
        Status is category eligibility, not a global letter grade or a guarantee
        of positive edge. Scores are probability differences. Unknown and
        degraded rows withhold scores. Coverage is partial; observation counts
        are not lifetime market counts.
      required:
        - status
        - model_version
        - taxonomy_version
        - platform
        - scope
        - source_coverage
        - canonical_category
        - as_of
        - source_last_success_at
        - observation_started_at
        - latest_observation_at
        - independent_event_count
        - resolved_condition_count
        - unresolved_observation_count
        - edge_mean
        - edge_sd
        - edge_se
        - edge_lower_95
        - brier_event_avg
      properties:
        status:
          type: string
          enum:
            - live
            - insufficient
            - stale
            - unknown
            - degraded
        model_version:
          type: string
        taxonomy_version:
          type: string
          nullable: true
        platform:
          type: string
          enum:
            - polymarket
        scope:
          type: string
          enum:
            - observed_goldsky_primary_taker_fill
        source_coverage:
          type: string
          enum:
            - partial_whale_threshold_fills
            - graded_wallet_fills
        canonical_category:
          type: string
        as_of:
          type: string
          format: date-time
        source_last_success_at:
          type: string
          format: date-time
          nullable: true
        observation_started_at:
          type: string
          format: date-time
        latest_observation_at:
          type: string
          format: date-time
          nullable: true
        independent_event_count:
          type: integer
          minimum: 0
        resolved_condition_count:
          type: integer
          minimum: 0
        unresolved_observation_count:
          type: integer
          minimum: 0
        edge_mean:
          type: number
          nullable: true
        edge_sd:
          type: number
          nullable: true
        edge_se:
          type: number
          nullable: true
        edge_lower_95:
          type: number
          nullable: true
        brier_event_avg:
          type: number
          nullable: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key or OAuth 2.1 access token in the Authorization header as `Bearer
        oxi_sk_live_...` or `Bearer oxi_at_...`. Data calls require an active
        Pro subscription and return live data. A 401 carries WWW-Authenticate:
        Bearer
        resource_metadata="https://api.0xinsider.com/.well-known/oauth-protected-resource"
        (RFC 6750 section 3, RFC 9728).
    oauth2:
      type: oauth2
      description: >-
        OAuth 2.1 authorization code flow with PKCE S256 for apps and MCP
        clients acting for a user. Public clients only (no client secret):
        register with RFC 7591 at https://api.0xinsider.com/oauth/register or
        present an https client ID metadata document URL as client_id.
        Authorization server metadata:
        https://api.0xinsider.com/.well-known/oauth-authorization-server. The
        access token (oxi_at_..., one hour) is sent as `Authorization: Bearer`;
        refresh tokens rotate on every use. A route outside the token's scopes
        answers 403 insufficient_scope. Walkthrough:
        https://0xinsider.com/auth.md.
      flows:
        authorizationCode:
          authorizationUrl: https://0xinsider.com/oauth/authorize
          tokenUrl: https://api.0xinsider.com/oauth/token
          refreshUrl: https://api.0xinsider.com/oauth/token
          scopes:
            read: >-
              Read markets, traders, large trades, positions, reports, search,
              the event stream and every MCP tool
            webhooks: Create, list, verify, rotate and delete webhook endpoints
            export: Start, poll and download trader exports
            usage: Read the caller's API usage counters

````