> ## 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 OHLC candles for a crypto asset

> Retrieve OHLC candlestick data for a single crypto asset at the requested resolution.



## OpenAPI

````yaml https://api.struct.to/openapi.json get /polymarket/asset-history/candlestick
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/asset-history/candlestick:
    get:
      tags:
        - Assets
      summary: Get OHLC candles for a crypto asset
      description: >-
        Retrieve OHLC candlestick data for a single crypto asset at the
        requested resolution.
      operationId: get_asset_candlestick
      parameters:
        - name: asset_symbol
          in: query
          description: 'Asset ticker: BTC, ETH, XRP, SOL, DOGE, BNB, HYPE'
          required: true
          schema:
            $ref: '#/components/schemas/AssetSymbol'
        - name: resolution
          in: query
          description: >-
            Candle interval (TradingView naming): 1S (1 second), 1, 5, 15, 30,
            60, 240, D, 1D
          required: true
          schema:
            $ref: '#/components/schemas/AssetCandlestickResolution'
        - name: count_back
          in: query
          description: 'Number of candles (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: OHLC candlestick data
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AssetCandlestickBar'
components:
  schemas:
    AssetSymbol:
      type: string
      enum:
        - BTC
        - ETH
        - XRP
        - SOL
        - DOGE
        - BNB
        - HYPE
    AssetCandlestickResolution:
      type: string
      enum:
        - 1S
        - '1'
        - '5'
        - '15'
        - '30'
        - '60'
        - '240'
        - D
        - 1D
    AssetCandlestickBar:
      type: object
      required:
        - t
      properties:
        l:
          type:
            - number
            - 'null'
          format: double
          description: Low price.
        h:
          type:
            - number
            - 'null'
          format: double
          description: High price.
        o:
          type:
            - number
            - 'null'
          format: double
          description: Open price.
        c:
          type:
            - number
            - 'null'
          format: double
          description: Close price.
        t:
          type: integer
          format: int64
          description: Unix timestamp in seconds.
          minimum: 0

````