Get your positions
curl --request GET \
--url https://api.sx.bet/positions-v3 \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/positions-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/positions-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/positions-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/positions-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/positions-v3")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/positions-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": {
"positions": [
{
"marketHash": "0x8120ae9408cd7556246473be7ceada8cba47d42418cce31ffad0b67b196e3218",
"market": {
"status": "ACTIVE",
"marketHash": "0x8120ae9408cd7556246473be7ceada8cba47d42418cce31ffad0b67b196e3218",
"outcomeOneName": "Golden State Warriors",
"outcomeTwoName": "Minnesota Timberwolves",
"outcomeVoidName": "NO_CONTEST",
"teamOneName": "Golden State Warriors",
"teamTwoName": "Minnesota Timberwolves",
"type": 226,
"gameTime": 1773453600,
"sportXeventId": "L18272456",
"liveEnabled": true,
"sportLabel": "Basketball",
"sportId": 1,
"leagueId": 1,
"leagueLabel": "NBA",
"group1": "NBA",
"chainVersion": "SXR",
"participantOneId": 15002,
"participantTwoId": 14999,
"__type": "Market"
},
"totalStake": "300000000",
"maxWin": "200000000",
"maxLoss": "-100000000",
"isOutcomeOneMaxWin": true,
"odds": {
"outcomeOne": "40000000000000000000",
"outcomeTwo": "50000000000000000000"
},
"pnl": null,
"tradeCount": 2,
"betTime": "2026-03-13T21:14:02.118Z",
"updatedAt": "2026-03-13T22:03:41.502Z"
}
]
}
}{
"message": [
"status should not be empty"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}Trades, Fills & Positions
Get your positions
Get your positions from the SX Bet API.
GET
/
positions-v3
Get your positions
curl --request GET \
--url https://api.sx.bet/positions-v3 \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/positions-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/positions-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/positions-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/positions-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/positions-v3")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/positions-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": {
"positions": [
{
"marketHash": "0x8120ae9408cd7556246473be7ceada8cba47d42418cce31ffad0b67b196e3218",
"market": {
"status": "ACTIVE",
"marketHash": "0x8120ae9408cd7556246473be7ceada8cba47d42418cce31ffad0b67b196e3218",
"outcomeOneName": "Golden State Warriors",
"outcomeTwoName": "Minnesota Timberwolves",
"outcomeVoidName": "NO_CONTEST",
"teamOneName": "Golden State Warriors",
"teamTwoName": "Minnesota Timberwolves",
"type": 226,
"gameTime": 1773453600,
"sportXeventId": "L18272456",
"liveEnabled": true,
"sportLabel": "Basketball",
"sportId": 1,
"leagueId": 1,
"leagueLabel": "NBA",
"group1": "NBA",
"chainVersion": "SXR",
"participantOneId": 15002,
"participantTwoId": 14999,
"__type": "Market"
},
"totalStake": "300000000",
"maxWin": "200000000",
"maxLoss": "-100000000",
"isOutcomeOneMaxWin": true,
"odds": {
"outcomeOne": "40000000000000000000",
"outcomeTwo": "50000000000000000000"
},
"pnl": null,
"tradeCount": 2,
"betTime": "2026-03-13T21:14:02.118Z",
"updatedAt": "2026-03-13T22:03:41.502Z"
}
]
}
}{
"message": [
"status should not be empty"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}GET /positions-v3 rolls your bets up per market. Ten bets on one market are one row here, with
the exposure already netted: what you win if outcome one lands, what you lose if it does not, and the
blended price you got on each side. Tracking positions covers what the roll-up
does and does not net.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
Required, and comma-separated: any non-empty subset of PENDING, LOCKED, SETTLED and FAILED. PENDING,LOCKED reads as open bets and SETTLED as history. Request SETTLED alone to populate pnl.
Event ID to query.
Required string length:
2 - 64Rows per page.
Required range:
1 <= x <= 100Cursor from the previous response to continue pagination.
Sort ascending on the position sort key. Default false.
Last modified on August 11, 2026
⌘I