Aqua0
API ReferencePools and jit

Get JIT-backed swap count and per-token volume for a pool

Aggregates the vaults' realized Uniswap V4 swaps for one pool over a trailing window into a swap count and per-token raw volume. Counts only swaps that took vault JIT liquidity, so the figure reflects JIT-backed volume, and the response carries source 'jit-backed' to make that explicit. Volume is the sum of absolute token deltas as decimal strings, and no USD conversion is performed. Windowing uses the on-chain block timestamp. Path parameters: chainId and poolId (32-byte hex). Query: windowSeconds (optional, default 86400, max 2592000). Degrades to zero counts when the vaults are not indexed.

GET
/api/vaults/pools/{chainId}/{poolId}/swap-stats

Authorization

ApiKeyAuth
X-API-Key<token>

In: header

Path Parameters

chainId*string

Numeric ID of the chain to query or act on.

poolId*string

The pool's 32-byte identifier (Uniswap v4 PoolId).

Query Parameters

windowSeconds?integer

Optional, defaults to 86400 (1 day), max 2592000 (30 days). Trailing window, in seconds, to aggregate swap stats over.

Response Body

curl -X GET "https://example.com/api/vaults/pools/string/string/swap-stats"
Empty