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

# Get Sports Edge Signals

> Insider-tier. Ranked list of upcoming pre-game sports markets (moneyline + props) where graded (S/A/B) smart money is piled on one side, each row carrying the piled side, its grade distribution (S/A/B counts, dollar concentration, top grade), the kickoff time, and the piled-side Polymarket CLOB token id. Eligibility is a market with recent graded whale FLOW in the kickoff window; ranking is the current graded HOLDER pile. Deliberately NOT the editorial Pick of the Day ranker. Served from a shared server-side snapshot cache (TTL ~180s) computed once per category window at the maximum 48h horizon and filtered to the requested horizon_hours at request time (so every horizon shares one cache entry); the cursor pins to that snapshot and a stale cursor is rejected. Polymarket only (Kalshi lacks kickoff + graded-holder data).

Returns the ranked list of upcoming pre-game sports markets (moneyline and props) where graded smart money is piled on one side. Each signal carries the piled side and its CLOB token, the grade distribution of the pile (S/A/B holder counts), dollar concentration, the market's kickoff time, and a grade-weighted conviction score — everything needed to act on the signal in one call, computed server-side.

Ranking is grade-distribution driven: `conviction_score = (5·s_count + 4·a_count + 3·b_count) · sharp_pct`, so a market with more top-grade (S/A) traders concentrated on the piled side ranks higher. All raw fields are returned so callers can re-rank. Markets with no clear pile (roughly 50/50) are excluded.


## OpenAPI

````yaml GET /api/v1/sports-edge-signals
openapi: 3.1.0
info:
  title: 0xinsider API
  description: >-
    Find your edge on Polymarket and Kalshi. Every wallet graded, every trade
    scored, every outlier flagged. API exposes trader grades, whale trades,
    smart money signals, and insider detection for AI agents, trading bots, and
    research tools. 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 Insider 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/sports-edge-signals:
    get:
      tags:
        - Markets
      summary: List ranked pre-game sports-edge signals
      description: >-
        Insider-tier. Ranked list of upcoming pre-game sports markets (moneyline
        + props) where graded (S/A/B) smart money is piled on one side, each row
        carrying the piled side, its grade distribution (S/A/B counts, dollar
        concentration, top grade), the kickoff time, and the piled-side
        Polymarket CLOB token id. Eligibility is a market with recent graded
        whale FLOW in the kickoff window; ranking is the current graded HOLDER
        pile. Deliberately NOT the editorial Pick of the Day ranker. Served from
        a shared server-side snapshot cache (TTL ~180s) computed once per
        category window at the maximum 48h horizon and filtered to the requested
        horizon_hours at request time (so every horizon shares one cache entry);
        the cursor pins to that snapshot and a stale cursor is rejected.
        Polymarket only (Kalshi lacks kickoff + graded-holder data).
      operationId: listSportsEdgeSignals
      parameters:
        - name: category
          in: query
          description: >-
            Optional canonical sport bucket filter (e.g. Basketball, Tennis,
            Soccer). A raw provider value (NBA) resolves to its canonical
            bucket. A non-sport category returns an empty list.
          schema:
            type: string
        - name: limit
          in: query
          description: Page size.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 20
        - name: cursor
          in: query
          description: >-
            Opaque cursor from a previous response's next_cursor. Encodes the
            snapshot anchor plus the last row's directional_rank_score,
            conviction_score, smart_score and condition_id. A cursor from an
            expired snapshot returns 400.
          schema:
            type: string
        - name: horizon_hours
          in: query
          description: >-
            Kickoff ceiling in hours from now; the floor is now (only games not
            yet started). Clamped to 1..48.
          schema:
            type: integer
            minimum: 1
            maximum: 48
            default: 12
        - name: min_grade
          in: query
          description: >-
            Minimum trader grade required on the piled side. Only S, A, B are
            accepted (the piled-side grade distribution is S/A/B only; C, D, F
            return 400). Default B means at least one S/A/B holder is piled; S
            requires an S holder, A requires an S or A holder.
          schema:
            type: string
            enum:
              - S
              - A
              - B
            default: B
        - 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 pre-game sports-edge signals
          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/SportsEdgeSignal'
                  has_more:
                    type: boolean
                  next_cursor:
                    type: string
                    nullable: true
                  total:
                    type: integer
                    nullable: true
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
              x-examples:
                success:
                  object: list
                  data: []
                  has_more: false
                  next_cursor: null
                  meta:
                    request_id: req_example
                    cached: false
                    cost: 5
        '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/sports-edge-signals?category=Basketball&horizon_hours=12&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:
    SportsEdgeSignal:
      type: object
      description: >-
        One ranked pre-game sports market where graded smart money is piled on
        one side, with the grade distribution, kickoff, and piled-side CLOB
        token id.
      required:
        - condition_id
        - piled_outcome_index
        - backed_sharp_usd
        - s_count
        - a_count
        - b_count
        - graded_holders
        - conviction_score
        - directional_rank_score
        - rank
      properties:
        condition_id:
          type: string
          description: Polymarket condition id.
        token_id:
          type: string
          nullable: true
          description: >-
            Polymarket CLOB token id (ERC1155 asset id, decimal string) for the
            PILED outcome; null when unavailable.
        category:
          type: string
          nullable: true
          description: >-
            Canonical sport bucket (e.g. Basketball, Tennis); null when the raw
            category has no canonical mapping.
        raw_category:
          type: string
          nullable: true
          description: Raw provider category as stored (e.g. NBA, EPL).
        title:
          type: string
          nullable: true
        event_slug:
          type: string
          nullable: true
        game_start_time:
          type: string
          format: date-time
          nullable: true
          description: >-
            Kickoff (UTC). In the future at SNAPSHOT time and within the
            requested horizon; because the response is served from a shared
            snapshot cached up to the ~180s TTL, a served kickoff can be up to
            ~180s in the past relative to the response time. Not a live
            guarantee that the game has not yet started.
        piled_side:
          type: string
          nullable: true
          description: >-
            Human piled-side label (never a bare Yes/Over); null when the
            provider outcome label is missing.
        piled_outcome_index:
          type: integer
          description: >-
            Provider binary-column selector: 0 selects outcome_yes/token_id_yes;
            1 selects outcome_no/token_id_no. It does not identify home/away or
            a participant; use piled_side for participant identity.
        sharp_pct:
          type: number
          nullable: true
          description: >-
            Piled-side dollar concentration backed_usd / (yes_usd + no_usd), in
            (0.5, 1] for a real pile; null when there is no sharp USD.
        backed_sharp_usd:
          type: number
          description: Raw piled-side smart-money USD.
        s_count:
          type: integer
          description: S-grade graded holders on the piled side.
        a_count:
          type: integer
          description: A-grade graded holders on the piled side.
        b_count:
          type: integer
          description: B-grade graded holders on the piled side.
        graded_holders:
          type: integer
          description: Piled-side graded holder count (s_count + a_count + b_count).
        top_grade:
          type: string
          nullable: true
          enum:
            - S
            - A
            - B
          description: Best grade present on the piled side; null when none.
        smart_score:
          type: number
          nullable: true
          description: >-
            Canonical sharp-money score (yes_usd - no_usd)/(yes_usd + no_usd) in
            [-1, 1] (piled-yes positive, piled-no negative); a lower-order
            ranking tiebreak (after directional_rank_score and
            conviction_score).
        volume:
          type: number
          nullable: true
          description: Market volume (USD).
        net_side:
          type: string
          nullable: true
          enum:
            - BUY
            - SELL
          description: >-
            Aggregate recent flow direction on the market; null when
            unavailable.
        conviction_score:
          type: number
          description: >-
            Grade-weighted pile score (5*s + 4*a + 3*b) * sharp_pct; the raw
            conviction input to the ranking (see directional_rank_score).
        one_way_holder_count:
          type: integer
          nullable: true
          description: >-
            Piled-side graded holders whose open legs across the signal game's
            markets (cross-market within the one game; moneyline+spread family
            only) all back the same team; counted only when the wallet's leg set
            is fresh and groupable. Null when the directional read was not
            computed (no groupable game, no holder-level data on this ranking
            path, or the enrichment read failed).
        hedged_holder_count:
          type: integer
          nullable: true
          description: >-
            Piled-side graded holders classified HEDGED across the game (they
            back two or more distinct teams). Null when the directional read was
            not computed.
        one_way_graded_usd:
          type: number
          nullable: true
          description: >-
            Piled-side graded USD held by genuinely one-way wallets
            (share-weighted allocation of backed_sharp_usd). Null when the
            directional read was not computed.
        directional_confidence:
          type: number
          nullable: true
          description: >-
            One-way fraction of the piled graded dollars, in [0, 1] -- the
            metric orthogonal to sharp_pct. Stale/unknown/hedged dollars dilute
            it toward zero (conservative). Null when the directional read was
            not computed.
        directional_rank_score:
          type: number
          description: >-
            The ranking key, descending: conviction_score * (1 + 0.25 *
            directional_confidence). Equals conviction_score when the
            directional read is null/zero, so signals without the read rank
            exactly as before.
        rank:
          type: integer
          description: 1-based rank within the (min_grade-filtered) ranked result.
    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.
    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
                it has two regimes: before the 11:00 UTC operating-window start,
                before a selected pick's stored release, or after a terminal
                skipped day, it is an exact floor and nothing can publish first.
                When a publish is overdue or the selector is still hunting
                inside the operating window, it is a bounded cadence (~60s), not
                a lower-bound promise; a pick may publish before it. 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
              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. Consult that
                endpoint's contract, retry only this route after the interval,
                and do not infer dependency health from this reason.
        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 Insider 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 still denies 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 Insider
        subscription and return live data.

````