Market data: batch stock prices
stock_pricesFetch prices and daily change for several tickers at once, with each value tagged by the provider that supplied it, so you can verify agreement across sources before acting.
Instructions
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.
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": {
"tickers": "<tickers>"
},
"name": "stock_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tickers | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||