Skip to content

Installation

dotnet add package STX.Sdk

or in the project file:

<PackageReference Include="STX.Sdk" Version="2.*" />

The package targets .NET 10. Its only dependencies are BouncyCastle (Ed25519 signing) and Microsoft.Extensions.Logging.Abstractions.

using STX.Sdk; // STXClient, STXWebSocket, options, exceptions
using STX.Sdk.Models; // Market, Order, Balance and the other response models
using STX.Sdk.Combos; // combo channels and their models
Console.WriteLine(STXClient.UserAgent); // STX.Sdk/2.0.0

The client is thread-safe and holds a connection pool: create one per exchange and share it, for example as a singleton in your dependency-injection container:

builder.Services.AddSingleton(_ => new STXClient());

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