---
updatedAt: 2025-05-22T20:27:31.000Z
agentTools:
  projectIndex: https://docs.klarda.com/llms.txt
---

# Get Token Price OHLCV

## Definition

This endpoint retrieves Open, High, Low, Close, and Volume (OHLCV) data for a specified token over a specified duration. OHLCV data is commonly used in financial analysis and trading to represent the price movements of an asset over time.

## Query Parameters

* **token\_id** (string): The unique identifier or symbol of the token for which the OHLCV data is requested. For example, 'BTC' for Bitcoin.
* **duration** (string): The duration for which to retrieve OHLCV data. Common values include '1D' for 1 day, '1W' for 1 week, '1M' for 1 month, etc.
* **limit** (int): The maximum number of data points to return. Default value is 10.

## Response

The response will include a JSON object containing OHLCV data for the specified token and duration.

> This endpoint is useful for analyzing price trends, identifying key support and resistance levels, and performing technical analysis on token price movements over specified time periods.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "klarda-token-market-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.klarda.com/api/v1/market"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "query",
        "name": "api_key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/token/price/ohlcv": {
      "get": {
        "summary": "Get Token Price OHLCV",
        "description": "",
        "operationId": "get-token-price-ohlcv",
        "parameters": [
          {
            "name": "token_id",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          },
          {
            "name": "duration",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1D"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```