B Binary Pro Open the app

A Deriv API bot, without writing the code

Every Deriv bot, whoever built it, is a program talking to Deriv's API: it streams ticks, asks for a price, buys a contract and reads the result. Binary Pro gives you that whole loop as drag-and-drop blocks, running in your browser on Deriv's live API. Here is exactly how it works — including what it stores and what it can't do.

Open the bot builder →

How the connection works

  1. You sign in on Deriv's own page. Logging in sends you to Deriv's login at auth.deriv.com using standard OAuth 2.0 with PKCE. You type your Deriv password there, never into Binary Pro.
  2. Deriv sends you back with a session. Deriv redirects to binarypro.app/callback with a one-time authorisation code, which your browser exchanges for an access token.
  3. Your browser opens the trading connection. The token is exchanged with Deriv for a one-time WebSocket URL, and your browser connects to Deriv's options API directly. That socket is your authenticated session: live ticks, prices, purchases and results all travel over it.
  4. The bot runs locally. Your blocks are compiled and executed in the browser tab. On every tick the bot evaluates your conditions, requests a proposal, buys when your rules say so, then applies your staking and stop rules to the result.

No trading server in the middle. Trades go from your browser to Deriv — Binary Pro doesn't proxy them, doesn't hold your funds, and has no way to trade your account when your browser is closed. The flip side: close the tab, or let your phone sleep, and the bot stops.

What is stored, and where

One rule for any Deriv tool, this one included: never paste your Deriv password or an API token into a site you don't trust, and never send them to anyone over chat. A legitimate bot builder signs you in through Deriv's own login page.

Demo first, then real

The account switcher in the app moves between your Deriv demo and real accounts on the same connection. Every feature works on demo, which is where every bot belongs until it has run a few hundred trades and you have tested its limits in the free Deriv bot backtester.

What you can build

Your own logic

Markets, contract types, entry conditions and indicators, as blocks. Step-by-step guide.

Ready-made bots

Twelve free Deriv bot XML files to load, read and edit.

Data before trades

Live last-digit frequency on every market in the digit analysis tool.

For developers: the same API in a few lines

If you would rather write code, the API Binary Pro uses is public. This opens Deriv's unauthenticated options socket and streams Volatility 100 ticks — paste it into a browser console to see it work:

const ws = new WebSocket('wss://api.derivws.com/trading/v1/options/ws/public');

ws.onopen = () => ws.send(JSON.stringify({ ticks: 'R_100' }));

ws.onmessage = event => {
    const data = JSON.parse(event.data);
    if (data.error) return console.error(data.error.message);
    if (data.msg_type === 'tick') {
        const { quote, epoch } = data.tick;
        const last_digit = quote.toFixed(data.tick.pip_size).slice(-1);
        console.log(new Date(epoch * 1000).toISOString(), quote, 'last digit', last_digit);
    }
};

Placing trades needs an authenticated connection and a registered app, which is covered in Deriv's API documentation. A real bot then adds reconnection, proposal handling, contract tracking and your staking logic — the parts Binary Pro's blocks already handle, which is the point of a no-code builder.

Deriv API bot — common questions

Do I need to create a Deriv API token to use Binary Pro?

No. You sign in through Deriv's own login page and the connection is set up for you. There is nothing to copy or paste.

Is Binary Pro an official Deriv product?

No. Binary Pro is independent, built on Deriv's open-source bot and its public API. It is not affiliated with, endorsed by, or operated by Deriv.

Does the bot keep running when I close the browser?

No. The bot runs in your browser tab, so it stops when the tab closes or your device sleeps. Any contract already bought still settles normally on Deriv.

Can I write my own Deriv API bot in JavaScript or Python?

Yes — the API is a documented WebSocket interface usable from any language. The example above is a starting point for JavaScript. Building from blocks is faster if you don't need custom code.

Can a Deriv API bot guarantee profit?

No. An API bot executes your rules exactly, but it cannot change the odds. Synthetic indices come from a random number generator and every contract carries a house edge. Read the risk disclosure.

Build and run it yourself

Binary Pro is free to use, runs in the browser, and works on a Deriv demo account.

Open the bot builder