STXMarketService gives you individual markets and their counts. STXEventService gives you events (a match or game) with their associated markets pre-loaded in a single call.
List markets
ResolveSTXMarketService and call GetMarketInfosAsync for a full list of markets:
GetShortMarketInfosAsync to retrieve a reduced payload:
Filter markets
STXMarketInfosFilter combines the common filter fields. Pass it to GetMarketInfosAsync or GetMarketInfosWithCountAsync:
| Field | Type | Notes |
|---|---|---|
Status | STXMarketInfosStatus | OPEN, CLOSED, etc. |
Trading | STXMarketInfosTrading | TRUE, FALSE, or ALL |
Sport | string | e.g. "basketball", "baseball" |
Competition | string | e.g. "NBA", "MLB" |
EventId | string | Only markets for a specific event |
Limit / Offset | int | Pagination controls |
Pagination
GetMarketInfosWithCountAsync returns both the paginated result and the total count. Use it when you need to display “showing N of M” or drive a full offset/limit scan:
Browse sports and competitions
GetSportAndCompetitionsAsync returns the full catalog of sports and their associated competitions:
STXMarketInfosFilter.
Query events
STXEventService bundles an event with its markets in one call — no need to make separate per-event requests:
Real-time price updates
REST calls are appropriate for snapshots and catalog browsing. For live price ticks on open markets — where latency matters — subscribe to theSTXMarketChannel WebSocket wrapper instead: