Get Chainlink Crypto Prices
Changed onFetches historical crypto price data from Chainlink. Returns price data for a specific currency pair over an optional time range. When no time range is provided, returns the most recent price (limit 1). All timestamps are in Unix milliseconds.
Currency Format: Slash-separated (e.g., btc/usd, eth/usd, sol/usd, xrp/usd)
Example Request (Latest Price):
curl 'https://api.domeapi.io/v1/crypto-prices/chainlink?currency=btc/usd' \
-H 'Authorization: Bearer YOUR_TOKEN'
Example Request (Time Range):
curl 'https://api.domeapi.io/v1/crypto-prices/chainlink?currency=btc/usd&start_time=1766130000000&end_time=1766131000000&limit=10' \
-H 'Authorization: Bearer YOUR_TOKEN'
Request
- Base URLhttps://api.domeapi.io/v1
- Authnone declared
Query parameters
The currency pair symbol. Must be slash-separated (e.g., btc/usd, eth/usd, sol/usd, xrp/usd).
Start time in Unix timestamp (milliseconds). If not provided along with end_time, returns the most recent price (limit 1).
End time in Unix timestamp (milliseconds). If not provided along with start_time, returns the most recent price (limit 1).
Maximum number of prices to return (default: 100, max: 100). When no time range is provided, limit is automatically set to 1.
Pagination key (base64-encoded) to fetch the next page of results. Returned in the response when more data is available.
Response
Crypto prices response
Example response
{
"prices": [
{
"symbol": "btc/usd",
"timestamp": 1766130500000
}
],
"pagination_key": "eyJpZCI6IkNIQUlOTElOSyNidGMvdXNkIiwidGltZXN0YW1wIjoxNzY2MTMxMDAwMDAwfQ==",
"total": 10
}Changes
- breaking
added the new required
queryrequest parametercurrency - info
api operation id
getChainlinkCryptoPriceswas added - info
added the new optional
queryrequest parameterend_time - info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameterpagination_key - info
added the new optional
queryrequest parameterstart_time - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the success response with the status
- breaking