Skip to main content
GET
Slippage Calculation (for Uniswap V2 and its forks)
The logic is as follows: Provide the address of the pool, select a token in which you wish to have slippage calculated (e.g. if selected ETH from ETH-USDC, it will show how much is ETH is required to move the price by selected amount) and determine the goal for price movement.

Path Parameters

string
required
Name of the blockchain of the requested pool (e.g. Ethereum, Moonbeam, etc.)
string
required
Address of the requested pool
string
required
Address of either of the tokens in the pool
string
required
Type of the pool (e.g. UniswapV2)
integer
required
Desired slippage in per mille (e.g. 100 will result in 10% slippage)
As part of our migration to DIA’s next-generation oracle infrastructure, Lumina, the hosted DIA REST API is being deprecated and will be discontinued on 20 December 2026. This affects the REST endpoints under https://api.diadata.org/v1.If your protocol relies on these, please email support@diadata.org and confirm that you are using them. We will provide you with a migration path so you can continue accessing the same data through Lumina without interruption. Integrations that don’t reach out may lose access after the deprecation date.