# DBot: Adding Mandatory Block from the Blocks menu

**URL:** <https://community.deriv.com/t/dbot-adding-mandatory-block-from-the-blocks-menu/38111>\
**Category:** Deriv Bot\
**Tags:** dbot\
**Created:** [October 19, 2022, 8:20am UTC](https://community.deriv.com/t/dbot-adding-mandatory-block-from-the-blocks-menu/38111 "2022-10-19T08:20:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deriv\_adminN5](https://sea2.discourse-cdn.com/flex020/user_avatar/community.deriv.com/deriv_adminn5/32/5126_2.png) [@Deriv\_adminN5](https://community.deriv.com/u/Deriv_adminN5)\
**Post date:** [October 19, 2022, 8:20am UTC](https://community.deriv.com/t/dbot-adding-mandatory-block-from-the-blocks-menu/38111/1 "2022-10-19T08:20:57Z")

</div>

Hi Deriv Community! ✨

If you received the error “One or more mandatory blocks are **missing** from your workspace. Please **add** the required block(s) and then try again.” You can add the block from the **Blocks menu**.

_You may refer to this post further for the error message above:_

> [@DBot : Mandatory Block Missing/Disabled (Error message)](https://community.deriv.com/t/mandatory-block-missing-disabled-in-dbot/38107):
>
> Hi Deriv Community! sparkles If you see any of the error messages below in your Journal section, this means that the mandatory blocks in your DBot workspace are either missing or disabled. Error messages: One or more mandatory blocks are disabled from your workspace. Please enable the required block(s) and then try again. One or more mandatory blocks are missing from your workspace. Please add the required block(s) and then try again. There are 4 Mandatory Blocks in the DBot workspace. Th…

## Mandatory Blocks

* * *

### **1. Trade Parameters**

The **Trade Parameters** are important in defining the parameters of your contract for instance the market, trade type, contract type, and many more to set up your DBot.

If this block is missing, you can add it by searching for **Trade parameters** and drag the trade parameter block to the workspace

 ![Trade parameter](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/f/ffeb229d77032a5375b605a835d0a3985ce9ffcc.jpeg)

Or click on the **set up your trade** section in the **Blocks menu**.

 ![Set up your trade](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/2/26a5d3fbc3bf4c08ea576ef23ca4457eaef3816c.jpeg)

* * *

### **2. Purchase conditions**

The **Purchase Conditions** allow you to specify the contract type and conditions. As such, you may also search this using the search bar

 ![Purchase conditions](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/2/28637a2301d8f6ea7324a14dc19d6c5b465d3ade.jpeg)

Or click on the **Purchase contract** section in the **Blocks menu** and drag the block to the workspace.

 ![Purchase contract](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/2/21b53736b4cc93a11870163f18450f02445d6daf.jpeg)

* * *

### **3. Restart trading conditions**

The **Restart trading conditions** block is where you can decide if your bot should continue trading. This block gets the last trade information and result, then trades again should it meet the set conditions.

You can find this by searching **Restart trading conditions** in the search bar

 ![Restart Trading Conditions](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/3/39fffca388143b5fed2ef5bd40d8a9da34ff8b79.jpeg)

Or select the **Trade again** section in the **Blocks menu** and drag it to the workspace.

 ![Restart Trading Conditions](https://us1.discourse-cdn.com/flex020/uploads/deriv/original/2X/7/7b15ffd24b042e954c8e54bc7bf465f20626dd88.jpeg)

Please be reminded that we do provide the DBot on mobile via an internet browser, however, certain functions are not supported. For instance, adding blocks are not available via mobile. Therefore, for a better experience trading using the DBot platform, we recommend using your desktop to do so.

If you have any questions, please visit our Help Centre or contact us via Live Chat and WhatsApp.

> **[Help Centre | Frequently Asked Questions | Deriv](https://deriv.com/help-centre)**
>
> Have questions on your trading account, how our trading platforms work or about trading? Read our FAQ’s or contact us through Deriv live chat.

---

<div class="post-metadata">

**Author:** ![Deriv\_adminN5](https://sea2.discourse-cdn.com/flex020/user_avatar/community.deriv.com/deriv_adminn5/32/5126_2.png) [@Deriv\_adminN5](https://community.deriv.com/u/Deriv_adminN5)\
**Post date:** [October 19, 2022, 8:21am UTC](https://community.deriv.com/t/dbot-adding-mandatory-block-from-the-blocks-menu/38111/2 "2022-10-19T08:21:05Z")

</div>


