Resolve venue-specific identifiers to canonical Kairos market ids
Maps up to 200 venue-specific identifiers — market-scoped (a venue’s market id, ticker, or condition-like identifier) or outcome-scoped (an outcome/token id) — onto Kairos’s canonical market_id for that provider. Requests are grouped by (provider, scope) for efficient batch resolution. Not cached (Cache-Control: no-store).
Rate-limit bucket: LIGHT, but with a distinct cost model from the other batch endpoints — the request is admitted at a base cost of 1 unit, then the service charges the FULL request-item count (len(requests) - 1 additional units) as a deferred charge immediately after the body is parsed and size-validated, before any per-item validation runs. This means a batch of N requests always costs N light units even if individual items subsequently fail validation (e.g. a bad scope) and the call returns 400.
Unresolved identifiers are reported with found: false and market_id: null rather than causing the whole call to fail.
Id spaces. scope: market matches the venue’s market identity — a Kalshi ticker, a Polymarket Gamma numeric market id, or a 0x… condition id. scope: outcome matches an on-chain outcome/token id only (the decimal ERC1155 string), never a market id; submitting a market id with scope: outcome returns found: false. Resolution always returns the canonical market_id; it never returns outcome token ids. To go from a market discovered via the Data API’s /search/markets to its outcome tokens, read token_ids/outcomes on the search result (or call the Data API’s POST /markets/details), then feed those token ids to /v1/synthetics and /v1/candles.
The request body is capped at 1 MiB.
curl --request POST \
--url https://md.kairos.trade/v1/market-identifiers/resolve \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"requests": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market"
}
]
}
'import requests
url = "https://md.kairos.trade/v1/market-identifiers/resolve"
payload = { "requests": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market"
}
] }
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({
requests: [
{
provider: 'polymarket',
identifier: '18812649149814341758733697580460697418474693998558159483117',
scope: 'outcome'
},
{provider: 'kalshi', identifier: 'KXBTC-26JUL', scope: 'market'}
]
})
};
fetch('https://md.kairos.trade/v1/market-identifiers/resolve', 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://md.kairos.trade/v1/market-identifiers/resolve",
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([
'requests' => [
[
'provider' => 'polymarket',
'identifier' => '18812649149814341758733697580460697418474693998558159483117',
'scope' => 'outcome'
],
[
'provider' => 'kalshi',
'identifier' => 'KXBTC-26JUL',
'scope' => 'market'
]
]
]),
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://md.kairos.trade/v1/market-identifiers/resolve"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\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://md.kairos.trade/v1/market-identifiers/resolve")
.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 \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/market-identifiers/resolve")
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 \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome",
"found": true,
"market_id": "1897040"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market",
"found": true,
"market_id": "KXBTC-26JUL"
}
]
}{
"error": {
"code": "invalid_request",
"message": "requests[0].scope must be market or outcome"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "not_found",
"message": "market not found"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "internal",
"message": "market identifier response encoding failed"
}
}{
"error": {
"code": "upstream",
"message": "metadata cache request failed"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}Authorizations
Credential client id (kairos_ck_...). Must be sent together with X-Api-Key and X-Api-Secret.
64-char hex API key. Must be sent together with X-Client-Id and X-Api-Secret.
64-char hex API secret. Must be sent together with X-Client-Id and X-Api-Key.
Body
1 - 200 elementsShow child attributes
Show child attributes
Response
Per-item resolution results, in request order.
Same length and order as the request's requests array.
Show child attributes
Show child attributes
Was this page helpful?
curl --request POST \
--url https://md.kairos.trade/v1/market-identifiers/resolve \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '
{
"requests": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market"
}
]
}
'import requests
url = "https://md.kairos.trade/v1/market-identifiers/resolve"
payload = { "requests": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market"
}
] }
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({
requests: [
{
provider: 'polymarket',
identifier: '18812649149814341758733697580460697418474693998558159483117',
scope: 'outcome'
},
{provider: 'kalshi', identifier: 'KXBTC-26JUL', scope: 'market'}
]
})
};
fetch('https://md.kairos.trade/v1/market-identifiers/resolve', 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://md.kairos.trade/v1/market-identifiers/resolve",
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([
'requests' => [
[
'provider' => 'polymarket',
'identifier' => '18812649149814341758733697580460697418474693998558159483117',
'scope' => 'outcome'
],
[
'provider' => 'kalshi',
'identifier' => 'KXBTC-26JUL',
'scope' => 'market'
]
]
]),
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://md.kairos.trade/v1/market-identifiers/resolve"
payload := strings.NewReader("{\n \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\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://md.kairos.trade/v1/market-identifiers/resolve")
.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 \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://md.kairos.trade/v1/market-identifiers/resolve")
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 \"requests\": [\n {\n \"provider\": \"polymarket\",\n \"identifier\": \"18812649149814341758733697580460697418474693998558159483117\",\n \"scope\": \"outcome\"\n },\n {\n \"provider\": \"kalshi\",\n \"identifier\": \"KXBTC-26JUL\",\n \"scope\": \"market\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"results": [
{
"provider": "polymarket",
"identifier": "18812649149814341758733697580460697418474693998558159483117",
"scope": "outcome",
"found": true,
"market_id": "1897040"
},
{
"provider": "kalshi",
"identifier": "KXBTC-26JUL",
"scope": "market",
"found": true,
"market_id": "KXBTC-26JUL"
}
]
}{
"error": {
"code": "invalid_request",
"message": "requests[0].scope must be market or outcome"
}
}{
"error": {
"code": "unauthorized",
"message": "valid X-Client-Id, X-Api-Key, and X-Api-Secret headers are required"
}
}{
"error": {
"code": "ip_not_whitelisted",
"message": "source IP not in credential whitelist"
}
}{
"error": {
"code": "not_found",
"message": "market not found"
}
}{
"error": {
"code": "rate_limited",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "internal",
"message": "market identifier response encoding failed"
}
}{
"error": {
"code": "upstream",
"message": "metadata cache request failed"
}
}{
"error": {
"code": "invalid_request",
"message": "market_ids exceeds maximum 200"
}
}
