Get Binance Crypto Prices

Changed on

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 (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'
get/crypto-prices/binance

Request

  • Base URL
    https://api.domeapi.io/v1
  • Auth
    none declared

Query parameters

currencystring required
Example:btcusdt

The currency pair symbol. Must be lowercase alphanumeric with no separators (e.g., btcusdt, ethusdt, solusdt, xrpusdt).

start_timeinteger
Example:1766130000000

Start time in Unix timestamp (milliseconds). If not provided along with end_time, returns the most recent price (limit 1).

end_timeinteger
Example:1766131000000

End time in Unix timestamp (milliseconds). If not provided along with start_time, returns the most recent price (limit 1).

limitinteger
Example:10

Maximum number of prices to return (default: 100, max: 100). When no time range is provided, limit is automatically set to 1.

pagination_keystring
Example:eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9

Pagination key (base64-encoded) to fetch the next page of results. Returned in the response when more data is available.

Response

Crypto prices response

pagination_keystring

Pagination key (base64-encoded) to fetch the next page of results. Only present when more data is available.

totalinteger

Total number of prices returned in this response

Example response

{
  "prices": [
    {
      "symbol": "btcusdt",
      "timestamp": 1766130500000
    }
  ],
  "pagination_key": "eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9",
  "total": 10
}

Changes

    • breaking

      added the new required query request parameter currency

    • info

      api operation id getBinanceCryptoPrices was added

    • info

      added the new optional query request parameter end_time

    • info

      added the new optional query request parameter limit

    • info

      added the new optional query request parameter pagination_key

    • info

      added the new optional query request parameter start_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