Class: QuoteDriver

QuoteDriver

Quote driver instance, as created by configuration. The quote driver is a mechanism for fetching quotes from one or more quote feeds. If a quote driver is not used, data is expected to be loaded statically when chart is initialized.

Since:
  • 9.4.0

Type Definitions


Attribution

Attribution object.

Type:
  • object
Properties:
Name Type Argument Description
symbol string <optional>

Symbol associated with the attribution.

source string <optional>

Source of the quote.

exchange string <optional>

Exchange of the symbol.

Since:
  • 9.4.0


AttributionCallback( [attributions])

Function that processes attributions returned from the quotefeeds. Usually this entails making the attributions visible to the end user. In examples/config.js there is a function already provided that takes the attributions returned and displays them on DOM elements on the chart. It can be modified to suit your preferences, but generally, providing attribution is a regulatory requirement.

Parameters:
Name Type Argument Description
attributions Record.<string, Attribution> <optional>

Attribution name and value pairs.

Since:
  • 9.4.0


QuoteDriverConfig

Configuration for the quote driver.

Type:
Properties:
Name Type Argument Description
feeds Array.<QuoteFeedConfig> <optional>

Array of quotefeed configurations.

attributionCallback AttributionCallback <optional>

Function that processes attributions returned from the quotefeeds.

Since:
  • 9.4.0