# App

- [How to](https://docs.marginly.com/app/how-to.md): Find out how to use Marginly app
- [Connect a wallet](https://docs.marginly.com/app/how-to/connect-a-wallet.md): Learn how to connect a wallet to Marginly
- [Swap](https://docs.marginly.com/app/how-to/swap.md): Learn how to swap assets in Marginly
- [Approve Spending](https://docs.marginly.com/app/how-to/approve-spending.md): Learn how to approve spending in Marginly
- [Open a Long Position](https://docs.marginly.com/app/how-to/open-a-long-position.md): Learn how to open a long position in Marginly
- [Open a Short Position](https://docs.marginly.com/app/how-to/open-a-short-position.md): Learn how to open a short position in Marginly
- [Withdraw Funds](https://docs.marginly.com/app/how-to/withdraw-funds.md): Learn how to withdraw funds from an open position in Marginly
- [Add Funds](https://docs.marginly.com/app/how-to/add-funds.md): Learn how to add funds to an open position in Marginly
- [Close Position](https://docs.marginly.com/app/how-to/close-position.md): Learn how to close a position in Marginly
- [Increase Leverage](https://docs.marginly.com/app/how-to/increase-leverage.md): Learn how to increase position leverage in Marginly
- [Pay Off Debt](https://docs.marginly.com/app/how-to/pay-off-debt.md): Learn how to pay off debts in Marginly
- [Deposit Liquidity](https://docs.marginly.com/app/how-to/deposit-liquidity.md): Learn how to provide liquidity to a pool in Marginly
- [Withdraw Liquidity](https://docs.marginly.com/app/how-to/withdraw-liquidity.md): Learn how to take liquidity out of a pool in Marginly
- [Add Liquidity](https://docs.marginly.com/app/how-to/add-liquidity.md): Learn how to increase a position in a liquidity pool
- [Smart contract addresses](https://docs.marginly.com/app/smart-contract-addresses.md): Contains addresses for every blockchain Marginly is deployed on
- [Arbitrum](https://docs.marginly.com/app/smart-contract-addresses/arbitrum.md)
- [Blast](https://docs.marginly.com/app/smart-contract-addresses/blast.md)
- [FAQ](https://docs.marginly.com/app/faq.md): Some of the most frequently asked questions are answered here


---

# 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.marginly.com/app.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.
