# CPlugin WebAPI > CPlugin WebAPI is a hosted REST JSON and SignalR (WebSocket) API over the MetaTrader 4 (MT4) and MetaTrader 5 (MT5) Manager API. A broker's application manages accounts, trades, groups and symbols on its MT4 and MT5 servers from any language that speaks HTTP, and receives quotes, margin and trade events in realtime. - Publisher: CPlugin (CPlugin Labs LP), https://cplugin.com — contact: info@cplugin.com - Website: https://mywebapi.com - Platforms: MetaTrader 4 and MetaTrader 5 trade servers. WebAPI connects to the trade server with a regular manager account, the same way the MetaTrader Manager terminal does; no server plugin is required. The server and the manager credentials are registered once in Toolbox. - Authentication: OAuth 2.0 client credentials. Exchange the client id and secret at https://auth.cplugin.net/connect/token (grant_type=client_credentials, scope=webapi) for a bearer token and send it as `Authorization: Bearer `. Realtime connections pass the same token in the `signalr_token` query parameter. The SDKs obtain, cache and refresh the token themselves. - Production: REST base URL https://cloud.mywebapi.com, token server https://auth.cplugin.net, management portal https://toolbox.cplugin.com. Multi-region cloud. - Sandbox: REST base URL https://pre.mywebapi.com, token server https://pre.auth.cplugin.net, management portal https://pre.toolbox.cplugin.com. Same API surface and OAuth flow as Production; free, no SLA, may be reset without notice — for integration testing. - API v1 (stable): 101 operations — General 4, MT4 42, MT5 55. Paths `/api/MT4/…, /api/MT5/…`. - API v2 (beta): 159 operations — MT4 147, MT5 12. Paths `/api/v2/…`. - Versions run side by side on the same hosts with the same token, so an integration can move from v1 to v2 one call at a time. v1 is what most integrations run on today; the SDKs are built on v2. - Realtime: SignalR hubs /hubs/mt4/v1, /hubs/mt5/v1, /hubs/mt4/v2 and /hubs/mt5/v2 — ticks, margins and trade events. SignalR uses WebSockets and falls back to Server-Sent Events or long polling. - Deadlines and retries: every trade-platform request has a deadline, adjustable per request with the `X-Request-Timeout` header (1 to 300 seconds). A read that timed out changed nothing and is safe to repeat. A trade that timed out may still be completed by the platform: the answer is `OutcomeUnknown`, and repeating it with the same `Idempotency-Key` returns its real result without executing it twice. - Pricing: the Sandbox is free. Production is billed by usage; the customer's current rates are shown on the pricing page in Toolbox: https://toolbox.cplugin.com/webapi/pricing - Deployment: a hosted cloud service. On-premises deployment is offered only on request, for large clients under an individual contract. ## Calling the API Get a token, then call any operation with it (bash, needs curl and jq): ```bash TOKEN=$(curl -s -X POST https://auth.cplugin.net/connect/token \ -d 'grant_type=client_credentials&scope=webapi' \ -d "client_id=$CPLUGIN_CLIENT_ID" \ -d "client_secret=$CPLUGIN_CLIENT_SECRET" \ | jq -r .access_token) curl -H "Authorization: Bearer $TOKEN" https://cloud.mywebapi.com/api/TradePlatforms ``` `{tradePlatform}` in a path is the id (GUID) of a trade platform registered in Toolbox; `GET /api/TradePlatforms` lists yours. ## SDKs Open source; each handles the OAuth token for you and works against Production or the Sandbox. - [TypeScript / JavaScript — npm `@mywebapi.com/sdk`](https://www.npmjs.com/package/@mywebapi.com/sdk): `npm i @mywebapi.com/sdk` - [Python — PyPI `mywebapi-sdk`](https://pypi.org/project/mywebapi-sdk/): `pip install mywebapi-sdk` - [.NET — NuGet `MyWebApi.Sdk`](https://www.nuget.org/packages/MyWebApi.Sdk): `dotnet add package MyWebApi.Sdk` - [PowerShell — PowerShell Gallery `MyWebApi`](https://www.powershellgallery.com/packages/MyWebApi): `Install-Module MyWebApi` ## Docs - [Guides](https://cplugin.com/docs/webapi): authentication, timeouts, idempotency, realtime - [Changelog](https://cloud.mywebapi.com/History): new endpoints and changes, newest first - [Interactive API v1 reference (Redoc)](https://cloud.mywebapi.com/redoc_v1/index.html): the same specification, rendered in the browser - [Interactive API v2 reference (Redoc)](https://cloud.mywebapi.com/redoc_v2/index.html): the same specification, rendered in the browser ## API v1 (stable) — RESTful WebAPI for MT4/MT5 101 operations — General 4, MT4 42, MT5 55. HTML reference: https://mywebapi.com/reference/v1/ · OpenAPI JSON: https://cloud.mywebapi.com/swagger/v1/swagger.json ### Organizations Reference page: https://mywebapi.com/reference/v1/organizations/ - `GET /api/Organizations` — all organizations. Returns: Organization[] ### TradePlatforms Reference page: https://mywebapi.com/reference/v1/trade-platforms/ - `GET /api/TradePlatforms` — All Trade Platforms. Returns: TradePlatform[] - `GET /api/TradePlatforms/{tradePlatform}` — Trade Platform. Returns: TradePlatform - `GET /api/TradePlatforms/{tradePlatform}/Ping` — Status of ManagerAPI connection. Returns: boolean ### MT4 :: Common Reference page: https://mywebapi.com/reference/v1/mt4-common/ - `GET /api/MT4/{tradePlatform}/ManagerCommon` — Server settings (short). Returns: ConCommonShort - `GET /api/MT4/{tradePlatform}/ServerTime` — Server time. Returns: string (date-time) - `GET /api/MT4/{tradePlatform}/ManagerCommonEx` — Server settings. Returns: ConCommon - `GET /api/MT4/{tradePlatform}/JournalRequest/{from}/{to}/{mode}/{filter}` — Journal. Parameters: from (path, string (date-time), required), to (path, string (date-time)), mode (path, EnLogType), filter (path, string). Returns: ServerLog[] ### MT4 :: Groups Reference page: https://mywebapi.com/reference/v1/mt4-groups/ - `GET /api/MT4/{tradePlatform}/GroupsGet` — All groups (pumping). Returns: ConGroup[] - `GET /api/MT4/{tradePlatform}/GroupsRequest` — All groups. Returns: ConGroup[] - `GET /api/MT4/{tradePlatform}/GroupRecordGet/{group}` — Group (pumping). Parameters: group (path, string, required). Returns: ConGroup - `GET /api/MT4/{tradePlatform}/CfgRequestGroup` — All groups (admin). Returns: ConGroup[] - `POST /api/MT4/{tradePlatform}/CfgUpdateGroup` — Update group settings (admin). Body: ConGroup. Returns: boolean ### MT4 :: Prices Reference page: https://mywebapi.com/reference/v1/mt4-prices/ - `GET /api/MT4/{tradePlatform}/SymbolAdd/{symbol}` — Add to "Market Watch". Parameters: symbol (path, string, required). Returns: boolean - `GET /api/MT4/{tradePlatform}/SymbolHide/{symbol}` — Remove from "Market Watch". Parameters: symbol (path, string, required). Returns: boolean - `GET /api/MT4/{tradePlatform}/TickInfoLast/{symbol}` — Recent ticks. Parameters: symbol (path, string, required). Returns: TickInfo - `GET /api/MT4/{tradePlatform}/TickInfoLast` — All recent ticks. Returns: TickInfo[] - `GET /api/MT4/{tradePlatform}/TicksRequest/{symbol}/{start}/{end}/{flags}` — Ticks history. Parameters: symbol (path, string, required), start (path, string (date-time), required), end (path, string (date-time), required), flags (path, TickRequestFlags). Returns: TickRecord[] - `GET /api/MT4/{tradePlatform}/ChartRequest/{symbol}/{period}/{start}/{end}/{mode}` — Chart history. Parameters: symbol (path, string, required), period (path, ChartPeriod, required), start (path, string (date-time), required), end (path, string (date-time), required), mode (path, RequestMode). Returns: RateInfoEx[] ### MT4 :: Symbols Reference page: https://mywebapi.com/reference/v1/mt4-symbols/ - `GET /api/MT4/{tradePlatform}/SymbolsGetAll` — All symbols (pumping). Returns: ConSymbol[] - `GET /api/MT4/{tradePlatform}/SymbolsGetAll/{symbol}` — Symbol (pumping). Parameters: symbol (path, string, required). Returns: ConSymbol - `GET /api/MT4/{tradePlatform}/CfgRequestSymbol` — All symbols (admin). Returns: ConSymbol[] - `GET /api/MT4/{tradePlatform}/CfgRequestSymbol/{symbol}` — Symbol (admin). Parameters: symbol (path, string, required). Returns: ConSymbol - `POST /api/MT4/{tradePlatform}/CfgUpdateSymbol` — Update (admin). Body: ConSymbol. Returns: boolean - `GET /api/MT4/{tradePlatform}/SymbolsRefresh` — Force synchronize. Returns: boolean - `GET /api/MT4/{tradePlatform}/CfgRequestSymbolGroup` — Get symbol groups (admin). Returns: ConSymbolGroup[] ### MT4 :: Trades Reference page: https://mywebapi.com/reference/v1/mt4-trades/ - `GET /api/MT4/{tradePlatform}/TradesGet` — All open trades (pumping). Returns: TradeRecordDTO[] - `GET /api/MT4/{tradePlatform}/TradesGet/{ticket}` — Open trade by ticket (pumping). Parameters: ticket (path, integer (int32), required). Returns: TradeRecordDTO - `GET /api/MT4/{tradePlatform}/AdmTradesRequest/{group}/{openOnly}` — All trades by group name (admin). Parameters: group (path, string, required), openOnly (path, boolean, required). Returns: TradeRecordDTO[] - `GET /api/MT4/{tradePlatform}/TradesGetByLogin/{login}/{group}` — Open trades by login and group. Parameters: login (path, integer (int32), required), group (path, string, required). Returns: TradeRecordDTO[] - `POST /api/MT4/{tradePlatform}/AdmTradeRecordModify` — Modify order (admin). Body: TradeRecordDTO. Returns: boolean - `GET /api/MT4/{tradePlatform}/TradeRecordsRequest` — Trades by ticket. Parameters: orders (query, integer (int32)[]). Returns: TradeRecordDTO[] - `POST /api/MT4/{tradePlatform}/TradeTransaction` — Execute 'Trade Transaction'. Body: TradeTransInfo. Returns: TradeTransInfo - `GET /api/MT4/{tradePlatform}/TradesUserHistory/{login}/{fromTime}/{toTime}` — Trade history. Parameters: login (path, integer (int32), required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: TradeRecordDTO[] ### MT4 :: Users Reference page: https://mywebapi.com/reference/v1/mt4-users/ - `GET /api/MT4/{tradePlatform}/UsersGet` — All users (pumping). Returns: UserRecord[] - `GET /api/MT4/{tradePlatform}/UserRecordsRequest` — Users by login. Parameters: logins (query, integer (int32)[]). Returns: UserRecord[] - `GET /api/MT4/{tradePlatform}/UsersRequest` — All users. Returns: UserRecord[] - `GET /api/MT4/{tradePlatform}/UserRecordGet/{login}` — User (pumping). Parameters: login (path, integer (int32), required). Returns: UserRecord - `POST /api/MT4/{tradePlatform}/UserRecordNew` — Create new user. Body: UserRecordNew. Returns: UserRecordNew - `POST /api/MT4/{tradePlatform}/UserRecordUpdate` — Update user. Body: UserRecord. Returns: boolean - `GET /api/MT4/{tradePlatform}/MarginLevelGet/{login}` — Margin level (pumping). Parameters: login (path, integer (int32), required). Returns: MarginLevel - `GET /api/MT4/{tradePlatform}/MarginLevelRequest/{login}` — Margin level. Parameters: login (path, integer (int32), required). Returns: MarginLevel - `POST /api/MT4/{tradePlatform}/UserPasswordCheck/{login}` — Password - check. Parameters: login (path, integer (int32), required). Body: string. Returns: boolean - `POST /api/MT4/{tradePlatform}/UserPasswordSet/{login}` — Password - change. Parameters: login (path, integer (int32), required), changeInvestor (query, boolean), cleanPubkey (query, boolean). Body: string. Returns: boolean - `GET /api/MT4/{tradePlatform}/AdmBalanceCheck/{login}` — Balance - check (admin). Parameters: login (path, integer (int32), required). Returns: BalanceDiff - `GET /api/MT4/{tradePlatform}/AdmBalanceFix/{login}` — Balance - fix (admin). Parameters: login (path, integer (int32), required). Returns: boolean ### MT5 :: Clients Reference page: https://mywebapi.com/reference/v1/mt5-clients/ - `GET /api/MT5/{tradePlatform}/UserDelete/{login}` — Delete user. Parameters: login (path, integer (int64), required). Returns: MT5Result - `POST /api/MT5/{tradePlatform}/ClientAdd` — Add client. Body: MT5Client. Returns: MT5Client - `GET /api/MT5/{tradePlatform}/ClientUserAdd/{clientId}/{login}` — Attach account to user. Parameters: clientId (path, integer (int64), required), login (path, integer (int64), required). Returns: MT5Result - `GET /api/MT5/{tradePlatform}/ClientRequest/{clientId}` — Request Client. Parameters: clientId (path, integer (int64), required). Returns: MT5Client - `GET /api/MT5/{tradePlatform}/ClientDelete/{clientId}` — Delete Client. Parameters: clientId (path, integer (int64), required). Returns: MT5Result ### MT5 :: Configuration Databases :: Groups Reference page: https://mywebapi.com/reference/v1/mt5-configuration-databases-groups/ - `GET /api/MT5/{tradePlatform}/GroupGet/{group}` — Group by name (pumping). Parameters: group (path, string, required). Returns: MT5ConGroup - `GET /api/MT5/{tradePlatform}/GroupRequest/{group}` — Group by name. Parameters: group (path, string, required). Returns: MT5ConGroup - `GET /api/MT5/{tradePlatform}/GroupRequestArray/{mask}` — Groups by mask. Parameters: mask (path, string, required). Returns: MT5ConGroup[] ### MT5 :: Configuration Databases :: Managers Reference page: https://mywebapi.com/reference/v1/mt5-configuration-databases-managers/ - `GET /api/MT5/{tradePlatform}/ManagerCurrent` — Configuration of the current manager account. Returns: MT5ConManager ### MT5 :: Configuration Databases :: Symbols Reference page: https://mywebapi.com/reference/v1/mt5-configuration-databases-symbols/ - `GET /api/MT5/{tradePlatform}/SymbolGet/{symbol}` — Symbol by name (pumping). Parameters: symbol (path, string, required). Returns: MT5Symbol - `POST /api/MT5/{tradePlatform}/SymbolUpdate/{symbol}` — Update Symbol. Parameters: symbol (path, string, required). Body: MT5Symbol. Returns: boolean - `GET /api/MT5/{tradePlatform}/SymbolRequestArray/{mask}/{group}` — Symbols by mask. Parameters: mask (path, string, required), group (path, string). Returns: MT5Symbol[] ### MT5 :: Configuration Databases :: Time Reference page: https://mywebapi.com/reference/v1/mt5-configuration-databases-time/ - `GET /api/MT5/{tradePlatform}/TimeServer` — Get server time. Returns: string (date-time) - `GET /api/MT5/{tradePlatform}/TimeGet` — Time configuration. Returns: MT5ConTime ### MT5 :: History Data Reference page: https://mywebapi.com/reference/v1/mt5-history-data/ - `GET /api/MT5/{tradePlatform}/ChartRequest/{symbol}/{fromTime}/{toTime}` — Minute bars for a symbol. Parameters: symbol (path, string, required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5ChartBar[] ### MT5 :: Trade Activity :: Dealing Reference page: https://mywebapi.com/reference/v1/mt5-trade-activity-dealing/ - `POST /api/MT5/{tradePlatform}/DealerSend` — Send trade request. Body: MT5Request. Returns: MT5Request - `POST /api/MT5/{tradePlatform}/DealerBalance` — Send balance request. Body: DealerBalanceRequest. Returns: integer (int32) - `POST /api/MT5/{tradePlatform}/DealerBalanceRaw` — Send raw balance request (bypasses validation). Body: DealerBalanceRequest. Returns: integer (int32) ### MT5 :: Trade Databases :: Deals Reference page: https://mywebapi.com/reference/v1/mt5-trade-databases-deals/ - `GET /api/MT5/{tradePlatform}/DealRequest/{login}/{fromTime}/{toTime}` — Deals history by a login. Parameters: login (path, integer (int64), required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Deal[] - `GET /api/MT5/{tradePlatform}/DealRequestByGroup/{mask}/{fromTime}/{toTime}` — Deals by user group mask. Parameters: mask (path, string, required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Deal[] - `GET /api/MT5/{tradePlatform}/DealRequestByGroupSymbol/{mask}/{symbol}/{fromTime}/{toTime}` — Deals by user group mask and symbol. Parameters: mask (path, string, required), symbol (path, string, required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Deal[] - `GET /api/MT5/{tradePlatform}/DealRequestByTickets` — Deals by the list of tickets. Parameters: tickets (query, integer (int64)[]). Returns: MT5Deal[] - `POST /api/MT5/{tradePlatform}/DealRequestByTickets` — (Request) Deals by the list of tickets. Body: integer (int64)[]. Returns: MT5Deal[] - `GET /api/MT5/{tradePlatform}/DealRequestByLogins/{fromTime}/{toTime}` — Deals by the list of logins. Parameters: logins (query, integer (int64)[]), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Deal[] - `GET /api/MT5/{tradePlatform}/DealRequestByTicket/{ticket}` — Deal by a ticket. Parameters: ticket (path, integer (int64), required). Returns: MT5Deal - `POST /api/MT5/{tradePlatform}/DealUpdate` — Update Deal. Body: MT5Deal. Returns: boolean - `POST /api/MT5/{tradePlatform}/DealDeleteBatch` — Delete deals from the server database in bulk. Body: integer (int64)[]. Returns: MT5Result[] ### MT5 :: Trade Databases :: Orders Reference page: https://mywebapi.com/reference/v1/mt5-trade-databases-orders/ - `GET /api/MT5/{tradePlatform}/OrderGetByGroup/{mask}` — Orders (unfulfilled) by user group mask (pumping). Parameters: mask (path, string, required). Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/OrderGetBySymbol/{mask}/{symbol}` — Orders (unfulfilled) by user group mask and symbol (pumping). Parameters: mask (path, string, required), symbol (path, string, required). Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/OrderRequestByGroup/{mask}` — Orders by user group mask. Parameters: mask (path, string, required). Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/OrderRequestByGroupSymbol/{mask}/{symbol}` — Orders by user group mask and symbol. Parameters: mask (path, string, required), symbol (path, string, required). Returns: MT5Order[] - `POST /api/MT5/{tradePlatform}/OrderDeleteBatch` — Delete orders from the server database in bulk. Body: integer (int64)[]. Returns: MT5Result[] - `GET /api/MT5/{tradePlatform}/HistoryRequest/{login}/{fromTime}/{toTime}` — Orders history. Parameters: login (path, integer (int64), required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/HistoryRequestByGroup/{mask}/{fromTime}/{toTime}` — Orders history by group mask. Parameters: mask (path, string, required), fromTime (path, string (date-time)), toTime (path, string (date-time)). Returns: MT5Order[] - `POST /api/MT5/{tradePlatform}/HistoryRequestByTickets` — (Request) Orders history by list of ticket. Body: integer (int64)[]. Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/OrderGet/{ticket}` — Order (unfulfilled) by a ticket (pumping). Parameters: ticket (path, integer (int64), required). Returns: MT5Order - `GET /api/MT5/{tradePlatform}/OrderGetByLogins` — Orders (unfulfilled) by the list of logins (pumping). Parameters: logins (query, integer (int64)[]). Returns: MT5Order[] - `GET /api/MT5/{tradePlatform}/OrderGetByTickets` — Orders (unfulfilled) by the list of tickets (pumping). Parameters: tickets (query, integer (int64)[]). Returns: MT5Order[] - `POST /api/MT5/{tradePlatform}/OrderRequestByTickets` — (Request) Orders by the list of tickets. Body: integer (int64)[]. Returns: MT5Order[] ### MT5 :: Trade Databases :: Positions Reference page: https://mywebapi.com/reference/v1/mt5-trade-databases-positions/ - `GET /api/MT5/{tradePlatform}/PositionGet/{login}` — Positions by login (pumping). Parameters: login (path, integer (int64), required). Returns: MT5Position[] - `GET /api/MT5/{tradePlatform}/PositionGetByLogins` — Positions by logins (pumping). Parameters: logins (query, integer (int64)[]). Returns: MT5Position[] - `GET /api/MT5/{tradePlatform}/PositionGetByTickets` — Positions by tickets (pumping). Parameters: tickets (query, integer (int64)[]). Returns: MT5Position[] - `GET /api/MT5/{tradePlatform}/PositionRequestByGroup/{mask}` — Positions by user group mask (pumping). Parameters: mask (path, string, required). Returns: MT5Position[] - `GET /api/MT5/{tradePlatform}/PositionGetBySymbol/{mask}/{symbol}` — Positions by user group mask and symbol (pumping). Parameters: mask (path, string, required), symbol (path, string, required). Returns: MT5Position[] - `POST /api/MT5/{tradePlatform}/PositionDeleteBatch` — Delete positions from the server database in bulk. Body: integer (int64)[]. Returns: MT5Result[] ### MT5 :: Users Reference page: https://mywebapi.com/reference/v1/mt5-users/ - `POST /api/MT5/{tradePlatform}/UserAdd` — Add user. Body: MT5UserAdd. Returns: MT5UserAdd - `GET /api/MT5/{tradePlatform}/UserRequest/{login}` — Request User. Parameters: login (path, integer (int64), required). Returns: MT5User - `GET /api/MT5/{tradePlatform}/UserAccountGet/{login}` — Get Account (pumping). Parameters: login (path, integer (int64), required). Returns: MT5Account - `GET /api/MT5/{tradePlatform}/UserGetByLogins` — Accounts by the list of logins (pumping). Parameters: logins (query, integer (int64)[]). Returns: MT5User[] - `GET /api/MT5/{tradePlatform}/UserGet/{login}` — Get User (pumping). Parameters: login (path, integer (int64), required). Returns: MT5User - `GET /api/MT5/{tradePlatform}/UserGetByGroup/{mask}` — User get by Group (pumping). Parameters: mask (path, string, required). Returns: MT5User - `GET /api/MT5/{tradePlatform}/UserAccountRequest/{login}` — Request Account. Parameters: login (path, integer (int64), required). Returns: MT5Account - `POST /api/MT5/{tradePlatform}/UserUpdate` — Update User. Body: MT5User. Returns: boolean - `POST /api/MT5/{tradePlatform}/UserPasswordCheck/{login}/{type}` — Password - check. Parameters: login (path, integer (int64), required), type (path, UsersPasswords, required). Body: string. Returns: boolean - `POST /api/MT5/{tradePlatform}/UserPasswordChange/{login}/{type}` — Password - change. Parameters: login (path, integer (int64), required), type (path, UsersPasswords, required). Body: string. Returns: boolean ## API v2 (beta) — JSON-Pure WebAPI for MT4/MT5 159 operations — MT4 147, MT5 12. HTML reference: https://mywebapi.com/reference/v2/ · OpenAPI JSON: https://cloud.mywebapi.com/swagger/v2/swagger.json ### MT4 v2 :: Authentication Reference page: https://mywebapi.com/reference/v2/mt4-authentication/ - `POST /api/v2/MT4/{tradePlatform}/UserPasswordCheck/{login}` — Verify account password. Parameters: login (path, integer (int32), required). Body: string. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/UserPasswordSet/{login}` — Set account password. Parameters: login (path, integer (int32), required), changeInvestor (query, boolean), cleanPubkey (query, boolean). Body: string. Returns: BooleanApiResponse ### MT4 v2 :: Backup Reference page: https://mywebapi.com/reference/v2/mt4-backup/ - `GET /api/v2/MT4/{tradePlatform}/BackupInfoUsers/{mode}` — List user backup files. Parameters: mode (path, integer (int32), required). Returns: MT4BackupInfoListApiResponse - `GET /api/v2/MT4/{tradePlatform}/BackupInfoOrders/{mode}` — List order backup files. Parameters: mode (path, integer (int32), required). Returns: MT4BackupInfoListApiResponse - `GET /api/v2/MT4/{tradePlatform}/BackupRequestUsers/{file}` — Read users from backup. Parameters: file (path, string, required), request (query, string), limit (query, integer (int32)). Returns: MT4UserListApiResponse - `GET /api/v2/MT4/{tradePlatform}/BackupRequestOrders/{file}` — Read orders from backup. Parameters: file (path, string, required), request (query, string), limit (query, integer (int32)). Returns: MT4TradeListApiResponse ### MT4 v2 :: Backup (destructive) Reference page: https://mywebapi.com/reference/v2/mt4-backup-destructive/ - `POST /api/v2/MT4/{tradePlatform}/BackupRestoreUsers` — Restore users from backup. Parameters: confirm (query, boolean). Body: MT4UserRestoreInput[]. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/BackupRestoreOrders` — Restore orders from backup. Parameters: confirm (query, boolean). Body: MT4TradeRestoreInput[]. Returns: MT4TradeRestoreResultListApiResponse ### MT4 v2 :: Common Reference page: https://mywebapi.com/reference/v2/mt4-common/ - `GET /api/v2/MT4/{tradePlatform}/ServerTime` — Get server time. Returns: DateTimeApiResponse - `GET /api/v2/MT4/{tradePlatform}/ManagerCommon` — Get manager common settings. Returns: MT4CommonApiResponse - `GET /api/v2/MT4/{tradePlatform}/JournalRequest` — Get server journal. Parameters: from (query, string (date-time)), to (query, string (date-time)), mode (query, EnLogType), filter (query, string). Returns: MT4ServerLogListApiResponse ### MT4 v2 :: Config Reference page: https://mywebapi.com/reference/v2/mt4-config/ - `GET /api/v2/MT4/{tradePlatform}/CfgRequestCommon` — Get common config (live). Returns: MT4CommonApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateCommon` — Update common config. Body: MT4CommonUpdate. Returns: MT4CommonApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestHoliday` — List holiday config. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4HolidayListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestManager` — List manager configs. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4ManagerRightsListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestTime` — Get access-hour matrix. Returns: MT4ServerTimeApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateTime` — Update access-hour matrix. Body: MT4ServerTime. Returns: MT4ServerTimeApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestAccess` — List IP firewall rules. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4AccessListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestBackup` — Get backup config. Returns: MT4BackupApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateBackup` — Update backup config. Body: MT4Backup. Returns: MT4BackupApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateSync` — Update sync rule. Body: MT4Sync. Returns: MT4SyncApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateFeeder` — Update feeder config. Body: MT4Feeder. Returns: MT4FeederApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateGatewayAccount` — Update gateway account. Body: MT4GatewayAccount. Returns: MT4GatewayAccountApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateGatewayMarkup` — Update gateway markup. Body: MT4GatewayMarkup. Returns: MT4GatewayMarkupApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateGatewayRule` — Update gateway rule. Body: MT4GatewayRule. Returns: MT4GatewayRuleApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateLiveUpdate` — Update LiveUpdate config. Body: MT4LiveUpdate. Returns: MT4LiveUpdateApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateManager` — Update manager config. Body: MT4ManagerRights. Returns: MT4ManagerRightsApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateAccess/{pos}` — Update IP firewall rule. Parameters: pos (path, integer (int32), required). Body: MT4Access. Returns: MT4AccessApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateDataServer/{pos}` — Update data-server entry. Parameters: pos (path, integer (int32), required). Body: MT4DataServer. Returns: MT4DataServerApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateHoliday/{pos}` — Update holiday entry. Parameters: pos (path, integer (int32), required). Body: MT4Holiday. Returns: MT4HolidayApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateSymbolGroup/{pos}` — Update symbol group. Parameters: pos (path, integer (int32), required). Body: MT4SymbolGroup. Returns: MT4SymbolGroupApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestGatewayAccount` — List gateway accounts. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4GatewayAccountListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestGatewayMarkup` — List gateway markups. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4GatewayMarkupListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestGatewayRule` — List gateway rules. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4GatewayRuleListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestDataServer` — List data servers. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4DataServerListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestFeeder` — List feeder configs. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4FeederListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestLiveUpdate` — List LiveUpdate configs. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4LiveUpdateListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestSync` — List sync rules. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4SyncListApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteAccess/{pos}` — Delete IP firewall rule. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteDataServer/{pos}` — Delete data-server entry. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteFeeder/{pos}` — Delete feeder config. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteGatewayAccount/{pos}` — Delete gateway account. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteGatewayMarkup/{pos}` — Delete gateway markup. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteGatewayRule/{pos}` — Delete gateway rule. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteHoliday/{pos}` — Delete holiday entry. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteLiveUpdate/{pos}` — Delete LiveUpdate config. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteManager/{pos}` — Delete manager config. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteSymbol/{pos}` — Delete symbol config. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgDeleteSync/{pos}` — Delete sync rule. Parameters: pos (path, integer (int32), required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftAccess/{pos}` — Reorder IP firewall rule. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftDataServer/{pos}` — Reorder data-server entry. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftFeeder/{pos}` — Reorder feeder config. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftGatewayAccount/{pos}` — Reorder gateway account. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftGatewayMarkup/{pos}` — Reorder gateway markup. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftGatewayRule/{pos}` — Reorder gateway rule. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftGroup/{pos}` — Reorder trading group. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftHoliday/{pos}` — Reorder holiday entry. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftLiveUpdate/{pos}` — Reorder LiveUpdate config. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftManager/{pos}` — Reorder manager config. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftPlugin/{pos}` — Reorder plugin entry. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftSymbol/{pos}` — Reorder symbol entry. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgShiftSync/{pos}` — Reorder sync rule. Parameters: pos (path, integer (int32), required), shift (query, integer (int32)). Returns: BooleanApiResponse ### MT4 v2 :: Groups Reference page: https://mywebapi.com/reference/v2/mt4-groups/ - `GET /api/v2/MT4/{tradePlatform}/GroupsGet` — List trading groups (cached). Returns: MT4GroupListApiResponse - `GET /api/v2/MT4/{tradePlatform}/GroupRecordGet/{group}` — Get trading group (cached). Parameters: group (path, string, required). Returns: MT4GroupApiResponse - `GET /api/v2/MT4/{tradePlatform}/GroupsRequest` — List trading groups (live). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4GroupListApiResponse - `GET /api/v2/MT4/{tradePlatform}/GroupSecGroupsGet/{group}` — Get group security entries. Parameters: group (path, string, required). Returns: MT4GroupSecListApiResponse - `GET /api/v2/MT4/{tradePlatform}/GroupSecMarginsGet/{group}` — Get group margin overrides. Parameters: group (path, string, required). Returns: MT4GroupMarginListApiResponse - `POST /api/v2/MT4/{tradePlatform}/GroupRecordUpdate/{group}` — Update trading group. Parameters: group (path, string, required). Body: MT4GroupUpdate. Returns: MT4GroupApiResponse - `PATCH /api/v2/MT4/{tradePlatform}/GroupRecord/{group}` — Patch trading group. Parameters: group (path, string, required). Body: object. Returns: MT4GroupApiResponse - `GET /api/v2/MT4/{tradePlatform}/EnsureGroupNameExist/{group}` — Check group exists. Parameters: group (path, string, required). Returns: BooleanApiResponse ### MT4 v2 :: History Reference page: https://mywebapi.com/reference/v2/mt4-history/ - `GET /api/v2/MT4/{tradePlatform}/TradesUserHistory/{login}` — Get account trade history. Parameters: login (path, integer (int32), required), fromTime (query, string (date-time)), toTime (query, string (date-time)). Returns: MT4TradeListApiResponse ### MT4 v2 :: Mail Reference page: https://mywebapi.com/reference/v2/mt4-mail/ - `GET /api/v2/MT4/{tradePlatform}/MailLast` — Get last mail path. Returns: StringApiResponse ### MT4 v2 :: Margins Reference page: https://mywebapi.com/reference/v2/mt4-margins/ - `GET /api/v2/MT4/{tradePlatform}/MarginsGet` — List account margins (cached). Returns: MT4MarginLevelListApiResponse - `GET /api/v2/MT4/{tradePlatform}/MarginLevelGet/{login}` — Get account margin (cached). Parameters: login (path, integer (int32), required). Returns: MT4MarginLevelApiResponse - `GET /api/v2/MT4/{tradePlatform}/MarginLevelRequest/{login}` — Get account margin (live). Parameters: login (path, integer (int32), required). Returns: MT4MarginLevelApiResponse ### MT4 v2 :: News Reference page: https://mywebapi.com/reference/v2/mt4-news/ - `GET /api/v2/MT4/{tradePlatform}/NewsTotal` — Get news count. Returns: Int32ApiResponse - `GET /api/v2/MT4/{tradePlatform}/NewsBodyGet/{key}` — Get news body (cached). Parameters: key (path, integer (int32), required). Returns: StringApiResponse - `GET /api/v2/MT4/{tradePlatform}/NewsGet` — List news headers. Returns: MT4NewsTopicListApiResponse - `GET /api/v2/MT4/{tradePlatform}/NewsTopicGet/{pos}` — Get news header by index. Parameters: pos (path, integer (int32), required). Returns: MT4NewsTopicApiResponse - `POST /api/v2/MT4/{tradePlatform}/NewsBodyRequest/{key}` — Request news body fetch. Parameters: key (path, integer (int32), required). Returns: BooleanApiResponse ### MT4 v2 :: Online Reference page: https://mywebapi.com/reference/v2/mt4-online/ - `GET /api/v2/MT4/{tradePlatform}/OnlineGet` — List online users (cached). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4OnlineListApiResponse - `GET /api/v2/MT4/{tradePlatform}/OnlineRequest` — List online sessions (live). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4OnlineListApiResponse ### MT4 v2 :: Plugins Reference page: https://mywebapi.com/reference/v2/mt4-plugins/ - `POST /api/v2/MT4/{tradePlatform}/ExternalCommandJSON` — Send plugin command (JSON). Body: any. Returns: JsonNodeApiResponse ### MT4 v2 :: Prices Reference page: https://mywebapi.com/reference/v2/mt4-prices/ - `GET /api/v2/MT4/{tradePlatform}/ChartRequest/{symbol}` — Get chart bars. Parameters: symbol (path, string, required), period (query, ChartPeriod), start (query, string (date-time)), end (query, string (date-time)), mode (query, RequestMode). Returns: MT4ChartBarListApiResponse - `POST /api/v2/MT4/{tradePlatform}/ChartAdd/{symbol}` — Add chart bars. Parameters: symbol (path, string, required), period (query, ChartPeriod). Body: MT4ChartWriteRequest. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/ChartUpdate/{symbol}` — Update chart bars. Parameters: symbol (path, string, required), period (query, ChartPeriod). Body: MT4ChartWriteRequest. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/ChartDelete/{symbol}` — Delete chart bars. Parameters: symbol (path, string, required), period (query, ChartPeriod). Body: MT4ChartWriteRequest. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/HistoryCorrect/{symbol}` — Repair chart history. Parameters: symbol (path, string, required). Returns: Int32ApiResponse - `GET /api/v2/MT4/{tradePlatform}/TicksRequest/{symbol}` — Get historical ticks. Parameters: symbol (path, string, required), start (query, string (date-time)), end (query, string (date-time)), flags (query, TickRequestFlags). Returns: MT4TickRecordListApiResponse - `GET /api/v2/MT4/{tradePlatform}/TickInfoLast/{symbol}` — Get last tick (cached). Parameters: symbol (path, string, required). Returns: MT4TickInfoApiResponse - `GET /api/v2/MT4/{tradePlatform}/TickInfoLast` — Get last ticks, all symbols (cached). Returns: MT4TickInfoListApiResponse ### MT4 v2 :: Reports Reference page: https://mywebapi.com/reference/v2/mt4-reports/ - `GET /api/v2/MT4/{tradePlatform}/PerformanceRequest` — Get server performance series. Parameters: from (query, string (date-time)). Returns: MT4PerformanceListApiResponse - `GET /api/v2/MT4/{tradePlatform}/ReportsRequest` — Get closed-trade reports. Parameters: from (query, string (date-time)), to (query, string (date-time)), logins (query, integer (int32)[]), name (query, string). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/DailyReportsRequest` — Get daily reports. Parameters: from (query, string (date-time)), to (query, string (date-time)), logins (query, integer (int32)[]), name (query, string). Returns: MT4DailyReportListApiResponse - `GET /api/v2/MT4/{tradePlatform}/DailyReportsRequestEx` — Get daily reports (grouped). Parameters: from (query, string (date-time)), to (query, string (date-time)), logins (query, integer (int32)[]), name (query, string). Returns: Int32MT4DailyReportListDictionaryApiResponse - `POST /api/v2/MT4/{tradePlatform}/DailySyncStart` — Start daily-report sync. Parameters: timestamp (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/DailySyncRead` — Read daily-report sync. Returns: MT4DailyReportListApiResponse ### MT4 v2 :: Server Admin Reference page: https://mywebapi.com/reference/v2/mt4-server-admin/ - `GET /api/v2/MT4/{tradePlatform}/SrvFeeders` — List data feeders. Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4FeederListApiResponse - `GET /api/v2/MT4/{tradePlatform}/LicenseCheck/{licenseName}` — Check license. Parameters: licenseName (path, string, required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/NotificationsSend`. Body: MT4NotificationsSendRequest. Returns: BooleanApiResponse - `GET /api/v2/MT4/{tradePlatform}/SrvFeederLog/{name}` — Get feeder log. Parameters: name (path, string, required). Returns: StringApiResponse ### MT4 v2 :: Server Admin (destructive) Reference page: https://mywebapi.com/reference/v2/mt4-server-admin-destructive/ - `POST /api/v2/MT4/{tradePlatform}/SrvRestart` — Restart server. Parameters: confirm (query, boolean). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SrvChartsSync` — Force chart resync. Parameters: confirm (query, boolean). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SrvLiveUpdateStart` — Start LiveUpdate distributor. Parameters: confirm (query, boolean). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SrvFeedsRestart` — Restart data feeders. Parameters: confirm (query, boolean). Returns: BooleanApiResponse ### MT4 v2 :: Symbols Reference page: https://mywebapi.com/reference/v2/mt4-symbols/ - `GET /api/v2/MT4/{tradePlatform}/SymbolInfoGet` — Get symbol market data (cached). Parameters: symbol (query, string). Returns: MT4SymbolInfoApiResponse - `GET /api/v2/MT4/{tradePlatform}/SymbolInfoUpdated` — List updated symbols (cached). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4SymbolInfoListApiResponse - `GET /api/v2/MT4/{tradePlatform}/SymbolsGroupsGet` — List symbol groups (cached). Returns: MT4SymbolGroupListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestSymbol` — List symbol configs. Returns: MT4SymbolConfigListApiResponse - `GET /api/v2/MT4/{tradePlatform}/CfgRequestSymbol/{symbol}` — Get symbol config. Parameters: symbol (path, string, required). Returns: MT4SymbolConfigApiResponse - `GET /api/v2/MT4/{tradePlatform}/SymbolSessionsGet/{symbol}` — Get symbol sessions. Parameters: symbol (path, string, required). Returns: MT4SymbolDaySessionsListApiResponse - `POST /api/v2/MT4/{tradePlatform}/CfgUpdateSymbol/{symbol}` — Update symbol config. Parameters: symbol (path, string, required). Body: MT4SymbolConfigUpdate. Returns: MT4SymbolConfigApiResponse - `PATCH /api/v2/MT4/{tradePlatform}/SymbolConfig/{symbol}` — Patch symbol config. Parameters: symbol (path, string, required). Body: object. Returns: MT4SymbolConfigApiResponse - `POST /api/v2/MT4/{tradePlatform}/SymbolAdd/{symbol}` — Add symbol. Parameters: symbol (path, string, required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SymbolHide/{symbol}` — Hide symbol. Parameters: symbol (path, string, required). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SymbolsRefresh` — Refresh symbol catalog. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SymbolChange` — Change symbol attributes. Body: MT4SymbolChangeRequest. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/SymbolSendTick` — Send synthetic tick. Parameters: symbol (query, string), bid (query, number (double)), ask (query, number (double)). Returns: BooleanApiResponse ### MT4 v2 :: Trades Reference page: https://mywebapi.com/reference/v2/mt4-trades/ - `GET /api/v2/MT4/{tradePlatform}/TradesGet` — List open trades (cached). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradesGet/{ticket}` — Get trade by ticket (cached). Parameters: ticket (path, integer (int32), required). Returns: MT4TradeApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradesGetByLogin/{login}/{group}` — List trades by account (cached). Parameters: login (path, integer (int32), required), group (path, string, required). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradesGetBySymbol` — List trades by symbol (cached). Parameters: symbol (query, string). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradesGetByMarket` — List market trades (cached). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradeRecordGet/{order}` — Get trade record (cached). Parameters: order (path, integer (int32), required). Returns: MT4TradeApiResponse - `POST /api/v2/MT4/{tradePlatform}/TradeCheckStops` — Validate order stops. Parameters: price (query, number (double)). Body: MT4TradeTransaction. Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/TradeClearRollback/{order}` — Roll back trade transaction. Parameters: order (path, integer (int32), required). Returns: BooleanApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradeRecordRequest/{order}` — Get trade record (live). Parameters: order (path, integer (int32), required). Returns: MT4TradeApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradesRequest` — Query trades (live). Parameters: limit (query, integer (int32)), cursor (query, string), group (query, string). Returns: MT4TradeListApiResponse - `POST /api/v2/MT4/{tradePlatform}/AdmTradeRecordModify/{ticket}` — Modify trade record (admin). Parameters: ticket (path, integer (int32), required). Body: MT4TradeUpdate. Returns: MT4TradeApiResponse - `POST /api/v2/MT4/{tradePlatform}/TradeTransaction` — Submit trade transaction. Body: MT4TradeTransaction. Returns: MT4TradeTransactionApiResponse - `GET /api/v2/MT4/{tradePlatform}/TradeRecordsRequest` — Get trade records batch (live). Parameters: orders (query, integer (int32)[]). Returns: MT4TradeListApiResponse - `GET /api/v2/MT4/{tradePlatform}/AdmTradesRequest/{group}` — List group trades (admin). Parameters: group (path, string, required), openOnly (query, boolean). Returns: MT4TradeListApiResponse - `POST /api/v2/MT4/{tradePlatform}/AdmTradesDelete` — Delete trades (admin). Parameters: orders (query, integer (int32)[]). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/TradesSyncStart` — Start trade-records sync. Parameters: timestamp (query, integer (int32)). Returns: BooleanApiResponse ### MT4 v2 :: Users Reference page: https://mywebapi.com/reference/v2/mt4-users/ - `GET /api/v2/MT4/{tradePlatform}/UserRecordGet/{login}` — Get account (cached). Parameters: login (path, integer (int32), required). Returns: MT4UserApiResponse - `GET /api/v2/MT4/{tradePlatform}/UserRecordRequest/{login}` — Get account (live). Parameters: login (path, integer (int32), required). Returns: MT4UserApiResponse - `GET /api/v2/MT4/{tradePlatform}/UserRecordsRequest` — Get accounts batch (live). Parameters: logins (query, integer (int32)[]). Returns: MT4UserListApiResponse - `GET /api/v2/MT4/{tradePlatform}/AdmBalanceCheck/{login}` — Check account balance. Parameters: login (path, integer (int32), required). Returns: MT4BalanceDiffApiResponse - `GET /api/v2/MT4/{tradePlatform}/AdmBalanceCheck` — Check account balances (batch). Parameters: logins (query, integer (int32)[]). Returns: MT4BalanceDiffListApiResponse - `POST /api/v2/MT4/{tradePlatform}/AdmBalanceFix` — Fix account balances. Parameters: logins (query, integer (int32)[]). Returns: BooleanApiResponse - `GET /api/v2/MT4/{tradePlatform}/UsersRequest` — List accounts (live). Parameters: limit (query, integer (int32)), cursor (query, string). Returns: MT4UserListApiResponse - `POST /api/v2/MT4/{tradePlatform}/UserRecordNew` — Create account. Body: MT4UserCreate. Returns: MT4UserApiResponse - `POST /api/v2/MT4/{tradePlatform}/UserRecordUpdate/{login}` — Update account. Parameters: login (path, integer (int32), required). Body: MT4UserUpdate. Returns: MT4UserApiResponse - `PATCH /api/v2/MT4/{tradePlatform}/UserRecord/{login}` — Patch account. Parameters: login (path, integer (int32), required). Body: object. Returns: MT4UserApiResponse - `GET /api/v2/MT4/{tradePlatform}/AdmUsersRequestSafe/{group}` — List group accounts (admin). Parameters: group (path, string, required). Returns: MT4UserListApiResponse - `POST /api/v2/MT4/{tradePlatform}/UsersSyncStart` — Start user-records sync. Parameters: timestamp (query, integer (int32)). Returns: BooleanApiResponse - `POST /api/v2/MT4/{tradePlatform}/UsersGroupOp` — Bulk account operation. Body: MT4UsersGroupOp. Returns: BooleanApiResponse ### MT5 v2 :: Common Reference page: https://mywebapi.com/reference/v2/mt5-common/ - `GET /api/v2/MT5/{tradePlatform}/ServerTime` — Get server time. Returns: DateTimeApiResponse - `GET /api/v2/MT5/{tradePlatform}/TimeGet` — Get server time configuration. Returns: MT5TimeApiResponse ### MT5 v2 :: Groups Reference page: https://mywebapi.com/reference/v2/mt5-groups/ - `GET /api/v2/MT5/{tradePlatform}/GroupGet/{group}` — Get a group by name. Parameters: group (path, string, required). Returns: MT5ConGroupApiResponse - `PATCH /api/v2/MT5/{tradePlatform}/GroupRecord/{group}` — Partially update a group. Parameters: group (path, string, required). Body: object. Returns: MT5ConGroupApiResponse ### MT5 v2 :: Managers Reference page: https://mywebapi.com/reference/v2/mt5-managers/ - `GET /api/v2/MT5/{tradePlatform}/ManagerCurrent` — Get the current session manager. Returns: MT5ConManagerApiResponse ### MT5 v2 :: Symbols Reference page: https://mywebapi.com/reference/v2/mt5-symbols/ - `GET /api/v2/MT5/{tradePlatform}/SymbolGet/{symbol}` — Get a symbol by name. Parameters: symbol (path, string, required). Returns: MT5SymbolApiResponse - `PATCH /api/v2/MT5/{tradePlatform}/SymbolRecord/{symbol}` — Partially update a symbol. Parameters: symbol (path, string, required). Body: object. Returns: MT5SymbolApiResponse ### MT5 v2 :: Trades Reference page: https://mywebapi.com/reference/v2/mt5-trades/ - `GET /api/v2/MT5/{tradePlatform}/PositionByGroup/{mask}` — List positions by group. Parameters: mask (path, string, required), limit (query, integer (int32)), cursor (query, string). Returns: MT5PositionListApiResponse - `GET /api/v2/MT5/{tradePlatform}/OrderByGroup/{mask}` — List orders by group. Parameters: mask (path, string, required), limit (query, integer (int32)), cursor (query, string). Returns: MT5OrderListApiResponse - `GET /api/v2/MT5/{tradePlatform}/DealByGroup/{mask}` — List deals by group. Parameters: mask (path, string, required), limit (query, integer (int32)), cursor (query, string). Returns: MT5DealListApiResponse ### MT5 v2 :: Users Reference page: https://mywebapi.com/reference/v2/mt5-users/ - `GET /api/v2/MT5/{tradePlatform}/UserGet/{login}` — Get a user by login. Parameters: login (path, integer (int64), required). Returns: MT5UserApiResponse - `PATCH /api/v2/MT5/{tradePlatform}/UserRecord/{login}` — Partially update a user. Parameters: login (path, integer (int64), required). Body: object. Returns: MT5UserApiResponse MetaTrader, MT4, MT5 and MetaQuotes are trademarks or registered trademarks of MetaQuotes Ltd. CPlugin is not affiliated with, endorsed by, or sponsored by MetaQuotes Ltd.