Price by market slug
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/slug/{slug}import requests
url = "https://api.vatic.trading/api/v1/targets/slug/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/slug/{slug}', 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/slug/{slug}",
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/slug/{slug}"
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/slug/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/slug/{slug}")
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",
"slug": "btc-updown-5m-1744027500",
"asset": "btc",
"marketType": "5min",
"windowStart": 1744027500,
"windowStartIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75
}Price Targets
Price by Market Slug
Resolves the asset, market type, and window start from a Polymarket event slug and returns the target price. Supports slug formats like btc-updown-5m-{ts}, bitcoin-up-or-down-april-7-12-et, and bitcoin-up-or-down-on-april-7.
GET
/
api
/
v1
/
targets
/
slug
/
{slug}
Price by market slug
curl --request GET \
--url https://api.vatic.trading/api/v1/targets/slug/{slug}import requests
url = "https://api.vatic.trading/api/v1/targets/slug/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vatic.trading/api/v1/targets/slug/{slug}', 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/slug/{slug}",
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/slug/{slug}"
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/slug/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vatic.trading/api/v1/targets/slug/{slug}")
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",
"slug": "btc-updown-5m-1744027500",
"asset": "btc",
"marketType": "5min",
"windowStart": 1744027500,
"windowStartIso": "2025-04-07T12:05:00.000Z",
"source": "chainlink",
"price": 82450.75
}Path Parameters
Polymarket event slug.
Example:
"btc-updown-5m-1744027500"
Response
Price for the resolved market
Was this page helpful?
⌘I