Discovery and markets API
What are SOL, BNB and ETH worth in USD right now?
The spot USD price of SOL, BNB and ETH in one call, each with when it was last updated and its age in seconds, to value a native balance or convert a native amount to dollars.
/api/external/discovery/native-pricesWhat it returns
The spot USD price of the three native coins of Solana (SOL), BNB Chain (BNB) and Ethereum (ETH), in one call. Each carries updatedAt, when that price was last updated, and ageSeconds, how old it was when this response was served, so a caller can refuse a figure it finds too old. Prices are normally a few seconds old. A coin with no price available is null in all three fields; it is never answered as 0. No chain and no subject.
Chains
This endpoint is not tied to a chain: it takes no chain in its request.
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/discovery/native-prices"
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
SOL | object | |
SOL.priceUsd | number | null | USD per one SOL; null when no price is available. |
SOL.updatedAt | string | null | When this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown. |
SOL.ageSeconds | integer | null | Seconds between updatedAt and this response; null whenever updatedAt is. |
BNB | object | |
BNB.priceUsd | number | null | USD per one BNB; null when no price is available. |
BNB.updatedAt | string | null | When this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown. |
BNB.ageSeconds | integer | null | Seconds between updatedAt and this response; null whenever updatedAt is. |
ETH | object | |
ETH.priceUsd | number | null | USD per one ETH; null when no price is available. |
ETH.updatedAt | string | null | When this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown. |
ETH.ageSeconds | integer | null | Seconds between updatedAt and this response; null whenever updatedAt is. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key