# Lunar Task Creation

{% hint style="info" %}
Currently, the extension **only** works on the same VPS as Lunar
{% endhint %}

{% hint style="info" %}
You will need to create your tasks in Lunar for them to appear in the extension
{% endhint %}

## 1. Create Task & General Settings

* Go to the 'Defi' tab
* Press Create Tasks
* Choose a task name
* Select Defi Extension
* Select the wallets to use

### Amount in SOL <a href="#amount-in-sol" id="amount-in-sol"></a>

* The amount of SOL to exchange for the token

### RPC <a href="#rpc" id="rpc"></a>

* The RPC used for purchasing the token

### Buy Slippage <a href="#buy-slippage" id="buy-slippage"></a>

* The maximum amount of slippage allowed during the trade

### MEV Protection <a href="#max-open-positions" id="max-open-positions"></a>

* Select to use Lunars In-house MEV protection.

### Block Timeout <a href="#max-open-positions" id="max-open-positions"></a>

* If a transaction is not successfully included within a specified number of blocks (X), it will be automatically canceled.

### Custom Webhook <a href="#custom-webhook" id="custom-webhook"></a>

* You can send all notifications about the task to this webhook
* If empty, they will be sent to the webhooks in [settings](https://guide.lunarlabs.gg/getting-started/general-settings)

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

## 2. Spam Settings

### Buy and Sell Retry Tx Delay

* The delay between each tx sent (in ms)

### Min & Max Priority Fees for Buy & Sell

* The priority fee sent for each tx buying & selling the token

{% hint style="info" %}
Priority fee's will be spent on every TX sent, including failed
{% endhint %}

### Buy & Sell  Tx Amount and Retry

#### Tx Amount

* The maximum amount of tx to send per attempt

Tx Retry

* The maximum amount of attempts

{% hint style="info" %}
A tx amount of 3 & a retry of 10 would send up to 30 tx or until a tx is confirmed
{% endhint %}

<figure><img src="/files/vm8aGNpKzkm0zklAzXRE" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

## 3. External Settings

## Buy and Sell Tip

* The amount of SOL used to bribe/tip a provider to increase your tx speed

{% hint style="info" %}
Only spent on successful tx's
{% endhint %}

## Service Providers

* You must select at least one provider for the tip to be used

{% hint style="success" %}
You can use both Bloxrote, Jito & Nextblock together
{% endhint %}

<figure><img src="/files/3MHGAsuLzaXgHMmp8zIp" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

## 4. Take Profit Settings

### Take Profit

#### Field 1 - Position %

* How much of the position to sell

#### Field 2 - Profit %

* How much profit % to trigger the sale

#### Field 3 - New SL

* The new SL once your sale is confirmed

{% hint style="info" %}
You can generate unlimited amount of Take Profit positions
{% endhint %}

<figure><img src="/files/Dl8eqV9PfJW5mN865hGU" alt=""><figcaption><p>Images are for illustrative purposes only</p></figcaption></figure>

## 5. Sell Settings

### Trailing Stop

* A stop loss % that is adjusted according to your take profit positions

### Stop Loss

* The stop loss as a %


---

# 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://guide.lunar.trade/extension/lunar-task-creation.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.
