- Since:
-
9.4.0
Type Definitions
-
EngineFunction(symbol, suggestedStartDate, suggestedEndDate, QuoteFeedParams)
-
Function that needs to be implemented by the developer using this library in order to fetch quotes from a remote source. The developer also needs to make sure that results comply with QuoteFeedDataRecord structure. Not all parameters are used in all cases.
Parameters:
Name Type Description symbolstring Security symbol of request.
suggestedStartDateDate Sometimes called
startDate, first date for which to fetch quotes.suggestedEndDateDate Sometimes called
endDate, last date for which to fetch quotes. This argument is omitted for thefetchUpdateDatafunction.QuoteFeedParamsparams Parameters providing context to fetch.
- Since:
-
9.4.0
Returns:
Object containing results from quote engine.
- Type
- QuoteFeedDataRecord
-
FilterFunction( [params])
-
Function that determines whether this quotefeed applies, given general quote feed parameters. When multiple quote feeds supply this function, the list of quotefeeds in the quote driver configuration is iterated, and the first one to match the criteria in the QuoteFeedParams is selected as the quote feed to use for the request.
Parameters:
Name Type Argument Description paramsQuoteFeedParams <optional>
General quote feed parameters.
- Since:
-
9.4.0
Returns:
True if quotefeed is to be used for this request.
- Type
- boolean
-
PriceRecord
-
Defines an object representing the price quote at a specific time.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description DTDate <optional>
Date of record as JS Date.
Datestring <optional>
Date of record as an ISO string.
Closenumber <optional>
Closing price.
Opennumber <optional>
Open price.
Highnumber <optional>
High price.
Lownumber <optional>
Low price.
Volumenumber <optional>
Volume.
Adj_Closenumber <optional>
Adjusted Close (factoring in corp actions).
Lastnumber <optional>
Last price. Would be used in lieu of Close.
Valuenumber <optional>
Value of security. Would be used in lieu of Close or Last.
-
QuoteEngine
-
Quote feed engine. These are the three functions that need to be implemented by the developer using this library in order to fetch quotes from a remote source.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description fetchInitialDataEngineFunction <optional>
Function that fetches initial data.
fetchUpdateDataEngineFunction <optional>
Function that fetches data updates.
fetchPaginationDataEngineFunction <optional>
Function that fetches subsequent data after an initial load.
-
QuoteFeedBehavior
-
Configuration related to an individual quote feed.
Type:
- 1: initial request
- 2: update request
- 3: pagination request
- 4: request for series data
- Since:
-
9.4.0
Properties:
Name Type Argument Description updateModenumber <optional>
Indicates whether update is being performed as a result of an initial request or a pagination request.
-
QuoteFeedConfig
-
Configuration for the quote feed.
Type:
- Since:
-
9.4.0
Properties:
Name Type Argument Description exportstring Name of the exported class.
filterFilterFunction <optional>
Function that determines whether this quotefeed applies, given general quote feed parameters.
behaviorQuoteFeedConfigBehavior Parameters relating to the quote feed.
engineQuoteEngine <optional>
The implementation of the remote fetch functions.
-
QuoteFeedConfigBehavior
-
Configuration related to an individual quote feed.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description bufferSizenumber <optional>
Number of quotes to fetch before and after requested start and end time.
maximumTicksnumber <optional>
Maximum number of ticks that can be fetched in one request.
refreshIntervalnumber <optional>
Number of milliseconds to wait between polling for updates, set to 0 to disable polling.
-
QuoteFeedDataRecord
-
Definition of result object returned by a QuoteEngine for any request type.
Type:
- object
- Since:
-
9.4.0
Properties:
Name Type Argument Description attributionAttribution <optional>
Attribution for quote.
moreAvailableboolean <optional>
Indicates more data available in the past.
upToDateboolean <optional>
Indicates no more data available up to the current time.
quotesArray.<(PriceRecord|EventRecord)> <optional>
Array of quote results.
errorstring <optional>
Error message.
-
QuoteFeedParams
-
Quote feed parameters. These are used to provide context for the fetch of data.
Type:
- object
- 1: initial request
- 2: update request
- 3: pagination request
- 4: request for series data
- Since:
-
9.4.0
Properties:
Name Type Argument Description qcCompactChart <optional>
CompactChart instance.
symbolObjectobject <optional>
Object containing symbol.
symbolstring <optional>
Symbol as a string.
intervalTimeUnit | number <optional>
Interval of quote requested.
periodnumber <optional>
Period of quote. This is used to roll up the data returned into a periodicity the end-user would like to see.
ticksnumber <optional>
Number of ticks to fetch.
extendedboolean <optional>
Indicates whether extended hours quotes is requested.
quoteDriverIDstring <optional>
Unique quote driver id.
startDateDate <optional>
Requested start date.
endDateDate <optional>
Requested end date.
futureboolean <optional>
Whether to fetch records that occur in the future.
seriesboolean <optional>
Whether request is for a series or the main symbol.
feedQuoteFeed <optional>
Quote feed being used for this request.
maximumTicksnumber <optional>
The most number of ticks to fetch from the data source.
forceLoadMoreboolean <optional>
If true, attempts to load more data even if no more data seems to be indicated.
fetchMaximumBarsboolean <optional>
Whether to fetch the most bars a quote engine can handle.
eventParamsEventParameters <optional>
Parameters used to construct events from the results.
behaviorQuoteFeedBehavior <optional>
Behavior from the quote feed.
modenumber <optional>
Type of fetch to be performed by the quote engine.
initializeChartboolean <optional>
Whether to initialize chart after fetch complete.
