Skip to main content
GET
Pool Fees
Aggregates the fees a pool earned over the selected window into two parts:
  • Pool-captured spread — the spread the pool’s curve earned (price curve, risk curve, base spread), excluding the protocol fee.
  • Protocol fee — the protocol fee captured, broken down per recipient for pools that route fees through the fee-split sidecar.
Computed on-the-fly over the window’s swaps. For very high-volume windows the response sets truncated: true (see the field below).

Path Parameters

address
string
required
The pool config PDA address.

Query Parameters

interval
string
default:"24h"
Lookback window ending now. One of 1h, 24h, 7d, 30d, or all (all aggregates the pool’s full history).
cluster
string
default:"mainnet-beta"
Solana cluster — mainnet-beta or devnet.

Response

interval
string
The interval that was applied (echoes the request).
start_time
integer
Start of the window (Unix seconds). 0 when interval=all.
end_time
integer
End of the window (Unix seconds) — the request time.
mint_x
string | null
Pool’s token X (base) mint.
mint_y
string | null
Pool’s token Y (quote) mint.
totals
object
Aggregate fee totals over the window.
protocol_fee_split
array
Per-recipient split of the protocol fee over the window. Empty ([]) for pools that use the default (single) fee recipient, for windows with no fee-bearing split swaps, or for windows entirely before per-swap split tracking began.The sum of recipients’ fee_usd equals totals.protocol_fee_usd only when every fee-bearing swap in the window carried a split; it is less when the window also includes default-fee swaps or pre-tracking swaps.
truncated
boolean
true if the per-query swap cap was reached, meaning the window contains more swaps than were aggregated. Narrow the interval for a complete result.