Python SDK
Zero-dependency Python client that mirrors the Rust SDK one-for-one. Works on Python 3.8+ using only the standard library (urllib, json). The optional [stream] extra unlocks WebSocket streaming.
pip install sequence-markets # REST only — zero deps
pip install "sequence-markets[stream]" # + WebSocket streamingPyPI: sequence-markets. Import name is sequence_markets.
from sequence_markets import Sequence
seq = Sequence("seq_live_...")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