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

> Point-in-time orderbook lookup — returns the snapshot whose ts is
the greatest value ≤ requested ts. Equivalent to the
/v1/snapshot-at/{ts} endpoint listed on the PolyBackTest landing page.



## OpenAPI

````yaml get /v1/snapshot-at/{ts}
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/snapshot-at/{ts}:
    get:
      summary: Get Snapshot At
      description: |-
        Point-in-time orderbook lookup — returns the snapshot whose ts is
        the greatest value ≤ requested ts. Equivalent to the
        /v1/snapshot-at/{ts} endpoint listed on the PolyBackTest landing page.
      operationId: get_snapshot_at_v1_snapshot_at__ts__get
      parameters:
        - name: ts
          in: path
          required: true
          schema:
            type: string
            format: date-time
            title: Ts
        - name: market_id
          in: query
          required: true
          schema:
            type: string
            title: Market Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSnapshotAtVSnapshotAtTsGetResponse'
              example:
                market_id: 0x4a8f31...c2
                time: '2026-06-06T03:58:12+00:00'
                mid_yes: 0.815
                spread_yes: 0.01
                underlying_price: 109842.5
                orderbook_up:
                  bids:
                    - - 0.81
                      - 1200
                  asks:
                    - - 0.82
                      - 950
                orderbook_down:
                  bids:
                    - - 0.18
                      - 1100
                  asks:
                    - - 0.19
                      - 1300
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetSnapshotAtVSnapshotAtTsGetResponse:
      type: object
      properties:
        market_id:
          type: string
          description: Polymarket market identifier (hex 0x…).
        time:
          type: string
          format: date-time
        mid_yes:
          type: number
          format: double
        spread_yes:
          type: number
          format: double
        underlying_price:
          type: number
          format: double
          description: Current spot price of the underlying coin at this snapshot.
        orderbook_up:
          type: object
          properties:
            bids:
              type: array
              items:
                type: array
                items:
                  type: number
                  format: double
            asks:
              type: array
              items:
                type: array
                items:
                  type: number
                  format: double
          required:
            - bids
            - asks
        orderbook_down:
          type: object
          properties:
            bids:
              type: array
              items:
                type: array
                items:
                  type: number
                  format: double
            asks:
              type: array
              items:
                type: array
                items:
                  type: number
                  format: double
          required:
            - bids
            - asks
      required:
        - market_id
        - time
        - mid_yes
        - spread_yes
        - underlying_price
        - orderbook_up
        - orderbook_down
    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

````