Get public trades
curl --request GET \
--url https://api.sx.bet/trades-v3/publicimport requests
url = "https://api.sx.bet/trades-v3/public"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sx.bet/trades-v3/public', 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.sx.bet/trades-v3/public",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.sx.bet/trades-v3/public"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sx.bet/trades-v3/public")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3/public")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"trades": [
{
"tradeId": "0xac6bb30bba6ea82d8717219a4fa49d15b58fd638fba479f294b4d402376d14d6",
"marketHash": "0x1fec4ed9b71c2f812db900af7d12446158a0eda56041106f99551c496efd3266",
"isBettingOutcomeOne": false,
"isParlay": false,
"totalStake": "1000000",
"totalReturn": "2500000",
"weightedAverageOdds": "40000000000000000000",
"betTime": "2026-07-31T18:47:09.577Z",
"gameTime": "2040-01-01T00:00:00.000Z",
"outcomeLabel": "Hornets",
"teamOneName": "Toronto Raptors",
"teamTwoName": "Charlotte Hornets",
"leagueLabel": "NBA",
"sportId": 1,
"eventId": "L12003787"
}
]
}
}{
"message": [
"marketHash must be a valid hex string of length 32 bytes"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Service Unavailable",
"statusCode": 503
}Trades, Fills & Positions
Get public trades
Query recent public trades on the SX Bet exchange.
GET
/
trades-v3
/
public
Get public trades
curl --request GET \
--url https://api.sx.bet/trades-v3/publicimport requests
url = "https://api.sx.bet/trades-v3/public"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sx.bet/trades-v3/public', 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.sx.bet/trades-v3/public",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://api.sx.bet/trades-v3/public"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sx.bet/trades-v3/public")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3/public")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"trades": [
{
"tradeId": "0xac6bb30bba6ea82d8717219a4fa49d15b58fd638fba479f294b4d402376d14d6",
"marketHash": "0x1fec4ed9b71c2f812db900af7d12446158a0eda56041106f99551c496efd3266",
"isBettingOutcomeOne": false,
"isParlay": false,
"totalStake": "1000000",
"totalReturn": "2500000",
"weightedAverageOdds": "40000000000000000000",
"betTime": "2026-07-31T18:47:09.577Z",
"gameTime": "2040-01-01T00:00:00.000Z",
"outcomeLabel": "Hornets",
"teamOneName": "Toronto Raptors",
"teamTwoName": "Charlotte Hornets",
"leagueLabel": "NBA",
"sportId": 1,
"eventId": "L12003787"
}
]
}
}{
"message": [
"marketHash must be a valid hex string of length 32 bytes"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Service Unavailable",
"statusCode": 503
}GET /trades-v3/public is the public tape: bets other people placed, stripped of identity.Query Parameters
Market ID to filter by.
Event ID to filter by (prefixed form, e.g. L12003787). Not mutually exclusive with marketHash: when both are sent, marketHash wins and this parameter is never evaluated.
Required string length:
2 - 64Rows per page.
Required range:
1 <= x <= 100Cursor from the previous response to continue pagination.
Last modified on August 11, 2026
⌘I