Skip to main content

RequestSemaphoresSettings

Request for semaphores settings from specified nodes

Request format

{
"SemaphoresTypes":["SemaphoreTrades"],
"RuleKeys": ["01940763-d4b5-768e-ae78-d3ebbfd250c3"],
"Nodes": [
"node1",
"node2"
],
"RequestId": "580c2aaa-b432-40dc-bef2-d891ace07e49",
"RequestName": "RequestSemaphoresSettings"
}

Request parameters:

NameDescription
SemaphoresTypesFilter array of semaphore types (enum SemaphoreTypes), if empty, all semaphores are selected
RuleKeysFilter of rule keys
RequestIdUnique request GUID
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are requested.
RequestNameType of request

Response ResponseSemaphoresSettings

{
"Result": [
{
"ResponseNode": "ResponseNodeSemaphoresSettings",
"Node": "MT5Indigosoft",
"Platform": "Mt5",
"Result": [
{
"WeekendSettings": {
"Intervals": {
"Warning": 600,
"Alert": 900
},
"Enabled": true,
"TimeFrom": {
"DayOfWeek": 5,
"Hour": 22,
"Minute": 0
},
"TimeTo": {
"DayOfWeek": 1,
"Hour": 1,
"Minute": 0
}
},
"Day": {
"Warning": 61,
"Alert": 120
},
"Night": {
"Warning": 600,
"Alert": 900
},
"DayTime": {
"StartHour": 6,
"EndHour": 23
},
"Id": "39d06799-0bb9-4f57-9cb4-1ffa9ed40379",
"RuleName": "DefaultRuleName",
"RuleKey": "39d06799-0bb9-4f57-9cb4-1ffa9ed40379",
"Name": "SemaphoreTradesSettings",
"Node": "MT5Indigosoft",
"Platform": "Mt5",
"SemaphoreType": "SemaphoreTrades",
"Enabled": false,
"Description": "Control of orders' execution"
}
]
}
],
"RequestId": "580c2aaa-b432-40dc-bef2-d891ace07e49",
"Errors": [],
"ResponseMaster": "ResponseSemaphoresSettings"
}