RequestTradingContracts
Request for information on traded contracts with division by nodes. Contracts are heirs of the properties of traded symbols, that is, they are their surrogates.
Request format
{
"RequestId": "8338874f-25df-4aee-a6fb-808c700f2cb7",
"Search" : "eurusd",
"SymbolsGroups": [
"forex"
],
"PageSize": 100,
"PageNum": 1,
"Nodes": [
"node1",
"node2"
],
"RequestName": "RequestTradingContracts"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request ID |
| Search | Search field |
| SymbolsGroups | Filter for groups of symbols. If the list is empty, then all available ones are returned. |
| PageSize | Page size |
| Nodes | List of nodes that participate in request. If the list is empty, all available nodes are requested. |
| RequestName | Type of request |
Response
{
"Result": {
"Page": [{
"Source": "AUDCADb",
"Node": "MT5dev",
"Platform": "Mt5",
"Symbol": "AUDCADc",
"Description": "Australian Dollar vs Canadian Dollar",
"Group": "Forex Fixed",
"GroupDescription": "",
"Trade": "TradeEnabled",
"ExeMode": "Market",
"ProfitMode": "Forex",
"MarginCurrency": "AUD",
"Contracts": []
}, {
"Source": "AUDCADb",
"Node": "MT5dev",
"Platform": "Mt5",
"Symbol": "AUDCADf",
"Description": "Australian Dollar vs Canadian Dollar",
"Group": "Forex Fixed New",
"GroupDescription": "",
"Trade": "TradeEnabled",
"ExeMode": "Market",
"ProfitMode": "Forex",
"MarginCurrency": "AUD",
"Contracts": []
}],
"PageSize": 2,
"PageNum": 1,
"TotalRecords": 201
},
"RequestId": "8338874f-25df-4aee-a6fb-808c700f2cb7",
"Errors": [],
"ResponseMaster": "ResponseTradingContracts"
}