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

# OHLC candles

> Price candles from 1m trade aggregate. **Credit cost: 2**



## OpenAPI

````yaml /openapi.json get /v1/markets/ohlc
openapi: 3.1.0
info:
  title: Pedge API
  description: >-
    Cross-exchange perpetual futures intelligence API. Pure math — Z-scores,
    percentiles, ratios, classifications. 5 exchanges, 37 endpoints,
    credit-based pricing.
  version: 1.0.0
  contact:
    name: Pedge
    url: https://pedge.xyz
servers:
  - url: https://api.pedge.xyz
    description: Production
  - url: http://localhost:3007
    description: Local development
security:
  - apiKey: []
paths:
  /v1/markets/ohlc:
    get:
      tags:
        - Markets
      summary: OHLC candles
      description: 'Price candles from 1m trade aggregate. **Credit cost: 2**'
      operationId: getV1MarketsOhlc
      parameters:
        - name: coin
          in: query
          required: true
          schema:
            type: string
        - name: exchange
          in: query
          schema:
            type: string
        - name: interval
          in: query
          schema:
            type: string
            enum:
              - 1m
              - 5m
              - 15m
              - 1h
              - 4h
              - 1d
            default: 1h
        - name: lookback
          in: query
          schema:
            type: string
            enum:
              - 1h
              - 4h
              - 24h
              - 7d
              - 30d
            default: 24h
        - name: market_type
          in: query
          schema:
            type: string
            enum:
              - perp
              - spot
            default: perp
      responses:
        '200':
          description: OHLC candles
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        API key from app.pedge.xyz dashboard. Pass as `Authorization: Bearer
        pdg_...`

````