> 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/closing-a-trade.md).

# Closing 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 %}

{% stepper %}
{% step %}

### Identify Closing Trade

Identify the trade you'd like to close and click on "Close" button

<figure><img src="/files/NvAx5PbIPojHwRoUGOnh" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### (Optional) Partial Close

On Ostium, you can partly close your trade. Define **Size to Close** or **Percentage** > "Close" Button

{% hint style="info" %}
The remaining size must be equal to or above the minimum trade size.
{% endhint %}

<figure><img src="/files/ypMv0NpIR4Bjoe6ISoP9" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Fully Close Position

Set 100% in closing percentage > "Close" button

<figure><img src="/files/zDWeHTyc0jvZq1lPU4sH" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Portfolio Stats

That's it! See a summary of your remaining open positions as well as your historical (closed) positions under the Portfolio page:

<figure><img src="/files/TPTPsCOnj43hBKRxOj4q" alt=""><figcaption><p>Portfolio Overview</p></figcaption></figure>

<figure><img src="/files/YsdXj2PjbeDWgOb0vdm3" alt=""><figcaption><p>Position History</p></figcaption></figure>
{% endstep %}
{% endstepper %}
