CPlugin

API v1 reference (stable)

RESTful WebAPI for MT4/MT5, version 1.0 — 101 operations: General 4, MT4 42, MT5 55.

Uses the native MetaQuotes Manager API to connect to MT4 and MT5 trade servers.

Base URL https://cloud.mywebapi.com · OpenAPI v1 specification (JSON) · interactive reference (Redoc)

Organizations

GET /api/Organizations all organizations

TradePlatforms

GET /api/TradePlatforms All Trade Platforms
GET /api/TradePlatforms/{tradePlatform} Trade Platform
GET /api/TradePlatforms/{tradePlatform}/Ping Status of ManagerAPI connection

MT4 :: Common

GET /api/MT4/{tradePlatform}/ManagerCommon Server settings (short)
GET /api/MT4/{tradePlatform}/ServerTime Server time
GET /api/MT4/{tradePlatform}/ManagerCommonEx Server settings
GET /api/MT4/{tradePlatform}/JournalRequest/{from}/{to}/{mode}/{filter} Journal

MT4 :: Groups

GET /api/MT4/{tradePlatform}/GroupsGet All groups (pumping)
GET /api/MT4/{tradePlatform}/GroupsRequest All groups
GET /api/MT4/{tradePlatform}/GroupRecordGet/{group} Group (pumping)
GET /api/MT4/{tradePlatform}/CfgRequestGroup All groups (admin)
POST /api/MT4/{tradePlatform}/CfgUpdateGroup Update group settings (admin)

MT4 :: Prices

GET /api/MT4/{tradePlatform}/SymbolAdd/{symbol} Add to "Market Watch"
GET /api/MT4/{tradePlatform}/SymbolHide/{symbol} Remove from "Market Watch"
GET /api/MT4/{tradePlatform}/TickInfoLast/{symbol} Recent ticks
GET /api/MT4/{tradePlatform}/TickInfoLast All recent ticks
GET /api/MT4/{tradePlatform}/TicksRequest/{symbol}/{start}/{end}/{flags} Ticks history
GET /api/MT4/{tradePlatform}/ChartRequest/{symbol}/{period}/{start}/{end}/{mode} Chart history

MT4 :: Symbols

GET /api/MT4/{tradePlatform}/SymbolsGetAll All symbols (pumping)
GET /api/MT4/{tradePlatform}/SymbolsGetAll/{symbol} Symbol (pumping)
GET /api/MT4/{tradePlatform}/CfgRequestSymbol All symbols (admin)
GET /api/MT4/{tradePlatform}/CfgRequestSymbol/{symbol} Symbol (admin)
POST /api/MT4/{tradePlatform}/CfgUpdateSymbol Update (admin)
GET /api/MT4/{tradePlatform}/SymbolsRefresh Force synchronize
GET /api/MT4/{tradePlatform}/CfgRequestSymbolGroup Get symbol groups (admin)

MT4 :: Trades

GET /api/MT4/{tradePlatform}/TradesGet All open trades (pumping)
GET /api/MT4/{tradePlatform}/TradesGet/{ticket} Open trade by ticket (pumping)
GET /api/MT4/{tradePlatform}/AdmTradesRequest/{group}/{openOnly} All trades by group name (admin)
GET /api/MT4/{tradePlatform}/TradesGetByLogin/{login}/{group} Open trades by login and group
POST /api/MT4/{tradePlatform}/AdmTradeRecordModify Modify order (admin)
GET /api/MT4/{tradePlatform}/TradeRecordsRequest Trades by ticket
POST /api/MT4/{tradePlatform}/TradeTransaction Execute 'Trade Transaction'
GET /api/MT4/{tradePlatform}/TradesUserHistory/{login}/{fromTime}/{toTime} Trade history

MT4 :: Users

GET /api/MT4/{tradePlatform}/UsersGet All users (pumping)
GET /api/MT4/{tradePlatform}/UserRecordsRequest Users by login
GET /api/MT4/{tradePlatform}/UsersRequest All users
GET /api/MT4/{tradePlatform}/UserRecordGet/{login} User (pumping)
POST /api/MT4/{tradePlatform}/UserRecordNew Create new user
POST /api/MT4/{tradePlatform}/UserRecordUpdate Update user
GET /api/MT4/{tradePlatform}/MarginLevelGet/{login} Margin level (pumping)
GET /api/MT4/{tradePlatform}/MarginLevelRequest/{login} Margin level
POST /api/MT4/{tradePlatform}/UserPasswordCheck/{login} Password - check
POST /api/MT4/{tradePlatform}/UserPasswordSet/{login} Password - change
GET /api/MT4/{tradePlatform}/AdmBalanceCheck/{login} Balance - check (admin)
GET /api/MT4/{tradePlatform}/AdmBalanceFix/{login} Balance - fix (admin)

MT5 :: Clients

GET /api/MT5/{tradePlatform}/UserDelete/{login} Delete user
POST /api/MT5/{tradePlatform}/ClientAdd Add client
GET /api/MT5/{tradePlatform}/ClientUserAdd/{clientId}/{login} Attach account to user
GET /api/MT5/{tradePlatform}/ClientRequest/{clientId} Request Client
GET /api/MT5/{tradePlatform}/ClientDelete/{clientId} Delete Client

MT5 :: Configuration Databases :: Groups

GET /api/MT5/{tradePlatform}/GroupGet/{group} Group by name (pumping)
GET /api/MT5/{tradePlatform}/GroupRequest/{group} Group by name
GET /api/MT5/{tradePlatform}/GroupRequestArray/{mask} Groups by mask

MT5 :: Configuration Databases :: Managers

GET /api/MT5/{tradePlatform}/ManagerCurrent Configuration of the current manager account

MT5 :: Configuration Databases :: Symbols

GET /api/MT5/{tradePlatform}/SymbolGet/{symbol} Symbol by name (pumping)
POST /api/MT5/{tradePlatform}/SymbolUpdate/{symbol} Update Symbol
GET /api/MT5/{tradePlatform}/SymbolRequestArray/{mask}/{group} Symbols by mask

MT5 :: Configuration Databases :: Time

GET /api/MT5/{tradePlatform}/TimeServer Get server time
GET /api/MT5/{tradePlatform}/TimeGet Time configuration

MT5 :: History Data

GET /api/MT5/{tradePlatform}/ChartRequest/{symbol}/{fromTime}/{toTime} Minute bars for a symbol.

MT5 :: Trade Activity :: Dealing

POST /api/MT5/{tradePlatform}/DealerSend Send trade request
POST /api/MT5/{tradePlatform}/DealerBalance Send balance request
POST /api/MT5/{tradePlatform}/DealerBalanceRaw Send raw balance request (bypasses validation)

MT5 :: Trade Databases :: Deals

GET /api/MT5/{tradePlatform}/DealRequest/{login}/{fromTime}/{toTime} Deals history by a login
GET /api/MT5/{tradePlatform}/DealRequestByGroup/{mask}/{fromTime}/{toTime} Deals by user group mask
GET /api/MT5/{tradePlatform}/DealRequestByGroupSymbol/{mask}/{symbol}/{fromTime}/{toTime} Deals by user group mask and symbol
GET /api/MT5/{tradePlatform}/DealRequestByTickets Deals by the list of tickets
POST /api/MT5/{tradePlatform}/DealRequestByTickets (Request) Deals by the list of tickets
GET /api/MT5/{tradePlatform}/DealRequestByLogins/{fromTime}/{toTime} Deals by the list of logins
GET /api/MT5/{tradePlatform}/DealRequestByTicket/{ticket} Deal by a ticket
POST /api/MT5/{tradePlatform}/DealUpdate Update Deal
POST /api/MT5/{tradePlatform}/DealDeleteBatch Delete deals from the server database in bulk

MT5 :: Trade Databases :: Orders

GET /api/MT5/{tradePlatform}/OrderGetByGroup/{mask} Orders (unfulfilled) by user group mask (pumping)
GET /api/MT5/{tradePlatform}/OrderGetBySymbol/{mask}/{symbol} Orders (unfulfilled) by user group mask and symbol (pumping)
GET /api/MT5/{tradePlatform}/OrderRequestByGroup/{mask} Orders by user group mask
GET /api/MT5/{tradePlatform}/OrderRequestByGroupSymbol/{mask}/{symbol} Orders by user group mask and symbol
POST /api/MT5/{tradePlatform}/OrderDeleteBatch Delete orders from the server database in bulk
GET /api/MT5/{tradePlatform}/HistoryRequest/{login}/{fromTime}/{toTime} Orders history
GET /api/MT5/{tradePlatform}/HistoryRequestByGroup/{mask}/{fromTime}/{toTime} Orders history by group mask
POST /api/MT5/{tradePlatform}/HistoryRequestByTickets (Request) Orders history by list of ticket
GET /api/MT5/{tradePlatform}/OrderGet/{ticket} Order (unfulfilled) by a ticket (pumping)
GET /api/MT5/{tradePlatform}/OrderGetByLogins Orders (unfulfilled) by the list of logins (pumping)
GET /api/MT5/{tradePlatform}/OrderGetByTickets Orders (unfulfilled) by the list of tickets (pumping)
POST /api/MT5/{tradePlatform}/OrderRequestByTickets (Request) Orders by the list of tickets

MT5 :: Trade Databases :: Positions

GET /api/MT5/{tradePlatform}/PositionGet/{login} Positions by login (pumping)
GET /api/MT5/{tradePlatform}/PositionGetByLogins Positions by logins (pumping)
GET /api/MT5/{tradePlatform}/PositionGetByTickets Positions by tickets (pumping)
GET /api/MT5/{tradePlatform}/PositionRequestByGroup/{mask} Positions by user group mask (pumping)
GET /api/MT5/{tradePlatform}/PositionGetBySymbol/{mask}/{symbol} Positions by user group mask and symbol (pumping)
POST /api/MT5/{tradePlatform}/PositionDeleteBatch Delete positions from the server database in bulk

MT5 :: Users

POST /api/MT5/{tradePlatform}/UserAdd Add user
GET /api/MT5/{tradePlatform}/UserRequest/{login} Request User
GET /api/MT5/{tradePlatform}/UserAccountGet/{login} Get Account (pumping)
GET /api/MT5/{tradePlatform}/UserGetByLogins Accounts by the list of logins (pumping)
GET /api/MT5/{tradePlatform}/UserGet/{login} Get User (pumping)
GET /api/MT5/{tradePlatform}/UserGetByGroup/{mask} User get by Group (pumping)
GET /api/MT5/{tradePlatform}/UserAccountRequest/{login} Request Account
POST /api/MT5/{tradePlatform}/UserUpdate Update User
POST /api/MT5/{tradePlatform}/UserPasswordCheck/{login}/{type} Password - check
POST /api/MT5/{tradePlatform}/UserPasswordChange/{login}/{type} Password - change