MetaTrader 5 Platform API Guide

The MetaTrader 5 platform features open APIs which allow further expanding the platform capabilities, integrating with other trading systems and back-office components, as well as customizing the platform to fit specific business needs.

The platform provides five APIs and an additional option enabling real-time data export to an SQL database.

Set of tools for expanding functionality and customizing the MetaTrader 5 server operation logic: custom commissioning and swap calculation algorithms, routing of financial operations, and more. Ready-made examples for expanding the Web and Manager API protocols

Manager API
C++, C#, ASP.Net

Set of functions for developing and editing accounts, depositing and withdrawing funds, processing trade requests and managing the server settings. The API is provided as C++ interfaces (32 and 64-bit DLL library) with sample source codes.

Gateway API
C++, C#, ASP.Net

Allows for the development of custom gateways and data sources for integrating the MetaTrader 5 platform with other trading systems. The main objectives are executing and synchronizing orders and positions with an external system, developing and modifying trading symbols, providing quotes, etc.

Set of tools for developing custom MetaTrader 5 Manager reports. To use these features, you need to write specially designed reports modules as DLLs. The API supports multithreading and memory management, allows generation of HTML reports and contains ready-made application examples.

Web API
Any language

Provides an open text-based protocol for integrating the MetaTrader 5 platform with web resources and other services of a company. The API allows creating and editing client trade accounts via a website, as well as deposit and withdraw funds directly from a trader’s room in real time

Export to SQL
MySQL, MS SQL, Oracle, FireBird

The standard real-time export of data to an SQL database allows for generating various reports:

  • Matching orders, trades and positions with external trading systems
  • Reports sent to regulators
  • Risk management reports

This functionality is enabled by simple specification of settings for connection to DBMS via MetaTrader 5 Administrator

MetaTrader 5 API additionally provides interfaces for accessing configurations and databases, assistant tools for facilitating routine operations, and structures for transmitting data.