> For the complete documentation index, see [llms.txt](https://guide.dem.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.dem.exchange/earn/referrals/using-a-friends-referral-link.md). Agents can also search and read this documentation through its [MCP server](https://guide.dem.exchange/~gitbook/mcp).

# Using a Friend's Referral Link

{% hint style="success" %}
Referees do not need to click on the referral link every time they open the Demex app to enjoy the kickback (discount on trading fees).
{% endhint %}

**Step 1**: Click on the referral link shared by your referrer.

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FHPvUzFeFqRc1eP1jZNRq%2FExample%20-%20Referral%20Landing%20(Not%20Connected).png?alt=media&amp;token=e4cc5ef0-1a2b-428b-b2a3-e7b4eea4ee22" alt=""><figcaption></figcaption></figure>

**Step 2**: Connect your wallet.

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FvBizoq2tevGcabmwifNT%2FExample%20-%20Referral%20Success.png?alt=media&amp;token=93a20441-5c5c-48b3-aae1-d0231830bf19" alt=""><figcaption></figcaption></figure>

You can view your kickback rate and other referral details on the Referral page. For instructions on how to generate your unique referral link, click [here](https://guide.dem.exchange/earn/referrals/sharing-your-referral-link.md).

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FICGcQwsrO4NqB22HOmWt%2FScreenshot%202023-02-08%20at%203.52.53%20PM.png?alt=media&amp;token=2a4aeb8b-77e2-482a-8716-eb3a3d7c714f" alt=""><figcaption></figcaption></figure>

**Step 3**: Trade spot or futures on any market to enjoy the kickback (discount on your trades).&#x20;

Click [here](https://guide.dem.exchange/welcome/about-demex.md) to begin your journey as a Demex user!

<figure><img src="https://3548599389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MO-XZjWplLUJPNs07G8%2Fuploads%2FVpyEKyclgdJ7yiQwRJg1%2FExample%20-%20Referral%20Pop%20Up.png?alt=media&amp;token=e0a05174-69f7-4076-9e85-6d5c76b37221" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.dem.exchange/earn/referrals/using-a-friends-referral-link.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
