Discovery and markets API

What is bitcoin, or one US dollar, worth in each currency right now?

Rates per BTC and per USD for 59 fiat currencies, 14 crypto units and gold and silver: convert any USD price into euros, yen, sats or ounces of gold.

GET/api/external/discovery/fiat-rates

What it returns

A conversion table, right now: for each currency, how many units one bitcoin buys (perBtc) and how many one US dollar buys (perUsd), so any USD price converts with one multiplication. Covers 59 fiat currencies, 14 crypto units (bitcoin itself at 1, bits and sats, ether, solana and other majors) and gold and silver per troy ounce. usdPerBtc is bitcoin's USD price. perUsd is derived from perBtc and bitcoin's USD price; for a crypto unit it is how much of it one dollar buys (ether perUsd 0.000363 means ether is worth about $2,750). code is the lowercase currency code (eur, jpy, xau), symbol its display symbol. 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/fiat-rates"

Response fields

A JSON response. Every field is always present; null means the value could not be established, never zero.

Response fields of What is bitcoin, or one US dollar, worth in each currency right now?
FieldTypeDescription
usdPerBtcnumberBitcoin's USD price: dollars per one BTC.
ratesobject[]One row per unit, in the source's order; filter on type for one kind.
rates[].codestringLowercase currency code, e.g. eur, sats, xau.
rates[].namestringDisplay name.
rates[].symbolstringDisplay symbol, e.g. €.
rates[].typestringWhat kind of unit it is.
rates[].perBtcnumberUnits one bitcoin buys.
rates[].perUsdnumberUnits one US dollar buys.

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