api/v2/multi-tickers - Dash

This endpoint returns fiat rate tickers for a comma-separated list of Unix timestamps. Work and payload grow with the number of timestamps requested.

Parameters

ParameterTypeLocationRequiredDescription
timestampstringqueryYesComma-separated Unix timestamps
currencystringqueryNoFiat currency code to return
tokenstringqueryNoToken symbol or contract key for token-specific rates

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/multi-tickers/?timestamp=1789600000,1789690000&currency=usd')

print(response.json())

Response

json[
    {
        "ts": 1789603200,
        "rates": {
            "usd": 56.019833
        }
    },
    {
        "ts": 1789690200,
        "rates": {
            "usd": 61.046593
        }
    }
]

Response Parameters

FieldTypeDescription
tsintegerTimestamp of the returned rate entry
ratesobjectMap of currency codes to rates for the timestamp

Use Cases

  • Batch Valuation: Fetch rates for many points in one request
  • History Backfill: Attach fiat values across a transaction history at once
  • Charting: Build a fiat price series from multiple timestamps
  • Reporting: Value a period of activity with fewer requests

Error Handling

HTTP StatusMessageDescription
400Bad requestA query parameter has an invalid value
404Not foundNo rate data exists for the requested query
500Internal errorThe indexer failed to read rate data