Read crypto index prices
curl --request GET \
--url https://api.darvas.app/v1/crypto/index/snapshot \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/index/snapshot"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/index/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"index": null,
"quote_currency": "USD",
"indices": [
{
"index": "BTC-USD",
"price": 97811.4,
"open_24h": 96520.1,
"high_24h": 98240,
"low_24h": 95910.2,
"change_24h_percent": 1.34,
"open_utc_day": 97020.5,
"change_utc_day_percent": 0.82,
"time": "2026-11-28T12:00:00.000Z",
"time_milliseconds": 1795867200000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Crypto Markets
Live Composite Crypto Spot Index Snapshot API
Read real-time composite crypto spot index prices and component spreads for BTC-USD, ETH-USD and major digital assets in one low-latency call.
Read crypto index prices
curl --request GET \
--url https://api.darvas.app/v1/crypto/index/snapshot \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.darvas.app/v1/crypto/index/snapshot"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.darvas.app/v1/crypto/index/snapshot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"index": null,
"quote_currency": "USD",
"indices": [
{
"index": "BTC-USD",
"price": 97811.4,
"open_24h": 96520.1,
"high_24h": 98240,
"low_24h": 95910.2,
"change_24h_percent": 1.34,
"open_utc_day": 97020.5,
"change_utc_day_percent": 0.82,
"time": "2026-11-28T12:00:00.000Z",
"time_milliseconds": 1795867200000
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
This endpoint returns the latest price, rolling 24-hour range, and percentage changes over both 24 hours and the current UTC day for one composite spot index or every index denominated in a quote currency. Results return sorted alphabetically byindex in indices.
| Coverage | Details |
|---|---|
| Single index | Pass index as BASE-QUOTE in any case, such as BTC-USD or SOL-USDT; unknown names return 404 |
| Quote currency sweep | Pass quote_currency (USD, USDT, USDC or BTC) to fetch every composite index in that quote |
| Default behavior | Omitting both index and quote_currency returns every USD composite spot index |
| MCP tool | get_crypto_index_snapshot on the data API MCP server |
Snapshot fields and reference windows
Each entry inindices provides two separate return windows from the same live quote:
- Rolling 24-hour window.
open_24h,high_24h,low_24h, andchange_24h_percentmeasure performance against the index level 24 hours ago (rounded to two decimal places, ornullifopen_24his zero). - UTC calendar day window.
open_utc_dayandchange_utc_day_percentmeasure performance since00:00:00ZUTC so you can align index moves with UTC daily candles. - Timestamps and echoed filters. Each row includes
time(ISO 8601 UTC) andtime_milliseconds. Top-levelindexandquote_currencyecho the active filter (nullwhen not applied). - Related endpoints. For historical composite index OHLC candles, see
/crypto/index/prices. For trade-volume-ranked exchange pairs, see/crypto/prices/snapshot/market. For live contract mark price versus spot index basis, see/crypto/derivatives/snapshot.
Examples
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
resp = requests.get(
"https://api.darvas.app/v1/crypto/index/snapshot",
headers=headers,
params={"quote_currency": "USD"},
).json()
movers = sorted(resp["indices"], key=lambda row: row["change_24h_percent"] or 0, reverse=True)[:10]
for row in movers:
print(row["index"], "price:", row["price"], "24h %:", row["change_24h_percent"], "UTC day %:", row["change_utc_day_percent"])
# Latest composite spot index snapshot for BTC-USD
curl -H "X-API-KEY: $DARVAS_API_KEY" \
"https://api.darvas.app/v1/crypto/index/snapshot?index=BTC-USD"
Authorizations
apiKeybearerKey
Query Parameters
Response
Read crypto index prices: one page.
The answer of GET /crypto/index/snapshot.