Batch fetch events by id
curl --request GET \
--url https://prediction-market-api.solanatracker.io/v1/events/batch \
--header 'x-api-key: <api-key>'import requests
url = "https://prediction-market-api.solanatracker.io/v1/events/batch"
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://prediction-market-api.solanatracker.io/v1/events/batch', 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://prediction-market-api.solanatracker.io/v1/events/batch",
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://prediction-market-api.solanatracker.io/v1/events/batch"
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://prediction-market-api.solanatracker.io/v1/events/batch")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prediction-market-api.solanatracker.io/v1/events/batch")
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{
"notFound": [
"<string>"
],
"results": [
{
"requestedId": "<string>",
"event": {
"id": "<string>",
"marketCount": 1,
"title": "<string>",
"category": "<string>",
"comboEnabled": true,
"comboGroups": [
{
"id": "<string>",
"label": "<string>",
"lines": [
{
"marketId": "<string>",
"marketType": "<string>",
"selections": [
{
"label": "<string>",
"outcomeIndex": 1,
"price": 123,
"selectable": true,
"tokenId": "<string>"
}
],
"status": "<string>",
"title": "<string>",
"line": 123
}
],
"section": "<string>",
"period": "<string>"
}
],
"createdAt": "<string>",
"cryptoUpDown": {
"asset": "<string>",
"interval": "<string>",
"symbol": "<string>",
"variant": "<string>",
"finalPrice": 123,
"priceToBeat": 123,
"resolutionSource": "<string>",
"result": "<string>",
"seriesSlug": "<string>",
"seriesTitle": "<string>",
"windowEnd": "<string>",
"windowStart": "<string>"
},
"description": "<string>",
"endDate": "<string>",
"icon": "<string>",
"image": "<string>",
"markets": [
{
"hasDepth": true,
"id": "<string>",
"isTradable": true,
"outcomes": [
{
"label": "<string>",
"price": 123
}
],
"slug": "<string>",
"status": "<string>",
"title": "<string>",
"volume": 123,
"category": "<string>",
"clobTokenIds": [
"<string>"
],
"closeDate": "<string>",
"collectionId": "<string>",
"comboEligible": true,
"comboGroup": "<string>",
"createdAt": "<string>",
"description": "<string>",
"eventId": "<string>",
"eventSlug": "<string>",
"eventTicker": "<string>",
"eventTitle": "<string>",
"gammaMarketId": "<string>",
"groupItemTitle": "<string>",
"icon": "<string>",
"image": "<string>",
"legCount": 1,
"legs": [
{
"label": "<string>",
"eventDate": "<string>",
"exclusionGroup": "<string>",
"lifecycleStatus": "<string>",
"officialLegId": "<string>",
"positionId": "<string>",
"sport": "<string>",
"underlyingMarketId": "<string>",
"underlyingTitle": "<string>"
}
],
"line": 123,
"liquidity": 123,
"materializationState": "<string>",
"openInterest": 1,
"outcomeIndex": 1,
"outcomeLabel": "<string>",
"parentEventUrl": "<string>",
"rawTitle": "<string>",
"seriesTicker": "<string>",
"seriesTitle": "<string>",
"settlementRule": "<string>",
"sportsMarketType": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"tradeCount24h": 1,
"url": "<string>",
"volume24h": 123
}
],
"negRisk": true,
"openInterest": 123,
"resolutionSource": "<string>",
"slug": "<string>",
"startDate": "<string>",
"tags": "<unknown>",
"ticker": "<string>",
"updatedAt": "<string>",
"url": "<string>",
"volume": 123,
"volume24h": 123
}
}
]
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}Events
Batch fetch events by id
GET
/
v1
/
events
/
batch
Batch fetch events by id
curl --request GET \
--url https://prediction-market-api.solanatracker.io/v1/events/batch \
--header 'x-api-key: <api-key>'import requests
url = "https://prediction-market-api.solanatracker.io/v1/events/batch"
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://prediction-market-api.solanatracker.io/v1/events/batch', 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://prediction-market-api.solanatracker.io/v1/events/batch",
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://prediction-market-api.solanatracker.io/v1/events/batch"
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://prediction-market-api.solanatracker.io/v1/events/batch")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prediction-market-api.solanatracker.io/v1/events/batch")
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{
"notFound": [
"<string>"
],
"results": [
{
"requestedId": "<string>",
"event": {
"id": "<string>",
"marketCount": 1,
"title": "<string>",
"category": "<string>",
"comboEnabled": true,
"comboGroups": [
{
"id": "<string>",
"label": "<string>",
"lines": [
{
"marketId": "<string>",
"marketType": "<string>",
"selections": [
{
"label": "<string>",
"outcomeIndex": 1,
"price": 123,
"selectable": true,
"tokenId": "<string>"
}
],
"status": "<string>",
"title": "<string>",
"line": 123
}
],
"section": "<string>",
"period": "<string>"
}
],
"createdAt": "<string>",
"cryptoUpDown": {
"asset": "<string>",
"interval": "<string>",
"symbol": "<string>",
"variant": "<string>",
"finalPrice": 123,
"priceToBeat": 123,
"resolutionSource": "<string>",
"result": "<string>",
"seriesSlug": "<string>",
"seriesTitle": "<string>",
"windowEnd": "<string>",
"windowStart": "<string>"
},
"description": "<string>",
"endDate": "<string>",
"icon": "<string>",
"image": "<string>",
"markets": [
{
"hasDepth": true,
"id": "<string>",
"isTradable": true,
"outcomes": [
{
"label": "<string>",
"price": 123
}
],
"slug": "<string>",
"status": "<string>",
"title": "<string>",
"volume": 123,
"category": "<string>",
"clobTokenIds": [
"<string>"
],
"closeDate": "<string>",
"collectionId": "<string>",
"comboEligible": true,
"comboGroup": "<string>",
"createdAt": "<string>",
"description": "<string>",
"eventId": "<string>",
"eventSlug": "<string>",
"eventTicker": "<string>",
"eventTitle": "<string>",
"gammaMarketId": "<string>",
"groupItemTitle": "<string>",
"icon": "<string>",
"image": "<string>",
"legCount": 1,
"legs": [
{
"label": "<string>",
"eventDate": "<string>",
"exclusionGroup": "<string>",
"lifecycleStatus": "<string>",
"officialLegId": "<string>",
"positionId": "<string>",
"sport": "<string>",
"underlyingMarketId": "<string>",
"underlyingTitle": "<string>"
}
],
"line": 123,
"liquidity": 123,
"materializationState": "<string>",
"openInterest": 1,
"outcomeIndex": 1,
"outcomeLabel": "<string>",
"parentEventUrl": "<string>",
"rawTitle": "<string>",
"seriesTicker": "<string>",
"seriesTitle": "<string>",
"settlementRule": "<string>",
"sportsMarketType": "<string>",
"tags": [
"<string>"
],
"ticker": "<string>",
"tradeCount24h": 1,
"url": "<string>",
"volume24h": 123
}
],
"negRisk": true,
"openInterest": 123,
"resolutionSource": "<string>",
"slug": "<string>",
"startDate": "<string>",
"tags": "<unknown>",
"ticker": "<string>",
"updatedAt": "<string>",
"url": "<string>",
"volume": 123,
"volume24h": 123
}
}
]
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}{
"code": 1,
"error": "<string>",
"errorCode": "<string>"
}Authorizations
Solana Tracker Data API key
Query Parameters
Required comma-separated event ids (Kalshi event_ticker, Polymarket id, POLY-…, or slug)
kalshi, polymarket, or poly
Was this page helpful?
⌘I