2.4Framework.Instruments collection

The framework provides a list of all the markets available on the current trading account. The Framework.Instruments collection is a Dictionary of FXB.Instrument objects keyed by their instrumentId values. For example, you can get a specific market using Instruments.get() or iterate through all markets using Instruments.forEach().

But note that, like all Dictionary iterators in the framework, the callback from forEach() receives the key first, then the object:

Framework.Instruments.forEach(function (key, instr) { console.log(key, instr.caption); });

This differs from the native Javascript Array.prototype.forEach, where the callback receives the item first.