FundamentalQuotesProvider Class (Component)

The FundamentalQuotesProvider allows access to updated information from the fundamentals data on Tradestation Servers for a specified list of quote fields for an equity symbol. The Updated event is called whenever a change occurs in the reference data.

Typically, you will use the Toolbox to add a component to your EasyLanguage document.  Click and drag the name FundamentalQuotesProvider 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 to “FundamentalQuotesP”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 FundamentalQuotesProvider.

To reference a property value for a fundamental quotes provider object in EasyLanguage code, use FundamentalQuotesP1 followed by a 'dot operator', and the property name. Available fundamental 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=FundamentalQuotesP1.Quote["F_COMPTYPE"].StringValue[0];   // gets the Company Type of a specific account number.  

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).

  Name Type Description
Public property Count int Gets the number of available Quotes in the provider.
Public property Data object Gets the data related to the quotes.
Public property Fields list Sets and gets the list of fundamental fields to reference.  See FundamentalFields for a list of possible values.
Public property Quote[index] object Gets the FundamentalQuote object based on the specified index.
Public property Quote[name] object Gets the FundamentalQuote object with the specified name.
Public property Symbol string Gets the associated quotes symbol.
Methods
  Name Description
Public property Contains(QuoteFieldName) True if the quote with the specified field name exists in the provider.
Public property Contains(QuoteObj) True if the specified fundamental quote object exists in the provider.
Public property Create() Initializes a new instance of the class.
Public property HasQuoteData(int) True if the quote with the specified index has a value.
Public property HasQuoteData(name) True if the quote with the specified name has a value.
Events
  Name Description
 Public event Updated Occurs whenever a Quote object is updated. See FundmentalQuoteUpdatedEventArgs for the properties returned by the handler's args parameter.

 

Example

The following RadarScreen example uses a FundamentalQuotesProvider to access specified fundamental field values for the each symbol row.

Import Example

FundamentalQuotesProvider indicator example for RadarScreen

  1. Click on the Import Example link to import the example into TradeStation.   
  2. Go to the TradeStation platform and create a RadarScreen window.  Use the Insert - Indicator menu sequence and Add !ex_FundQProvider to the RadarScreen window at the selected column location.
  3. To review or modify the example code, go to the TS Development Environment and open indicator!ex_FundQProvider in the EasyLanguage Editor.