Compute moving averages (SMA, EMA, WMA, DEMA, TEMA, HMA)
technical-analysis_moving-averagesCompute SMA, EMA (SMA-seeded), WMA, DEMA, TEMA and Hull moving averages on caller-supplied OHLCV bars, on close or another price source, with warm-up length per series. Price $0.02 USDC. POST /api/v1/technical-analysis/moving-averages. An unpaid call returns the x402 payment terms and does not run.
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": {
"bars": "<bars>"
},
"name": "technical-analysis_moving-averages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | bars, array. Required. | |
| types | No | types, array. Required. | |
| period | No | period, integer, from 1 to 20000. Required. | |
| source | No | source, string, one of o, h, l, c, hl2, hlc3. Required. | c |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | params. Object. | |
| series | No | series. Object. | |
| warmup | No | warmup. Object. | |
| sources | No | sources. Array. | |
| limitations | No | limitations. Array. |