Get All Accounts
GET
Auth required
Get all Options trading accounts
Endpoint
GET
/trading/v1/options/accountsBase URL: https://api.derivws.com
Request & Response
Status Codes
200
OK - Successfully retrieved all accounts
400
Bad request - Invalid request parameters
404
Not found - Resource not found
Error Responses
The API returns structured error responses with detailed information about what went wrong.
400
Bad request{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "Invalid request parameters"
}
],
"meta": {
"endpoint": "/accounts",
"method": "GET",
"timing": 45
}
}404
Not found{
"errors": [
{
"status": 404,
"code": "NotFound",
"message": "Resource not found"
}
],
"meta": {
"endpoint": "/accounts",
"method": "GET",
"timing": 32
}
}Authentication Required
This endpoint requires the Deriv-App-ID header to identify your application.
OAuth2 Scope: trade
About get_accounts
The get_accounts endpoint get all options trading accounts
Account Information
This endpoint returns all Options trading accounts associated with your authentication credentials, including both demo and real accounts.