API v2 (current) · MT4 · 14 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.
Every account stored in the cached copy of the connected trade platform.
Cached read — instant local lookup, no MT4 round-trip. Accounts are
keyed by login; the response is the values-only list of the cache. Same
curated record as the single-account endpoints: passwords, OTP secret and
the API blob never cross the boundary.
A cold cache (fresh connection) answers a NoConnect error with a
retry hint until the live connection has delivered its first snapshot —
an empty list always means "warmed but no accounts". Use
UsersRequest when a guaranteed live answer is required.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/UserRecordGet/{login}
Account record for a single login from the cached copy.
Cached read of the platform's UserRecord, mapped to the v2
MT4User record. Secrets (passwords, OTP secret, API blob) are
never returned, whatever the client's permissions — they cannot be exposed via this endpoint
regardless of caller permissions. Returns NotFound envelope when the
cached copy does not contain the requested login.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
login
path
integer (int32)
yes
Account login (positive integer)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/UserRecordRequest/{login}
Account record for a single login — live round-trip to MT4 server.
Asks the trade server directly instead of answering from the live connection's cache,
with a single-login array. Slower than UserRecordGet but always fresh (just
changed group, balance fix, etc). Same curated record, same security
guarantees — passwords/OTP/API blob never cross the boundary.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
login
path
integer (int32)
yes
Account login (positive integer)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/UserRecordsRequest
Account records for a list of logins — live round-trip to MT4 server.
Asks the trade server directly. Pass logins as repeated query parameters:
?logins=1001&logins=1002&logins=1003. Server-side billing
counts this as one Manager request regardless of the array length —
prefer batch over a loop of single-login calls.
Order in the response is not guaranteed to match the request — the
platform returns a dictionary. Missing logins are silently omitted; the
envelope is not an error envelope in that case.
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
logins
query
integer (int32)[]
no
Account logins to request (repeat the query param)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
GET /api/v2/MT4/{tradePlatform}/AdmBalanceCheck/{login}
Admin balance integrity check for a single account.
Asks the trade server directly. Returns the difference between the recorded
account balance and what the MT4 server recomputes from closed
orders + balance operations. diff = 0 → balance is intact;
non-zero → admin tooling can run AdmBalanceFix to recompute it
(see MT4 v2 :: Users).
Read-only operation despite the platform's "Adm" prefix (the prefix
signals the elevated authorization requirement, not a write side
effect).
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
login
path
integer (int32)
yes
Account login (positive integer)
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.
Admin balance integrity check for a batch of accounts.
Same semantics as the single-login variant but takes a list of logins
via repeated query parameters: ?logins=1001&logins=1002.
One billed Manager request regardless of the array length. The response
list contains entries only for accounts the server flagged with a
non-zero diff — clean accounts are silently omitted. Clients should
treat "missing from response" as "diff = 0".
Timeout: 10 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
logins
query
integer (int32)[]
no
Account logins (repeat query parameter)
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.
Admin balance fix — recompute balances for the given logins.
Asks MT4 server to take the diffs reported by
AdmBalanceCheck and write them onto the accounts. Empty body —
the logins are submitted as repeated query parameters
(?logins=1001&logins=1002) to keep the URL shape parallel
with the read variant and avoid the awkward "POST with int[] body"
pattern.
This DOES modify account balances. Pair every retry with an
Idempotency-Key header; otherwise a retried fix can double-
apply on an account whose original fix happened to land but whose
response was lost on the wire.
Timeout: 5 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
logins
query
integer (int32)[]
no
Account logins to fix (repeat query parameter)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 5 s (trade operation). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/AdmBalanceFix" \
-H "Authorization: Bearer $TOKEN"
List accounts (live)
GET /api/v2/MT4/{tradePlatform}/UsersRequest
Asks the trade server and returns a paged list of every account on the platform. When ?limit= is omitted the response contains all users in one page (back-compat). Set ?limit=N to bound page size; the response's paging.nextCursor drives the next call.
Platform-side this still fetches the full users dictionary — paging
reduces only the wire payload, not MT4 server load. Items are sorted
by login ascending; pages are stable across concurrent inserts as
long as the new login is greater than the previous page's last login.
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
limit
query
integer (int32)
no
Maximum number of items to return in one page. Omit to return all items in a single page. Maximum allowed value is 5000.
cursor
query
string
no
Opaque continuation token. Pass the value from the previous response's meta.paging.nextCursor to fetch the next page; omit for the first page. A token is accepted only by the call that issued it: a corrupt, truncated or foreign token answers a Validation error instead of restarting from the first page.
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 10 s (read). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Pass the full MT4UserCreate record. Set
Login = 0 to let MT4 server assign the next free id, or
request a specific id by setting Login > 0 (the server
rejects collisions with an MT4 error envelope).
The platform accepts the account with empty password bytes; clients
MUST follow up with POST UserPasswordSet/{login} before the
account is usable.
The record is validated before it reaches the server: Group is
required and, like every string field, must fit its fixed platform
buffer and contain only ASCII characters; Leverage must be
positive; Login is 0 (server-assigned) or positive; MQID
is in the unsigned 32-bit range. A value that does not fit is refused
with the field name instead of being cut.
Idempotency-Key strongly recommended — a retried create without it
can land twice when the original response was lost on the wire,
burning a second login id from the broker's sequence.
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 15 s (change). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Request body
MT4UserCreate (application/json) — New account fields. Login=0 for server-assigned id.
Change an account. The login field of the body identifies the account and is never
changed; the response is a boolean.
Only the fields present in the body are written: the record is read live from the trade
server, the body is applied over it, and the merged record is written back. A field that
is left out keeps its server value; for the string fields, omitting the key keeps the
value while sending "" clears it. Server-assigned and secret values (passwords, OTP
secret, registration date, last login, previous-period balances) always keep their server
values. A body with the login but no field to change is rejected, and a
string that does not fit the platform's fixed buffer is refused with
the field name instead of being cut.
Idempotency-Key strongly recommended: a change to the account affects
trading immediately, and a blind retry can overwrite concurrent edits.
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 15 s (change). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Request body
MT4UserUpdate (application/json) — Account login plus the fields to change; omitted fields keep their server value
Partial update of an account: the body carries only the fields to change, the current record is read from the trade server, the patch is applied and the merged record is written back and returned.
A patch must carry at least one known field. An unknown key is a
Validation error that names every unknown field, and a value of
the wrong type is also a Validation error — neither is dropped
silently. An explicit null clears a string field; on any other
field it is refused (omit the key to keep the server value). String
values are checked against the platform's fixed buffers: a value that
does not fit would be cut, so it is refused with the field name.
Passwords, secrets and fields the server derives are never taken from
the body — they keep their stored values.
Timeout: 15 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
login
path
integer (int32)
yes
Account login (immutable identity)
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
object (application/json, required) — JSON Merge Patch: an object with only the fields to change.
GET /api/v2/MT4/{tradePlatform}/AdmUsersRequestSafe/{group}
All user accounts in a given group (admin scope) — the safe variant that honors permission checks server-side.
Asks the trade server directly. Returns the curated MT4User projection
for every account in the specified group. The platform checks the manager's Admin
right on this call: a manager without it receives an error instead of a dropped
connection.
Comma-separated group lists are accepted by the platform (it strips
commas and trims whitespace internally); the simplest call pattern
is a single group name. Large groups may return substantial
payloads — pair with Idempotency-Key on retry.
Timeout: 30 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: Nothing was changed; the request is safe to repeat.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
group
path
string
yes
Account group name (max 16 chars)
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.
Opens a server-side incremental sync session for user records modified at or after timestamp.
Read the session with UsersSyncRead on the companion host. Pass
timestamp=0 to request all user records.
timestamp is Unix epoch seconds (int32) in MT4 server-local
time, not UTC. Returns a bare success envelope.
There is one sync session per trade platform, shared by every caller of
that platform: a second start replaces the first, and a read by one
caller drains what another started. Serialize imports per trade platform.
Timeout: 60 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
How long to wait for the trade server, in seconds (1–300). Default for this operation: 60 s (server maintenance). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
curl -X POST "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/UsersSyncStart" \
-H "Authorization: Bearer $TOKEN"
Bulk account operation
POST /api/v2/MT4/{tradePlatform}/UsersGroupOp
Bulk operation on a list of account logins — change group, leverage, enable/disable, or delete in one call.
Asks the trade server directly. Changes the group, leverage or state of the listed accounts in one call, or deletes them.
The body specifies the command and its parameter (NewGroup for
SetGroup, Leverage for Leverage; both ignored for Delete/Enable/
Disable) plus the list of target logins. The platform auto-fills
the internal Len field from the logins array — clients do
not set it.
Requires Manager or Administrator access rights on the manager
account; the platform enforces this server-side. Idempotency-Key
strongly recommended — bulk Delete / SetGroup operations are
destructive on customer-visible state.
Timeout: 60 s by default, adjustable per request with the X-Request-Timeout header. When the trade server does not answer in time: The operation may still be completed by the server (X-Request-Outcome: unknown): check its result before repeating it.
Parameters
Name
In
Type
Required
Description
tradePlatform
path
string (uuid)
yes
Trade platform id (GUID)
X-Request-Timeout
header
number (double)
no
How long to wait for the trade server, in seconds (1–300). Default for this operation: 60 s (server maintenance). The query parameter requestTimeout does the same for clients that cannot set headers. The applied value is returned in the X-Request-Timeout-Applied response header.
Types the operations above take and return, with their first-level properties; * marks a required one. The full graph is in the OpenAPI specification.
MT4UserListApiResponse
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.
MT4UserApiResponse
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.
Trading account: identity, contact, financial and flag fields. Credentials and secrets are never returned. Account flags come as one bitfield in MT4User.EnableFlags, with the bits documented on that property.
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.
MT4BalanceDiffApiResponse
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.
Returned by AdmBalanceCheck. Reports the difference between the account's recorded balance and what the MT4 server recomputes from closed orders + balance operations. Diff = 0 means the integrity check passed; non-zero means the recorded balance has drifted and would be set to recorded + Diff if AdmBalanceFix ran.
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.
MT4BalanceDiffListApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
BooleanApiResponse
Unified v2 response envelope: data is the payload (null on error); error is the error object (null on success, always serialised); meta contains response metadata (activityId and optional paging). A call that reaches an operation answers HTTP 200 — only transport failures (401, 403, 404, 400, 5xx) use other status codes.
v2 error body, present when a call failed even though it answered HTTP 200. Code is the stable error category. ManagerCode is the raw result code of the trade server on MT4 (null otherwise: on MT5 the result name is in Message). Message is a human-readable description.
Response metadata. ActivityId identifies the request — quote it when you contact support. Paging is present only on paginated list responses; otherwise it is omitted.
MT4UserCreate
input — full create shape for UserRecordNew. Same writable fields as MT4UserUpdate minus the explicit Balance/Credit (those should come through dedicated balance operations after the account exists). The platform allocates the next free login id when Login = 0; clients may also request a specific id by setting Login > 0 (the server rejects collisions). Password / OTP / API-data fields are NOT on this record. After successful creation, set the initial password via a separate POST UserPasswordSet/{login} call. The platform accepts the new account with empty password bytes; the password endpoint lifts it to usable credentials.
Property
Type
Description
login
integer (int32)
Optional preferred login. 0 = let server assign the next free id. > 0 = request this exact id (server rejects collisions via platform error code).
group
string, nullable
name
string, nullable
externalId
string, nullable
status
string, nullable
country
string, nullable
city
string, nullable
state
string, nullable
zipCode
string, nullable
address
string, nullable
leadSource
string, nullable
phone
string, nullable
email
string, nullable
comment
string, nullable
leverage
integer (int32)
agentAccount
integer (int32)
interestRate
number (double)
taxes
number (double)
enableFlags
integer (int32)
sendReports
integer (int32)
mqid
integer (int64)
userColor
integer (int32)
MT4UserUpdate
Input shape for UserRecordUpdate: the editable part of an MT4 account record.
Property
Type
Description
login
integer (int32)
Login of the account to update (required identity; never changed by this call)
group
string, nullable
Group name the account belongs to
name
string, nullable
Display name of the account holder
externalId
string, nullable
External customer identifier (CRM/KYC link)
status
string, nullable
MT4-internal status string
country
string, nullable
Country
city
string, nullable
City
state
string, nullable
State / region
zipCode
string, nullable
Postal / ZIP code
address
string, nullable
Street address
leadSource
string, nullable
Lead source / referral channel tag
phone
string, nullable
Contact phone
email
string, nullable
Contact email
comment
string, nullable
Free-form back-office comment
leverage
integer (int32), nullable
Account leverage (e.g. 100 means 1:100)
agentAccount
integer (int32), nullable
IB / agent account number that referred this client
balance
number (double), nullable
Current balance (prefer dedicated balance ops for audit trail)
credit
number (double), nullable
Credit on the account
interestRate
number (double), nullable
Interest rate
taxes
number (double), nullable
Tax rate
enableFlags
integer (int32), nullable
Account flag bitfield — see MT4User.EnableFlags for bit semantics
sendReports
integer (int32), nullable
0 = no reports, non-zero = nightly email reports enabled
mqid
integer (int64), nullable
MetaQuotes ID for mobile push notifications
userColor
integer (int32), nullable
UI tint color in terminal client lists
MT4UsersGroupOp
v2 request body for UsersGroupOp — bulk group-membership / leverage / enable-disable / delete operation across a list of account logins.
Property
Type
Description
command
string, nullable
Bulk operation. One of: Delete, Enable, Disable, Leverage, SetGroup. Case-insensitive; the numeric value is accepted too. Any other value is refused with error code Validation.
newGroup
string, nullable
Target group name (max 15 chars + NUL). Only used by SetGroup.
leverage
integer (int32)
New leverage value (e.g. 100, 200, 500). Only used by Leverage.
logins
integer (int32)[]
List of account logins (account numbers) to apply the operation to. Must be non-empty.
MT4User
Trading account: identity, contact, financial and flag fields. Credentials and secrets are never returned. Account flags come as one bitfield in MT4User.EnableFlags, with the bits documented on that property.
Property
Type
Description
login
integer (int32)
Trading account number (login)
group
string, nullable
Group name the account belongs to
name
string, nullable
Display name of the account holder
registrationDate
string (date-time)
UTC timestamp when the account was created
lastDate
string (date-time)
UTC timestamp of the last MT4 server interaction
externalId
string, nullable
External customer identifier (e.g. CRM/KYC link). The platform's Id field.
status
string, nullable
MT4-internal status string (e.g. live/demo state)
country
string, nullable
Country (free text per broker's enrolment workflow)
city
string, nullable
City
state
string, nullable
State / region
zipCode
string, nullable
Postal / ZIP code
address
string, nullable
Street address
leadSource
string, nullable
Lead source / referral channel tag
phone
string, nullable
Contact phone
email
string, nullable
Contact email
comment
string, nullable
Free-form back-office comment
leverage
integer (int32)
Account leverage (e.g. 100 means 1:100)
agentAccount
integer (int32)
IB / agent account number that referred this client
lastIP
integer (int32)
Last connection IP as raw int (use platform helpers to format)
balance
number (double)
Current balance
credit
number (double)
Credit on the account
prevMonthBalance
number (double)
Balance at the start of the previous calendar month
prevBalance
number (double)
Balance at the previous reporting close
prevMonthEquity
number (double)
Equity at the start of the previous calendar month
prevEquity
number (double)
Equity at the previous reporting close
interestRate
number (double)
Interest rate (broker-defined, often used for swaps)
taxes
number (double)
Tax rate applied to the account
enableFlags
integer (int32)
Account flag bitfield (the platform's EnableFlags). Documented bits: * 0x01 = account enabled (login allowed) * 0x02 = client may change password * 0x04 = account is read-only (no trading) * 0x08 = OTP enrolment required at login Bit positions reflect MT4 build 1455. Verify against the current MT4 Manager docs if pinning behaviour to a specific bit.
sendReports
integer (int32)
0 = no reports, non-zero = nightly email reports enabled
mqid
integer (int64)
MetaQuotes ID for mobile push notifications (0 if not linked). Typed as long in v2 even though current builds store it in 32 bits — the platform exposes a wider underlying type and a checked narrowing cast would crash for accounts whose mqid sits above Int32.MaxValue. Future-proofs the contract against MQ widening.
userColor
integer (int32)
UI tint color in terminal client lists
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.
MT4BalanceDiff
Returned by AdmBalanceCheck. Reports the difference between the account's recorded balance and what the MT4 server recomputes from closed orders + balance operations. Diff = 0 means the integrity check passed; non-zero means the recorded balance has drifted and would be set to recorded + Diff if AdmBalanceFix ran.
Property
Type
Description
login
integer (int32)
Account login
diff
number (double)
Difference (signed). Zero means balance integrity check passed.