> For the complete documentation index, see [llms.txt](https://zed-software.gitbook.io/zed-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zed-software.gitbook.io/zed-docs/bot-setup/tasks.md).

# Tasks

Information about the tasks configuration.

Make sure to read the following **carefully** to not make any unintented mistakes.

These are the current fields of the task file

```csv
taskname,privatekey,wallet_to_copy,stop_loss,take_profit,dynamic_fee,dynamic_fee_level,fixed_fee,sol_buy_amount,buy_percentage,buy_slippage,selling_slippage,task_maximum_buys_per_token,copy_sell_percentage,copy_sell,min_mcap,monitormode,enabled
Task1,XYZ,ABC...DEF,0.3,1.9,false,medium,0.1,0.1,0.5,0.05,0.05,2,true,true,0,false,true
```

{% hint style="danger" %}
Most made mistakes is deleting the headers row, aka the row with the attribute names.&#x20;

**DO NOT DELETE THE FIRST LINE! DO NOT DELETE THE FIRST LINE!**

A **valid** tasks file looks like the example above. (obviously with valid private key and wallet\_to\_copy).

**ALL FIELDS ARE REQUIRED, DO NOT LEAVE ANY FIELD EMPTY.**&#x20;

**Boolean values are lowercase true/false.** Just like with the configuration file.
{% endhint %}

Breaking down each field we get:

* [x] **taskname:** any word you want, to identify tasks and differentiate them from one another.
* [x] **privatekey:** Private key of the wallet that would be used in the task. This is a base58 string, aka ***exported from Phantom***
* [x] **wallet\_to\_copy:** The public address of the wallet you are copying.
* [x] **dynamic\_fee:** This setting is not recommended, as it might make the bot slower. This checks the recommended priority fee for your transaction on the flight , and sets it to that. This uses the helius API, so make sure the heliusURL is filled in the config file.&#x20;

to use it set it to `true` else to `false`

* [x] **dynamic\_fee\_level:** If you enabled the previous setting, then choose from:&#x20;

min, low, medium, high, veryHigh, unsafeMax

* [x] **fixed\_fee:** This is recommended rather than the dynamic fees, the higher this value is, the more fees you will pay. Don't know how much you're actually paying? **Adjust this fee, and check out the average fee you are paying on solscan to estimate it.**
* [x] **sol\_buy\_amount:** The amount of Solana you want to invest in each trade.
* [x] **buy\_percentage:** The percentage that you would like to copy the buy with. \
  If you do not want to use it, and always buy with a fixed amount (sol\_buy\_amount), then set this option to 0.\
  Set this value  between 0 and 1:\
  \- 50% -> 0.5\
  \- 10% -> 0.1\
  \- 100% -> 1

{% hint style="info" %}
Example:\
If the wallet you are copying bought 4 sol, and you configured 0.5 (50%) -> You would buy 2 sol.\
However, the sol\_buy\_amount acts as a max limiter. So if you sol\_buy\_amount was set to 1 sol, you would buy 1 sol rather than 2 sol. If it was 5 sol, you would buy 2 sol.
{% endhint %}

* [x] **buy\_slippage:** The amount of slippage you're willing to overpay for a trade. Make sure you have enough to handle the slippage. i.e. If your buy amount is 1 sol, and your slippage 50%, make sure you have at least 1.5 sol.
* [x] **selling\_slippage:** This is the percentage you are willing to lose when selling. if your slipapge is 50%, then you will only sell successfully if the price when selling hasnt changed by more than 50%

Both slippage options work with values between `0 and 1`.&#x20;

Slippage of:

40% -> 0.4

50% -> 0.5

1% -> 0.01

* [x] **task\_maximum\_buys\_per\_token**

Explained in the Configuration page.

* [x] **copy\_sell\_percentage**

Want to copy the sell percentage of the wallet you're copying? If the other wallet sells 50%, you also sell 50%. If they sell 100% , you sell 100%. Then set this option to `true`.

Else the bot would always sell 100%.

* [x] **copy\_sell**

Want to copy the sells of the other wallet?&#x20;

true -> will copy sells

false -> will not sell

* [x] stop\_loss

Percentage to sell at, 0.9 = sell when price is 90% of entry

0.3 = when price is 30% of entry

* [x] take\_profit

Percentage to sell at, 1.9 = sell when price is 190% of entry

1.3 = when price is 130% of entry

{% hint style="info" %}
Setting stop\_loss or take\_profit to 0 -> Disable Risk Management for this task
{% endhint %}

* [x] **min\_mcap**

This is the minimum market cap in USD, of tokens you want to buy in. If you dont want to use this filter, then simply set it to **0**

* [x] **monitormode**

If this is `true`, the bot wont buy anything, it would just monitor the transactions and print the wallets activites to the console. If false -> it would trade.

* [x] **enabled**

If this setting is off, this task wont be taken into consideration, and would be disabled. to enable/disable set it to `true/false`.
