PR
Utilities · x402 · early usage
Get the latest quotes and trading data for specific DEX trading pairs
Get the latest quotes and trading data for specific DEX trading pairs.
by pro-api.coinmarketcap.com · discovered, not yet claimed by its owner · updated 2026-07-14
30d calls2
30d payers1
MethodGET
Outputjson
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
Get the latest quotes and trading data for specific DEX trading pairs.
Tags: bazaar
Call contract
- Method
- GET
- Input
- query parameters
- Output
- json
- Last paid call
- 2026-10-12
Input example from Bazaar metadata
{
"network_id": "1",
"pair_address": "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852"
}Output example
{
"data": [
{
"base_token": {
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"name": "Wrapped Ether",
"symbol": "WETH"
},
"contract_address": "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852",
"dex": {
"name": "Uniswap V2",
"slug": "uniswap-v2"
},
"id": 12345,
"last_updated": "2026-02-26T10:20:00.000Z",
"liquidity": 45000000,
"pair_created_at": "2020-05-04T11:30:00.000Z",
"platform": {
"name": "Ethereum",
"network_id": 1
},
"quote": {
"USD": {
"depth_negative_two": 3500000,
"depth_positive_two": 3200000,
"last_updated": "2026-02-26T10:20:00.000Z",
"percent_change_1h": 0.08,
"percent_change_24h": 1.9,
"price": 2072.28,
"volume_24h": 85000000
}
},
"quote_token": {
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "Tether USD",
"symbol": "USDT"
}
}
],
"status": {
"credit_count": 1,
"elapsed": 18,
"error_code": 0,
"error_message": "",
"timestamp": "2026-02-26T10:20:05.000Z"
}
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/27401.jsonfor the price and payment options. - Pay. Call
GET https://pro-api.coinmarketcap.com/x402/v4/dex/pairs/quotes/latest. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, eip155:56, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.01 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, eip155:56
- Demand
- 2 calls · 1 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.01 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0xcE24439F2D9C6a2289F741120FE202248B666666 | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0xcE24439F2D9C6a2289F741120FE202248B666666 | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
| exact | eip155:56 eip155:56 | 0x55d398326f99059fF775485246999027B3197955 | 10000000000000000 | 0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA | 30s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"amountUsd": 0.01,
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0xcE24439F2D9C6a2289F741120FE202248B666666",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0xcE24439F2D9C6a2289F741120FE202248B666666",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0x8d0D000Ee44948FC98c9B98A4FA4921476f08B0d",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
},
{
"scheme": "exact",
"network": "eip155:56",
"payTo": "0x3C5f3a6cE224BB89D72f5EB4232ecC27F67B3eeA",
"asset": "0x55d398326f99059fF775485246999027B3197955",
"amount": "10000000000000000",
"maxTimeoutSeconds": 30
}
]Schemas
Output schema (JSON Schema)
{
"properties": {
"example": {
"type": "object"
},
"type": {
"const": "json",
"type": "string"
}
},
"type": "object"
}Example shape — generated from the schema, not a captured live response
{
"example": {},
"type": "string"
}Examples
curl
curl "https://pro-api.coinmarketcap.com/x402/v4/dex/pairs/quotes/latest"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paidJavaScript
const res = await fetch("https://pro-api.coinmarketcap.com/x402/v4/dex/pairs/quotes/latest");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://pro-api.coinmarketcap.com/x402/v4/dex/pairs/quotes/latest")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- pro-api.coinmarketcap.com
- Endpoint
- https://pro-api.coinmarketcap.com/x402/v4/dex/pairs/quotes/latest
- Machine-readable
/resources/27401.json