Skip to main content
The Liquidity API provides real-time access to DEX pool data and intelligent swap routing across all SURCHI-supported networks. You can look up every liquidity pool for a given token, get the optimal route for a swap across multiple DEXes simultaneously, and query detailed data for a specific trading pair. All liquidity endpoints require the read:liquidity scope on your API key.

GET /v1/liquidity/pools

Retrieve all known liquidity pools for a token, optionally filtered by DEX. Results include pool address, paired token, total value locked, and 24-hour volume.

Parameters

Example Request

Example Response


GET /v1/liquidity/route

Find the optimal swap route for a given input/output token pair and amount. SURCHI queries all supported DEXes simultaneously and returns the best route ranked by output amount, alongside alternative routes for comparison.

Parameters

Example Request

Example Response

Route Response Fields

Route quotes reflect pool prices at the moment of the request and are not guaranteed. For large amounts, check price_impact_pct carefully — anything above 1% may indicate insufficient liquidity on that route.

GET /v1/liquidity/

Retrieve detailed data for a specific trading pair, identified by its pool address. This is the most granular pool-level endpoint, returning reserve balances, price history, and fee tier information.

Parameters

Example Request

Example Response

The apy_pct field is an annualised yield estimate for liquidity providers in this pool, calculated from the trailing 7-day fee revenue relative to total value locked. It does not account for impermanent loss.