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.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "AAPL",
"interval": "1h"
},
"name": "time_series"
}
}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". Comma-separate for a batch (e.g. "AAPL,MSFT"). Market indices (SPX, N225, ...) need a Grow-or-higher Twelve Data key passed via _apiKey, the shared key cannot quote them. | |
| 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 |