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

# Get bounded outcome snapshots

> Returns up to 100 outcome snapshots in request order. Missing or inaccessible outcomes are null. Engine failures return 503, not empty success.



## OpenAPI

````yaml /openapi/openapi.json get /orderbooks/outcomes
openapi: 3.0.2
info:
  title: AGG API
  version: 1.0.0
  description: >-
    Prediction market aggregator REST API — authentication, users, venue events,
    venue markets, orderbooks, charts, and execution workflows.
servers:
  - url: https://api.agg.market
    description: Production
  - url: https://api.staging.agg.market
    description: Staging
security: []
paths:
  /orderbooks/outcomes:
    get:
      tags:
        - Orderbook
      summary: Get bounded outcome snapshots
      description: >-
        Returns up to 100 outcome snapshots in request order. Missing or
        inaccessible outcomes are null. Engine failures return 503, not empty
        success.
      operationId: getOutcomeOrderbooks
      parameters:
        - name: venueMarketOutcomeIds
          in: query
          required: true
          schema:
            anyOf:
              - minItems: 1
                maxItems: 100
                type: array
                items:
                  minLength: 1
                  type: string
              - minLength: 1
                maxLength: 8000
                type: string
        - name: depth
          in: query
          required: false
          schema:
            minimum: 1
            maximum: 500
            type: integer
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                properties:
                  data:
                    maxItems: 100
                    type: array
                    items:
                      type: object
                      required:
                        - venueMarketOutcomeId
                        - venueMarketId
                        - venue
                        - orderbook
                        - midpoint
                        - spread
                        - seq
                        - checksum
                        - timestamp
                        - tick
                        - markSource
                      properties:
                        snapshotChecksum:
                          minimum: 0
                          maximum: 4294967295
                          type: integer
                        venueMarketOutcomeId:
                          type: string
                        venueMarketId:
                          type: string
                        venue:
                          type: string
                        orderbook:
                          type: object
                          required:
                            - bids
                            - asks
                          properties:
                            bids:
                              type: array
                              items:
                                type: object
                                required:
                                  - price
                                  - size
                                properties:
                                  price:
                                    type: number
                                  size:
                                    type: number
                            asks:
                              type: array
                              items:
                                type: object
                                required:
                                  - price
                                  - size
                                properties:
                                  price:
                                    type: number
                                  size:
                                    type: number
                        midpoint:
                          type: number
                          nullable: true
                        spread:
                          type: number
                          nullable: true
                        seq:
                          type: number
                        checksum:
                          type: number
                        timestamp:
                          type: number
                        tick:
                          type: number
                          nullable: true
                        markSource:
                          type: string
                          enum:
                            - local
                            - local_merged
                            - local_one_sided
                            - sibling
                            - local_boundary
                            - local_stub
                            - none
                      nullable: true
        '400':
          description: '400'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '401':
          description: '401'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '403':
          description: '403'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
        '429':
          description: '429'
          content:
            application/json:
              schema:
                type: object
                required:
                  - message
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                    enum:
                      - 429
                  code:
                    type: string
                    enum:
                      - rate_limited
                  retryAfter:
                    minimum: 1
                    description: Retry delay in seconds.
                    type: integer
          headers:
            Retry-After:
              schema:
                pattern: ^[1-9][0-9]*$
                description: Seconds to wait before another request; do not retry earlier.
                type: string
            Cache-Control:
              schema:
                type: string
                enum:
                  - private, no-store
        '503':
          description: '503'
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    required:
                      - code
                      - message
                      - retryable
                    properties:
                      code:
                        type: string
                        enum:
                          - orderbook_service_unavailable
                      message:
                        type: string
                      retryable:
                        type: boolean
                  - type: object
                    required:
                      - statusCode
                      - code
                      - message
                      - retryAfter
                    properties:
                      statusCode:
                        type: number
                        enum:
                          - 503
                      code:
                        type: string
                        enum:
                          - rate_limit_unavailable
                      message:
                        type: string
                      retryAfter:
                        minimum: 1
                        description: Retry delay in seconds.
                        type: integer
          headers:
            Retry-After:
              schema:
                pattern: ^[1-9][0-9]*$
                description: Seconds to wait before another request; do not retry earlier.
                type: string
            Cache-Control:
              schema:
                type: string
                enum:
                  - private, no-store
      security:
        - appId: []
components:
  securitySchemes:
    appId:
      type: apiKey
      in: header
      name: x-app-id
      description: Your application ID. Required for all app-tier and user-tier routes.

````