MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

User Account → Get User

AI-generated

Summary

Fetch user account information by login

Inputs

  • login — User login number
  • simplify — Whether to return a simplified user object instead of raw API data

Output shape

object

The API endpoint called is GET /api/user/get?login={login}. The login parameter is required by the API; the UI control defaults to empty string but will not succeed without a valid login. The simplify parameter defaults to true.

Examples

Example 1: Get simplified user data

login=12345, simplify=true (default)

Example 2: Get raw API response

login=12345, simplify=false

Discussion