> For the complete documentation index, see [llms.txt](https://doc.lockerprotocol.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.lockerprotocol.com/browser-extension/hyperliquid-perps/place-an-order.md).

# Place an order

Long or short, market or limit, with automatic take-profit and stop-loss.

{% stepper %}
{% step %}

### Choose direction and type

On a market: **Buy** (long) or **Sell** (short), **Market** or **Limit**. Set the **Leverage** and the size; **Available to trade** is your free margin.

<figure><img src="https://3674012151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2jyfPJ4rcVavAvTU9nL%2Fuploads%2Fgit-blob-f3615c65454095d0b527994c12e80c527c526790%2F02-direction.png?alt=media" alt="order form"><figcaption><p>The order form.</p></figcaption></figure>
{% endstep %}

{% step %}

### Read the numbers

**Margin**, **Estimated fees** (Hyperliquid fee + Locker commission), **Max slippage** (*the worst price move you accept on a market order*), and **Liquidation price (est.)**. *Order size must be at least X.*

<figure><img src="https://3674012151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2jyfPJ4rcVavAvTU9nL%2Fuploads%2Fgit-blob-f3615c65454095d0b527994c12e80c527c526790%2F02-direction.png?alt=media" alt="direction"><figcaption><p>Margin, fees, liquidation estimate.</p></figcaption></figure>
{% endstep %}

{% step %}

### Auto close (TP / SL)

Toggle **Auto close (TP/SL)** and set a **Take profit price** and a **Stop loss price**. *Stop loss too close to the liquidation price* means move it further.

<figure><img src="https://3674012151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2jyfPJ4rcVavAvTU9nL%2Fuploads%2Fgit-blob-d91a8da8f5e03c8c06cc09263f035ce7a46738bf%2F03-trigger.png?alt=media" alt="trigger"><figcaption><p>Take-profit and stop-loss.</p></figcaption></figure>
{% endstep %}

{% step %}

### Confirm

**Confirm order** sums everything up, including the **Worst accepted price**. **Place**. The agent key signs; you see **Order placed** then **Order executed**.

<figure><img src="https://3674012151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2jyfPJ4rcVavAvTU9nL%2Fuploads%2Fgit-blob-b5942cd23a6c10792951f91e6bb1f848e8aa5515%2F03-agent-renew.png?alt=media" alt="confirm"><figcaption><p>Placing the order triggers the agent approval the first time.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
*Your position is OPEN, but the automatic close was refused.* Then it has no TP/SL: set them from Positions with **Place TP / SL**, or close it.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.lockerprotocol.com/browser-extension/hyperliquid-perps/place-an-order.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
