Get All Accounts
GetAuth required
Get all Options trading accounts
Endpoint
Get
/trading/v1/options/accountsBase URL: https://api.derivws.com
Status Codes
200OK - Successfully retrieved all accounts
400Bad request - Invalid request parameters
401Unauthorized - Invalid or missing authentication
403Forbidden - Access denied
404Not found - Resource not found
504Gateway timeout - Upstream service timeout
Error Responses
400Bad request
{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "Invalid request parameters"
}
],
"meta": {
"endpoint": "/accounts",
"method": "GET",
"timing": 45
}
}401Unauthorized
{
"errors": [
{
"status": 401,
"code": "Unauthorized",
"message": "Invalid or missing authentication credentials"
}
],
"meta": {
"endpoint": "/accounts",
"method": "GET",
"timing": 12
}
}403Forbidden
{
"errors": [
{
"status": 403,
"code": "AccessDenied",
"message": "You do not have permission to access this resource"
}
],
"meta": {
"endpoint": "/accounts",
"method": "GET",
"timing": 15
}
}404Not found
{
"errors": [
{
"status": 404,
"code": "AccountNotFound",
"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: tradeAbout 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.
Any other questions? Get in touch