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

> Volume + trade-count aggregation for a market, with an optional
rolling window (1h / 24h / 7d / all).



## OpenAPI

````yaml get /v1/markets/{market_id}/volume
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}/volume:
    get:
      summary: Get Market Volume
      description: |-
        Volume + trade-count aggregation for a market, with an optional
        rolling window (1h / 24h / 7d / all).
      operationId: get_market_volume_v1_markets__market_id__volume_get
      parameters:
        - name: market_id
          in: path
          required: true
          schema:
            type: string
            title: Market Id
        - name: window
          in: query
          required: false
          schema:
            type: string
            description: Aggregation window for the volume sum.
            examples:
              - 1h
              - 24h
              - 7d
              - all
            default: all
            title: Window
          description: Aggregation window for the volume sum.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/GetMarketVolumeVMarketsMarketIdVolumeGetResponse
              example:
                market_id: 0x4a8f31...c2
                window: 24h
                notional_usd: 14820.5
                volume_shares: 18524.3
                trade_count: 412
                first_trade: '2026-06-05T03:58:12+00:00'
                last_trade: '2026-06-06T03:58:12+00:00'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    GetMarketVolumeVMarketsMarketIdVolumeGetResponse:
      type: object
      properties:
        market_id:
          type: string
          description: Polymarket market identifier (hex 0x…).
        window:
          type: string
          enum:
            - 1h
            - 24h
            - 7d
            - all
        notional_usd:
          type: number
          format: double
        volume_shares:
          type: number
          format: double
        trade_count:
          type: integer
          format: int64
        first_trade:
          type: string
          format: date-time
        last_trade:
          type: string
          format: date-time
      required:
        - market_id
        - window
        - notional_usd
        - volume_shares
        - trade_count
        - first_trade
        - last_trade
    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

````