---
title: "Get Historical Time Series"
method: GET
path: "/defi/v1/dex/gethistoricaltimeseries"
tags: ["dex"]
---

# Get Historical Time Series

`GET /defi/v1/dex/gethistoricaltimeseries`

## Request

- Base URL: `https://svc.blockdaemon.com`
- URL: `https://svc.blockdaemon.com/defi/v1/dex/gethistoricaltimeseries`
- Auth: API key in header `X-API-Key`

Retrieves a chronological series of historical price data (transaction hash, timestamp, trade price) for a specified DEX pool. This time series data supports thorough price analysis, backtesting, and liquidity monitoring, enabling more informed DeFi strategies.

> 💡 
**Compute Unit Value:** `100` (Fixed)

## Query parameters

- `dexId` '1000' | '1300' | '1305' | '1306' | '1307' | '1308' | '1309' | '1100' | '1200' | '1201': The unique ID to specify the decentralized exchange (DEX) within a particular blockchain. Find more [here](https://docs.blockdaemon.com/docs/defi-api-supported-protocols#supported-dexs-protocols).
- `endBlock` string: Last block of the range.
- `startBlock` string: Starting block of the range.
- `poolAddress` string, required: Pool address whose liquidity is to be fetched.

## Response `200`

Successful response

- object
  - `status` integer
  - `msg` string
  - `data` object

---

[API](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api.md) - [All operations](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/llms.txt) - [OpenAPI document](https://skmtc.dev/blockdaemon/apis/blockdaemon-defi-api/revisions/ec053b7c8041?raw)
