JSON-Pure WebAPI for MT4/MT5, version 2.0 — 442 operations: MT4 162, MT5 280.
Current version of the API.
Works with MetaTrader 4 and MetaTrader 5 trade servers and keeps a live connection to each of them. That connection holds a cached copy of the server state, which it refreshes continuously. The …Get calls answer from this copy and are much faster; the …Request calls ask the trade server every time and are always current.
Every call that reaches an operation answers HTTP 200 with the envelope { data, error, meta }: on success data carries the payload and error is null, on failure data is null and error.code says why, for example Validation, NoConnect, MT4Error, MT5Error, NotFound, Timeout, OutcomeUnknown or Busy. A client that is not allowed the call is refused earlier, with HTTP 403. Check error before using data, and repeat a request with the same Idempotency-Key to get the result of the first call instead of running it twice.
Base URL https://cloud.mywebapi.com · OpenAPI v2 specification (JSON) ·
interactive reference (Redoc)
| POST | /api/v2/MT4/{tradePlatform}/UserPasswordCheck/{login} | Verify account password |
| POST | /api/v2/MT4/{tradePlatform}/UserPasswordSet/{login} | Set account password |
| GET | /api/v2/MT4/{tradePlatform}/BackupInfoUsers/{mode} | List user backup files |
| GET | /api/v2/MT4/{tradePlatform}/BackupInfoOrders/{mode} | List order backup files |
| GET | /api/v2/MT4/{tradePlatform}/BackupRequestUsers/{file} | Read users from backup |
| GET | /api/v2/MT4/{tradePlatform}/BackupRequestOrders/{file} | Read orders from backup |
| POST | /api/v2/MT4/{tradePlatform}/BackupRestoreUsers | Restore users from backup |
| POST | /api/v2/MT4/{tradePlatform}/BackupRestoreOrders | Restore orders from backup |
| GET | /api/v2/MT4/{tradePlatform}/ServerTime | Get server time |
| GET | /api/v2/MT4/{tradePlatform}/ManagerCommon | Get server common settings |
| GET | /api/v2/MT4/{tradePlatform}/ManagerCommonEx | Get full server common settings |
| GET | /api/v2/MT4/{tradePlatform}/JournalRequest | Get server journal |
| GET | /api/v2/MT4/{tradePlatform}/SummaryGet/{symbol} | Get the summary of one symbol |
| GET | /api/v2/MT4/{tradePlatform}/SummaryGetAll | Get the summary of every symbol |
| GET | /api/v2/MT4/{tradePlatform}/SummaryGetByCount/{count} | Get the summary of a symbol by its position in the symbol list |
| GET | /api/v2/MT4/{tradePlatform}/SummaryGetByType/{secType} | Get the summary of a symbol by its group |
| GET | /api/v2/MT4/{tradePlatform}/SummaryCurrency | Get the summary currency |
| GET | /api/v2/MT4/{tradePlatform}/ExposureGet | Get the exposure of every currency |
| GET | /api/v2/MT4/{tradePlatform}/ExposureValueGet/{currency} | Get the exposure of one currency |
| POST | /api/v2/MT4/{tradePlatform}/TradeCalcProfit | Recalculate the profit of a trade |
| POST | /api/v2/MT4/{tradePlatform}/LogsOut | Write a record to the Manager API log |
| POST | /api/v2/MT4/{tradePlatform}/LogsMode | Set the logging mode of the Manager API connection |
| GET | /api/v2/MT4/{tradePlatform}/GroupsGet | List trading groups (cached) |
| GET | /api/v2/MT4/{tradePlatform}/GroupRecordGet/{group} | Get trading group (cached) |
| GET | /api/v2/MT4/{tradePlatform}/GroupsRequest | List trading groups (live) |
| GET | /api/v2/MT4/{tradePlatform}/CfgRequestGroup | List trading groups (live configuration) |
| GET | /api/v2/MT4/{tradePlatform}/GroupSecGroupsGet/{group} | Get group security entries |
| GET | /api/v2/MT4/{tradePlatform}/GroupSecMarginsGet/{group} | Get group margin overrides |
| POST | /api/v2/MT4/{tradePlatform}/CfgUpdateGroup | Update trading group |
| PATCH | /api/v2/MT4/{tradePlatform}/GroupRecord/{group} | Patch trading group |
| GET | /api/v2/MT4/{tradePlatform}/EnsureGroupNameExist/{group} | Check group exists |
| GET | /api/v2/MT4/{tradePlatform}/TradesUserHistory/{login} | Get account trade history |
| GET | /api/v2/MT4/{tradePlatform}/MailLast | Get last mail path |
| GET | /api/v2/MT4/{tradePlatform}/MarginsGet | List account margins (cached) |
| GET | /api/v2/MT4/{tradePlatform}/MarginLevelGet/{login} | Get account margin (cached) |
| GET | /api/v2/MT4/{tradePlatform}/MarginLevelRequest/{login} | Get account margin (live) |
| GET | /api/v2/MT4/{tradePlatform}/NewsTotal | Get news count |
| GET | /api/v2/MT4/{tradePlatform}/NewsBodyGet/{key} | Get news body (cached) |
| GET | /api/v2/MT4/{tradePlatform}/NewsGet | List news headers |
| GET | /api/v2/MT4/{tradePlatform}/NewsTopicGet/{pos} | Get news header by index |
| POST | /api/v2/MT4/{tradePlatform}/NewsBodyRequest/{key} | Request news body fetch |
| GET | /api/v2/MT4/{tradePlatform}/OnlineGet | List online users (cached) |
| GET | /api/v2/MT4/{tradePlatform}/OnlineRequest | List online sessions (live) |
| POST | /api/v2/MT4/{tradePlatform}/ExternalCommandJSON | Send plugin command (JSON) |
| GET | /api/v2/MT4/{tradePlatform}/ChartRequest/{symbol} | Get chart bars |
| POST | /api/v2/MT4/{tradePlatform}/ChartAdd/{symbol} | Add chart bars |
| POST | /api/v2/MT4/{tradePlatform}/ChartUpdate/{symbol} | Update chart bars |
| POST | /api/v2/MT4/{tradePlatform}/ChartDelete/{symbol} | Delete chart bars |
| POST | /api/v2/MT4/{tradePlatform}/HistoryCorrect/{symbol} | Repair chart history |
| GET | /api/v2/MT4/{tradePlatform}/TicksRequest/{symbol} | Get historical ticks |
| GET | /api/v2/MT4/{tradePlatform}/TickInfoLast/{symbol} | Get last tick (cached) |
| GET | /api/v2/MT4/{tradePlatform}/TickInfoLast | Get last ticks, all symbols (cached) |
| GET | /api/v2/MT4/{tradePlatform}/PerformanceRequest | Get server performance series |
| GET | /api/v2/MT4/{tradePlatform}/ReportsRequest | Get closed-trade reports |
| GET | /api/v2/MT4/{tradePlatform}/DailyReportsRequest | Get daily reports |
| GET | /api/v2/MT4/{tradePlatform}/DailyReportsRequestEx | Get daily reports (grouped) |
| POST | /api/v2/MT4/{tradePlatform}/DailySyncStart | Start daily-report sync |
| POST | /api/v2/MT4/{tradePlatform}/DailySyncRead | Read daily-report sync |
| GET | /api/v2/MT4/{tradePlatform}/SrvFeeders | List data feeders |
| GET | /api/v2/MT4/{tradePlatform}/LicenseCheck/{licenseName} | Check license |
| POST | /api/v2/MT4/{tradePlatform}/NotificationsSend | Send push notification |
| GET | /api/v2/MT4/{tradePlatform}/SrvFeederLog/{name} | Get feeder log |
| POST | /api/v2/MT4/{tradePlatform}/SrvRestart | Restart server |
| POST | /api/v2/MT4/{tradePlatform}/SrvChartsSync | Force chart resync |
| POST | /api/v2/MT4/{tradePlatform}/SrvLiveUpdateStart | Start LiveUpdate distributor |
| POST | /api/v2/MT4/{tradePlatform}/SrvFeedsRestart | Restart data feeders |
| GET | /api/v2/MT5/{tradePlatform}/TimeServer | Get server time |
| GET | /api/v2/MT5/{tradePlatform}/TimeGet | Get server time configuration |
| GET | /api/v2/MT5/{tradePlatform}/MailRequest | List messages of the internal mail |
| GET | /api/v2/MT5/{tradePlatform}/MailBodyRequest/{id} | Read a message with its body and attachments |
| POST | /api/v2/MT5/{tradePlatform}/MailSend | Send a message through the internal mail |
| POST | /api/v2/MT5/{tradePlatform}/MailDelete | Delete a message by its position in the mailbox |
| POST | /api/v2/MT5/{tradePlatform}/MailDeleteId/{id} | Delete a message by its identifier |
| GET | /api/v2/MT5/{tradePlatform}/NewsRequest | List news items received by the manager account |
| GET | /api/v2/MT5/{tradePlatform}/NewsBodyRequest/{id} | Read a news item with its body |
| POST | /api/v2/MT5/{tradePlatform}/NewsSend | Publish a news item |
| POST | /api/v2/MT5/{tradePlatform}/LicenseCheck | Check the application license on the trade server |
| POST | /api/v2/MT5/{tradePlatform}/LoggerFlush | Flush the local journal of the manager interface to disk |
| POST | /api/v2/MT5/{tradePlatform}/LoggerOut | Write a formatted entry into the local journal |
| POST | /api/v2/MT5/{tradePlatform}/LoggerOutString | Write an unformatted entry into the local journal |
| GET | /api/v2/MT5/{tradePlatform}/LoggerServerRequest | Read the journal of the trade server |
| POST | /api/v2/MT5/{tradePlatform}/PasswordChange/{type} | Change the password of the manager account used by the connection |
| GET | /api/v2/MT5/{tradePlatform}/NetworkServer | Name of the trade server the connection is held to |
| GET | /api/v2/MT5/{tradePlatform}/NetworkAddress | Address of the trade server the connection is held to |
| GET | /api/v2/MT5/{tradePlatform}/NetworkBytesRead | Bytes received from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/NetworkBytesSent | Bytes sent to the trade server |
| POST | /api/v2/MT5/{tradePlatform}/NetworkRescan | Rescan the access points of the trade server |
| GET | /api/v2/MT5/{tradePlatform}/SettingGet | Read a settings file of the manager account |
| POST | /api/v2/MT5/{tradePlatform}/SettingSet | Write a settings file of the manager account |
| POST | /api/v2/MT5/{tradePlatform}/SettingDelete | Delete a settings file of the manager account |
| POST | /api/v2/MT5/{tradePlatform}/CustomCommand | Send a custom command to the trade server |
| GET | /api/v2/MT5/{tradePlatform}/GeoResolve | Describe an IP address |
| GET | /api/v2/MT5/{tradePlatform}/GeoResolveBatch | Describe a list of IP addresses |
| POST | /api/v2/MT5/{tradePlatform}/ProxySet | Set the proxy of the manager connection |
| GET | /api/v2/MT5/{tradePlatform}/SymbolRequestArray/{mask} | Symbols by mask |
| GET | /api/v2/MT5/{tradePlatform}/GroupRequestArray/{mask} | Groups by mask |
| POST | /api/v2/MT5/{tradePlatform}/GroupUpdate/{group} | Change a group configuration |
| POST | /api/v2/MT5/{tradePlatform}/GroupUpdateBatch | Change several group configurations in one call |
| GET | /api/v2/MT5/{tradePlatform}/SymbolRequest/{symbol} | Get a symbol as it is configured for a group |
| GET | /api/v2/MT5/{tradePlatform}/SymbolExist/{symbol} | Check whether a group allows a symbol |
| POST | /api/v2/MT5/{tradePlatform}/SymbolUpdateBatch | Change several symbol configurations in one call |
| GET | /api/v2/MT5/{tradePlatform}/TimeServerRequest | Get the current trading time from the server |
| GET | /api/v2/MT5/{tradePlatform}/LeverageGet/{name} | Floating margin configuration by name |
| GET | /api/v2/MT5/{tradePlatform}/LeverageRequest/{name} | Request a floating margin configuration from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/LeverageRequestArray | Floating margin configurations that apply to groups |
| GET | /api/v2/MT5/{tradePlatform}/PluginGet/{name} | Plugin configuration by name |
| POST | /api/v2/MT5/{tradePlatform}/PluginUpdate | Store a plugin configuration |
| POST | /api/v2/MT5/{tradePlatform}/DealerSend | Send a trade request on behalf of the dealer |
| POST | /api/v2/MT5/{tradePlatform}/DealerBalance | Send a balance operation on behalf of the dealer |
| POST | /api/v2/MT5/{tradePlatform}/DealerBalanceRaw | Send a balance operation without the standard validation checks |
| GET | /api/v2/MT5/{tradePlatform}/GroupRequest/{group} | Get a group by name |
| GET | /api/v2/MT5/{tradePlatform}/GroupGet/{group} | Get a group from the cached copy |
| PATCH | /api/v2/MT5/{tradePlatform}/GroupRecord/{group} | Partially update a group |
| GET | /api/v2/MT5/{tradePlatform}/ChartRequest/{symbol} | Get chart bars |
| GET | /api/v2/MT5/{tradePlatform}/TicksHistory/{symbol} | Get historical ticks |
| GET | /api/v2/MT5/{tradePlatform}/ManagerCurrent | Get the current session manager |
| GET | /api/v2/MT5/{tradePlatform}/OnlineGet/{login} | Read the open sessions of one account |
| GET | /api/v2/MT5/{tradePlatform}/OnlineRequest | Read the live connection list of the trade server |
| POST | /api/v2/MT5/{tradePlatform}/OnlineDisconnect/{login} | Disconnect a client from the trade server |
| POST | /api/v2/MT5/{tradePlatform}/OnlineDisconnectBatch | Disconnect several clients from the trade server |
| POST | /api/v2/MT5/{tradePlatform}/SelectedAdd | Add a symbol to the selected-symbol list |
| POST | /api/v2/MT5/{tradePlatform}/SelectedAddBatch | Add several symbols to the selected-symbol list |
| POST | /api/v2/MT5/{tradePlatform}/SelectedAddAll | Add every available symbol to the selected-symbol list |
| POST | /api/v2/MT5/{tradePlatform}/SelectedDelete | Remove a symbol from the selected-symbol list |
| POST | /api/v2/MT5/{tradePlatform}/SelectedDeleteBatch | Remove several symbols from the selected-symbol list |
| POST | /api/v2/MT5/{tradePlatform}/SelectedDeleteAll | Clear the selected-symbol list |
| GET | /api/v2/MT5/{tradePlatform}/SelectedNext | Read the selected-symbol list |
| GET | /api/v2/MT5/{tradePlatform}/BookGet/{symbol} | Read the Depth of Market of a symbol |
| GET | /api/v2/MT5/{tradePlatform}/DailyRequest/{login} | Daily reports of one account |
| GET | /api/v2/MT5/{tradePlatform}/DailyRequestLight/{login} | Lightweight daily reports of one account |
| GET | /api/v2/MT5/{tradePlatform}/DailyRequestByGroup/{mask} | Daily reports of the accounts of a group |
| GET | /api/v2/MT5/{tradePlatform}/DailyRequestLightByGroup/{mask} | Lightweight daily reports of the accounts of a group |
| POST | /api/v2/MT5/{tradePlatform}/DailyRequestByLogins | Daily reports of several accounts |
| POST | /api/v2/MT5/{tradePlatform}/DailyRequestLightByLogins | Lightweight daily reports of several accounts |
| GET | /api/v2/MT5/{tradePlatform}/SummaryGetAll | Summary of client and hedging positions for every symbol |
| GET | /api/v2/MT5/{tradePlatform}/SummaryGet/{symbol} | Summary of client and hedging positions for one symbol |
| GET | /api/v2/MT5/{tradePlatform}/SummaryCurrency | Summary currency of the trade server |
| POST | /api/v2/MT5/{tradePlatform}/SummaryCurrency | Set the summary currency of the trade server |
| GET | /api/v2/MT5/{tradePlatform}/ExposureGetAll | Exposure of the company for every asset |
| GET | /api/v2/MT5/{tradePlatform}/ExposureGet/{symbol} | Exposure of the company for one asset |
| GET | /api/v2/MT5/{tradePlatform}/ExposureCurrency | Currency of the net total of the exposure table |
| POST | /api/v2/MT5/{tradePlatform}/ExposureCurrency | Set the currency of the net total of the exposure table |
| GET | /api/v2/MT5/{tradePlatform}/SymbolGet/{symbol} | Get a symbol by name |
| PATCH | /api/v2/MT5/{tradePlatform}/SymbolRecord/{symbol} | Partially update a symbol |
| POST | /api/v2/MT5/{tradePlatform}/SymbolUpdate/{symbol} | Update a symbol |
| POST | /api/v2/MT5/{tradePlatform}/DealerStart | Open the queue of trade requests for dealing |
| POST | /api/v2/MT5/{tradePlatform}/DealerStop | Close the queue of trade requests |
| POST | /api/v2/MT5/{tradePlatform}/DealerGet | Take the first request of the queue for processing |
| POST | /api/v2/MT5/{tradePlatform}/DealerLock/{id} | Take a request with the given identifier for processing |
| POST | /api/v2/MT5/{tradePlatform}/DealerAnswer | Answer the trade request taken for processing |
| GET | /api/v2/MT5/{tradePlatform}/RequestGet/{id} | Get a trade request by identifier |
| GET | /api/v2/MT5/{tradePlatform}/RequestGetAll | List the trade requests waiting in the queue |
| POST | /api/v2/MT5/{tradePlatform}/TradeAccountSet | Bring orders, positions and balance of an account in line with an external system |
| POST | /api/v2/MT5/{tradePlatform}/TradeProfit | Calculate the profit of a position |
| POST | /api/v2/MT5/{tradePlatform}/TradeProfitExt | Calculate the profit of a position with extended volume accuracy |
| POST | /api/v2/MT5/{tradePlatform}/TradeMarginCheck | Check whether an account has the margin an order requires |
| POST | /api/v2/MT5/{tradePlatform}/TradeMarginCheckExt | Check the margin of an order with extended volume accuracy |
| POST | /api/v2/MT5/{tradePlatform}/TradeRateBuy | Calculate the rate of buying a currency for another one |
| POST | /api/v2/MT5/{tradePlatform}/TradeRateSell | Calculate the rate of selling a currency for another one |
| GET | /api/v2/MT5/{tradePlatform}/UserGet/{login} | Get a user by login |
| PATCH | /api/v2/MT5/{tradePlatform}/UserRecord/{login} | Partially update a user |
| POST | /api/v2/MT5/{tradePlatform}/UserUpdate | Update a user record |
| POST | /api/v2/MT5/{tradePlatform}/UserAdd | Create a user account |
| GET | /api/v2/MT5/{tradePlatform}/UserRequest/{login} | Read a user from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountGet/{login} | Read the account state from the cached copy |
| GET | /api/v2/MT5/{tradePlatform}/UserGetByLogins | Read several users from the cached copy by logins |
| GET | /api/v2/MT5/{tradePlatform}/UserGetByGroup/{mask} | Read users of a group mask from the cached copy |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountRequest/{login} | Read the account state from the trade server |
| POST | /api/v2/MT5/{tradePlatform}/UserPasswordCheck/{login}/{type} | Check a user password |
| POST | /api/v2/MT5/{tradePlatform}/UserPasswordChange/{login}/{type} | Change a user password |
| POST | /api/v2/MT5/{tradePlatform}/UserDelete/{login} | Delete a user |
| GET | /api/v2/MT5/{tradePlatform}/UserCertGet/{login} | Read the certificate of an account |
| POST | /api/v2/MT5/{tradePlatform}/UserCertUpdate/{login} | Install or replace the certificate of an account |
| POST | /api/v2/MT5/{tradePlatform}/UserCertDelete/{login} | Reset the certificate of an account |
| POST | /api/v2/MT5/{tradePlatform}/UserCertConfirm/{login} | Confirm the certificate of an account |
| GET | /api/v2/MT5/{tradePlatform}/UserExternalGet/{account} | Read an account by its number in an external trading system, from the cached copy |
| GET | /api/v2/MT5/{tradePlatform}/UserExternalRequest/{account} | Read an account by its number in an external trading system, from the trade server |
| POST | /api/v2/MT5/{tradePlatform}/UserExternalSync/{login} | Synchronize an account with an external trading system |
| POST | /api/v2/MT5/{tradePlatform}/UserBalanceCheck/{login} | Check the balance and credit of an account against its deals history |
| POST | /api/v2/MT5/{tradePlatform}/UserBalanceCheckBatch | Check the balance and credit of several accounts against their deals history |
| POST | /api/v2/MT5/{tradePlatform}/UserDeleteBatch | Remove several accounts |
| POST | /api/v2/MT5/{tradePlatform}/UserUpdateBatch | Change several accounts |
| POST | /api/v2/MT5/{tradePlatform}/UserUpdateBatchArray | Change several accounts, submitted as separate records |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountGetByGroup/{mask} | Read the trading state of a group of accounts from the cached copy |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountGetByLogins | Read the trading state of several accounts from the cached copy |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountRequestArray/{group} | Request the trading state of a group of accounts from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/UserAccountRequestByLogins | Request the trading state of several accounts from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/UserRequestArray/{group} | Request the records of a group of accounts from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/UserRequestByLogins | Request the records of several accounts from the trade server |
| GET | /api/v2/MT5/{tradePlatform}/UserLogins/{group} | List the logins of a group |
| GET | /api/v2/MT5/{tradePlatform}/UserGroup/{login} | Read the group of an account |
| POST | /api/v2/MT5/{tradePlatform}/EmailSend | Send an email from one of the mail configurations of the trade server |
| POST | /api/v2/MT5/{tradePlatform}/MessengerSend | Send an SMS through the messenger integration of the trade server |
| POST | /api/v2/MT5/{tradePlatform}/MessengerVerifyPhone | Validate a phone number against the local numbering rules |
| POST | /api/v2/MT5/{tradePlatform}/NotificationsSend | Send a push notification to mobile terminals |