MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

User Account → Update User

AI-generated

Summary

Updates a MetaTrader 5 user account on the server

Inputs

  • updateLogin (required) — Login of the user account to update (required)
  • updateFields — Fields to update on the user account. Only fields with non-default values are sent to the server.

Output shape

Updated user account data. When the node's 'simplify' option is enabled, the response is simplified to include Login, Group, Name, Email, MQID, Rights, Balance, Credit, Leverage, and LastAccess; otherwise the raw API response is returned.

The node sends an HTTP POST to /api/user/update?login= with a JSON body containing only the explicitly set updateFields. Fields with default or empty values are omitted by the runtime.

Examples

Example 1: Move a user to a different group

updateLogin: 12345; updateFields: { group: 'VIP' }

Discussion