deepbook-margin-sdk-orders
Installation
SKILL.md
DeepBook Margin SDK: Trading & Staking
The Orders SDK enables leveraged trading using the poolProxy module. Users can place and manage orders, modify active slots, withdraw settled amounts, and stake DEEP tokens for governance.
1. SDK API Reference (client.deepbook.poolProxy)
Placing Orders
placeLimitOrder(params: PlaceMarginLimitOrderParams)Places a limit order using leveraged funds.- Returns:
(tx: Transaction) => void
- Returns:
placeMarketOrder(params: PlaceMarginMarketOrderParams)Places a market order.placeReduceOnlyLimitOrder(params: PlaceMarginLimitOrderParams)Places a reduce-only limit order. Can only close or shrink an existing debt.placeReduceOnlyMarketOrder(params: PlaceMarginMarketOrderParams)Places a reduce-only market order.