# Active DCA-Deal Card

> What does the Active deal card in Veles show, how to read it and manage the deal.

When your bot receives an entry signal and get no restriction from the API-blocks settings, it opens a deal by placing orders on the exchange. \
At that moment, an **Deal card** appears in the [Active Deals](https://veles.finance/cabinet/deals) section of your dashboard, and a notification *"Bot opened a deal"* is sent. \
When the bot closes the deal or stops due to an [error](https://help.veles.finance/en/platform/components/bot-errors/), the **Deal card** disappears.

The **Deal card** will show **zero volume** if the bot's first order is set with an indent and has not yet been executed.

:::note
Do not confuse the **Active deal card** with the **[Bot card](https://help.veles.finance/en/platform/components/bot-card/)** on the main page. \
The **Bot card** displays its settings and status. \
The **Deal card** shows only the progress of the current deal.
:::

:::caution[Important]
If an **Active deal card** appears on the page but the corresponding trade does not exist on the exchange (because it was manually closed by the user or liquidated by the exchange), you must **cancel the bot's trade** (expand the deal card and click "Cancel"). \
Failure to do so may result in the bot placing new orders and opening a position that does not align with its calculations, leading to losses.

If the data on the **Deal Card** does not match the deal on the exchange, the bot's deal must also be cancelled and the reasons investigated.
:::

## Deal Overview

The deal card can be **collapsed** or **expanded**. To expand, click the down arrow on the right.

Example of an expanded card:

### The left part

- **At the top** is the name of the bot, the trading pair (for example, SOL/USDT), the number of executed orders (for example, *2 out of 5*).
- **Lower** is the deal ID (unique number), date and time of entry, trading pair, algorithm (Long/Short).

### The center part

- **Price range**:
  - on the top in the center is the average price of the deal,
  - on the top left is the price of the nearest order or Stop Loss (there will be a **dash**, if all the grid orders have been executed or next order will be placed by the indicator signal),
  - below is the current market price.

  The color of the ruler (green/red/gray) shows the PnL of the deal.

- **Under the** line:
  - deal volume in the base currency (for example, 0.98),
  - nominal value in USDT (for example, 137.676),
  - current asset price,
  - the average price in the deal,
  - for how long has the deal been open.

### The right part

- **On top** is the current PnL (profit/loss) in absolute and percentage terms.
- **Lower** — control buttons:

| Button                    | Function                                                                             |
|---------------------------|--------------------------------------------------------------------------------------|
| **To the deal**           | open a separate page of the deal with the chart and orders                           |
| **Edit bot**              | go to the bot editor                                                                 |
| **Close at market price** | close the deal immediately with a market order                                       |
| **Average**               | add an averaging order (if no Take Profit has already been executed)                 |
| **Cancel**                | cancel the deal of the bot (remove all the orders, position remains on the exchange) |

## Chart of the deal

The **"To the deal"** button opens a page with a chart of the deal's orders.

The following parameters are indicated under the graph:

- **Average position price** — current,
- **Average price** — after all orders are executed,
- **Total position amount** — current volume of the deal,
- **Total amount** — deal volume after all orders get executed.

:::note
Full deal volume = opening + closing orders.
:::

### Marks on the graph

- Red dotted line — the price at the time of the chart opening (not updated).
- Green arrows — buy orders (Long).
- Red arrows — sell orders (Short or Take Profits in Long).
- Yellow dotted lines — the connection of orders within the deal.
- The green dashed line with steps — the average deal price after each averaging.

### Order statuses

- **Position** — the old position, discovered on the trading account and included in the deal.
- **Executed** — the order was triggered, marked with an arrow.
- **Created** — listed on the exchange, but not yet executed.
- **Pending** — scheduled by the bot, but not created yet.
- **Liquidated** — the exchange cancelled the order (for example, a Stop Loss). You need to check your trading history on the exchange.

:::note[Important]
A limit order can be executed as a market order if the price has moved too fast. This is normal — check the details in the trading history on the exchange.
:::

## Important for beginners

- **The active deal card** is your control tool.
- You can see here: entry price, current profit/loss, averages, take profits.
- Using the buttons, you can manually manage the deal: close it, average or cancel.
- The chart helps to visually track where and how the bot placed orders.
