Sequence/docs

Rust SDK

Typed async Rust client with builder patterns, fixed-point wrappers, and WebSocket streaming. Every REST endpoint is covered; every example below shows the Rust form alongside Python and curl tabs on the underlying feature page.

toml
[dependencies]
sequence-sdk = { path = "crates/sdk/sequence-sdk" }                   # workspace path
# sequence-sdk = { git = "ssh://git@github.com/Bai-Funds/execution-engine.git", package = "sequence-sdk" }
tokio        = { version = "1", features = ["rt-multi-thread", "macros"] }
futures-util = "0.3"
rust
use sequence_sdk::Sequence;
 
let seq = Sequence::new("seq_live_…")
    .base_url("https://api.sequencemkts.com");

For installation, auth, error handling, and sandbox mode, start with Install & Authenticate.


Per-feature guides

Each guide covers the same surface across Rust, Python, and curl tabs side-by-side.

Install & Authenticate

Bearer auth, sandbox routing, error handling, health checks

Connecting Venues

Store API keys for CEX, DEX, prediction markets — Kalshi RSA, Polymarket EIP-712 signer

Market Data

Quotes, batch quotes, positions, fees, preview, price history, funding, prediction markets, settlement

Placing Orders

Market, limit, preview, batch, amend, decrease, cancel, fills, redeem

Execution Graphs

Multi-leg orders: bracket, TWAP, hedge, conditional. Triggers, sizing, 4-layer risk

Streaming

NBBO, books, orders, fills, routing, TCA, traces, prediction-market lifecycle

Algorithms

Deploy WASM strategies to venue edges. Lifecycle, mesh, logs, metrics

Monitoring & TCA

Pre-trade depth/slippage/routing, post-trade TCA, nanosecond traces


Other Rust-specific resources