# Order

| Field                | Value                                                                                                 | Type                                                                    |
| -------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| **account**          | Unique code of the account                                                                            | [Account code](../getting-started/data-types-and-formats), **required** |
| **orderId**          | Internal numeric id of an order chain in the system                                                   | [Number](../getting-started/data-types-and-formats), **required**       |
| **orderCode**        | Internal unique string code of an order chain in the system                                           | String, **required**                                                    |
| **version**          | Numeric version of the account.                                                                       | [Number](../getting-started/data-types-and-formats), **required**       |
| **clientOrderId**    | Unique order id assigned by the client during order placement                                         | [Client Id](../getting-started/data-types-and-formats), **required**    |
| **actionCode**       | Internal unique code of the last order modification                                                   | String, **required**                                                    |
| **legCount**         | Always 1                                                                                              | [Number](../getting-started/data-types-and-formats), **required**       |
| **type**             | Order type                                                                                            | String, **required**                                                    |
| **instrument**       | Symbol of the order’s instrument                                                                      | String, **required**                                                    |
| **status**           | Status of the order                                                                                   | [Order Status](../getting-started/data-types-and-formats), **required** |
| **finalStatus**      | Boolean value indicating if order is in final state                                                   | Boolean, **required**                                                   |
| **legs**             | List of exactly 1 order leg                                                                           | [Order Leg](order-leg), **required**                                    |
| **side**             | Side of the order. Either `BUY` (long) or `SELL` (short)                                              | String, **required**                                                    |
| **tif**              | Time in force (expiration time for the order)                                                         | String, **required**                                                    |
| **priceOffset**      | Price offset for protection orders                                                                    | [Number](../getting-started/data-types-and-formats), _optional_         |
| **priceLink**        | Price link for protection orders                                                                      | String, _optional_                                                      |
| **expireDate**       | Order expiration date in UTC                                                                          | Date, _optional_                                                        |
| **openTime**         | Timestamp in UTC when this position was opened                                                        | Timestamp, **required**                                                 |
| **openPrice**        | Price at which the position was opened                                                                | [Number](../getting-started/data-types-and-formats), **required**       |
| **marginRate**       | Order margin rate                                                                                     | [Number](../getting-started/data-types-and-formats), _optional_         |
| **issueTime**        | Timestamp in UTC when this order was accepted by the system                                           | Date, **required**                                                      |
| **transactionTime**  | Timestamp in UTC of the last order modification or fill                                               | Date, **required**                                                      |
| **links**            | List of the links between this order and other orders in its group                                    | Order Link, _optional_                                                  |
| **executions**       | List of all executions for this order                                                                 | [Execution](#executions), _optional_                                    |
| **cashTransactions** | List of all cash transactions related to this order. Reports are ordered chronologically.             | [Cash Transaction](), _optional_                                        |
| **hedgedOrderId**    | For broker orders, a numeric id of the client order this order hedges. Included only for Dealer users | [Number](../getting-started/data-types-and-formats), _optional_         |
| **externalOrderId**  | For broker orders, order id at the liquidity provider. Included only for Dealer users                 | String, _optional_                                                      |

## _<mark style="color:blue;">**number**</mark>_**&#x20;Order Id**

This value is assigned when an order is initially placed and does not change when an order is replaced or cancelled.

## _<mark style="color:blue;">**string**</mark>_**&#x20;Order Code**

This value is assigned when an order is initially placed and does not change when an order is replaced or cancelled.

_**number**_**&#x20;Version**

Numeric version of the account to which last update of this order is related. Client can use this value to find out which of the updates is more recent (its version is greater).

## _<mark style="color:blue;">**string**</mark>_**&#x20;Order Type**

Possible values:

* `MARKET`
* `LIMIT`
* `STOP`

## _<mark style="color:blue;">**string**</mark>_**&#x20;TIF**

One of:

* `GTC` (Markets, Limits, Stops)
* `DAY` (Limits, Stops)
* `GTD` (Limits, Stops, in this case the `expireDate` field will be present)

## _<mark style="color:blue;">**number**</mark>_**&#x20;Price Offset**

Price offset for protection orders. When parent order is triggered, either stop or limit price of protection order will be taken from parent trigger order's fill price with price offset. If this value is not null, the _priceLink_ field must be present.

## _<mark style="color:blue;">**string**</mark>_**&#x20;Price Link**

Price link for protection orders. Possible values:

* `TRIGGERED_STOP` - stop price of the order will be taken from parent trigger order's fill price
* `TRIGGERED_LIMIT` - limit price of the order will be taken from parent trigger order's fill price

## _<mark style="color:blue;">**date**</mark>_**&#x20;Expiration Date**

Order expiration date in UTC. Must be present if the _tif_ field is **GTD**. Otherwise, must be omitted.

## **Links**

Absent if the order is not a part of a group. Links are calculated only for the 'list-open-orders' request.

## **Executions**

List of all executions for this order. This includes order status changes, replaces, cancels and trades. Reports are ordered chronologically.
