Aqua0
API ReferencePools

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

Aggregates the realized V4 swaps for one pool over a trailing window into a swap count and per-token raw volume. Counts only swaps that took Aqua0 JIT liquidity (labeled source: 'jit-backed'), so it is JIT-backed volume and not total pool volume.

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

application/json

curl -X GET "https://example.com/api/vaults/pools/string/string/swap-stats"
{  "chainId": 0,  "poolId": "string",  "windowSeconds": 0,  "source": "jit-backed",  "swaps": 0,  "volume": [    {      "token": "string",      "amount": "string"    }  ],  "lastSwapAt": 0}