> This page is for Web API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://interactivebrokers.com/docs/llms.txt.

# Trailing Stop

For a discussion of the handling and behavior of Trailing Stop orders, please see our brokerage-wide documentation on this order type at: [Trailing Stop Orders](https://www.interactivebrokers.com/en/index.php?f=605)\
Supported exchanges for Trailing Stop orders: [Supported Exchanges](https://www.interactivebrokers.com/en/index.php?f=3883?ot=trail)

**Trail Offset.** Required.\
Specifies the distance that your order's stop price will maintain away from the market. A Trailing Stop order ticket must include exactly one of the following two forms of Trail Offset:

* **Absolute Offset:** An explicit numerical value (in the instrument's currency) which will be added to or subtracted from the market price of the instrument.
* **Relative Offset:** A percentage of the market price of the instrument, from which absolute price offsets will be computed (which in turn may vary in size as the market price moves).

***Note: The Trail Offset value, whether absolute or relative, must conform to the instrument's price increment rules.***

**Stop Price.**\
This value is not required. If supplied, this is the trigger price beyond which the Trailing Stop order will begin its trailing behavior. If no Stop Price value is supplied, the market price for the instrument at the time of submission will assigned to this value automatically.

**Trail Offset.** Required.\
One of the following approaches to Trail Offset specification must be used with the order ticket.

* **Absolute Offset:** `"trailingType": "amt", "trailingAmt": {{currency}}`
* **Relative Offset:** `"trailingType": "%", "trailingAmt": {{number 0 to 100}}`\
  Note that you must pass a literal % character as the value of the trailingType field in order to use a percentage trailingAmt value.

**Stop Price:** `"price"`

In the example to the right, we have outlined two Trailing Stop orders with explicit Stop Prices via the `price` field.\
In the first order, we supply a relative offset of 2% using `"trailingType": "%"` and `"trailingAmt": 2`.\
In the second order, we supply an absolute offset of 3 units of currency using `"trailingType": "amt"` and `"trailingAmt": 3`.

#### Trailing Percentage

```json
{
  "orderType": "TRAIL",
  "price": 100,
  "trailingAmt": 2,
  "trailingType": "%"
}
```

#### Trailing Amount

```json
{
  "orderType": "TRAIL",
  "price": 100,
  "trailingAmt": 3,
  "trailingType": "amt"
}
```