List account margins (cached)
GET /api/v2/MT4/{tradePlatform}/MarginsGet
Margin levels for all accounts from the pump cache.
Pump-cached snapshot of margin/equity/free margin per login. Use this for bulk monitoring of account health (margin calls / stop-out proximity). For a single account, prefer the existing MarginLevelGet/MarginLevelRequest endpoints.
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. |
Responses
- 200 Success — MT4MarginLevelListApiResponse
Example
curl "https://cloud.mywebapi.com/api/v2/MT4/$TRADE_PLATFORM_ID/MarginsGet" \
-H "Authorization: Bearer $TOKEN"