services / token-liquidity
financeoperational · 200 ms
Token Liquidity and Slippage
Pool depth and slippage for a token: per pool (Uniswap, Aerodrome, PancakeSwap, Sushi and more) the liquidity in USD, estimated price impact for each size in sizes_usd and the largest trade at 1% and 5% impact. Use to size a trade or check if an exit is possible. Estimate based on constant product; conservative for concentrated liquidity pools. Errors with Not charged if no pool exists.
Run free trial ↗3 free calls per day with the example input. Paid: $0.008 USDC, no limit.
Call it
Input
| Field | Type | Description |
|---|---|---|
| token * | string | Token contract address (0x...) |
| chain | string | base (default), ethereum, bsc, arbitrum, polygon, avalanche or optimism |
| sizes_usd | array | Up to 6 trade sizes in USD, default [100,1000,10000,100000] |
Output
| Field | Type | Description |
|---|---|---|
| total_liquidity_usd | number | |
| pools | array | |
| price_usd | number |