Get Simple Moving Average for technical analysis
Changed onReturns SMA indicator data optimized for AI trading analysis, automatically sampled to 200 data points for efficient processing while maintaining trend accuracy. Preferred SMA tool — the /ta/{slug}/sma and /ta/{slug}/sma/latest variants are legacy; use this, or /ta/{slug}/allLatest for all indicators in one call. Subject to the shared TA rate pool; for many assets prefer /agentFriendly/full_assets_by_slug with includeTaData=true.
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- or API key in header Payment-Signature
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Asset slug (e.g., bitcoin)
Query parameters
SMA window in bars of fetchInterval
Timeframe for price bars
Response
SMA data culled to 200 points
Changes
- warning
for the
queryrequest parameterwindow, the min was set to1.00 - info
the endpoint scheme security
apiKeywas added to the API - info
the endpoint scheme security
x402was added to the API - info
added the non-success response with the status
- warning
- info
endpoint added
- info