Market data is obtained via the MarketData property of the Host.
The
MarketData object consists of the following properties and methods:
- MarketPicker - Displays a dialog to the user allowing them to select an individual Market
- MarketPickerMulti - Displays a dialog to the user allowing them to select one or more Markets
- ContractPicker - Displays a dialog to the user allowing them to select a Contract
- Exchanges - Contains a list of all the Exchanges that the user can access. Each Exchange has a list of Contracts that belong to it, and each Contract has a list of Markets.
- Markets - Contains a list of all the Markets that are currently loaded in the API instance
- CreateMarketFilter - Allows you to request a list of Markets for a specific Exchange, Contract, optionally ExpiryDate and StrategyType
There are also objects available that can help with getting Exchanges, Contracts and Markets:
- ExchangeLoader - Give it the ExchangeID and it will fire an event when it is loaded.
- ContractLoader - Give it the ExchangeID and ContractID and it will fire an event when it is loaded.
- MarketLoader - Give it the ExchangeID, ContractID and MarketID and it will fire an event when it is loaded.