Marketdata Candles
marketdata_candlesGet historical OHLCV candles for a stock symbol at a given resolution ("D" daily, "H" hourly, "5" for 5-minute, etc.). Provide a from/to date range. Example: marketdata_candles({ resolution: "D", symbol: "AAPL", from: "2026-01-01", to: "2026-06-30", _apiKey: "your-key" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date (YYYY-MM-DD), inclusive. Optional. | |
| from | No | Start date (YYYY-MM-DD), inclusive. Optional. | |
| symbol | Yes | Stock ticker symbol, e.g. "AAPL". | |
| _apiKey | Yes | Market Data App API token. Get one at https://www.marketdata.app/pricing/ | |
| countback | No | Return this many candles counting back from `to` (mutually exclusive with `from`). Optional. | |
| resolution | No | Candle resolution: "D" (daily), "W" (weekly), "M" (monthly), "H" (hourly), or a minute count like "1", "5", "15". Defaults to "D". |