Time Series
time_seriesTwelve Data OHLC time series for a stock, forex, crypto, or ETF symbol. Requires symbol and interval (e.g. '1min', '1h', '1day'). Returns timestamped open/high/low/close + volume.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Sort order: "asc" or "desc" (default desc, newest first). | |
| symbol | Yes | Ticker/symbol. Stocks e.g. "AAPL", "MSFT"; forex "EUR/USD"; crypto "BTC/USD"; ETFs "SPY"; indices "IXIC". Comma-separate for a batch (e.g. "AAPL,MSFT"). | |
| end_date | No | Optional end of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS". | |
| exchange | No | Optional exchange filter (e.g. "NASDAQ", "NYSE", "Binance"). | |
| interval | Yes | Bar interval: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, or 1month. | |
| timezone | No | Optional timezone, e.g. "America/New_York" or "UTC". | |
| outputsize | No | Number of data points to return (1–5000, default 30). | |
| start_date | No | Optional start of range, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM:SS". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Response code | |
| status | No | Response status | |
| message | No | Response message |