Historical price trends can indicate the future direction of a cryptocurrency
Our decentralized exchange (DEX) APIs allow you to retrieve historical data from the point of inception of on the blockchain.
This section of our documentation will cover how our DEX historical data works, provide an example API request, and show the response objects. If you want to save large amounts of historical data, please .
How It Works
To retrieve historical data from our DEX APIs, you can include a block number in your REST API request.
The response will then return data from that block number and time. This allows you to get a snapshot of the market at a specific point in time.
NOTE: Each blockchain has different block numbers
Parameter
Data Type
Description
block
BigInt
Blockchain block number from which you wish to retrieve data.
To retrieve historical liquidity pool data from Uniswap on the Polygon blockchain for the block number 23757546, you can use the following REST API request: