> 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/subscriptionsposition.md).

# SubscriptionsPosition

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

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

**Response Type** - `SubscriptionsPosition`.

**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>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>tp</code></td><td>true</td><td>price of take profit</td></tr><tr><td><code>sl</code></td><td>true</td><td>price of stop loss</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><tr><td><code>type</code></td><td>true</td><td>can be 0 for buy and 1 for sell</td></tr><tr><td><code>swap</code></td><td>true</td><td>the swap value of a position in the account deposit currency.</td></tr></tbody></table>

The parameter `action` can be:

| Value | Description |
| ----- | ----------- |
| 1     | add         |
| 2     | updated     |
| 3     | deleted     |

**Example:**

```json
{
    "type": "SubscriptionsPosition",
    "body": {
        "position": 36600,
        "type": 0,
        "swap": 0.0,
        "volume": 0.1,
        "price": 1.055070,
        "tp": 0.0,
        "sl": 0.0,
        "profit": -0.300000,
        "symbol": "EURUSD",
        "action": 1
    }
}
```
