Expand description
Official Rust client for Strata markets and Sonar quotes.
It provides typed requests and responses and validates compatibility, quote binding, and economic fields before returning data to the application.
Structs§
- Action
Authority Model - Action
Edge - Action
Graph - Action
Node - Action
Operation - Capability
Catalog - Capability
Descriptor - Dead
ManGuard - Keeps the durable dead-man deadline alive. Drop is deliberately fail-closed: it stops heartbeats and leaves the pre-signed cancel-all armed.
- Execution
Challenge Request - Ask Strata for a one-time payload authorizing preparation of an existing Sonar quote. The session key signs locally; no private signing material is accepted by this contract.
- Execution
Challenge Response - Execution
Prepare Request - Execution
Prepare Response - Execution
Submit Request - Execution
Submit Response - Execution
Verification Context - Market
- Markets
Response - Order
Challenge Result - Order
Command Stream - Cloneable handle to one authenticated persistent order-command socket. Commands from clones are sequenced by a single writer task, so concurrent strategies cannot produce sequence gaps on the wire.
- Order
Verification Context - Platform
Dead ManState - Platform
Order Challenge Response - Platform
Order Prepare Request - Platform
Order Prepare Response - Platform
Order Status Request - Platform
Order Status Response - Platform
Order Submit Request - Platform
Order Submit Response - Quote
Request - Quote
Response - Strata
Client
Enums§
- Action
Node Kind - Capability
Risk - Capability
Stability - Execution
Status - McpExposure
- Order
Execute Operation - Platform
Dead ManStatus - Platform
Order Action - Externally authorized resting-order operation. The public contract exposes product intent only; private construction details never cross the SDK boundary.
- Platform
Order Batch Operation - One operation inside an atomic order-control batch. Owner and session identity live on the enclosing challenge so no item can widen authority.
- Platform
Order Challenge Request - Request canonical bytes for one externally signed order-control operation. Variant-specific fields are sealed so an authorization cannot be widened between challenge and transaction preparation.
- Platform
Order Command - One command on the persistent order-control connection. Challenge results may contain an effective request that differs from the requested one only by the explicitly selected self-trade prevention transformation.
- Platform
Order Command Client Frame - Frames sent by an external agent. Authentication proves possession of the declared session key; individual order authorizations and transactions keep their existing exact external-signing boundaries.
- Platform
Order Command Event - Sequenced frames emitted by the persistent order-control connection. Every command result is correlated by the caller’s request ID; terminal chain status may arrive later without blocking command submission.
- Platform
Order Control Status - Platform
Order Submission Status - Platform
Order Type - Platform
Self Trade Prevention - Collision policy for an incoming order that would cross the owner’s own resting liquidity. Every mode still preserves Strata’s matcher and on-chain self-fill prohibition; this only controls which order is cancelled first.
- Platform
Trade Side - Quote
Side - SdkError
Constants§
- DEFAULT_
API_ BASE - DEFAULT_
SLIPPAGE_ BPS - Exact-output default for the current read-only quote surface.
- ORDER_
STREAM_ AUTH_ DOMAIN