Get your trades
curl --request GET \
--url https://api.sx.bet/trades-v3 \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/trades-v3"
headers = {"x-sx-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-sx-api-key': '<api-key>'}};
fetch('https://api.sx.bet/trades-v3', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-sx-api-key: <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://api.sx.bet/trades-v3"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-sx-api-key", "<api-key>")
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")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-sx-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"trades": [
{
"tradeId": "0xac6bb30bba6ea82d8717219a4fa49d15b58fd638fba479f294b4d402376d14d6",
"userAddress": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"wallet": "0x4361123dbdc1D812fdf7D27045aF358C9C8AA70A",
"marketHash": "0x1fec4ed9b71c2f812db900af7d12446158a0eda56041106f99551c496efd3266",
"isBettingOutcomeOne": false,
"isParlay": false,
"totalStake": "1000000",
"totalReturn": "2500000",
"weightedAverageOdds": "40000000000000000000",
"ceRefundAmount": "0",
"ceRefundFeeAmount": "0",
"usedBetCredits": false,
"fillCount": 2,
"status": "LOCKED",
"betTime": "2026-07-31T18:47:09.577Z",
"gameTime": "2040-01-01T00:00:00.000Z",
"createdAt": "2026-07-31T18:47:09.575Z",
"updatedAt": "2026-07-31T18:47:12.837Z",
"settlement": null
}
]
}
}{
"message": "Invalid nextKey",
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}Trades, Fills & Positions
Get your bets
Query your bet history from the SX Bet API.
GET
/
trades-v3
Get your trades
curl --request GET \
--url https://api.sx.bet/trades-v3 \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/trades-v3"
headers = {"x-sx-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-sx-api-key': '<api-key>'}};
fetch('https://api.sx.bet/trades-v3', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-sx-api-key: <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://api.sx.bet/trades-v3"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-sx-api-key", "<api-key>")
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")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-sx-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"trades": [
{
"tradeId": "0xac6bb30bba6ea82d8717219a4fa49d15b58fd638fba479f294b4d402376d14d6",
"userAddress": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"wallet": "0x4361123dbdc1D812fdf7D27045aF358C9C8AA70A",
"marketHash": "0x1fec4ed9b71c2f812db900af7d12446158a0eda56041106f99551c496efd3266",
"isBettingOutcomeOne": false,
"isParlay": false,
"totalStake": "1000000",
"totalReturn": "2500000",
"weightedAverageOdds": "40000000000000000000",
"ceRefundAmount": "0",
"ceRefundFeeAmount": "0",
"usedBetCredits": false,
"fillCount": 2,
"status": "LOCKED",
"betTime": "2026-07-31T18:47:09.577Z",
"gameTime": "2040-01-01T00:00:00.000Z",
"createdAt": "2026-07-31T18:47:09.575Z",
"updatedAt": "2026-07-31T18:47:12.837Z",
"settlement": null
}
]
}
}{
"message": "Invalid nextKey",
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}GET /trades-v3 returns one row per bet: everything that resulted from a single order you
submitted. An order that matched against four resting orders is one row here with fillCount: 4.
The individual matches are on GET /fills-v3.
tradeId identifies the bet — filter fills by that value, and look up one bet with
GET /trades-v3/{tradeId}.Authorizations
API key, sent as the x-sx-api-key header. Generate one from the API keys section of your account page on sx.bet.
Query Parameters
Market ID to filter by.
Status to filter by.
Available options:
PENDING, LOCKED, SETTLED, FAILED Only include bets placed at or after this time (ISO-8601).
Example:
"2026-06-01T00:00:00Z"
Only include bets placed at or before this time (ISO-8601). Must not be earlier than startDate.
Example:
"2026-06-08T00:00:00Z"
Sort oldest-first. Defaults to true.
Rows per page.
Required range:
1 <= x <= 100Cursor from the previous response to continue pagination.
Last modified on August 11, 2026
⌘I