Market data: quote, fundamentals, and a snapshot
stock_quoteRetrieves a single instrument's quote and fundamentals from every capable provider, cross-checks overlapping fields, and labels each value with its source for provenance.
Instructions
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>"
},
"name": "stock_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||