Build: DeepBook limit order
build_limit_order_txPlace a spot limit order on a DeepBook v3 pool from your BalanceManager (fees in the input coin, no DEEP needed). Validates tick/lot/min size. Optional deposit_first funds it in the same tx. No leverage. Returns UNSIGNED tx bytes (simulated against mainnet). Non-custodial: the desk never sees or holds keys and never moves funds; it returns quotes and UNSIGNED transactions only. Spot only, no leverage. Education only, not financial advice.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sender": "<sender>",
"balance_manager_id": "<balance_manager_id>",
"pool": "<pool>",
"side": "<side>",
"price": "<price>",
"quantity": "<quantity>"
},
"name": "build_limit_order_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pool | Yes | DeepBook pool BASE_QUOTE, e.g. SUI_USDC | |
| side | Yes | ||
| price | Yes | ||
| sender | Yes | YOUR Sui address (0x...). Public address only; never send a key. | |
| quantity | Yes | Base quantity | |
| post_only | No | Post-only (maker): rejects if it would cross | |
| expire_hours | No | ||
| deposit_first | No | Also deposit the needed coin from your wallet in the same tx | |
| client_order_id | No | ||
| balance_manager_id | Yes | YOUR DeepBook BalanceManager id (0x + 64 hex), from build_create_balance_manager_tx effects |