MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

Trading Account → Get Account Info

AI-generated

Summary

Fetch trading account information from MetaTrader 5 WebAPI

Inputs

  • login (required) — Account login number identifying the trading account to retrieve info for
  • simplify — Whether to return a simplified version of the response instead of the raw data; defaults to true

Output shape

The operation returns a single JSON object per input item. The returned shape depends on the simplify parameter:

  • When simplify is true (default): returns an object with fields Login, Balance, Credit, Margin, MarginFree, MarginLevel, Equity, Profit, MarginLeverage, and CurrencyDigits, extracted via simplifyAccountData.

Examples

Example 1: Default behavior (simplify=true)

Leave simplify at its default true value; provide a valid login. The node returns a concise account metrics object.

Example 2: Raw response (simplify=false)

Set simplify to false; provide a valid login. The node returns the full API response, typically nested under an answer property.

Discussion