> ## 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 Market Snapshot

> Provider-first market card snapshot with canonical identity, outcome labels, cached top-of-book when available, liquidity, live sports context, and explicit freshness/unavailable states.

One-shot view of a single market: price, volume, status, recent activity. Trust-metadata fields tell you which values are live and provider-backed and which are cached, partial, or unavailable.

Pass either the raw provider-backed `condition_id` or the `mkt_...` market ID emitted by V1 responses.

```bash theme={null}
curl -H "Authorization: Bearer $OXINSIDER_API_KEY" \
  "https://api.0xinsider.com/api/v1/market/0xabc.../snapshot"
```

If a field comes back `unavailable`, treat it as missing. Don't flatten it to `0`. See [Trust metadata](/api-reference/introduction#trust-metadata).


## OpenAPI

````yaml GET /api/v1/market/{condition_id}/snapshot
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.
  - url: https://api.0xinsider.com
    description: >-
      Sandbox / test mode (deterministic fixture data, no live rows).
      Authenticate with a test key (oxi_sk_test_...) on a free account. Same
      base URL and paths as production: the key class selects live vs sandbox.
      Test keys are billing-exempt, served from a fixed fixture dataset, and
      never read live data or persist writes; webhooks, usage, and MCP responses
      show the response shape only.
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: 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/market/{condition_id}/snapshot:
    get:
      tags:
        - Markets
      summary: Get market live snapshot
      description: >-
        Provider-first market card snapshot with canonical identity, outcome
        labels, cached top-of-book when available, liquidity, live sports
        context, and explicit freshness/unavailable states.
      operationId: getMarketSnapshot
      parameters:
        - name: condition_id
          in: path
          required: true
          description: >-
            Market condition ID. Accepts the raw provider-backed condition_id
            returned by /api/v1/markets/search or /api/v1/markets/explore, or
            the mkt_-prefixed market.id emitted by V1 responses.
          schema:
            type: string
        - name: expand[]
          in: query
          required: false
          description: 'Backward-compatible alias for expand. Repeatable: trust.'
          schema:
            type: array
            items:
              type: string
              enum:
                - trust
          style: form
          explode: true
        - name: expand
          in: query
          required: false
          description: >-
            Include trust metadata for current_price and spread_bps. Repeatable:
            trust.
          schema:
            type: array
            items:
              type: string
              enum:
                - trust
          style: form
          explode: true
        - 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: Provider-first market snapshot
          content:
            application/json:
              schema:
                type: object
                required:
                  - object
                  - data
                  - meta
                properties:
                  object:
                    type: string
                    const: market_snapshot
                  data:
                    $ref: '#/components/schemas/MarketSnapshot'
                  meta:
                    $ref: '#/components/schemas/ResponseMeta'
              examples:
                success:
                  summary: Successful response
                  value:
                    object: markets
                    data: {}
                    meta:
                      request_id: req_example
                      cached: false
          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'
        '304':
          description: >-
            Not Modified. Returned when If-None-Match matches the current
            payload.
          headers:
            ETag:
              $ref: '#/components/headers/ETag'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/SubscriptionRequired'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '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/market/{condition_id}/snapshot'
components:
  schemas:
    MarketSnapshot:
      type: object
      required:
        - market
        - outcomes
        - liquidity
        - sports
        - freshness
      properties:
        market:
          type: object
          required:
            - id
            - condition_id
            - provider
            - status
          properties:
            id:
              type: string
            condition_id:
              type: string
            provider:
              type: string
            title:
              type: string
              nullable: true
            slug:
              type: string
              nullable: true
            page_slug:
              type: string
              nullable: true
            event_slug:
              type: string
              nullable: true
            category:
              type: string
              nullable: true
            status:
              type: string
              enum:
                - active
                - closed
            description:
              type: string
              nullable: true
            image:
              type: string
              nullable: true
            series_slug:
              type: string
              nullable: true
            kalshi_series_slug:
              type: string
              nullable: true
            market_type:
              type: string
              nullable: true
            market_result:
              type: string
              nullable: true
            created_at:
              type: string
              format: date-time
              nullable: true
            end_date:
              type: string
              format: date-time
              nullable: true
            resolved_at:
              type: string
              format: date-time
              nullable: true
        outcomes:
          type: array
          items:
            type: object
            required:
              - side
              - label
              - top_of_book
            properties:
              side:
                type: string
                enum:
                  - 'yes'
                  - 'no'
              label:
                type: string
              token_id:
                type: string
                nullable: true
              current_price:
                type: number
                nullable: true
              top_of_book:
                $ref: '#/components/schemas/MarketSnapshotTopOfBook'
        liquidity:
          type: object
          required:
            - source
          properties:
            source:
              type: string
            volume_usd:
              type: number
              nullable: true
            liquidity_usd:
              type: number
              nullable: true
            volume_24h_usd:
              type: number
              nullable: true
            last_price:
              type: number
              nullable: true
        sports:
          type: object
          required:
            - status
            - source
          properties:
            status:
              type: string
              enum:
                - fresh
                - stale
                - not_live
                - unavailable
            source:
              type: string
            live_match_key:
              type: string
              nullable: true
            live_league_key:
              type: string
              nullable: true
            live_score:
              type: object
              nullable: true
            reason:
              type: string
              nullable: true
        freshness:
          type: object
          required:
            - market_data
            - top_of_book
            - live_sports
          properties:
            market_data:
              $ref: '#/components/schemas/MarketSnapshotFreshness'
            top_of_book:
              $ref: '#/components/schemas/MarketSnapshotFreshness'
            live_sports:
              $ref: '#/components/schemas/MarketSnapshotFreshness'
        trust:
          $ref: '#/components/schemas/MarketSnapshotTrust'
          description: >-
            Price and spread trust metadata. Present only when expand=trust or
            expand[]=trust is requested.
    ResponseMeta:
      type: object
      required:
        - request_id
        - cached
      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.
    MarketSnapshotTopOfBook:
      type: object
      required:
        - status
        - source
      properties:
        status:
          type: string
          enum:
            - available
            - unavailable
        source:
          type: string
        best_bid:
          type: number
          nullable: true
        best_ask:
          type: number
          nullable: true
        spread_bps:
          type: integer
          nullable: true
        bid_depth_usdc:
          type: number
          nullable: true
        ask_depth_usdc:
          type: number
          nullable: true
        reason:
          type: string
          nullable: true
    MarketSnapshotFreshness:
      type: object
      required:
        - status
        - source
      properties:
        status:
          type: string
          enum:
            - fresh
            - stale
            - available
            - not_live
            - unavailable
        source:
          type: string
        as_of:
          type: string
          format: date-time
          nullable: true
        stale_after_s:
          type: integer
          nullable: true
        reason:
          type: string
          nullable: true
    MarketSnapshotTrust:
      type: object
      description: >-
        Price and spread trust metadata returned only when GET
        /api/v1/market/{condition_id}/snapshot includes expand=trust.
      required:
        - current_price
        - spread_bps
      properties:
        current_price:
          $ref: '#/components/schemas/TrustMetadata'
        spread_bps:
          $ref: '#/components/schemas/TrustMetadata'
    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
        meta:
          $ref: '#/components/schemas/ResponseMeta'
    TrustMetadata:
      type: object
      description: >-
        Shared source/freshness/reconciliation/completeness metadata for public
        API values that may be cached, stale, partial, computed, or
        provider-unavailable. Unavailable provider values must be represented
        with explicit metadata instead of fabricated zeros or empty arrays.
      required:
        - source
        - freshness
        - reconciliation
        - completeness
      properties:
        source:
          $ref: '#/components/schemas/TrustSource'
        freshness:
          $ref: '#/components/schemas/TrustFreshness'
        reconciliation:
          $ref: '#/components/schemas/TrustReconciliation'
        completeness:
          $ref: '#/components/schemas/TrustCompleteness'
    TrustSource:
      type: object
      description: >-
        Source metadata for a trust-critical value. Providers and DB/read models
        own business truth; clients should not infer missing provider facts from
        titles, slugs, zeros, or empty arrays.
      required:
        - kind
        - owner
      properties:
        kind:
          type: string
          enum:
            - provider
            - database
            - cache
            - computed
            - client_input
            - unavailable
        owner:
          type: string
          description: Provider, table/read-model, cache, or service that owns the value.
        field:
          type: string
          nullable: true
          description: Provider field, DB column, or computed field name when applicable.
    TrustFreshness:
      type: object
      description: >-
        Freshness metadata for a trust-critical value. This is separate from
        transport cache fields in ResponseMeta.
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - fresh
            - refreshing
            - stale
            - not_live
            - unknown
            - unavailable
        as_of:
          type: string
          format: date-time
          nullable: true
        max_age_s:
          type: integer
          nullable: true
          minimum: 0
    TrustReconciliation:
      type: object
      description: How provider-owned facts were reconciled with stored/read-model values.
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - provider_backed
            - db_mirror
            - computed
            - partial
            - not_applicable
            - unavailable
        detail:
          type: string
          nullable: true
    TrustCompleteness:
      type: object
      description: >-
        Whether the described value or result set is complete for its stated
        contract.
      required:
        - status
      properties:
        status:
          type: string
          enum:
            - complete
            - partial
            - not_computed
            - not_applicable
            - unavailable
        detail:
          type: string
          nullable: true
  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: >-
        Strong validator for conditional GET. Send as If-None-Match to receive
        304 when unchanged.
      schema:
        type: string
        example: '"8f14e45fceea167a5a36dedd4bea2543"'
  responses:
    BadRequest:
      description: Invalid request parameter
      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'
    NotFound:
      description: Resource not found
      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 (100 req/min; batch endpoints also reserve 100 batch
        item units/min before execution)
      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: Authorization: Bearer oxi_sk_live_... for live data (requires
        an active Insider subscription), or oxi_sk_test_... for sandbox/test
        mode (free account, deterministic fixture data, no live rows). Both key
        classes use the same paths; the prefix selects live vs sandbox.

````