> For the complete documentation index, see [llms.txt](https://ostium-labs.gitbook.io/ostium-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ostium-labs.gitbook.io/ostium-docs/ostium-trading-engine/step-by-step-tutorial/editing-a-trade.md).

# Editing a Trade

{% hint style="warning" %}
These docs are deprecated and may be outdated. Please use the new docs: [docs.ostium.com](https://docs.ostium.com/)
{% endhint %}

Select the open trade to:

* Share Trade (PnL Card)
* Add/Remove Collateral
* Edit Take Profit/Stop Loss

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

## Share Trade

The Share Trade feature lets you share an image of your PnL card and a link to track your trade performance in real-time. You can easily share your trade on social media to showcase your performance.

<figure><img src="/files/xwJ9NfJZAnmXxWWPpUtm" alt="" width="375"><figcaption><p>Edit Trade form on Details Tab</p></figcaption></figure>

<figure><img src="/files/KDil71ThcIbOpbY2cd0o" alt="" width="375"><figcaption><p>Pnl card</p></figcaption></figure>

## Edit Trade Collateral

You can **add** or **remove** collateral (margin) from a position, similar to how an isolated-margin account works. These actions don’t affect your position size, incur no fees, and will adjust your liquidation price.

<figure><img src="/files/2A3ehNtPYoqyCm43XoXK" alt="" width="375"><figcaption></figcaption></figure>

### Add Collateral

Adding collateral to your position lowers your leverage, adjusts your liquidation price.

<figure><img src="/files/DY5b9B1OJvOmA2xVtVH1" alt="" width="375"><figcaption><p>Add Collateral, Decrease Leverage</p></figcaption></figure>

### Remove Collateral

Removing collateral from your position increases your leverage, adjusts your liquidation price.

<figure><img src="/files/OpjnILiYA588FsUJJxy5" alt="" width="375"><figcaption><p>Remove Collateral, Increase Leverage</p></figcaption></figure>

### Edit Take Profit

While your trade is open, you can update the take-profit (TP) as many times as you like without any extra costs. Here are the TP ranges for long and short positions:

* **Long**: Market Price < TP < max TP
* **Short**: max TP < TP < Market Price

<figure><img src="/files/LiZx264Kb9TFMZbRue2z" alt="" width="375"><figcaption></figcaption></figure>

### Edit Stop Loss

Just like with TP, you can update your stop-loss (SL) as often as you like. Below are the SL ranges for long and short positions:

* **Long**: Liquidation Price < SL < Market Price
* **Short**: Market Price < SL < Liquidation Price

<figure><img src="/files/FTQKwnQ7sak2lX6iXDH7" alt="" width="375"><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://ostium-labs.gitbook.io/ostium-docs/ostium-trading-engine/step-by-step-tutorial/editing-a-trade.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
