WebSocket Real Endpoint
GetAuth required
Upgrades the connection to a WebSocket scoped to a real-money Options Trading account. Requires a valid one-time password (OTP) from the OTP endpoint, passed as the otp query parameter. Trades placed over this channel settle against the account's real balance.
Endpoint
Get
/trading/v1/options/ws/realBase URL: https://api.derivws.com
Status Codes
101Switching Protocols - WebSocket connection established
400Bad request
401Unauthorized - Invalid or missing OTP
Error Responses
400Bad request
{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "Invalid request"
}
],
"meta": {
"endpoint": "/trading/v1/options/ws/real",
"method": "GET",
"timing": 10
}
}401Unauthorized
{
"errors": [
{
"status": 401,
"code": "Unauthorized",
"message": "Invalid or missing OTP"
}
],
"meta": {
"endpoint": "/trading/v1/options/ws/real",
"method": "GET",
"timing": 8
}
}Authentication Required
This endpoint requires the
Deriv-App-ID header to identify your application.About ws_real
The ws_real endpoint: Upgrades the connection to a WebSocket scoped to a real-money Options Trading account. Requires a valid one-time password (OTP) from the OTP endpoint, passed as the otp query parameter. Trades placed over this channel settle against the account's real balance.
Any other questions? Get in touch