MT5: Password Change (mt5_password_change)

To change passwords of the MT5 account.

Auth Scope(s): admin

mt5_password_change(login: str, new_password: str, old_password: str, password_type: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • login (str) – MT5 user login
  • new_password (str) – New password of the account. For validation (Accepts any printable ASCII character. Must be within 8-25 characters, and include numbers, lowercase and uppercase letters. Must not be the same as the user’s email address).
  • old_password (str) – Old password for validation (non-empty string, accepts any printable ASCII character)
  • password_type (Optional[str]) – [Optional] Type of the password to change.
  • passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
  • req_id (Optional[int]) – [Optional] Used to map request to response.
Returns:

req_id

Return type:

int

Example

binary.api.mt5_password_change(
    login='MTR1000'
    new_password='C0rrect_p4ssword'
    old_password='Abc1234'
    password_type='main'
)