MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

OTP → Get OTP Secret

AI-generated

Summary

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.

Discussion