# 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
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

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

```
GET https://docs.degenarena.app/index.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.

---

# Getting Started

First, create an account on **Degen Arena** by visiting <https://t.me/degenarenabot>.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2F34sDZPxIs1GbY3soNMoR%2Fimage.png?alt=media&amp;token=a5fb9498-deb0-4a68-98db-f4d3d3b73df6" alt="" width="375"><figcaption></figcaption></figure>

Click the `Start` button and a secure wallet is automatically created for you with Turnkey. Click the wallet address to automatically copy it to your clipboard.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FPdVs2Q0ESO6Q3FaBJcD9%2Fimage.png?alt=media&amp;token=046a5249-a805-4876-a007-49ceb545453a" alt="" width="375"><figcaption></figcaption></figure>

Fund the wallet by sending USDT to the Injective address provided by the bot. To get USDT on Injective, visit [bridge.injective.network](https://bridge.injective.network), where you can easily bridge USDT in from Ethereum. For ease of onboarding, you can even change the recipient address to your new Degen Arena address.

Once USDT arrives in your wallet, the bot will give you a notification, and you're ready to begin trading. Don't worry, you don't need INJ. Gas is on us. You can immediately begin trading, but of course Degen Arena is more fun with friends.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FGKHoeE9aUPNdsRnaWaxE%2Fimage.png?alt=media&amp;token=38244cee-0c58-4e4a-ba45-c2cd7ee64605" alt="" width="375"><figcaption></figcaption></figure>

You can view a list of available markets at any time by messaging the bot with `/markets`. You can scroll from page to page by clicking the buttons beneath the list.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FLqsm85XL0aTpaAjHDRjM%2Fimage.png?alt=media&amp;token=779c38d6-a1be-4e1c-a161-17db6aad5036" alt=""><figcaption></figcaption></figure>


# Joining or Creating a Clan

If you're in a Telegram group that has already enabled Degen Arena in one of the ways described below, you can simply join that group's clan with the `/join` command.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2Fr2DVwPwebBay7Oh0bfSu%2Fimage.png?alt=media&amp;token=1c51d5ce-01c3-4019-9126-cf6dd0a77a0a" alt="" width="375"><figcaption></figcaption></figure>

You can also manage your clans by sending `/clans` to the bot, where you can create a new clan, switch between clans, or leave your current clan.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2F3mYNRs0cyg3CPxaEVa96%2Fimage.png?alt=media&amp;token=09f9984e-624e-4755-96dd-74514dd27fc8" alt="" width="375"><figcaption></figcaption></figure>

If Degen Arena has not yet been added to a group, you can add the bot to a group in one of three different ways.

<div data-full-width="false"><figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FvJsEcNTt5btPDFtJqTgs%2Fimage.png?alt=media&amp;token=98c9e303-e654-4044-95f7-0236f8469836" alt="" width="375"><figcaption></figcaption></figure></div>

First, go to the bot, click the three dots in the upper right corner, and click `Add to Group`. Choose the desired group, and you're good to go. Another way is by messaging @degenarenabot directly with the `/clan` command as described above, clicking `Create a new Clan`, choosing a Telegram group that you're part of, and adding the bot to the group. The last way is by going to a group, and typing the command `/start@degenarenabot`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FQ7VbUVUfUJzRycAd7LLc%2Fimage.png?alt=media&amp;token=3e284dc0-7806-4496-b2f3-6dd69f91ff85" alt="" width="375"><figcaption></figcaption></figure>

And that's it. Now, you'll see what all your fellow group members are up to, and vice-versa. Try not to get rekt.


# Opening a Position

Once you've funded your account with USDT, you can immediately open a long or short position by messaging @degenarenabot.&#x20;

Let's demonstrate how to open a 25x INJ long position, with 50 USDT margin.

The quick way: message @degenarenabot `/long INJ 25x 50` and click Confirm.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FsDEQGgq7JUcNmrqryhJo%2Fimage.png?alt=media&amp;token=8798846d-b7bd-44c3-b128-cfc84fabf410" alt="" width="375"><figcaption></figcaption></figure>

If you want to see all the options available to you, take the scenic route. First, message `/long` to the bot.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FbU96KnIi71eAagu9UYUQ%2Fimage.png?alt=media&amp;token=c1e169ac-863f-428d-a8d7-6353ac56675c" alt="" width="375"><figcaption></figcaption></figure>

Reply with the ticker. For convenience, you can reply `INJ` instead of `INJ/USDT PERP` and the bot will know what you're referring to. As Degen Arena currently only supports perpetual futures, it won't get confused.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FsEohrAVxPza7QGXUZNUY%2Fimage.png?alt=media&amp;token=77b46865-3465-4255-83f0-667e4352078a" alt="" width="375"><figcaption></figcaption></figure>

Choose your margin by entering an amount or clicking one of the available options from the prompt. In this case, we'll choose 25x.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2F52Z86H4L76pCqXJrlBqz%2Fimage.png?alt=media&amp;token=00d18b2a-c3f1-4b72-b797-0550c9b68c33" alt="" width="375"><figcaption></figcaption></figure>

You'll then be prompted for the amount of margin you'd like to use. Let's use 50 USDT. Don't worry about gas, we've got you covered.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2F3CcTqNDdGfksqQiYvlmG%2Fimage.png?alt=media&amp;token=2617cab2-fe79-4d27-b1b7-b45df55a1fa4" alt="" width="375"><figcaption></figcaption></figure>

Click "Confirm" and wait for the position to be opened.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2Fd6oqmMOlYC42oymZSBlS%2Fimage.png?alt=media&amp;token=730b7a46-c297-404c-8391-61617b13972e" alt="" width="375"><figcaption></figcaption></figure>

Just as quickly as the position is opened, you'll receive a graphic like this from the bot, and if you're part of a group it will also be sent to that group. Because trading is more fun when your friends hold you accountable.


# Modifying and Closing Positions

Once you've opened a position, you can view it at any time by messaging the bot `/positions`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FyqErtca7DMvvMPwgjtrQ%2Fimage.png?alt=media&amp;token=5b89442b-b4a3-476e-a1de-facb38a3ecbb" alt="" width="375"><figcaption></figcaption></figure>

There, you can click on a specific trading pair, and modify your position.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FpCC3v27aG0EKvKuSDRLL%2Fimage.png?alt=media&amp;token=38f0d92c-74fb-494c-a50a-2b5b08f5d461" alt="" width="375"><figcaption></figcaption></figure>

You will see your current unrealized PNL, along with options to increase position size, close position (either partially or in whole), increase margin, or create new orders such as take profit or stop loss orders.

Let's increase our position size. Click `Increase Position`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FA5PoEdFmUQxTGIgL9ei9%2Fimage.png?alt=media&amp;token=37d9198e-e4c8-4610-8ebb-c68dee29e016" alt="" width="375"><figcaption></figcaption></figure>

Now, choose leverage. Let's stick with 25x, because why not.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FW0oqEXstVwhz6lP3cvk5%2Fimage.png?alt=media&amp;token=e8f49bb9-8219-4e4b-97e8-a5b806129bbd" alt="" width="375"><figcaption></figcaption></figure>

Enter the margin you wish to use to increase your position size, in this case another 25 USDT.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FsW5xbvn9WlTcJC3pWZFR%2Fimage.png?alt=media&amp;token=24f01e54-54c3-487f-86de-bf42f22efb23" alt="" width="375"><figcaption></figcaption></figure>

Double check your trade details, and click `Confirm`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FI6moSXY16xAwZd3BhMO7%2Fimage.png?alt=media&amp;token=cf77942e-cf02-4048-93f0-613534e9895b" alt="" width="375"><figcaption></figcaption></figure>

The add-on position has been opened. Now let's say I want to close. Type `/positions`, and click on the desired pair. Then click `Close Position`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FXhRxm3ZGBYOagCEWGf7j%2Fimage.png?alt=media&amp;token=b9862e00-7ad3-460c-bc18-c2136ecc37d8" alt="" width="375"><figcaption></figcaption></figure>

In this case, I'll choose to close 100% of my position.&#x20;

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FSrpTvVhJ8uZoB8dQe6VQ%2Fimage.png?alt=media&amp;token=cb923201-36bd-4c90-acf2-babf54d817c8" alt="" width="375"><figcaption></figcaption></figure>

I'll click `Confirm`, and see a transaction success, with a sharing card including my realized PNL sent to me and my clan.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FtCBngDUGRdi7jCXe2iRC%2Fimage.png?alt=media&amp;token=d08f447d-9534-4804-9a1d-26ee33c1e523" alt="" width="375"><figcaption></figcaption></figure>


# Advanced Orders

Let's say you want to add a take profit or stop loss order to an existing position. First, view your positions with `/positions` and then click on `Orders`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FyOSw8HLFprc6mY9Ce7y0%2Fimage.png?alt=media&amp;token=66040cf6-931b-49b6-b0cb-8e6af1ccef2d" alt="" width="375"><figcaption></figcaption></figure>

If you have no open orders, you'll see a blank page like this. To add a stop loss, click the `Add +` button to the right of `INJ/USDT STOP LOSS`.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2Fe4zOIAeX6J5UyMu4uQ9z%2Fimage.png?alt=media&amp;token=14cb312f-b8c7-45b3-8ce5-fb3a6bda8a43" alt="" width="375"><figcaption></figcaption></figure>

You'll then see a summary of your open position, with some pre-filled percentages. Of course, you can type a more precise percentage in the text box instead of clicking one of the boxes. In this case, let's choose 100%, enter a trigger price of 11.60, and click confirm.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2Fknpm4ZboC3eSEzVvDpRy%2Fimage.png?alt=media&amp;token=76941aef-d122-4ce2-a1bb-3b47de767c3d" alt="" width="375"><figcaption></figcaption></figure>

Once the order has been placed, you'll see an updated list of open orders reflecting the new one.

<figure><img src="https://1259897132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhWyOSPLg35ASYVhRKHyy%2Fuploads%2FEfDt67BcWby4dCT4L6ML%2Fimage.png?alt=media&amp;token=a193a9f8-b54c-44f7-89a8-9e5069f6f1ba" alt="" width="375"><figcaption></figcaption></figure>


# Commands

You can view the available commands any time by messaging @degenarenabot the `/help` command. Here is an exhaustive list of commands and what they do:

* `/positions` - View your current positions
* `/balance` - View your balances and wallet address
* `/long` - Open a long position
* `/short` - Open a short position
* `/close` - Close a position
* `/orders` - View your current orders
* `/take_profit` - Add a take profit for a position
* `/stop_loss` - Add a stop loss for a position
* `/margin` - Change position's margin
* `/chart [asset]` - Show asset price chart (enter the asset name after the command, before sending)
* `/clans` - Manage your clan memberships
* `/settings` - Change your account settings
* `/send [address] [amount] [denom]` - Send funds to another wallet (enter the address, amount, and denom after the command, before sending)
* `/markets` - View list of available perp markets
* `/pnl` - View your PNL for the current week
* `/top_members` - View the performance of fellow clan members
* `/top_players` - View the performance of all Degen Arena traders
* `/top_clans` - View the weelkly performance of all competing clans


# FAQs

**Are my funds secure?**

Absolutely. Private keys are stored and encrypted via Turnkey, the industry standard for security, which is also used for the Helix Mobile app. Only you have access to your private key as it is stored with Turnkey’s verifiably secure enclaves, and encrypted with your Telegram user ID.

**How do I withdraw funds?**

Message @degenarenabot with the `settings` command, click "Export private key" and follow the commands. Do not under any circumstances share your private key with anyone, including anyone who purports to be from the Injective team. Nobody from Degen Arena, Injective, or Helix will ever ask for your private key. Ever.

**What fees do I pay on Degen Arena?**

There are no fees for sending or receiving funds, and there are no gas fees for transactions on Degen Arena. The trading fees mirror those on Helix, so 0.05% for taker trades, and -0.005% for maker trades, though the vast majority of trades on Degen Arena are taker trades.

**Who can I contact for help?**

You can tweet or message @DerekGenson on Telegram. If you're nice, he might even add you to his clan!


