Chainlink TWAP report at timestamp
curl --request GET \
--url https://api.vatic.trading/api/v1/twap/reportimport requests
url = "https://api.vatic.trading/api/v1/twap/report"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/twap/report', 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/twap/report",
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/twap/report"
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/twap/report")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/twap/report")
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": "2026-08-01T17:00:00.000Z",
"beta": true,
"status": "testing",
"requestedTimestamp": 1785603300,
"requestedTimestampIso": "2026-08-01T16:55:00.000Z",
"asset": "btc",
"symbol": "btc/usd",
"windowSeconds": 30,
"value": "62872.542279128177442816",
"source": "chainlink_twap"
}Chainlink TWAP
TWAP at Timestamp
Beta endpoint returning the Chainlink TWAP report for an asset and 30s/60s lookback window at a requested timestamp.
GET
/
api
/
v1
/
twap
/
report
Chainlink TWAP report at timestamp
curl --request GET \
--url https://api.vatic.trading/api/v1/twap/reportimport requests
url = "https://api.vatic.trading/api/v1/twap/report"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/twap/report', 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/twap/report",
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/twap/report"
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/twap/report")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/twap/report")
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": "2026-08-01T17:00:00.000Z",
"beta": true,
"status": "testing",
"requestedTimestamp": 1785603300,
"requestedTimestampIso": "2026-08-01T16:55:00.000Z",
"asset": "btc",
"symbol": "btc/usd",
"windowSeconds": 30,
"value": "62872.542279128177442816",
"source": "chainlink_twap"
}Returns the Chainlink TWAP report nearest to a requested timestamp.
window defaults to 60 if omitted — this endpoint does not infer it from the market type. 5min markets used a 30-second window before 2026-08-14T00:00:00Z and a 60-second window from that date onward; 15min and 4hour are always 60 seconds. If you’re not sure which applies, use /api/v1/twap/resolve instead — it picks the correct window for you.
For a BTC 5m market that started at 1785603000 and ended at 1785603300 (dated 2026-08-01, so window=30 is correct here):
curl "https://api.vatic.trading/api/v1/twap/report?asset=btc&window=30×tamp=1785603300"
Query Parameters
Available options:
btc, eth, sol, xrp, hype, doge, bnb TWAP window in seconds.
Available options:
30, 60 Unix timestamp in seconds. For resolution tests, use the market end timestamp.
Example:
1785603300
Response
TWAP report for the requested timestamp
Was this page helpful?