# Closing Margin Account

## "Close" button is not active&#x20;

This means that your Margin Account does not have enough of borrowed asset + interest to be eligible for loan repayment. Please refer to [Loan Repayment](/home/for-borrowers/loan-repayment.md)\
You can either:&#x20;

1. Send Borrowed Amount + Interest to the Margin Account.&#x20;
2. Swap assets inside of Margin Account such that it has Borrowed Amount + Interest.&#x20;

Once it is done. - please refresh the page and try again.&#x20;

When Margin Account is closed, all whitelisted tokens will be returned to your wallet which originated the Margin Account creation (including PT and LP tokens).


---

# Agent Instructions: 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:

```
GET https://docs.arkis.xyz/home/troubleshooting/closing-margin-account.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
