# Close Position

|                          |                                                           | Example                                                                        |
| ------------------------ | --------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **`close`**              | Close the position for the focussed instrument completely |                                                                                |
| **`close <instrument>`** | close any position                                        | *`close ethusdt`*                                                              |
| **`close <side>`**       | Close a specific side if in hedge mode                    | <p><em><code>close long</code></em>, <br><em><code>close short</code></em></p> |
| **`close <size>`**       | Close a portion of the position                           | *`close 100`*, *`close 33%`*                                                   |

{% hint style="info" %}
You can use the variable **$size** instead of typing a number directly. See [Variables](/documentation/terminal-cli/overview.md#variables) for more details
{% endhint %}


---

# 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.insilicoterminal.com/documentation/terminal-cli/close-position.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.
