> For the complete documentation index, see [llms.txt](https://nolo-bot.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nolo-bot.gitbook.io/docs/refer-to-earn/referral-code-setup.md).

# Referral Code Setup

By referring Discord servers, you'll be able to earn each time a trade is taken by that server's members. Below are the instructions to setup your referral code.

### Create your referral code

To create your referral code, you need to send a direct message to the NoloBot on Discord.&#x20;

1. Join the [NoloBot Discord server](https://discord.com/invite/BmBbKY6Rn9) and find the bot in the members' list.&#x20;

{% hint style="info" %}
If you're already a member of a Discord server that has the NoloBot installed, you can sent a direct message to the bot there.&#x20;
{% endhint %}

2. In the command line of the DM with the bot, type the command **/config**&#x20;
3. Click on "Referral Configs". You will be prompted to create your referral code.&#x20;
4. You should see a message with your **Referral Account** details regarding the servers you referred.&#x20;

**You're all set! You can now share the referral code that you create 🌴**&#x20;

Share the following guide to the servers you onboard and don't forget to give them your referral code:&#x20;

{% content-ref url="/pages/g9qTTGcZ7X4ZKJdd9U9o" %}
[NoloBot Server Install Instructions](/docs/server-and-user-setup-instructions/nolobot-server-install-instructions.md)
{% endcontent-ref %}

### Referral Fees

| Type of trade | Fees    | Example                                                                         |
| ------------- | ------- | ------------------------------------------------------------------------------- |
| Perp          | 2.2 bps | For a perp swap volume of $100m traded on a server you referred, you earn $22k. |
| Spot          | 10 bps  | For a spot swap volume of $100m traded on a server you referred, you earn $10k. |

The fees collected will be deposited on your NoloBot (PERP or SPOT?) account automatically. You can withdraw them to your wallet by typing the command **/config** and clicking on withdraw from (spot account.&#x20;

**And with NoloBot's referrals, you earn in perpetuety 🐶**

### Step by step demo

<figure><img src="https://2128606466-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRq9rE1EIwlkZq9SYUwJU%2Fuploads%2FqiK0MHal7sDZi5BHOx48%2FReferral%20step-by-step.gif?alt=media&amp;token=9cf354ea-fc80-45cd-8997-9b8d563284c1" alt=""><figcaption></figcaption></figure>
