Developer API Specification v2.0

Versioned REST & WebSocket stream endpoints for live predictions, automated trading bots, and account balance reconciliation.

Authentication Protocol: All REST endpoints require X-CSRF-Token or Bearer session token authentication header.
POST /api/predictions.php?action=place_entry

Submits a 60-second binary prediction entry for Even/Odd, Over/Under, or Digit Match.

// Payload:
{ "round_id": 104, "prediction_value": "EVEN", "stake_amount": 10000, "is_demo": 0 }
WSS wss://ws.derivws.com/websockets/v3?app_id=66072

Real-time WebSocket tick stream for Volatility 10, 25, 75, and 100 indices.

// Subscribe:
{ "ticks": "R_10" }
GET /api/user.php?action=get_balance

Fetches authoritative real-money and demo virtual balances from double-entry ledger.