DeepBook CLI

SpotMarginPredict

Welcome to the DeepBook CLI documentation.

DeepBook is Sui’s on-chain central limit order book. deepbook-cli is an operator and agent interface for DeepBook: it combines provider-backed reads, Sui RPC access, and DeepBook SDK transaction builders in one binary.

The CLI has three main surfaces:

  • Read data: pools, order books, trades, OHLCV candles, SSE streams, and DeepBook Predict read endpoints.
  • Execute spot trades: DeepBook spot market/limit orders using balance managers.
  • Execute margin trades: DeepBook margin orders using typed margin managers.