Glossary

What Is the MT5 Manager API?

The MT5 Manager API is how broker software talks to a MetaTrader 5 server. Client portals, CRMs and back-office tools use it to create accounts, post deposits and withdrawals, read positions and deals, and receive server events. It runs under a manager account with permissions set by the broker on the MT5 server.

Last updated 2026-10-29

Definition

The MT5 Manager API is the interface from MetaQuotes that lets a broker’s own software connect to a MetaTrader 5 server to manage accounts, groups, balances and trading data.

Broker systems connected to an MT5 server through the Manager API

What the term means

MetaTrader 5 has several server-side interfaces. The Manager API is the one designed for broker applications that need to act like a staff member: open accounts, adjust balances, read trade history and watch activity.

It is distributed by MetaQuotes to brokers that run MT5 servers. Applications connect with the credentials of a manager account, and the rights of that account decide what the application can do.

How it works

  1. The broker creates a manager account on the MT5 server and grants it only the rights the application needs.
  2. The application connects to the server with that account.
  3. The application makes requests, such as creating a user or posting a balance operation.
  4. The application can subscribe to events, such as new deals or account changes, and react to them.

The Manager API is a native library rather than a public web API. Most teams wrap it in their own service and expose a simpler REST or event interface to the rest of their systems.

Typical uses

  • Creating live and demo accounts when a client signs up in a client area.
  • Posting deposits, withdrawals, credits and corrections as balance operations.
  • Reading balances, equity, margin, open positions and closed deals for reports.
  • Moving accounts between groups, for example after verification.
  • Feeding a CRM or back office with account and trade events.
  • Calculating partner (IB) commissions from deal data.

Manager API vs other MT5 interfaces

InterfaceUsed byTypical purpose
Manager APIBroker applicationsAccount, balance and trading data management
Server pluginsCode running inside the MT5 serverCustom server-side logic and processing
Client terminal and web terminalTradersPlacing and managing trades

Check the current MetaQuotes documentation for the exact set of interfaces and what each one supports, as these change between builds.

What to consider when building on it

  • Least privilege: give each manager account only the rights it needs.
  • Connection handling: plan for reconnects, server restarts and updates.
  • Idempotency: make sure a retried balance operation cannot be posted twice.
  • Logging: record every request and response for audit and support.
  • Testing: use a demo or test server, not production, while developing.
  • Maintenance: new MT5 builds can change behaviour, so keep a test plan for updates.

How XFIV relates

XFIV Connect is an MT5 integration API for brokers. It gives broker systems a documented API, webhooks and a sandbox so teams do not have to wrap the native interface themselves. MT5 compatibility is confirmed during onboarding. See the XFIV Connect product page for details.

Frequently asked questions

Who can use the MT5 Manager API?

Brokers that operate an MT5 server, and the vendors they authorise. Access requires a manager account on that server.

Is the Manager API a REST API?

No. It is a native library. Many brokers and vendors build a REST or webhook layer on top of it for their other systems.

Can the Manager API place trades?

It has dealing-related functions, depending on the rights of the manager account. Whether an application should use them is a design and compliance decision for the broker.

How do I limit what an application can do?

Create a dedicated manager account for the application and grant only the rights it needs.

See how XFIV fits your brokerage

Book a demo and we will walk through the products against your MT5 setup.