# Order history

## Summary

This widget provides up-to-date information about the orders executed on a selected market partially or in full, as well as the orders that were canceled, rejected, and expired.

The data is available for the last 92 days.

<figure><img src="https://3809883000-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5nDTeWRBfWeQuJ1QN8Tw%2Fuploads%2Fgit-blob-ef77528ff9d88b6f9302e8a0fd7745287858b408%2Fwidget-order-history.png?alt=media" alt="Order history"><figcaption><p>Order history</p></figcaption></figure>

{% hint style="info" %}
The widget lists only the orders to which final statuses are assigned. For a list of orders that are still being executed, use the [Open orders](https://trader-docs.b2trader.b2broker.com/widgets/open-orders) widget.
{% endhint %}

## Settings

### Adjust the time period

By default, the widget lists the orders with the *Completed* status for the last 90 days. To display orders for a specific time period, use the **Select date range** field. To display orders with specific statuses, select one or more from the dropdown above the list. The most recent order appears at the top of the list.

### Configure columns

Click the **Configure columns** button in the widget header to adjust the displayed information:

* **Mark or unmark column checkboxes**: To display or hide them; the column checkboxes highlighted in grey can’t be unmarked.
* **Drag and drop the columns**: To adjust their order in the table.

## Fields

The following information is provided about each order:

**Market**

The market type (Spot, CFD, or Perpetual) and market ticker.

***

**Full name**

The market full name or description.

***

**Side**

The order side: Buy or Sell.

***

**Order type**

The [order type](https://trader-docs.b2trader.b2broker.com/knowledge-base/order-types).

***

**Time in force**

The [Time in force](https://trader-docs.b2trader.b2broker.com/knowledge-base/time-in-force).

***

**Amount**

The order amount, in the base currency.

***

**Filled**

The order amount that has been filled.

***

**Fee**

The total commissions paid for executing an order and the currency in which the commission was paid.

***

**Remaining**

The order amount that wasn't filled.

***

**Avg execution price**

The order execution price, as an average price of all trades executed while filling the order.

***

**Used leverage**

For CFD trading, the leverage ratio used when placing an order.

***

**Status**

The current order [status](https://trader-docs.b2trader.b2broker.com/knowledge-base/order-statuses): *Completed*, *Cancelled*, *Rejected*, or *Expired*.

***

**Created at**

The date and time when an order was placed.

***

**Updated at**

The date and time of the latest update to the order.

***

**Order ID**

The system identifier of an order.

***

**Comment**

The text note attached to the order when it was placed. Up to 100 characters. The comment can't be edited after the order is placed.

***

**Reason**

The reason for placing the order:

* **Trader**: The order was placed by you.
* **Stop-out**: The order was placed by the system, to close positions as a result of Stop out.
* **Stop loss**: The order was placed by the [Stop loss](https://trader-docs.b2trader.b2broker.com/knowledge-base/price-triggers) trigger.
* **Take profit**: The order was placed by the [Take profit](https://trader-docs.b2trader.b2broker.com/knowledge-base/price-triggers) trigger.
* **Webhook alert**: The order was placed via a [TradingView webhook](https://github.com/b2broker-gitbook/gitbook-bbp/blob/master/b2trader/get-started/tradingview-webhooks.md).
