Cambrian V3 - Pool Info API

By Cambrian Network base

GET /api/v1/evm/alien/v3/pool

V3 Pool Information

This endpoint returns comprehensive pool metrics for Uniswap V3 style pools on Base blockchain, including Total Value Locked (TVL), swap volume, fees APR, price tick utilization, number of swaps, and unique users across multiple time ranges (5 minutes, 1 hour, 1 day, 1 week, 1 month, and 1 year).

Business Value

  • Real-time Pool Analytics: Get up-to-date metrics for liquidity pools to assess performance and activity levels
  • Multi-timeframe Analysis: Access data across different time horizons for comprehensive trend analysis and market timing
  • Liquidity Provider Insights: Monitor TVL, fees, and utilization metrics to optimize liquidity provision strategies
  • Trading Intelligence: Track swap volumes and user activity to identify high-volume and active pools for trading opportunities
  • Risk Assessment: Evaluate pool health through tick utilization and liquidity distribution metrics

Endpoint Details

URL:

https://opabinia.cambrian.network/api/v1/evm/alien/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 (e.g., 0x63170b42585b86e3c439820ade18fbd07a8933cd)

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., EURC)
token0Decimals Number Decimal places for the first token
token1Address String Contract address of the second token in the pool
token1Symbol String Symbol of the second token (e.g., USDC)
token1Decimals Number Decimal places for the second token
feeTier Number Fee tier of the pool in basis points
tickSpacing Number Tick spacing for the pool
currentLiquidity Number Current liquidity in the pool
currentSqrtPriceX96 String Current sqrt price encoded as X96
currentTick Number Current price tick
currentPoolPrice Number Current price of token0 in terms of token1
poolTvlUSD Number Total Value Locked in USD
swapVolumeUSD Map Swap volume in USD across different time periods
feeApr Map Annualized fee APR across different time periods
tickUtilization Map Tick utilization percentage across different time periods
swapCount Map Number of swaps across different time periods
uniqueUserCount Map Number of unique users across different time periods

Examples

1. Get EURC/USDC Pool Metrics

This example demonstrates retrieving comprehensive pool metrics for a EURC/USDC pool on Base blockchain.

curl -X GET "https://opabinia.cambrian.network/api/v1/evm/alien/v3/pool?pool_address=0x63170b42585b86e3c439820ade18fbd07a8933cd" \
  -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": [
    [
      "2024-09-11T18:27:29+00:00",
      "0x60a3e35cc302bfa44cb288bc5a4f316fdb1adb42",
      "EURC",
      6,
      "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "USDC",
      6,
      200,
      4,
      10472813,
      "86541506335930935475856538193",
      1765,
      1.193135404620077,
      25.708212667615285,
      {
        "'1 day'": 0.028585510046678364,
        "'1 hour'": 0.0,
        "'1 month'": 0.6735855584534924,
        "'1 week'": 0.11241240459408124,
        "'1 year'": 99881.4210769317,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 0.008117025716207009,
        "'1 hour'": 0.0,
        "'1 month'": 0.0062882836749083865,
        "'1 week'": 0.004547531261288927,
        "'1 year'": 77.70390137059402,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 0.4,
        "'1 hour'": 0.0,
        "'1 month'": 0.3211111111111111,
        "'1 week'": 0.22380952380952382,
        "'1 year'": 0.5201826484018265,
        "'5 minute'": 0.0
      },
      {
        "'1 day'": 1,
        "'1 hour'": 0,
        "'1 month'": 13,
        "'1 week'": 5,
        "'1 year'": 3335,
        "'5 minute'": 0
      },
      {
        "'1 day'": 1,
        "'1 hour'": 0,
        "'1 month'": 11,
        "'1 week'": 4,
        "'1 year'": 1075,
        "'5 minute'": 0
      }
    ]
  ],
  "rows": 1
}

This response shows a EURC/USDC pool with $25.71 TVL, current price of 1.193 EURC per USDC, and fee APR ranging from 0% (short-term) to 77.7% (annual). The pool has seen 3,335 swaps and 1,075 unique users over the past year, with 40% tick utilization over the past day.

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/alien/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/alien/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/solana/ohlcv/pool - Retrieve OHLCV data for individual pool contracts on Solana
  • /api/v1/solana/orca/pools - Get list of all Orca pools with static information
  • /api/v1/solana/orca/pools/fee-metrics - Get fee metrics and volume data for Orca Whirlpools
  • /api/v1/solana/pool-transactions - Access pool transaction history and details