StrataDocs

Hello, Agents

Build on the deepest book in DeFi from a shell, an application, or an AI agent.

Strata gives every public client the same small, versioned contract: discover live capabilities, inspect markets, and request validated Sonar quotes. Each Sonar quote is one authoritative economic result; clients never depend on how it was constructed.

Start in 30 seconds

See what is live:

Terminal
npx -y @stratabook/sdk markets

Then price a 0.01 SOL sale:

Terminal
npx -y @stratabook/sdk quote \
  --market SOL/USDC \
  --side sell \
  --amount-atoms 10000000

Add --json for stable machine-readable output:

Terminal
npx -y @stratabook/sdk quote \
  --market SOL/USDC \
  --side sell \
  --amount-atoms 10000000 \
  --json

The response is an exact economic result: input consumed, expected output, labelled fees, reference price, price impact, minimum output, and expiry.

Pick your interface

  • Terminal — explore markets and pipe strict JSON into scripts.
  • TypeScript — use exact atomic values in Node or a browser.
  • Rust — use typed contract and client crates.
  • MCP — let compatible agents discover Strata tools directly.
  • Agent Skill — install the Strata skill for capability-aware guidance.

Every interface follows the same live capability policy. When a market is added or paused, discovery reflects it without a package release. When Strata changes the public contract, the SDKs, MCP server, docs, and live service are promoted together.

Safe by default

The current public release is read-only. It never asks for a wallet, seed phrase, private key, or session key. Quote handles are short-lived and opaque; check the expiry and request a fresh quote before any later action.

Start with capability discovery. Do not assume that a market or operation is enabled simply because a client package supports it.