Deriv API
K

Get All Accounts

GET
Auth required

Get all Options trading accounts

Endpoint

GET
/trading/v1/options/accounts

Base URL: https://api.derivws.com

Request & Response
View Raw

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
  }
}

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.

Click to open live chat support. Get instant help from our support team.