> For the complete documentation index, see [llms.txt](https://futuresdoc.gitbook.io/perp-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://futuresdoc.gitbook.io/perp-doc/english-1/use-case/one-way-mode-or-hedge-mode.md).

# One-way Mode | Hedge Mode

{% hint style="info" %}
The one-way mode cannot lock long and short positions, but the hedge mode can!
{% endhint %}

## One-way mode

In the one-way mode, a contract is only allowed to hold a position in one direction. When opening a position in the opposite direction, the existing position will be closed first, and then the new position will be opened.

> For example, in the BTCUSDT contract, if you hold a long position of 1 BTC in the one-way mode, and then open a short position of 2 BTC, your position will become a short position of 1 BTC.

## Hedge Mode

In the hedge position mode, a contract can hold positions in both long and short directions at the same time. Opening a position in the opposite direction will open a position in the opposite direction, but positions in the opposite direction will not lead to risk hedging. When the price moves in one direction, the position in this direction will be liquidated.

> For example, in the BTCUSDT contract, if you hold a long position of 1 BTC in the hedge mode, and then open a short position of 2 BTC, your position will become a long position of 1 BTC + a short position of 2 BTC.


---

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

```
GET https://futuresdoc.gitbook.io/perp-doc/english-1/use-case/one-way-mode-or-hedge-mode.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.
