> For the complete documentation index, see [llms.txt](https://guide.rhea.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.rhea.finance/near-chain-guides/margin-trading/guide.md).

# Guide

#### Step 1: Access <https://lending.rhea.finance/marginTrading> and connect your wallet

<figure><img src="/files/FiNOE0w395466otSjKYo" alt=""><figcaption></figcaption></figure>

#### Step 2: Select the market you would like to margin trade:

Example shown using nBTC as the asset choice

<figure><img src="/files/Pr9bK1m2viBiPRYPunL0" alt=""><figcaption></figcaption></figure>

#### Step 3: Navigate the Margin trading Interface.&#x20;

<figure><img src="/files/xnVtt8hhikXOc9zh1kAm" alt=""><figcaption></figcaption></figure>

**Chart on the left indicates price movement, and the interface on the right displays 3 interactive buttons:**&#x20;

1. Long/Short nBTC
2. Stablecoin choice, token balance, input amount for trading
3. &#x20;Leverage Bar

Lets break it down:

1. Users can choose to Long or Short an Asset using the Navigation Bar&#x20;

<figure><img src="/files/olfedRkFAxdGrrv8hEA5" alt="" width="375"><figcaption><p>Long nBTC</p></figcaption></figure>

<figure><img src="/files/2yqBULxRz4TuMFkBVPfT" alt="" width="375"><figcaption><p>Short nBTC</p></figcaption></figure>

2. Pick your asset choice and fill in the desired number&#x20;

<figure><img src="/files/KUKYUPS5lKGyzxLCjBlO" alt="" width="375"><figcaption></figcaption></figure>

3. Adjust the leverage that you are comfortable with. Notice that the liquidation price varies varies depending on the leverage.&#x20;

   Note: Its important to keep track of the liquidation price to ensure your position is not liquidated.

   1. If you go long on an asset, your position will be liquidated if its below the liquidation price
   2. If you shorted an asset, your position will be liquidated if its above the liquidation price&#x20;

<figure><img src="/files/0rHpVctNo0CkDYsBogMH" alt="" width="375"><figcaption></figcaption></figure>

Step 4: Click on the button and confirm the transaction

<figure><img src="/files/NZqAlYSGV4T7IcPvps3R" alt="" width="563"><figcaption></figcaption></figure>

Step 5: Done! Your can track your positions at the bottom of the interface or your one stop dashboard at <https://lending.rhea.finance/dashboard>&#x20;

<figure><img src="/files/EL7uIuFpQuzNwOTSuteA" alt=""><figcaption></figcaption></figure>


---

# 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 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, and the optional `goal` query parameter:

```
GET https://guide.rhea.finance/near-chain-guides/margin-trading/guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
