# Extended Farming Module

### Getting Your API Credentials

The API credentials are required for farming and act as your authentication keys. Follow these steps to obtain them:

#### Step-by-Step Guide

**1. Access the Platform**

* Navigate to <https://app.extended.exchange/>
* Connect your wallet and sign the connection request
* Ensure your account shows "Main account" in the Your Accounts section

**2. Generate API Key**

* Go to API Management: <https://app.extended.exchange/api-management>
* Click the **"Generate API Key"** button
* The system will create your unique API credentials

<figure><img src="https://3477217969-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaWiG6XtemfC9IwxonZpa%2Fuploads%2FoY3W0BRrWsMX38UzNjMM%2FScreenshot%202025-11-06%20at%2019.51.29.png?alt=media&#x26;token=9efbcbf1-814e-46ee-bc9d-22cea163718e" alt="" width="563"><figcaption></figcaption></figure>

**3. View API Details**

* Once generated, click **"Show API Details"** button
* A modal window will display all your credentials

<figure><img src="https://3477217969-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaWiG6XtemfC9IwxonZpa%2Fuploads%2FQYS3MwlrEuxiLONyQbTd%2FScreenshot%202025-11-06%20at%2019.51.42.png?alt=media&#x26;token=415acbae-d68b-4f19-a940-caf43b48981a" alt="" width="563"><figcaption></figcaption></figure>

⚠️ **Warning**: Never share your private Stark key with untrusted parties; it provides full access to your account's funds.

**4. Extract Your Credentials**

<figure><img src="https://3477217969-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaWiG6XtemfC9IwxonZpa%2Fuploads%2FuiY2th2u3aC8ePPFrHjM%2FScreenshot%202025-11-06%20at%2019.51.54.png?alt=media&#x26;token=4f99f645-78c5-4586-8572-cf6b6d56b718" alt="" width="434"><figcaption></figcaption></figure>

Copy each of the following values using the copy button (📋):

* **API Key**: Your unique API identifier
* **Stark Key Public**: Public portion of your Stark key (starts with `0x`)
* **Stark Key Private**: Private key for signing transactions (starts with `0x`)
* **Vault Number**: Your vault identifier
* **Client ID**: Your client number

**5. Configure the Farming Module**

* Paste each copied value into the corresponding field in the farming module
* The values will be masked for security once entered

<figure><img src="https://3477217969-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaWiG6XtemfC9IwxonZpa%2Fuploads%2Fs3tOSNnpYKxmOkf4CTWE%2FScreenshot%202025-11-06%20at%2019.53.46.png?alt=media&#x26;token=d343d9f8-0611-4ce5-b854-fb2c36cc619d" alt=""><figcaption></figcaption></figure>

### Module Configuration

#### Select Pair

* **Selection**: Dropdown menu with available trading pairs
* **Options**: All active perpetual futures pairs on Extended

#### Trade Per Hour or Day

* **Description**: Determines how frequently the bot places new trades

#### Leverage

* **Description**: Multiplier for your position size

#### Direction

Choose your trading direction strategy:

* **LONG**: Opens long positions only (betting on price increase)
* **SHORT**: Opens short positions only (betting on price decrease)
* **RANDOM**: Randomly alternates between long and short positions

#### Order Type

* **MARKET**: Immediate execution at current market price
* **LIMIT**: Set specific entry price
* **RANDOM**: Randomly choose between order types

#### Take Profit %

* **Format**: Percentage value
* **Description**: Automatically closes position at specified profit

#### Stop Loss %

* **Format**: Percentage value
* **Description**: Automatically closes position at specified loss

### Module Controls

#### Connect Button

* **Function**: Initiates the connection to Extended Exchange
* **Color**: Green when ready to connect
* **Status**: Validates all credentials before connecting

#### Cancel Button

* **Function**: Closes the configuration modal
* **Warning**: Any unsaved changes will be lost
