Active window target prices
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/activeimport requests
url = "https://api.vatic.trading/api/v1/targets/active"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/active', 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/active",
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/active"
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/active")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/active")
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",
"results": [
{
"marketType": "5min",
"ok": true,
"windowStart": 1744027500,
"windowStartIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75
}
]
}{
"error": "<string>"
}Price Targets
Active Window Prices
Returns the target (opening) price for the current market window across one or more interval types. Prices come from Chainlink Data Streams (5min, 15min, 4hour) or Binance OHLCV (1hour, daily).
GET
/
api
/
v1
/
targets
/
active
Active window target prices
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/activeimport requests
url = "https://api.vatic.trading/api/v1/targets/active"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/active', 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/active",
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/active"
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/active")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/active")
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",
"results": [
{
"marketType": "5min",
"ok": true,
"windowStart": 1744027500,
"windowStartIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75
}
]
}{
"error": "<string>"
}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.
Was this page helpful?