# Asterdex Farming Module

Set up automated farming on **Asterdex** by connecting your API keys, selecting a pair, defining orders per hour, leverage, direction, and optional TP/SL. This guide walks you through every screen in the flow, step‑by‑step.

> **At a glance**
>
> 1. Buy subscription → 2) Enable Trading on Asterdex → 3) Create API keys → 4) Paste keys into the module → 5) Configure settings → 6) Start.

***

### 1) Buy a Subscription

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

To unlock farming you need an active subscription.

* Click **Get Subscription** on the banner.
* The button shows the current price (**0.10 ETH**). Complete the on‑chain checkout.
* Once the transaction confirms, the subscription warning disappears and the form becomes usable.

**Troubleshooting**

* If the banner still says you need a subscription, refresh the page after your transaction confirms on‑chain.

***

### 2) Enable Trading on Asterdex

Before API orders can execute, trading permissions must be enabled on your Asterdex account.

* Click **Enable Trading** (top of the form).
* You’ll be redirected to Asterdex. Follow the on‑screen prompt to enable trading. When done, return to the Farming Module.

> Tip: You can always click **Go to Asterdex** from the module to open the exchange quickly.

***

### 3) Create Your API Keys (on Asterdex)

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

You’ll need a **Key** and a **Secret** with trading permission enabled.

1. Open Asterdex → **API Management**.
2. Click **Create API Key**.
3. **Permissions**: enable **Trade**. Keep **Withdraw** **disabled** for safety.
4. Copy the **API Key** and **API Secret**. Store them securely.

**Security Reminders**

* Never share keys publicly. Treat them like a password.
* If you suspect exposure, **delete** the key in Asterdex and create a new one.

***

### 4) Connect Keys in the Farming Module

Back in the module, paste the keys:

* **API Key**: paste your Asterdex API Key.
* **API Secret**: paste your Asterdex API Secret.
* You can use the eye icon to show/hide the value while pasting.

If you need guidance, click **How to get API key?** above the inputs.

**Common errors**

* **“API-key format invalid.”** → The key/secret is mistyped or incomplete. Re‑copy without spaces and ensure you used the correct key type from Asterdex.

***

### 5) Configure Your Farming Settings

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

This section mirrors the fields you see on the screen.

#### a) Select Pair

Choose a symbol from the **Select Pair** dropdown (e.g., **ASTERUSDT**). Badges like **50×** indicate the pair’s maximum available leverage.

#### b) Order Per Hour

How many orders the bot will place per hour. Example placeholder text shows **e.g., 10 (max 180)**.

> Higher numbers create more frequent order placements within your risk limits. Respect exchange‑side rate limits and your own strategy.

#### c) Leverage

Enter your desired leverage (e.g., `4`). Below this field, you’ll see helpful info like tier range or trading limits — they vary by coin and leverage.

#### d) Direction

Choose **LONG** or **SHORT**. The button label may show the effective leverage (e.g., **LONG – 4×**, **SHORT – 4×**).

#### e) Optional Risk Controls

* **Take Profit %** — Close the position once this profit percentage is reached (e.g., **5%**).
* **Stop Loss %** — Close the position if price moves against you by this percentage (e.g., **5%**).

#### f) Start / Cancel

* Click **Start** to launch farming with the current configuration.
* Click **Cancel** to exit without starting.


---

# Agent Instructions: 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:

```
GET https://docs.dextrabot.com/farm/asterdex-farming-module.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.
