marketdata-mcp
Tapebasis MCP lets you query market data from multiple independent providers in parallel and receive cross-checked, provenance-labelled results.
Get quotes, fundamentals and snapshots for stocks, ETFs, indices, FX, crypto and commodities across TradingView, Finviz, Yahoo Finance, StockAnalysis, Investing.com and Bloomberg.
Batch prices and run screeners with per-row provider coverage, freshness, resolution details and per-field provenance.
Compare major indices, options chains, earnings dates/history, pre/post/overnight prices, technical indicators and backtests.
Merge and deduplicate stock news across Finviz, Yahoo and TradingView/Marketaux, with per-story provider consensus.
Score market sentiment without an API key, optionally using Marketaux, and run combined technical + news + price analysis.
Use Finviz-only tools for SEC filings, insider/institutional ownership, peers, why-moving explainers, chart PNGs, dilution risk and screener filters.
Use TradingView-only tools for crypto/futures movers and scans, global market snapshots, Bitcoin pulse, EGX overview and strategy comparison.
Use Bloomberg-only tools for delayed quote pages and index/government-yield/commodity/FX boards.
Use Investing.com-only quotes for exact verified equity/ETF identities and provider-specific analyst/technical extras.
Access Equibles datasets for fundamentals, analyst estimates, ownership flows, short positioning, options analytics, price history and grouped REST data with a Bearer key.
Monitor upstream API/schema drift and inspect rate-limit state through health tools, plus list every tool's providers with the tool map.
Interpret coverage clearly with labels such as ALL, PARTIAL, single-source provider labels and NONE, plus comparison verdicts for agreement, disagreement or not-comparable readings.
Pulls market data from TradingView's scanner/undocumented upstream APIs, providing crypto top movers, Bollinger band and volume breakout scans, multi-timeframe and multi-agent crypto analysis, futures market overviews and watchlists, backtests and backtest comparisons, market snapshots, sentiment and Bitcoin market pulse data. TradingView figures are cross-checked against Finviz where datasets overlap and are labelled single-source when not verified.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@marketdata-mcp get the current quote for AAPL and flag any provider disagreements"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Multiple tapes, one basis. An MCP server that serves TradingView, Finviz, Yahoo
Finance, StockAnalysis, Investing.com and Bloomberg market data together, cross-checks every overlapping
figure, and labels each response with the provider that actually produced it. Separate authenticated
Equibles tools add fundamentals, ownership and licensed positioning. Beyond those dedicated tools,
two opt-in adapters run in stock_earnings and stock_ownership: an EPS estimate compares only when
all reporting context matches, and short positions compare only on the same FINRA settlement date.
Without TAPEBASIS_EQUIBLES_API_KEY, those adapters make no request and add no scope or coverage
change. Equibles never joins general live-price arbitration or substitutes its historical prices,
different-period estimates, other filing populations or option summaries for another observation.
Basis is the finance term for the price difference between two markets quoting the same asset. Tape is the ticker tape. Tapebasis is the spread between multiple feeds, measured on every call: zero when they agree, reported when they don't.
The point is redundancy you can see. Every provider that could answer a field is asked, natively
in parallel. When several answer, the data is cross-checked. When only one answers, you get the data,
clearly marked as single-source. When none answers, you get NONE instead of a
plausible-looking number. And because every market-comparison provider scrapes or calls an
undocumented upstream, a background monitor probes every endpoint and reports API/schema drift inside
ordinary tool responses. Equibles is the documented exception: its own versioned, Bearer-authenticated
REST API, its own datasets and an explicit API access contract.
Each provider is fetched natively: TradingView's own scanner and chart websocket, Finviz's HTML and JSON islands, Yahoo's chart API, StockAnalysis's quote API, Investing.com's native search and verified quote pages, Bloomberg's quote pages. No leg proxies another: a provider that quietly forwards a competitor's numbers is worthless as a cross-check.
Bloomberg, Investing.com and StockAnalysis are additional legs, asked like the rest, in parallel, on the same
call. The properties that make each of them different from a plain live feed are reported rather
than hidden by a tolerance. Bloomberg's equity and index prints are exchange-delayed
(exchangeDelay is 15 Minutes), so a pair of prints further apart than the print-time guard allows
is reported as not comparable with the delay named, instead of being called a provider
disagreement; it also never wins the freshness tie-break against a live print. Its static fields are
penny-identical to Yahoo's, so agreement between those two is weak corroboration, not two independent
witnesses. What it adds is its own quote pages and the
government benchmark yield curve,
which no other provider here publishes. StockAnalysis covers US equities and ETFs only, and its
quote surface is the same consolidated tape Yahoo serves, so that pair is weak corroboration for the
same reason; indices, FX, crypto, commodities and foreign listings are reported as not carried
instead of requested. Investing.com adds native-search-verified equity and ETF pages only. Exact
instrument identity is mandatory; ambiguous or unsupported results and symbol, id, exchange,
currency, class or page-path mismatches are refused. Its lastClose is never previous_close,
regular and extended epoch-ms prints keep separate clocks, and its analyst and daily technical
extras remain explicitly single-source. market_cap is structurally not_comparable when multiple readings exist because providers can
use different share-count bases and dates; pe_ratio uses the ordinary comparison.
The data_provider contract
Every tool result carries exactly one of ten values. It states coverage, never agreement:
Value | Meaning |
| Every provider that was asked answered. Coverage is complete for this call. |
| More than one answered, but a provider that was asked produced nothing. The values are served; |
| Only TradingView answered. Served, but not corroborated. |
| Only Finviz answered. Served, but not corroborated. |
| Only Yahoo Finance answered. Served, but not corroborated. |
| Only StockAnalysis answered. Served, but not corroborated; US equities and ETFs only. |
| Only Investing.com answered. Served, but not corroborated; native verified equities and ETFs only. |
| Only Bloomberg answered. Served, but not corroborated; its quote can be delayed. |
| One or more named Equibles datasets answered. Single-source, never merged with another provider; |
| No provider could supply the primary value; a separately labelled |
ALL means "every provider asked answered", not "they agree". Agreement is a separate axis, and it
lives in comparisons[].match. A provider that was asked and failed makes the response PARTIAL,
never ALL: the label describes coverage, and a listed error is missing coverage.
providers_answered names exactly which providers contributed. The positive agreement notice appears
only after a real agreeing comparison. Invalid pairs keep their readings, match: null and a
not_comparable reason; a resolved symbol that returns no data is NO_DATA, not NOT_ATTEMPTED.
An Equibles response has no comparisons entries. Its data_provider stays EQUIBLES even when
some requested datasets failed, because each surviving block is still Equibles-only and must not be
read as multi-source corroboration. EQUIBLES never joins the market fan-out or the freshness
tie-break.
The same envelope also contains:
{
"data_provider": "ALL",
"verification": "MULTI_SOURCE", // MULTI_SOURCE | SINGLE_SOURCE | UNAVAILABLE
"providers_answered": ["TRADINGVIEW", "FINVIZ", "YAHOO", "SA", "INVESTING", "BLOOMBERG"],
"notice": "Every provider asked answered (TradingView, Finviz, Yahoo Finance, StockAnalysis, Investing.com and Bloomberg). ...", // names whichever answered
"data": { ... }, // the reconciled payload, one value per field
"fields": { // per-field provenance, never a joint label
"price": { "source": "FINVIZ",
"supplied": ["TRADINGVIEW", "FINVIZ", "YAHOO", "SA", "INVESTING", "BLOOMBERG"],
"compared": ["TRADINGVIEW", "FINVIZ", "YAHOO", "SA", "INVESTING", "BLOOMBERG"],
"agreement": true },
"peers": { "source": "FINVIZ", "supplied": ["FINVIZ"], "compared": [], "agreement": null } },
"freshness": { // why `data` holds the value it does
"tradingview": "2026-11-04T00:59:53+00:00",
"finviz": "2026-11-04T10:42:00+00:00",
"yahoo": "2026-11-03T21:00:01+00:00",
"sa": "2026-11-03T21:00:01+00:00", // same consolidated tape as Yahoo
"investing": "2026-11-04T10:40:00+00:00", // verified regular/extended epoch-ms print
"bloomberg": "2026-11-04T10:27:00+00:00", // 15 min behind, so it cannot win
"chosen": "FINVIZ",
"decision": "newest", // newest | tie | no_timestamp
"newest_print": "2026-11-04T10:42:00+00:00",
"reason": "FINVIZ printed most recently (2026-11-04T10:42:00+00:00)"
},
"comparisons": [ // the actual side-by-side numbers
{ "field": "price",
"values": { "TRADINGVIEW": 331.9, "FINVIZ": 332.33, "YAHOO": 331.9, "SA": 331.9, "INVESTING": 332.32, "BLOOMBERG": 332.1 },
"match": true, "diff_pct": 0.1294, "tolerance_pct": 0.5,
"pairs": [ { "between": ["TRADINGVIEW", "FINVIZ"], "match": true, "diff_pct": 0.1294 }, ... ],
"chosen": "FINVIZ" }
],
"resolutions": { "TRADINGVIEW": { "symbol": "NASDAQ:AAPL", ... }, ... },
"sources": { "TRADINGVIEW": "scanner.tradingview.com", "FINVIZ": "...", "YAHOO": "...", "SA": "...", "INVESTING": "...", "BLOOMBERG": "..." },
"errors": [ { "provider": "FINVIZ", "code": "...", "message": "..." } ],
"warnings": [ "..." ],
"degraded": false, // true when the health monitor saw drift/downtime
"generated_at": "2026-11-04T10:43:02+00:00"
}One price, and it is the newest print. Every provider that can supply a field is asked. data
holds exactly one value per compared field: the reading whose market print is newest. Providers that
share the newest instant are the only tie-break candidates, and the documented default order
(FINVIZ, TRADINGVIEW, YAHOO, SA, INVESTING, BLOOMBERG) picks between them; Bloomberg is last
precisely because its print can be structurally older, and Investing.com sits after StockAnalysis and
before it in PROVIDER_ORDER and the freshness tie order. freshness.decision is the machine-readable
outcome (newest, tie, no_timestamp), so a caller never has to parse the sentence in reason.
Every original reading stays in comparisons.values.
Disagreements are never silently resolved. If the providers report different prices, all values
stay in comparisons, the field is named in notice and warnings, and data_provider stays ALL
(every asked provider did answer; they just disagree). The single value in data is the newest
print, and the notice says so.
A field measured against a session baseline is not compared across observations. A day-change
percentage or a session volume is derived from the previous close of the session the print belongs
to. Finviz in a pre-market session and Yahoo at the prior close will legitimately differ, so such a
pair is reported as not_comparable (with the reason in pairs[].not_comparable) instead of being
called a provider conflict. Four guards decide that: a 900 s print-time ceiling, equality of the
US/Eastern session date even when the prints are seconds apart, a declared feed delay as a boundary
of its own (Bloomberg states 15 minutes on equities, so its pairs stop being comparable at that
distance), and, for the fields re-derived from the print, an 8 h age ceiling against the clock so a
feed that froze with its peers cannot pass. Both readings still appear; the field is listed in
warnings as not cross-checked.
Some fields have no shared definition at all. Spot FX has no single official previous close, so
each provider derives its own daily roll and the day-change figures answer different questions. On
FX, change_percent is therefore always reported from every provider but never compared, with that
reason in the pair. Instrument-level, not provider-level: no tolerance can make it a conflict.
A price is a print, and it carries its session. The obvious price field goes stale as soon as the
regular session ends: TradingView's scanner close stops moving while its premarket_close keeps
streaming, Yahoo's regularMarketPrice freezes while fulldayPrice does not, StockAnalysis keeps
the current extended print in extended_hours, and Investing.com selects its regular or extended
print with that print's own epoch-ms timestamp. Each provider's live print is therefore resolved before
anything is compared, and stock_quote / stock_prices publish the session it belongs to
(pre_market, regular, post_market, overnight) with the day change and previous close measured
against that same session's baseline, recovered from the print's own change. Investing.com's displayed
lastClose is not treated as the regular previous close; an ETF uses only its separately published
keyStatistics.prevClose. The label follows the print
that was served rather than a nominated leg, so a delayed feed cannot name a session the served number
does not belong to. stock_extended_hours independently reads Blue Ocean overnight prints from
TradingView's BOATS: socket and Yahoo's quote header. overnight_source names the newest eligible
print, while overnight_readings, overnight_comparison and overnight_errors retain provenance and
failures. On the same overnight occurrence, the normalized change uses Yahoo's reference_close;
TradingView's venue-based change is retained separately as reported_change and
reported_change_percent. An absent or cross-occurrence reference leaves the normalized change null.
Last night's print survives after 04:00 ET with is_current: false, rather than being passed off as
the live pre-market price. stock_quote does not carry overnight itself; use stock_extended_hours.
Extended-hour freshness is pairwise: Yahoo's candle time is parseable UTC ISO, StockAnalysis supplies
price_timestamp, and TradingView's regular update_time is never attached to its separate extended
print. Investing.com's lastUpdateTime dates only the regular print; extended prints use their own
shown_date_time, never the regular timestamp. An undated print therefore leaves only its own pairs not_comparable; a dated Yahoo/StockAnalysis
pair can still agree. after_hours_readings retains each provider's price, session, timestamp, baseline
and derived change, so the number's definition is visible beside it.
Implementation: reconcile.py (fan-out + comparison),
freshness.py (print-time parsing),
sessions.py (which session a print belongs to, and which print is live),
providers_state.py (envelope + labels).
Related MCP server: Finance MCP Server
Symbols are resolved per provider
The same instrument is spelled differently by each upstream, and the differences are not mechanical:
Instrument | TradingView | Finviz | Yahoo Finance | StockAnalysis | Investing.com | Bloomberg |
Apple |
|
|
|
| native search identity + |
|
Gold (spot) |
| (not carried) | (not carried, | (not carried) | (unsupported class) |
|
S&P 500 |
| (indices feed only) |
| (not carried) | (unsupported class) |
|
NASDAQ-100 |
| (indices feed only) |
| (not carried) | (unsupported class) |
|
WTI (spot) |
| (not carried) | (not carried) | (not carried) | (unsupported class) | (no spot page; |
WTI (front future) |
| (not carried) |
| (not carried) | (unsupported class) |
|
EUR/USD |
| (not carried) |
| (not carried) | (unsupported class) |
|
Bitcoin |
| (not carried) |
| (not carried) | (unsupported class) |
|
Indices and commodities (gold, silver, WTI, Brent, copper, natural gas, spot and front-month
futures) live in one instrument registry in
symbols.py: one row per instrument, one column per provider, a
None cell stating the boundary that provider declares. Everything else resolves dynamically per
provider, is cached for an hour, and is recorded in resolutions (explicit, alias, search,
normalise, mechanical, none). Three rules keep it honest:
The registry is addressing, never scope. A filled cell says which ticker to ask that provider for; every provider with a filled cell is still asked in parallel. A
Nonecell is the provider's own declared boundary, reported asNOT_ATTEMPTED, not a decision to skip it.A ticker is only returned if the provider can actually quote and verify it. TradingView's symbol search offers
OANDA:BTCUSD, but its scanner has no row for it, resolution verifies against the scanner and picksBITSTAMP:BTCUSDinstead. This is also whyWTIresolves toFX:USOILand notNYSE:WTI(W&T Offshore, an equity whose ticker happens to match), and whyWTI=Fis aliased to the front-month future instead of falling into search, where it lands onXETR:WTIF, the WisdomTree Japan ETF. Investing accepts only an unambiguous native equity/ETF identity (or an exact exchange constraint), then requires its quote page to repeat the instrument id, symbol, exchange, currency, class and native page path. Search-row order, a guessed slug and a same-symbol foreign listing never decide identity.A missing instrument is not an outage.
NotApplicablebecomesNOT_ATTEMPTED, which is excluded fromerrors. "Finviz does not carry spot gold" is a structural fact, not a failure. Once a provider's symbol has resolved, an empty quote is instead a visibleNO_DATAerror.
XAUUSD, for example, resolves to OANDA:XAUUSD for TradingView, XAUUSD:CUR for Bloomberg, and
nothing for Yahoo, Finviz, StockAnalysis and Investing.com, so the response is ALL over the two that answered,
served and clearly labelled, not hidden.
Tools (56)
Multi-source, every capable provider asked, answers compared
Tool | Providers | Fields cross-checked |
| every provider that carries the instrument | price, change %, previous close, volume, session open/high/low, 52-w high/low, market cap status, P/E, RSI(14), average analyst target; each price carries its |
| every provider, per ticker (Investing verified equity/ETF identities; Bloomberg capped by batch) | price and change % per ticker (per-row |
| TradingView + Finviz | per-row price for the tickers both return |
| TradingView + Finviz indices feed + Yahoo | S&P 500, Dow, Nasdaq Composite, Russell 2000, VIX levels |
| Finviz + Yahoo (+ TV underlying) | volume per contract, matched by strike; OI when both report it |
| TradingView + Finviz + Yahoo | next release date; EPS history |
| TradingView + Finviz + Yahoo + StockAnalysis | after-hours / pre-market price; TradingView + Yahoo overnight price |
| TradingView + Finviz + Yahoo | price, RSI(14), ATR(14), volume |
| Finviz + Yahoo (+ TradingView/Marketaux) | latest 10 unique stories, per-story consensus (same_url / same_title / similar_title); duplicates_collapsed |
| TradingView + Yahoo | strategy metrics run twice on two independent OHLCV feeds |
| TradingView + Yahoo | same, plus whether both feeds pick the same winning strategy |
| TradingView + Yahoo | indices, major crypto, FX pairs, ETFs |
| TradingView + Finviz + Yahoo | underlying price; data.news merges latest 10 stories with per-story consensus |
A provider absent from a row is absent because it has no endpoint for that capability: StockAnalysis
carries no index, FX, crypto or foreign listing, and no provider but Finviz publishes a curated peer
list. Those legs are NOT_ATTEMPTED, not errors.
stock_quote compares the average analyst target only between TradingView and Finviz at 0.1 % tolerance.
Top-level analyst_targets retains separate TradingView one-year forecast and three-month rating
analyst counts, scanner target bounds and five rating buckets. Finviz distinct firms among its visible
rating actions stay separate from its visible-row rating distribution, which can differ from Finviz's
displayed distinct-firm summary and leaves unfamiliar labels unclassified. Source rating rows retain
their original transition strings alongside parsed before/after labels and targets. Each row's implied upside
is a decimal ratio based on the newest target and only the same SSR's lastClose; missing targets stay
null, and another provider's price is never borrowed. These populations are not combined, are not
contributors to a common denominator and do not form consensus. A forecast-page failure is an auxiliary
analyst_forecasts error and does not change primary quote coverage or remove scanner distributions.
The direct data payload repeats provider-specific target, rating-analyst, Buy/Hold/Sell,
visible-firm and action-row counts; each has its own source and population, null means unreported,
and zero remains a real count. tradingview_rating_summary exposes the three-month analyst-rating
total with all five buckets; finviz_rating_summary exposes the visible-row total with Buy, Hold,
Sell, No Rating and Unclassified counts, plus direct Finviz Buy/Hold/Sell fields. Its label_counts
also preserves exact values such as Overweight, In-line and Mkt Perform; unlabeled_row_count
retains blank labels. Neither summary needs institution or analyst names, and the providers are
never added into one recommendation total. Investing's forecast target and rating observations,
including its Buy/Hold/Sell buckets, stay in analyst_targets.INVESTING and investing_* fields. Investing does not enter the average target comparison or another provider's
count; its daily investing_technical_1d block is not technical_analysis.
combined_analysis.data mirrors the TradingView counts, name-free summary and complete five-bucket
distribution.
stock_prices exposes per-symbol misses and typed errors, so one failed ticker does not sink or
silently vanish from the batch. A returned row without a usable price is NO_DATA, not an answer.
agrees is null when neither compared field reached a verdict. The envelope's errors, coverage
and notice describe those same provider-symbol outcomes: a complete ALL row does not overwrite an
attempted miss elsewhere in the batch.
stock_screener forwards optional finviz_filters to narrow the TradingView-selected universe.
stock_earnings uses only TradingView or Yahoo for next_earnings_date, never Finviz's last
reported quarter. stock_extended_hours judges only the same pre/post session and requires dated
reads for agreement. Its overnight endpoint failures are appended to the envelope's errors rather
than replacing primary-provider errors. technical_analysis uses the resolved TradingView symbol
and venue rather than applying the default exchange to a bare ticker.
stock_news merges every news-capable feed, deduplicates across providers and
sorts newest-first. Each story names its providers, provider_count and
consensus (true when multiple providers carry the same event). Similarity
rules: same URL, same normalized headline, or at least four shared significant
words with Jaccard ≥ 0.55. Duplicates inside one provider are counted in
duplicates_collapsed and never upgrade to consensus; cross-provider agreement
is provider corroboration, not independent editorial verification. When fewer
than 10 unique stories exist, count is the real number, shortfall_reason
explains why, and the list is never padded with duplicates. TradingView's leg
needs MARKETAUX_API_TOKEN; without it that attempted leg reports NO_DATA
and the other feeds still supply their real headlines. StockAnalysis and Bloomberg have no symbol-news
adapter and do not contribute. Investing.com has no symbol-news adapter either. market_sentiment, combined_analysis and stock_why_moving embed
the same merged block under both data.news and top-level news without re-attributing the primary
leg's provenance. fields.news.source is null; its coverage and supplied describe only valid
news contributors. Unparsable times remain published_at: null and sort last. If the Finviz
editorial leg fails, data is null and independent news remains only in top-level news.
No general market tool requires an API key. market_sentiment prefers Marketaux when
MARKETAUX_API_TOKEN is set, and otherwise scores Finviz headlines locally (VADER with a financial
lexicon). That path is deterministic, offline and free. Because the headlines are Finviz's, that
path is labelled FINVIZ; see Sentiment. The separately named
Equibles tools require their own Bearer key. Their plan access is decided by the actual API
response, not by a local plan assertion.
Finviz-only, served, labelled FINVIZ, explicitly single-source
stock_filings · stock_ownership (insider + institutional + short interest) · stock_peers ·
stock_why_moving (with merged latest-10 news block under data.news, single-source
editorial headline and summary) · stock_chart (PNG) · stock_dilution · stock_screener_filters
stock_chart carries image_base64 and mime_type: "image/png" in its data object, so a remote MCP
client can decode the image without reading the server's filesystem. The best-effort path and
image_path are local to the server. One Finviz fetch supplies both forms; the local copy is optional,
and null with a warning if it cannot be written.
No other provider has an equivalent dataset, so those legs are marked NOT_ATTEMPTED (not an error)
and the notice states the data is not cross-checked.
TradingView-only, served, labelled TRADINGVIEW, explicitly single-source
crypto_top_movers · crypto_bollinger_scan · crypto_volume_breakout ·
crypto_multi_timeframe · crypto_multi_agent · futures_market_overview · futures_top_movers ·
futures_watchlist · bitcoin_market_pulse · egx_market_overview
market_sentiment is single-source too, but which source depends on the environment, see
Sentiment.
Investing-only, labelled INVESTING, single-source by construction
investing_quote
Signature: investing_quote(symbol, exchange="").
This tool asks Investing.com and nobody else. Success is data_provider: INVESTING,
verification: SINGLE_SOURCE and cross_checked: false; unlike the long-standing Bloomberg-only
contract, it does not add a reconciliation_leg field. The same provider is a full equity/ETF leg of
stock_quote and stock_prices.
The optional exact exchange constraint disambiguates multiple venues. Otherwise only one exact
primary listing is accepted. Native search supplies the instrument id and native page path; the page
must repeat that id, symbol, exchange, currency, supported equity/ETF class and path. Ambiguity,
unsupported classes and any identity mismatch are refused. No slug or same-symbol foreign listing is
guessed. A miss or provider failure returns NONE with a typed error and no fallback.
lastUpdateTime dates the regular print and each extended print carries its own epoch-ms clock.
lastClose is retained only as investing_last_close_value, with
investing_previous_close_excluded explaining why it is not previous_close; only a separately
published ETF prevClose has verified baseline meaning. investing_analyst and
investing_technical_1d stay provider-only extras with INVESTING field provenance. Their counts
are not summed with other analyst populations, and the technical verdict is not Tapebasis
technical_analysis. Use stock_quote for a corroborated price.
Investing.com as a reconciliation leg
stock_quote and stock_prices ask Investing in parallel with every other capable provider and keep
its readings in comparisons[].values. Only verified native equity and ETF pages participate. In batch calls every resolved Investing identity is read, with shared pacing across search and pages;
unlike Bloomberg it has no provider-specific batch cap. Unsupported classes and ambiguity are stated
resolution boundaries, while a mismatch is never converted into a plausible quote.
The ordinary shared fields include session range, 52-week range, volume and pe_ratio. market_cap
also has an Investing getter, but is structurally not_comparable when readings can be compared:
share-count bases and as-of dates can differ, so no conflict or agreement is asserted. The average
analyst target comparison remains TradingView/Finviz-only. Investing's own forecast and technical
blocks are single-source, regardless of which provider wins freshness.
Bloomberg-only tools, labelled BLOOMBERG, single-source by construction
bloomberg_quote · bloomberg_markets
These two tools ask Bloomberg and nobody else, so their responses are single-source: data_provider: BLOOMBERG, cross_checked: false, reconciliation_leg: false. The provider itself is a full leg of
stock_quote and stock_prices, where it is asked in parallel and its readings appear in
comparisons (see below). The distinction is the call, not the provider.
What these tools add is the government benchmark yield curve plus index, commodity and FX levels on
one board, which no other provider here publishes. bloomberg_markets says plainly that the board
carries no per-instrument print time, so nothing there is aged or ordered.
bloomberg_quote serves one page and discloses what that page is: exchange_delay /
is_exchange_delayed state the delay, and print_time comes from the last intraday point, never from
lastUpdate (2026-11-05T01:00:00.000Z on a page whose print was 2026-11-04T20:58:00Z, which would
make a stale page win a freshness comparison). When that point does not match the quoted price,
print_time is null and print_time_missing_reason says why.
Bloomberg as a reconciliation leg
In stock_quote and stock_prices Bloomberg is asked in parallel with every other provider,
contributes to ALL / providers_answered, and its reading sits in comparisons[].values. Three
facts keep that honest:
Delay is a comparability boundary, not a tolerance.
exchangeDelayreads15 Minuteson equities and indices, so a pair of prints a delay-length apart is reported asnot_comparablewith the delay named, never as a disagreement. Below that boundary (a closed market, where every feed shows the same closing print) it is compared normally, and there the cross-check is real.It never wins a tie. The freshness tie-break lists Bloomberg last, so a delayed page can never outrank a live feed that printed at the same instant.
Agreement with Yahoo is weak. Its previous close, 52-week range and closing price are penny-identical to Yahoo's, so those two agreeing is one consolidated close read twice. Its ratios (
pe_ratio,eps) are computed independently and do carry a little cross-check value.
stock_prices asks Bloomberg about at most four tickers per call (TAPEBASIS_BLOOMBERG_BATCH_MAX),
because its page path is paced at 10 s per request; the rest are named in warnings instead of
quietly missing. The leg also has a total budget (TAPEBASIS_BLOOMBERG_BATCH_BUDGET): once it is
spent the remaining tickers are named in warnings rather than waited out, so four tickers no longer
hold a batch open for four pacing intervals. stock_quote bounds the leg with
TAPEBASIS_BLOOMBERG_QUOTE_DEADLINE, so a slow or blocked page becomes a stated TIMEOUT /
UPSTREAM_BLOCKED error while the other readings still go out.
StockAnalysis as a reconciliation leg
StockAnalysis is asked in parallel with every other provider on stock_quote, stock_prices and
stock_extended_hours, contributes to ALL / providers_answered, and its reading sits in
comparisons[].values. Three facts keep that honest:
It is a US feed. The quote API serves US-listed equities and ETFs and answers
404for indices, FX, crypto, commodities and foreign listings, so anything else is resolved as not carried and recorded asNOT_ATTEMPTEDrather than sent to a route that cannot exist. There is no search endpoint either, so the slug is a mechanical rule: lowercase the US ticker and spell a share class with a dot (BRK-Bbecomesbrk.b).Its quote surface is the tape Yahoo already serves. Price, previous close, session range and the 52-week range are penny-identical to Yahoo's in measurement, so those two agreeing is one consolidated tape read twice. Treat it as corroboration of coverage, not as a second witness.
tsis epoch milliseconds. It is converted to ISO in the access layer; passing it through would date every print to a century no market trades in and let it win every freshness comparison.
It adds the extended-hours block on the same request (served whole as
stockanalysis_extended_hours) and the session open/high/low that Finviz does not publish. It is
asked about every ticker in a stock_prices batch: its pacing absorbs a short list, so it needs no
cap like Bloomberg's.
Equibles-only, official authenticated REST, labelled EQUIBLES
These tools read the documented https://api.equibles.com/v1 API. There is no Equibles web scraping,
proxy through another provider or general price reconciliation. Rows stay in their original units and
filing scope inside named datasets.
Tool | Datasets | Plan access |
| Company/listing profile, one income, balance or cashflow statement, optional annual revenue breakdown, debt profile and guidance versus actuals | Actual API response |
| Verified analyst observations and snapshots with exact source metric, period, dimensions, unit, basis, statistic and publication fields | Actual API response |
| 13F ownership and activity, N-PORT fund owners, Form 144 proposed sales and optional Form 4 insider transactions | Actual API response |
| FINRA short interest and facility volume, optional SEC fails-to-deliver and weekly off-exchange volume | Actual API response; no local paid-plan gate |
| Option summary and term structure, including open interest, put/call ratios, max pain, implied volatility and expected move | Equibles Plus or Pro, confirmed by the actual response |
| Stored daily, weekly or monthly OHLCV with split adjustment and provider-adjusted close | Actual API response; stored history, never a live-price leg |
Fourteen additional family tools expose the selected official JSON GET routes through an exact
dataset name and a filters object. There is no free-form URL parameter. tapebasis_tool_map
returns the local frozen dataset map, including every documented path/query filter, its type,
required flag and stated bounds. The complete map is in Equibles datasets.
Each dataset makes exactly one GET, with no automatic pagination or
provider fallback. Free, Plus and Pro access follows the account's real response.
Family tool | Covered REST data |
| Profiles, financial reports, estimates, debt, valuation and company disclosures |
| Filing directories, document passages, lines and full-text search |
| Earnings calls, live transcripts, IR materials, events and IPOs |
| Insider, institutional, beneficial-owner and supply-chain disclosures |
| 13F filers, reported portfolios, consensus holdings and market activity |
| FINRA short positions and volume, FTD, off-exchange data and provider scores |
| Raw option chains and contracts, expirations, sessions and source calculations; Plus or Pro |
| Quotes, stored OHLCV, intraday bars, technical indicators and corporate actions |
| Fund and ETF directories, holdings, profiles and annual operations |
| FRED, Canadian observations, releases and CFTC positioning |
| Listings, indexes, advisers, screeners, calendars and market observations |
| Congressional disclosures and government contract awards |
| International filings, ownership and native-report disclosures |
| Crypto directory, quotes, price history and intraday bars |
For example, equibles_options(dataset="chain", filters={"ticker": "NVDA", "expiration": "2026-12-18"}) returns the raw option chain under data.chain. The expiration filter
is optional and must use ISO YYYY-MM-DD. Use equibles_company(dataset="financial_statement", filters={"ticker": "NVDA", "statement": "income"}) for one raw statement.
Configuration and access:
TAPEBASIS_EQUIBLES_API_KEYis the only local Equibles credential setting. There is no local paid-plan or redistribution assertion variable.The key goes only in the
Authorization: Bearer ...header to the official origin. It never appears in a URL, response, error, provenance or diagnostic. Cache identity uses a short hash fingerprint, never the raw key.Without a key, every Equibles tool returns
NOT_CONFIGUREDbefore transport. A real401returnsNOT_CONFIGUREDwithaccess.status: auth_rejected. A real403returnsPLAN_REQUIRED; it never becomes empty or substituted data. If some datasets in an existing multi-block tool succeed,access.statusispartially_availableandplan_required_datasetsnames the denied blocks.The account's documented Free, Plus or Pro plan must permit its request. Normal Bearer keys are not intrinsically limited to Free. An opt-in check on 2026-11-18 succeeded for a company profile, while the account returned
PLAN_REQUIREDfor an options chain. No successful paid options response or publication right is thereby established. Hermetic tests do not verify a real account; the operator remains responsible for permitted use and redistribution.Redirects, undocumented paths, unknown filters, credential query parameters and CSV/binary output are refused. Live transcripts bypass the cache. General live-price tools do not call Equibles.
Every response, including missing-key, plan-denied, quota and upstream errors, carries exact
Data by Equibles attribution, as_of, per-dataset freshness, reporting_delay and access.
Unavailable datasets retain null observation timestamps and their delay definitions, not timestamps
invented from the local response clock. Filing, settlement and fiscal dates remain distinct. An
option expiration is a future schedule, never as_of.
Provider ratings, short-squeeze scores, predictions and AI briefs remain source-labelled facts, not
Tapebasis analysis. Analyst estimates are not mixed with rating or price-target populations.
stock_options_analytics stays separate from the multi-provider stock_options_chain.
Account-owned portfolios, organizations, custom data and web-feed tracker routes are outside this surface. Institution-copy backtests and direct comparison of two institutions' portfolios remain MCP-only upstream and have no REST bridge here. Exported binary/CSV outputs are also excluded.
Requests use one attempt per selected dataset. A daily-quota 429 retains public X-RateLimit-*
and reset metadata, never retries, and blocks new Equibles requests until reset. See
Configuration for pacing and timeout settings.
Ops
tapebasis_health, run the probes now (refresh=True) or read the cached verdict. The Equibles probe checks local key and the last real response's public quota headers; it deliberately spends no upstream quota.tapebasis_tool_map, every tool with its providers and comparison strategy, without any upstream call.
Rate limits are handled per provider
Every market-comparison upstream is undocumented and rate-limited by its owner, so every request goes
through a per-provider limiter (ratelimit.py). The documented
Equibles API uses the same pacing mechanism but a different quota rule: no retry after its daily
allowance is exhausted.
Control | What it does |
| Hard floor between two requests to one provider, so a 30-ticker fan-out is not a 30-request burst |
| Bounds concurrent requests per provider |
shared cooldown | After a |
TTL cache | Absorbs the duplicate questions an agent naturally asks in one turn |
Each provider's requests share one pooled connection per event loop
(http_pool.py), so a warm call does not pay a TLS handshake before
every request. Pacing, not a fresh connection, is what keeps an upstream from blocking this server.
Yahoo is paced slowly (1 request at a time, 1 s apart) because it starts answering 429 after a short
burst; Bloomberg is slowest of all (10 s apart). TradingView's websocket treats invalid symbol /
resolve error as an IP-scoped block rather than a bad ticker, for the same reason. Current limiter
state is exposed by tapebasis_health and GET /health under rate_limits.
Defaults are tuned per provider and overridable; see Configuration.
Sentiment: no API key required
market_sentiment has two backends, chosen at runtime. Both produce the same payload shape, and
the payload always says which one ran (provider, scoring, and the top-level data_provider).
Condition | Backend |
|
| Marketaux entity sentiment (licensed) |
|
no token, or Marketaux rejected/quota/outage | Finviz headlines scored locally (VADER) |
|
neither available | labelled empty payload, |
|
Why the labels differ: the numbers are Finviz headlines in the local path; only the scoring is
ours. Labelling that TRADINGVIEW would claim a provenance the data does not have.
Local scoring (sentiment.py) is VADER (MIT, ships its own
lexicon, no download) with a financial overlay. Plain VADER is tuned for social text and scores
"Apple beats estimates, raises guidance" as neutral, because beats and raises are
out-of-vocabulary. The overlay fixes that class of miss:
Headline | Score |
|
|
|
|
|
|
|
|
Scoring is deterministic: the same headlines always produce the same number, and it never touches the network.
A data gap is never dressed up as a finding. sentiment_score: 0.0 means "the tone is
balanced", so it is never used for "nothing could be fetched". When Finviz's headlines are
unavailable and Marketaux is rejected, sentiment_score becomes null,
sentiment_label becomes Unavailable and data_provider becomes NONE
(the news block still carries whatever feeds did answer). An invalid or expired
Marketaux token falls back to local scoring and records the reason in
licensed_path_unavailable; it does not report a neutral market.
MARKETAUX_API_TOKEN adds licensed TradingView/Marketaux headlines into the
merged stock_news feed (typically 3 per request on the free plan). Without it
the feed still merges Finviz + Yahoo with the same consensus and dedup rules.
News coverage is labelled separately and missing Marketaux coverage is reported.
Upstream change detection
Every provider depends on things that can move without notice: Finviz's HTML class names and
unversioned /api/* JSON islands, TradingView's scanner POST schema and chart websocket protocol,
Yahoo's chart API shape, StockAnalysis's quote API envelope, and Investing.com's TLS-gated native
search and quote state.
The monitor in health.py probes each upstream independently of the
provider code paths, except for Investing's explicitly local TLS-aware probe described below:
Probe | Provider | Asserts |
| FINVIZ |
|
| FINVIZ | the snapshot table, the classification chips and the revenue-breakdown island are still in the rendered page |
| FINVIZ |
|
| TRADINGVIEW |
|
| TRADINGVIEW | symbol search still returns |
| YAHOO |
|
| YAHOO | the |
| YAHOO | the |
| SA |
|
| INVESTING | Local TLS-aware search/page probe: exact NVDA identity and separate quote timestamps |
| EQUIBLES | Local key presence and last real response's public quota counters; makes no upstream request and does not prove plan access |
Bloomberg has no network probe, deliberately: its site gates plain HTTP clients on the TLS
fingerprint, so an httpx probe would report DOWN on a healthy provider. Investing uses
curl_cffi for that fingerprint, but unlike Bloomberg it has a local probe that reuses only its
TLS-aware search/page access and independently asserts exact NVDA identity plus the regular/extended
timestamp contract. Bloomberg's tool response is the availability signal, and it still shows up under
rate_limits. Equibles has only the local
configuration probe above: an upstream probe would spend the daily allowance that the health report
is meant to preserve, so a configured key is not presented as verified access.
Each successful probe records a SHA-256 fingerprint of the payload's key paths as a baseline
persisted to ~/.tapebasis/health_state.json. Later probes compare against it, so a renamed
field is caught even if the endpoint still returns 200. Drift is judged on the fields this server
reads: each JSON probe declares its watched keys, and only one of those disappearing counts as
drift, because an upstream dropping a key nobody looks at is still serving every number correctly.
An added key is never drift, since a superset cannot break a parser.
Probes go through their provider's limiter like every other request, so the monitor paces itself on
the same upstreams the server paces. tapebasis_health(accept_baseline=True) re-records the current
shape after an upstream change you have checked and adapted to; a probe that is DOWN keeps its old
baseline. Verdicts:
OK: status and shape match the baselineDRIFT: answered, but the status/shape changed (renamed field, moved route, missing marker)DOWN: timeout, connection error or unexpected HTTP statusUNKNOWN: not probed yet
Drift is surfaced, not swallowed: every tool response gets a warnings entry, degraded: true, and
a WARNING appended to notice, scoped to the providers this call actually used. The monitor runs
in the background (TAPEBASIS_HEALTH_INTERVAL, default 300 s) and tool calls only read the cached
verdict.
Install
Requires Python 3.10–3.13.
Run directly without cloning the repository. uvx creates the Python environment
isolated from the current project. Install uv first; Python 3.10–3.13 is selected from the package requirements.
uvx tapebasis --helpOr use the anonymous npm launcher with Node.js 18 or newer:
npx tapebasis --helpFor a checkout or development build:
git clone https://github.com/giraygokirmak/tapebasis.git
cd tapebasis
# Install the checkout in a virtual environment.
python -m venv .venv && source .venv/bin/activate
pip install -e .stdio (Claude Desktop, most MCP clients)
{
"mcpServers": {
"tapebasis": {
"command": "npx",
"args": ["tapebasis"],
"env": { "MARKETAUX_API_TOKEN": "" }
}
}
}The npm launcher calls uvx tapebasis, inherits its stdio and environment, and
requires uv on PATH. An alternative is "command": "uvx", "args": ["tapebasis"].
The mcp-name marker above is used by the MCP Registry for PyPI ownership verification; the corresponding mcpName field in package.json does the same for npm.
Streamable HTTP
tapebasis streamable-http --host 0.0.0.0 --port 8000
curl -s localhost:8000/healthDocker
Prebuilt image (GHCR)
A multi-arch image is published to the GitHub Container Registry as part of an approved v* release:
docker pull ghcr.io/giraygokirmak/tapebasis:latest
docker run -d --name tapebasis -p 127.0.0.1:6013:8000 \
-v tapebasis-state:/home/mcpuser/.tapebasis \
ghcr.io/giraygokirmak/tapebasis:latestMain pushes build and check the image without publishing it. An approved v* tag publishes <major>.<minor>.<patch>, <major>.<minor>, <major> and latest from the image that passed the release checks. The manifest covers linux/amd64 and linux/arm64. Pin a version tag for reproducible deployments.
Build locally
cp .env.example .env # optional; every setting has a default
docker compose up -d --build
curl -s localhost:6013/healthCompose publishes host port 6013 on 127.0.0.1 by default. The server is unauthenticated. Remote
exposure is a deliberate operator choice: set TAPEBASIS_BIND_ADDRESS to a routable address and put
an authenticating TLS reverse proxy in front of it. TAPEBASIS_BIND_ADDRESS=0.0.0.0 publishes on all
host interfaces. The container itself still listens on 0.0.0.0, which its port mapping requires.
The named volume tapebasis-state persists chart PNGs and the health baselines, so drift
detection survives restarts.
Standalone:
docker build -t tapebasis:latest .
docker run -d --name tapebasis -p 127.0.0.1:6013:8000 \
-v tapebasis-state:/home/mcpuser/.tapebasis \
tapebasis:latestThe image runs the server under tini as PID 1, so the container reaps the processes Docker starts
inside its namespace (HEALTHCHECK, docker exec) instead of accumulating zombies, and docker stop
is a graceful SIGTERM. Compose also sets init: true, which covers an image built without tini.
The build context ignores environment files, credentials, tests and caches. The runtime image carries
the installed package and its coinlists, not a copy of the checkout.
Configuration
Everything is optional. See .env.example for the full list.
Variable | Default | Purpose |
|
| Turn the drift monitor on/off |
|
| Seconds between background probe rounds |
|
| Seconds a cached verdict is reused |
|
| Baseline file |
|
| Scraped-page cache lifetime (s) |
|
| finviz.com HTTP timeout (s) |
|
| Chart PNG output, 32 generated files retained; inline base64 is primary |
|
| TradingView request spacing (s) |
|
| TradingView concurrent requests |
|
| Finviz request spacing (s) |
|
| Finviz concurrent requests |
|
| Yahoo request spacing (s) |
|
| Yahoo concurrent requests |
|
| Yahoo quote cache lifetime (s) |
|
| StockAnalysis request spacing (s) |
|
| StockAnalysis concurrent requests |
|
| Retries per StockAnalysis request |
|
| stockanalysis.com HTTP timeout (s) |
|
| Quote cache lifetime (s); the upstream advertises a 3 s shared cache |
|
| Investing.com request spacing across native search and quote pages (s) |
|
| Investing.com concurrent requests |
|
| Retries per Investing.com request |
|
| Browser fingerprint |
|
| Investing.com transport timeout (s) |
|
| Verified quote page cache lifetime (s) |
|
| Native search result cache lifetime (s) |
|
| Bloomberg request spacing (s); the strictest limiter here |
|
| Bloomberg concurrent requests |
|
| Retries per Bloomberg request |
|
| Browser fingerprint |
|
| bloomberg.com HTTP timeout (s) |
|
| Bloomberg page cache lifetime (s) |
|
| Longest |
|
| Tickers per |
|
| Total seconds one |
|
| Worker ceiling for the pool that runs blocking provider calls, separate from the loop's default executor |
| - | Bearer credential for the official Equibles REST API; sent only in |
|
| Equibles request spacing (s) |
|
| Equibles concurrent requests; a separate per-loop gate serializes each quota check and send |
|
| Shared-limiter metadata only; Equibles transport always requests zero retries |
|
| Equibles cache lifetime (s); keyed by query and key fingerprint, never the raw key; live transcripts bypass cache |
|
| Equibles HTTP timeout (s) |
|
| Retries per provider request (the shared cooldown is not tunable) |
| - | Optional. Enables licensed Marketaux news + entity sentiment |
|
| Marketaux request cap per day (free plan is 100) |
For security, do not put the Equibles key in an MCP argument, a custom URL, application JSON or a
shared log. Set only the environment variable in the server process, use a placeholder in
.env.example, and rotate the key if it was ever disclosed. Cached entries are keyed by a short
SHA-256 fingerprint rather than by the raw secret, and a failed HTTP response is
replaced with a sanitized error message rather than echoed upstream text. Redirects are refused so a
Bearer header cannot follow an upstream Location to a different origin.
The legacy TRADINGVIEW_MCP_* variables still tune the provider-layer technical-analysis services
while the scanner, websocket and every tool call go through the TAPEBASIS_* limiters above.
No proxy configuration exists: every provider reaches its upstream directly.
Reading a response correctly
1. Check data_provider.
ALL -> quote the numbers; every provider asked answered.
PARTIAL -> quote them, but say a provider that was asked did not answer,
and read `errors` for which one and why.
TRADINGVIEW -> quote them, but say the figure is single-source and not corroborated.
FINVIZ -> same, from the Finviz side.
YAHOO -> same, from the Yahoo side.
SA -> same, from the StockAnalysis side; US equities and ETFs only.
INVESTING -> same, from the Investing.com side; exact verified equities
and ETFs only. Check identity, session timestamps and the
single-source analyst/technical extras.
BLOOMBERG -> same, but find out why in comparisons: a delayed print is
reported as not_comparable with the delay named. Quote
exchange_delay / print_time before calling a price live.
EQUIBLES -> quote only the returned named datasets as single-source data.
Preserve Data by Equibles, as_of, reporting_delay and the
access state. A partial failure is not corroboration and
a denied dataset must not be silently omitted.
NONE -> say the primary value is unavailable. Do not invent one;
independently labelled news may still be available.
2. Check degraded / warnings.
Non-empty -> tell the user an upstream API changed or is down, and that
provider's figures may be stale or incomplete.
3. Check fields for per-field provenance when the response mixes sources
(e.g. price.source is FINVIZ while price.supplied names four providers, and
peers.source is FINVIZ alone). Read `supplied` for who answered and
`compared` for whose reading was actually cross-checked; `agreement`
describes only that second set. Composite `news` instead has `source: null`;
read its `coverage`, `supplied` and the news block's own provider labels.
4. Check news separately for its coverage. Short lists report their real count
and reason; consensus is provider corroboration, not editorial verification.
5. Check comparisons when you need to show how far apart the providers are.
match: true -> they agree within tolerance.
match: false -> a real disagreement; every reading is in `values`.
match: null -> not comparable: no print time, a session/age difference, a
declared feed delay (Bloomberg's 15 minutes), or a field
with no shared definition (FX day change).
6. Check resolutions when a symbol behaved unexpectedly: it shows exactly which
ticker each provider was asked for, and why.Latency: what is optimised, and what is not
Three things dominate a response, and only two of them are the server's to fix:
Cost | Where it comes from | Handled by |
One HTTP handshake per request | A fresh client per call | One pooled client per upstream ( |
Duplicate identical asks in one turn | No cache on a leg | A short TTL cache on every provider ( |
The slowest provider leg | Fan-out waits for every leg | Pacing bounds, not concurrency, so a slow leg is stated (deadline / budget) rather than hidden |
Measured on a warm process after those changes: the general market legs run in parallel in ~1 s, a repeated
stock_quote answers in tens of milliseconds, and a repeated market_indices is served from cache.
What is not optimised is the pace itself. Yahoo is asked one request at a time 1 s apart, and
Bloomberg 10 s apart, because a faster knock rate turns into a 429 or a bot wall that outlasts the
burst. Pooling changes how expensive each knock is, never how often it happens.
Two costs stay visible instead of being papered over: a provider that does not answer inside its
deadline becomes a stated TIMEOUT, and a Bloomberg batch names the tickers its budget cut off in
warnings. A slow answer is reported, never silently dropped.
Development
pip install -e ".[dev]" # or, with uv: uv venv && uv pip install -e ".[dev]"
pytest # the hermetic suite, no network
pytest -m live # opt-in: hits real upstreams
scripts/quality-gate.sh --commit # tests plus the documentation checksTests mock at the HTTP boundary (httpx.MockTransport) and the provider-access boundary, so the
suite runs offline and deterministically, including the drift-detection tests that corrupt a stored
baseline and assert the warning reaches a normal tool response.
scripts/quality-gate.sh also checks the documentation: an undocumented function, a stale tool
count, a broken wiki link, an em dash, or a changed public signature with no documentation in the
same batch all fail it. The OpenCode plugin in .opencode/plugins/quality-gate/ runs the same
script before a git commit or git push and refuses the command while it is red.
Layout
src/tapebasis/
├── server.py FastMCP instance, lifespan, /health, CLI
├── providers_state.py DataProvider enum, errors, response envelope
├── reconcile.py concurrent fan-out, comparison, freshness arbitration, notice text
├── freshness.py market-print timestamps + freshest-print selection
├── ratelimit.py per-provider pacing, shared cooldown, TTL cache
├── http_pool.py one pooled HTTP client and resolver warm-up per upstream
├── merge_helpers.py pure payload shapers (raw provider dict -> fields)
├── news.py symbol news merge, per-story consensus and shortfall reporting
├── sentiment.py token-free headline scoring (VADER + finance lexicon)
├── symbols.py dynamic per-provider symbol resolution + index aliases
├── health.py upstream probes, fingerprints, drift state
├── tv_access.py typed access to TradingView's own data
├── fv_access.py typed access to the Finviz provider
├── yh_access.py typed access to the Yahoo Finance provider
├── bb_access.py typed access to bloomberg.com (delayed leg + Bloomberg-only tools)
├── sa_access.py typed access to stockanalysis.com (US equities and ETFs)
├── investing_access.py native Investing search, exact identity and epoch-ms sessions
├── eq_access.py allowlisted Equibles REST, Bearer secrecy, quota and freshness
├── eq_catalog.py frozen Equibles routes, exact dataset/filter validation
├── equibles_surface.py shared Equibles access, attribution and freshness contract
├── tools_equibles.py six isolated Equibles tools with API access contracts
├── tools_equibles_families.py fourteen grouped Equibles REST family tools
├── catalog.py plain-data tool catalogue (providers + comparison strategy)
├── tools_market.py multi-source market tools
├── tools_finviz.py Finviz-only tools
├── tools_tradingview.py TradingView-only tools + combined_analysis
├── tools_bloomberg.py Bloomberg-only tools (one provider asked, so single-source)
├── tools_investing.py direct verified Investing quote (no provider fallback)
├── tools_health.py health + tool map
└── providers/ provider implementations (TradingView, Finviz)Note on labelling
Every provider is asked for its own data. TradingView quotes come from
scanner.tradingview.com, its forecast page and its chart websocket; Finviz from finviz.com HTML and JSON islands;
Yahoo from query1.finance.yahoo.com; StockAnalysis from stockanalysis.com/api/quotes; Investing.com
from native instrument search and only its search-provided /equities/... or /etfs/... page, fetched
with curl_cffi; Bloomberg
from bloomberg.com/quote/... and its market board, fetched with curl_cffi because the site gates
plain HTTP clients on the TLS fingerprint. Equibles comes only from its versioned authenticated REST
API and is never a leg in the comparisons above. Nothing is proxied through another provider. sources
records the primary quote upstream each leg used; the auxiliary forecast URL has its own
analyst_targets.TRADINGVIEW.forecast_source; its analyst block's source names the scanner.
Where a capability exists on only some providers, that is stated rather than simulated: options chains come from Finviz and Yahoo (TradingView contributes only the underlying price), backtests run twice on TradingView and Yahoo OHLCV, and Finviz and StockAnalysis are never asked for crypto, FX or commodity quotes because neither carries them. Investing.com is likewise limited to exact verified equity and ETF pages rather than being sent to another asset class.
Disclaimer
Market data is provided as-is for research and automation. It is not investment advice, and scraped data can be delayed, incomplete or wrong. Cross-verification reduces the chance of a bad number reaching you; it does not eliminate it.
License
MIT. See LICENSE.
Available Tools
56 toolsbitcoin_market_pulseTradingView-only: bitcoin pulseC
Bitcoin market health: trend, dominance proxies and volatility.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: no named parameters. Returns: object
bloomberg_marketsBloomberg-only: index, government yield, commodity and FX boardA
Bloomberg's market board: index levels, government yields, commodities, FX.
The government benchmark yields are the reason this tool exists: no other provider in this server publishes a yield curve. Index, commodity and FX levels ride along as context and are labelled single-source like the rest.
The board carries no per-instrument print time, so the response reports
print_time: null rather than implying a live tape, and no level here is
aged or ordered.
Returns:
Envelope labelled BLOOMBERG / SINGLE_SOURCE whose data holds
indices, government_yields, commodities and fx lists.
Inputs: no named parameters. Returns: object
bloomberg_quoteBloomberg-only: quote page (single-source call, delay-labelled)A
Bloomberg's own quote page for one instrument (single-source).
This tool asks only Bloomberg, so the response is single-source even though
the provider is a full leg of stock_quote. Ask for it when the caller
wants Bloomberg's reading specifically, or a figure only Bloomberg carries.
print_time comes from the last intraday point, never from
lastUpdate, which is a session sentinel on equity pages. When the
intraday series does not end at the quoted price, print_time is null
with the reason in print_time_missing_reason, rather than a timestamp
that describes a different number.
Args:
symbol: Anything the instrument is commonly called (AAPL, BRK.B,
SPX, EURUSD, CL1, BTCUSD, XAUUSD) or an id in
Bloomberg's own spelling (AAPL:US, SPX:IND).
Returns:
Envelope labelled BLOOMBERG / SINGLE_SOURCE whose data
carries the price, day change, ranges, volume, ratios, the derived
print_time and the delay fields exchange_delay /
is_exchange_delayed.
Inputs: symbol (required). Returns: object
combined_analysisCross-checked: TA + sentiment + priceA
Technical analysis, news and sentiment in one call, price cross-checked.
Runs the TradingView technical read plus news sentiment, then asks Finviz and
Yahoo independently for the latest price to confirm the value the analysis
was built on. This composite can legitimately return ALL: the price leg
is multi-source. The sentiment payload names its own backend, and the
top-level sentiment_source repeats that provenance.
Sentiment needs no API key: Marketaux is used when MARKETAUX_API_TOKEN is
set, otherwise Finviz headlines are scored locally. data.news always
merges the latest 10 stories from TradingView/Marketaux, Finviz and Yahoo,
with per-item providers and consensus; no Marketaux token is required for
the other feeds.
Args: symbol: Ticker. exchange: TradingView exchange prefix. timeframe: TradingView interval.
Returns:
Envelope with data.analysis, data.sentiment, data.news and
data.price_cross_check. The top-level analyst_targets.TRADINGVIEW
block preserves the separate scanner rating and forecast target analyst
populations. Its name-free summary exposes the three-month total and all
five scanner categories directly, with TradingView field provenance.
Analyst supplement failures leave the primary analysis in place and are
reported with their own capability labels.
Inputs: symbol (required), exchange, timeframe. Returns: object
crypto_bollinger_scanTradingView-only: Bollinger squeeze scanA
Bollinger-band squeeze candidates (TradingView-only).
Args: exchange: TradingView venue. timeframe: TradingView interval. bbw_threshold: Maximum band-width to qualify as a squeeze. limit: Rows to return.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: limit, exchange, timeframe, bbw_threshold. Returns: object
crypto_multi_agentTradingView-only: multi-agent debateC
Multi-agent bull/bear debate over a crypto symbol (TradingView-only).
Args: symbol: Coin symbol. exchange: TradingView venue. timeframe: TradingView interval.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: symbol (required), exchange, timeframe. Returns: object
crypto_multi_timeframeTradingView-only: multi-timeframe crypto analysisB
Multi-timeframe technical read for a crypto symbol (TradingView-only).
Args:
symbol: Coin symbol (BTC, ETH).
exchange: TradingView venue.
Returns:
Envelope labelled TRADINGVIEW with per-timeframe analysis.
Inputs: symbol (required), exchange. Returns: object
crypto_top_moversTradingView-only: crypto gainers/losersA
Top crypto gainers or losers on an exchange (TradingView-only).
Args:
movement: gainers or losers.
exchange: TradingView venue (KUCOIN, BINANCE, BYBIT, …).
timeframe: 5m, 15m, 1h, 4h, 1D, 1W, 1M.
limit: Rows to return.
Returns:
Envelope labelled TRADINGVIEW with the ranked rows.
Inputs: limit, exchange, movement, timeframe. Returns: object
crypto_volume_breakoutTradingView-only: volume breakout scanC
Volume + price breakout scanner (TradingView-only).
Args: exchange: TradingView venue. timeframe: TradingView interval. volume_multiplier: Minimum relative volume. price_change_min: Minimum absolute % change. limit: Rows to return.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: limit, exchange, timeframe, price_change_min, +1 more. Returns: object
egx_market_overviewTradingView-only: EGX overviewC
Egyptian Exchange overview (TradingView-only).
Returns:
Envelope labelled TRADINGVIEW.
Inputs: limit, timeframe. Returns: object
equibles_companyEquibles: company fundamentals, disclosures, estimates and valuationB
Equibles: company fundamentals, disclosures, estimates and valuation
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_cryptoEquibles: crypto directory, quotes and historical barsB
Equibles: crypto directory, quotes and historical bars
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_filingsEquibles: filings, document text and filings searchC
Equibles: filings, document text and filings search
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_fundsEquibles: funds, ETFs, portfolios and annual operationsA
Equibles: funds, ETFs, portfolios and annual operations
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_institutionsEquibles: institutions and 13F portfolio analyticsB
Equibles: institutions and 13F portfolio analytics
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_internationalEquibles: international disclosure and native fund reportsB
Equibles: international disclosure and native fund reports
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_investor_eventsEquibles: calls, transcripts, IR materials and IPOsC
Equibles: calls, transcripts, IR materials and IPOs
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_macroEquibles: FRED, Canadian macro calendars and CFTC positioningA
Equibles: FRED, Canadian macro calendars and CFTC positioning
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_market_contextEquibles: listings, indexes, sentiment and market contextB
Equibles: listings, indexes, sentiment and market context
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_market_dataEquibles: quotes, price history, intraday bars and technicalsB
Equibles: quotes, price history, intraday bars and technicals
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_optionsEquibles paid-plan: raw chains, contracts and option analyticsB
Equibles paid-plan: raw chains, contracts and option analytics
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_ownershipEquibles: disclosed ownership, insiders and supply chainsB
Equibles: disclosed ownership, insiders and supply chains
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_positioningEquibles: short interest, FTD, off-exchange and model scoresA
Equibles: short interest, FTD, off-exchange and model scores
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
equibles_public_policyEquibles: congressional disclosures and government contractsB
Equibles: congressional disclosures and government contracts
Args:
dataset: Exact operation listed by tapebasis_tool_map.
filters: JSON object restricted to that operation's documented path and
query parameter names. Non-US listings use MIC:TICKER where documented.
Returns:
Single-source EQUIBLES envelope containing the raw JSON under dataset,
with params_applied, Data by Equibles, freshness and reporting delay.
No key returns NOT_CONFIGURED before transport. An upstream plan denial
returns PLAN_REQUIRED, never a fabricated or substituted result.
Inputs: dataset (required), filters. Returns: object
futures_market_overviewTradingView-only: futures overviewB
Futures contracts ranked by volume (TradingView-only).
Args:
category: all, equity_index, energy, metals,
agriculture, rates, forex or crypto_futures.
exchanges: us or global.
limit: Rows to return.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: limit, category, exchanges. Returns: object
futures_top_moversTradingView-only: futures moversB
Futures gainers/losers by percent change (TradingView-only).
Args:
movement: gainers or losers.
exchanges: us or global.
limit: Rows to return.
Returns:
Envelope labelled TRADINGVIEW.
Inputs: limit, movement, exchanges. Returns: object
futures_watchlistTradingView-only: futures watchlistC
Curated futures watchlist with levels (TradingView-only).
Returns:
Envelope labelled TRADINGVIEW.
Inputs: no named parameters. Returns: object
investing_quoteInvesting.com: exact native instrument quote and provider-only extrasA
Read one exact Investing.com equity or ETF, explicitly single-source.
exchange can disambiguate a symbol listed on multiple venues (for
example NASDAQ or NYSE). Otherwise only an unambiguous primary
listing is accepted. Instrument id, symbol, exchange, currency and class must
agree between native search and the quote page. This tool never guesses an
/equities/ slug, substitutes another listing, or substitutes another
provider for a failed Investing request.
Investing's lastClose is not mapped to previous close because its
baseline meaning is unverified. Explicitly unsupported previous-close data
is visible in investing_previous_close_excluded. Analyst counts remain a
separate Investing population and daily technical verdicts remain a separate
Investing model, never Tapebasis technical_analysis or a combined count.
Args:
symbol: Equity or ETF ticker, including share-class spellings such as
BRK.B. EXCHANGE:TICKER is accepted as an explicit venue.
exchange: Optional exact exchange constraint, e.g. NASDAQ.
Returns:
Envelope labelled INVESTING / SINGLE_SOURCE whose data
carries the verified regular or extended quote, timestamps and
provider-only analyst and technical extras, all with INVESTING
per-field provenance. A miss or provider failure returns NONE with
the typed error instead of borrowing a number from another provider.
Inputs: symbol (required), exchange. Returns: object
market_indicesMarket data: major market indicesA
Level and day change for the major US indices, asked of every capable provider.
Covers the fixed snapshot list (INDEX_SNAPSHOT: S&P 500, Dow, Nasdaq
Composite, Russell 2000, IWM and VIX), not every index the instrument
registry addresses: NDX is a registry row too, but it is quoted through
the single-instrument tools. Every provider spells these differently
(SPX / SP:SPX / ^GSPC); they are mapped to one canonical name
before comparison, and the level is compared across all providers that
answered.
Returns:
Envelope whose data.indices is keyed by canonical index
(SPX, DJI, COMP, RUT, IWM, VIX), each value
carrying level, change_percent, its own data_provider and
the raw readings from every provider that supplied it.
Inputs: no named parameters. Returns: object
market_sentimentTradingView-only: news sentimentA
News-based sentiment for a symbol, with no API key required.
Prefers the licensed Marketaux entity sentiment when MARKETAUX_API_TOKEN
is set. Without a token it scores Finviz headlines locally (VADER with a
financial lexicon), deterministic, offline and free. Either way the payload
names the backend in provider/scoring and never fabricates a score
when there is no material to score.
The accompanying data.news block always aggregates the latest 10
stories from TradingView/Marketaux, Finviz and Yahoo, naming every item's
providers and cross-provider consensus. It does not change which backend
computed the sentiment score.
Args: symbol: Ticker. category: News category (used by the Marketaux path only). limit: Headlines to analyse for sentiment.
Returns:
Envelope labelled TRADINGVIEW, FINVIZ or NONE whose data
carries sentiment_score, sentiment_label, the
bullish/bearish/neutral counts, the strongest headlines and the
aggregated news block. NONE describes only an unavailable
sentiment computation, not an absence of independently fetched news.
Inputs: symbol (required), limit, category. Returns: object
market_snapshotTradingView-only: global market snapshotA
Global FX, crypto, index and ETF snapshot from two independent providers.
TradingView's scanner and Yahoo's chart API are asked separately, so the groups that both carry (indices, major crypto, FX, ETFs) are genuinely cross-checked. Finviz has no equivalent breadth, so it is not asked.
Returns: Envelope grouped by asset class, each group labelled with whether every asked provider answered it.
Inputs: no named parameters. Returns: object
stock_analyst_estimatesEquibles-only: verified analyst estimates and snapshot observationsA
Read verified analyst estimates and snapshots without adding a rating.
Source metric, period, dimensions, unit, basis, statistic, analyst and numeric string remain as supplied by Equibles. Revision observations are not recast into a score or mixed with another provider's target population.
Args: symbol: US-listed ticker. metric: Optional exact upstream metric label. period: Optional exact upstream period label. dimensions: Optional exact upstream dimension labels. snapshot_id: Optional snapshot identifier returned by a previous call. limit: Observation page size, clamped to 1 through 100. offset: Zero-based observation offset, clamped to 0 through 100000.
Returns:
Envelope containing the complete Equibles analyst_estimates block.
Inputs: symbol (required), limit, metric, offset, +3 more. Returns: object
stock_backtestTradingView-only: strategy backtestB
Backtest a strategy on a symbol, using each provider's own history.
The history is fetched from TradingView's chart feed and from Yahoo's chart API independently, and the strategy is run on each. The two results are compared metric by metric, if the OHLCV bars differ materially, the backtest is only as trustworthy as the feed it came from, and the response says which one produced the numbers shown.
Args:
symbol: Ticker or coin (any instrument either provider quotes).
strategy: One of rsi, bollinger, macd, ema_cross,
supertrend, donchian, rsi_pullback, keltner_breakout,
triple_ema.
period: 6mo, 1y, 2y, 5y, …
initial_capital: Starting cash.
interval: 1d or 1h.
include_trade_log: Include the per-trade log.
include_equity_curve: Include the equity curve.
Returns:
Envelope whose data_provider is ALL when both feeds answered,
TRADINGVIEW/YAHOO when only one did (single-source), or NONE.
comparisons holds the metric-by-metric agreement.
Inputs: symbol (required), strategy (required), period, interval, +3 more. Returns: object
stock_backtest_compareTradingView-only: strategy comparisonC
Compare every strategy under the returned execution_model timing.
Args: symbol: Ticker. period: Lookback period. initial_capital: Starting cash.
Returns: Envelope with the strategy leaderboard per provider and the winning strategy they agree on (or a stated disagreement).
Inputs: symbol (required), period, initial_capital. Returns: object
stock_chartFinviz-only: rendered chart PNGA
Rendered PNG candlestick chart for a ticker (Finviz-only).
TradingView's provider computes charts as text analysis, not images, so a PNG is Finviz-only and labelled as such.
Args:
symbol: Ticker.
period: d daily, w weekly, m monthly.
chart_type: c candle, l line, h heikin-ashi.
scale: l linear, log logarithmic.
width: Pixel width.
height: Pixel height.
Returns:
Envelope labelled FINVIZ with image_base64, mime_type and
dimensions in data. image_path and data.path point to a
best-effort local copy, which is optional and server-local.
Inputs: symbol (required), scale, width, height, +2 more. Returns: object
stock_dilutionFinviz-only: dilution risk modelA
Dilution-risk model: share count, float and cash runway (Finviz-only).
Finviz only builds this model for companies whose share count it considers
dilution-prone, so a large cap legitimately has none. When that happens the
response is NONE with the reason, not an income statement wearing the
dilution label: the revenue/expense breakdown the same tab renders is
served by stock_quote and stock_dilution is not the tool for it.
Args: symbol: Ticker.
Returns:
Envelope labelled FINVIZ; schema_version and company
describe the model. NONE with a stated reason when Finviz has no
model for this company.
Inputs: symbol (required). Returns: object
stock_earningsMarket data: earnings calendar and historyA
Earnings calendar and history for one ticker.
Finviz owns the detailed tables (reported quarters, estimate revisions,
fundamental series, post-earnings reactions); TradingView's scanner confirms
the next/last earnings timestamp from its own calendar. Yahoo supplies the
next scheduled date on its own feed. The dates are reported; Finviz's last
reported quarter never becomes next_earnings_date.
Args: symbol: Ticker.
When TAPEBASIS_EQUIBLES_API_KEY is configured, Equibles's analyst
estimates are asked too. An EPS estimate value enters comparisons only
when metric, period, statistic, unit, basis and dimensions match exactly;
otherwise the candidate is listed in declined_comparisons with a reason
instead of being called an agreement or a conflict. Without a key no
request is made and Equibles stays outside the provider scope entirely.
Returns:
Envelope with data.next_earnings_date, the Finviz tables, a
date_comparison block and eps_estimate_analyst_counts (the
single-source Equibles EPS-estimate contributor counts, keyed by that
provider's period label, null when the provider supplies no count).
Inputs: symbol (required). Returns: object
stock_extended_hoursMarket data: pre/post-market pricesA
Pre-/post-market and overnight prices, with per-session comparisons.
Finviz exposes the after-hours print on the quote page; Yahoo derives pre/regular/post prices from its own 1-minute candles; TradingView's scanner carries its own pre/post prints; StockAnalysis returns an extended-hours block next to the regular quote. Only like pre/post sessions with usable print times are compared, and every raw reading and session block is returned.
Args: symbol: Ticker.
Returns:
Envelope with data carrying pre_market, regular,
post_market, the Finviz after-hours block, and reconciled overnight
readings from TradingView's BOATS socket and Yahoo's quote header.
Inputs: symbol (required). Returns: object
stock_filingsFinviz-only: SEC filing historyA
SEC filing history for a ticker (Finviz-only, single-source).
TradingView has no filing feed, so this capability cannot be cross-verified.
The response is labelled FINVIZ and the notice says so.
Args:
symbol: Ticker.
page: 1-based page.
page_size: Rows per page (1-100).
forms: Optional SEC form filter, e.g. "10-K,10-Q".
Returns:
Envelope with the filing rows plus has_more.
Inputs: symbol (required), page, forms, page_size. Returns: object
stock_fundamentalsEquibles-only: company identity, SEC fundamentals, debt and guidanceB
Read Equibles company identity, SEC fundamentals and guidance separately.
Args:
symbol: US-listed ticker; share classes may use a dot or dash.
statement: income, balance or cashflow.
year: Optional fiscal year for the one statement read.
period: Optional FY, Q1, Q2, Q3 or Q4.
include_segments: Fetch annual revenue breakdown when true.
include_debt: Fetch reported debt, instruments and covenant coverage when true.
include_guidance: Fetch management guidance and reported actuals when true.
Returns:
Envelope with isolated profile, financial_statement and the
selected revenue_breakdown, debt_profile and guidance blocks.
No Equibles value is combined with Finviz, TradingView or Yahoo.
Inputs: symbol (required), year, period, statement, +3 more. Returns: object
stock_newsMarket data: stock newsA
Latest 10 stories for one ticker, merged across every news provider.
Finviz supplies price reactions around an item, Yahoo supplies its search
feed and TradingView supplies its licensed Marketaux feed. The feeds are
deduplicated and ordered by publication time, so Finviz no longer hides
Yahoo's more recent headlines. Each story names its providers, their exact
alternate headlines and consensus: true when multiple providers carry
it, false for a single-provider item. Matching uses the article URL or a
supported headline similarity, never just the company name.
Args: symbol: Ticker. limit: Maximum unique stories returned, default 10 and capped at 50. include_reactions: Ask Finviz for price-reaction columns.
Returns:
Envelope whose data.items is the newest-first merged feed. The real
count may be below limit when upstreams supply fewer stories.
Coverage reflects providers with valid headlines, while provider_calls
preserves the raw call outcomes. by_provider audits each feed and
pairwise compares every pair. Provider similarity is not a claim of
independent editorial verification.
Inputs: symbol (required), limit, include_reactions. Returns: object
stock_options_analyticsEquibles paid-plan: option summary and term structureA
Read paid-plan option summary and term structure with an API key.
Equibles requires Plus or Pro for option data. Max pain and expected move
remain source calculations, not price forecasts or a new consensus. A Free
account receives PLAN_REQUIRED after the documented upstream refusal.
Args:
symbol: US-listed optionable stock or ETF ticker.
expiration: Optional YYYY-MM-DD expiration for the summary.
max_expirations: Term-structure cap, clamped to 1 through 12.
Returns: Envelope with separate option summary and term-structure blocks.
Inputs: symbol (required), expiration, max_expirations. Returns: object
stock_options_chainMarket data: options chainA
Multi-source options chain for one expiry.
Finviz and Yahoo both publish a chain; contracts are matched by side, expiry and strike, then their volume and open interest are compared, so an agent can see whether the two chains agree on open positioning. TradingView has no chain, but its scanner independently quotes the underlying the contracts are priced against.
Args:
symbol: Underlying ticker.
expiry: YYYY-MM-DD; None uses each provider's nearest expiry.
Returns:
Envelope with data.calls/data.puts (Finviz, which carries full
greeks), the Yahoo chain, and data.overlap.
Inputs: symbol (required), expiry. Returns: object
stock_ownershipFinviz-only: insider, institutional and short interestA
Insider trades, institutional holders and short interest.
Finviz supplies the Form-4 insider transactions with monthly buy/sell aggregates, institutional positions and FINRA short-interest history. Those tables are Finviz-only: no other provider's filing population is treated as the same ownership observation.
With TAPEBASIS_EQUIBLES_API_KEY, Equibles's FINRA short-interest series
is asked as well. Only a shortPosition row whose settlementDate
equals Finviz's latest settlement date is compared, after converting
Finviz's thousands to shares. Insider and institutional tables never join
that comparison, and without the key no Equibles request is made at all.
Args: symbol: Ticker. limit: Max rows per table.
Returns:
Envelope labelled FINVIZ with insider, institutional and
short_interest blocks (whichever Finviz could serve), plus
short_interest_consensus describing the same-settlement-date
cross-check when Equibles was asked.
Inputs: symbol (required), limit. Returns: object
stock_ownership_flowsEquibles-only: 13F flows, N-PORT funds and insider salesB
Read separate 13F, N-PORT, insider and Form 144 ownership observations.
Args: symbol: US-listed stock or ETF ticker. limit: Cap for each activity, fund, insider and proposed-sale page, clamped to 1 through 500. periods: Number of 13F reporting periods, clamped to 1 through 500. include_insiders: Fetch filed insider transactions when true. include_fund_owners: Fetch current N-PORT fund positions when true.
Returns: Envelope with 13F ownership and movement, N-PORT fund ownership, Form 144 proposed sales, and optional insider activity in separate blocks.
Inputs: symbol (required), limit, periods, include_insiders, +1 more. Returns: object
stock_peersFinviz-only: peer groupB
Finviz peer group for a ticker (Finviz-only, single-source).
Args: symbol: Ticker. limit: Maximum peers.
Returns:
Envelope labelled FINVIZ with peers.
Inputs: symbol (required), limit. Returns: object
stock_price_historyEquibles-only: stored OHLCV history, not a live quoteA
Read stored Equibles OHLCV with an API key, never as a live quote.
Args:
symbol: US-listed ticker.
limit: Bar count, clamped to 1 through 500.
start_date: Optional inclusive ISO session-date filter.
end_date: Optional inclusive ISO session-date filter.
interval: daily, weekly or monthly.
Returns:
Envelope with the complete provider price_history block. Its stored
adjustment and currency semantics are not combined with other feeds.
Inputs: symbol (required), limit, end_date, interval, +1 more. Returns: object
stock_pricesMarket data: batch stock pricesA
Prices for several instruments at once, from every provider that carries them.
Each ticker is resolved per provider and looked up natively: TradingView's
scanner, Finviz's screener, Yahoo's chart API, StockAnalysis's quote API,
Bloomberg's quote page and Investing.com's native search and verified quote
page. The per-row data_provider says whether that
particular ticker was answered by every provider asked for that ticker,
by some of them, by one, or by none; envelope coverage is PARTIAL when
any symbol missed an attempted provider, even when another row is ALL.
agrees says whether the readings matched. Bloomberg is asked about at
most TAPEBASIS_BLOOMBERG_BATCH_MAX tickers per call (default 4) because
its page path is paced at 10 s per request; the rest are reported as skipped
in warnings rather than silently missing.
Args:
tickers: Comma-separated symbols, e.g. "AAPL,MSFT,XAUUSD".
Returns:
Envelope whose data is a list of rows, each with symbol,
price, change_percent, its own data_provider, and a
fields map giving each value's provenance. price_source names
the provider the row's values were taken from, and fields states it
per field, because only price and change_percent are compared:
a row can read ALL while previous_close was shaped by one
provider. session names the window the row's price printed in,
and price_field names the provider field it was read from, so a swap
from a stale regular value to a live session print is auditable rather
than implied. On an FX symbol the day change is reported but not
compared, because spot FX has no single official previous close.
Per-symbol misses and errors keep attempted empty results and
original provider error codes visible, with the envelope aggregating
those failures and the row-derived comparison verdicts.
Inputs: tickers (required). Returns: object
stock_quoteMarket data: quote, fundamentals, and a snapshotA
Quote and fundamentals for one instrument, asked of every capable provider.
Each provider is asked independently and natively: TradingView's scanner,
Finviz's quote page, Yahoo's chart API, StockAnalysis's quote API,
Investing's native search and identity-verified quote page, and Bloomberg's
quote page, in parallel. Nothing proxies another, so the
cross-check is real. Price, change, previous close, the session's own
open/high/low, the 52-week range, P/E, RSI, volume and the average analyst
target are compared field by field; Finviz's deeper fundamentals, the
84-field snapshot, the
revenue/segment breakdown, company profile, peers and after-hours print,
ride along, each labelled with the provider that supplied it. A field that
cannot be shown to describe the same observation is reported as
not_comparable rather than as a conflict, and an FX day change is never
compared because spot FX has no single official previous close. An empty
response after a symbol resolves remains NO_DATA, not NOT_ATTEMPTED.
Bloomberg's prints can be structurally older than a live feed's
(exchangeDelay is 15 Minutes on equities and indices). That is
handled by the print-time guard, not by hiding the leg: when its print is
too far from the others to be the same observation, the pair is reported as
not comparable with that reason, and its delayed reading never wins the
freshness tie-break. exchange_delay and print_time ride along so the
delay is visible.
StockAnalysis covers US equities and ETFs only. Its quote surface is the
same consolidated tape Yahoo serves, so agreement between those two is weak
corroboration rather than two independent witnesses; that is stated in the
docs and in the single-source notice. Indices, FX, crypto and foreign
listings resolve to "not carried" for that leg, which is recorded as
NOT_ATTEMPTED rather than as a failure. Investing accepts only exact,
unambiguous equity or ETF identities verified between native search and the
returned page. Its analyst counts and technical summaries remain named
single-source extras, and ordinary stock lastClose is never promoted to
a previous close. Its search or page failures are isolated provider errors.
Symbols are resolved dynamically per provider, so XAUUSD reaches
TradingView as OANDA:XAUUSD, Yahoo as XAUUSD=X, Bloomberg as
XAUUSD:CUR, and Finviz and StockAnalysis are told they do not carry spot
gold; Investing likewise does not substitute its commodity listing.
Args:
symbol: Anything the instrument is commonly called (AAPL, BRK.B,
XAUUSD, SPX, BTCUSD, OANDA:XAUUSD).
Returns:
Envelope whose data_provider is ALL when every provider asked
answered, PARTIAL when multiple providers answered but another
asked provider failed, one provider name when only that provider
answered, or NONE when no provider did. resolutions
records how each provider's ticker was derived. analyst_targets
retains each provider's own target, analyst-count scope, rating
distribution and, for Finviz, the visible rating actions used to derive
its distinct firm count. Name-free data summaries return TradingView's
three-month analyst total and Finviz's visible-action total with every
supplied rating class and exact final-label count, never one combined
cross-provider total. Finviz row transitions and same-SSR implied
upside are retained. A failed forecast page adds a capability-tagged
error without changing the primary quote's coverage. session names
the window the served price printed in (pre_market, regular,
post_market or overnight), and it is taken from the winning
provider's own print rather than from another leg's label, so a delayed
feed cannot describe a print it did not supply.
Inputs: symbol (required). Returns: object
stock_screenerMarket data: stock screenerA
Run the US stock screener on both providers and cross-check the rows.
TradingView ranks the entire market server-side (sort_by ∈
market_cap, dividend_yield, change, price); Finviz can be
narrowed with its own filter language (finviz_filters, e.g.
cap_smallover,sec_technology or t=AAPL,MSFT).
The cross-check is only meaningful if both providers describe the same instruments. Finviz is therefore asked about the tickers TradingView ranked, not for an independent ranking of its own: comparing a market-cap ranking against a day-%-change ranking yielded zero overlapping rows on every call, so the "multi-source" screener was silently single-source.
Args:
country: TradingView market (america, turkey, …).
sort_by: TradingView sort key.
limit: Rows to request from TradingView (≤200 on Finviz).
finviz_filters: Optional Finviz filter expression.
Returns:
Envelope with rows (TradingView ranking) and a per-row
finviz_match showing whether Finviz agreed. Filters narrow that
same universe rather than requesting a separate Finviz ranking.
Inputs: limit, country, sort_by, finviz_filters. Returns: object
stock_screener_filtersFinviz-only: screener filter catalogueB
Finviz's full screener filter catalogue (Finviz-only).
Returns:
Envelope labelled FINVIZ with the machine-readable filter list.
Inputs: no named parameters. Returns: object
stock_short_positioningEquibles-only: short, FTD and off-exchange observationsA
Read short, FTD and off-exchange history with an ordinary API key.
An account that lacks a dataset receives an explicit provider error; no provider fallback or empty downgrade occurs.
Args: symbol: US-listed stock or ETF ticker. limit: Rows per dataset, clamped to 1 through 500. start_date: Optional inclusive ISO date filter. end_date: Optional inclusive ISO date filter. include_fails_to_deliver: Fetch SEC fails-to-deliver balances when true. include_off_exchange: Fetch weekly FINRA ATS and OTC volume when true.
Returns: Envelope with unchanged short-interest, short-volume and selected FTD and off-exchange datasets, each retaining its distinct reporting delay.
Inputs: symbol (required), limit, end_date, start_date, +2 more. Returns: object
stock_why_movingFinviz-only: why is it movingA
Finviz's own explainer plus the latest 10 stories for a ticker.
The editorial headline, summary, sentiment and catalyst remain Finviz-only.
data.news separately merges TradingView/Marketaux, Finviz and Yahoo,
naming each story's providers and consensus rather than replacing the
editorial feed with generic headlines.
Args: symbol: Ticker.
Returns:
Envelope labelled FINVIZ for the editorial leg, with data.news
alongside it. If the editorial feed fails, data stays null and the
independent news is in top-level news beside the preserved error.
Inputs: symbol (required). Returns: object
tapebasis_healthProvider Health & Schema DriftA
Probe every upstream and report whether any provider's API drifted.
Every other tool reads the cached verdict from this monitor and adds a
warning when a provider's upstream schema has changed or is down. Call this
with refresh=True to force an immediate re-probe (otherwise the cached
result is reused for TAPEBASIS_HEALTH_TTL seconds).
Drift is judged on the fields this server actually reads. An upstream that
drops a key nobody looks at is serving every number here correctly and is not
reported as an outage, which is what made every response degraded: true
when two cosmetic keys were removed upstream.
accept_baseline=True re-records the current payload shape as the new
baseline. Use it after an upstream change you have checked and adapted to:
without it, a cosmetic rename keeps reporting DRIFT forever, and the only
way out was deleting the state file.
The report also carries rate_limits: per-provider pacing, cooldown and
cache state. A provider can be OK and still be cooling down after a
429, which is what an agent needs to know before it retries.
Args:
refresh: Force fresh probes instead of using the cached verdict.
accept_baseline: Re-record the current shape as the baseline and clear
drift. Probes that are DOWN keep their old baseline.
Returns:
Envelope whose data carries providers (OK/DRIFT/
DOWN/UNKNOWN per provider), degraded, issues,
rate_limits and the per-probe baseline comparison.
Inputs: refresh, accept_baseline. Returns: object
tapebasis_tool_mapTool / Provider MapA
List every tool, which providers back it, and how it is cross-checked.
Useful for an agent that needs to know whether a given capability is
multi-source (ALL, which can include SA or BLOOMBERG), served by
a single provider (TRADINGVIEW/FINVIZ/YAHOO/SA/
BLOOMBERG) or analysis generated by one provider only. This tool
performs no upstream requests.
Inputs: no named parameters. Returns: object
technical_analysisMarket data: technical analysisA
Multi-indicator technical analysis, price cross-checked across providers.
TradingView computes the full indicator stack (RSI, MACD, EMAs, Bollinger, ATR, ADX, structure, trade setup). Finviz's snapshot and Yahoo's chart API independently provide price, RSI(14), ATR(14) and volume, which are compared here, so the numbers the analysis is built on are corroborated rather than taken on trust. The TradingView leg uses its resolved symbol and venue, never a bare ticker redirected by the caller's default exchange.
Args:
symbol: Ticker.
exchange: TradingView exchange prefix (NASDAQ, NYSE, BIST, …).
timeframe: 5m, 15m, 1h, 4h, 1D, 1W, 1M.
Returns:
Envelope whose data.analysis is the TradingView analysis and
data.cross_check holds the per-provider comparison.
Inputs: symbol (required), exchange, timeframe. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 56 tools
Many tools overlap heavily: stock_quote, stock_prices, bloomberg_quote, investing_quote, and equibles_market_data all retrieve quotes, while stock_ownership, stock_ownership_flows, stock_short_positioning, equibles_ownership, and equibles_positioning cover related ownership/short-interest ground. The descriptions explain source-specific differences, but with 56 tools an agent must still choose among several plausible candidates.
Almost all names use consistent snake_case with clear domain prefixes such as stock_, crypto_, futures_, bloomberg_, market_, and equibles_. There are a few deviations like combined_analysis, technical_analysis, bitcoin_market_pulse, and tapebasis_* names, but the overall convention is readable and predictable.
At 56 tools this is far beyond a well-scoped market data surface, and several groups are highly redundant, especially the many equibles_* wrappers and source-specific quote/ownership/options variants. Many capabilities could be consolidated into fewer parameterized tools.
The surface covers an unusually broad market data domain: quotes, multi-price snapshots, screeners, news, options, earnings, extended hours, technicals, filings, ownership, short positioning, fundamentals, macro, crypto, futures, backtesting, and provider health. For the apparent purpose, there are no obvious dead-end gaps.
Maintenance
Related MCP Connectors
Yahoo Finance stock quotes and multi-ticker comparison as agent tools.
Free public stock research, market context, and comparisons for AI agents.
Fetch current stock prices and key data for symbols across global markets. Look up companies like…
Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time stock quotes, historical price data, financial news, and multi-stock comparisons using Yahoo Finance data. Enables users to access comprehensive financial market information through natural language queries.1MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides real-time financial data from Yahoo Finance, enabling stock price lookups, historical data analysis, company information retrieval, and multi-stock comparisons through natural language queries.-
- AlicenseNot gradedqualityDmaintenanceProvides real-time and historical financial market data from Yahoo Finance, including stock prices, options chains, and company news. It also enables technical analysis calculations like moving averages and RSI for comparing or analyzing stock performance.3MIT
- FlicenseNot gradedqualityCmaintenanceProvides comprehensive stock intelligence and technical analysis by integrating Alpha Vantage and Finnhub data. It enables users to generate detailed research reports and retrieve real-time market metrics, indicators, and news sentiment.-