Aller au contenu
EN English versionDemander une démo

Combine several market data sources

For a project owner. Procedure connector.marketdata.composite, version 3, reviewed 2026-10-26 against the vendor’s own pages. It applies to the connector type marketdata/composite.

It ships with the plugin investment-research 0.1.5: its source. In the console, once the plugin is installed, it opens with How to set this up on the connector of the plugin’s server, and on Library › Plugins.

Addresses are written <api_url>, <public_url> and <org> here: the console shows the same text with your deployment’s own.

  • Decide which sources to combine: stooq, yahoo, alphavantage and tiingo. Each has its own limits and terms: see their procedures. The composite tries them in order and falls back to the next when one fails.
  • With cross_check on, the closes of two sources are compared and a difference above tolerance (2 % by default) is reported, which catches a broken or unadjusted source.

Only what each source needs: nothing for Stooq and Yahoo, an API key for Alpha Vantage.

They read public market data. Nothing is written.

Connectors, Market data, type composite. sources: for example ["stooq", "alphavantage"]. source_configs: a sub-configuration per provider, for example {"stooq": {"suffix_map": {}}}. cross_check and tolerance. Keys in their password fields: stooq_api_key, alphavantage_api_key, tiingo_api_key. To cross-check a range of years, put a full-history source second: ["yahoo", "tiingo"].

Press Test, then call get_bars and compare with a source you trust.

  • A disagreement reported between sources: one is unadjusted (Alpha Vantage free), or a corporate action happened; check the dates before trusting either.
  • Everything falls back to the last source: the first ones fail; see their procedures.
  • A rate limit: the free tiers are small; order the sources so the limited one is last.
  • cross_check stays empty with a free Alpha Vantage key and a range of years: the key refuses the full series. Set source_configs: {"alphavantage": {"outputsize": "compact"}}: it then checks the last 100 trading days, and common_days says how many were compared. A source in compact never gives the bars.
Field What to put in it
alphavantage_api_key Alpha Vantage’s key, typed once
cross_check true to compare the closes of two sources
source_configs the configuration of each provider, by name
sources the providers, in the order they are tried: stooq, yahoo, alphavantage, tiingo
stooq_api_key Stooq’s key, if any, typed once
tiingo_api_key Tiingo’s token, typed once
tolerance the largest relative difference of two closes before they disagree, 0.02 by default

Hosts the platform must be allowed to reach:

  • the hosts of the sources it combines