MarketDepthProvider Class (Component)
The MarketDepthProvider allows access to updated market depth data for a specified list of quote fields for a symbol. The Updated event is called whenever a change occurs in the market depth data.
Typically, you will use the Toolbox to add a component to your EasyLanguage document. Click and drag the name MarketDepthProvider into your document from the Toolbox. The name of the provider appears in the component tray at the bottom of your document. By default, the name is truncated and followed by a number to identify multiple instances of the component.
Open the Properties editor and locate the Symbol property. This is a required field and needs to be set to the desired symbol.
To reference a property value for a market depth provider object in EasyLanguage code, use MarketDepthProvde1 followed by a 'dot operator', and the property name. Available market depth provider properties, including inherited properties, will appear in the Autocomplete list. For example, use the “Asks” property, followed by a 'dot operator' and the "Quotes" property. Finally, add a 'dot operator' and select the information property you are requesting.
Value1=MarketDeptProvide1.Asks.Quote.Depth // gets the market Depth for a specific symbol.
For general information about providers, refer to Provider Classes.
Namespace: tsdata.marketdata