price_history
Pack: market-recap · Endpoint: https://gateway.pipeworx.io/market-recap/mcp
PREFER for HISTORICAL closing prices and daily returns on a specific past date or date range — “what did the S&P 500 close at on August 7”, “closing prices and daily returns for these four indices last Friday”, “AAPL close on 2026-06-30”. Accepts one or more Yahoo Finance symbols (indices ^GSPC/^IXIC/^DJI/^SOX/^RUT, stocks, ^TNX yields, GC=F commodities, BTC-USD crypto, EURUSD=X FX — same symbol space as get_quotes) plus start_date/end_date, and returns each trading day’s close WITH the previous close and the computed daily return percent, per symbol. Keyless (Yahoo Finance). Use get_quotes for CURRENT prices; this tool is for any date in the past.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
symbols | string,array | yes | One or more Yahoo Finance symbols, e.g. “^GSPC” or [“^GSPC”,“^IXIC”,“^DJI”,“^SOX”]. Comma-separated string also accepted. Up to 8. |
items | string | no | |
start_date | string | yes | First date wanted, YYYY-MM-DD. For a single day, set start_date = end_date — the previous close and daily return for that day are included automatically. |
end_date | string | no | Last date wanted, YYYY-MM-DD. Defaults to start_date. |
Example call
Arguments
{
"symbols": [
"^GSPC",
"^IXIC",
"^DJI",
"^SOX"
],
"start_date": "2026-08-07"
}
curl
curl -X POST https://gateway.pipeworx.io/market-recap/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"price_history","arguments":{"symbols":["^GSPC","^IXIC","^DJI","^SOX"],"start_date":"2026-08-07"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('price_history', {
"symbols": [
"^GSPC",
"^IXIC",
"^DJI",
"^SOX"
],
"start_date": "2026-08-07"
});
More examples
{
"symbols": "AAPL",
"start_date": "2026-06-01",
"end_date": "2026-06-30"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"market-recap": {
"url": "https://gateway.pipeworx.io/market-recap/mcp"
}
}
}
See Getting Started for client-specific install steps.