// Deriv Third-Party Development & Resources Platform — independent, not affiliated with Deriv //

Automation

Bots & Automation

How automated trading systems are built, what they can and can't do, and where the real risk sits.

What Is a Bot?

Bot, Defined

Software that executes a predefined set of rules automatically, without a person clicking each action.

Automation, Defined

Removing manual steps from a repeated process — in trading, that usually means monitoring data and placing or closing positions based on rules.

How Bots Work

MARKET DATA ▶ BOT LOGIC ▶ DERIV API ▶ ORDER ▲ │ │ ▼ MONITORING ◀───────── RESULT LOGGED

API + Bot Architecture

A bot subscribes to data via the Deriv API, evaluates it against its rules, and sends trade requests when conditions are met.

WebSockets

The persistent connection a bot uses to receive live ticks and send actions without repeatedly reconnecting.

Data Processing

Incoming ticks are filtered, transformed and checked against strategy conditions in real time.

Event-Driven Systems

Bots react to events — a new tick, a filled order — rather than running on a fixed schedule.

Testing

Backtesting against historical data and paper-trading on a demo account before any real stake is involved.

Monitoring

Logging every decision and result so behaviour can be reviewed, not just trusted.

Hosting

Bots typically run on a server or VPS so they can operate continuously, independent of a personal device.

Security

API tokens need the same protection as a password — stored server-side, scoped narrowly, and never committed to public code.

Bot risks

A bot executes its rules exactly as written, including flawed ones. Automation removes manual delay and emotion, but it does not remove market risk, and a poorly tested strategy will lose money automatically and consistently, just faster than a human would.