MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

OTP → Set OTP Secret

AI-generated

Summary

Set the one-time password (OTP) secret key for a specified user login in MetaTrader 5.

Inputs

  • login (required) — The user login number for whom the OTP secret will be set.
  • OTP Secret (required) — The OTP secret key string to assign for the user.

Output shape

a single object representing the response from the MetaTrader 5 API, indicating success or failure of setting the OTP secret

The output is returned directly from the MetaTrader 5 API call and may include success status or error details. If multiple input items are provided, outputs correspond to each input item.

Examples

Example 1: Set a new OTP secret for user login 123456

Set resource to 'OTP', operation to 'Set OTP Secret', provide 'login' as 123456 and 'OTP Secret' with the desired secret key string.

Discussion