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:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Symbol | Symbol on which the expiration is carried out |
| CollectSuffixes | true - use all symbol suffixes |
| BuyPoints | the size of the adjustment in points for purchases on the specified Symbol |
| SellPoints | the amount of the adjustment in points for sales on the specified Symbol |
| Nodes | List of nodes that participate in request. If the list is empty, all available nodes are requested. |
| RequestName | Type 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