DBot: Contract Type Conditions

Hi Deriv Community,

The DBot workspace provides has the option for you to select the contract type in the Trade parameters block.

In this contract type, you will see 3 conditions after selecting a specific trade type namely Both, Rise and Fall.


Contract Type: Both

For the Contract Type of Both: The user will have 2 conditions to choose from for the Purchase block in the Purchase Condition Mandatory blocks.


Contract Type: Rise

For the Contract Type of Rise: The user can only choose Rise for the Purchase block in the Purchase Condition Mandatory blocks.


Contract Type: Fall

For the Contract Type of Fall: The user can only choose Fall for the Purchase block in the Purchase Condition Mandatory blocks.


The Contract Type: “Both” option is useful when the DBot user sets up an advanced strategy where the user can determine when to purchase a Rise or when to purchase a Fall:

For example, if you’ve set contract type to Both, add a conditional block in the Purchase Conditions mandatory block to help your bot determine which contract to purchase at each run.

Here’s how to do it:

  1. Head over to the Utility section in the Blocks Menu and select Logic

  1. Add the Conditional block under the Purchase conditions. You can drag the block to the workspace or click on the :heavy_plus_sign: sign.

  1. You would need to define and set the first conditions. This depends on your trading strategy. You can add the purchase block under the purchase condition and set the contract type that you want. Below is an example;

  1. Click on the + on the Conditional block to add a second condition. Set the second condition, add a Purchase block, and set the opposite contract type.

Purcahse conditions

The User can specify 2 different Purchase Conditions, Rise/Fall, on the Conditional block in the Purchase Condition Mandatory Block, where the DBot can purchase the contract with a rise and another with a fall depending on the purchase instruction.

Note: Please note that these options are not supported on mobile.

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