Options

API changes - Update to Trading passwords.

Dear developers,

We will be replacing the trading password with individual MT5 and Deriv X passwords. This means clients will be using:

The MT5 password to log in to their MT5 accounts
The Deriv X password to log in to their Deriv X accounts

Starting 16 August 2021, we will be adding these new parameters in the following APIs:

New types for password reset verification code

trading_platform_mt5_password_reset
trading_platform_dxtrade_password_reset

Example:

Verify password reset email

{
      "verify_email": "hello@example.com",
      "type":  "trading_platform_mt5_password_reset|trading_platform_dxtrade_password_reset"
}

New account status flags

mt5_password_not_set
dxtrade_password_not_set

Example:

MT5 or Deriv X password has not been set.

{
  "get_account_status": {
       "status": [ 
              "dxtrade_password_not_set" , 
              "mt5_password_not_set" 
       ]
   }
}

New platform parameter

trading_platform_password_reset
trading_platform_password_change

Examples:

Reset MT5 or Deriv X password.

{
     "trading_platform_password_reset": 1,
     "new_password": "pwd123",
     "verification_code": "xxxx",
     "platform": "mt5|dxtrade"
}

Change MT5 or Deriv X password.

{
     "trading_platform_password_change": 1,
     "new_password": "newpwd123",
     "old_password": "oldpwd123", // Note: pass '' to set password for the first time
     "platform": "mt5|dxtrade"
}

Please make the necessary changes to your code.

If you have any questions, contact us at api-support@deriv.com.

Sign In or Register to comment.