Reveal one campaign match
Reveals one settled match the caller traded, which allocates its boxes, and returns the caller’s performance in it. The venue rejects a match that is not revealable (502).
Error shape. Minimal
{"error": "...", "code": "..."}(OrderSimpleErrorResponse). Rate limited at 60 requests/minute per user (bucketpredictfun-lootbox-item, shared by the one-match reveal and one-box open routes), fail-closed. Auth. API keys and delegations needtrade:execute(a cold venue session is minted by signing a login challenge with the user’s wallet) and thepredictfunplatform access flag.
curl --request POST \
--url https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.post(url, 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>'
}
};
fetch('https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal', 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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal"
req, _ := http.NewRequest("POST", 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.post("https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal")
.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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal")
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>'
response = http.request(request)
puts response.read_body{
"matchId": "<string>",
"performance": {
"revealedAt": "<string>",
"preMatchTradeCount": 123,
"inMatchTradeCount": 123,
"preMatchVolumeUsd": "<string>",
"inMatchVolumeUsd": "<string>",
"boxCounts": [
{
"boxTypeId": "<string>",
"revealedCount": 123
}
]
}
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Unauthorized"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}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.
Path Parameters
Predict.fun activity code, e.g. lol-worlds.
Predict.fun match id. Must match ^[A-Za-z0-9_-]{1,128}$.
^[A-Za-z0-9_-]{1,128}$Was this page helpful?
curl --request POST \
--url https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-Secret: <api-key>' \
--header 'X-Client-Id: <api-key>'import requests
url = "https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal"
headers = {
"X-Client-Id": "<api-key>",
"X-Api-Key": "<api-key>",
"X-Api-Secret": "<api-key>"
}
response = requests.post(url, 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>'
}
};
fetch('https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal', 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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal"
req, _ := http.NewRequest("POST", 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.post("https://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal")
.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://execution.kairos.trade/exchanges/predictfun/activities/{code}/matches/{match_id}/reveal")
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>'
response = http.request(request)
puts response.read_body{
"matchId": "<string>",
"performance": {
"revealedAt": "<string>",
"preMatchTradeCount": 123,
"inMatchTradeCount": 123,
"preMatchVolumeUsd": "<string>",
"inMatchVolumeUsd": "<string>",
"boxCounts": [
{
"boxTypeId": "<string>",
"revealedCount": 123
}
]
}
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Unauthorized"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}{
"error": "Insufficient scope",
"code": "<string>"
}
