list_deals
List deals of a specific type with optional filtering by status and bot ID. Customize output fields via presets or manual selection.
Instructions
List deals by type (DCA, Combo, or Terminal). Supports field selection presets. Supports filtering by status and botId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dealType | Yes | Deal type | |
| fields | No | Field selection: preset ("minimal", "standard", "extended", "full") or comma-separated fields (e.g. "_id,uuid,settings.name,profit.total"). Default: "standard" | |
| page | No | Page number for pagination (1-based). Default: 1 | |
| status | No | Filter by deal status | |
| paperContext | No | Paper trading context (true = paper, false = real). Default: false | |
| botId | No | Filter by bot ID (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | OK on success, NOTOK on a handled API error. | |
| reason | No | Error reason when status is NOTOK; null otherwise. | |
| data | No | Matching deal records; fields present depend on the `fields` preset. | |
| meta | No | Pagination / result metadata, present on list-style responses. |