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

# Get Token Price History

The Get Token Price API allows you to easily fetch the token price

## Definition

This endpoint retrieves historical price data for a specified token based on a specified timestamp. It allows users to analyze past price trends and perform historical data analysis for the token of interest.

## Query Parameters

For guidance on how to leverage this method, check out the following tutorials:

1. **token\_id** (string): The unique identifier or symbol of the token for which the price history is requested. For example, 'BTC' for Bitcoin.
2. **timestamp** (string): The timestamp in the format 'yyyy-mm-dd', indicating the specific date for which historical price data is requested.

## Response

The response will include a JSON object containing historical price data of the specified token for the specified timestamp.

> This endpoint is useful for conducting historical analysis, backtesting trading strategies, and gaining insights into price movements over specific timeframes.

# 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/history": {
      "get": {
        "summary": "Get Token Price History",
        "description": "The Get Token Price API allows you to easily fetch the token price",
        "operationId": "get-token-price-history",
        "parameters": [
          {
            "name": "token_id",
            "in": "query",
            "description": "String - Defines the symbol",
            "required": true,
            "schema": {
              "type": "string",
              "default": "BTC"
            }
          },
          {
            "name": "timestamp",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Succeed": {
                    "value": "{\n  \"success\": true,\n  \"data\": [\n    {\n      \"symbol\": \"BTC\",\n      \"price\": 66923.32069226538,\n      \"volume\": 12918303423,\n      \"market_cap\": 1317638404132.8193,\n      \"stored_time\": \"2024-04-23T00:00:00.000Z\"\n    }\n  ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "example": true,
                      "default": true
                    },
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "symbol": {
                            "type": "string",
                            "example": "BTC"
                          },
                          "price": {
                            "type": "number",
                            "example": 66923.32069226538,
                            "default": 0
                          },
                          "volume": {
                            "type": "integer",
                            "example": 12918303423,
                            "default": 0
                          },
                          "market_cap": {
                            "type": "number",
                            "example": 1317638404132.8193,
                            "default": 0
                          },
                          "stored_time": {
                            "type": "string",
                            "example": "2024-04-23T00:00:00.000Z"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"statusCode\": 400,\n  \"message\": \"Wrong api_key, please check!\",\n  \"error\": \"Bad Request\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Wrong api_key, please check!"
                    },
                    "error": {
                      "type": "string",
                      "example": "Bad Request"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"statusCode\": 401,\n  \"message\": \"Unauthorized\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 401,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Unauthorized"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "500",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"statusCode\": 500,\n  \"message\": \"Internal server error\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 500,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Internal server error"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```