Skip to main content

RequestNetCollationBooks

Query of the aggregate A-Book B-Book positions by symbols, taking into account the specified filter

Request format

{
"CollectSuffixes": true,
"DealerSide": true,
"TopSymbols": 10,
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"SymbolsGroups": [
"Group1",
"Group2"
],
"Countries": [
"Russia",
"USA"
],
"RequestId": "c1549b18-3ccb-4500-a928-7ff27e8d1fe9",
"Nodes": [
Node1
],
"RequestName": "RequestNetCollationBooks"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
CollectSuffixestrue - aggregate all suffix symbols into one symbol, otherwise display separate statistics for them, including their contracts
DealerSidetrue - display data from the dealer's side (false - from the traders side)
ReasonsTradeReason List
AccountsGroupsList of account groups
SymbolsGroupsList of symbol groups
CountriesList of countries
TopSymbols?Optional parameter specifies how many symbols to receive with maximum net volumes
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are called.
RequestNameRequest type

Response ResponseNetCollationBooks

  {  
"Result":{
"Symbols":[
{
"Symbol":"Nasdaq100",
"ABook":{
"Symbol":"Nasdaq100",
"Timestamp":"2019-06-11 15:28:35:069",
"ProfitMode":"CFD",
"VolumeBuyInBaseAsset":121138.854,
"VolumeSellInBaseAsset":-147402889.902,
"VolumeInBaseAsset":-147281751.048,
"VolumeBuyInUsd":166586.75,
"VolumeSellInUsd":-147448337.80,
"VolumeInUsd":-147281751.05,
"AverageBuyPrice":7326.37,
"AverageSellPrice":7457.39,
"AveragePrice":7457.49,
"MarketPrice":7574.65,
"AveragePriceFromMarketInPoints":-117.16,
"OrdersBuy":32,
"OrdersSell":127,
"Orders":159,
"Buyers":17,
"Sellers":18,
"LotsBuy":0.80,
"LotsSell":-973.05,
"Lots":-972.25,
"UnrealizedProfitInUsd":-2270826.22,
"Digits":2,
"SentimentByVolumes":0.08,
"SentimentByAccounts":48.57
}
"BBook":{
"Symbol":"Nasdaq100",
"Timestamp":"2019-06-11 15:28:35:069",
"ProfitMode":"CFD",
"VolumeBuyInBaseAsset":121138.854,
"VolumeSellInBaseAsset":-147402889.902,
"VolumeInBaseAsset":-147281751.048,
"VolumeBuyInUsd":166586.75,
"VolumeSellInUsd":-147448337.80,
"VolumeInUsd":-147281751.05,
"AverageBuyPrice":7326.37,
"AverageSellPrice":7457.39,
"AveragePrice":7457.49,
"MarketPrice":7574.65,
"AveragePriceFromMarketInPoints":-117.16,
"OrdersBuy":32,
"OrdersSell":127,
"Orders":159,
"Buyers":17,
"Sellers":18,
"LotsBuy":0.80,
"LotsSell":-973.05,
"Lots":-972.25,
"UnrealizedProfitInUsd":-2270826.22,
"Digits":2,
"SentimentByVolumes":0.08,
"SentimentByAccounts":48.57
}
},
{
"Symbol":"S&P500",
"BBook":{
"Symbol":"S&P500",
"Timestamp":"2019-06-11 15:28:35:069",
"ProfitMode":"CFD",
"VolumeBuyInBaseAsset":1974650.60,
"VolumeSellInBaseAsset":-66101434.5,
"VolumeInBaseAsset":-64126783.90,
"VolumeBuyInUsd":1980459.80,
"VolumeSellInUsd":-66107243.7,
"VolumeInUsd":-64126783.90,
"AverageBuyPrice":2868.7,
"AverageSellPrice":2828.0,
"AveragePrice":2826.7,
"MarketPrice":2904.6,
"AveragePriceFromMarketInPoints":-77.9,
"OrdersBuy":37,
"OrdersSell":53,
"Orders":90,
"Buyers":30,
"Sellers":21,
"LotsBuy":13.60,
"LotsSell":-455.15,
"Lots":-441.55,
"UnrealizedProfitInUsd":-1720302.65,
"Digits":1,
"SentimentByVolumes":2.90,
"SentimentByAccounts":58.82
}
}
]
},
"RequestId":"40e367fb-27ab-4d34-933d-ada9ea6e0698",
"Errors":[

],
"ResponseMaster":"ResponseNetCollationBooks"
}

Errors is either an empty list or a list of responses of the ResponseNodeError nodes