Get a trade by ID
curl --request GET \
--url https://api.sx.bet/trades-v3/{tradeId} \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/trades-v3/{tradeId}"
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/{tradeId}', 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/{tradeId}",
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/{tradeId}"
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/{tradeId}")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3/{tradeId}")
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": {
"trade": {
"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": "Trade not found",
"error": "Not Found",
"statusCode": 404
}{
"message": "INVALID_USER",
"error": "Unauthorized",
"statusCode": 401
}Trades, Fills & Positions
Get a trade by ID
Look up one of your bets by its opaque tradeId.
GET
/
trades-v3
/
{tradeId}
Get a trade by ID
curl --request GET \
--url https://api.sx.bet/trades-v3/{tradeId} \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/trades-v3/{tradeId}"
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/{tradeId}', 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/{tradeId}",
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/{tradeId}"
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/{tradeId}")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/trades-v3/{tradeId}")
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": {
"trade": {
"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": "Trade not found",
"error": "Not Found",
"statusCode": 404
}{
"message": "INVALID_USER",
"error": "Unauthorized",
"statusCode": 401
}GET /trades-v3/{tradeId} returns one bet (BET grain) belonging to the authenticated account —
the same row shape as GET /trades-v3.
Pass the opaque tradeId. Use it to join fills via
GET /fills-v3?tradeId=….
A missing id, or an id that belongs to another account, returns 404. The response does not
distinguish those cases.
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.
Path Parameters
Opaque bet id. Same value as tradeId on trade rows; use it to filter GET /fills-v3.
Last modified on August 11, 2026
⌘I