Query onchain DEX token price & market data based on the provided token contract addresses
Query onchain DEX token price & market data based on the provided token contract addresses on a network.
10000 (raw units)
price
1
calls / 30d
1
unique payers
2026-08-28
updated
Provider
pro-api.coingecko.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x110cdBba7FE6434Ec4CE3464CC523942ad6Fb784",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 60
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "8XhngTRitTcUJMiaDJ6azw8GRSiFPpwhnmV3HYQLHUpL",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "10000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"queryParams": {
"include_24hr_price_change": true,
"include_24hr_vol": true,
"include_inactive_source": true,
"include_market_cap": true,
"include_total_reserve_in_usd": true,
"mcap_fdv_fallback": true
},
"type": "http"
},
"output": {
"example": {
"data": {
"attributes": {
"h24_price_change_percentage": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "3.3870290336"
},
"h24_volume_usd": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "965988358.733808"
},
"last_trade_timestamp": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": 1711356300
},
"market_cap_usd": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "6692452895.779648"
},
"token_prices": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "2289.33"
},
"total_reserve_in_usd": {
"0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2": "1576179559.94669772339136684208"
}
},
"id": "1ba898f0-eda2-4291-9491-9a5b323f66ef",
"type": "simple_token_price"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"include_24hr_price_change": {
"type": "boolean"
},
"include_24hr_vol": {
"type": "boolean"
},
"include_inactive_source": {
"type": "boolean"
},
"include_market_cap": {
"type": "boolean"
},
"include_total_reserve_in_usd": {
"type": "boolean"
},
"mcap_fdv_fallback": {
"type": "boolean"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type",
"example"
],
"type": "object"
}
},
"required": [
"input",
"output"
],
"type": "object"
}
}
}Use it
curl
curl "https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/skale-europa/token_price/probe" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/skale-europa/token_price/probe");
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.coingecko.com/api/v3/x402/onchain/simple/networks/skale-europa/token_price/probe")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1335.json, and this resource appears in /discovery/resources and /discovery/search.