Loading...
Loading...
Comprehensive guide for interacting with the hydric Liquidity Pools Indexer (Envio/HyperIndex). Use this skill when you need to (1) Query real-time Liquidity Pool data like TVL, Volume, Fees, or Yields/APY, (2) Fetch cross-chain token metadata and prices, (3) Aggregate protocol data (Uniswap, etc.), (4) Retrieve historical time-series data for generic analytics
npx skill4agent add hydric-org/skills hydric-liquidity-pools-indexer-userINDEXER_URLPoolidchainIdpoolAddresstotalValueLockedUsdtoken0token1protocoltotalStats24htotalStats7dtotalStats30dtotalStats90dv3PoolDatav4PoolDataalgebraPoolDataslipstreamPoolDataSingleChainTokenidtokenAddresssymbolnamedecimalstrackedUsdPricetrackedTotalValuePooledUsdtrackedSwapVolumeUsdnormalizedSymbolnormalizedNameUSD₮USDTPoolHistoricalDataintervalDAILYHOURLYtimestampAtStarttrackedTotalValueLockedUsdAtStartintervalSwapVolumeUsdintervalFeesUsdintervalLiquidityInflowUsd<chainId>-<lowercase_address>1-0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48IndexerNetworktotalValueLockedUsdbalance * pricetrackedTotalValueLockedUsdsymbolnormalizedSymbolnormalizedNamesymbolnamenormalizedSymbolnormalizedNamewhere: { normalizedSymbol: { _ilike: "%USDT%" } }Number()BigInt()query GetPoolsWithMetadata {
Pool(limit: 10) {
id
poolType # e.g., "V3", "ALGEBRA", "SLIPSTREAM"
# Request all possible internal data structures
v3PoolData {
tickSpacing
sqrtPriceX96
}
algebraPoolData {
communityFeePercentage
plugin
}
v4PoolData {
hooks
stateView
}
slipstreamPoolData {
hooks
stateView
}
}
}PoolSingleChainTokenquery GetTokenPricing {
SingleChainToken(where: { symbol: { _eq: "WETH" } }) {
id
chainId
trackedUsdPrice # Current price in USD with safety checks
usdPrice # Current price in USD without safety checks (pure pools values)
}
}usdPricetrackedUsdPriceswapVolumeUsdtotalValuePooledUsdnamesymboldecimalstokenAddressquery GetTopPools {
Pool(
limit: 20
offset: 0
order_by: { trackedTotalValueLockedUsd: desc }
where: { trackedTotalValueLockedUsd: { _gt: "10000" } } # Dust filter
) {
id
poolAddress
chainId
trackedTotalValueLockedUsd
currentFeeTierPercentage
token0 {
symbol
decimals
}
token1 {
symbol
decimals
}
protocol {
name
logo
}
totalStats24h {
yearlyYield
swapVolumeUsd
feesUsd
}
}
}query SearchTokens($search: String!) {
SingleChainToken(
limit: 10
where: {
_or: [
{ normalizedSymbol: { _ilike: $search } }
{ normalizedName: { _ilike: $search } }
]
}
order_by: { trackedTotalValuePooledUsd: desc }
) {
id
name
symbol
tokenAddress
chainId
}
}query GetPoolHistory($poolId: String!) {
PoolHistoricalData(
limit: 90
order_by: { timestampAtStart: asc }
where: { pool_id: { _eq: $poolId }, interval: { _eq: DAILY } }
) {
timestampAtStart
trackedTotalValueLockedUsdAtStart
intervalSwapVolumeUsd
}
}