LogoClawIndex
CasesSkillsAbout
LogoClawIndex

deepbook-margin-trading-skill - DeepBook V3 Margin Trading SDK Guide

Guides developers using DeepBook V3 Margin Trading SDK for leverage trading, borrowing, lending, liquidations, and risk management on Sui.

Tags

Updated: 2026-09-09

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Deposit assets into margin managers
  • Borrow assets from margin pools
  • Place margin limit and market orders
  • Set take profit stop loss orders
  • Supply assets to margin pools
  • Liquidate undercollateralized margin positions
  • Query margin manager and pool states
  • Configure margin pools and risk parameters

Inputs

  • Sui network endpoint configurations
  • DeepBook package and registry IDs
  • Margin manager configurations
  • Trading order parameters
  • Pool keys and asset identifiers

Outputs

  • Constructed transaction blocks for execution
  • Updated margin position balances
  • Executed or placed margin orders
  • Liquidated position settlement records
  • Margin state query results

Requirements

  • TypeScript runtime environment
  • @mysten/sui SDK
  • @mysten/deepbook-v3 SDK
  • Access to Sui Mainnet or Testnet

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
sui
deepbook-v3
margin-trading
leverage
lending
liquidation
sdk
Deposit assets into margin managers
Borrow assets from margin pools
Place margin limit and market orders
Set take profit stop loss orders
Sui network endpoint configurations
DeepBook package and registry IDs
Margin manager configurations
Constructed transaction blocks for execution
Updated margin position balances
Executed or placed margin orders