atr
[Trading Data API] Average True Range (Wilder's) + volatility-regime classification (low/normal/high/extreme by historical percentile). Crypto or stocks.
Example: /v1/atr?symbol=BTC&timeframe=1h&period=14
Use when you need volatility for position sizing or stops: Wilder ATR plus a low/normal/high/extreme regime. Not for implied volatility for BTC/ETH (use volatility).
Behavior: read-only. Priced via x402 (USDC on Base) or free with WICKEDAPI_API_KEY; with neither, you get HTTP 402 with the decoded price in payment_required (a price quote, not a failure).
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>"
},
"name": "atr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| class | No | Optional. stock|crypto for non-curated symbols. | |
| period | No | Optional. ATR period (default 14). | |
| symbol | Yes | Required. e.g. BTC, NVDA, SPY (or any with &class=). | |
| timeframe | No | Optional. 1m,5m,15m,30m,1h,2h,4h,6h,12h,1D,1W (default 1h). |