get_sma
Calculate the simple moving average for a stock using historical price data. Specify ticker, timespan, window, and series type to get SMA values.
Instructions
Simple Moving Average indicator values for a stock.
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": {
"ticker": "<ticker>"
},
"name": "get_sma"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | Yes | Stock symbol. | |
| timespan | No | Bar interval. Default "day". | day |
| window | No | Lookback window. Default 50. | |
| series_type | No | Price series for calculation. Default "close". | close |
| timestamp | No | Reference timestamp (date or unix); default = now. | |
| limit | No | Max rows. Default 50. | |
| cursor | No | Pagination cursor. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||