> For the complete documentation index, see [llms.txt](https://docs.rollie.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rollie.finance/getting-started/trade/closing-trades.md).

# Closing Trades

To close a trade on Rollie Finance, follow these steps:

1. Locate the trade you want to close in the "Open Orders" section on the dashboard. This section will display all your active positions.
2. You will find an X button on the right-hand side of the trade. Click on this button to initiate the trade closure process.
3. Confirm the transaction using your Metamask wallet. A prompt will appear in your wallet asking for confirmation to close the trade. Follow the required steps and confirm the transaction.
4. Wait for the confirmation of the trade closure. You will receive this confirmation in your wallet. Once the transaction is confirmed, your trade will be closed, and you will no longer have an active position in that particular trade.
5. It's important to note that closing a trade will result in the realization of any profits or losses associated with that trade. Consider your risk management strategy and current market conditions before closing a trade.


---

# 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://docs.rollie.finance/getting-started/trade/closing-trades.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.
