Skip to content

Changelog

RSS

What changed, and when. If you are building against the API, this is the page to check before you upgrade, and worth a look whenever something behaves differently than you expect. Entries headed with a name, such as C# SDK, are scoped to that; the rest are the API itself.

There is one feed for all of it, and each entry carries its scope as a category.

Go SDK 0.1.0.

  • A new SDK for Go. go get github.com/stxapp/stx-go, then stx.New gives one client that signs every request with your API key and covers every REST operation, with a service per area and a context.Context on every call. See the Go SDK.
  • Streams. client.Stream carries every documented WebSocket channel on one connection, reconnects and rejoins on its own, and AccountView keeps a live copy of your balance, open orders, fills and positions. See WebSockets.
  • Combos, as player or maker, over the same stream. See Combos.
  • Apps. The oauth package covers app tokens, linking a member’s STX account to your app’s own accounts, sign in with STX, and acting for members through a login service, and the last three each have a runnable example. See Apps: connect members.
  • A quickstart. examples/quickstart checks your key, lists markets, and reads your balance and positions.
  • Typed errors. Failures are typed values you match with errors.Is and errors.As, and a feature the exchange does not have returns an error matching stx.ErrNotAvailable. Client.Capabilities tells you before you call. See Errors & retries.

C# SDK 2.1.0.

  • Create markets with an OAuth app. CreateMarketsAsync creates player-prop markets on a scheduled event, up to 25 per call, with a dry run that checks everything and creates nothing. Available on US demo now. See Create markets.
  • App tokens. Set ClientId and ClientSecret and the client gets and renews a client_credentials token for the calls that take one. An API key is optional when an app is configured.
  • Location comes from your connection. API key requests are located from the connection they arrive on, so the SDK no longer models location data and two location members are gone from the generated models. Requests from outside the US and Canada are refused with STXRejectedException.

C# SDK 2.0.

  • A new SDK over the REST API and the WebSocket channels, authenticated with an API key. One STXClient signs every request, and one STXWebSocket carries every channel. See the C# SDK.
  • It replaces 1.x. Nothing from 1.x carries across unchanged, so plan the move as a rewrite of the code that talks to the exchange. See Moving from 1.x.
  • 1.x stays installable. To stay on it, pin the range [1.6.2,2.0): <PackageReference Include="STX.Sdk" Version="[1.6.2,2.0)" />.
  • Login works while new terms and conditions are waiting to be accepted. Previously it failed with a deserialization error.
    • With checkTermsAndConditions: true, LoginAsync accepts the terms in effect and completes the login. The automatic re-login that keepSessionAlive performs does the same.
    • Without it, LoginAsync returns PromptTncAcceptance = true and opens no session, so the app can show the terms first.
  • AcceptTermsAndConditionsAsync no longer throws when the terms are accepted successfully.

Combos are live on US demo, with SDK support.

Combos, one contract across several markets priced by request for quote, can now be tried on US demo. A player requests quotes on two to five legs for a stake, makers see every request as it opens and quote what the player wins, and the player accepts an amount; both sides then get an ordinary limit order on the combination’s market. The protocol changed since the early look in docs-v1.5.0, so read the updated pages before building. Other environments refuse the combo channels with unmatched topic. See Combos and the combo negotiation channel.

  • comboPlayer() and comboMaker() to request, quote, accept, cancel and cash out combos. Where combos are not available, joining throws STXCombosUnavailableException. See Combos.
  • ws.rfq() and ws.combo_quote() on STXWebSocket for the same combos flow, with typed models and STXCombosUnavailableException. See Combos.

A User-Agent requirement and an early look at combos.

  • Send a User-Agent. REST requests and WebSocket handshakes without a User-Agent header are refused with 403. Most HTTP libraries send one already; some WebSocket clients, such as Node’s ws, do not unless you set it. See Authentication.

Combos, one contract across several markets priced by request for quote, are documented as an early look so you can plan for them. They are not available to try yet, and the protocol may change before release. See Combos and the combo negotiation channel.

The Python SDK is on PyPI.

The Python SDK is on PyPI. Trade on STX from Python with typed methods instead of hand-built, hand-signed requests.

pip install stx-python
  • A blocking client, STX, and an asyncio client, AsyncSTX, with a method for every REST route.
  • Requests and the WebSocket handshake are signed with your API key. There is no login call and no session to refresh.
  • Stream order books, trades and your own orders, fills, positions and balance on one connection that keeps itself alive and reconnects for you.
  • Walk long lists without handling pages yourself, with iter_markets(), iter_orders() and the rest.
  • Every response is a typed model, and money and quantities arrive as strings exactly as the API sends them, never floats.
  • Retries are safe: an order is never sent twice after an uncertain failure.
  • Pick an exchange by name, such as region="us", env="demo", or set your key once in a credentials profile.

Start with the Python SDK guide. Runnable examples are in stx-python-demo.

The TypeScript SDK is on npm, two new WebSocket channels, and your positions over REST.

The TypeScript SDK is on npm. Trade on STX from Node.js with typed methods instead of hand-built, hand-signed requests.

npm install @stxapp/stx-typescript
  • Read markets and your account, and place and cancel orders, with every response typed in your editor.
  • Stream order books, trades and your own orders, fills, balance and positions. The SDK signs the connection, keeps it alive and reconnects for you.
  • Keep one live, always current view of your account with accountView().
  • Walk long lists without handling pages yourself, with iterMarkets(), iterOrders() and the rest.
  • Retries are safe: an order is never sent twice after an uncertain failure.
  • Set your key once, in environment variables or a credentials profile, and switch between the US and Ontario exchanges with one option.

Start with the TypeScript SDK guide.

Since 0.6.0:

  • balance(), positions() and placeOrders() work on every STX exchange, with the same results everywhere.
  • placeOrders() checks the whole list before placing any order: an over-long list or a malformed order is refused with nothing placed.
  • GET /api/v1/positions returns your open positions, largest first. It is the same body the positions:{user_id} channel sends on join, so one REST read can seed the state that channel then keeps current. See List open positions.
  • GET /api/v1/fills takes order_ids and returns only the fills those orders produced. It combines with market_ids and status. See List fills.
  • Name your client. Send a User-Agent such as acme-mm/1.4 (python/3.13) on REST calls and the WebSocket handshake. It is optional and never rejected, and it lets us find your calls when you report something. See Identify your client.
  • order_slip:{user_id} costs an order before you place it: risk, fee, and how much would fill at once and at which prices, pushed again whenever the book moves. Nothing is placed. It replaces betslip:{user_id}, which still works but sends money rounded to two decimals; moving is a topic change plus parsing money and quantities as decimal strings. See Order slip.
  • events carries traded volume per event, one number across every market on it. No authentication. See Events.

Apps can act for STX members with their consent: the authorization code flow with PKCE, tokens limited to the scopes the member approved, and a member can disconnect at any time. See Apps.

C# SDK 1.6.0 and 1.6.1, published to NuGet as STX.Sdk. Email and password authentication is unchanged and everything new here is opt-in. Two types were removed, STXProfileService and STXUserProfile; see Removed below if you use them.

dotnet add package STX.Sdk

API keys. Authenticate with an Ed25519 API key, signed per request. No login call, no token expiry, no refresh cycle. Email and password authentication continues to work exactly as it does today.

services.ConfigureSTXServices(
STXEnvironment.OntarioDemo,
STXApiKeyCredentials.FromPemFile(keyId, "~/.stx/ontario.pem"));

See Request signing for creating a key and choosing its scope.

Named environments. Supply credentials, not URLs.

  • STXEnvironment.OntarioDemo, USDemo, OntarioProduction
  • STXEnvironment.Custom(...) for anything else; passing URLs directly still works
  • These resolve to demo.stxapp.ca, demo.stxapp.io and stxapp.ca, which may differ from the host your integration uses today. Check firewall and allowlist rules before switching

Identity. STXIdentityService.GetMeAsync() returns your user id, account id and scope. Call it once at startup before joining any user-scoped channel: channel topics are keyed on the user id, and an API key has no login response to carry it.

.NET 10. A net10.0 build ships alongside net8.0. A .NET 8 or 9 app resolves the net8.0 build as before; nothing needs to change.

Debug symbols are embedded, so SDK frames in stack traces carry file names and line numbers.

Reliability

  • A failed token refresh no longer stops the host process. It is reported through the session message callback instead
  • Login and token refresh are retried; previously they were the only calls with no retry
  • Retries exclude credential errors, 401, 403 and 429. HTTP 404 is retried, since that is what an ingress returns mid-deployment
  • Failures preserve the cause as InnerException instead of a bare “Request Failed”

Removed. STXProfileService and STXUserProfile. Use STXIdentityService and STXIdentity.

  • STXTrade.Action no longer throws when serialised with System.Text.Json, which affected ASP.NET endpoints returning trade history
  • If you installed 1.6.0 in the days before this announcement, the identity types were named STXViewerService and STXViewer in that build. They are STXIdentityService and STXIdentity from 1.6.1 onwards; GetMeAsync() is unchanged

Breaking changes to the REST API.

Money and quantities are now strings. Responses carry money as a dollar amount and quantities as decimals, both as strings.

Before Now
Price 49 "0.4900"
Quantity 10 "10.00"

To port, divide by 100 any money field you were reading or sending as a whole number of cents. These fields on GET /api/v1/markets were already in dollars and keep their value: price, bids[].price, offers[].price and recent_trades[].price. Parse money with a decimal type rather than a float.

Placing orders. Send price in quotes to POST /api/v1/orders, for example "price": "0.49". A price sent without quotes, such as 49 or 0.49, is rejected with a 400.

Use total_fee for a trade’s fee. It is the full fee for the trade.

New WebSocket topics. The new account topics carry the same events as before, with money and quantities as strings like REST:

Previous topic New topic
active_orders:{user_id} orders:{user_id}
active_trades:{user_id} fills:{user_id}
active_positions:{user_id} positions:{user_id}
active_settlements:{user_id} settlements:{user_id}
portfolio:{user_id} balances:{user_id}

Also new:

  • account:{user_id} carries all of the above on one topic.
  • orderbook, ticker and trades carry public market data for any set of markets on a single join.

See WebSocket channels.

Prices have at most two decimal places. "0.49" and "0.4900" are accepted; "0.495" is rejected with a 400.

quantity must be in quotes too. Send "quantity": "10"; a quantity sent without quotes, such as 10, is rejected with a 400.

GET /api/v1/trades is now GET /api/v1/fills. Results are under fills instead of trades, and the row fields keep their names (trade_id, trade_fee). The old path returns 404.

New REST endpoints: GET /api/v1/portfolio/fees and GET /api/v1/portfolio/adjustments.

First release of the STX documentation.

STX is operated by XV Exchange, LLC, a Designated Contract Market regulated by the U.S. Commodity Futures Trading Commission (CFTC). Contracts traded on STX are cleared by XV Clearing, LLC, a CFTC-registered Derivatives Clearing Organization. Trading involves substantial risk of loss and may not be appropriate for everyone. Members risk losing the cost to enter any transaction, including fees. Consider whether trading is appropriate for you in light of your experience and financial resources. Nothing on this site is investment advice or a recommendation to trade. Past performance is not indicative of future results.

© 2026 STX. All rights reserved.llms.txtllms-full.txtView as Markdown
Docs version v1.10.5