> For the complete documentation index, see [llms.txt](https://docs.dextrabot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dextrabot.com/farm/pacifica-farming-module.md).

# Pacifica 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

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

**1. Access the Platform**

* Navigate to <https://app.pacifica.fi/>
* Connect your wallet and sign the connection request

**2. Generate API Key**

* Go to API Management: <https://app.pacifica.fi/apikey>
* Click the "Generate" button first
* Click "Create" to create your API key

**3. View API Details**

* Your API keys will be displayed on the screen

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

### Module Configuration

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

#### Select Pair

* **Selection**: Dropdown menu with available trading pairs
* **Options**: SOL, BTC, ETH and other active perpetual pairs

#### Trade Per Hour or Day

* **Description**: Determines how frequently the bot places new trades
* **Range**: 1 - 180 trades per hour

#### Leverage

* **Description**: Multiplier for your position size
* **Range**: 1x to 50x

#### Direction

Choose your trading direction strategy:

* **LONG - 20X**: Opens long positions only (betting on price increase)
* **SHORT - 20X**: Opens short positions only (betting on price decrease)
* **RANDOM - 20X**: 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 (e.g., 5)
* **Description**: Automatically closes position at specified loss

<figure><img src="/files/E7kRHNjsKkttMxX3Ngs2" alt="" width="563"><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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dextrabot.com/farm/pacifica-farming-module.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
