EasyLanguage Object Reference
The SymbolAttributesProvider is used to access symbol information such as point value, minimum move, price scale, and session information. Note that the symbol need not appear in Charting or RadarScreen to access these fields.
Typically, you will use the Toolbox to add a component to your EasyLanguage document. Click and drag the name SymbolAttributesProvider into your document from the Toolbox. The name of the provider appears in the component tray at the bottom of your document followed by a number to identify multiple instances of the component. You may also manually instantiate an instance of the class to access information for a specific symbol.
Open the Properties editor and locate the Symbol property. This is a required field. Set the Symbol name (eg. "CSCO" or symbol for the current symbol) and optionally assign a handler method to the Updated event. To reference a property value for a the provider object in EasyLanguage code, use SymbolAttributesP1 followed by a 'dot operator', and the property name. Available provider properties, including inherited properties, will appear in the Autocomplete list.
The following statement shows the type of security and exchange for the symbol in the print log.
Print(SymbolAttributesP1.SymbolType.tostring()); Print(SymbolAttributesP1.Exchange);
For general information about providers, refer to Provider Classes.
Namespace: tsdata.marketdata