MT5: Password Reset (mt5_password_reset)

To reset the password of MT5 account.

Auth Scope(s): admin

mt5_password_reset(login: str, new_password: str, verification_code: 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).
  • verification_code (str) – Email verification code (received from a verify_email call, which must be done first)
  • password_type (Optional[str]) – [Optional] Type of the password to reset.
  • 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_reset(
    login='MTD1000'
    new_password='C0rrect_p4ssword'
    password_type='main'
    verification_code='O8eZ2xMq'
)