Combine several market data sources
- graal Agentic Platform
- Version 0.29 (archived)
- Open source · Apache 2.0
- Source : graalsystems/tranibor-agents@852ae4d
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.4: 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.
Before you start
Section titled “Before you start”- Decide which sources to combine:
stooq,yahoo,alphavantageandtiingo. 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_checkon, the closes of two sources are compared and a difference abovetolerance(2 % by default) is reported, which catches a broken or unadjusted source.
At the vendors
Section titled “At the vendors”Only what each source needs: nothing for Stooq and Yahoo, an API key for Alpha Vantage.
Permissions
Section titled “Permissions”They read public market data. Nothing is written.
In Tranibor
Section titled “In Tranibor”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"].
Test it
Section titled “Test it”Press Test, then call get_bars and compare with a source you trust.
When it fails
Section titled “When it fails”- 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_checkstays empty with a free Alpha Vantage key and a range of years: the key refuses the full series. Setsource_configs: {"alphavantage": {"outputsize": "compact"}}: it then checks the last 100 trading days, andcommon_dayssays how many were compared. A source incompactnever gives the bars.
Fields
Section titled “Fields”| 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 |
Network egress
Section titled “Network egress”Hosts the platform must be allowed to reach:
the hosts of the sources it combines