Market Data & Strategies

Provider-backed reads use the configured data provider. The default provider is Surflux.

Market Data

Read comprehensive market data through the provider:

Code
deepbook providers deepbook pools deepbook orderbook SUI_USDC --depth 20 deepbook book SUI_USDC --depth 20 --watch deepbook trades SUI_USDC --limit 100 deepbook ohlcv SUI_USDC --timeframe 5m --limit 100 deepbook stream trades SUI_USDC

Use --json for machine-readable output:

Code
deepbook --json orderbook SUI_USDC --depth 10

Strategies

deepbook run contains client-side strategy loops that build on the same DeepBook execution paths. Note that these execute on your local machine and will send transactions using your active wallet keypairs.

Code
deepbook run twap <pool> <buy|sell> <size> <duration> deepbook run dca <pool> <buy|sell> <amount> <interval> deepbook run grid <pool> --upper <price> --lower <price> --size <value> deepbook run trailing-stop <pool> --trail <pct> deepbook run cross-pool-spread <poolA> <poolB> --entry <value> --close <value>

Remember to run strategy commands with --dry-run first when supported.