Skip to main content
GET
/
crypto-prices
/
binance
Get Binance Crypto Prices
curl --request GET \
  --url https://api.domeapi.io/v1/crypto-prices/binance
import requests

url = "https://api.domeapi.io/v1/crypto-prices/binance"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.domeapi.io/v1/crypto-prices/binance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.domeapi.io/v1/crypto-prices/binance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.domeapi.io/v1/crypto-prices/binance"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.domeapi.io/v1/crypto-prices/binance")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.domeapi.io/v1/crypto-prices/binance")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "prices": [
    {
      "symbol": "btcusdt",
      "value": "67500.50",
      "timestamp": 1766130500000
    }
  ],
  "total": 1
}

Query Parameters

currency
string
required

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

Pattern: ^[a-z0-9]+$
Example:

"btcusdt"

start_time
integer

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

Example:

1766130000000

end_time
integer

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

Example:

1766131000000

limit
integer
default:100

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

Required range: 1 <= x <= 100
Example:

10

pagination_key
string

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

Example:

"eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9"

Response

Crypto prices response

prices
object[]
required

Array of crypto price data points

pagination_key
string

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

Example:

"eyJpZCI6IlBSSUNFI2J0Y3VzZHQiLCJ0aW1lc3RhbXAiOjE3NjYxMzEwMDAwMDB9"

total
integer

Total number of prices returned in this response

Example:

10