This is a full demo project to interact with Deriv's WebSocket API. It includes backend and frontend code.
- Open two terminals.
cd backend
npm install
node server.jscd frontend
npm install
npm run dev- Visit http://localhost:5173, paste a Deriv demo API token, then use Dashboard and Trade.
- Use demo tokens for testing.
- This demo does not handle production security, KYC, or fund custody.
- Do not expose production tokens in the client.