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

# Get Mark Price Kline

> Query for historical mark price klines. Charts are returned in groups based on the requested interval.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/market/mark-price-kline
openapi: 3.1.0
info:
  title: ekiden-gateway
  description: >-
    API Gateway and WebSocket proxy based on Axum and Utoipa, handling auth,
    rate limiting, and connection buffering.
  license:
    name: ''
  version: 0.1.1
servers:
  - url: https://api.ekiden.fi/
    description: Production
  - url: https://api.staging.ekiden.fi/
    description: Staging
  - url: https://api.dev.ekiden.fi/
    description: Development
  - url: http://localhost:4020/
    description: Local
security: []
paths:
  /api/v1/market/mark-price-kline:
    get:
      tags:
        - Market
      summary: Get Mark Price Kline
      description: >-
        Query for historical mark price klines. Charts are returned in groups
        based on the requested interval.
      operationId: get_mark_price_kline
      parameters:
        - name: symbol
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Symbol'
        - name: interval
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/Interval'
        - name: start_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: end_time
          in: query
          required: false
          schema:
            type:
              - string
              - 'null'
            format: date-time
        - name: limit
          in: query
          required: false
          schema:
            type:
              - integer
              - 'null'
            format: int32
            minimum: 0
      responses:
        '200':
          description: Klines
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPriceKlineResponse'
components:
  schemas:
    Symbol:
      type: string
      example: BTCUSDC
    Interval:
      type: string
      enum:
        - 1m
        - 3m
        - 5m
        - 15m
        - 30m
        - 1h
        - 2h
        - 4h
        - 6h
        - 12h
        - 1d
        - 3d
        - 1w
        - 1M
    GetPriceKlineResponse:
      type: object
      description: Price-only kline response.
      required:
        - symbol
        - list
      properties:
        list:
          type: array
          items:
            $ref: '#/components/schemas/PriceKlineSnapshot'
        symbol:
          $ref: '#/components/schemas/Symbol'
    PriceKlineSnapshot:
      type: object
      description: Price-only kline entry. Used for mark price and index price klines.
      required:
        - t
        - o
        - h
        - l
        - c
      properties:
        c:
          type: string
        h:
          type: string
        l:
          type: string
        o:
          type: string
        t:
          type: string
          format: date-time
          example: '1672531200000'

````