Skip to main content

RequestExecuteSymbolRollover

Request for expiration of the specified symbol on all open orders

Request format

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

Request parameters:

NameDescription
RequestIdUnique request GUID
SymbolSymbol 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 ResponseExecuteSymbolRollover

{
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Symbol": "UKOIL",
"Description": "Brent Crude – ICE version",
"CollectSuffixes": true,
"RolloverMode":"SwapCommission",
"Symbol": "USOIL",
"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":"Executed"
},
{
"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": 10.0,
"OperationState":"ExecutionError"
},
]
}
],
"ResponseNode": "ResponseNodeExecuteSymbolRollover"
}
],
"RequestId": "865bca00-56fd-4dac-8a1f-ff9bb3b6bf09",
"ResponseMaster": "ResponseExecuteSymbolRollover"
}

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