> For the complete documentation index, see [llms.txt](https://tradesync.gitbook.io/tradesync/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradesync.gitbook.io/tradesync/fxtr-v2/functions-of-fxtr-v2/open-stream-for-the-account/messages-that-can-be-sent-in-open-stream/subscriptions/subscriptionsdeal.md).

# SubscriptionsDeal

**Triggered by:** [DealsSubscribe](/tradesync/fxtr-v2/functions-of-fxtr-v2/open-stream-for-the-account/messages-that-can-be-sent-in-open-stream/dealssubscribe.md).

**Switched off by**: [DealsUnsubscribe](/tradesync/fxtr-v2/functions-of-fxtr-v2/open-stream-for-the-account/messages-that-can-be-sent-in-open-stream/dealsunsubscribe.md).

**Response Type** - `SubscriptionsOrder`.

**Response Body Fields:**&#x20;

<table><thead><tr><th width="203">Parameter</th><th width="175" data-type="checkbox">Always returned</th><th>Description</th></tr></thead><tbody><tr><td><code>deal</code></td><td>true</td><td>the ticket of a deal</td></tr><tr><td><code>order</code></td><td>true</td><td>the ticket of an order</td></tr><tr><td><code>position</code></td><td>true</td><td>the position ID (ticket) specified in the orde</td></tr><tr><td><code>is_entry</code></td><td>true</td><td>true is deal is entering to the market</td></tr><tr><td><code>price</code></td><td>true</td><td>the price at which the deal was executed</td></tr><tr><td><code>volume</code></td><td>true</td><td>the volume of an order in lots</td></tr><tr><td><code>symbol</code></td><td>true</td><td>the symbol, for which the deal was executed</td></tr><tr><td><code>action</code></td><td>true</td><td>the action state for the order</td></tr><tr><td><code>profit</code></td><td>true</td><td>profit for the deal</td></tr></tbody></table>

The parameter `action` can be:

| Value | Description |
| ----- | ----------- |
| 1     | add         |
| 2     | update      |
| 3     | delete      |

**Example:**

```json
{
    "type": "SubscriptionsDeal",
    "body": {
        "deal": 36602,
        "order": 36600,
        "position": 36600,
        "type": 0,
        "is_entry": true,
        "volume": 0.1,
        "price": 1.055070,
        "profit": 0.000000,
        "symbol": "EURUSD",
        "action": 1
    }
}
```
