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

# Orderbook History

> Fetch historical orderbook snapshots for a Limitless market

Fetch historical orderbook snapshots for a Limitless market. Data starts from **March 7th, 2026**.

YES-side orderbook only.

<Tip>**Free & Unlimited.** This endpoint does not count toward your monthly usage limits on any plan.</Tip>

| Constraint | Value               |
| ---------- | ------------------- |
| `limit`    | 1–200 (default 100) |

<Warning>Timestamps are in **milliseconds** for this endpoint.</Warning>


## OpenAPI

````yaml GET /v2/limitless/orderbooks
openapi: 3.1.0
info:
  title: Predexon API
  description: Prediction market data aggregation and matching API
  version: 2.0.0
servers:
  - url: https://api.predexon.com
security:
  - apiKey: []
paths:
  /v2/limitless/orderbooks:
    get:
      tags:
        - limitless
      summary: Get Limitless Orderbooks
      description: >-
        Fetch historical orderbook snapshots for a Limitless market over a
        specified time range.


        Returns YES-side orderbook snapshots. To derive the NO orderbook,

        invert client-side: flip bids/asks and transform prices to 1 - price.

        All timestamps are in milliseconds.
      operationId: get_limitless_orderbooks_v2_limitless_orderbooks_get
      parameters:
        - name: market_slug
          in: query
          required: true
          schema:
            type: string
            description: The Limitless market slug
            title: Market Slug
          description: The Limitless market slug
        - name: start_time
          in: query
          required: true
          schema:
            type: integer
            description: Start time in Unix timestamp (milliseconds)
            title: Start Time
          description: Start time in Unix timestamp (milliseconds)
        - name: end_time
          in: query
          required: true
          schema:
            type: integer
            description: End time in Unix timestamp (milliseconds)
            title: End Time
          description: End time in Unix timestamp (milliseconds)
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            description: Maximum number of snapshots to return
            default: 100
            title: Limit
          description: Maximum number of snapshots to return
        - name: pagination_key
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Pagination key to get the next chunk of data
            title: Pagination Key
          description: Pagination key to get the next chunk of data
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitlessOrderbooksResponse'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad Request
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error
components:
  schemas:
    LimitlessOrderbooksResponse:
      properties:
        snapshots:
          items:
            $ref: '#/components/schemas/LimitlessOrderbookSnapshot'
          type: array
          title: Snapshots
        pagination:
          $ref: '#/components/schemas/CursorPagination'
      type: object
      required:
        - snapshots
        - pagination
      title: LimitlessOrderbooksResponse
      description: Limitless orderbooks endpoint response.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LimitlessOrderbookSnapshot:
      properties:
        market_slug:
          type: string
          title: Market Slug
          description: Market slug identifier
        token_id:
          type: string
          title: Token Id
          description: YES token ID (metadata)
        timestamp:
          type: integer
          title: Timestamp
          description: Snapshot timestamp (Unix epoch MILLISECONDS)
        bids:
          items:
            $ref: '#/components/schemas/LimitlessOrderbookLevel'
          type: array
          title: Bids
          description: Bid levels (buying YES)
        asks:
          items:
            $ref: '#/components/schemas/LimitlessOrderbookLevel'
          type: array
          title: Asks
          description: Ask levels (selling YES)
        midpoint:
          type: number
          title: Midpoint
          description: Midpoint price
        adjusted_midpoint:
          type: number
          title: Adjusted Midpoint
          description: Adjusted midpoint price
      type: object
      required:
        - market_slug
        - token_id
        - timestamp
        - bids
        - asks
        - midpoint
        - adjusted_midpoint
      title: LimitlessOrderbookSnapshot
      description: Single Limitless orderbook snapshot (YES side only; invert for NO).
    CursorPagination:
      properties:
        limit:
          type: integer
          title: Limit
          description: Requested limit
        count:
          type: integer
          title: Count
          description: Number of items in current response
        pagination_key:
          anyOf:
            - type: string
            - type: 'null'
          title: Pagination Key
          description: Base64-encoded cursor for next page
        has_more:
          type: boolean
          title: Has More
          description: Whether there are more items available
      type: object
      required:
        - limit
        - count
        - has_more
      title: CursorPagination
      description: Cursor-based pagination for endpoints that don't support offset.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    LimitlessOrderbookLevel:
      properties:
        price:
          type: number
          title: Price
          description: Price level (0-1 range)
        size:
          type: number
          title: Size
          description: Size at this price level
      type: object
      required:
        - price
        - size
      title: LimitlessOrderbookLevel
      description: Single price level in Limitless orderbook.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````