fetch_sma
[Personal research only] Fetch Simple Moving Average (SMA) technical indicator time series with customizable time periods.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"symbol": "<symbol>",
"interval": "<interval>",
"time_period": "<time_period>"
},
"name": "fetch_sma"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA') for which to calculate Simple Moving Average | |
| datatype | No | Response data type. | json |
| end_date | No | Optional end date filter in YYYY-MM-DD format (e.g., '2024-12-31'). | |
| interval | Yes | Time interval for data points. | |
| start_date | No | Optional start date filter in YYYY-MM-DD format (e.g., '2024-01-01'). | |
| series_type | No | Price data to use for calculation. | close |
| time_period | Yes | Number of data points to use for moving average calculation (e.g., 20 for 20-day SMA) | |
| max_data_points | No | Maximum number of time series data points to return. |