manage_deal
Close a deal, add funds, or reduce funds by specifying action, deal ID, and optional parameters. Supports DCA, combo, and terminal deal types.
Instructions
Manage deal operations: close a deal, add funds, or reduce funds. Each action has specific requirements.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform on the deal | |
| dealId | Yes | Deal identifier. Accepts EITHER the deal's 24-character hex MongoDB ObjectId (e.g. "65f000000000000000000001") OR the deal's UUID. Either form resolves to the same deal — use whichever the deal record exposes. Get both from list_deals (the `_id` and `uuid` fields). | |
| dealType | Yes | Deal type | |
| paperContext | No | Paper trading context (true = paper, false = real). Default: false | |
| closeType | No | Close type for close action | |
| botId | No | Bot ID for addFunds/reduceFunds (alternative to dealId for dca/combo) | |
| qty | No | Amount to add/reduce. With type="fixed" it is an amount in the chosen asset denomination; with type="perc" it is a percentage of the position. | |
| type | No | Type: fixed amount or percentage | |
| asset | No | Denomination for a fixed add/reduce — "quote" (e.g. USDT) or "base" (the coin). Required when type="fixed"; this is NOT a ticker symbol. Ignored when type="perc". | |
| symbol | No | Symbol override (optional) |