Cambrian Pool Fee Range Analysis API

By Cambrian Network solana

GET /api/v1/solana/orca/pools/fee-ranges

Pool Fee Range Analysis

Overview

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.

Business Value

  • Liquidity Optimization: Understand which price ranges are most actively utilized for better capital allocation
  • Risk Assessment: Analyze concentration risk by seeing how fees and activity are distributed across price tiers
  • Performance Analysis: Track fee generation efficiency across different price ranges relative to current market price
  • Strategic Planning: Use utilization patterns to inform liquidity provision strategies in concentrated liquidity pools
  • Market Intelligence: Gain insights into trading patterns and price movement expectations within the pool

Endpoint Details

URL:

https://api.cambrian.org/solana/orca/pools/fee-ranges

Method: GET
Authentication: Required via X-API-Key header

Query Parameters

Parameter Type Required Default Description
pool_address string Yes - The public key address of the Orca Whirlpool.
days integer Yes - The number of past days to include in the analysis.

Response Field Descriptions

Response Field Type Description
rangeLabel String Label describing the price range band relative to the current price (e.g. "+/- 5%").
priceRangeLower Float64 Lower bound of the price range for this band.
priceRangeUpper Float64 Upper bound of the price range for this band.
tickRangeLower Float64 Lower tick index corresponding to the price range lower bound.
tickRangeUpper Float64 Upper tick index corresponding to the price range upper bound.
utilization Float64 Percentage of the analysis period during which the pool price stayed within this range.
updatedAt DateTime('UTC') Timestamp (UTC) when this data was last updated.

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.

curl -X GET "https://api.cambrian.org/solana/orca/pools/fee-ranges?pool_address=Czfq3xZZDmsdGdUyrNLtRhGc47cXcZtLG4crryfu44zE&days=7" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

[
  {
    "columns": [
      {
        "name": "rangeLabel",
        "type": "String"
      },
      {
        "name": "priceRangeLower",
        "type": "Float64"
      },
      {
        "name": "priceRangeUpper",
        "type": "Float64"
      },
      {
        "name": "tickRangeLower",
        "type": "Float64"
      },
      {
        "name": "tickRangeUpper",
        "type": "Float64"
      },
      {
        "name": "utilization",
        "type": "Float64"
      },
      {
        "name": "updatedAt",
        "type": "DateTime('UTC')"
      }
    ],
    "data": [
      [
        "+/- 5%",
        70.25833723551439,
        77.65395168135801,
        -26558,
        -25557,
        100,
        "2026-08-05T15:58:54+00:00"
      ],
      [
        "+/- 10%",
        66.56053001259258,
        81.35175890427982,
        -27098,
        -25091,
        100,
        "2026-08-05T15:58:54+00:00"
      ],
      [
        "+/- 20%",
        59.16491556674896,
        88.74737335012344,
        -28276,
        -24221,
        100,
        "2026-08-05T15:58:54+00:00"
      ]
    ],
    "rows": 3
  }
]

Note: result collections are limited to 10 items.

This result shows three price range bands for the pool over the trailing 7-day window. All three bands (±5%, ±10%, ±20%) report 100% utilization: the pool price stayed within each of these ranges for the entire analysis period.

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.

Quick Start (TypeScript)

npm install @x402/fetch @x402/evm viem
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.EVM_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:*", new ExactEvmScheme(signer));

const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const response = await fetchWithPayment(
  "https://x402.cambrian.org/solana/orca/pools/fee-ranges"
);
const data = await response.json();

Quick Start (Python)

pip install "x402[httpx]"
import asyncio, os
from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

async def main():
    client = x402Client()
    account = Account.from_key(os.getenv("EVM_PRIVATE_KEY"))
    register_exact_evm_client(client, EthAccountSigner(account))

    async with x402HttpxClient(client) as http:
        response = await http.get("https://x402.cambrian.org/solana/orca/pools/fee-ranges")
        print(response.json())

asyncio.run(main())

Payment Flow

  1. Send a normal request to the endpoint (no API key needed)
  2. Server returns 402 Payment Required with payment details
  3. The x402 SDK automatically signs a payment authorization with your wallet
  4. The SDK resubmits the request with the signed payment
  5. 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