MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

User Account → Create User

AI-generated

Summary

Create a new MetaTrader 5 user account

Inputs

  • group (required) — Group in which the user account should be created (required)
  • name (required) — Client's full name (required, max 128 characters)
  • passMain (required) — Master password (8-16 chars). Must include: lowercase, UPPERCASE, numbers, and special chars (#@!$% etc.)
  • passInvestor (required) — Investor password (8-16 chars). Must include: lowercase, UPPERCASE, numbers, and special chars (#@!$% etc.)
  • leverage (required) — Size of client's leverage from 1 to 500
  • additionalOptions — Additional user account details (collection of optional fields)

Output shape

Returns the server's API response. If the node's 'simplify' option is enabled, the response is simplified to {Login, Group, Name, Email, MQID, Rights, Balance, Credit, Leverage, LastAccess}. Otherwise, the raw API response is returned.

Password validation (length 8–16, complexity with lowercase, uppercase, numbers, and #@!$%^&* characters) is enforced client-side before the HTTP POST to /api/user/add is sent.

Discussion