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

> Retrieve price data over time for up to 4 position outcomes in a market condition. TradingView-style: resolution parameter determines both candle size and implicit lookback period. Auto-selects the 4 most active outcomes if position_ids not specified.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/market/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/chart:
    get:
      tags:
        - Market
      summary: Get market chart
      description: >-
        Retrieve price data over time for up to 4 position outcomes in a market
        condition. TradingView-style: resolution parameter determines both
        candle size and implicit lookback period. Auto-selects the 4 most active
        outcomes if position_ids not specified.
      operationId: get_chart
      parameters:
        - name: condition_id
          in: query
          description: Market condition ID or market_slug (one required)
          required: false
          schema:
            type: string
        - name: market_slug
          in: query
          description: Market slug (alternative to condition_id)
          required: false
          schema:
            type: string
        - name: position_ids
          in: query
          description: >-
            Comma-separated list of position IDs (max 4, optional).
            Auto-selected if not provided
          required: false
          schema:
            type: string
        - name: resolution
          in: query
          description: >-
            Time interval with implicit lookback: 1H (1 hour), 6H (6 hours), 1D
            (1 day), 1W (1 week), 1M (30 days), ALL (all data) (required)
          required: true
          schema:
            $ref: '#/components/schemas/ChartResolution'
      responses:
        '200':
          description: Price data over time for up to 4 market outcomes
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PositionChartOutcome'
components:
  schemas:
    ChartResolution:
      type: string
      enum:
        - 1H
        - 6H
        - 1D
        - 1W
        - 1M
        - ALL
    PositionChartOutcome:
      type: object
      required:
        - position_id
        - name
        - outcome_index
        - data
      properties:
        position_id:
          type: string
          description: Position ID.
        name:
          type: string
          description: Name.
        outcome_index:
          type: integer
          format: int32
          description: Outcome index.
        data:
          type: array
          items:
            $ref: '#/components/schemas/PositionChartDataPoint'
          description: Time-series data points.
    PositionChartDataPoint:
      type: object
      required:
        - v
        - t
      properties:
        v:
          type: number
          format: double
          description: Total volume in USD.
        t:
          type: integer
          format: int64
          description: Unix timestamp in seconds.
          minimum: 0

````