Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.sportsxapp.com/llms.txt

Use this file to discover all available pages before exploring further.

Welcome to the SportsX API (sync test 2026-04-27)

SportsX is a prediction exchange with official SDKs for Python and C#. Whether you’re building a trading bot, a market-data dashboard, or a full application on top of the exchange, these docs cover everything you need — from your first authenticated call to production-grade order management and real-time WebSocket feeds.

Python quickstart

Install stx-python, authenticate, and make your first market query in under five minutes.

C# quickstart

Add STX.Sdk via NuGet, register services, and place your first call in a .NET app.

Python SDK overview

Synchronous, async, and WebSocket clients — one package, one set of credentials.

C# SDK overview

DI-integrated .NET 8 SDK with typed services for every exchange operation.

Core topics

Market data

Query markets, orderbooks, and event metadata with field-level control.

Trading

Place, cancel, and inspect orders. Fetch positions and fill history.

WebSockets

Subscribe to live market, order, and portfolio updates over Phoenix channels.

Authentication

Email/password login, 2FA, environment variables, and profile files.

Errors & retries

Typed exception hierarchy and built-in retry policy with exponential backoff.

API reference

All 51 GraphQL operations — queries, mutations, parameters, and return types.

How to get started

1

Install the SDK

Pick your language and install the package.
pip install stx-python
2

Set your credentials

The SDK reads credentials from environment variables, a profile file, or constructor arguments.
export STX_EMAIL="you@example.com"
export STX_PASSWORD="your-password"
3

Make your first call

Connect to staging and query the market list.
from stx import STX, Selection

client = STX(region="ontario", env="staging")
markets = client.market_infos(
    selections=Selection("market_id", "status", "title"),
)
print(f"Got {len(markets)} markets")
4

Go deeper

Explore trading, WebSocket feeds, and the full API reference to build your integration.
Always develop against env="staging" before pointing at env="production". Production trades with real balances.