Cambrian Token Price (Current) API
GET /api/v1/evm/price-current
Token Price (Current)
Overview
Returns the current USD price of an EVM token calculated based on Uniswap V3 and compatible liquidity pools. The price is derived from on-chain liquidity pool data, providing accurate real-time pricing for any whitelisted EVM token. Results include the chain ID, token address, symbol, price in USD, and the timestamp of the last update.
Business Value
- Real-Time Token Pricing: Instantly retrieve the latest USD price for any supported EVM token without needing to interact directly with smart contracts or maintain your own price feeds.
- Multi-Chain Support: Query token prices across multiple EVM-compatible chains by specifying the token address, enabling cross-chain portfolio and DeFi analytics.
- DEX-Aggregated Accuracy: Prices are calculated from Uniswap V3 and clone liquidity pools, ensuring accurate market-reflective valuations based on actual on-chain liquidity.
- DeFi Application Integration: Ideal for wallets, dashboards, and DeFi protocols that need up-to-date token valuations to display portfolio values or compute trade sizes.
- Lightweight & Fast: A simple single-parameter GET request returns structured pricing data with timestamps, making it easy to integrate into any application or automated workflow.
Endpoint Details
URL:
https://opabinia.cambrian.network/api/v1/evm/price-current
Method: GET
Authentication: Required via X-API-Key header
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| token_address | string | No | 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913 |
Address of the token prefixed with 0x. See whitelisted tokens |
Response Field Descriptions
| Response Field | Type | Description |
|---|---|---|
| chainId | UInt32 | The chain ID of the blockchain where the token resides (e.g., 8453 for Base) |
| tokenAddress | String | The contract address of the token prefixed with 0x |
| symbol | String | The ticker symbol of the token (e.g., USDC) |
| priceUSD | Float64 | The current price of the token in USD |
| updatedAt | DateTime('UTC') | The UTC timestamp when the price was last updated |
Examples
1. Get Current Price of USDC on Base
Retrieve the current USD price for USDC (token address 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913) on the Base chain.
curl -X GET "https://opabinia.cambrian.network/api/v1/evm/price-current?token_address=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
{
"columns": [
{
"name": "chainId",
"type": "UInt32"
},
{
"name": "tokenAddress",
"type": "String"
},
{
"name": "symbol",
"type": "String"
},
{
"name": "priceUSD",
"type": "Float64"
},
{
"name": "updatedAt",
"type": "DateTime('UTC')"
}
],
"data": [
[
8453,
"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
"USDC",
1.0,
"2026-03-24T13:00:00+00:00"
]
],
"rows": 1
}
This response shows USDC on Base (chain ID 8453) trading at exactly $1.00 USD as expected for a stablecoin, with the price last updated at 2026-03-24T13:00:00 UTC.
2. Query a Different Whitelisted EVM Token
Use the /api/v1/evm/tokens endpoint to discover whitelisted token addresses, then query the current price for any of them. Below is an example with a different token address format.
curl -X GET "https://opabinia.cambrian.network/api/v1/evm/price-current?token_address=0x4200000000000000000000000000000000000006" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
{
"columns": [
{
"name": "chainId",
"type": "UInt32"
},
{
"name": "tokenAddress",
"type": "String"
},
{
"name": "symbol",
"type": "String"
},
{
"name": "priceUSD",
"type": "Float64"
},
{
"name": "updatedAt",
"type": "DateTime('UTC')"
}
],
"data": [
[
8453,
"0x4200000000000000000000000000000000000006",
"WETH",
2000.0,
"2026-03-24T13:00:00+00:00"
]
],
"rows": 1
}
Returns the current USD price for WETH on Base, sourced from Uniswap V3 and compatible liquidity pools. Use /api/v1/evm/tokens to get the full list of supported token addresses.
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/price-current"
);
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/price-current")
print(response.json())
asyncio.run(main())
Payment Flow
- Send a normal request to the endpoint (no API key needed)
- Server returns
402 Payment Requiredwith 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–5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request
Related Endpoints
/api/v1/evm/price-hour- Returns historical hourly price data for a specified EVM token/api/v1/evm/tokens- Returns a list of all whitelisted tokens for the specified EVM chain/api/v1/evm/dexes- List of DEXes on EVM compatible chains/api/v1/evm/uniswap/v3/pool- Returns current pool TVL, volume, fees APR, and other metrics for a Uniswap V3 pool/api/v1/evm/aero/v3/pool- Returns current pool TVL, volume, fees APR, and other metrics for an Aerodrome V3 pool