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

# Managing Positions

> Adjustments to open positions: TP/SL bounds, collateral mechanics, and worked examples.

While your position is open, you can adjust take-profit and stop-loss targets for free, add collateral to lower leverage, or remove collateral to free up capital. All changes preserve the position. Only collateral removal incurs a fee (\$0.10 oracle).

| Action             | Fee               | Effect                                                         |
| ------------------ | ----------------- | -------------------------------------------------------------- |
| Update Take-Profit | Free              | Changes the price at which your position auto-closes in profit |
| Update Stop-Loss   | Free              | Changes the price at which your position auto-closes at a loss |
| Add Collateral     | Free              | Lowers leverage, moves liquidation price further away          |
| Remove Collateral  | \$0.10 oracle fee | Raises leverage, moves liquidation price closer                |

***

## Take-Profit (TP)

A TP automatically closes your position when the market reaches your target price. Updating it is free and can be done as many times as you want.

* For **longs**: TP must be above the current market price and below the max TP (900% above entry, i.e., entry × 10).
* For **shorts**: TP must be below the current market price and above the max TP (same 10x constraint in the opposite direction).
* TP executes as a **limit close** at your exact target price.
* Automated TP execution does not charge an oracle fee.
* If you don't set a TP, the system applies the 900% cap automatically.

<Accordion title="What if I don't set a TP?">
  Your position remains open until you close it manually or get liquidated. You continue accruing holding costs (rollover or funding). Some traders skip TP for open-ended directional plays and rely on manual exits instead.
</Accordion>

***

## Stop-Loss (SL)

An SL automatically closes your position when the market moves against you past a specified level. Updating it is free.

* For **longs**: SL must be between your liquidation price and the current market price.
* For **shorts**: SL must be between the current market price and your liquidation price.
* SL executes as a **market close** when the mid-price crosses your level. Slippage is possible in volatile conditions.
* Automated SL execution does not charge an oracle fee.
* You cannot set an SL beyond your liquidation price.

<Accordion title="Can I move my SL to break-even?">
  Yes. Once your trade is in profit, you can move your SL to your entry price. This caps downside to zero on the position while keeping upside open. Free to adjust, and you can move it again at any time.
</Accordion>

***

## Adding Collateral

Deposit additional USDC into an open position to lower effective leverage and push your liquidation price further away. This costs nothing.

**Example**: You have a 10x long on ETH with 100 USDC collateral (1,000 USDC notional). You add 50 USDC:

* New collateral: 150 USDC
* New effective leverage: 1,000 / 150 = \~6.7x
* Liquidation price moves further from current market

***

## Removing Collateral

Withdraw USDC from an open position back to your wallet. This raises your effective leverage and moves your liquidation price closer. Costs \$0.10 (oracle fee to fetch the current price for recalculation, deducted from your collateral).

You cannot remove collateral below the minimum margin requirement.

**Example**: Same 10x position (100 USDC, 1,000 USDC notional). Price rises 10%, your collateral is now \~200 USDC. You remove 25 USDC:

* New collateral: \~174.90 USDC (25 removed, \$0.10 oracle fee)
* New effective leverage: 1,000 / 174.90 = \~5.7x
* Liquidation price moves closer to current market

***

## Holding Costs While Open

Positions accrue **<Tooltip tip="Cost of holding a position over time. Accrues continuously per block based on underlying carry costs plus a carry premium.">rollover fees</Tooltip>** continuously while open. Rollover applies to all pairs and accrues per block, reducing your effective collateral over time. Depending on current market skew, the rollover rate can be positive for one side, meaning you collect rather than pay.

On multi-day positions, holding costs can materially affect PnL and bring your liquidation price closer to the market. Monitor the Positions panel for current accrued fees.

See [Fees](/traders/reference/fees) for formulas, rate sources, and worked examples.

***

## FAQ

<Accordion title="Can I change my leverage after opening?">
  Not directly. Leverage is fixed at open. However, adding collateral lowers your effective leverage, and removing collateral raises it. Adding 50 USDC to a 100 USDC position (10x) changes effective leverage to \~6.7x. Adding is free; removing costs \$0.10.
</Accordion>

<Accordion title="Do TP and SL updates cost anything?">
  No. Update them as many times as you want at no cost. Only removing collateral incurs a \$0.10 oracle fee.
</Accordion>

<Accordion title="What happens if holding fees exceed my collateral?">
  Your position is liquidated. Keeper bots monitor all positions continuously and trigger liquidation when collateral falls below the threshold. You do not receive remaining collateral after liquidation. See [Liquidation](/traders/trading/liquidation).
</Accordion>

***

<Note>
  **Building this programmatically?** The Builder SDK exposes [`getOpenPositions()`](/developer/reference/get-open-positions), [`updateCollateral()`](/developer/reference/update-collateral), and [`modifyOrder()`](/developer/reference/modify-order) for managing positions from code. See [Manage Positions](/developer/traders/manage-positions).
</Note>

## What to Read Next

* **[Closing a Trade](/traders/trading/closing-a-trade)** — Full and partial closes, and what happens to your collateral.
* **[Fees](/traders/reference/fees)** — Opening, rollover, funding, and oracle fee details.
* **[Liquidation](/traders/trading/liquidation)** — Thresholds, formulas, and how to avoid it.
