# Market order: short/long

We will illustrate how to open a position at market price with a long position. The process is the same for shorts; you just need to click on “Short” on the home screen. When clicking on long, this is the form that you'll see:&#x20;

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

There are two mandatory field there to open a position:&#x20;

1. Your margin in USDC
2. Your leverage&#x20;

{% hint style="info" %}
The minimum position size must be $10.
{% endhint %}

***

#### Take profit / Stop loss

An optional field appears at the bottom of the form. By clicking “Add,” you can include take-profit and stop-loss orders to your position.&#x20;

A take-profit or stop-loss order will automatically close your position when the underlying asset reaches a specific price.

{% hint style="info" %}
When opening a long position, your SL order cannot be set at a price lower than your estimated liquidation price. Similarly, when opening a short position, it cannot be set at a price higher than your estimated liquidation price.
{% endhint %}

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

{% hint style="info" %}
You can always edit your TP/SL after the position is open. You can learn more about it [there](/general/perps/market-orders/edit-tp-sl.md).&#x20;
{% endhint %}


---

# 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/market-orders/market-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.
