M MetaRPC Documentation
Control panel ↗

Cloud EA API: manage EAs from your code

Upload, start, monitor, stop and remove Expert Advisors from your own program with your API key instead of the control panel.

How it works

Base URL: https://back.mrpc.pro. Send the API key shown in this control panel in the APIKey header, the same way as for the MT4/MT5 APIs; Authorization: Bearer is accepted too. Every call acts only on your own terminals and EAs. Keep the key on your server.

Main calls: TradingAccounts lists your terminals with their terminalId. TradingUploadEa uploads an .ex5 or a .zip package. TradingAttachEa starts it on a running MT5 terminal and returns the eaId. TradingEasAll returns every EA of the account in one call. TradingEaLogs returns an EA's Experts or Journal log. TradingStopEa stops an EA without closing its positions, and TradingRemoveEa removes a stopped EA. TradingEaWebRequestUrls sets the WebRequest allow-list, and TradingEaFiles / TradingEaFile read and write the EA's MQL5\Files.

Full guide with examples: https://mrpc.pro/cloud-ea-api.md. OpenAPI file for Postman, Insomnia or Swagger UI: https://mrpc.pro/openapi/ea.json. Uploading and starting EAs through the API is for MT5. A stopped EA is started again by attaching it again, which creates a new eaId.