> ## 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 Market

> Metadata for one market. Matches the schema PolyBackTest advertises:
market_id, event_id, slug, market_type, start_time, end_time,
{ticker}_price_start, {ticker}_price_end, winner, final_volume,
final_liquidity, resolved_at.



## OpenAPI

````yaml get /v1/markets/{market_id}
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/{market_id}:
    get:
      summary: Get Market
      description: |-
        Metadata for one market. Matches the schema PolyBackTest advertises:
        market_id, event_id, slug, market_type, start_time, end_time,
        {ticker}_price_start, {ticker}_price_end, winner, final_volume,
        final_liquidity, resolved_at.
      operationId: get_market_v1_markets__market_id__get
      parameters:
        - name: market_id
          in: path
          required: true
          schema:
            type: string
            title: Market Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetMarketVMarketsMarketIdGetResponse'
              example:
                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'
                btc_start: 109500
                btc_end: 109842.5
                winner: Up
                final_volume: 14820.5
                final_liquidity: 12500
                resolved_at: '2026-06-06T04:02:14+00:00'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetMarketVMarketsMarketIdGetResponse:
      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
        btc_start:
          type: number
          format: double
        btc_end:
          type: number
          format: double
        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
        - btc_start
        - btc_end
        - winner
        - final_volume
        - final_liquidity
        - resolved_at
    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

````