Market Data
Get the exchange rate between any two assets, crypto or fiat, and the details of each asset, by symbol or by ID, from one REST API.
Prices for wallets, invoices and reports
Show values in fiat
Convert balances and payments to USD, EUR or any listed currency at the current exchange rate.
Price an invoice
Quote a crypto amount for a price in fiat at the moment the customer pays.
Describe an asset
Read an asset's details, with its latest rate, and list every supported asset to build your own picker.
Make your first Market Data call
Real paths and example responses from the API reference. Add your API key and run it.
- Base URL
https://rest.cryptoapis.io - Auth: the X-API-Key header
- JSON responses in the same shape as every other Crypto APIs call
curl https://rest.cryptoapis.io/market-data/exchange-rates/by-symbol/FROM_ASSET_SYMBOL/TO_ASSET_SYMBOL \ -H "X-API-Key: YOUR_API_KEY"
{
"calculationTimestamp": 1618577849,
"fromAssetId": "5b1ea92e584bf50020130612",
"fromAssetSymbol": "BTC",
"rate": "54768.26745499848"
}
curl https://rest.cryptoapis.io/market-data/assets/by-symbol/ASSET_SYMBOL \ -H "X-API-Key: YOUR_API_KEY"
{
"latestRate": {
"amount": "61704.20995670996",
"calculationTimestamp": 1636107864,
"unit": "USD"
},
"logo": {
"encoding": "base64",
"imageData": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv…",
"mimeType": "image/svg+xml"
},
"name": "Bitcoin",
"originalSymbol": "BTC"
}
curl https://rest.cryptoapis.io/market-data/metadata/assets \ -H "X-API-Key: YOUR_API_KEY"
{
"limit": 50,
"offset": 0,
"total": 100,
"items": [
{
"latestRate": {
"amount": "61704.20995670996",
"calculationTimestamp": 1636107864,
"unit": "USD"
},
"logo": {
"encoding": "base64",
"imageData": "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcv…",
"mimeType": "image/svg+xml"
},
"name": "Bitcoin",
"originalSymbol": "BTC"
}
]
}
Every Market Data endpoint
Each operation links to its page in the API reference, with its parameters and responses. Paths take an asset symbol or ID, not a blockchain.
/market-data/exchange-rates/by-id/{fromAssetId}/{toAssetId}/market-data/exchange-rates/by-symbol/{fromAssetSymbol}/{toAssetSymbol}Market Data questions
Does Market Data depend on a blockchain?
No. Its paths take an asset symbol or ID rather than a blockchain and network, so the same call works for every asset it lists, crypto or fiat.
Can I try Market Data for free?
Yes, for 14 days. The Blockchain API free trial includes Market Data and every other feature, with no card. It ends after 14 days or when its credits run out; after that, calls need a subscription, listed on the pricing page.
What data does the Crypto APIs Market Data API return for a cryptocurrency?
It returns current asset details including live price, circulating and max supply, market capitalization, 24-hour trading volume, and token contract addresses across protocols. You can look up an asset by its symbol (e.g. BTC) or by its unique asset ID. Data is sourced from CoinMarketCap.
Does the Market Data API provide OHLCV candlesticks or order-book data?
No. The Market Data API provides current price and current asset-to-asset exchange rates only. It does not include OHLCV/candlestick history or per-exchange order-book data.
How do I get the exchange rate between two assets, like BTC to USD?
Use the exchange-rate endpoints, which return the current rate between any two assets. You can request the rate either by asset symbols (for example BTC to USD) or by the two assets' unique asset IDs.
How many assets does the Crypto APIs Market Data API cover?
The API covers approximately 14,600 crypto and fiat assets, sourced from CoinMarketCap. You can enumerate the full supported list via the list-supported-assets endpoint, which supports pagination and a filter for crypto or fiat asset types.
Can I look up assets by symbol or do I need an asset ID?
Both are supported. Asset details and exchange rates can be requested either by human-readable symbol (such as BTC or ETH) or by the asset's unique asset ID. Symbol-based lookups are convenient, while asset IDs disambiguate tokens that share a ticker.
Start building with Market Data
14-day free trial, mainnet included. No card needed.