Skip to main content

RequestCalculateSymbolRollover

Request for a preliminary calculation of the size of adjustments in orders

Request format

 {
"RequestId": "865bca00-56fd-4dac-8a1f-ff9bb3b6bf09",
"CollectSuffixes": true, "Symbol": "USOIL",
"BuyPoints": 50,
"SellPoints": -60,
"Nodes": [ ],
"RequestName": "RequestCalculateSymbolRollover"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
SymbolThe symbol on which the expiration is carried out
CollectSuffixestrue - use all symbol suffixes
BuyPointsthe size of the adjustment in points for purchases on the specified Symbol
SellPointsthe amount of the adjustment in points for sales on the specified Symbol
NodesList of nodes that participate in request. If the list is empty, all available nodes are requested.
RequestNameType of request

Response ResponseCalculateSymbolRollover

{
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Symbol": "UKOIL",
"Description": "Brent Crude – ICE version",
"RolloverMode": "SwapCommission",
"CollectSuffixes": true,
"BuyPoints": 50,
"SellPoints": -60,
"OrdersCount": 104,
"CompensationInUsd": -11711.5,
"VolumeBuyInUsd": 19836807.2,
"VolumeSellInUsd": -20941025.5,
"VolumeInUsd": -1104218.3,
"Orders": [
{
"Node": "Node1",
"Platform": "Mt4",
"Order": 27091422,
"Login": 492829,
"Name": "MetaTrader 4 Demo Account",
"Symbol": "UKOIL",
"Cmd": "Buy",
"Lots": 0.01,
"VolumeInUsd": 629.6,
"ProfitInUsd": 10.1,
"CompensationInUsd": 1.0,
"CompensationInAccountCurrency": 1.0,
"OperationState":"None"
},
{
"Node": "Node1",
"Platform": "Mt4",
"Order": 27021270,
"Login": 492886,
"Name": "valurtra",
"Symbol": "UKOIL",
"Cmd": "Buy",
"Lots": 0.1,
"VolumeInUsd": 6296.0,
"ProfitInUsd": 18.0,
"CompensationInUsd": 10.0,
"CompensationInAccountCurrency": 1.0,
"OperationState":"None"
},
]
}
],
"ResponseNode": "ResponseNodeCalculateSymbolRollover"
}
],
"RequestId": "865bca00-56fd-4dac-8a1f-ff9bb3b6bf09",
"ResponseMaster": "ResponseCalculateSymbolRollover"
}

Errors either an empty list or a list of node responses ResponseNodeError