Appearance
CEX Prices
GET /api/v1/prices
Batch real-time prices from major centralized exchanges via CCXT multi-exchange aggregation.
Cost: $0.005 USDC
Query Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| symbols | string | Yes | Comma-separated symbols, lowercase (max 20) |
Request Example
bash
curl -H "x-payment: <proof>" \
"https://api.foursec.xyz/api/v1/prices?symbols=btc,eth,sol,link,bnb"javascript
const res = await fetchWithPayment(
"https://api.foursec.xyz/api/v1/prices?symbols=btc,eth,sol"
);
const data = await res.json();Response
json
{
"success": true,
"data": {
"btc": {
"price": 57800.32,
"change_24h": 2.45,
"volume_24h": 28500000000,
"market_cap": 1140000000000,
"source": "binance"
},
"eth": {
"price": 2450.18,
"change_24h": 1.82,
"volume_24h": 12500000000,
"market_cap": 295000000000,
"source": "binance"
},
"sol": {
"price": 148.72,
"change_24h": -0.95,
"volume_24h": 3200000000,
"market_cap": 68000000000,
"source": "binance"
}
},
"meta": {
"cached": false,
"count": 3,
"requested": 3,
"timestamp": "2026-07-08T14:30:00Z"
}
}Supported Symbols
Lowercase symbols: btc, eth, sol, xrp, bnb, ada, doge, avax, dot, link, matic, uni, apt, arb, op, sui, near, atom, pepe, shib, ton, trx, ltc
Data Source
CCXT multi-exchange fallback chain: Binance → OKX → Bybit → Kraken → KuCoin. Falls back to CoinGecko if all exchanges fail. Cache TTL: 10 seconds.
Related Endpoints
- Market Details — detailed market data per token
- Market History — historical OHLCV from CEX