liquidityPools resource provides a unified interface to search, discover, and filter DeFi liquidity pools across major DEX protocols (like Uniswap V3, Uniswap V4, Algebra, etc.). It abstracts away protocol-specific nuances, giving you a standardized LiquidityPool model for every pair.
Access this resource via hydric.liquidityPools.
Searching Pools
The primary method for interacting with liquidity pools issearch. This allows you to combine various filters—including tokens, baskets, protocols, TVL thresholds, and pool types—into a single query.
Basic Token Pair Search
You can search for pools containing specific tokens by providingtokensA and optionally tokensB. The engine finds pools that contain at least one token from A (and if provided, also one from B).
Using Token Baskets for Search
Instead of hardcoding hundreds of token addresses, hydric allows you to search using Token Baskets (e.g.,usd-stablecoins, eth-pegged-tokens). The API instantly resolves these baskets into their underlying assets server-side, making it trivial to find, for instance, “any stablecoin against ETH”.
Performance Note: Resolving token baskets happens entirely on the server. You don’t need to fetch the basket first and pass 50+ addresses to the search API.
Filtering and Configuration
Thesearch method supports deep filtering to ensure your dApp only interacts with compatible infrastructure:
Filters
minTotalValueLockedUsd: Restricts results to pools with sufficient liquidity, filtering out spam or abandoned pairs.protocols&blockedProtocols: Specify exactly which DEXes you want to support (e.g.,['uniswap-v3', 'pancakeswap-v3']). UseblockedProtocolsas a blacklist if you prefer an open-by-default approach. We always recommend usingprotocolsto be explicit about the protocols you want to support, and avoid breaking your app when new protocols are added to the hydric gateway.poolTypes&blockedPoolTypes: Limit results by core architecture type (e.g.,['V4'],['ALGEBRA']). Useful if your integration logic only supports specific pool math. We always recommend usingpoolTypesto be explicit about the pool types you want to support, and avoid breaking your app when new pool types are added to the hydric gateway.
Config Options
limit: How many items to return per page (default10).orderBy: Order bytvloryieldascending/descending. Timeframes (e.g.,"24h","7d") dictate the interval used when ordering by yield.cursor: Pass thenextCursorfrom a previous response to fetch the next page.
Data Model
The response (SearchPoolsResult) contains the matched pools, the exact filters applied, and the nextCursor.
Each LiquidityPool object provides:
address,chainId,poolType, andcreatedAtTimestamp.balance: Real-time TVL in USD and exact token reserves.stats: Extensively computed historical data (stats24h,stats7d, etc.) including trading volume, generated fees, net inflows, and yield.protocol: Branding and identifiers for the parent DEX.metadata: Protocol-specific parameters (liketickSpacingfor V3, or hook capabilities for V4).