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.

GET/api/external/discovery/native-prices

What 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.

Response fields of What are SOL, BNB and ETH worth in USD right now?
FieldTypeDescription
SOLobject
SOL.priceUsdnumber | nullUSD per one SOL; null when no price is available.
SOL.updatedAtstring | nullWhen this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown.
SOL.ageSecondsinteger | nullSeconds between updatedAt and this response; null whenever updatedAt is.
BNBobject
BNB.priceUsdnumber | nullUSD per one BNB; null when no price is available.
BNB.updatedAtstring | nullWhen this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown.
BNB.ageSecondsinteger | nullSeconds between updatedAt and this response; null whenever updatedAt is.
ETHobject
ETH.priceUsdnumber | nullUSD per one ETH; null when no price is available.
ETH.updatedAtstring | nullWhen this price was last updated (ISO 8601, UTC); null with no price, or when the time is unknown.
ETH.ageSecondsinteger | nullSeconds 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