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

# Get all sibling outcomes for the event containing a market

> Returns every outcome in the event that `market_id` belongs to (for multi-outcome / grouped markets), served from a cache of pre-computed event/market lookups. Any identifier (market_id, token_id, condition_id, symbol, slug) is mapped to its `event_id`; if that misses, falls back to the per-market entry's embedded `event_id`, then to deriving a Kalshi-style event ticker by stripping the last `-SEGMENT` off `market_id` (e.g. `KXPGATOUR-THGI26-SSTR` → `KXPGATOUR-THGI26`). If no event can be resolved at all and `provider=polymarket`, falls back to a live Polymarket lookup — guarding against a known upstream quirk that can silently return an unrelated default result instead of an empty list. Non-Polymarket providers get no such fallback — an unresolvable event returns the empty shape. `all_ids` (comma-separated, ≤200 ids, each ≤128 chars) additionally resolves `event_groups` — a map from every supplied id (and every sibling id discovered while resolving events) to its `event_id`, used by the frontend to dedupe sibling contracts across dropdowns. **Price scale note:** unlike most of this API, outcome prices here are returned as a **0–1 decimal probability**, not the platform's usual 0–100 cents scale.




## OpenAPI

````yaml /openapi/data-api.yaml get /markets/outcomes
openapi: 3.1.0
info:
  title: Kairos Data API
  version: 1.0.0
  summary: >-
    The full Kairos data plane — markets, candles, trades, search, discover,
    sports, trader analytics, and PnL.
  description: |
    The Kairos Data API at `data.kairos.trade` is the platform's primary data
    plane: market metadata and prices, OHLCV candles, live venue trade proxies,
    normalized trade history, full-text search, discovery feeds, the sports
    catalog, public trader analytics, and account PnL.

    ## Authentication

    Most endpoints accept a Kairos **API key** (`X-Client-Id` + `X-Api-Key` +
    `X-Api-Secret`, all three) or a first-party session JWT. Endpoints tagged
    `public` (trader analytics, provider configs, several sports feeds) need
    no credentials at all. Some endpoints additionally require an API-key
    **scope** (`trade:read`, `position:read`) — stated per operation.

    For high-volume market-data consumption (candles/trades/metadata at
    scale), prefer the dedicated **Market Data API** at `md.kairos.trade` —
    it has higher budgets, ETag caching, and a binary candle format.

    ## Rate limits

    Rate limits use a sliding window keyed on the authenticated user (JWT
    `sub`) or, for anonymous callers, the trusted client IP. Routes belong to
    a named **bucket** (`x-kairos-bucket`) whose per-minute budget is shared
    by every route in it; routes with no bucket run under the service default
    of 100/minute. `x-kairos-rate-limit` states the bucket's compile-time
    default — operators can raise or lower a bucket at runtime, so treat the
    documented number as the baseline, not a contract. 429 responses carry
    `Retry-After` and `X-RateLimit-*`.

    ## Conventions

    - Prices are on the **0–100 cents scale** unless a field says otherwise
      (trader-analytics position/trade prices use the 0–1 scale; each field's
      description states its scale).
    - Errors: `{"detail": "<message>"}` for handler errors; FastAPI's
      standard validation envelope for 422s. Errors surfaced from a venue
      adapter instead use `{"error", "provider", "operation", "message"}` —
      see `DataProviderError`. Unhandled failures always return the generic
      500 body; internal details are logged, never returned.
    - Every request body is capped at 8 MiB service-wide (413).
  contact:
    name: Kairos
    url: https://app.kairos.trade/docs/api-reference
  termsOfService: https://kairos.trade/terms
servers:
  - url: https://data.kairos.trade
    description: Production
  - url: https://staging-data.kairos.trade
    description: Staging
security:
  - apiKeyClientId: []
    apiKeyKey: []
    apiKeySecret: []
paths:
  /markets/outcomes:
    get:
      tags:
        - Markets
      summary: Get all sibling outcomes for the event containing a market
      description: >
        Returns every outcome in the event that `market_id` belongs to (for
        multi-outcome / grouped markets), served from a cache of pre-computed
        event/market lookups. Any identifier (market_id, token_id, condition_id,
        symbol, slug) is mapped to its `event_id`; if that misses, falls back to
        the per-market entry's embedded `event_id`, then to deriving a
        Kalshi-style event ticker by stripping the last `-SEGMENT` off
        `market_id` (e.g. `KXPGATOUR-THGI26-SSTR` → `KXPGATOUR-THGI26`). If no
        event can be resolved at all and `provider=polymarket`, falls back to a
        live Polymarket lookup — guarding against a known upstream quirk that
        can silently return an unrelated default result instead of an empty
        list. Non-Polymarket providers get no such fallback — an unresolvable
        event returns the empty shape. `all_ids` (comma-separated, ≤200 ids,
        each ≤128 chars) additionally resolves `event_groups` — a map from every
        supplied id (and every sibling id discovered while resolving events) to
        its `event_id`, used by the frontend to dedupe sibling contracts across
        dropdowns. **Price scale note:** unlike most of this API, outcome prices
        here are returned as a **0–1 decimal probability**, not the platform's
        usual 0–100 cents scale.
      operationId: getMarketOutcomes
      parameters:
        - name: market_id
          in: query
          required: true
          schema:
            type: string
            maxLength: 128
          description: >-
            Market ID / ticker / token_id / slug. Non-empty after trimming, ≤128
            chars.
          example: KXPGATOUR-THGI26-SSTR
        - name: provider
          in: query
          required: true
          schema:
            type: string
          description: Provider name; must be an active provider.
          example: kalshi
        - name: all_ids
          in: query
          required: false
          schema:
            type: string
          description: >-
            Comma-separated list of additional contract ids (≤200 items, each
            ≤128 chars) to resolve into `event_groups` for dropdown
            deduplication.
      responses:
        '200':
          description: >-
            Event outcomes for the market, or the empty shape if no event could
            be resolved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MarketsOutcomesResponse'
        '400':
          description: >-
            Invalid/unknown provider, empty `market_id`, an oversized
            identifier, or too many `all_ids`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
        '401':
          $ref: '#/components/responses/DataUnauthorized'
        '403':
          $ref: '#/components/responses/DataForbidden'
        '422':
          $ref: '#/components/responses/DataValidationError'
        '429':
          $ref: '#/components/responses/DataRateLimited'
components:
  schemas:
    MarketsOutcomesResponse:
      type: object
      required:
        - event_title
        - outcomes
        - is_grouped
        - event_groups
        - event_titles
      properties:
        event_title:
          type:
            - string
            - 'null'
        image:
          type:
            - string
            - 'null'
        icon:
          type:
            - string
            - 'null'
        provider:
          type:
            - string
            - 'null'
        category:
          type:
            - string
            - 'null'
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/MarketsOutcomeItem'
        is_grouped:
          type: boolean
        matched_market_id:
          type:
            - string
            - 'null'
          description: >-
            The outcome entry that corresponds to the queried market_id, if
            found among the returned outcomes.
        event_groups:
          type: object
          additionalProperties:
            type: string
          description: >-
            Maps every requested id (market_id plus each all_ids entry, plus
            every sibling id discovered while resolving) to its event_id.
        event_titles:
          type: object
          additionalProperties:
            type: string
          description: Maps every event_id referenced in event_groups to its title.
    MarketsOutcomeItem:
      type: object
      properties:
        market_id:
          type: string
        title:
          type: string
        outcome_label:
          type: string
        price:
          type: number
          description: >-
            0-1 decimal probability (stored cents / 100.0) — NOT the platform's
            usual 0-100 cents scale.
          example: 0.62
        volume_total:
          type: number
        volume_24h:
          type: number
        volume_1h:
          type: number
        token_id:
          type:
            - string
            - 'null'
        condition_id:
          type:
            - string
            - 'null'
        image:
          type:
            - string
            - 'null'
          description: >-
            Only present when served from the discover cache, not from the
            direct upstream-provider fallback path.
        icon:
          type:
            - string
            - 'null'
        expiration:
          type:
            - string
            - 'null'
    DataError:
      type: object
      description: Handler error envelope (FastAPI HTTPException).
      required:
        - detail
      properties:
        detail:
          type: string
          description: Human-readable error message.
          example: Invalid provider
  responses:
    DataUnauthorized:
      description: >
        No valid credential presented — missing/invalid API-key headers, or an
        invalid/expired session token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataError'
          example:
            detail: Not authenticated
    DataForbidden:
      description: >
        Authenticated but not permitted. Three distinct causes: the session user
        is not invited

        (`Invite required`), the API key lacks the operation's scope, or API-key
        access to the

        requested venue is switched off (`API access is disabled for
        <provider>`). Admin and API-key

        callers bypass the invite check; session and admin callers bypass scope
        and venue checks.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/DataError'
          example:
            detail: Invite required
    DataValidationError:
      description: Request failed FastAPI parameter validation.
      content:
        application/json:
          schema:
            type: object
            required:
              - detail
            properties:
              detail:
                type: array
                description: >-
                  One entry per failed field, with location, message, and error
                  type.
                items:
                  type: object
                  additionalProperties: true
    DataRateLimited:
      description: >
        Rate limit exceeded for this route's sliding window, keyed on the
        session `sub` when

        authenticated and on the trusted client IP otherwise. Honor
        `Retry-After`. A per-API-key

        data ceiling (set per credential) rejects with `{"detail": "API key data
        rate limit

        exceeded"}` instead of the `error` envelope below.
      headers:
        Retry-After:
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: 'Rate limit exceeded: 100 per 1 minute'
  securitySchemes:
    apiKeyClientId:
      type: apiKey
      in: header
      name: X-Client-Id
      description: >-
        Credential client id (`kairos_ck_...`). Must be sent together with
        X-Api-Key and X-Api-Secret.
    apiKeyKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: 64-char hex API key.
    apiKeySecret:
      type: apiKey
      in: header
      name: X-Api-Secret
      description: 64-char hex API secret.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.