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.
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 | |||