> For the complete documentation index, see [llms.txt](https://docs.degenarena.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.degenarena.app/modifying-and-closing-positions.md).

# Modifying and Closing Positions

Once you've opened a position, you can view it at any time by messaging the bot `/positions`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FyqErtca7DMvvMPwgjtrQ%2Fimage.png?alt=media&amp;token=5b89442b-b4a3-476e-a1de-facb38a3ecbb" alt="" width="375"><figcaption></figcaption></figure>

There, you can click on a specific trading pair, and modify your position.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FpCC3v27aG0EKvKuSDRLL%2Fimage.png?alt=media&amp;token=38f0d92c-74fb-494c-a50a-2b5b08f5d461" alt="" width="375"><figcaption></figcaption></figure>

You will see your current unrealized PNL, along with options to increase position size, close position (either partially or in whole), increase margin, or create new orders such as take profit or stop loss orders.

Let's increase our position size. Click `Increase Position`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FA5PoEdFmUQxTGIgL9ei9%2Fimage.png?alt=media&amp;token=37d9198e-e4c8-4610-8ebb-c68dee29e016" alt="" width="375"><figcaption></figcaption></figure>

Now, choose leverage. Let's stick with 25x, because why not.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FW0oqEXstVwhz6lP3cvk5%2Fimage.png?alt=media&amp;token=e8f49bb9-8219-4e4b-97e8-a5b806129bbd" alt="" width="375"><figcaption></figcaption></figure>

Enter the margin you wish to use to increase your position size, in this case another 25 USDT.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FsW5xbvn9WlTcJC3pWZFR%2Fimage.png?alt=media&amp;token=24f01e54-54c3-487f-86de-bf42f22efb23" alt="" width="375"><figcaption></figcaption></figure>

Double check your trade details, and click `Confirm`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FI6moSXY16xAwZd3BhMO7%2Fimage.png?alt=media&amp;token=cf77942e-cf02-4048-93f0-613534e9895b" alt="" width="375"><figcaption></figcaption></figure>

The add-on position has been opened. Now let's say I want to close. Type `/positions`, and click on the desired pair. Then click `Close Position`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FXhRxm3ZGBYOagCEWGf7j%2Fimage.png?alt=media&amp;token=b9862e00-7ad3-460c-bc18-c2136ecc37d8" alt="" width="375"><figcaption></figcaption></figure>

In this case, I'll choose to close 100% of my position.&#x20;

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FSrpTvVhJ8uZoB8dQe6VQ%2Fimage.png?alt=media&amp;token=cb923201-36bd-4c90-acf2-babf54d817c8" alt="" width="375"><figcaption></figcaption></figure>

I'll click `Confirm`, and see a transaction success, with a sharing card including my realized PNL sent to me and my clan.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FtCBngDUGRdi7jCXe2iRC%2Fimage.png?alt=media&amp;token=d08f447d-9534-4804-9a1d-26ee33c1e523" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.degenarena.app/modifying-and-closing-positions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
