Cambrian Token Details API
GET /api/v1/solana/token-details
Token Details
Overview
Retrieves details about a Solana token, including price history, trade statistics, holder information, and other metrics. The endpoint returns current price, trading volume, buy/sell breakdowns, and supply metrics in a single response.
Business Value
- Market Analysis: Access current price and trading volume data for investment decisions and market research
- Trading Intelligence: Get 1h, 24h, and 7-day trading statistics for algorithmic trading strategies
- Portfolio Tracking: Monitor token metrics including holder count and fully diluted valuation for portfolio management
- Risk Assessment: Analyze buy/sell ratios and volume patterns to assess token liquidity and market sentiment
- Token Research: Access fundamental token data including symbol, name, decimals, and supply information
Endpoint Details
URL:
https://api.cambrian.org/solana/token-details
Method: GET
Authentication: Required via X-API-Key header
Query Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| token_address | string | Yes | - | The Solana token program address (base58 string) |
Response Field Descriptions
| Response Field | Type | Description |
|---|---|---|
| tokenAddress | String | The Solana token program address (base58 string) |
| symbol | String | Token symbol |
| name | String | Token name |
| decimals | UInt8 | Number of decimal places for the token |
| lastTradeUnixTime | UInt32 | Unix timestamp of the most recent trade |
| lastTradeHumanTime | String | Human-readable timestamp of the most recent trade |
| priceUSD | Float64 | Current price of the token in USD |
| trade1hCount | UInt64 | Number of trades in the last 1 hour |
| trade24hCount | UInt64 | Number of trades in the last 24 hours |
| trade7dCount | UInt64 | Number of trades in the last 7 days |
| volume1h | Float64 | Trading volume (in token units) over the last 1 hour |
| volume24h | Float64 | Trading volume (in token units) over the last 24 hours |
| volume7d | Float64 | Trading volume (in token units) over the last 7 days |
| volume1hUSD | Float64 | Trading volume in USD over the last 1 hour |
| volume24hUSD | Float64 | Trading volume in USD over the last 24 hours |
| volume7dUSD | Float64 | Trading volume in USD over the last 7 days |
| buy24hCount | UInt64 | Number of buy trades in the last 24 hours |
| sell24hCount | UInt64 | Number of sell trades in the last 24 hours |
| buyVolume24h | Float64 | Buy volume (in token units) over the last 24 hours |
| sellVolume24h | Float64 | Sell volume (in token units) over the last 24 hours |
| buyVolume24hUSD | Float64 | Buy volume in USD over the last 24 hours |
| sellVolume24hUSD | Float64 | Sell volume in USD over the last 24 hours |
| holderCount | Nullable(UInt64) | Total number of token holders |
| totalSupply | Nullable(Float64) | Total supply of the token |
| fdvUSD | Nullable(Float64) | Fully diluted valuation in USD |
Examples
1. Retrieve Token Details for Wrapped SOL
This example fetches details for Wrapped SOL, including current price, trade activity, and volume across multiple timeframes.
curl -X GET "https://api.cambrian.org/solana/token-details?token_address=So11111111111111111111111111111111111111112" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json"
Response:
[
{
"columns": [
{
"name": "tokenAddress",
"type": "String"
},
{
"name": "symbol",
"type": "String"
},
{
"name": "name",
"type": "String"
},
{
"name": "decimals",
"type": "UInt8"
},
{
"name": "lastTradeUnixTime",
"type": "UInt32"
},
{
"name": "lastTradeHumanTime",
"type": "String"
},
{
"name": "priceUSD",
"type": "Float64"
},
{
"name": "trade1hCount",
"type": "UInt64"
},
{
"name": "trade24hCount",
"type": "UInt64"
},
{
"name": "trade7dCount",
"type": "UInt64"
},
{
"name": "volume1h",
"type": "Float64"
},
{
"name": "volume24h",
"type": "Float64"
},
{
"name": "volume7d",
"type": "Float64"
},
{
"name": "volume1hUSD",
"type": "Float64"
},
{
"name": "volume24hUSD",
"type": "Float64"
},
{
"name": "volume7dUSD",
"type": "Float64"
},
{
"name": "buy24hCount",
"type": "UInt64"
},
{
"name": "sell24hCount",
"type": "UInt64"
},
{
"name": "buyVolume24h",
"type": "Float64"
},
{
"name": "sellVolume24h",
"type": "Float64"
},
{
"name": "buyVolume24hUSD",
"type": "Float64"
},
{
"name": "sellVolume24hUSD",
"type": "Float64"
},
{
"name": "holderCount",
"type": "Nullable(UInt64)"
},
{
"name": "totalSupply",
"type": "Nullable(Float64)"
},
{
"name": "fdvUSD",
"type": "Nullable(Float64)"
}
],
"data": [
[
"So11111111111111111111111111111111111111112",
"SOL",
"Wrapped SOL",
9,
1785940953,
"2026-08-05 14:42:33",
73.63365510418993,
1038608,
23761377,
147533755,
4488665.3103171615,
91296628.87546705,
508123466.21481895,
330516833.3380355,
6722504482.791368,
37414988061.60748,
9530398,
14230979,
45464572.17362762,
45832056.7018394,
3347722626.892447,
3374781855.898919,
9790713,
13348181.108462175,
982875364.0087674
]
],
"rows": 1
}
]
Note: Result collections are limited to 10 items.
This result shows Wrapped SOL trading at about $73.63, with over 23.7 million trades in the past 24 hours, a 24h USD volume above $6.7 billion, and roughly 9.79 million holders.
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/token-details"
);
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/token-details")
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 through 5 automatically.
Network: Base (chain ID 8453) | Currency: USDC | Price: $0.05 per request
Related Endpoints
- /solana/token-details-multi - Retrieve comprehensive details for multiple Solana tokens simultaneously
- /solana/price-current - Retrieves the latest available USD price for a given Solana token program address
- /solana/trade-statistics - Get instant trade analytics and performance metrics for any SPL tokens
- /solana/tokens/holders - Returns a list of accounts currently holding a specific Solana token
- /solana/trending-tokens - Retrieves a list of trending Solana tokens