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

The educational development center

Building in the Deriv Ecosystem

How third-party websites and applications are actually designed, connected to the Deriv API, hosted and kept secure.

Creating a Third-Party Website

Requirements

Start from what the user needs to see or do — not from the tech stack.

Architecture

A typical shape: frontend, an application backend, a database, and an API integration layer.

Frontend

What the user sees and interacts with — charts, forms, dashboards.

Backend

Where API tokens live, requests are made, and business logic runs, away from the browser.

Deriv API Integration

API Connection

Opening and maintaining a WebSocket connection to the Deriv API.

Authentication

Exchanging a user's authorisation for a scoped API token.

WebSockets

Handling a persistent connection: reconnects, subscriptions, and message parsing.

Error Handling

Every integration needs a plan for dropped connections, rate limits and rejected requests.

Hosting

Shared Hosting

Low-cost, limited control — fine for a static informational site.

VPS

More control, suited to bots or backends that need to run continuously.

Cloud (AWS, etc.)

Scalable infrastructure for larger or fast-growing services.

Static Hosting

Vercel, Cloudflare Pages or GitHub Pages — a good fit for information sites like this one.

Every option also needs a domain and a valid SSL certificate before it's ready for real visitors.

Security

API Credentials

Store tokens server-side, in environment variables — never in client-side JavaScript.

Authentication & Authorization

Confirm who a user is, then confirm what they're allowed to do — two separate checks.

CORS, XSS & CSRF

Standard web vulnerabilities that apply to any third-party site just as much as to Deriv's own platforms.

Rate Limiting & Secure WebSockets

Protect your backend from abuse, and always use encrypted (wss://) connections.

Worth internalising

You cannot reliably hide browser developer tools from a determined user. Don't rely on obscuring client-side code to protect sensitive logic or credentials — protect them on the server instead, where the user has no access at all.

Maintenance

Updates

Dependencies and API versions both change over time.

Backups

Regular, tested backups of any database or user data.

Monitoring & Logging

Visibility into errors and unusual activity before users report them.

Version Control

Every change tracked, so any regression can be traced and reversed.