CPlugin

MT5 v2 :: Reports

API v2 (current) · MT5 · 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 from https://auth.cplugin.net/connect/token (scope webapi). $TRADE_PLATFORM_ID is the id of a trade platform registered in Toolbox.

Operations

Daily reports of one account

GET /api/v2/MT5/{tradePlatform}/DailyRequest/{login}

Returns the daily reports of the account for the requested period, one entry per reported day, together with the positions and pending orders that were open at the end of that day. The window bounds are optional: without them every stored report is returned. Times are seconds since 01.01.1970 as the trade server counts them; a report belongs to the window when its generation time falls inside it. This is the most expensive of the daily reads — use the lightweight variant when the open positions and orders are not needed.

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).
login path integer (int64) yes Login of the account.
from query integer (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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/DailyRequest/$LOGIN" \
  -H "Authorization: Bearer $TOKEN"

Lightweight daily reports of one account

GET /api/v2/MT5/{tradePlatform}/DailyRequestLight/{login}

Returns the daily reports of the account for the requested period without the positions and pending orders that were open at the end of the reported day. The result is otherwise identical to the full report and costs the trade server far less to build. Times are seconds since 01.01.1970 as the trade server counts them.

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).
login path integer (int64) yes Login of the account.
from query integer (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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/DailyRequestLight/$LOGIN" \
  -H "Authorization: Bearer $TOKEN"

Daily reports of the accounts of a group

GET /api/v2/MT5/{tradePlatform}/DailyRequestByGroup/{mask}

Returns the daily reports of every account in the groups matching the mask, for the requested period, with the positions and pending orders open at the end of each day. The result is not paginated: the whole set is returned at once. Times are seconds since 01.01.1970 as the trade server counts them.

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).
mask path string yes Group mask — one group, several comma-separated groups, or a mask with * (any value) and ! (exception), for example demo*,!demoforex.
from query integer (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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/DailyRequestByGroup/$MASK" \
  -H "Authorization: Bearer $TOKEN"

Lightweight daily reports of the accounts of a group

GET /api/v2/MT5/{tradePlatform}/DailyRequestLightByGroup/{mask}

Returns the daily reports of every account in the groups matching the mask, for the requested period, without the positions and pending orders open at the end of each day. The result is not paginated: the whole set is returned at once. Times are seconds since 01.01.1970 as the trade server counts them.

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).
mask path string yes Group mask — one group, several comma-separated groups, or a mask with * (any value) and ! (exception), for example demo*,!demoforex.
from query integer (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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/DailyRequestLightByGroup/$MASK" \
  -H "Authorization: Bearer $TOKEN"

Daily reports of several accounts

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

Returns the daily reports of the listed accounts for the requested period, with the positions and pending orders open at the end of each day. The logins travel in the request body; a request without logins is rejected as invalid input. Times are seconds since 01.01.1970 as the trade server counts them.

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 (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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.

Request body

integer (int64)[] (application/json) — Logins of the accounts to read.

Responses

Example

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

Lightweight daily reports of several accounts

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

Returns the daily reports of the listed accounts for the requested period, without the positions and pending orders open at the end of each day. The logins travel in the request body; a request without logins is rejected as invalid input. Times are seconds since 01.01.1970 as the trade server counts them.

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 (int64) no Window start in seconds since 01.01.1970; omitted means 01.01.1970.
to query integer (int64) no Window end in seconds since 01.01.1970; omitted means no upper bound.
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.

Request body

integer (int64)[] (application/json) — Logins of the accounts to read.

Responses

Example

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

Summary of client and hedging positions for every symbol

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

Returns the whole summary table: one record per symbol with the client open interest, the hedging position of the company and the profit of both. The table ends with the total record, which carries an empty symbol name. Profit figures of accounts whose deposit currency differs from the summary currency become available only after the trade server has received a quote of the symbol needed for the conversion.

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).
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/SummaryGetAll" \
  -H "Authorization: Bearer $TOKEN"

Summary of client and hedging positions for one symbol

GET /api/v2/MT5/{tradePlatform}/SummaryGet/{symbol}

Returns the summary record of the symbol: the client open interest, the hedging position of the company and the profit of both. An unknown symbol answers with the platform error that explains it rather than an empty record.

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).
symbol path string yes Symbol the record is calculated for.
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/SummaryGet/$SYMBOL" \
  -H "Authorization: Bearer $TOKEN"

Summary currency of the trade server

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

Returns the currency the profit of the summary positions is expressed in. The value is a property of the trade server connection, not of a single request, and it applies to both the summary and the exposure tables.

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/SummaryCurrency" \
  -H "Authorization: Bearer $TOKEN"

Set the summary currency of the trade server

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

Sets the currency the profit of the summary positions is expressed in. The value is a property of the trade server connection, not of a single request, so the change is visible to every reader of the summary and the exposure tables until it is set back. The trade server accepts only currencies it knows; an unknown one is answered with a platform error.

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

string (application/json) — Currency code to calculate the summary profit in, as a JSON string.

Responses

Example

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

Exposure of the company for every asset

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

Returns the whole exposure table: one record per asset with the volume the clients hold, the volume the company holds on its hedging account and the conversion rate of the net total. The table ends with the net total record, which carries an empty asset name.

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).
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/ExposureGetAll" \
  -H "Authorization: Bearer $TOKEN"

Exposure of the company for one asset

GET /api/v2/MT5/{tradePlatform}/ExposureGet/{symbol}

Returns the exposure record of the asset: the volume the clients hold, the volume the company holds on its hedging account and the conversion rate of the net total. An unknown asset answers with the platform error that explains it rather than an empty record.

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).
symbol path string yes Name of the asset.
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/ExposureGet/$SYMBOL" \
  -H "Authorization: Bearer $TOKEN"

Currency of the net total of the exposure table

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

Returns the currency the net total of the exposure table is expressed in. The value is a property of the trade server connection, not of a single request.

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/ExposureCurrency" \
  -H "Authorization: Bearer $TOKEN"

Set the currency of the net total of the exposure table

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

Sets the currency the net total of the exposure table is expressed in. The value is a property of the trade server connection, not of a single request, so the change is visible to every reader of the exposure table until it is set back. The trade server accepts only currencies it knows; an unknown one is answered with a platform error.

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

string (application/json) — Currency code of the net total, as a JSON string.

Responses

Example

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

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.

MT5DailyListApiResponse

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 MT5Daily[]
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.

MT5SummaryListApiResponse

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 MT5Summary[]
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.

MT5SummaryApiResponse

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 MT5Summary Summary of the client and hedging positions of one symbol, v2 read DTO.
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.

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.

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.

MT5ExposureListApiResponse

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 MT5Exposure[]
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.

MT5ExposureApiResponse

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 MT5Exposure Exposure of the company on one asset, v2 read DTO.
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.

MT5Daily

Daily report of one client account, v2 read DTO.

PropertyTypeDescription
datetime integer (int64) Time the report was generated, in seconds since 01.01.1970 as the trade server counts them.
datetimePrev integer (int64) Time of the previous report of the same account, in seconds since 01.01.1970.
login integer (int64) Login of the account the report belongs to.
name string, nullable Name of the account holder as stored in the account.
group string, nullable Group of the account.
currency string, nullable Deposit currency of the account.
currencyDigits integer (int32) Number of decimal places of the deposit currency.
company string, nullable Company serving the account.
eMail string, nullable Email of the account holder.
balance number (double) Balance of the account at the report time.
credit number (double) Amount of credit funds of the account at the report time.
interestRate number (double) Annual interest rate of the account, in percent.
commissionDaily number (double) Commissions charged from the account during the reported day.
commissionMonthly number (double) Commissions charged from the account during the current month.
agentDaily number (double) Agent commission charged for the trade operations of the reported day.
agentMonthly number (double) Agent commission charged for the trade operations of the current month.
balancePrevDay number (double) Balance of the account at the end of the previous day.
balancePrevMonth number (double) Balance of the account at the end of the previous month.
equityPrevDay number (double) Equity of the account at the end of the previous day.
equityPrevMonth number (double) Equity of the account at the end of the previous month.
margin number (double) Margin reserved for the open positions of the account.
marginFree number (double) Free margin of the account.
marginLevel number (double) Margin level of the account, in percent.
marginLeverage integer (int32) Margin leverage of the account.
profit number (double) Current profit of all open positions of the account.
profitStorage number (double) Swaps charged for the open positions of the account but not yet reflected in the balance.
profitEquity number (double) Current floating equity of the account.
profitAssets number (double) Current assets of the account.
profitLiabilities number (double) Current liabilities of the account.
dailyProfit number (double) Profit of the account for the reported day.
dailyBalance number (double) Amount accrued to the balance of the account during the reported day.
dailyCredit number (double) Credit given to the account during the reported day.
dailyCharge number (double) Other charges from the balance of the account during the reported day.
dailyCorrection number (double) Corrective balance operations of the reported day.
dailyBonus number (double) Bonuses added to the balance of the account during the reported day.
dailyStorage number (double) Swaps calculated for the account for the reported day.
dailyCommInstant number (double) Instant commissions charged from the account during the reported day.
dailyCommRound number (double) Turnover commissions charged from the account during the reported day.
dailyCommFee number (double) Fee charged for the deals of the account during the reported day.
dailyDividend number (double) Dividends accrued to the account for the reported day.
dailyTaxes number (double) Taxes withheld from the funds of the account for the reported day.
dailySOCompensation number (double) Negative balance compensation accrued to the account for the reported day.
dailySOCompensationCredit number (double) Credit funds withdrawn during the reported day as a result of a negative balance compensation.
dailyAgent number (double) Agent commission charged for the trade operations of the reported day.
dailyInterest number (double) Amount accrued to the account under the annual interest rate for the reported day.
positions MT5Position[] Open positions of the account; null in a lightweight report.
orders MT5Order[] Pending orders of the account; null in a lightweight report.

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.

MT5Summary

Summary of the client and hedging positions of one symbol, v2 read DTO.

PropertyTypeDescription
symbol string, nullable Symbol the record is calculated for; empty in the total record.
digits integer (int32) Number of decimal places in the weighted average prices.
positionClients integer (int32) Number of open client positions on the symbol.
positionCoverage integer (int32) Number of hedging positions on the symbol.
volumeBuyClients integer (int64) Total volume of client buy positions.
volumeBuyClientsExt integer (int64) Total volume of client buy positions with extended precision.
volumeBuyCoverage integer (int64) Total volume of hedging buy positions.
volumeBuyCoverageExt integer (int64) Total volume of hedging buy positions with extended precision.
volumeSellClients integer (int64) Total volume of client sell positions.
volumeSellClientsExt integer (int64) Total volume of client sell positions with extended precision.
volumeSellCoverage integer (int64) Total volume of hedging sell positions.
volumeSellCoverageExt integer (int64) Total volume of hedging sell positions with extended precision.
volumeNet number (double) Net total: client buy volume minus client sell volume, with the hedged amount deducted.
priceBuyClients number (double) Weighted average open price of client buy positions.
priceBuyCoverage number (double) Weighted average open price of hedging buy positions.
priceSellClients number (double) Weighted average open price of client sell positions.
priceSellCoverage number (double) Weighted average open price of hedging sell positions.
profitClients number (double) Total profit or loss of client positions, excluding swaps and commissions.
profitCoverage number (double) Total profit or loss of hedging positions, excluding swaps and commissions.
profitFullClients number (double) Total profit or loss of client positions, including swaps and commissions.
profitFullCoverage number (double) Total profit or loss of hedging positions, including swaps and commissions.
profitUncovered number (double) Difference between the client and the hedging profit, excluding swaps and commissions.
profitUncoveredFull number (double) Difference between the client and the hedging profit, including swaps and commissions.

MT5Exposure

Exposure of the company on one asset, v2 read DTO.

PropertyTypeDescription
symbol string, nullable Name of the asset; empty in the net total record.
digits integer (int32) Number of decimal places in the price of the asset.
volumeClients number (double) Volume of client positions on the asset.
volumeCoverage number (double) Volume of positions on the hedging account for the asset.
priceRate number (double) Rate of conversion of the net total to the summary currency.
volumeNet number (double) Difference between the client volume and the hedged volume.