Reset Demo Account Balance
PostAuth required
Reset balance for Options trading demo account
Endpoint
Post
/trading/v1/options/accounts/{account_id}/reset-demo-balanceBase URL: https://api.derivws.com
Status Codes
200OK - Demo balance successfully reset to default amount
400Bad request - Invalid account ID or not a demo account
401Unauthorized - Invalid or missing authentication
403Forbidden - Access denied
404Not found - Account not found
500Internal server error
504Gateway timeout - Upstream service timeout
Error Responses
400Bad request
{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "Only demo accounts can have their balance reset"
}
],
"meta": {
"endpoint": "/accounts/DOT90004580/reset-demo-balance",
"method": "POST",
"timing": 34
}
}401Unauthorized
{
"errors": [
{
"status": 401,
"code": "Unauthorized",
"message": "Invalid or missing authentication credentials"
}
],
"meta": {
"endpoint": "/accounts/DOT90004580/reset-demo-balance",
"method": "POST",
"timing": 12
}
}403Forbidden
{
"errors": [
{
"status": 403,
"code": "AccessDenied",
"message": "You do not have permission to access this resource"
}
],
"meta": {
"endpoint": "/accounts/DOT90004580/reset-demo-balance",
"method": "POST",
"timing": 15
}
}500Internal server error
{
"errors": [
{
"status": 500,
"code": "InternalServerError",
"message": "An internal error occurred"
}
],
"meta": {
"endpoint": "/accounts/DOT90004580/reset-demo-balance",
"method": "POST",
"timing": 67
}
}Authentication Required
This endpoint requires the
Deriv-App-ID header to identify your application. OAuth2 Scope: tradeAbout reset_demo_balance
The reset_demo_balance endpoint reset balance for Options trading demo account
Demo Accounts Only
This endpoint only works for demo accounts. Real accounts cannot have their balance reset via API.
Default Balance
The balance is reset to the default amount of $10,000 USD for demo accounts.
Any other questions? Get in touch