> ## 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 Resolved Markets



## OpenAPI

````yaml get /v1/markets/resolved
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/markets/resolved:
    get:
      summary: Get Resolved Markets
      operationId: get_resolved_markets_v1_markets_resolved_get
      parameters:
        - name: event_type
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            examples:
              - fomc
              - cpi
              - crypto_up_down
            title: Event Type
        - name: ticker
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            examples:
              - BTC
              - TSLA
              - FED
            title: Ticker
        - name: since
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Since
        - name: until
          in: query
          required: false
          schema:
            anyOf:
              - type: string
                format: date-time
              - type: 'null'
            title: Until
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 1000
            default: 100
            title: Limit
        - name: with_underlying
          in: query
          required: false
          schema:
            type: boolean
            description: >-
              Enrich each row with `underlying_start`, `underlying_end`, and
              `underlying_delta_pct` (= (end-start)/start * 100). Costs ~10ms ×
              N markets of additional ClickHouse work, so off by default — UI
              calls it explicitly when surfacing the column.
            default: false
            title: With Underlying
          description: >-
            Enrich each row with `underlying_start`, `underlying_end`, and
            `underlying_delta_pct` (= (end-start)/start * 100). Costs ~10ms × N
            markets of additional ClickHouse work, so off by default — UI calls
            it explicitly when surfacing the column.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetResolvedMarketsVMarketsResolvedGetResponse
              example:
                markets:
                  - market_id: 0x4a8f31...c2
                    event_id: '8421'
                    slug: bitcoin-up-or-down-june-6-4am-et
                    market_type: 5m
                    ticker: BTC
                    outcome: Up
                    start_time: '2026-06-06T03:55:00+00:00'
                    end_time: '2026-06-06T04:00:00+00:00'
                    winner: Up
                    final_volume: 14820.5
                    final_liquidity: 12500
                    resolved_at: '2026-06-06T04:02:14+00:00'
                count: 1
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetResolvedMarketsVMarketsResolvedGetResponse:
      type: object
      properties:
        markets:
          type: array
          items:
            type: object
            properties:
              market_id:
                type: string
                description: Polymarket market identifier (hex 0x…).
              event_id:
                type: string
                description: Polymarket event identifier.
              slug:
                type: string
              market_type:
                type: string
                enum:
                  - 5m
                  - 15m
                  - 1h
                  - 4h
                  - 24h
              ticker:
                type: string
                enum:
                  - BTC
                  - ETH
                  - SOL
              outcome:
                type: string
                enum:
                  - Up
                  - Down
              start_time:
                type: string
                format: date-time
              end_time:
                type: string
                format: date-time
              winner:
                type: string
                enum:
                  - Up
                  - Down
              final_volume:
                type: number
                format: double
              final_liquidity:
                type: number
                format: double
              resolved_at:
                type: string
                format: date-time
            required:
              - market_id
              - event_id
              - slug
              - market_type
              - ticker
              - outcome
              - start_time
              - end_time
              - winner
              - final_volume
              - final_liquidity
              - resolved_at
        count:
          type: integer
          format: int64
      required:
        - markets
        - count
    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

````

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