get_stock_candles
Retrieve historical candlestick data with open, high, low, and close prices for any stock by symbol, resolution, and date range.
Instructions
Get historical price data (candles) for a stock.
Note: This is a premium feature, your API key may not have access to this feature.
Args:
symbol: The stock symbol (e.g., AAPL for Apple Inc.)
resolution: Time interval between data points. Supported values: 1, 5, 15, 30, 60, D, W, M (minutes, day, week, month)
from_time: Start time in YYYY-MM-DD format or Unix timestamp
to_time: End time in YYYY-MM-DD format or Unix timestamp
Returns:
str: Historical price data in JSON format with open, high, low, close values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| to_time | No | ||
| from_time | No | ||
| resolution | No | D |