technicalIndicators_sma
Calculate Simple Moving Average (SMA) for stocks using price data to identify trends and support trading decisions with Alpha Vantage financial data.
Instructions
Simple Moving Average (SMA)
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>",
"series_type": "<series_type>"
},
"name": "technicalIndicators_sma"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | The stock symbol (e.g., "IBM"). | |
| interval | Yes | Time interval (e.g., "daily", "60min", "weekly"). Check Alpha Vantage docs for valid intervals per indicator. | |
| datatype | No | Data format for the response. | json |
| month | No | Specific month for intraday intervals (YYYY-MM format). | |
| time_period | Yes | Number of data points used to calculate the indicator. | |
| series_type | Yes | The desired price type. |