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

# Get market volume chart

> Retrieve volume breakdown by YES/NO outcome over time for a prediction market



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/market/volume-chart
openapi: 3.1.0
info:
  title: Polymarket API
  description: >-
    RESTful API for querying Polymarket prediction markets data including
    events, markets, traders, holders, and real-time metrics
  license:
    name: ''
  version: 1.0.0
servers:
  - url: https://api.struct.to/v1
security: []
paths:
  /polymarket/market/volume-chart:
    get:
      tags:
        - Market
      summary: Get market volume chart
      description: >-
        Retrieve volume breakdown by YES/NO outcome over time for a prediction
        market
      operationId: get_market_volume_chart
      parameters:
        - name: condition_id
          in: query
          description: Market condition ID (or use market_slug)
          required: false
          schema:
            type: string
        - name: market_slug
          in: query
          description: Market slug (alternative to condition_id)
          required: false
          schema:
            type: string
        - name: resolution
          in: query
          description: 'Time interval: 1, 5, 15, 30, 60, 240, D, 1D (default: 60)'
          required: false
          schema:
            $ref: '#/components/schemas/CandlestickResolution'
        - name: count_back
          in: query
          description: 'Number of data points (max: 2500)'
          required: false
          schema:
            type: integer
            format: int32
        - name: from
          in: query
          description: Start timestamp (Unix seconds)
          required: false
          schema:
            type: integer
            format: int64
        - name: to
          in: query
          description: End timestamp (Unix seconds)
          required: false
          schema:
            type: integer
            format: int64
        - name: pagination_key
          in: query
          description: Cursor-based pagination key from previous response
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Volume breakdown by YES/NO over time
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MarketVolumeDataPoint'
components:
  schemas:
    CandlestickResolution:
      type: string
      enum:
        - 1S
        - 5S
        - 10S
        - 30S
        - '1'
        - '5'
        - '15'
        - '30'
        - '60'
        - '240'
        - D
        - 1D
    MarketVolumeDataPoint:
      type: object
      required:
        - t
        - v
        - yv
        - nv
        - tc
        - ytc
        - ntc
      properties:
        t:
          type: integer
          format: int64
        v:
          type: number
          format: double
        yv:
          type: number
          format: double
        nv:
          type: number
          format: double
        tc:
          type: integer
          format: int32
        ytc:
          type: integer
          format: int32
        ntc:
          type: integer
          format: int32

````