MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

Password → Change Password

AI-generated

Summary

Change the password for a specified user account on the MetaTrader 5 platform, choosing between Main, Investor, or Phone password types.

Inputs

  • login (required) — The login (account number) of the user whose password you want to change.
  • password (required) — The new password to set for the user account.
  • passwordType (required) — The type of password to change: Main, Investor, or Phone.

Output shape

a single object containing the API response to the password change request

The output returns the raw response from the MetaTrader 5 WebAPI indicating success or failure of the password change operation.

Examples

Example 1: Change a user's main password

Set login to the user account number, set the new password string, and select 'Main' for the passwordType parameter.

Discussion