Get Binance Crypto Prices
Changed onFetches 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 (limit 1). All timestamps are in Unix milliseconds.
Currency Format: Lowercase, no separators (e.g., btcusdt, ethusdt, solusdt, xrpusdt)
Example Request (Latest Price):
curl 'https://api.domeapi.io/v1/crypto-prices/binance?currency=btcusdt' \
-H 'Authorization: Bearer YOUR_TOKEN'
Example Request (Time Range):
curl 'https://api.domeapi.io/v1/crypto-prices/binance?currency=btcusdt&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 lowercase alphanumeric with no separators (e.g., btcusdt, ethusdt, solusdt, xrpusdt).
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": "btcusdt",
"timestamp": 1766130500000
}
],
"pagination_key": "eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9",
"total": 10
}Changes
- breaking
added the new required
queryrequest parametercurrency - info
api operation id
getBinanceCryptoPriceswas 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