QuotesProvider Class (Component)
The QuotesProvider allows access to updated information from the quotes data stream for a specified list of quote fields for a symbol. The Updated event is called whenever a change occurs in the quotes data.
Typically, you will use the Toolbox to add a component to your EasyLanguage document. Click and drag the name QuotesProvider 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 followed by a number to identify multiple instances of the component.
Open the Properties editor and locate the Symbol and Fields properties under "Filters". Both are required fields. A comma delimited list of fields (eg. "AskSize, DailyLimit"), specifies the values that will be available from the QuotesProvider.
To reference a property value for a quotes provider object in EasyLanguage code, use QuotesProvider1 followed by a 'dot operator', and the property name. Available quotes provider properties, including inherited properties, will appear in the Autocomplete list. To get data for one of the field names entered in the Properties editor, use the “Quote” property, followed by the field name within square brackets and double quotes[“field name”]. Add a second ‘dot operator’ and the type of the value to be returned.
Value1=QuotesProvider1.Quote["ask"].DoubleValue; // gets the Ask price for a specific symbol. Type MUST be known before using this.
For general information about providers, refer to Provider Classes.
Namespace: tsdata.marketdata
Properties
Additional
properties, methods, and events are described in the classes listed
under Inheritance Hierarchy (see below).