CPlugin

MT5 v2 :: Communications

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.

Operations

List messages of the internal mail

GET /api/v2/MT5/{tradePlatform}/MailRequest

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/MailRequest" \
  -H "Authorization: Bearer $TOKEN"

Read a message with its body and attachments

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/MailBodyRequest/$ID" \
  -H "Authorization: Bearer $TOKEN"

Send a message through the internal mail

POST /api/v2/MT5/{tradePlatform}/MailSend

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

NameInTypeRequiredDescription
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

MT5MailSendRequest (application/json) — Message to send.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/MailSend" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "to": 0, "toName": "", "subject": "", "body": "", "attachments": [{}] }'

Delete a message by its position in the mailbox

POST /api/v2/MT5/{tradePlatform}/MailDelete

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

NameInTypeRequiredDescription
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.

Responses

Example

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

NameInTypeRequiredDescription
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.

Responses

Example

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NewsRequest" \
  -H "Authorization: Bearer $TOKEN"

Read a news item with its body

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NewsBodyRequest/$ID" \
  -H "Authorization: Bearer $TOKEN"

Publish a news item

POST /api/v2/MT5/{tradePlatform}/NewsSend

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

NameInTypeRequiredDescription
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

MT5NewsSendRequest (application/json) — News item to publish.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NewsSend" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "subject": "", "category": "", "time": "2026-01-01T00:00:00Z", "language": 0, "flags": 0, "body": "" }'

Check the application license on the trade server

POST /api/v2/MT5/{tradePlatform}/LicenseCheck

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

NameInTypeRequiredDescription
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

MT5LicenseCheckRequest (application/json) — Application license to verify.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/LicenseCheck" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "", "random": "" }'

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

NameInTypeRequiredDescription
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.

Responses

Example

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

NameInTypeRequiredDescription
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.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/LoggerOut" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "code": 0, "message": "" }'

Write an unformatted entry into the local journal

POST /api/v2/MT5/{tradePlatform}/LoggerOutString

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

NameInTypeRequiredDescription
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.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/LoggerOutString" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "code": 0, "message": "" }'

Read the journal of the trade server

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/LoggerServerRequest" \
  -H "Authorization: Bearer $TOKEN"

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.

Parameters

NameInTypeRequiredDescription
tradePlatform path string (uuid) yes Trade platform identifier (GUID).
type path UsersPasswords yes Password type to change: Main, Investor or API.
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

string (application/json) — New password value.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/PasswordChange/$TYPE" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '""'

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NetworkServer" \
  -H "Authorization: Bearer $TOKEN"

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NetworkAddress" \
  -H "Authorization: Bearer $TOKEN"

Bytes received from the trade server

GET /api/v2/MT5/{tradePlatform}/NetworkBytesRead

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NetworkBytesRead" \
  -H "Authorization: Bearer $TOKEN"

Bytes sent to the trade server

GET /api/v2/MT5/{tradePlatform}/NetworkBytesSent

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/NetworkBytesSent" \
  -H "Authorization: Bearer $TOKEN"

Rescan the access points of the trade server

POST /api/v2/MT5/{tradePlatform}/NetworkRescan

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

NameInTypeRequiredDescription
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.

Responses

Example

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/SettingGet" \
  -H "Authorization: Bearer $TOKEN"

Write a settings file of the manager account

POST /api/v2/MT5/{tradePlatform}/SettingSet

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

NameInTypeRequiredDescription
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.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/SettingSet" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "section": "", "key": "", "data": "" }'

Delete a settings file of the manager account

POST /api/v2/MT5/{tradePlatform}/SettingDelete

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

NameInTypeRequiredDescription
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.

Responses

Example

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

NameInTypeRequiredDescription
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

MT5CustomCommandRequest (application/json) — Data to send.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/CustomCommand" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "data": "" }'

Describe an IP address

GET /api/v2/MT5/{tradePlatform}/GeoResolve

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/GeoResolve" \
  -H "Authorization: Bearer $TOKEN"

Describe a list of IP addresses

GET /api/v2/MT5/{tradePlatform}/GeoResolveBatch

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

NameInTypeRequiredDescription
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.

Responses

Example

curl "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/GeoResolveBatch" \
  -H "Authorization: Bearer $TOKEN"

Set the proxy of the manager connection

POST /api/v2/MT5/{tradePlatform}/ProxySet

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

NameInTypeRequiredDescription
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.

Responses

Example

curl -X POST "https://cloud.mywebapi.com/api/v2/MT5/$TRADE_PLATFORM_ID/ProxySet" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": false, "type": "", "address": "", "auth": "" }'

Schemas

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.

PropertyTypeDescription
data MT5Mail[]
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5Mail Message of the internal mail system of the trade server.
error 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.
meta 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.

MT5MailSendRequest

Message to send through the internal mail system of the trade server.

PropertyTypeDescription
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.
attachments MT5MailAttachment[] Files to attach to the message.

MT5ResultApiResponse

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.

PropertyTypeDescription
data MT5Result
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5News[]
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5News News item received by the manager account of the trade server.
error 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.
meta 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.

MT5NewsSendRequest

News item to publish through the trade server.

PropertyTypeDescription
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.

PropertyTypeDescription
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.

PropertyTypeDescription
data MT5LicenseCheckResult Answer of the trade server to a license check.
error 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.
meta 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.

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.

PropertyTypeDescription
data boolean
error 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.
meta 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.

MT5LoggerMessage

Message to write into the local journal of the manager interface.

PropertyTypeDescription
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.

PropertyTypeDescription
data MT5LogRecord[]
error 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.
meta 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.

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.

PropertyTypeDescription
data string, nullable
error 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.
meta 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.

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.

PropertyTypeDescription
data integer (int64)
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5SettingFile Settings file stored in the directory of the manager account on the trade server.
error 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.
meta 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.

MT5SettingFile

Settings file stored in the directory of the manager account on the trade server.

PropertyTypeDescription
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.

PropertyTypeDescription
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.

PropertyTypeDescription
data MT5CustomCommandResult Answer of the trade server to a custom command.
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5GeoRecord Description of an IP address resolved by the trade server.
error 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.
meta 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.

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.

PropertyTypeDescription
data MT5GeoResolveResult[]
error 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.
meta 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.

MT5ProxySettings

Proxy server through which the manager connection to the trade server is established.

PropertyTypeDescription
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.

PropertyTypeDescription
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.
attachments MT5MailAttachment[] 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.

PropertyTypeDescription
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.

PropertyTypeDescription
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.

PropertyTypeDescription
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.

MT5Result

Values: Ok, OkNone, Error, ErrParams, ErrData, ErrDisk, ErrMem, ErrNetwork, ErrPermissions, ErrTimeout, ErrConnection, ErrNoService, ErrFrequent, ErrNotfound, ErrPartial, ErrShutdown, ErrCancel, ErrDuplicate, AuthClientInvalid, AuthAccountInvalid, AuthAccountDisabled, AuthAdvanced, AuthCertificate, AuthCertificateBad, AuthNotConfirmed, AuthServerInternal, AuthServerBad, AuthUpdateOnly, AuthClientOld, AuthManagerNoConfig, AuthManagerIPBlock, AuthGroupInvalid, AuthCaDisabled, AuthInvalidID, AuthInvalidIp, AuthInvalidType, AuthServerBusy, AuthServerCert, AuthAccountUnknown, AuthServerOld, AuthServerLimit, AuthMobileDisabled, AuthManagerType, AuthDemoDisabled, AuthResetPassword, AuthOTPInvalid, AuthOTPNeedSecret, AuthMigrationMT4, AuthMigrationMT5, AuthInvalidVerify, AuthVerifyBadEmail, AuthVerifyBadPhone, AuthAPIDisabled, CfgLastAdmin, CfgLastAdminGroup, CfgNotEmpty, CfgInvalidRange, CfgNotManagerLogin, CfgBuiltin, CfgDuplicate, CfgLimitReached, CfgNoAccessToMain, CfgDealerIDExist, CfgBindAddressExist, CfgWorkingTrade, CfgGatewayNameExist, CfgSwitchToBackup, CfgNoBackupModule, CfgNoTradeModule, CfgNoHistoryModule, CfgAnotherSwitch, CfgNoLicenseFile, CfgGatewayLoginExist, CfgInvalidCompany, UsrLastAdmin, UsrLoginExhausted, UsrLoginProhibited, UsrLoginExist, UsrSuicide, UsrInvalidPassword, UsrLimitReached, UsrHasTrades, UsrDifferentServers, UsrDifferentCurrency, UsrImportBalance, UsrImportGroup, UsrAccountExist, UsrImportAccount, UsrImportPositions, UsrImportOrders, UsrImportDeals, UsrImportHistory, UsrAPILimitReached, TradeLimitReached, TradeOrderExist, TradeOrderExhausted, TradeDealExhausted, TradeMaxMoney, TradeDealExist, TradeOrderProhibited, TradeDealProhibited, TradeSplitVolume, ReportSnapshot, ReportNotSupported, ReportNodata, ReportTemplateBad, ReportTemplateEnd, ReportInvalidRow, ReportLimitRepeat, ReportLimitReport, HstSymbolNotfound, RequestInWay, RequestAccepted, RequestProcess, RequestRequote, RequestPrices, RequestReject, RequestCancel, RequestPlaced, RequestDone, RequestDonePartial, RequestError, RequestTimeout, RequestInvalid, RequestInvalidVolume, RequestInvalidPrice, RequestInvalidStops, RequestTradeDisabled, RequestMarketClosed, RequestNoMoney, RequestPriceChanged, RequestPriceOff, RequestInvalidExp, RequestOrderChanged, RequestTooMany, RequestNoChanges, RequestAtDisabledServer, RequestAtDisabledClient, RequestLocked, RequestFrozen, RequestInvalidFill, RequestConnection, RequestOnlyReal, RequestLimitOrders, RequestLimitVolume, RequestInvalidOrder, RequestPositionClosed, RequestExecutionSkipped, RequestInvalidCloseVolume, RequestCloseOrderExist, RequestLimitPositions, RequestRejectCancel, RequestLongOnly, RequestShortOnly, RequestCloseOnly, RequestProhibitedByFifo, RequestHedgeProhibited, RequestReturn, RequestDoneCancel, RequestRequoteReturn, ErrNotImplement, ErrNotMain, ErrNotSupported, ErrDeadlock, ErrLocked, MessengerInvalidPhone, MessengerNotMobile, SubsNotFound, SubsNotFoundCfg, SubsNotFoundUser, SubsDisabled, SubsPermissionUser, SubsPermissionSubscribe, SubsPermissionUnsubscribe, SubsRealOnly, SubsPaymentMethod, PayRealOnly, PayInvalidAmount, PayNotAllowedDeposit, PayNotAllowedWithdrawal, PayNotAllowedGroup, PayNotAllowedCountry, PayDeclineByRules, PayDeclineByAml, PayLimitDepositMin, PayLimitDepositMax, PayLimitWithdrawalMin, PayLimitWithdrawalMax, PayProviderPayment, PayProviderStatus, PayConversion, PayNotWaiting, PayVerification, PayInvoice, PayInvalidCurrency, PayLimitReached, PayProviderRefund, PayDeclineByCardholderName

MT5News

News item received by the manager account of the trade server.

PropertyTypeDescription
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.

MT5LicenseCheckResult

Answer of the trade server to a license check.

PropertyTypeDescription
retcode MT5Result Result of the check.
sign string (byte), nullable 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.

PropertyTypeDescription
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.

PropertyTypeDescription
data string (byte), nullable Data returned by the server. Transferred whole, without interpretation.

MT5GeoRecord

Description of an IP address resolved by the trade server.

PropertyTypeDescription
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.

MT5GeoResolveResult

Outcome of resolving one address of a batch.

PropertyTypeDescription
address string, nullable The address as it was submitted.
result MT5Result Platform result code of this address. The entries are returned in request order.
record MT5GeoRecord Description of the address; absent when the address was not resolved.