RequestAccountStateForLeverage
Requesting the trading account status for the specified leverage
Request format
{
"Login": 1,
"Leverage": 20,
"RequestId": "95e3bce3-3565-4265-8790-9a33dd16c3ef",
"Nodes": [
"Node1"
],
"RequestName": "RequestAccountStateForLeverage"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Login | Login of the requested account |
| Leverage | Trading leverage for which you need to calculate the account balance |
| Nodes | The requested node, one must be indicated. |
| RequestName | Request type |
ResponseAccountStateForLeverage contains DtoAccountInfo structure
{
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Result": {
"Name": "nalivator",
"EnableReadOnly": false,
"City": "Petropavlovsk",
"RegDate": "2017-10-20 20:40:51:000",
"Email": "mail@mail.ru",
"Phone": "",
"NeedLeverage": 0,
"IsStopoutReachable": true,
"Balance": 100000.0,
"Margin": 1564622.5,
"MarginLevel": 5.35,
"Leverage": 20,
"Drawdown": -16.282,
"RealizedProfit": 0.0,
"NettoVolumeInUsd": 31260800.0,
"NettoVolumeInLots": 400.0,
"Node": "Second",
"Platform": "Mt4",
"Login": 494171,
"Group": "demoforex",
"Country": "Kazakhstan",
"Currency": "USD",
"Equity": 83717.97,
"ActualLeverage": 373.41,
"EquityInUsd": 83717.97,
"Lots": 400.0,
"UnrealizedProfitInUsd": -16282.03,
"TotalProfit": -16282.03,
"TotalProfitInUsd": -16282.03,
"UnrealizedProfit": -16282.03,
"SessionProfit": 0.0,
"SessionProfitInUsd": 0.0,
"IsSuspicious": false,
"SuspiciousComment": ""
},
"ResponseNode": "ResponseNodeAccountTradeState"
}
],
"RequestId": "dcae036c-9f87-48e2-a437-fc9ed8081c42",
"ResponseMaster": "ResponseAccountStateForLeverage"
}