Fetches historical crypto price data from Binance. 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: lowercase alphanumeric with no separators (e.g., btcusdt, ethusdt).
The currency pair symbol. Must be lowercase alphanumeric with no separators (e.g., btcusdt, ethusdt, solusdt, xrpusdt).
^[a-z0-9]+$"btcusdt"
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.
"eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9"
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.
"eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9"
Total number of prices returned in this response
10