Actions42
- User Account Actions
- Client Actions
- Account Binding Actions
- Trading Account Actions
- Symbols Actions
- Prices Actions
- Password Actions
- Certificate Actions
- OTP Actions
- Archive Actions
- Backup Actions
- Notification Actions
OTP → Set OTP Secret
AI-generatedSummary
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.