Skip to main content

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:

NameDescription
RequestIdUnique request ID
SearchSearch field
SymbolsGroupsFilter for groups of symbols. If the list is empty, then all available ones are returned.
PageSizePage size
NodesList of nodes that participate in request. If the list is empty, all available nodes are requested.
RequestNameType 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"
}