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

# Get Snapshots



## OpenAPI

````yaml get /v1/snapshots
openapi: 3.1.0
info:
  title: PolyQuantLab API
  version: 0.1.0
  description: >-
    Sub-second Polymarket orderbook data, walk-the-book backtests, paper
    trading, and the live arb audit. Same endpoints the PolyQuantLab dashboard
    uses internally — Bearer-token auth, JSON-over-HTTPS, predictable
    pagination.
  contact:
    email: contact@polyquantlab.com
    url: https://polyquantlab.com/contact
  license:
    name: Proprietary
servers:
  - url: https://api.polyquantlab.com
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /v1/snapshots:
    get:
      summary: Get Snapshots
      operationId: get_snapshots_v1_snapshots_get
      parameters:
        - name: market_id
          in: query
          required: true
          schema:
            type: string
            title: Market Id
        - name: start
          in: query
          required: true
          schema:
            type: string
            format: date-time
            title: Start
        - name: end
          in: query
          required: true
          schema:
            type: string
            format: date-time
            title: End
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 100000
            default: 10000
            title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSnapshotsVSnapshotsGetResponse'
              example:
                market_id: 0x4a8f31...c2
                count: 2
                snapshots:
                  - ts: '2026-06-06T03:55:30+00:00'
                    yes_bids:
                      - price: 0.5
                        size: 100
                      - price: 0.49
                        size: 200
                    yes_asks:
                      - price: 0.52
                        size: 150
                      - price: 0.53
                        size: 250
                    no_bids:
                      - price: 0.47
                        size: 180
                      - price: 0.46
                        size: 220
                    no_asks:
                      - price: 0.5
                        size: 140
                      - price: 0.51
                        size: 200
                    underlying_price: 109520.5
                    underlying_ticker: BTC
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetSnapshotsVSnapshotsGetResponse:
      type: object
      properties:
        market_id:
          type: string
          description: Polymarket market identifier (hex 0x…).
        count:
          type: integer
          format: int64
        snapshots:
          type: array
          items:
            type: object
            properties:
              ts:
                type: string
                format: date-time
              yes_bids:
                type: array
                items:
                  type: object
                  properties:
                    price:
                      type: number
                      format: double
                    size:
                      type: integer
                      format: int64
                  required:
                    - price
                    - size
              yes_asks:
                type: array
                items:
                  type: object
                  properties:
                    price:
                      type: number
                      format: double
                    size:
                      type: integer
                      format: int64
                  required:
                    - price
                    - size
              no_bids:
                type: array
                items:
                  type: object
                  properties:
                    price:
                      type: number
                      format: double
                    size:
                      type: integer
                      format: int64
                  required:
                    - price
                    - size
              no_asks:
                type: array
                items:
                  type: object
                  properties:
                    price:
                      type: number
                      format: double
                    size:
                      type: integer
                      format: int64
                  required:
                    - price
                    - size
              underlying_price:
                type: number
                format: double
                description: Current spot price of the underlying coin at this snapshot.
              underlying_ticker:
                type: string
            required:
              - ts
              - yes_bids
              - yes_asks
              - no_bids
              - no_asks
              - underlying_price
              - underlying_ticker
      required:
        - market_id
        - count
        - snapshots
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````