> For the complete documentation index, see [llms.txt](https://docs.afx.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.afx.xyz/trading-rules/position-modes.md).

# Position Modes

AFX supports two position modes: **One-Way Mode** and **Hedge Mode** (Two-Way). The position mode setting applies globally to all USDC-margined perpetual contracts.

## One-Way Mode

In One-Way mode, you can hold either a long **or** a short position on a given contract — not both simultaneously. Orders specify a size and direction only; there is no distinction between "open" and "close."

* Submitting an order in the opposite direction of your current position will reduce or close the existing position, and may open a reverse position if the order size exceeds the current position size.
* **Reduce Only** orders are available in this mode, ensuring that an order will only decrease your current position without opening a reverse position.

## Hedge Mode

In Hedge Mode (Two-Way), you can hold both a long and a short position on the same contract simultaneously where the mode is available. The order panel provides separate "Open" and "Close" tabs.

* Long and short positions are managed independently, each with their own entry price and margin.
* In Hedge Mode with Cross Margin, both positions share the account equity for liquidation purposes, but the liquidation price is calculated considering the net exposure.
* Position mode **cannot** be changed while you have any open positions or active orders (including conditional orders). You must close all positions and cancel all orders first.


---

# 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://docs.afx.xyz/trading-rules/position-modes.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.
