Markets
Fetch market details (name/category/status/ids)
Looks up market details for the given (market_id, provider_id) pairs. The market_id in the request is matched against market_id OR condition_id OR token_id — any identifier works. Markets with an empty/missing market_id in the request are silently dropped before querying. Unmatched markets are simply absent from the response — there is no found: false sentinel here (contrast with /markets/metadata/batch). Hard cap: 500 markets per request.
POST
/
markets
/
details
Fetch market details (name/category/status/ids)
curl --request POST \
--url https://data.kairos.trade/markets/details \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"markets": [
{
"market_id": "KXBTC15M-26JUL221600-00",
"provider_id": 1
},
{
"market_id": "0x1234abcd...ef",
"provider_id": 2
}
]
}
'import requests
url = "https://data.kairos.trade/markets/details"
payload = { "markets": [
{
"market_id": "KXBTC15M-26JUL221600-00",
"provider_id": 1
},
{
"market_id": "0x1234abcd...ef",
"provider_id": 2
}
] }
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
markets: [
{market_id: 'KXBTC15M-26JUL221600-00', provider_id: 1},
{market_id: '0x1234abcd...ef', provider_id: 2}
]
})
};
fetch('https://data.kairos.trade/markets/details', 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://data.kairos.trade/markets/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'markets' => [
[
'market_id' => 'KXBTC15M-26JUL221600-00',
'provider_id' => 1
],
[
'market_id' => '0x1234abcd...ef',
'provider_id' => 2
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/markets/details"
payload := strings.NewReader("{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://data.kairos.trade/markets/details")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"markets": [
{
"market_id": "<string>",
"provider_id": 123,
"event_id": "<string>",
"name": "<string>",
"category": "<string>",
"status": "<string>",
"condition_id": "<string>",
"token_id": "<string>",
"token_ids": [
"<string>"
],
"outcomes": [
"<string>"
]
}
]
}{
"detail": "<string>"
}{
"detail": "Not authenticated"
}{
"detail": "Invite required"
}{
"detail": "Request body too large"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Failed to fetch details"
}Authorizations
Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.
64-char hex API key.
64-char hex API secret.
Body
application/json
Show child attributes
Show child attributes
Response
Matched market details (unmatched inputs are simply omitted).
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Fetch market details (name/category/status/ids)
curl --request POST \
--url https://data.kairos.trade/markets/details \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"markets": [
{
"market_id": "KXBTC15M-26JUL221600-00",
"provider_id": 1
},
{
"market_id": "0x1234abcd...ef",
"provider_id": 2
}
]
}
'import requests
url = "https://data.kairos.trade/markets/details"
payload = { "markets": [
{
"market_id": "KXBTC15M-26JUL221600-00",
"provider_id": 1
},
{
"market_id": "0x1234abcd...ef",
"provider_id": 2
}
] }
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
markets: [
{market_id: 'KXBTC15M-26JUL221600-00', provider_id: 1},
{market_id: '0x1234abcd...ef', provider_id: 2}
]
})
};
fetch('https://data.kairos.trade/markets/details', 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://data.kairos.trade/markets/details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'markets' => [
[
'market_id' => 'KXBTC15M-26JUL221600-00',
'provider_id' => 1
],
[
'market_id' => '0x1234abcd...ef',
'provider_id' => 2
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-Secret: <api-key>",
"X-Client-Id: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/markets/details"
payload := strings.NewReader("{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://data.kairos.trade/markets/details")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/details")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"markets\": [\n {\n \"market_id\": \"KXBTC15M-26JUL221600-00\",\n \"provider_id\": 1\n },\n {\n \"market_id\": \"0x1234abcd...ef\",\n \"provider_id\": 2\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"markets": [
{
"market_id": "<string>",
"provider_id": 123,
"event_id": "<string>",
"name": "<string>",
"category": "<string>",
"status": "<string>",
"condition_id": "<string>",
"token_id": "<string>",
"token_ids": [
"<string>"
],
"outcomes": [
"<string>"
]
}
]
}{
"detail": "<string>"
}{
"detail": "Not authenticated"
}{
"detail": "Invite required"
}{
"detail": "Request body too large"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Failed to fetch details"
}
