# Sharwa.Finance Documentation

## Sharwa Docs

- [Margin Account](https://sharwa.gitbook.io/sharwa-docs/margin-account.md): This section covers the basics of margin account.
- [Liquidity Providers](https://sharwa.gitbook.io/sharwa-docs/margin-account/liquidity-providers.md): Liquidity providers earn yield by providing USDC, ETH & WBTC that can be borrowed by Margin Account
- [Insurance Pool](https://sharwa.gitbook.io/sharwa-docs/margin-account/liquidity-providers/insurance-pool.md): Insurance pool designed to protect the liquidity providers in case of a bad debt.
- [Liquidation](https://sharwa.gitbook.io/sharwa-docs/margin-account/liquidation.md): To avoid liquidations traders must keep the margin ratio of their margin account above 105%, otherwise account will be liquidated.
- [Fees](https://sharwa.gitbook.io/sharwa-docs/margin-account/fees.md)
- [Allowed Assets](https://sharwa.gitbook.io/sharwa-docs/margin-account/allowed-assets.md)
- [Security](https://sharwa.gitbook.io/sharwa-docs/margin-account/security.md)
- [Links](https://sharwa.gitbook.io/sharwa-docs/margin-account/links.md): This is the list of official links. Do not click or trust links that aren't in this list.
- [Tokenomics](https://sharwa.gitbook.io/sharwa-docs/tokenomics.md)
- [We don't have a token](https://sharwa.gitbook.io/sharwa-docs/tokenomics/we-dont-have-a-token.md)
- [Margin Account](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account.md)
- [Core Contracts](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts.md)
- [MarginTrading.sol](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts/margintrading.sol.md): This contract allows users to manage margin accounts, provide collateral, borrow, and repay tokens.
- [MarginAccountManager.sol](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts/marginaccountmanager.sol.md): This contract is responsible for creating margin accounts.
- [LiquidityPool.sol](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts/liquiditypool.sol.md): Users can supply WBTC, WETH, or USDC to the liquidity pools to earn interest from borrowers (traders). LPs earn interest rate paid by users of margin account.
- [ModularSwapRouter](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts/modularswaprouter.md)
- [HegicModule.sol](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/core-contracts/modularswaprouter/hegicmodule.sol.md): This contract responsible working with American-style options (powered by Hegic).
- [Toolkits and other contracts](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/toolkits-and-other-contracts.md)
- [OneClick Contracts](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/toolkits-and-other-contracts/oneclick-contracts.md): OneClick Contracts zaps multiple actions into one transaction. You can use this function to enhance your user experience with Sharwa.
- [HegicStopOrders](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/hegicstoporders.md): HegicStopOrders is a system that allows users to delegate the execution of option positions.
- [HegicStopOrders SDK](https://sharwa.gitbook.io/sharwa-docs/for-devs/margin-account/hegicstoporders/hegicstoporders-sdk.md)
- [How to Trade on Sharwa: Complete Guide](https://sharwa.gitbook.io/sharwa-docs/guide/how-to-trade-on-sharwa-complete-guide.md): What you'll learn: Create margin account, open leveraged positions, trade options, and earn yield.


---

# 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, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://sharwa.gitbook.io/sharwa-docs/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.
