API v2 (current) · MT5 · 26 operations ·
base URL https://cloud.mywebapi.com ·
OpenAPI v2 (JSON) ·
Redoc
Every call needs Authorization: Bearer $TOKEN — an OAuth 2.0 client-credentials token from
https://auth.cplugin.net/connect/token (scope webapi).
$TRADE_PLATFORM_ID is the id of a trade platform registered in Toolbox.
Enumerates the mailbox of the account the API uses to connect to the trade server. Only the
headers are returned — subject, sender, recipient, time and sizes — so a mailbox with large
messages is enumerated without transferring their content. Request a single message by its
identifier to receive the body and the attachments.
The positions are counted from zero over the mailbox as it is held by the connection; the
list grows as new messages arrive. Every entry of the page costs one native read, so the
page is capped at count entries and a call that asks for more than 1000 is refused
as invalid.
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 identifier (GUID).
from
query
integer (int32)
no
Zero-based position of the first message; entries before it are skipped.
count
query
integer (int32)
no
Number of messages to return, 1 to 1000. Default 100.
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.
GET /api/v2/MT5/{tradePlatform}/MailBodyRequest/{id}
Fetches the whole message — headers, body and the files attached to it — from the trade
server. The list route leaves the content out, so this is the call that carries it.
The identifier is the one the server assigned to the message, as returned by the list route.
An identifier the server does not know is answered with the platform error that explains it.
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 identifier (GUID).
id
path
integer (int64)
yes
Message identifier.
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.
Sends a message to the account with the given login through the internal mail system of the
trade server. The sender is filled by the server with the account the API uses to connect,
so it is not part of the request; the subject and the recipient are required, and a request
without either is refused as invalid before the server is asked.
The body and the attachments travel whole and are stored as sent. The platform substitutes
the account macros (login, name, currency, balance, credit, equity, margin, free margin,
margin level, leverage) with the data of the recipient when the message is shown.
Every call sends a new message: a repeated request after a timeout may deliver a second copy.
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 identifier (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.
Removes the message at the given zero-based position of the mailbox of the account the API
uses to connect. Positions of the following messages shift down by one, so deleting several
messages by position in one pass must account for the shift, and the identifier route is the
safer choice. The deletion is not reversible.
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 identifier (GUID).
pos
query
integer (int32)
no
Zero-based position of the message in the mailbox.
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.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/MailDelete" \
-H "Authorization: Bearer $TOKEN"
Delete a message by its identifier
POST /api/v2/MT5/{tradePlatform}/MailDeleteId/{id}
Removes the message with the given identifier from the mailbox of the account the API uses
to connect. Unlike deletion by position, this call does not depend on the order of the
mailbox. The deletion is not reversible; an identifier the server does not know is answered
with the platform error that explains it.
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 identifier (GUID).
id
path
integer (int64)
yes
Message identifier.
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.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/MailDeleteId/$ID" \
-H "Authorization: Bearer $TOKEN"
List news items received by the manager account
GET /api/v2/MT5/{tradePlatform}/NewsRequest
Enumerates the news items received by the account the API uses to connect. Only the headers
are returned; request a single news item by its identifier to receive the body.
The positions are counted from zero. Every entry of the page costs one native read, so the
page is capped at count entries and a call that asks for more than 1000 is refused as
invalid.
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 identifier (GUID).
from
query
integer (int32)
no
Zero-based position of the first news item; entries before it are skipped.
count
query
integer (int32)
no
Number of news items to return, 1 to 1000. Default 100.
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.
GET /api/v2/MT5/{tradePlatform}/NewsBodyRequest/{id}
Fetches the whole news item — subject, category, time, language, flags and body — from the
trade server. The list route returns headers alone, so this is the call that carries the body.
The identifier is the one the server assigned to the news item, as returned by the list
route. An identifier the server does not know is answered with the platform error that
explains it.
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 identifier (GUID).
id
path
integer (int64)
yes
News item identifier.
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.
Sends a news item to the trade server, where it is delivered to the recipients configured
for the manager account. The subject is required; a request without it is refused as
invalid before the server is asked.
The publication time, the language, the flags and the body are stored as sent; a field left
out keeps the value the platform starts it with. Every call publishes a new item: a repeated
request after a timeout may publish a second copy.
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 identifier (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.
Asks the trade server whether the use of the named application is authorized in its platform
license and receives the signed answer. The signature covers the result code, the application
name and the random sequence, so the caller verifies the authenticity of the answer with the
public key of the platform.
The name is limited to 128 characters and the random sequence to 256 bytes; a longer value
is refused as invalid. This check answers the licensing question alone — it changes nothing
on the server.
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 identifier (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.
Flush the local journal of the manager interface to disk
POST /api/v2/MT5/{tradePlatform}/LoggerFlush
Writes the buffer of the local journal of the manager interface to disk at once instead of
waiting for the next flush. The journal is local to the process that holds the connection;
the call changes nothing on the trade server and answers true.
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 identifier (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.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/LoggerFlush" \
-H "Authorization: Bearer $TOKEN"
Write a formatted entry into the local journal
POST /api/v2/MT5/{tradePlatform}/LoggerOut
Adds an entry to the local journal of the manager interface of the connection. The text is
written as given: no format placeholders of the platform are applied to it, so a percent
sign in the message is kept. Line feed and carriage return are refused as invalid — the
platform computes the journal checksum line by line — and so is a message longer than 16 KB.
The journal is local to the process that holds the connection; the call changes nothing on
the trade server.
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 identifier (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.
Request body
MT5LoggerMessage (application/json) — Entry to write: the platform code of the event and its text.
The same entry as the formatted variant, written without scanning the text for format
placeholders. Cheaper for messages that are known to carry no arguments, which is the usual
case for a text received over the API.
Line feed and carriage return are refused as invalid, and so is a message longer than 16 KB.
The journal is local to the process that holds the connection; the call changes nothing on
the trade server.
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 identifier (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.
Request body
MT5LoggerMessage (application/json) — Entry to write: the platform code of the event and its text.
GET /api/v2/MT5/{tradePlatform}/LoggerServerRequest
Returns the entries of the chosen kind in the given time window, newest and oldest included.
The window is given in seconds elapsed since 01.01.1970; the optional keyword narrows the
entries the way the journal search of the platform does.
mode accepts 0 (standard entries), 1 (errors only) or 2 (full journal); type
accepts 0 (all events), 1–8 (configuration, system, network, history, users, trades, API
calls, notifications) or 16–17 (live update, outgoing mail). Any other value is refused.
The whole window is returned in one answer, so a wide window over a busy server is a large
response.
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 identifier (GUID).
mode
query
integer (int32)
no
Platform request mode of the journal.
type
query
integer (int32)
no
Platform event type to request.
from
query
integer (int64)
no
Start of the window, seconds elapsed since 01.01.1970.
to
query
integer (int64)
no
End of the window, seconds elapsed since 01.01.1970.
filter
query
string
no
Optional keyword of the journal search.
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.
Change the password of the manager account used by the connection
POST /api/v2/MT5/{tradePlatform}/PasswordChange/{type}
Replaces the stored password of the account the API uses to connect to the trade server. The
change is made by the account itself and applies to the password type given in the route:
Main, Investor, API or Trader. Any other value is refused.
The connection settings kept by this API are not updated by this call: the next connection
attempt still presents the old password and the platform refuses it until the settings are
brought in line. Change the password here only together with the stored settings.
The new password must contain at least two of the three character kinds — lower case, upper
case, digits — and meet the minimum length of the group of the account; a password the
policy refuses is answered with the platform error that explains it.
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.
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.
Name of the trade server the connection is held to
GET /api/v2/MT5/{tradePlatform}/NetworkServer
Returns the server name the manager connection was opened with. The name is the one given at
connection time, not the address currently used, so it lets the caller recognise a server
that is reached through another access point.
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 identifier (GUID).
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.
Address of the trade server the connection is held to
GET /api/v2/MT5/{tradePlatform}/NetworkAddress
Returns the address the manager connection currently talks to. After the connection moved to
another access point this is the new address, which is what makes it useful together with
the server name.
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 identifier (GUID).
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.
Total number of bytes accepted from the trade server since the process started. The count
covers every manager connection of the process, so it measures the traffic of the API as a
whole rather than of this trade platform alone.
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 identifier (GUID).
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.
Total number of bytes sent to the trade server since the process started. The count covers
every manager connection of the process, so it measures the traffic of the API as a whole
rather than of this trade platform alone.
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 identifier (GUID).
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.
Forces a scan of the access points of the trade server — the network map with the load of
each access server and the ping to it — and reports whether a better access point than the
current one was found. The scan is rate-limited by the platform to one request per half an
hour; a call inside that window is answered with the platform error that says so.
The answer says what was found, not what was done: the connection is not switched. Moving
the connection to the found access point is a separate step of the connection management.
A zero timeout checks for a better point without waiting for the scan to finish.
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 identifier (GUID).
flags
query
integer (int32)
no
Reserved for future use; pass zero.
timeout
query
integer (int32)
no
Time to wait for the scan, in milliseconds.
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.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NetworkRescan" \
-H "Authorization: Bearer $TOKEN"
Read a settings file of the manager account
GET /api/v2/MT5/{tradePlatform}/SettingGet
Returns the settings file stored in the directory of the manager account on the trade
server. The path of the file is the manager name, followed by the folder and the file name
given here.
The server keeps the file as arbitrary data: its format is defined by whoever wrote it. A
file that does not exist is answered with the platform error that says so.
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 identifier (GUID).
section
query
string
no
Name of the subfolder of the manager directory.
key
query
string
no
Name of the file.
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.
Stores the file in the directory of the manager account on the trade server, replacing a
file of the same name wholly. The server does not track changes made by other applications:
only the last submitted version is kept, so the whole file is sent, not just the changed
values.
One level of nesting and at most 128 folders are available inside the manager directory, at
most 1024 files are kept, and each file is limited to 16 MB — a larger payload is refused as
invalid. Only the file name extensions the platform accepts may be used; it answers an
unknown one with the error that explains it. Send updates sparingly: the platform advises
no more than one update per five minutes.
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 identifier (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.
Request body
MT5SettingFile (application/json) — File to store: folder, name and content.
Removes the file with the given folder and name from the directory of the manager account on
the trade server. The deletion is not reversible; a file that does not exist is answered with
the platform error that explains it.
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 identifier (GUID).
section
query
string
no
Name of the subfolder of the manager directory.
key
query
string
no
Name of the file.
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.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/SettingDelete" \
-H "Authorization: Bearer $TOKEN"
Send a custom command to the trade server
POST /api/v2/MT5/{tradePlatform}/CustomCommand
Delivers the data to a plugin installed on the trade server that handles custom commands and
returns what the plugin answers. The platform does not interpret the data in either
direction.
A server without such a plugin refuses the command, which is answered with the platform error
that says so. The command is a request to the plugin, not a stored record: whether it is safe
to repeat is decided by the plugin.
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 identifier (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.
Resolves the IPv4 or IPv6 address against the geo database of the platform and returns the
description of the address range it belongs to: geography, network owner and the additional
characteristics of the address.
The flags choose which data is requested — the fields whose flag was not set are left empty,
so asking for everything costs one answer of the widest kind but is the simplest way to fill
the record. The record carries the IPv4 bounds of the range; the IPv6 bounds are not
returned.
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 identifier (GUID).
address
query
string
no
IPv4 or IPv6 address to describe.
flags
query
integer (int32)
no
Bit mask of the requested data: continent, country, city, region, province, autonomous system, ISP, organisation, coordinates, details.
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.
Resolves several IPv4 and IPv6 addresses in one call. The entries of the answer follow the
order of the request and each carries its own result code, so an address the platform could
not resolve does not hide the outcome of the others: the answer as a whole is a success when
at least one address was resolved and the platform reports a partial result.
The flags choose which data is requested, exactly as for a single address. The record of a
resolved address carries the IPv4 bounds of its range; the IPv6 bounds are not returned.
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 identifier (GUID).
addresses
query
string[]
no
Addresses to describe; repeat the parameter for each address.
flags
query
integer (int32)
no
Bit mask of the requested data: continent, country, city, region, province, autonomous system, ISP, organisation, coordinates, details.
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.
Stores the proxy parameters on the connection object the API uses for this trade platform.
They take effect on the next connection: a connection that is already established keeps the
route it was opened with.
The address and the authentication string are limited to 63 characters each; a longer value
is refused as invalid. The authentication string is never returned by any read.
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 identifier (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.
Request body
MT5ProxySettings (application/json) — Proxy parameters to store.
Types the operations above take and return, with their first-level properties; * marks a required one. The full graph is in the OpenAPI specification.
MT5MailListApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5MailApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5MailSendRequest
Message to send through the internal mail system of the trade server.
Property
Type
Description
to
integer (int64)
Login of the recipient.
toName
string, nullable
Name of the recipient.
subject
string, nullable
Subject of the message.
body
string (byte), nullable
Body of the message. Transferred whole, without interpretation.
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5NewsListApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5NewsApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5NewsSendRequest
News item to publish through the trade server.
Property
Type
Description
subject
string, nullable
Subject of the news item.
category
string, nullable
Category of the news item.
time
string (date-time), nullable
Publication time, in the time zone of the trade server. Omitted uses the current time of the trade server.
language
integer (int32), nullable
Language identifier of the news item.
flags
integer (int32), nullable
News item flags as a bit mask: priority, read state, absence of a body, economic calendar.
body
string (byte), nullable
Body of the news item. Transferred whole, without interpretation.
MT5LicenseCheckRequest
Application license to verify against the license of the trade server.
Property
Type
Description
name
string, nullable
Name of the application as it appears in the platform license, up to 128 characters.
random
string (byte), nullable
Random sequence, up to 256 bytes. Transferred whole, without interpretation.
MT5LicenseCheckResultApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5LoggerMessage
Message to write into the local journal of the manager interface.
Property
Type
Description
code
integer (int32)
Platform code of the event.
message
string, nullable
Text of the entry. Line feed and carriage return are refused: the platform computes the journal checksum line by line, and a multi-line entry breaks it.
MT5LogRecordListApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
UsersPasswords
Values: Main, Investor, API, Trader
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
UInt64ApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5SettingFileApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5SettingFile
Settings file stored in the directory of the manager account on the trade server.
Property
Type
Description
section
string, nullable
Name of the subfolder of the manager directory.
key
string, nullable
Name of the file.
data
string (byte), nullable
Content of the file. Transferred whole, without interpretation.
MT5CustomCommandRequest
Custom command for a plugin installed on the trade server.
Property
Type
Description
data
string (byte), nullable
Data sent to the server. Transferred whole, without interpretation.
MT5CustomCommandResultApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5GeoRecordApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5GeoResolveResultListApiResponse
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). HTTP status is always 200.
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); 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.
MT5ProxySettings
Proxy server through which the manager connection to the trade server is established.
Property
Type
Description
enabled
boolean
Whether the connection goes through a proxy server.
type
string, nullable
Proxy protocol name. One of: Socks4, Socks5, Http. Case-insensitive; the numeric value is accepted too. Any other value is refused with error code Validation.
address
string, nullable
Address of the proxy server, up to 64 characters.
auth
string, nullable
Authentication string of the proxy server, up to 64 characters.
MT5Mail
Message of the internal mail system of the trade server.
Property
Type
Description
id
integer (int64)
Message identifier.
parent
integer (int64)
Identifier of the message this one answers; zero when it starts a thread.
subject
string, nullable
Subject of the message.
from
integer (int64)
Login of the sender.
fromName
string, nullable
Name of the sender.
to
integer (int64)
Login of the recipient.
toName
string, nullable
Name of the recipient.
time
string (date-time), nullable
Time the message was sent, in UTC.
bodySize
integer (int32)
Size of the body in bytes.
attachmentsTotal
integer (int32)
Number of files attached to the message.
body
string (byte), nullable
Body of the message as stored by the trade server. Absent in the list route; request the message by its identifier to receive it. The platform treats the body as arbitrary data, so it is transferred without interpretation.
Files attached to the message, with their content. Absent in the list route.
ApiError
v2 error body. Code is the stable transport error code; ManagerCode is the raw MT4 ResultCode (serialized as a string for a known enum member, or as a number for an unrecognised value returned by MT4); Message is a human-readable description.
Property
Type
Description
code
WebApiErrorCode
Stable transport-level error code.
managerCode
ResultCode
Raw MT4/MT5 manager result code, when the error came from the trading platform; otherwise null.
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.
MT5MailAttachment
File attached to a message of the internal mail system.
Property
Type
Description
name
string, nullable
File name as it is shown to the recipient.
size
integer (int32)
Size of the file in bytes.
content
string (byte), nullable
Content of the file. Transferred whole, without interpretation.
News item received by the manager account of the trade server.
Property
Type
Description
id
integer (int64)
News item identifier.
subject
string, nullable
Subject of the news item.
category
string, nullable
Category of the news item, as set by the sender.
time
string (date-time), nullable
Time the news item was sent, in the time zone of the trade server. The platform stores the value without a zone, so it is returned as a wall-clock time.
language
integer (int32)
Language identifier of the news item.
flags
integer (int32)
News item flags as a bit mask: priority, read state, absence of a body, economic calendar.
bodySize
integer (int32)
Size of the body in bytes.
body
string (byte), nullable
Body of the news item as stored by the trade server. Absent in the list route. The platform treats the body as arbitrary data, so it is transferred without interpretation.
Signature of the result code, the application name and the random sequence, produced by the platform with its private key. Empty when the check failed.
MT5LogRecord
Entry of the journal of a trade server.
Property
Type
Description
flags
integer (int32)
Entry flags as a bit mask.
code
integer (int32)
Platform code of the event.
type
integer (int32)
Platform type of the event.
time
string (date-time), nullable
Time of the entry, in UTC.
timeMsc
string (date-time), nullable
Time of the entry with millisecond precision, in UTC.
source
string, nullable
Source of the entry: the component of the trade server that recorded it.
message
string, nullable
Text of the entry.
MT5CustomCommandResult
Answer of the trade server to a custom command.
Property
Type
Description
data
string (byte), nullable
Data returned by the server. Transferred whole, without interpretation.
MT5GeoRecord
Description of an IP address resolved by the trade server.
Property
Type
Description
iPv4From
string, nullable
Beginning of the address range the address belongs to, in dotted IPv4 notation.
iPv4To
string, nullable
End of the address range the address belongs to, in dotted IPv4 notation.
continent
string, nullable
Continent.
country
string, nullable
Country.
city
string, nullable
City.
region
string, nullable
Region or state.
province
string, nullable
Province or district.
asn
integer (int64)
Autonomous system number.
asnOrganization
string, nullable
Name of the autonomous system.
isp
string, nullable
Internet service provider.
ispOrganization
string, nullable
Organization that owns the address.
latitude
number (double)
Geographical latitude.
longitude
number (double)
Geographical longitude.
details
integer (int64)
Additional characteristics of the address as a bit mask: proxy, VPN, data centre, host of attacks or spam, botnet member, search engine bot, blacklisted address, headless browser.