Markets and finance

Historical price candles

from $0.0030 per resultfinance.history

OHLCV candles for the symbols you name, one row per candle: symbol, date, open, high, low, close, adjusted close, volume, the interval it was cut at, the currency and the exchange.

Intervals run from 1 minute to 3 months, and the window is either a named range from 1 day to max or an explicit start and end date. Turning on events adds a row per dividend, with its amount, and a row per stock split, with its ratio. Works for stocks, ETFs, crypto pairs, forex pairs, indices and futures. One result, and one billable item, per row.

What a call costs

Billed on actual usage, minimum $0.0020 per call, capped at $20.00 per call.

a price before every call. failed calls are never charged.

When to use it

Use when you need the series rather than a single snapshot: backtests, drawdown and volatility maths, correlations across symbols, charting, or total return work that needs dividends and splits. Rows here are candles, not symbols, so a year of daily data is about 252 rows per symbol and maxItems is the ceiling you set on the whole call. Two things follow from that and both are worth knowing before the first call: the ceiling is filled in symbol order, so a call that runs out of room returns nothing at all for the later symbols, which makes one symbol per call the right shape for a long series; and intraday intervals only reach as far back as Yahoo keeps them, roughly 30 days at 1 minute and 2 years at 1 hour, so an old window at a fine interval comes back short or empty. Use finance.quote for where a symbol stands right now and finance.screener to pick the symbols first. Figures come from Yahoo Finance's public feeds rather than from an exchange, so the most recent candle can be delayed or still forming.

Inputs

Historical price candles takes 8 fields, 1 of them required. Anything you leave out falls back to the tool's own default.

FieldTypeRequiredWhat it does
tickersarray of stringyesYahoo Finance symbols, or full quote URLs. Stocks (AAPL), ETFs (SPY), crypto (BTC-USD), forex (EURUSD=X), indices (^GSPC) and futures (GC=F) all work. Capped at 10 because every symbol multiplies the candle count and the maxItems ceiling is shared across all of them.
rangestringoptionalHow far back to fetch, relative to today. The source uses 1mo when you leave it out, and ignores this entirely when startDate is set.
endDatestringoptionalExplicit window end, YYYY-MM-DD. Defaults to today, and is only read when startDate is set.
intervalstringoptionalCandle size. The source uses 1d when you leave it out. Finer intervals mean more rows for the same window, so they cost proportionally more: a month at 1d is about 22 rows and the same month at 1h is about 150. Intraday sizes are only available for recent windows, roughly 30 days at 1m and 2 years at 1h.
maxItemsintegeroptionalTotal rows to return across every symbol in this call, and the only number that moves the price: one billable item per row. The default of 250 is about a year of daily candles for one symbol. It is filled in symbol order rather than shared out, so a cap smaller than the request returns the first symbols complete and the later ones not at all, and the run can publish a few rows past the cap when several symbols are in flight.
operationstringoptionalFixed. The underlying source defaults to live quotes, so this is sent on every call: without it a request for candles would be answered, and billed, as snapshots.
startDatestringoptionalExplicit window start, YYYY-MM-DD. Overrides range when set.
includeEventsbooleanoptionalAlso emit one row per dividend payment and one per stock split inside the window. Off unless you set it. Those rows carry type dividend or split instead of candle, and each is billed like any other row.

How to call it

Connect once and your agent can reach Historical price candles the same way it reaches everything else in the catalog. Add Goro as an MCP connector, or paste the setup line into an agent that reads skills.

MCP

Add this server in Claude, Claude Code, or any MCP client.

https://mcp.usegoro.ai/mcp

Skill

One line in your agent's chat. It sets itself up.

set up https://usegoro.ai/SKILL.md

Or plain HTTP

POST /v1/run

{
  "endpoint": "finance.history",
  "input": {
    "tickers": [
      "AAPL"
    ],
    "maxItems": 250,
    "operation": "historical"
  }
}

Run Historical price candles from your agent.

One balance for every tool in the catalog. Start with Build, $25 of credit for $19 a month.

Get started