Cambrian V3 - Pool Info API

By Cambrian Network base

GET /api/v1/evm/uniswap/v3/pool

Uniswap V3 Pool Information

Retrieves comprehensive information about a specific Uniswap V3 pool, including token details, liquidity metrics, trading volume, and fee statistics across multiple time periods.

Business Value

  • Real-time Pool Analytics: Access live pool data including current price, liquidity, and tick information for trading decisions
  • Historical Performance Metrics: Track swap volume, fee APR, and utilization across multiple timeframes (5min to 1 year)
  • Risk Assessment: Monitor pool TVL and tick utilization to evaluate investment opportunities and market conditions
  • Trading Optimization: Use current tick and price data to optimize position management and entry/exit strategies
  • Portfolio Management: Track pool performance metrics to make informed liquidity provision decisions

Endpoint Details

URL:

https://opabinia.cambrian.network/api/v1/evm/uniswap/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., 0xd0b53D9277642d899DF5C87A3966A349A798F224)

Response Field Descriptions

Response Field Type Description
createdAt DateTime Pool creation timestamp in UTC
token0Address String Address of the first token in the pool
token0Symbol String Symbol of the first token (e.g., WETH)
token0Decimals Integer Number of decimal places for token0
token1Address String Address of the second token in the pool
token1Symbol String Symbol of the second token (e.g., USDC)
token1Decimals Integer Number of decimal places for token1
feeTier Integer Pool fee tier in basis points (e.g., 500 = 0.05%)
tickSpacing Integer Spacing between usable ticks in the pool
currentLiquidity String Current available liquidity in the pool
currentSqrtPriceX96 String Current sqrt price in X96 format
currentTick Integer Current active tick in the pool
currentPoolPrice Float Current pool price as a decimal number
poolTvlUSD Float Total value locked in the pool in USD
swapVolumeUSD Object Swap volume in USD across different time periods
feeApr Object Fee APR percentages across different time periods
tickUtilization Object Tick utilization percentages 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 WETH/USDC Pool Information

This example retrieves comprehensive data for the popular WETH/USDC pool on Base, including current liquidity, pricing, and historical metrics.

curl -X GET "https://opabinia.cambrian.network/api/v1/evm/uniswap/v3/pool?pool_address=0xd0b53D9277642d899DF5C87A3966A349A798F224" \
  -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": [
    [
      "2023-09-06T19:56:01+00:00",
      "0x4200000000000000000000000000000000000006",
      "WETH",
      18,
      "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
      "USDC",
      6,
      500,
      10,
      2288097067329611632,
      "4347881336294143023152793",
      -196218,
      3.0115924373066446e-9,
      24560981.330167037,
      {"'1 day'": 43331955.69863482, "'1 hour'": 1185339.7780282698, "'1 month'": 1099001415.5495903, "'1 week'": 255841732.68311626, "'1 year'": 24680493165.88985, "'5 minute'": 0.0},
      {"'1 day'": 32.19774409130692, "'1 hour'": 21.138358268230128, "'1 month'": 26.84749605341888, "'1 week'": 27.08314036943972, "'1 year'": 50.2432961332372, "'5 minute'": 0.0},
      {"'1 day'": 0.33333333333333337, "'1 hour'": 0.0, "'1 month'": 2.8555555555555556, "'1 week'": 6.869047619047619, "'1 year'": 11.39132420091324, "'5 minute'": 0.0},
      {"'1 day'": 65032, "'1 hour'": 1538, "'1 month'": 1438036, "'1 week'": 553897, "'1 year'": 18592377, "'5 minute'": 0},
      {"'1 day'": 65032, "'1 hour'": 370, "'1 month'": 54527, "'1 week'": 16866, "'1 year'": 674245, "'5 minute'": 0}
    ]
  ],
  "rows": 1
}

This response shows detailed information for the WETH/USDC pool with a 0.05% fee tier. The pool has significant liquidity (~$24.5M TVL) and shows healthy trading activity with over 65k daily swaps. The fee APR ranges from 21-32% across different timeframes, indicating attractive yield opportunities for liquidity providers.

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/uniswap/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/uniswap/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/uniswap/v3/pools - Returns a list of all Uniswap V3 liquidity pools, including token pairs, fee tiers, and creation timestamps
  • /api/v1/evm/price-current - Returns current price of a token calculated based on Uniswap V3 and clones liquidity pools
  • /api/v1/evm/aero/v3/pool - Returns pool information for Aerodrome V3 pools with similar metrics to Uniswap V3
  • /api/v1/evm/sushi/v3/pool - Returns pool information for SushiSwap V3 pools with comparable data structure
  • /api/v1/evm/pancake/v3/pool - Returns pool information for PancakeSwap V3 pools with identical metrics structure