Cambrian V3 - Pool Info API

By Cambrian Network base

GET /api/v1/evm/aero/v3/pool

Aerodrome V3 Pool Metrics

This endpoint returns comprehensive pool metrics for Aerodrome V3 pools including TVL, swap volume, fees APR, tick utilization, swap counts, and unique user counts across multiple time ranges (5 minutes to 1 year).

Business Value

  • Real-time Pool Analytics: Get current pool health metrics including TVL and liquidity for informed trading decisions
  • Volume Analysis: Track swap volume patterns across different time periods to identify trading activity trends
  • Fee Income Assessment: Monitor APR rates to evaluate fee generation potential and yield opportunities
  • Market Activity Insights: Analyze swap counts and unique user metrics to understand pool adoption and usage
  • Risk Management: Assess tick utilization to understand price range efficiency and concentration risk

Endpoint Details

URL:

https://opabinia.cambrian.network/api/v1/evm/aero/v3/pool

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

Query Parameters

Parameter Type Required Default Description
pool_address string Yes - Pool address with 0x prefix (must match pattern ^0x[a-fA-F0-9]{40}$)

Response Field Descriptions

Response Field Type Description
createdAt DateTime Timestamp when the pool data was created/updated
token0Address string Contract address of the first token in the pool
token0Symbol string Symbol of the first token (e.g., WETH)
token0Decimals integer Decimal places for token0
token1Address string Contract address of the second token in the pool
token1Symbol string Symbol of the second token (e.g., cbBTC)
token1Decimals integer Decimal places for token1
feeTier integer Fee tier for the pool (in basis points)
tickSpacing integer Tick spacing configuration for the pool
currentLiquidity integer Current active liquidity in the pool
currentSqrtPriceX96 string Current price in sqrt(price) * 2^96 format
currentTick integer Current active tick in the pool
currentPoolPrice number Current exchange rate between token0 and token1
poolTvlUSD number Total Value Locked in USD
swapVolumeUSD object Swap volume in USD across different time periods
feeApr object Annual Percentage Rate for fees across different time periods
tickUtilization object Percentage of tick range utilization across different time periods
swapCount object Number of swaps across different time periods
uniqueUserCount object Number of unique users across different time periods

Examples

1. Get Pool Metrics for WETH/cbBTC Pool

Retrieve comprehensive metrics for a specific Aerodrome V3 pool to analyze trading activity and fee generation.

curl -X GET "https://opabinia.cambrian.network/api/v1/evm/aero/v3/pool?pool_address=0xffa192f04b1e5f9f5124fb40a96407564492ed20" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response:

{
  "columns": [
    {
      "name": "createdAt",
      "type": "DateTime('UTC')"
    },
    {
      "name": "token0Address",
      "type": "LowCardinality(FixedString(42))"
    },
    {
      "name": "token0Symbol",
      "type": "String"
    },
    {
      "name": "token0Decimals",
      "type": "UInt8"
    },
    {
      "name": "token1Address",
      "type": "LowCardinality(FixedString(42))"
    },
    {
      "name": "token1Symbol",
      "type": "String"
    },
    {
      "name": "token1Decimals",
      "type": "UInt8"
    },
    {
      "name": "feeTier",
      "type": "UInt32"
    },
    {
      "name": "tickSpacing",
      "type": "Int32"
    },
    {
      "name": "currentLiquidity",
      "type": "UInt128"
    },
    {
      "name": "currentSqrtPriceX96",
      "type": "UInt256"
    },
    {
      "name": "currentTick",
      "type": "Int32"
    },
    {
      "name": "currentPoolPrice",
      "type": "Float64"
    },
    {
      "name": "poolTvlUSD",
      "type": "Float64"
    },
    {
      "name": "swapVolumeUSD",
      "type": "Map(String,Float64)"
    },
    {
      "name": "feeApr",
      "type": "Map(String,Float64)"
    },
    {
      "name": "tickUtilization",
      "type": "Map(String,Float64)"
    },
    {
      "name": "swapCount",
      "type": "Map(String,UInt64)"
    },
    {
      "name": "uniqueUserCount",
      "type": "Map(String,UInt64)"
    }
  ],
  "data": [
    [
      "2025-02-13T22:12:07+00:00",
      "0x4200000000000000000000000000000000000006",
      "WETH",
      18,
      "0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf",
      "cbBTC",
      8,
      0,
      10,
      347944853560,
      "141739497698037594805371",
      -264691,
      3.2005352238335866E-12,
      0.4959493022940939,
      {
        "'1 day'": 0.0,
        "'1 hour'": 0.0,
        "'1 month'": 0.0,
        "'1 week'": 0.0,
        "'1 year'": 28335.19197830496,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 0.0,
        "'1 hour'": 0.0,
        "'1 month'": 0.0,
        "'1 week'": 0.0,
        "'1 year'": 0.0,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 0.0,
        "'1 hour'": 0.0,
        "'1 month'": 0.0,
        "'1 week'": 0.0,
        "'1 year'": 1.1901826484018265,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 0,
        "'1 hour'": 0,
        "'1 month'": 0,
        "'1 week'": 0,
        "'1 year'": 3116,
        "'5 minute'": 0
      },
      {
        "'1 day'": 0,
        "'1 hour'": 0,
        "'1 month'": 0,
        "'1 week'": 0,
        "'1 year'": 817,
        "'5 minute'": 0
      }
    ]
  ],
  "rows": 1
}

This response shows the WETH/cbBTC pool with $0.50 TVL, yearly swap volume of $28,335, and 817 unique users over the past year. The pool has generated minimal fees recently but shows historical trading activity.

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://deep42.cambrian.network/api/v1/evm/aero/v3/pool"
);
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://deep42.cambrian.network/api/v1/evm/aero/v3/pool")
        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–5 automatically.

Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request


Related Endpoints

  • /api/v1/evm/aero/v2/pool - V2 pool information and metrics