# Margin position management

The Sendit margin trading infrastructure is fully built on top of the money-market architecture. Whenever a user executes a margin trade, a loan is effectively issued followed by a trade. The user borrows funds and buys a specific token with it, and hence creating a levered trading position. This is a fully automated process which is completely abstracted away from the user.

As the entire logic is provided by the money-market, a margin position features the exact same position management options as a manual loan.

The next subpages will provide a guide on how to manage your current margin position:

* **Adding collateral to your margin position** to decrease your leverage
* **Withdrawing collateral from your margin position** to increase your leverage
* **Borrow SOL against your margin position** to increase your leverage
* **Repaying the debt of your margin position** to decrease your leverage


---

# 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.sendit.fun/getting-started/tutorials/margin-trading/margin-position-management.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.
