Get full market metadata (rules, images, contract spec)
Returns the full metadata document for one market. Resolution order: (1) a fast cached-metadata path — for Polymarket, a cache hit derives status/category/images from the cached upstream payload; (2) on a miss, falls back to a live provider-API fetch (Kalshi ticker + event metadata for images; Polymarket; Opinion; predict.fun) — this covers markets too new to be indexed yet (e.g. short-lived 15-minute crypto markets); (3) if the cache hit is non-null but carries empty resolution_rules (both primary and secondary blank), an extra provider-API call backfills resolution_rules (and description if also empty) without discarding the rest of the cached document. Only the cached-metadata path populates condition_id/event_id/contract.settlement_ts — the live provider-API fallback leaves those null. Finally, for polymarket/predictfun, a best-effort liquidity-rewards enrichment mutates extra in place (never blocks or fails the response): Polymarket sets extra.clobRewards ([{rewardsDailyRate}] or []), extra.rewardsMaxSpread, extra.rewardsMinSize; predict.fun sets extra.rewards.current (an active reward-window object, or null). 404 only if no source has the market at all.
curl --request GET \
--url https://data.kairos.trade/markets/metadata \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://data.kairos.trade/markets/metadata"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://data.kairos.trade/markets/metadata', 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/metadata",
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>",
"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"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/markets/metadata"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<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://data.kairos.trade/markets/metadata")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ticker": "<string>",
"provider": "<string>",
"name": "<string>",
"description": "<string>",
"resolution_rules": {
"primary": "<string>",
"secondary": "<string>",
"source": "<string>"
},
"contract": {
"tick_size": 123,
"min_price": 123,
"max_price": 123,
"lot_size": 123,
"quote_currency": "<string>",
"settlement_ts": "<string>",
"expires_at": "<string>"
},
"images": {
"icon": "<string>",
"banner": "<string>"
},
"ctf_neg_risk": false,
"extra": {},
"active": true,
"external_url": "<string>",
"condition_id": "<string>",
"event_id": "<string>"
}{
"detail": "<string>"
}{
"detail": "Not authenticated"
}{
"detail": "Invite required"
}{
"detail": "Market not found: KXFOO-99"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Metadata fetch failed"
}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.
Query Parameters
Market ticker/ID.
kalshi or polymarket (also accepts any other active provider — e.g. predictfun, opinion — via the API fallback path).
Response
Full market metadata.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Raw upstream/provider payload, plus router-side enrichment: for polymarket, clobRewards ([{rewardsDailyRate}] or []), rewardsMaxSpread, rewardsMinSize; for predictfun, rewards.current (active reward-window object or null).
False if the market is delisted/resolved and not tradable.
Only populated for some response paths; null when the response comes from a provider-API fallback.
Only populated for some response paths.
Was this page helpful?
curl --request GET \
--url https://data.kairos.trade/markets/metadata \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://data.kairos.trade/markets/metadata"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Client-Id': '<api-key>',
'X-Api-Key': '<api-key>',
'X-Api-Secret': '<api-key>'
}
};
fetch('https://data.kairos.trade/markets/metadata', 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/metadata",
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>",
"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"
"net/http"
"io"
)
func main() {
url := "https://data.kairos.trade/markets/metadata"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Client-Id", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Api-Secret", "<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://data.kairos.trade/markets/metadata")
.header("X-Client-Id", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-Api-Secret", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data.kairos.trade/markets/metadata")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Client-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-Api-Secret"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"ticker": "<string>",
"provider": "<string>",
"name": "<string>",
"description": "<string>",
"resolution_rules": {
"primary": "<string>",
"secondary": "<string>",
"source": "<string>"
},
"contract": {
"tick_size": 123,
"min_price": 123,
"max_price": 123,
"lot_size": 123,
"quote_currency": "<string>",
"settlement_ts": "<string>",
"expires_at": "<string>"
},
"images": {
"icon": "<string>",
"banner": "<string>"
},
"ctf_neg_risk": false,
"extra": {},
"active": true,
"external_url": "<string>",
"condition_id": "<string>",
"event_id": "<string>"
}{
"detail": "<string>"
}{
"detail": "Not authenticated"
}{
"detail": "Invite required"
}{
"detail": "Market not found: KXFOO-99"
}{
"detail": [
{}
]
}{
"error": "Rate limit exceeded: 100 per 1 minute"
}{
"detail": "Metadata fetch failed"
}
