Crypto exchanges
GET /api/exchangesCrypto exchanges ranked by trust score: id, name, country, year established, trust score (1-10) and rank, 24h volume in BTC (and normalized), centralized flag and URL; limit 1-100 (default 25). Send GET /api/exchanges with no required fields (3 optional) and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with source, fetchedAt, cached, mode, page and 2 more.
Pass `exchange` (an id such as binance, gdax, kraken) for ONE exchange's profile instead: the same fields plus description, trade volume incl. and excl. wash-trade normalization, ticker count and social links. Cached in-process for 5 minutes. Use exchange-tickers for an exchange's markets.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | no | List mode: 1-100 exchanges (default 25). |
page | number | no | List mode: page number (default 1). |
exchange | string | no | Profile mode: one exchange id (binance, gdax, kraken, okex, bybit_spot, ...). |
Example request
curl -i "https://agent402.tools/api/exchanges?limit=10"
Without payment this returns HTTP 402 Payment Required with the exact price for exchanges; any x402 v2 or MPP client pays it and retries.
Example response
{
"source": "coingecko",
"fetchedAt": "2026-08-22T13:20:00.000Z",
"cached": false,
"mode": "list",
"page": 1,
"count": 1,
"exchanges": [
{
"rank": 1,
"id": "gdax",
"name": "Coinbase Exchange",
"country": "United States",
"yearEstablished": 2012,
"trustScore": 10,
"trustScoreRank": 1,
"volume24hBtc": 28651.7,
"volume24hBtcNormalized": 28651.7,
"centralized": true,
"url": "https://www.coinbase.com/"
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
source | string | yes | coingecko |
fetchedAt | string | yes | 2026-08-22T13:20:00.000Z |
cached | boolean | yes | false |
mode | string | yes | list |
page | number | yes | 1 |
count | number | yes | 1 |
exchanges | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "exchanges",
"params": {
"limit": 10
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for exchanges; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/exchanges is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/exchanges?limit=10");
Related tools
Coin search
GET /api/coin-searchResolve a name or ticker to coin ids: full-text search returning matching coins (id, symbol, name, market cap rank, orde…
DEX volume by protocol
POST /api/defi-dex-volumeDecentralized exchanges ranked by 24h spot trading volume from DefiLlama's free DEX overview: per-DEX 24h/7d/30d/1y/all-…
Exchange tickers
GET /api/exchange-tickersMarkets (tickers) listed on one exchange: base/target pair, last price, 24h volume, USD- and BTC-converted last price an…
Onchain options volume by protocol
POST /api/options-volumeOnchain options protocols ranked by 24h notional volume from DefiLlama's options overview: per-protocol 24h, 7d and 30d …
Known-address label lookup
POST /api/address-labelLabel a known EVM address from a curated, committed dataset: major stablecoin + token contracts (the USDC and USDG contr…
Wallet token transfers (filtered)
POST /api/asset-transfersRecent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…