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

# Smart Money Flows

> Ranks markets by absolute net S/A/B-grade whale flow over a requested timeframe. Use this discovery endpoint to answer where smart money is flowing before drilling into a specific market with /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque cursor carrying the first page as_of timestamp so new whale trades do not reorder page 2.

Rank markets by where graded traders are putting money. This is the "where is smart money flowing right now?" feed. It aggregates whale flow from S, A, and B grade traders. It ranks markets by absolute net flow over your chosen window.

Use it for discovery, before you know a `condition_id`. Once you have a market, follow up with [Get Market Intel](/api-reference/endpoint/get-market-intel) for the single-market breakdown.

Common filters:

* `timeframe=24h` — lookback window (`1h`, `4h`, `24h`, or `7d`).
* `min_grade=B` — minimum trader grade in the flow. The default `B` means S, A, and B graded traders only.
* `platform=polymarket` or `platform=kalshi`.
* `direction=YES` or `direction=NO` — restrict to one side of the flow.
* `category=crypto` — case-insensitive exact match against the provider-backed market category.

```bash theme={null}
curl -H "Authorization: Bearer $OXINSIDER_API_KEY" \
  "https://api.0xinsider.com/api/v1/markets/smart-money-flows?timeframe=7d&min_grade=B&limit=10"
```

Cursor-paginated. The cursor is anchored to the first page's `as_of` timestamp, so new whale trades do not reorder later pages. See [Pagination](/concepts/pagination).


## OpenAPI

````yaml GET /api/v1/markets/smart-money-flows
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 and Kalshi.
    Polymarket wallet-attributed trades can add grades, P&L, strategy, and
    diagnostic-score context when sufficient source data exists; Kalshi public
    prints remain anonymous, and fields can be null or unavailable. Normal API
    requests use a 30-second server timeout that returns HTTP 408 Request
    Timeout with an empty body when exceeded. 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
    X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, Retry-After,
    ETag, X-Request-Id, X-Request-Cost, X-Batch-RateLimit-Limit,
    X-Batch-RateLimit-Remaining, X-Batch-RateLimit-Reset, Mcp-Session-Id, and
    X-Mcp-Error-Code response headers. Credentialed first-party routes such as
    /api/keys, /api/billing, and auth endpoints remain restricted to configured
    0xinsider origins.
  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.
security:
  - bearerAuth: []
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 proven smart money is
      backing, with pre-game odds, the proven holders, and the track record.
  - name: Markets
    description: Market search, discovery, snapshots, and smart-score flow.
  - name: Insider Radar
    description: Suspicious trading pattern detection.
  - 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: 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.
paths:
  /api/v1/markets/smart-money-flows:
    get:
      tags:
        - Markets
      summary: List ranked smart-money flows
      description: >-
        Ranks markets by absolute net S/A/B-grade whale flow over a requested
        timeframe. Use this discovery endpoint to answer where smart money is
        flowing before drilling into a specific market with
        /api/v1/market/{condition_id}/intel. Pagination is anchored by an opaque
        cursor carrying the first page as_of timestamp so new whale trades do
        not reorder page 2.
      operationId: listSmartMoneyFlows
      parameters:
        - name: timeframe
          in: query
          description: Lookback window for grade-filtered whale flow aggregation.
          schema:
            type: string
            enum:
              - 1h
              - 4h
              - 24h
              - 7d
            default: 24h
        - name: limit
          in: query
          description: Page size.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          description: >-
            Opaque cursor from previous response's next_cursor. Encodes the
            first-page as_of timestamp plus the last row's absolute net flow and
            condition_id.
          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: platform
          in: query
          description: Filter by source platform. all is a request-side no-op.
          schema:
            type: string
            enum:
              - polymarket
              - kalshi
              - all
            default: all
        - name: min_grade
          in: query
          description: >-
            Minimum latest trader grade included in the flow. Default B means
            S/A/B only; unranked traders are excluded.
          schema:
            type: string
            enum:
              - S
              - A
              - B
              - C
              - D
              - F
            default: B
        - name: direction
          in: query
          description: Optional post-aggregate flow direction filter.
          schema:
            type: string
            enum:
              - 'YES'
              - 'NO'
        - 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: Ranked market smart-money flows
          headers:
            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'
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                  - has_more
                  - meta
                properties:
                  object:
                    type: string
                    const: list
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/SmartMoneyFlowMarket'
                  has_more:
                    type: boolean
                  next_cursor:
                    type: string
                    nullable: true
                  total:
                    type: integer
                    nullable: true
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
              examples:
                success:
                  summary: Successful response
                  value:
                    object: list
                    data:
                      - market:
                          id: mkt_0x123
                          condition_id: '0x123'
                          title: Will BTC close above $100k this week?
                          slug: btc-close-above-100k-this-week
                          category: Crypto
                          platform: polymarket
                        sharp_money:
                          net_flow_usd: 12345.67
                          direction: 'YES'
                          whale_trade_count: 7
                          buy_volume_usd: 20000
                          sell_volume_usd: 7654.33
                        smart_money:
                          net_flow_usd: 12345.67
                          direction: 'YES'
                          whale_trade_count: 7
                          buy_volume_usd: 20000
                          sell_volume_usd: 7654.33
                        timeframe: 24h
                    has_more: false
                    next_cursor: null
                    meta:
                      request_id: req_example
                      cached: false
                      cost: 3
        '304':
          description: >-
            Not Modified. Returned when If-None-Match matches the current
            payload.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
        '400':
          $ref: '#/components/responses/CursorExpired'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '408':
          $ref: '#/components/responses/RequestTimeout'
        '423':
          $ref: '#/components/responses/Locked'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/RateLimitUnavailable'
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl -sS \
              -H 'Authorization: Bearer $OXI_SK' \
              'https://api.0xinsider.com/api/v1/markets/smart-money-flows?timeframe=7d&min_grade=B&limit=10'
components:
  headers:
    X-RateLimit-Limit:
      description: Authenticated V1 per-user request limit for the current sliding window.
      schema:
        type: integer
        example: 100
    X-RateLimit-Remaining:
      description: >-
        Authenticated V1 requests remaining in the current sliding window after
        this response.
      schema:
        type: integer
        example: 84
    X-RateLimit-Reset:
      description: Unix timestamp when the authenticated V1 request window resets.
      schema:
        type: integer
        example: 1710772860
    X-Request-Id:
      description: Server-generated request identifier for support and tracing.
      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"
  schemas:
    SmartMoneyFlowMarket:
      type: object
      required:
        - market
        - sharp_money
        - smart_money
        - timeframe
      properties:
        market:
          type: object
          required:
            - id
            - condition_id
            - title
            - slug
            - category
            - platform
          properties:
            id:
              type: string
            condition_id:
              type: string
            title:
              type: string
              nullable: true
            slug:
              type: string
              nullable: true
            category:
              type: string
              nullable: true
            platform:
              type: string
              nullable: true
        sharp_money:
          type: object
          description: >-
            Sharp-money flow aggregate for the market (canonical; smart_money is
            a deprecated byte-identical alias).
          required:
            - net_flow_usd
            - direction
            - whale_trade_count
            - buy_volume_usd
            - sell_volume_usd
          properties:
            net_flow_usd:
              type: number
            direction:
              type: string
              enum:
                - 'YES'
                - 'NO'
            token_id:
              type: string
              nullable: true
              description: >-
                The Polymarket CLOB token id (ERC1155 asset id, decimal string)
                for the net-flow direction outcome; null when unavailable (e.g.
                Kalshi markets, unsynced markets).
            whale_trade_count:
              type: integer
            buy_volume_usd:
              type: number
            sell_volume_usd:
              type: number
        smart_money:
          type: object
          description: >-
            Deprecated alias of sharp_money; byte-identical and retained for
            backward compatibility.
          required:
            - net_flow_usd
            - direction
            - whale_trade_count
            - buy_volume_usd
            - sell_volume_usd
          properties:
            net_flow_usd:
              type: number
            direction:
              type: string
              enum:
                - 'YES'
                - 'NO'
            token_id:
              type: string
              nullable: true
              description: >-
                The Polymarket CLOB token id (ERC1155 asset id, decimal string)
                for the net-flow direction outcome; null when unavailable (e.g.
                Kalshi markets, unsynced markets).
            whale_trade_count:
              type: integer
            buy_volume_usd:
              type: number
            sell_volume_usd:
              type: number
        timeframe:
          type: string
    ResponseMeta:
      type: object
      required:
        - request_id
        - cached
        - cost
      properties:
        request_id:
          type: string
          description: Unique request ID (req_ prefix).
        cached:
          type: boolean
        cache_age_s:
          type: integer
          nullable: true
          description: Cache age in seconds, null if not cached.
        cost:
          type: integer
          description: >-
            Advisory request weight (relative compute cost). 1 for simple reads;
            higher for heavier endpoints. Not a credit/price.
        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
          const: partial_whale_threshold_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 slate 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
              enum:
                - bad_request
                - invalid_api_key
                - subscription_required
                - forbidden
                - not_found
                - account_locked
                - rate_limited
                - rate_limit_unavailable
                - internal_error
            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 retry instant (RFC3339). Present on every
                retryable error (reason=pick_not_released, code=rate_limited,
                code=rate_limit_unavailable, reason=read_model_warming) and
                omitted otherwise. Always in the future. For pick_not_released:
                before the 11:00 UTC operating-window start, before a selected
                pick's stored release, or after a skipped day, it names the
                automatic system's next boundary. While no candidate exists in
                the live window it normally names the persisted next automatic
                selector attempt (~15m). Every value is advisory under supported
                operator actions: manual publication, release-time override, or
                admin generation can make a pick available first. When the
                automatic schedule is absent/due or a pick is overdue it
                degrades to ~60s. Schedule one request and do not poll. Prefer
                Retry-After for the duration because it is immune to client
                clock skew.
            reason:
              type: string
              enum:
                - cursor_expired
                - unknown_endpoint
                - pick_not_released
                - trader_not_tracked
                - read_model_warming
                - idempotency_in_progress
                - webhook_delivery_in_progress
              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.
                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.
        meta:
          $ref: '#/components/schemas/ResponseMeta'
  responses:
    CursorExpired:
      description: >-
        Bad request. On this cursor-paginated route a 400 has TWO distinct
        causes; branch on error.reason. (1) error.reason="cursor_expired" (with
        error.param="cursor"): the pagination cursor was invalidated by an
        upstream data change mid-walk (e.g. the ranking snapshot behind the page
        refreshed). It is NOT a malformed parameter and NOT a reason to stop:
        recovery is mechanical -- re-request the first page and walk forward
        again. There is deliberately no Retry-After and no error.retry_at,
        because waiting changes nothing. (2) no error.reason: an ordinary
        invalid request parameter -- check error.param when present, otherwise
        error.message. Both carry error.code="bad_request" (a FROZEN contract
        value), so error.reason is the discriminator.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    SubscriptionRequired:
      description: Active Pro subscription required
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    Forbidden:
      description: Account access denied
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RequestTimeout:
      description: >-
        Request exceeded the server's 30-second transport timeout. The timeout
        response has an empty body because it is generated before handler-level
        JSON error shaping.
    Locked:
      description: Account is locked
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    RateLimited:
      description: >-
        Rate limit exceeded. Two 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
        before any item work is done.
      headers:
        Retry-After:
          description: Seconds until rate limit resets.
          schema:
            type: integer
        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'
    RateLimitUnavailable:
      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'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key authentication. Send your key in the Authorization header as
        `Bearer oxi_sk_live_...`. Live keys require an active Pro subscription
        and return live data.

````