Fetches 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. All timestamps are in Unix milliseconds. Currency format: slash-separated (e.g., btc/usd, eth/usd).
The currency pair symbol. Must be slash-separated (e.g., btc/usd, eth/usd, sol/usd, xrp/usd).
"btc/usd"
Start time in Unix timestamp (milliseconds). If not provided along with end_time, returns the most recent price (limit 1).
1766130000000
End time in Unix timestamp (milliseconds). If not provided along with start_time, returns the most recent price (limit 1).
1766131000000
Maximum number of prices to return (default: 100, max: 100). When no time range is provided, limit is automatically set to 1.
1 <= x <= 10010
Pagination key (base64-encoded) to fetch the next page of results. Returned in the response when more data is available.
"eyJpZCI6IkNIQUlOTElOSyNidGMvdXNkIiwidGltZXN0YW1wIjoxNzY2MTMxMDAwMDAwfQ=="
Crypto prices response
Array of crypto price data points
Pagination key (base64-encoded) to fetch the next page of results. Only present when more data is available.
"eyJpZCI6IkNIQUlOTElOSyNidGMvdXNkIiwidGltZXN0YW1wIjoxNzY2MTMxMDAwMDAwfQ=="
Total number of prices returned in this response
10