RequestHedgingNetSummary
Request for cumulative positions by instruments, taking into account the specified filter
Request format
{
"Accounts": [
"123456"
],
"Symbols": [
"GBPUSD",
"USDJPY"
],
"RequestId": "c1549b18-3ccb-4500-a928-7ff27e8d1fe9",
"Nodes": [
Node1
],
"RequestName": "RequestHedgingNetSummary"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Accounts | Filter by hedge accounts (all available accounts if nothing is specified) |
| Symbols | Filter by symbols (by all symbols, if nothing is specified) |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are called. |
| RequestName | Request type |
Response ResponseHedgingNetSummary
{
"Result": {
"NetBySymbols": [
{
"AverageBuyPrice": 0,
"AveragePrice": 0.71434,
"AverageSellPrice": 0.71434,
"Digits": 5,
"Lots": -3,
"LotsBuy": 0,
"LotsSell": -3,
"Orders": 1,
"OrdersBuy": 0,
"OrdersSell": 1,
"Symbol": "NZDUSD"
},
{
"AverageBuyPrice": 0,
"AveragePrice": 110.146,
"AverageSellPrice": 110.146,
"Digits": 3,
"Lots": -3,
"LotsBuy": 0,
"LotsSell": -3,
"Orders": 2,
"OrdersBuy": 0,
"OrdersSell": 2,
"Symbol": "USDJPY",
"UnrealizedProfitInUsd": 772.58
}
],
"Summary": {
"ActiveAccounts": 2,
"BalanceInUsd": 919857.52,
"CreditInUsd": 0,
"EquityInUsd": 841275.06,
"Lots": -75,
"LotsBuy": 5,
"LotsSell": -80,
"Orders": 41,
"OrdersBuy": 2,
"OrdersSell": 39
}
},
"Errors": [
{
"Node": "Node3",
"Platform": "Mt4",
"Result": "Error message",
"ResponseNode": "ResponseNodeError"
}
],
"RequestId": "63cf9541-8a01-4c75-8d1b-97137cace952",
"ResponseMaster": "ResponseHedgingNetSummary"
}
Errors either an empty list or a list of node responses ResponseNodeError