# How to Change the OKX’s Position Type to Long/Short Mode?

Normally, if you have **no positions** in your **Okx’s account** when you use **uTrading** for the **first time**, the position type will automatically switch to **\[Open/Close mode]**, so that the robot can be **started** smoothly.

Of course, it cannot be ruled out that you may also encounter situations where **automatic switching cannot be performed**. Then you need to go to **Okx** to **manually select** the **\[Open/Close mode**] which supports long and short positions at the same time.

Please follow the instructions in the pictures below:

**Step 1*****:*** Open OKX App, log in to your account, click **\[**<mark style="color:blue;">**Trade**</mark>**]** on homepage bottom to enter the trading page, and then Click on the icon in the upper right corner, As follow:

<figure><img src="/files/U6qANwU6JphtwJ47oT9W" alt=""><figcaption></figcaption></figure>

**Step 2*****:*** Click **\[**<mark style="color:blue;">**Settings**</mark>**]** on the page, As follow:

<figure><img src="/files/9es86eNMaBh27NSvTBta" alt=""><figcaption></figcaption></figure>

**Step 3*****:*** Enter the settings page, Select **\[**<mark style="color:blue;">**Position Mode**</mark>**]**, As follow:

<figure><img src="/files/YFsh3IOFKgCFxFCbvWG3" alt=""><figcaption></figcaption></figure>

**Step 4*****:*** Tick **\[**<mark style="color:blue;">**Open/Close Mode**</mark>**]** as a successful modification,  As follow:

<figure><img src="/files/Xz9VoEkJPOM68oSMo4c1" alt=""><figcaption><p>Note: Position type applies to all futures and perpetual swap contracts. To adjust this mode, close all open positions or cancel pending orders.</p></figcaption></figure>

Since uTrading opens long and short positions on the same crypto at the same time, it is necessary to choose **\[Open/Close mode**].

**\[Open/Close mode]**: You can place both open (long/short) and close (long/short) orders. This mode allows you to hold two-way positions.

**\[Buy/Sell mode]**: You can only place buy or sell orders, and hold one-way positions under either isolated or cross margin mode.


---

# 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://help.utrading.io/en/exchange/exchange-faq/change-position-mode/how-to-change-the-okxs-position-type-to-long-short-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.
