RequestTriggersSettings
Request information on available triggers from all nodes
Request format
{
"TriggersTypes":["TriggerLeverages"],
"RuleKeys": ["01940763-d4b5-768e-ae78-d3ebbfd250c3"],
"Nodes": [
"node1",
"node2"
],
"RequestId": "580c2aaa-b432-40dc-bef2-d891ace07e49",
"RequestName": "RequestTriggersSettings"
}
Request parameters:
| Name | Description |
|---|---|
| TriggersTypes | Filter array of trigger types (enum TriggerTypes), if empty, all triggers are selected |
| RuleKeys | Filter of rule keys |
| RequestId | Unique request GUID |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are requested. |
| RequestName | Type of request |
Response ResponseTriggersSettings
{
"Result": [
{
"Node": "Node2",
"Platform": "Mt4",
"Result": [
{
"SymbolsGroup": "Forex",
"Threshold": 100.0,
"SwitchToCloseOnlyMode": false,
"AutoWideningSpread": false,
"CorellationPercent": 100.0,
"ExcludedSymbols": [
],
"Id": "835bcadc-5b2d-4469-afe7-30d312819246",
"Name": "TriggerVolatilityControlSettings",
"Node": "Node2",
"Platform": "Mt4",
"TriggerType": "TriggerVolatilityControl",
"Enabled": true,
"Description": "Quotes feed volatility control"
},
{
"SuspiciousInterval": 5,
"SuspiciousCount": 100,
"BlockInterval": 10,
"BlockCount": 200,
"ExcludedAccounts": [
],
"Id": "29d3adeb-c3c4-4cc4-a307-42e0648a80cd",
"Name": "TriggerTooFrequestRequestsSettings",
"Node": "Node2",
"Platform": "Mt4",
"TriggerType": "TriggerTooFrequestRequests",
"Enabled": true,
"Description": "Too frequest requests control"
}
],
"ResponseNode": "ResponseNodeTriggersSettings"
},
{
"Node": "Node1",
"Platform": "Mt4",
"Result": [
{
"SymbolsGroup": "Forex",
"Threshold": 100.0,
"SwitchToCloseOnlyMode": false,
"AutoWideningSpread": false,
"CorellationPercent": 100.0,
"ExcludedSymbols": [
],
"Id": "c1c13c7d-5bb4-41e9-8ba9-c1b2db7361e4",
"Name": "TriggerVolatilityControlSettings",
"Node": "Node1",
"Platform": "Mt4",
"TriggerType": "TriggerVolatilityControl",
"Enabled": true,
"Description": "Quotes feed volatility control"
},
{
"SuspiciousInterval": 5,
"SuspiciousCount": 100,
"BlockInterval": 10,
"BlockCount": 200,
"ExcludedAccounts": [
],
"Id": "e77acf6e-cbac-4429-af7d-8943693ff0da",
"Name": "TriggerTooFrequestRequestsSettings",
"Node": "Node1",
"Platform": "Mt4",
"TriggerType": "TriggerTooFrequestRequests",
"Enabled": true,
"Description": "Too frequest requests control"
}
],
"ResponseNode": "ResponseNodeTriggersSettings"
}
],
"RequestId": "71a48546-655a-4f93-9ebf-080b17984864",
"ResponseMaster": "ResponseTriggersSettings"
}
Example2
{
"Result": [
{
"ResponseNode": "ResponseNodeTriggersSettings",
"Node": "Node1",
"Platform": "Mt5",
"Result": [
{
"SymbolsGroups": {
"Included": [],
"Excluded": [
{
"Item": "Bonds CFD"
},
{
"Item": "Forex"
}
],
"Unavailable": [
{
"Item": "Standard Market",
"RuleName": "Untitled",
"RuleKey": "70f7e1f9-198b-45d7-8e73-dee421b97242"
}
]
},
"Symbols": {
"Included": [],
"Excluded": [
{
"Item": "TBOND30"
"Group": "Bonds CFD"
},
{
"Item": "AEDGBP"
"Group": "Forex"
}
],
"Unavailable": []
},
"UseSpreadFilter": false,
"DefaultSpread": {
"Spread": 0,
"SpreadBalance": 0,
"SpreadMin": 0,
"SpreadMax": 0
},
"WeekDays": [],
"Id": "a6318a9b-bffc-46d6-afcf-feeeae4985ae",
"RuleName": "Untitled",
"RuleKey": "a6318a9b-bffc-46d6-afcf-feeeae4985ae",
"Name": "TriggerSpreadsByPeriodsRuleSettings",
"Node": "MT5dev",
"Platform": "Mt5",
"TriggerType": "TriggerSpreadsByPeriods",
"AlertType": "Alert",
"Enabled": false,
"Description": "Set spreads by periods"
},
{
"SymbolsGroups": {
"Included": [
{
"Item": "Standard Market"
}
],
"Excluded": [
],
"Unavailable": []
},
"Symbols": {
"Included": [
{
"Item": "PII.US"
}
],
"Excluded": [
{
"Item": "EURUSDd"
}
],
"Unavailable": []
},
"UseSpreadFilter": false,
"DefaultSpread": {
"Spread": 0,
"SpreadBalance": 0,
"SpreadMin": 0,
"SpreadMax": 0
},
"WeekDays": [
{
"DayOfWeek": 0,
"Sessions": []
},
{
"DayOfWeek": 1,
"Sessions": []
},
{
"DayOfWeek": 2,
"Sessions": []
},
{
"DayOfWeek": 3,
"Sessions": []
},
{
"DayOfWeek": 4,
"Sessions": []
},
{
"DayOfWeek": 5,
"Sessions": []
},
{
"DayOfWeek": 6,
"Sessions": []
}
],
"Id": "70f7e1f9-198b-45d7-8e73-dee421b97242",
"RuleName": "Untitled",
"RuleKey": "70f7e1f9-198b-45d7-8e73-dee421b97242",
"Name": "TriggerSpreadsByPeriodsRuleSettings",
"Node": "Node1",
"Platform": "Mt5",
"TriggerType": "TriggerSpreadsByPeriods",
"AlertType": "Alert",
"Enabled": false,
"Description": "Set spreads by periods"
}
]
}
],
"RequestId": "1a6d0e6a-acec-45ab-a5c2-484994acbe87",
"Errors": [],
"ResponseMaster": "ResponseTriggersSettings"
}