> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clue.trade/llms.txt
> Use this file to discover all available pages before exploring further.

# Close and flip a position

> Close all or part of a position, close everything at once, or flip from long to short in one slide.

You can close a position whenever you like — all of it or part — or flip it to the other side in one
go. Closing turns your unrealized PnL into real money in your balance.

## Close a position

**1. Open the market**

Go to the market's page — from **Discover**, or by tapping the position on your **Profile**.

**2. Tap Close**

While you hold a position, the buttons at the bottom read **Long more** (or **Short more**) and
**Close**. Tap **Close** to open the **Close Position** sheet.

**3. Choose how much**

The amount slider starts at 100%. Drag it down to close only part of the position. The sheet
shows the **Est. PnL** for that amount, what's **Remaining** afterwards, and the **Fees**.

**4. Choose market or limit**

By default the sheet closes at the current market price. Tap **Market** to switch to **Limit**
and set the price you want to close at.

**5. Slide to close**

Slide **Slide to close** (or **Slide to place order** for a limit). A card confirms it, for
example **Closed BTC Long** with the realized PnL and the exit price.

Image goes here
Close Position sheet
The Close Position sheet on a BTC long: Market selected, Current Price, the Amount slider at 100%, Est. PnL in green, Remaining: None, Fees, and 'Slide to close' at the bottom.
Phone screenshot

A limit close waits on the order book until the price gets there, like any other
[limit order](https://docs.clue.trade/trading/placing-an-order.md#market-and-limit-orders). If you pick a price that's already
been reached, the sheet tells you it will fill right away.

A close can't be smaller than \$10, Hyperliquid's minimum order. If the part you want to close is
worth less, close a bigger share — or all of it.

## Close all your positions at once

On your **Profile**, under **Perps**, tap **Close all**. The sheet lists every open position and the
**Est. realized PnL** if they all close now. Slide **Slide to close all** to close them all at market
price.

Closing at market can't be undone, so the sheet asks for a slide, not a tap. When it's done, a card
says how many closed — for example **Closed 3 positions** — with the total realized.

## Flip a position

A **flip** switches your position to the other side: a long becomes a short of the same size, or the
other way round. Use it when you think the market has turned.

**1. Open Flip**

On the market's page, tap **Flip** under **Your Position**. You'll also find **Flip to …** on a
thesis's detail page.

**2. Check the before and after**

The sheet shows your position now and after the flip, the **Est. realized PnL** from closing
the current side, and the **Est. fees** for both orders. There's no amount or leverage to
choose.

**3. Slide to flip**

Slide **Slide to flip**. You'll see **Closing your Short…**, then **Opening your Long…**, then
**Flipped**.

Image goes here
Flip sheet
The 'Flip to Long' sheet: 'Switch your position from Short to Long', the position now and after with the same coin quantity, Order Market, Est. realized PnL, Est. fees, the note card, and 'Slide to flip'.
Phone screenshot

### What a flip does, step by step

A flip is two ordinary orders, sent one after the other:

1. **Cancel** every open order on that market, including your take profit and stop loss.
2. **Close** your whole position at market price.
3. **Open** the other side at market price — the **same quantity** of the asset, at the **same
   leverage**.

**Example:** You're short 0.5 ETH at 10x. A flip closes the short, then opens a 0.5 ETH long at 10x.

Because a flip cancels your take profit and stop loss, the new position starts without them. Set
fresh ones on the new side if you want them. [Take profit and stop loss](https://docs.clue.trade/trading/take-profit-stop-loss.md).

### When a flip opens smaller — or can't open

Opening the new side needs margin. Clue works out what your balance can carry, including what the
close frees up:

* **Not quite enough?** The flip opens a smaller position, and the sheet tells you the size before
  you slide.
* **Not enough for at least \$10?** The position can't be flipped. The sheet tells you to add funds or
  close it instead.

> [!WARNING]
>
> If the close goes through but Hyperliquid refuses the new order, you're left with no position: you
> see the close's confirmation card and an error message, never **Flipped**. Check the market page,
> and open the new side yourself if you still want it.

## Good to know

* **Prices move.** Estimated PnL and fees are worked out from the current price. The final figures
  may differ slightly.
* **Closing is reduce-only.** A close can only shrink your position — it never opens one the other
  way.
* **Fees apply to each order.** A flip is a close plus an open, so it pays a fee on both.
  See [Fees](https://docs.clue.trade/fees.md).
* **Every close is in History**, as **Close** or **Reduce**, with its realized PnL.
  [History](https://docs.clue.trade/trading/history.md).

## Related

> [card] [Take profit and stop loss](https://docs.clue.trade/trading/take-profit-stop-loss.md)
>
> Let positions close on their own.

> [card] [PnL and ROI](https://docs.clue.trade/trading/pnl-and-roi.md)
>
> How your result is worked out.

> [card] [Placing an order](https://docs.clue.trade/trading/placing-an-order.md)
>
> Open a new position.

> [card] [History](https://docs.clue.trade/trading/history.md)
>
> Every close, with the details.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.