> ## 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.

# Large trades history

> List stored large trades for one market, wallet, category, or time window, newest first, for backtests, reports, and cache recovery.

Use this for backtests, reports, and refilling a cache you lost. Every row has the same shape as a [Large trades](/api-reference/endpoint/get-large-trades) item, ordered newest first by `traded_at` and then by `id`, or by `market_volume_share` when you send `sort=market_volume_share`.

These rows are a replay of what 0xinsider already stored, so nothing is fetched from Polymarket while your request is open. For the live feed with no window, use [Large trades](/api-reference/endpoint/get-large-trades).

## Parameters

| Parameter                                                                         | Description                                                                                                                                                                                                                                      |
| --------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `from`                                                                            | The earliest `traded_at` to return, as an RFC3339 timestamp. The bound is inclusive.                                                                                                                                                             |
| `to`                                                                              | The first `traded_at` to exclude, as an RFC3339 timestamp. When both are sent, `to` must be after `from`, or you get `400` with `error.param` `to`.                                                                                              |
| `condition_id`                                                                    | The exact raw Polymarket `condition_id`. A market 0xinsider has no rows for returns an empty list, not an error.                                                                                                                                 |
| `trader`                                                                          | One wallet, given as an address, a timestamp-suffixed wallet alias, a Polymarket username, or a `trd_` id. A wallet 0xinsider does not know returns an empty list.                                                                               |
| `platform`                                                                        | `polymarket` or `all`, which mean the same thing. Any other value returns `400` with `error.param` `platform`.                                                                                                                                   |
| `category`, `min_grade`, `suspicious_only`, `min_size`, `min_market_volume_share` | The same rules as [Large trades](/api-reference/endpoint/get-large-trades). `min_size` defaults to `5000`.                                                                                                                                       |
| `sort`                                                                            | `recent` returns newest first and is the default. `market_volume_share` returns the biggest share of its own market first, with trades that have no share last, and reads the window you asked for, or the last 30 days when you send no `from`. |
| `limit`                                                                           | How many trades to return, from 1 to 100. The default is `20`.                                                                                                                                                                                   |
| `cursor`                                                                          | The `next_cursor` value from the previous response. URL-encode it. See [Pagination](/concepts/pagination). A cursor belongs to the `sort` it was returned under, so sending it with the other `sort` is rejected.                                |

`has_more` and `next_cursor` describe the filtered result, so a full page always holds `limit` matching trades.

## Key response fields

| Field                                        | Meaning                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `meta.source.kind`                           | Always `local_replay`, and `meta.source.table` is always `whale_alerts`. The rows come from 0xinsider's own store.                                                                                                                                                                                                                                                                                                                                                           |
| `meta.source.provider_fetch_at_request_time` | Always `false`. Nothing is fetched from Polymarket while the request is open, so the response cannot be slowed by a provider.                                                                                                                                                                                                                                                                                                                                                |
| `meta.completeness.status`                   | Always `best_effort`, with `meta.completeness.reason` saying why. Coverage of a given market and window can have gaps, so do not treat an empty window as proof that nothing traded.                                                                                                                                                                                                                                                                                         |
| `data_quality`                               | Page-level age and coverage beside `data`. The groups are `alert`, `trade`, `trader`, `ranking`, `market`, and `volume`. `trades.ingested_at`, `traders.last_synced`, `trader_rankings.computed_at`, `market_canonical.last_refreshed_at`, and `markets.volume_request_observed_at` provide the measurable clocks; `whale_alerts.inserted_xid` is a transaction identifier, so `alert` is `unknown`. The stored clocks are part of the `ETag`; cache facts remain in `meta`. |
| `market_volume_share`                        | `size_usd` divided by a volume figure recorded at or after the trade, so it always reads between 0 and 1. It is absent when no such figure is stored. Filter on it with `min_market_volume_share` and rank by it with `sort=market_volume_share`.                                                                                                                                                                                                                            |
| `trader.grade_at_trade`                      | The grade the wallet held when the trade happened. `null` unless `trader.grade_at_trade_status` is `graded`.                                                                                                                                                                                                                                                                                                                                                                 |
| `trader.grade_at_trade_status`               | `graded`, `ungraded` (recorded without a grade then), or `unknown` (no record covers that moment). Every trade before September 19, 2026 23:00 UTC is `unknown`.                                                                                                                                                                                                                                                                                                             |
| `recorded_review_score`                      | The review score written when the row was stored (formerly `recorded_signal_score`, which still carries the same value). `null` before August 3, 2026 11:59 UTC, and never backfilled.                                                                                                                                                                                                                                                                                       |
| `trader.grade`, `review_score`               | Today's values, on every row however old. `review_score` was formerly `signal_score`, which still carries the same value.                                                                                                                                                                                                                                                                                                                                                    |

## Backtest without look-ahead

`trader.grade`, `review_score`, and the `min_grade` filter read the wallet as it is today. A rule like "follow S-grade wallets" tested on them selects wallets that were graded S after they won, so it looks better than it could have traded.

Select on `trader.grade_at_trade` and `recorded_review_score` instead. Grades are recorded from September 19, 2026 and recorded scores from August 3, 2026; before those dates the fields say `unknown` and `null`, never a guess. Nothing earlier can be rebuilt: the grade and the statistics the score reads were not kept per moment.

## Capture rules by period

The size floor changed over the archive's life, so month-to-month counts are not comparable at the default `min_size`.

| Period                     | What was stored                                                                                  |
| -------------------------- | ------------------------------------------------------------------------------------------------ |
| Before February 2, 2026    | Sparse: at most a few hundred trades a month.                                                    |
| February 2 to July 5, 2026 | 3,000 USD and up (1.4% of rows are smaller), at any price.                                       |
| From July 6, 2026          | 10,000 USD and up (1,000 USD in earnings markets), priced below 0.97 (0.99 in earnings markets). |

Pass `min_size=10000` for one size rule across the whole range. Counts still follow the sports calendar.

Until July 17, 2026, one match could be stored twice: once for each wallet. From May 1 to July 17, 27.7% of rows at \$10,000 and up share a transaction and a market with another stored wallet, almost always a `Yes` buyer and a `No` buyer filled against each other.

From July 18, 2026 a row is the taker's side only. Before May the transaction hash is mostly absent, so the share cannot be measured there.

## Example

```bash theme={null}
curl -H "Authorization: Bearer $OXINSIDER_API_KEY" \
  "https://api.0xinsider.com/api/v1/large-trades/history?trader=swisstony&min_size=10000&from=2026-05-01T00:00:00Z&to=2026-06-01T00:00:00Z&limit=100"
```

## What it does not return

* A live feed. These rows are a replay of what 0xinsider stored, and `meta.completeness.status` is `best_effort` for that reason.
* A trade under `min_size`, which defaults to `5000`. Any value down to `0` is accepted, but it cannot reach fills below the size at which a trade is recorded at all.
* An error for an unknown `trader` or `condition_id`. You get an empty list and a `200`, so check the length of `data` rather than the status code.
* The wallets on the other side of a trade. Open one row with [Large trade](/api-reference/endpoint/get-large-trade).
* A grade or a recorded score for a moment nobody recorded. Before September 19, 2026 the grade at trade time is `unknown`; before August 3, 2026 `recorded_review_score` is `null`.
* A trade priced at 0.97 or above stored since July 6, 2026, outside earnings markets.

## Caching

Send the `ETag` from a response back in an `If-None-Match` header. If the list has not changed, you get `304 Not Modified` with an empty body. `data_quality` is part of the representation and its stored clocks are included in the `ETag`; `meta.cached` and `meta.cache_age_s` describe the transport cache.


## OpenAPI

````yaml GET /api/v1/large-trades/history
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. Unknown query names are ignored by default and reported in
    X-Query-Ignored, while X-Effective-Query lists the normalized names and
    values applied using form-urlencoded decoding, where + is a space; strict
    mode returns 400 bad_request with error.reason unknown_query_parameter
    before the handler runs, including for an unknown name with an incomplete
    percent escape. 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, Mcp-Session-Id,
    Mcp-Protocol-Version, Last-Event-Id, and X-Query-Validation request headers.
    X-Query-Validation: strict opts into rejecting unknown query names; the
    default remains compatible. 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, X-Mcp-Error-Code, X-Query-Ignored,
    and X-Effective-Query 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}/flow, 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. GET /api/v1/stream is the one exclusion and answers
      400 there, because a Server-Sent Events stream is a live connection rather
      than a body. Add ?sandbox_status=<code> to receive one of the error
      responses the operation documents (for example 429 with Retry-After).
      Documented query parameters and JSON request bodies are checked against
      this document, the two context.md routes answer 200 text/markdown, GET
      /api/v1/trader/{address}/export/download answers its 302 with a Location
      the sandbox serves itself rather than an object store, and nothing is
      stored between requests. 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: Traders, 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: Large trades
    description: Recent and historical large trades.
  - 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: Games
    description: >-
      Sports and esports games: both sides, schedules, provider status and the
      Polymarket markets linked to each game.
  - name: Markets
    description: Market search, discovery, snapshots, and sharp-money flow.
  - name: Content
    description: Search across 0xinsider editorial content.
  - name: Suspicious trades
    description: Trades whose recorded suspicion score meets the live flag threshold.
  - name: Insider Radar
    description: >-
      Deprecated spelling of Suspicious trades; both operations stay live as
      aliases.
  - 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/large-trades/history:
    get:
      tags:
        - Large trades
      summary: Replay historical large trades
      description: >-
        Returns historical large trades from local whale_alerts rows, not
        request-time provider fetches. Filter by condition_id, trader, category,
        minimum grade, persisted suspicion, platform, and RFC3339 from/to
        windows. All filters are pushed into SQL before LIMIT, every request
        uses SQL-backed limit + 1 pagination, and results are ordered newest
        first by traded_at desc, id desc. Metadata exposes local_replay source
        and best_effort completeness. POINT IN TIME: signal_score, trader.grade
        and the min_grade filter carry today's values on every row however old,
        so a backtest that selects by them selects wallets on what they did
        after the trade. The point-in-time fields are recorded_signal_score
        (from 2026-08-03T11:59Z; null before, and never backfilled, because the
        trader statistics it reads at insert were not kept for older rows) and
        trader.grade_at_trade with trader.grade_at_trade_status (from
        2026-09-19T23:00Z; unknown before). CAPTURE RULES changed over the
        archive's life: rows before 2026-02-02 are sparse (at most a few hundred
        a month); from 2026-02-02 the floor was 3,000 USD (1.4% of rows through
        2026-07-05 are smaller) and trades at any price were kept; from
        2026-07-06 a trade is kept at 10,000 USD or more (1,000 USD in earnings
        markets) and only when priced below 0.97 (0.99 in earnings markets).
        Pass min_size=10000 for one size rule across the whole range; monthly
        row counts still follow the sports calendar. Until 2026-07-17 one match
        could be stored twice, once per wallet: from 2026-05-01 to 2026-07-17,
        27.7% of rows at 10,000 USD or more share a transaction and market with
        another stored wallet, almost always a Yes buyer and a No buyer filled
        against each other. From 2026-07-18 a row is the taker's side only.
        Before 2026-05 the transaction hash is mostly absent, so the share
        cannot be measured there. From 2026-09-23 a fill must ALSO be at least
        0.1% of its market's recorded traded volume, Polymarket's own share
        count, so a $10,000 print that lands in a market which has already
        traded tens of millions of shares is no longer kept; rows written before
        that date were not re-filtered. The response adds a top-level
        `data_quality` object beside `data`, grouping alert, trade, trader,
        ranking, market, and volume fields by their database writer.
        `whale_alerts.inserted_xid` is reported as unknown because it is a
        transaction identifier rather than a timestamp. Its stored clocks are
        part of the ETag; `meta` continues to hold transport cache facts.
      operationId: listLargeTradeHistory
      parameters:
        - name: X-Query-Validation
          in: header
          required: false
          description: >-
            Opt into strict query-name validation. The default is compatible:
            unknown names are ignored and reported in X-Query-Ignored. With
            strict, an unknown name returns 400 bad_request with error.reason
            unknown_query_parameter before the handler runs, including when its
            percent escape is incomplete.
          schema:
            type: string
            enum:
              - strict
        - name: limit
          in: query
          description: Maximum number of historical large trades to return.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          description: >-
            Pagination cursor from previous response's next_cursor. Prefix:
            wth_. URL-encode when replaying as a query parameter.
          schema:
            type: string
        - name: min_size
          in: query
          description: >-
            Minimum trade size in USD. The capture floor was 3,000 USD before
            2026-07-06 and 10,000 USD from then (1,000 USD in earnings markets),
            so 10000 gives one size rule across the whole archive. From
            2026-09-23 a fill must also be at least 0.1% of its market's
            recorded traded volume (Polymarket's own share count); rows written
            before that date were not re-filtered.
          schema:
            type: number
            default: 5000
        - name: condition_id
          in: query
          description: >-
            Exact raw provider condition_id. Unknown markets return an empty
            list.
          schema:
            type: string
        - name: trader
          in: query
          description: >-
            Trader wallet address, timestamp-suffixed wallet alias, username, or
            trd_-prefixed trader ID, resolved against the traders table. Unknown
            traders return an empty list.
          schema:
            type: string
        - name: category
          in: query
          description: >-
            Filter by market category (case-insensitive). A canonical bucket
            name (e.g. Basketball) matches every provider member that folds into
            it (NBA, WNBA, NCAAB); a raw provider value also resolves to its
            bucket.
          schema:
            type: string
        - name: min_grade
          in: query
          description: >-
            Minimum trader grade as of today (trader.grade), not at trade time.
            On a historical window it selects wallets by a grade they may have
            earned after the trade; for a point-in-time rule filter on
            trader.grade_at_trade instead. A means S or A, B means S, A or B.
          schema:
            type: string
            enum:
              - S
              - A
              - B
              - C
              - D
              - F
        - name: suspicious_only
          in: query
          description: >-
            When true, return only rows with persisted suspicion_score >= 60.
            The filter is applied before SQL-backed limit + 1 pagination.
          schema:
            type: boolean
            default: false
        - name: platform
          in: query
          description: Filter by whale_alerts.platform. all is equivalent to omitted.
          schema:
            type: string
            enum:
              - polymarket
              - all
        - name: from
          in: query
          description: Inclusive RFC3339 lower bound on whale_alerts.traded_at.
          schema:
            type: string
            format: date-time
        - name: to
          in: query
          description: >-
            Exclusive RFC3339 upper bound on whale_alerts.traded_at. Must be
            after from when both are present.
          schema:
            type: string
            format: date-time
        - name: min_market_volume_share
          in: query
          description: >-
            Keep only trades whose market_volume_share is known and at least
            this. A fraction, not a percent: 0.01 is one percent of the market's
            traded volume. A trade whose share is unavailable is never returned
            by a non-zero value, because an unavailable share cannot be said to
            clear a floor.
          schema:
            type: number
            minimum: 0
            maximum: 1
        - name: sort
          in: query
          description: >-
            Order of the returned page. recent is newest first and is the
            default. market_volume_share ranks by each trade's share of its
            market's traded volume, biggest first, with a trade whose share is
            unavailable last. That ranking reads from, or the last 30 days when
            from is omitted, for the same reason. A cursor is bound to the order
            it was minted in, so a continuation cannot cross from one order into
            the other.
          schema:
            type: string
            enum:
              - recent
              - market_volume_share
            default: recent
        - 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: Historical large trade replay
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                  - data_quality
                  - has_more
                  - meta
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/LargeTrade'
                  data_quality:
                    $ref: '#/components/schemas/DataQuality'
                    description: >-
                      Writer-backed age and coverage for this page; it is part
                      of the representation and the ETag, while transport cache
                      facts remain in meta.
                  has_more:
                    type: boolean
                  next_cursor:
                    type: string
                  total:
                    type: integer
                    description: >-
                      Total matching rows when the read model exposes a count;
                      the key is absent when it does not.
                  meta:
                    $ref: '#/components/schemas/LargeTradeHistoryMeta'
              examples:
                success:
                  summary: Successful response
                  value:
                    object: list
                    data:
                      - id: wt_392079
                        traded_at: '2026-09-22T02:05:52Z'
                        size_usd: 19232.92
                        side: BUY
                        outcome: Rams
                        token_id: >-
                          43677542496120548237382622015301078356830156697348317225498679221043021866409
                        price: 0.9398
                        review_score: 0.3959
                        signal_score: 0.3959
                        recorded_review_score: 0.4041
                        recorded_signal_score: 0.4041
                        market_volume_share: 0.002852
                        suspicion_score: null
                        suspicion_track: null
                        trader:
                          id: trd_0xabc1230000000000000000000000000000000abc
                          address: '0xabc1230000000000000000000000000000000abc'
                          username: example_trader
                          grade: F
                          grade_at_trade: F
                          grade_at_trade_status: graded
                        market:
                          id: >-
                            mkt_0xdef4560000000000000000000000000000000def613f54180a6d82f81c586f87
                          condition_id: >-
                            0xdef4560000000000000000000000000000000def613f54180a6d82f81c586f87
                          title: Giants vs. Rams
                          slug: nfl-nyg-la-2026-09-22
                          category: NFL
                      - id: wt_392077
                        traded_at: '2026-09-22T02:04:20Z'
                        size_usd: 16292.73
                        side: BUY
                        outcome: Dallas Wings
                        token_id: >-
                          26603239767113701790776634803790654539492519362779665632490658212718064984767
                        price: 0.65
                        review_score: 0.33
                        signal_score: 0.33
                        recorded_review_score: 0.3383
                        recorded_signal_score: 0.3383
                        market_volume_share: 0.528557
                        suspicion_score: null
                        suspicion_track: null
                        trader:
                          id: trd_0xdef4560000000000000000000000000000000def
                          address: '0xdef4560000000000000000000000000000000def'
                          grade_at_trade: null
                          grade_at_trade_status: unknown
                        market:
                          id: >-
                            mkt_0xdef4560000000000000000000000000000000def4c2638b15eda50ca1b7ce303
                          condition_id: >-
                            0xdef4560000000000000000000000000000000def4c2638b15eda50ca1b7ce303
                          title: Dallas Wings vs. Phoenix Mercury
                          slug: wnba-dal-phx-2026-09-21
                          category: WNBA
                    data_quality:
                      status: partial
                      field_groups:
                        - group: alert
                          owner: whale_alerts.inserted_xid
                          status: unknown
                          reason: >-
                            whale_alerts.inserted_xid is a transaction
                            identifier rather than a timestamp
                        - group: trade
                          owner: trades.ingested_at
                          status: unknown
                          reason: >-
                            the page returned no large-trade row from which to
                            read this writer clock
                        - group: trader
                          owner: traders.last_synced
                          status: unknown
                          reason: >-
                            the page returned no large-trade row from which to
                            read this writer clock
                        - group: ranking
                          owner: trader_rankings.computed_at
                          status: unknown
                          reason: >-
                            the page returned no large-trade row from which to
                            read this writer clock
                        - group: market
                          owner: market_canonical.last_refreshed_at
                          status: unknown
                          reason: >-
                            the page returned no large-trade row from which to
                            read this writer clock
                        - group: volume
                          owner: markets.volume_request_observed_at
                          status: unknown
                          reason: >-
                            the page returned no large-trade row from which to
                            read this writer clock
                    has_more: true
                    next_cursor: 2026-09-22T02:04:20+00:00_wth_392077
                    meta:
                      request_id: req_example
                      cached: false
                      source:
                        kind: local_replay
                        table: whale_alerts
                        provider_fetch_at_request_time: false
                      completeness:
                        status: best_effort
                        reason: >-
                          Historical whale trades are replayed from local
                          whale_alerts rows; provider backfill completeness can
                          vary by market and time window.
          headers:
            X-Query-Ignored:
              $ref: '#/components/headers/X-Query-Ignored'
            X-Effective-Query:
              $ref: '#/components/headers/X-Effective-Query'
            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'
        '304':
          description: >-
            Not Modified. Returned when If-None-Match matches the current
            payload.
          headers:
            X-Query-Ignored:
              $ref: '#/components/headers/X-Query-Ignored'
            X-Effective-Query:
              $ref: '#/components/headers/X-Effective-Query'
            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'
        '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'
        '423':
          description: Account is locked
          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 October
            1, 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).
            (4) The per-address budget: 1200 requests/minute per IP, shared by
            every caller behind one address and counted before authentication,
            on every route. A 429 from it carries error.reason ip_rate_limited
            and describes that bucket in RateLimit-*; a throttled address
            (sustained over-limit traffic) carries error.reason ip_throttled
            with a Retry-After of minutes to days, and a request before it does
            not shorten the cooldown. Every 429 is the standard error envelope
            with meta.request_id equal to X-Request-Id.
          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: >-
            Redis-backed authenticated rate limiter unavailable; retry after the
            per-process outage cooldown
          headers:
            Retry-After:
              description: >-
                Seconds until the middleware will probe the Redis-backed rate
                limiter 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 $OXINSIDER_API_KEY" \
              'https://api.0xinsider.com/api/v1/large-trades/history'
components:
  schemas:
    LargeTrade:
      type: object
      required:
        - id
        - traded_at
        - size_usd
        - side
        - outcome
        - token_id
        - price
        - review_score
        - signal_score
        - recorded_review_score
        - recorded_signal_score
        - suspicion_score
        - suspicion_track
        - trader
        - market
      properties:
        id:
          type: string
          description: Prefixed ID (wt_...).
        traded_at:
          type: string
          format: date-time
        size_usd:
          type: number
        side:
          type: string
          enum:
            - BUY
            - SELL
        outcome:
          type: string
          nullable: true
          description: >-
            Traded outcome label (e.g. "Yes"/"No"/team name), resolved
            provider-first from the trade's outcome_index against
            market_canonical (index 0 -> yes, 1 -> no). Distinct axis from side
            (BUY/SELL): side is the trade direction, outcome is which leg was
            traded. null for multi-outcome (outcome_index >= 2) or unsynced
            markets, and for a Polymarket trade recorded before
            2026-04-02T00:00:00Z, whose stored outcome_index is not trusted (a
            defaulted 0 for about a third of those rows; the side is unknown,
            not defaulted).
        token_id:
          type: string
          nullable: true
          description: >-
            The Polymarket CLOB token id (ERC1155 asset id, decimal string) for
            the traded outcome; null when unavailable (e.g. unsynced markets)
            and for a Polymarket trade recorded before 2026-04-02T00:00:00Z,
            where the traded side is unknown.
        price:
          type: number
        review_score:
          type: number
          description: >-
            Current 0.0–1.0 review score, computed at request time from the
            trade's size, the trader's win rate today, a bonus when a trader
            with a win rate above 55% trades at a price below 30¢, and the
            trade's age now. A higher score means read this trade first; it does
            not measure edge or predict an outcome. On a historical row it is
            today's view of the trade, not what a reader saw then; use
            recorded_review_score for that. Canonical since #16311; signal_score
            carries the same value.
        signal_score:
          deprecated: true
          type: number
          description: >-
            Current 0.0–1.0 review score, computed at request time from the
            trader's win rate today and the trade's age now. Deprecated
            (#16311): `review_score` is the canonical spelling and carries the
            same value; this key stays on the wire.
        recorded_review_score:
          type: number
          nullable: true
          description: >-
            0.0–1.0 review score written once when the trade row is inserted,
            from the trader's statistics at that moment. Populated from
            2026-08-03T11:59Z; older rows return null and are never backfilled,
            because a backfill could only read today's statistics. If a trade is
            added later, its time-sensitive recorded score reflects that delay.
            Canonical since #16311; recorded_signal_score carries the same
            value.
        recorded_signal_score:
          deprecated: true
          type: number
          nullable: true
          description: >-
            0.0–1.0 review score written once when the trade row is inserted;
            null before 2026-08-03T11:59Z. Deprecated (#16311):
            `recorded_review_score` is the canonical spelling and carries the
            same value; this key stays on the wire.
        suspicion_score:
          type: integer
          minimum: 0
          maximum: 100
          nullable: true
          description: >-
            Persisted live suspicion score from the scorer. Null when the row
            has no persisted score.
        suspicion_track:
          type: string
          enum:
            - whale
            - fresh_conviction
            - sliced_position
          nullable: true
          description: >-
            Persisted scorer track. Null when a legacy row has no stored track
            label.
        market_volume_share:
          type: number
          minimum: 0
          maximum: 1
          description: >-
            This fill's size relative to its market: size_usd divided by a
            market volume figure recorded at or after the trade, so the value
            always falls between 0 and 1 inclusive. A $10,000 fill is 0.00005 of
            a $200M market and 0.125 of an $80,000 one, which size_usd alone
            cannot distinguish. Absent when no volume figure recorded at or
            after the trade is available; never 0 as a stand-in and never capped
            at 1, because a denominator we cannot trust publishes nothing rather
            than a trimmed number. A market's volume keeps growing, so the same
            trade reports a smaller share as the market trades on.
        trader:
          type: object
          required:
            - id
            - address
            - grade_at_trade
            - grade_at_trade_status
          properties:
            id:
              type: string
            address:
              type: string
            username:
              type: string
            grade:
              type: string
              description: >-
                The trader's grade today, on every row however old. For what the
                grade was when the trade happened, read grade_at_trade.
            grade_at_trade:
              type: string
              enum:
                - S
                - A
                - B
                - C
                - D
                - F
              nullable: true
              description: >-
                The grade the trader held when the trade happened, from recorded
                grade history (recorded from 2026-09-19T23:00Z). Null unless
                grade_at_trade_status is graded. Never today's grade projected
                backward.
            grade_at_trade_status:
              type: string
              enum:
                - graded
                - ungraded
                - unknown
              description: >-
                graded: grade_at_trade holds the recorded grade. ungraded: the
                trader was recorded without a grade at that moment. unknown: no
                record covers the moment, which is every trade before
                2026-09-19T23:00Z and a trade that fell between a grade change
                and its confirmation. unknown never means ungraded.
        market:
          type: object
          required:
            - id
            - condition_id
            - title
          properties:
            id:
              type: string
            condition_id:
              type: string
            title:
              type: string
            slug:
              type: string
            category:
              type: string
              description: Provider-backed market_canonical category.
    DataQuality:
      type: object
      description: >-
        Compact data age and coverage for a response body, always present on the
        operations that publish it. Read status and as_of to decide whether to
        use the body at all, and field_groups to see which part is weak.
        Everything here comes from stored observation clocks, so a cached body
        reports the same ages a freshly computed one does: meta.cached and
        meta.cache_age_s stay the only transport-time facts and neither makes
        this block newer. The per-field audit object is still available through
        expand=trust; this is the default summary of the same question.
      required:
        - status
        - field_groups
      properties:
        status:
          type: string
          enum:
            - fresh
            - partial
            - unknown
            - untracked
            - unavailable
          description: >-
            fresh when every group is fresh, unavailable when every group is
            unavailable, and partial in every other case.
        as_of:
          type: string
          format: date-time
          description: >-
            The oldest as_of among the groups that carry one: the age of the
            weakest clock this body rests on. Omitted when no group carries a
            clock.
        field_groups:
          type: array
          items:
            $ref: '#/components/schemas/DataQualityGroup'
          description: >-
            One entry per field group. Entries may be added in later releases,
            so match on group rather than on position or length.
    LargeTradeHistoryMeta:
      type: object
      required:
        - request_id
        - cached
        - source
        - completeness
      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
          description: >-
            Cache age in seconds; the key is absent when the response was not
            cached.
        source:
          type: object
          required:
            - kind
            - table
            - provider_fetch_at_request_time
          properties:
            kind:
              type: string
              const: local_replay
            table:
              type: string
              const: whale_alerts
            provider_fetch_at_request_time:
              type: boolean
              const: false
        completeness:
          type: object
          required:
            - status
            - reason
          properties:
            status:
              type: string
              const: best_effort
            reason:
              type: string
              description: >-
                Explains that local replay completeness can vary by market and
                time window.
    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
            param:
              type: string
            retry_at:
              type: string
              format: date-time
              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.
            freshness:
              $ref: '#/components/schemas/FreshnessFailure'
            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
                - webhook_secret_rotation_not_prepared
                - webhook_secret_rotation_overlap_active
                - sandbox_api_key
                - api_key_in_query
                - subscription_inactive
                - monthly_quota_exceeded
                - invalid_query
                - unknown_query_parameter
                - invalid_path
                - invalid_body
                - unsupported_media_type
                - payload_too_large
                - method_not_allowed
                - ip_rate_limited
                - ip_throttled
                - export_expired
                - freshness_ceiling_unsatisfied
              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. ip_rate_limited (429 rate_limited, #16380): the
                per-address budget every caller behind one IP shares, counted
                before authentication, is spent; not the key's own window, and
                the RateLimit-* headers describe that bucket. ip_throttled (429
                rate_limited): the address is in a cooldown after sustained
                over-limit traffic; Retry-After is minutes to days, and a
                request before it does not shorten the cooldown.
        meta:
          $ref: '#/components/schemas/ResponseMeta'
    DataQualityGroup:
      type: object
      description: >-
        One group of response fields that share a writer and therefore share a
        clock.
      required:
        - group
        - owner
        - status
      properties:
        group:
          type: string
          description: >-
            Stable snake_case group name. Names are additive across releases, so
            match on the ones you know and ignore the rest.
        owner:
          type: string
          description: >-
            The table and column that write this group, named so the verdict can
            be audited (for example trader_rankings.computed_at).
        status:
          type: string
          enum:
            - fresh
            - partial
            - unknown
            - untracked
            - unavailable
          description: >-
            fresh: served, and as_of carries this group's real observation or
            computation clock. partial: some of the group's fields are served
            and some are missing. unknown: served, and this read has no clock
            for it, so no age may be inferred. untracked: 0xinsider does not
            track this group for this subject, by design. unavailable: the group
            could not be served. New values may be added; treat one you do not
            recognize as unknown. fresh means the group is tracked and clocked,
            not that it is inside any particular tolerance: compare as_of
            against your own.
        as_of:
          type: string
          format: date-time
          description: >-
            When this group's values were observed or computed. Omitted whenever
            the read cannot measure it, and never filled with the serialization
            time, the cache time, or another group's clock.
        reason:
          type: string
          description: Why the status is not fresh. Omitted when it is.
    FreshnessFailure:
      type: object
      required:
        - max_age_s
        - data_quality_status
      properties:
        max_age_s:
          type: integer
          format: int64
          minimum: 0
          description: The caller's requested whole-response freshness ceiling in seconds.
        actual_age_s:
          type: integer
          format: int64
          minimum: 0
          description: >-
            Age in seconds of the oldest stored data_quality.as_of clock, when
            one is available.
        as_of:
          type: string
          format: date-time
          description: >-
            The oldest stored data-quality clock used to calculate actual_age_s,
            when one is available.
        data_quality_status:
          type: string
          enum:
            - fresh
            - partial
            - unknown
            - untracked
            - unavailable
          description: >-
            The trader body's whole-response data-quality status. Only fresh can
            satisfy max_age_s.
    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
          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
          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
          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
            sharp-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 sharp-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.
  headers:
    X-Query-Ignored:
      description: >-
        Comma-separated, percent-encoded query names the operation did not
        publish and therefore ignored in compatible mode. Names are sorted and
        de-duplicated.
      schema:
        type: string
    X-Effective-Query:
      description: >-
        Normalized, percent-encoded query string containing only the recognized
        names and values applied by the operation. Query names and values use
        form-urlencoded decoding, where + is a space. Repeated names are
        retained and sorted by name.
      schema:
        type: string
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Legacy default or named integration API key, or OAuth 2.1 access token,
        in the Authorization header as `Bearer oxi_sk_live_...` or `Bearer
        oxi_at_...`. Default keys retain full access; integration keys are
        limited to their approved read, webhooks, export and usage scopes and
        expire within 90 days. All credentials share the owner's account limits.
        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

````