GET
/
v1
/
poolSlippage
/
:blockchain
/
:pool_address
/
:token1_address
/
:pool_type
/
:desired_slippage
curl --request GET \
  --url https://api.diadata.org/v1/poolSlippage/:blockchain/:pool_address/:token1_address/:pool_type/:desired_slippage
{
    // Response
}

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

:blockchain
string
required

Name of the blockchain of the requested pool (e.g. Ethereum, Moonbeam, etc.)

:pool_address
string
required

Address of the requested pool

:token1_address
string
required

Address of either of the tokens in the pool

:pool_type
string
required

Type of the pool (e.g. UniswapV2)

:desired_slippage
integer
required

Desired slippage in per mille (e.g. 100 will result in 10% slippage)

{
    // Response
}