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 → Get OTP Secret
AI-generatedSummary
Retrieve the one-time password (OTP) secret key for a specified user login from the MetaTrader 5 platform.
Inputs
- login (required) — User login number for retrieving the OTP secret key.
Output shape
a JSON object containing the OTP secret key associated with the specified user login.
Requires MetaTrader 5 API credentials. Operation returns the raw response from the MetaTrader 5 WebAPI containing the OTP secret. If the user login is invalid or not set, an error may occur.
Examples
Example 1: Retrieve OTP secret for user login 12345
Set resource to 'OTP', operation to 'Get OTP Secret', and specify 'login' as 12345.