Price at a specific timestamp
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/timestampimport requests
url = "https://api.vatic.trading/api/v1/targets/timestamp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/timestamp', 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.vatic.trading/api/v1/targets/timestamp",
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.vatic.trading/api/v1/targets/timestamp"
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.vatic.trading/api/v1/targets/timestamp")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/timestamp")
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{
"now": "2025-04-07T12:00:00.000Z",
"asset": "btc",
"marketType": "5min",
"provider": "chainlink",
"requestedTimestamp": 1744027500,
"requestedTimestampIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75,
"_cache": {
"hit": false,
"windowStart": 1744027500,
"ageSec": 3
}
}Price Targets
Price at Timestamp
Returns the target price for the market window that contains the given Unix timestamp. Retries up to 4 times with 1s delay to absorb the ~1–5s publish lag at window boundaries.
GET
/
api
/
v1
/
targets
/
timestamp
Price at a specific timestamp
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/timestampimport requests
url = "https://api.vatic.trading/api/v1/targets/timestamp"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/timestamp', 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.vatic.trading/api/v1/targets/timestamp",
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.vatic.trading/api/v1/targets/timestamp"
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.vatic.trading/api/v1/targets/timestamp")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/timestamp")
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{
"now": "2025-04-07T12:00:00.000Z",
"asset": "btc",
"marketType": "5min",
"provider": "chainlink",
"requestedTimestamp": 1744027500,
"requestedTimestampIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75,
"_cache": {
"hit": false,
"windowStart": 1744027500,
"ageSec": 3
}
}Building an algorithmic trading bot? For instant, real-time delivery of target prices the moment each window opens — with no polling and no rate limits — use the WebSocket API instead. Connect once, subscribe to your assets, and receive prices pushed directly to you as each market window starts.
Query Parameters
Available options:
btc, eth, sol, xrp, hype, doge, bnb Market interval type.
Available options:
5min, 15min, 1hour, 4hour, daily Unix timestamp (seconds). Any timestamp within the target window works.
Example:
1744027500
Response
Price for the requested window
Was this page helpful?