Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaFinanceAvailable now

Yahoo Finance · History

finance-yahoo-com/equities/history

Get market and financial data with Yahoo Finance · History from Alexandria through one Spiral API key. History. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
symbol requiredtext—

Yahoo Finance symbol, case-insensitive: a ticker (AAPL, BRK-B), a cash index with caret (^GSPC, ^NDX), a future or currency pair with equals (NQ=F, SI=F, EURUSD=X), or an exchange-suffixed listing that may start with a digit (0700.HK, 300308.SZ, 00631L.TW). Pattern: ^[A-Za-z0-9^][A-Za-z0-9.=^&\-]{0,19}$.

endtext—

Last day of the window, inclusive, YYYY-MM-DD. Defaults to today. Requires start. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

rangeone of
1d, 5d, 1mo, 3mo, 6mo, ytd, 1y, 2y, 5y, 10y, max
—

How far back to look from now. Defaults by interval: 1m 1d, 5m/15m/30m 5d, 60m 1mo, 1d 1y, 1wk 5y, 1mo max. 1m accepts 1d or 5d; 5m, 15m and 30m accept 1d, 5d or 1mo; 60m accepts up to 2y. Mutually exclusive with start/end.

starttext—

First day of the window, YYYY-MM-DD, matched against each bar's exchange-local date for every interval. Mutually exclusive with range. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$.

intervalone of
1m, 5m, 15m, 30m, 60m, 1d, 1wk, 1mo
1d

Bar size. 1m: last 30 days, windows up to 8 days. 5m, 15m, 30m: last 60 days. 60m (hourly): last 730 days. 1d, 1wk, 1mo: full history.

include_preposttrue or false—

Include pre-market and post-market bars. Only affects intraday intervals.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "finance-yahoo-com/equities/history",
    "input": {
      "symbol": "<symbol>"
    }
  }'

Frequently asked questions

How much does Yahoo Finance · History cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Yahoo Finance · History through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "finance-yahoo-com/equities/history"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Yahoo Finance · History?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Yahoo Finance · History?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.