Pool Fee Range Analysis
Retrieves fee APR and swap utilization data, categorized by price ranges relative to the current price, for a specific Orca Whirlpool. Results are grouped into symmetric percentage bands (e.g. ±5%, ±10%, ±20%) around the current price and include the corresponding tick range and swap utilization for each band.
Parameters
Responses
Examples
1. Analyzing Fee Range Utilization for an Orca Whirlpool
This example retrieves fee range analysis for a specific Orca Whirlpool over the past 7 days, showing utilization across three price bands (±5%, ±10%, ±20%) around the current price.
Response:
2 {
3 "columns": [
4 {
5 "name": "rangeLabel",
6 "type": "String"
7 },
8 {
9 "name": "priceRangeLower",
10 "type": "Float64"
11 },
12 {
13 "name": "priceRangeUpper",
14 "type": "Float64"
15 },
16 {
17 "name": "tickRangeLower",
18 "type": "Float64"
19 },
20 {
21 "name": "tickRangeUpper",
22 "type": "Float64"
23 },
24 {
25 "name": "utilization",
26 "type": "Float64"
27 },
28 {
29 "name": "updatedAt",
30 "type": "DateTime('UTC')"
31 }
32 ],
33 "data": [
34 [
35 "+/- 5%",
36 70.25833723551439,
37 77.65395168135801,
38 -26558,
39 -25557,
40 100,
41 "2026-08-05T15:58:54+00:00"
42 ],
43 [
44 "+/- 10%",
45 66.56053001259258,
46 81.35175890427982,
47 -27098,
48 -25091,
49 100,
50 "2026-08-05T15:58:54+00:00"
51 ],
52 [
53 "+/- 20%",
54 59.16491556674896,
55 88.74737335012344,
56 -28276,
57 -24221,
58 100,
59 "2026-08-05T15:58:54+00:00"
60 ]
61 ],
62 "rows": 3
63 }
64]
x402 Payment Option
This endpoint supports pay-per-use access via the x402 payment protocol (v2): pay $0.05 USDC per request using blockchain micropayments. No API key required.
Quickstart (Typescript)
2import { ExactEvmScheme } from "@x402/evm/exact/client";
3import { wrapFetchWithPayment } from "@x402/fetch";
4import { privateKeyToAccount } from "viem/accounts";
5const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
6const client = new x402Client();
7client.register("eip155:*", new ExactEvmScheme(signer));
8const fetchWithPayment = wrapFetchWithPayment(fetch, client);
9const response = await fetchWithPayment(
10 "https://x402.cambrian.org/solana/orca/pools/fee-ranges"
11);
12const data = await response.json();
Quickstart (Python)
2from eth_account import Account
3from x402 import x402Client
4from x402.http.clients import x402HttpxClient
5from x402.mechanisms.evm import EthAccountSigner
6from x402.mechanisms.evm.exact.register import register_exact_evm_client
7async def main():
8 client = x402Client()
9 account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
10 register_exact_evm_client(client, EthAccountSigner(account))
11 async with x402HttpxClient(client) as http:
12 response = await http.get("https://x402.cambrian.org/solana/orca/pools/fee-ranges")
13 print(response.json())
14asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns 402 Payment Required with payment details
- The x402 SDK automatically signs a payment authorization with your wallet
- The SDK resubmits the request with the signed payment
- Server verifies payment and returns the API response
The x402 SDK handles steps 2 through 5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request