Technical Analysis
Full SMA series
Changed onLEGACY — prefer /agentFriendly/ta/{slug}/sma (agent-optimized output) or /ta/{slug}/allLatest for all indicators at once. Use this legacy endpoint only when you need a custom start/end range or non-default periods — the agentFriendly variant computes a fixed recent window.
get/ta/{slug}/sma
Request
- Base URLhttps://rest.coincap.io/v3
- Auth
- HTTP bearer
- or API key in query parameter apiKey
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
slugstring required
Asset slug (e.g. bitcoin)
Query parameters
startinteger
Start timestamp in ms
endinteger
End timestamp in ms
windowinteger
SMA window in bars of fetchInterval (default: 5)
fetchInterval'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1'
Timeframe for price bars
includeOriginalstring
Include original price data
Response
Full SMA series
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
bearerAuthwas added to the API
- warning