RequestSymbolNet
Request for the current no positions on the specified symbol, taking into account the specified filter
Request format
{
"CollectSuffixes": true,
"DealerSide": true,
"Symbol": "EURUSD",
"AggregationSymbol": "EURUSD",
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"Countries": [
"Russia",
"USA"
],
"RequestId": "c1549b18-3ccb-4500-a928-7ff27e8d1fe9",
"Nodes": [
Node1
],
"RequestName": "RequestSymbolNet"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Symbol | The symbol by which the net position is requested |
| AggregationSymbol | The aggregation symbol (used if CollectSuffixes = true), to calc symbol net |
| CollectSuffixes | true - aggregate all suffix symbols into one symbol, otherwise display separate statistics for them, including their contracts |
| DealerSide | true - display data from the dealer's side (false - from the traders side) |
| Reasons | TradeReason List |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are called. |
| RequestName | Request type |
Ответ ResponseSymbolNet
{
"Result": {
"Symbol": "EURUSD",
"Timestamp": "2018-03-04 15:35:27:489",
"VolumeBuyInBaseAsset": 5498151139.69549,
"VolumeSellInBaseAsset": -2834486982.43465,
"VolumeInBaseAsset": 2663664157.26084,
"VolumeBuyInUsd": 6937968647.66,
"VolumeSellInUsd": -3010585817.91,
"VolumeInUsd": 3927382829.75,
"AverageBuyPrice": 1.26938,
"AverageSellPrice": 1.2356,
"AveragePrice": 1.23255,
"MarketPrice": 1.2376,
"AveragePriceFromMarketInPoints": -687.9,
"OrdersBuy": 10151,
"OrdersSell": 8339,
"Orders": 1840,
"LotsBuy": 5491.82,
"LotsSell": -3376.18,
"Lots": 21541.64,
"UnrealizedProfitInUsd": 123135771.13,
"Digits": 5,
"Sentiment": 37.80
},
"Errors": [],
"RequestId": "07226421-788e-48d3-90f1-79657498c439",
"ResponseMaster": "ResponseSymbolNet"
}
Errors either an empty list or a list of node responses ResponseNodeError