2.1Framework collections

All the collections in the framework are Dictionary objects, though some of them modify or extend the standard dictionary functions and behaviour.

You can listen for changes to prices or in the order list using an OnMessage() handler. You need to make explicit requests for prices which you are interested in. Prices in the Instruments list do not automatically update.

Collection

Description

Instruments

List of all available markets for the current trading account.

Orders

List of all open trades and pending orders (potentially multiple open trades for each market unless the account is netting/non-hedging)

Positions

List of open trades aggregated into a single long/short position for each market

TradeHistory

List of historic trades and credit movements on the account. This collection is empty by default and must be explicitly requested using Framework.RequestAccountHistory(). Note: if you want to delay further execution until the history is available, use the optional callback to Framework.RequestAccountHistory() or watch for messages of type ACCOUNT_HISTORY.