MetaTrader 5 icon

MetaTrader 5

Interact with MetaTrader 5 trading platform via WebAPI

Trading Account → Get Accounts Batch

AI-generated

Summary

Retrieves information for multiple MetaTrader 5 trading accounts using login lists, group filters, or date ranges.

Inputs

  • logins — Comma-separated list of MetaTrader 5 account login numbers to retrieve.
  • groups — One or more account group names used to filter returned trading accounts.
  • dateFrom — Start date Unix timestamp to filter account search results.
  • dateTo — End date Unix timestamp to filter account search results.
  • simplify — When enabled (default), returns a simplified set of key financial fields instead of raw WebAPI output.

Output shape

a list of items

Each returned item represents a single trading account. When Simplify is true, output fields include Login, Balance, Credit, Margin, MarginFree, MarginLevel, Equity, Profit, MarginLeverage, and CurrencyDigits.

Examples

Example 1: Fetch financial metrics for specific account logins

Set Logins to '10001,10002,10003' with Simplify set to true.

Example 2: Retrieve accounts belonging to demo groups within a date range

Select demo group names in Groups and set Date From and Date To Unix timestamps.

Discussion