Skip to main content

Crate strata_sdk

Crate strata_sdk 

Source
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§

ActionAuthorityModel
ActionEdge
ActionGraph
ActionNode
ActionOperation
CapabilityCatalog
CapabilityDescriptor
DeadManGuard
Keeps the durable dead-man deadline alive. Drop is deliberately fail-closed: it stops heartbeats and leaves the pre-signed cancel-all armed.
ExecutionChallengeRequest
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.
ExecutionChallengeResponse
ExecutionPrepareRequest
ExecutionPrepareResponse
ExecutionSubmitRequest
ExecutionSubmitResponse
ExecutionVerificationContext
Market
MarketsResponse
OrderChallengeResult
OrderCommandStream
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.
OrderVerificationContext
PlatformDeadManState
PlatformOrderChallengeResponse
PlatformOrderPrepareRequest
PlatformOrderPrepareResponse
PlatformOrderStatusRequest
PlatformOrderStatusResponse
PlatformOrderSubmitRequest
PlatformOrderSubmitResponse
QuoteRequest
QuoteResponse
StrataClient

Enums§

ActionNodeKind
CapabilityRisk
CapabilityStability
ExecutionStatus
McpExposure
OrderExecuteOperation
PlatformDeadManStatus
PlatformOrderAction
Externally authorized resting-order operation. The public contract exposes product intent only; private construction details never cross the SDK boundary.
PlatformOrderBatchOperation
One operation inside an atomic order-control batch. Owner and session identity live on the enclosing challenge so no item can widen authority.
PlatformOrderChallengeRequest
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.
PlatformOrderCommand
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.
PlatformOrderCommandClientFrame
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.
PlatformOrderCommandEvent
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.
PlatformOrderControlStatus
PlatformOrderSubmissionStatus
PlatformOrderType
PlatformSelfTradePrevention
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.
PlatformTradeSide
QuoteSide
SdkError

Constants§

DEFAULT_API_BASE
DEFAULT_SLIPPAGE_BPS
Exact-output default for the current read-only quote surface.
ORDER_STREAM_AUTH_DOMAIN

Traits§

ExecutionVerifier
OrderVerifier
SessionSigner