# Limit order: short/long

There are three mandatory fields when setting up a limit order:&#x20;

1. The limit price - the price at which you wish your order to be filled.
2. The margin.
3. The leverage.

{% hint style="info" %}
When shorting, you cannot set a price higher than the current price, and when longing, you cannot set a price lower than the current price.
{% endhint %}

We will illustrate how to open a position at a limit price with a long position. The process is the same for shorts; simply click on “Short” on the home screen. When you click on “Long,” this is the form you’ll see:

{% embed url="<https://mass-assets.lon1.cdn.digitaloceanspaces.com/Documentation/limit-long-hl.mp4>" %}


---

# Agent Instructions: 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:

```
GET https://docs.mass.money/general/perps/limit-orders/limit-order-short-long.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
