API v2 (current) · MT4 · 4 operations ·
base URL https://cloud.mywebapi.com ·
OpenAPI v2 (JSON) ·
Redoc
Every call needs Authorization: Bearer $TOKEN — an OAuth 2.0 client-credentials token (scope
webapi). The token server belongs to the environment: for the Sandbox call
https://pre.mywebapi.com and take the token from
https://pre.auth.cplugin.net/connect/token; for Production take it from
https://auth.cplugin.net/connect/token. Clients and tokens of the two are separate — a token
from one answers 401 on the other.
$TRADE_PLATFORM_ID is the id of a trade platform registered in Toolbox.
A failed operation is also answered with HTTP 200: check error before using
data. Access and transport failures use HTTP codes — see
Errors.
List of running data feeders on the MT4 server (admin-only read).
Asks the trade server directly. Returns the
current set of running feeder configurations as opposed to
CfgRequestFeeder which returns the static configuration. The
data shape is the same as CfgRequestFeeder — MT4Feeder
— and the credential (Password) is intentionally excluded.
Sorted by Name ascending. Paged with the same cursor codec as
the rest of the v2 paged endpoints; the page key is the name together
with the feeder's file/server/login identity.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
limit
query
integer (int32)
no
Maximum number of items to return in one page. Omit to return all items in a single page. Maximum allowed value is 5000.
cursor
query
string
no
Opaque continuation token. Pass the value from the previous response's meta.paging.nextCursor to fetch the next page; omit for the first page. A token is accepted only by the call that issued it: a corrupt, truncated or foreign token answers a Validation error instead of restarting from the first page.
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/LicenseCheck/{licenseName}
Check a license name against the MT4 server's license registry — admin-only read.
Asks the trade server directly.
Returns a bare bool payload: true when the license is in
the server's registry, false when the server says the name is not
there. Any other failure of the check (connection, rights, server
malfunction) is an error envelope carrying the trade-server code — it is
not reported as "license absent".
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
licenseName
path
string
yes
License name to verify against the MT4 server's registry
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
POST /api/v2/MT4/{tradePlatform}/NotificationsSend
Send a push notification to one or more MT4 mobile clients — admin write.
Server-side call to the platform's
NotificationsSend2(int[] logins, string message). The MT4
server fans the message out to each login's registered mobile
device via the MetaQuotes push channel.
Validation rules:
Logins must contain at least one positive value.
Message must be non-empty and at most 1024 characters.
Returns a bare bool envelope: true when the platform
reports the dispatch succeeded.
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 15 s (change). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/SrvFeederLog/{name}
Server log for a single feeder by name (admin-only read).
Asks the trade server directly. Returns
the feeder's log buffer as a string (empty when the feeder is unknown
or has no recent log activity). Payload is the raw log text — not an
array of lines — to preserve formatting at the platform boundary.
Timeout: 30 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
name
path
string
yes
Feeder name (matched server-side; case-sensitive)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 30 s (history or report). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Types the operations above take and return, with their first-level properties; * marks a required one. The full graph is in the OpenAPI specification.
MT4FeederListApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
BooleanApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT4NotificationsSendRequest
Request body for the v2 NotificationsSend admin endpoint — pushes a single message to one or more MT4 clients identified by account login. Maps onto the platform's NotificationsSend2(int[] logins, string message).
Property
Type
Description
logins
integer (int32)[]
Account logins to deliver the notification to (server-side fan-out — the platform sends one notification per recipient in a single Manager-API call).
message
string, nullable
Notification text. Single-line; the MT4 mobile client displays it as the push body. Controller enforces a length cap to keep the payload tractable on the unmanaged side.
StringApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT4Feeder
v2 record for a single MT4 quote/news feeder configuration. Curated subset of the platform's ConFeeder — drops the platform's Unused reserved blob AND the Password field (datafeed credentials).
Property
Type
Description
name
string, nullable
Feeder name (used as cursor key — assumed unique)
file
string, nullable
Datafeed loader filename (DLL or script path)
server
string, nullable
Upstream feeder server address
login
string, nullable
Datafeed login (upstream credential identifier)
keywords
string, nullable
Keywords for news filtering
enable
integer (int32)
Enable flag (0 = disabled, 1 = enabled — raw platform int)
dataFeedMode
DataFeedMode
Feed mode (quotes / news / both — platform enum)
timeout
integer (int32)
Maximum freeze time in seconds before considered stalled (default ~120)
timeoutReconnect
integer (int32)
Reconnect delay before "sleep" attempts threshold (default ~5s)
timeoutSleep
integer (int32)
Reconnect delay after "sleep" attempts threshold (default ~60s)
attempsSleep
integer (int32)
Reconnect count before switching to sleep timeout
newsLangId
integer (int32)
News language id
ApiError
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Property
Type
Description
code
WebApiErrorCode
Stable transport-level error code.
managerCode
ResultCode
Raw MT4 result code when ApiError.Code is MT4Error; null otherwise. On MT5 the result name is in ApiError.Message.
message
string, nullable
Human-readable error description.
ApiMeta
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
Property
Type
Description
activityId
string, nullable
W3C trace id of the request. Quote it when you contact support: it finds this exact call in the server logs.
paging
PagingMeta
Pagination info; present only on list responses, omitted otherwise.