API v2 (current) · MT5 · 11 operations ·
base URL https://cloud.mywebapi.com ·
OpenAPI v2 (JSON) ·
Redoc
Every call needs Authorization: Bearer $TOKEN — an OAuth 2.0 client-credentials token (scope
webapi). The token server belongs to the environment: for the Sandbox call
https://pre.mywebapi.com and take the token from
https://pre.auth.cplugin.net/connect/token; for Production take it from
https://auth.cplugin.net/connect/token. Clients and tokens of the two are separate — a token
from one answers 401 on the other.
$TRADE_PLATFORM_ID is the id of a trade platform registered in Toolbox.
A failed operation is also answered with HTTP 200: check error before using
data. Access and transport failures use HTTP codes — see
Errors.
POST /api/v2/MT5/{tradePlatform}/GroupUpdate/{group}
Writes the fields present in the body to the group with the given name. Only the fields
the trading platform lets a manager change are accepted: the margin call level, the stop
out level, the mode used to check them and the group trade options. A field left out of
the body keeps its current value, and a body without any field is rejected.
The configuration is read from the trade server first, the body is applied over it and the
result is written back, so a request never overwrites values it does not mention. The
answer carries the configuration stored by the server after the write. Commission settings
and per-symbol overrides are not part of this body.
The change is accepted only from the main trade server and only for a manager holding the
rights to group margin and commission settings; any other case is answered with the
platform error code. Repeat the request to retry after a failure that reported no result.
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).
group
path
string
yes
Group name, including the path, e.g. demo\demoforex.
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
MT5GroupUpdateRequest (application/json) — Fields to change; omitted fields keep their current value.
Each entry names a group and carries the fields to change, with the same rules and the same
accepted fields as the single group change. Entries are read and prepared one by one and then
sent to the trade server together; the answer lists the outcome of every entry in the order
it was sent.
A group that cannot be read, or an entry that cannot be prepared, is reported with its own
result code and does not block the others. When the platform refuses the whole batch, the
error code of the call is returned instead of the list. Duplicate group names in one request
are rejected. The call requires the rights to group margin and commission settings and is
accepted only by the main 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
MT5GroupBatchUpdateItem[] (application/json) — Entries to apply: group name and the fields to change.
GET /api/v2/MT5/{tradePlatform}/SymbolRequest/{symbol}
Returns the symbol configuration with the trade settings that apply to the clients of the
given group, that is, the base symbol record with the group overrides applied. Without a
group the base record is returned, which is the same answer as the plain symbol read.
The read goes to the trade server and changes nothing.
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).
symbol
path
string
yes
Symbol name, e.g. EURUSD.
group
query
string
no
Group whose overrides are applied; omitted means the base record.
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT5/{tradePlatform}/SymbolExist/{symbol}
Checks whether the settings of the given client group allow working with the given symbol,
and returns both the answer and the platform code it came with: the symbol is available when
the code is the platform success code.
Both the symbol record and the group record are read from the trade server first; a read
that fails is answered with its platform code instead of the check result. The call changes
nothing.
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).
symbol
path
string
yes
Symbol name, e.g. EURUSD.
group
query
string
no
Group name, including the path.
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
POST /api/v2/MT5/{tradePlatform}/SymbolUpdateBatch
Each entry names a symbol and carries the fields to change; only the fields present in an
entry are written, and a field left out keeps its current server value. Entries are read and
prepared one by one and then sent to the trade server together; the answer lists the outcome
of every entry in the order it was sent.
A symbol that cannot be read, or an entry that cannot be prepared, is reported with its own
result code and does not block the others. When the platform refuses the whole batch, the
error code of the call is returned instead of the list. Duplicate symbol names in one request
are rejected. The call requires the right to change symbol settings and is accepted only by
the main 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.
Asks the trade server for its current trading time and returns it. Unlike the calculated
time, which the service derives from its own clock and the server time zone, this value is
the server's own answer and costs a round trip to it.
The call only reads and changes nothing.
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.
GET /api/v2/MT5/{tradePlatform}/LeverageGet/{name}
Returns the floating margin configuration with the given name as the API process holds it,
including its rules and the tiers of every rule. The name is the configuration name shown in
the platform administration — it is the identity of the record, so a different spelling answers
the platform's not-found error.
The answer is served without asking the trade server, so it changes only when the configuration
reaches the API process. When the requested name is not here yet, ask for it with the request
variant of this call, which reads it from the server.
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).
name
path
string
yes
Configuration name.
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.
Request a floating margin configuration from the trade server
GET /api/v2/MT5/{tradePlatform}/LeverageRequest/{name}
Reads the floating margin configuration with the given name from the trade server — a
round-trip, unlike the cached read — and returns it with its rules and tiers. Use it when the
configuration may have changed since it reached the API process, for example right after it was
edited in the platform administration.
The call blocks until the server answers. A name the server does not know is returned as the
platform's not-found error.
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).
name
path
string
yes
Configuration name.
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.
Floating margin configurations that apply to groups
GET /api/v2/MT5/{tradePlatform}/LeverageRequestArray
Returns every floating margin configuration the trade server applies to at least one of the
groups selected by the mask. The mask takes group names including the subgroup
(demo\demoforex), several names separated by commas, and the wildcards * (any
value) and ! (exclude), for example demo*,!demoforex — every group whose name
starts with demo except demoforex. An omitted mask selects every group.
The call blocks until the server answers. Every configuration is returned with its rules and
tiers.
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).
groups
query
string
no
Group mask; omitted means every group.
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.
Returns the plugin configuration with the given name: the module it belongs to, the trade server
identifier, whether the platform keeps it loaded, its flags and every parameter. The name is the
configuration name shown in the platform administration — it is the identity of the record, so a
different spelling answers the platform's not-found error.
Parameters carry the module's own settings, and some modules keep credentials there — treat the
whole answer as sensitive. Values are returned in their text form; the parameter type says how
the module reads them.
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).
name
path
string
yes
Plugin configuration name.
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.
Writes the plugin configuration described by the body to the trade server. The record is
identified by its name: an existing configuration with that name is replaced, and one that does
not exist yet is added — the platform checks the record before storing it and refuses an
incomplete or inconsistent one with the platform's parameter error.
The body is the complete configuration: parameters that are not listed are not stored, so read
the configuration first and send it back with the fields you change. Parameters carry the
module's own settings, and some modules keep credentials there — the whole request is treated
as sensitive.
The trade server accepts the write only when the module is marked as editable through the
manager interface, when plugin settings are streamed on the connection, and when the account of
the API has the right to change plugin configurations; otherwise the platform error saying so is
returned.
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
MT5Plugin (application/json) — Complete plugin configuration 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.
MT5GroupUpdateRequest
Fields of a group configuration to change. Every field is optional: a field left out keeps its current server value, so the same body is safe to send repeatedly.
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5GroupBatchUpdateItem
One entry of a batch group update: the group to change and the fields to write.
Property
Type
Description
group
string, nullable
Full group name including the path, e.g. demo\demoforex.
Fields to change; fields left out keep their current server value.
MT5BatchUpdateResultListApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5SymbolApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5SymbolExistResultApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5SymbolBatchUpdateItem
One entry of a batch symbol update: the symbol to change and the fields to write.
Fields to change; fields left out keep their current server value.
DateTimeApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5LeverageApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
Floating margin configuration: a named set of rules that decides which margin rate applies to a position, depending on the volume or the value the account carries in the symbol.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5LeverageListApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5PluginApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT5Plugin
Plugin configuration: the module loaded on a trade server together with the parameters it reads on start.
Property
Type
Description
name
string, nullable
Configuration name; it identifies the record on the trade server.
server
integer (int64), nullable
Identifier of the trade server the module runs on.
module
string, nullable
Module the configuration belongs to, as the plugin file names it.
Whether the platform keeps the configuration loaded. One of: Disabled, Enabled. Case-insensitive; the numeric value is accepted too. Any other value is refused with error code Validation.
Returned for reading only: the group update calls do not accept it. Keyed by commission name, in the order the platform stores the records. The platform does not require names to be unique: a second record with the same name is keyed "name (2)", a record without a name under the empty key.
marginFreeProfitMode
integer (int32), nullable
margin free profit accounting mode
marginMode
EnMarginMode
group risk management mode - EnMarginMode
authOTPMode
EnAuthOTPMode
OTP authentication mode - EnAuthOTPMode
tradeTransferMode
EnTransferMode
deposit transfer mode - EnTransferMode
marginFlags
EnMarginCalcFlags
margin calculation flags EnMarginFlags
limitPositions
integer (int32), nullable
max. positions limit
reportsEmail
string, nullable
reports SMTP email account
companyDepositPage
string, nullable
company deposit URL
companyWithdrawalPage
string, nullable
company deposit URL
demoInactivityPeriod
integer (int32), nullable
demo groups in days, orders and positions will be deleted after this period
ApiError
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Property
Type
Description
code
WebApiErrorCode
Stable transport-level error code.
managerCode
ResultCode
Raw MT4 result code when ApiError.Code is MT4Error; null otherwise. On MT5 the result name is in ApiError.Message.
message
string, nullable
Human-readable error description.
ApiMeta
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
Property
Type
Description
activityId
string, nullable
W3C trace id of the request. Quote it when you contact support: it finds this exact call in the server logs.
paging
PagingMeta
Pagination info; present only on list responses, omitted otherwise.
MT5BatchUpdateResult
Outcome of one entry of a batch update, in the order the entries were sent.
Property
Type
Description
name
string, nullable
Group name or symbol name the entry refers to.
ok
boolean
True when the trade server applied the entry.
code
string, nullable
Platform result code of the entry, as its name.
MT5Symbol
Property
Type
Description
symbol
string, nullable
name
path
string, nullable
hierarchical symbol path (including symbol name)
isin
string, nullable
ISIN
description
string, nullable
local description
international
string, nullable
internation description
basis
string, nullable
basic symbol name
source
string, nullable
source symbol name
page
string, nullable
symbol specification page URL
currencyBase
string, nullable
symbol base currency
currencyBaseDigits
integer (int32), nullable
Read-only: the trade server does not let this value be changed.
currencyProfit
string, nullable
symbol profit currency
currencyProfitDigits
integer (int32), nullable
Read-only: the trade server does not let this value be changed.
currencyMargin
string, nullable
symbol margin currency
currencyMarginDigits
integer (int32), nullable
Read-only: the trade server does not let this value be changed.
color
integer (int32), nullable
symbol color
colorBackground
integer (int32), nullable
symbol background color
digits
integer (int32), nullable
symbol digits
point
number (double), nullable
multiply
number (double), nullable
Read-only: the trade server does not let this value be changed.
tickFlags
EnTickFlags
EnTickFlags
tickBookDepth
integer (int32), nullable
Depth of Market depth (both legs)
filterSoft
integer (int32), nullable
filtration soft level
filterSoftTicks
integer (int32), nullable
filtration soft level counter
filterHard
integer (int32), nullable
filtration hard level
filterHardTicks
integer (int32), nullable
filtration hard level counter
filterDiscard
integer (int32), nullable
filtration discard level
filterSpreadMax
integer (int32), nullable
spread max value
filterSpreadMin
integer (int32), nullable
spread min value
tradeMode
EnTradeMode
EnTradeMode
calcMode
EnCalcMode
EnCalcMode
execMode
EnExecutionMode
EnExecutionMode
gtcMode
EnGtcMode
EnGTCMode
fillFlags
EnFillingFlags
EnFillingFlags
expirFlags
EnExpirationFlags
EnExpirationFlags
spread
integer (int32), nullable
symbol spread (0-floating)
spreadBalance
integer (int32), nullable
spread balance
spreadDiff
integer (int32), nullable
spread difference
spreadDiffBalance
integer (int32), nullable
spread difference balance
tickValue
number (double), nullable
tick value
tickSize
number (double), nullable
tick size
contractSize
number (double), nullable
contract size
stopsLevel
integer (int32), nullable
stops level
freezeLevel
integer (int32), nullable
freeze level
quotesTimeout
integer (int32), nullable
The time to wait for quotes in seconds, after which trading is automatically disabled for the symbol.
volumeMin
integer (int64), nullable
minimal volume
volumeMax
integer (int64), nullable
maximal volume
volumeStep
integer (int64), nullable
volume step
volumeLimit
integer (int64), nullable
cumulative positions and orders limit
marginFlags
EnMarginFlags
EnMarginFlags
marginInitial
number (double), nullable
initial margin
marginMaintenance
number (double), nullable
maintenance margin
marginLong
number (double), nullable
long orders and positions margin rate
marginShort
number (double), nullable
short orders and positions margin rate
marginLimit
number (double), nullable
limit orders and positions margin rate
marginStop
number (double), nullable
stop orders and positions margin rate
marginStopLimit
number (double), nullable
stop-limit orders and positions margin rate
swapMode
EnSwapMode
EnSwapMode
swapLong
number (double), nullable
long positions swaps rate
swapShort
number (double), nullable
short positions swaps rate
swap3Day
EnSwapDays
3 time swaps day, EnSwapDay
timeStart
string (date-time), nullable
trade start date
timeExpiration
string (date-time), nullable
The date of trading expiration for a symbol. It is considered that there is no time limitation for trading by a symbol if both TimeStart and TimeExpiration are equal to 0.
sessionQuote
MT5SymbolSession[][]
Returned when the symbol is read. It cannot be changed through this API: v2 update calls do not accept it, and v1 SymbolUpdate fails if it is set.
sessionTrade
MT5SymbolSession[][]
Returned when the symbol is read. It cannot be changed through this API: v2 update calls do not accept it, and v1 SymbolUpdate fails if it is set.
reFlags
EnRequestFlags
request execution flags
reTimeout
integer (int32), nullable
Time in seconds during which the price issued by a dealer in the request execution mode is valid.
ieCheckMode
EnInstantMode
instant execution check mode
ieTimeout
integer (int32), nullable
Get and set the maximum allowed difference between the time of arrival of the price, at which the client places an order, and the time of the last price.
ieSlipProfit
integer (int32), nullable
instant execution profit slippage
ieSlipLosing
integer (int32), nullable
instant execution losing slippage
ieVolumeMax
integer (int64), nullable
instant execution max volume
priceSettle
number (double), nullable
settle price (for futures)
priceLimitMax
number (double), nullable
price limit max (for futures)
priceLimitMin
number (double), nullable
price limit min (for futures)
tradeFlags
EnTradeFlags
EnTradeFlags
orderFlags
EnOrderFlags
EnOrderFlags
marginRateInitial
object, nullable
orders and positions margin rates
marginRateMaintenance
object, nullable
orders and positions margin rates
optionsMode
EnOptionMode
options mode EnOptionMode
priceStrike
number (double), nullable
option strike price value
MT5SymbolExistResult
Answer to the availability check of a symbol for a group: the platform result code and whether the group settings allow the symbol.
Property
Type
Description
symbol
string, nullable
Symbol name that was checked.
group
string, nullable
Group name the check was made for.
available
boolean
True when the group settings allow working with the symbol.
code
string, nullable
Platform result code of the check, as its name.
MT5SymbolUpdate
Editable surface of a symbol record: 15 fields that are safely writable, every one optional.
Property
Type
Description
description
string, nullable
Human-readable symbol description shown in the terminal.
digits
integer (int32), nullable
Number of decimal places in the price quote.
spread
integer (int32), nullable
Current spread in points (0 = floating spread).
stopsLevel
integer (int32), nullable
Minimum stop loss / take profit distance from current price, in points.
freezeLevel
integer (int32), nullable
Distance from current price at which orders are frozen before execution, in points.
contractSize
number (double), nullable
Contract size — units of base currency per standard lot.
marginInitial
number (double), nullable
Initial margin requirement per lot.
marginMaintenance
number (double), nullable
Maintenance margin requirement per lot (below this level triggers a margin call).
tickSize
number (double), nullable
Minimum price change step (pip size).
tickValue
number (double), nullable
Monetary value of one tick move for one standard lot.
volumeMin
integer (int64), nullable
Minimum trade volume, in MT5 volume units (1 lot = 10000 units).
volumeMax
integer (int64), nullable
Maximum trade volume, in MT5 volume units (1 lot = 10000 units).
tradeMode
EnTradeMode
Trade mode controlling which order types are allowed (full, close-only, no-trading, etc.).
Order execution mode (instant, market, exchange, request).
MT5Leverage
Floating margin configuration: a named set of rules that decides which margin rate applies to a position, depending on the volume or the value the account carries in the symbol.
Property
Type
Description
name
string, nullable
Configuration name; it identifies the record on the trade server.
rules
MT5LeverageRule[]
Rules of the configuration, in the order the trade server applies them.
MT5PluginMode
Whether the platform keeps a plugin configuration loaded.
Values: Disabled, Enabled
MT5PluginFlags
Behaviour flags of a plugin configuration. Flags: names of the set bits joined by ", " ("ManagerConfig, Profiling"), "None" when none is set; a set bit without a name is "Bit<n>" (bit number). Bits: ManagerConfig = 0x1, Profiling = 0x2. Accepted on input, never written: All = ManagerConfig, Profiling.
MT5PluginParameter
One parameter of a plugin configuration.
Property
Type
Description
name
string, nullable
Parameter name, unique inside its configuration.
type
MT5PluginParameterType
Type the module expects for the value. One of: String, Int, Float, Time, Date, DateTime, Groups, Symbols, Bool, Color, Gateway, UltencyMatchingEngine, UltencyProvider, UltencySymbols, Period. Case-insensitive; the numeric value is accepted too. Any other value is refused with error code Validation.
value
string, nullable
Value in its text form: numbers as decimal strings, times as UNIX seconds.