Account commands
Manage locally stored trading accounts.account add
Interactively add a new trading account.
api-wallet or read-only), private key, alias, and default status. Private keys are encrypted at rest in ~/.decibel/data.db.
account ls
List all stored accounts.
account set-default
Set the default account used when no --account flag is provided.
alias is omitted, an interactive picker is shown.
account remove
Remove a stored account.
| Option | Description |
|---|---|
-y | Skip confirmation |
account info
Show account balances and equity.
Market commands
Query market data and prices.markets ls
List all available markets.
markets price
Get the current price for a market.
| Argument | Description |
|---|---|
symbol | Market symbol (e.g., BTC/USD) |
| Option | Description |
|---|---|
-w | Watch price in real-time via WebSocket |
markets book
View the order book for a market.
| Option | Default | Description |
|---|---|---|
-w | Watch orderbook in real-time | |
--depth <n> | 10 | Number of price levels to show |
Trade commands
Place orders, manage positions, and view trading history.Place orders
trade order limit
Place a limit order.
| Argument | Description |
|---|---|
side | buy, sell, long, or short |
size | Order size (e.g., 0.01) |
symbol | Market symbol (e.g., BTC/USD) |
price | Limit price |
| Option | Default | Description |
|---|---|---|
--tif <tif> | gtc | Time in force: gtc, post-only, ioc |
--reduce-only | false | Reduce-only order |
--client-id <id> | Client order ID for tracking |
trade order market
Place a market order.
| Argument | Description |
|---|---|
side | buy, sell, long, or short |
size | Order size |
symbol | Market symbol |
| Option | Default | Description |
|---|---|---|
--slippage <pct> | 1 | Max slippage percentage |
--reduce-only | false | Reduce-only order |
--client-id <id> | Client order ID for tracking |
trade order stop-limit
Place a stop limit order. Triggers at the stop price and executes at the limit price.
| Argument | Description |
|---|---|
side | buy, sell, long, or short |
size | Order size |
symbol | Market symbol |
price | Limit price (execution price) |
stopPrice | Trigger price |
| Option | Default | Description |
|---|---|---|
--tif <tif> | gtc | Time in force: gtc, post-only, ioc |
--reduce-only | false | Reduce-only order |
--client-id <id> | Client order ID for tracking |
trade order stop-market
Place a stop market order. Triggers at the stop price and executes immediately.
| Argument | Description |
|---|---|
side | buy, sell, long, or short |
size | Order size |
symbol | Market symbol |
stopPrice | Trigger price |
| Option | Default | Description |
|---|---|---|
--slippage <pct> | 1 | Slippage percentage from stop price |
--reduce-only | false | Reduce-only order |
--client-id <id> | Client order ID for tracking |
trade order twap
Place a TWAP (Time-Weighted Average Price) order. Splits the order into smaller sub-orders over a duration.
| Argument | Description |
|---|---|
side | buy, sell, long, or short |
size | Total order size |
symbol | Market symbol |
| Option | Default | Description |
|---|---|---|
--duration <seconds> | Total execution duration in seconds | |
--frequency <seconds> | Interval between sub-orders in seconds | |
--reduce-only | false | Reduce-only order |
Cancel orders
trade cancel
Cancel a specific open order.
| Argument | Description |
|---|---|
orderId | The order ID to cancel |
| Option | Description |
|---|---|
--market <symbol> | Market symbol |
trade cancel-all
Cancel all open orders.
| Option | Description |
|---|---|
--market <symbol> | Cancel only orders in this market |
-y, --yes | Skip confirmation prompt |
trade cancel-twap
Cancel an active TWAP order.
Close positions
trade close
Close an open position at market price.
| Argument | Description |
|---|---|
symbol | Market symbol (e.g., BTC/USD) |
| Option | Default | Description |
|---|---|---|
--slippage <pct> | 1 | Max slippage percentage |
--size <size> | Full position | Partial close size (omit for full close) |
TP/SL (Take-Profit / Stop-Loss)
trade tp-sl set
Set take-profit and/or stop-loss for a position.
| Argument | Description |
|---|---|
symbol | Market symbol |
| Option | Description |
|---|---|
--tp-trigger <price> | Take-profit trigger price |
--sl-trigger <price> | Stop-loss trigger price |
--tp-limit <price> | Take-profit limit price |
--sl-limit <price> | Stop-loss limit price |
--tp-size <size> | Take-profit size (omit for full position) |
--sl-size <size> | Stop-loss size (omit for full position) |
trade tp-sl ls
List active TP/SL orders for a position.
trade tp-sl cancel
Cancel a TP/SL order.
Configuration
trade set-leverage
Set leverage for a market.
| Argument | Description |
|---|---|
symbol | Market symbol |
leverage | Leverage multiplier (e.g., 10) |
| Option | Default | Description |
|---|---|---|
--cross | true | Use cross margin |
--isolated | Use isolated margin |
trade set-margin
Set the margin type for a market.
| Argument | Description |
|---|---|
symbol | Market symbol |
type | cross or isolated |
View trading data
trade positions
List open positions.
| Option | Description |
|---|---|
-w | Watch positions in real-time via WebSocket |
trade orders
List open orders.
| Option | Description |
|---|---|
-w | Watch orders in real-time via WebSocket |
trade active-twaps
List active TWAP orders.
trade history
View trade fill history.
trade order-history
View order history (all states: filled, cancelled, etc.).
trade twap-history
View TWAP order history.
trade funding-history
View funding rate payment history.
The CLI also includes a built-in MCP server for AI agent integration. See the MCP Server Tool Reference for the full list of MCP tools.

