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

# SubscriptionsOrder

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

**Switched off by**: [OrdersUnsubscribe](/tradesync/fxtr-v2/functions-of-fxtr-v2/open-stream-for-the-account/messages-that-can-be-sent-in-open-stream/ordersunsubscribe.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>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>price</code></td><td>true</td><td>the price at which the order was placed</td></tr><tr><td><code>price_current</code></td><td>true</td><td>the current price of symbol</td></tr><tr><td><code>price_trigger</code></td><td>true</td><td>the price of order actiovation</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>type</code></td><td>true</td><td>the order type</td></tr><tr><td><code>symbol</code></td><td>true</td><td>the symbol, for which the order was placed</td></tr><tr><td><code>action</code></td><td>true</td><td>the action state for the order</td></tr><tr><td><code>state</code></td><td>true</td><td>the order state</td></tr></tbody></table>

The parameter `type` can be:

| Value | Description             |
| ----- | ----------------------- |
| 0     | for buy                 |
| 1     | for sell                |
| 2     | a Buy Limit order       |
| 3     | a Sell Limit order      |
| 4     | a Buy Stop order        |
| 5     | a Sell Stop order       |
| 6     | a Buy Stop Limit        |
| 7     | a Sell Stop Limit order |

The parameter `action` can be:

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

The parameter `state` can be:

<table><thead><tr><th width="137.33333333333331">Value</th><th width="165">Description</th><th>Comment </th></tr></thead><tbody><tr><td>0</td><td>Started</td><td>the order correctness has been checked, and now the order is awaiting processing</td></tr><tr><td>1</td><td>Placed</td><td>for pending orders, this state means that the order has been accepted and placed. For market orders, this state is only used when forwarding operations to an external system. In this case, this state means that the order has been forwarded and is awaiting execution in the external system</td></tr><tr><td>2</td><td>Canceled</td><td>the order has been canceled by the client</td></tr><tr><td>3</td><td>Partially filled</td><td>the order has been partially filled, so the market operation has been executed for part of the initially requested volume</td></tr><tr><td>4</td><td>Filled</td><td>the order has been filled in full</td></tr><tr><td>5</td><td>Rejected</td><td>the order has been rejected by the broker</td></tr><tr><td>6</td><td>Expired</td><td>the order has been canceled upon expiration</td></tr><tr><td>7</td><td></td><td>The order passed (by the gateway) to be placed. This state is used for notifying that a request for placing the order is being already processed</td></tr><tr><td>8</td><td></td><td>The order passed (by the gateway) to be modified. This state is used for notifying that a request for modifying the order is being already processed</td></tr><tr><td>9</td><td></td><td>The order passed (by the gateway) to be deleted. This state is used for notifying that a request for deleting the order is being already processed</td></tr></tbody></table>

**Example:**

```json
{
    "type": "SubscriptionsOrder",
    "body": {
        "order": 36600,
        "position": 0,
        "type": 0,
        "state": 0,
        "volume": 0.1,
        "price": 1.055070,
        "price_trigger": 0.000000,
        "price_current": 1.055070,
        "tp": 0.0,
        "sl": 0.0,
        "symbol": "EURUSD",
        "action": 1
    }
}
```
