Price to beat
curl --request GET \
--url https://api.polynode.dev/v1/crypto/price \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/crypto/price"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v1/crypto/price', 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.polynode.dev/v1/crypto/price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.polynode.dev/v1/crypto/price"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.polynode.dev/v1/crypto/price")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/crypto/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"openPrice": 66285.01,
"closePrice": 66238.61,
"timestamp": 1774674466843,
"completed": false,
"incomplete": true,
"cached": false
}
Crypto
Price to Beat
Open and close price for a specific crypto market window.
GET
/
v1
/
crypto
/
price
Price to beat
curl --request GET \
--url https://api.polynode.dev/v1/crypto/price \
--header 'x-api-key: <api-key>'import requests
url = "https://api.polynode.dev/v1/crypto/price"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.polynode.dev/v1/crypto/price', 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.polynode.dev/v1/crypto/price",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.polynode.dev/v1/crypto/price"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.polynode.dev/v1/crypto/price")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.polynode.dev/v1/crypto/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"openPrice": 66285.01,
"closePrice": 66238.61,
"timestamp": 1774674466843,
"completed": false,
"incomplete": true,
"cached": false
}
Returns the opening and current closing price for a crypto market window. This is the “price to beat” for short-form markets.
The
openPrice is the Chainlink oracle price at market open. The closePrice updates in real time until the window completes (completed: true).
{
"openPrice": 66285.01,
"closePrice": 66238.61,
"timestamp": 1774674466843,
"completed": false,
"incomplete": true,
"cached": false
}
Real-time. No cache.
closePrice is locked in the instant a window ends — no waiting. The window parameter is a Unix epoch timestamp. Get window timestamps from the /v1/crypto/active endpoint.Authorizations
Query Parameters
Asset symbol
Available options:
BTC, ETH, SOL, BNB, XRP, DOGE, HYPE Unix epoch timestamp of the market window start
Market interval variant
Available options:
5m, 15m, 1h, 4h Response
200 - application/json
Price data for the market window
The response is of type object.

