Skip to main content
POST
/
v1
/
trades
/
report
Report a trade for consensus
curl --request POST \
  --url https://api.rekko.ai/v1/trades/report \
  --header 'Content-Type: application/json' \
  --data '
{
  "market_id": "KXFED-26MAR19",
  "platform": "kalshi",
  "price": 0.62,
  "side": "yes",
  "size_usd": 200
}
'
import requests

url = "https://api.rekko.ai/v1/trades/report"

payload = {
"market_id": "KXFED-26MAR19",
"platform": "kalshi",
"price": 0.62,
"side": "yes",
"size_usd": 200
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
market_id: 'KXFED-26MAR19',
platform: 'kalshi',
price: 0.62,
side: 'yes',
size_usd: 200
})
};

fetch('https://api.rekko.ai/v1/trades/report', 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://api.rekko.ai/v1/trades/report",
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([
'market_id' => 'KXFED-26MAR19',
'platform' => 'kalshi',
'price' => 0.62,
'side' => 'yes',
'size_usd' => 200
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);

$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://api.rekko.ai/v1/trades/report"

payload := strings.NewReader("{\n \"market_id\": \"KXFED-26MAR19\",\n \"platform\": \"kalshi\",\n \"price\": 0.62,\n \"side\": \"yes\",\n \"size_usd\": 200\n}")

req, _ := http.NewRequest("POST", url, payload)

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://api.rekko.ai/v1/trades/report")
.header("Content-Type", "application/json")
.body("{\n \"market_id\": \"KXFED-26MAR19\",\n \"platform\": \"kalshi\",\n \"price\": 0.62,\n \"side\": \"yes\",\n \"size_usd\": 200\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.rekko.ai/v1/trades/report")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"market_id\": \"KXFED-26MAR19\",\n \"platform\": \"kalshi\",\n \"price\": 0.62,\n \"side\": \"yes\",\n \"size_usd\": 200\n}"

response = http.request(request)
puts response.read_body
{
  "status": "accepted",
  "trade_count": 47
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}

Body

application/json

Agent-reported trade for consensus aggregation.

market_id
string
required

Market identifier

side
string
required

'yes' or 'no'

size_usd
number
required

Trade size in USD

Required range: x >= 0
price
number
required

Execution price

Required range: 0 <= x <= 1
platform
string
default:kalshi

Platform

Response

Successful Response

Confirmation of reported trade.

trade_count
integer
required

Total trades reported by this agent

status
string
default:accepted

Report status