curl --request GET \
--url https://synthesis.trade/api/v1/trades/ws \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"venue": "<string>",
"markets": [
"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910",
"KXBTC-25-T100000"
],
"offset": 100,
"limit": 500
}
'import requests
url = "https://synthesis.trade/api/v1/trades/ws"
payload = {
"type": "<string>",
"venue": "<string>",
"markets": ["0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910", "KXBTC-25-T100000"],
"offset": 100,
"limit": 500
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
type: '<string>',
venue: '<string>',
markets: [
'0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910',
'KXBTC-25-T100000'
],
offset: 100,
limit: 500
})
};
fetch('https://synthesis.trade/api/v1/trades/ws', 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://synthesis.trade/api/v1/trades/ws",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'type' => '<string>',
'venue' => '<string>',
'markets' => [
'0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910',
'KXBTC-25-T100000'
],
'offset' => 100,
'limit' => 500
]),
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://synthesis.trade/api/v1/trades/ws"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}")
req, _ := http.NewRequest("GET", 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.get("https://synthesis.trade/api/v1/trades/ws")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/trades/ws")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}"
response = http.request(request)
puts response.read_bodyTrades WebSocket
Connect to wss://synthesis.trade/api/v1/trades/ws and send JSON messages over the socket.
Subscription behavior:
- Returns historical trades ordered by newest first (up to
limit, default100, max10000). - If
offsetis0or omitted, the socket stays subscribed for live updates. - If
offsetis greater than0, only that historical page is returned.
Market rules:
- For Polymarket,
marketsshould contain condition IDs. - For Kalshi,
marketsshould contain market IDs.
curl --request GET \
--url https://synthesis.trade/api/v1/trades/ws \
--header 'Content-Type: application/json' \
--data '
{
"type": "<string>",
"venue": "<string>",
"markets": [
"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910",
"KXBTC-25-T100000"
],
"offset": 100,
"limit": 500
}
'import requests
url = "https://synthesis.trade/api/v1/trades/ws"
payload = {
"type": "<string>",
"venue": "<string>",
"markets": ["0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910", "KXBTC-25-T100000"],
"offset": 100,
"limit": 500
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
type: '<string>',
venue: '<string>',
markets: [
'0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910',
'KXBTC-25-T100000'
],
offset: 100,
limit: 500
})
};
fetch('https://synthesis.trade/api/v1/trades/ws', 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://synthesis.trade/api/v1/trades/ws",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'type' => '<string>',
'venue' => '<string>',
'markets' => [
'0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910',
'KXBTC-25-T100000'
],
'offset' => 100,
'limit' => 500
]),
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://synthesis.trade/api/v1/trades/ws"
payload := strings.NewReader("{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}")
req, _ := http.NewRequest("GET", 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.get("https://synthesis.trade/api/v1/trades/ws")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://synthesis.trade/api/v1/trades/ws")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"<string>\",\n \"venue\": \"<string>\",\n \"markets\": [\n \"0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910\",\n \"KXBTC-25-T100000\"\n ],\n \"offset\": 100,\n \"limit\": 500\n}"
response = http.request(request)
puts response.read_bodyBody
WebSocket message type. Supported values: subscribe or unsubscribe.
Optional venue filter. Supported values: polymarket or kalshi. If omitted, the all-venues stream is only supported when markets is also omitted.
Optional list of market IDs. Maximum 100 items. For Polymarket, use condition IDs. For Kalshi, use market IDs. Mixed-venue lists are supported when you provide the matching IDs for each venue.
[ "0xbd71b43bb47eb60dbcb41fa25df2a0ed4da612873d6e0447a2c730bd4cc25910", "KXBTC-25-T100000" ]
Historical pagination offset. Historical queries return trades up to limit per venue/query shape. Live subscription is only attached when offset is 0 or omitted.
100
Maximum historical trades to return per query. Capped at 500.
500
Response
WebSocket connection established