AgentFriendly

Get Simple Moving Average for technical analysis

Changed on

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

get/agentFriendly/ta/{slug}/sma

Request

Path parameters

slugstring required

Asset slug (e.g., bitcoin)

Query parameters

windowinteger

SMA window in bars of fetchInterval

fetchInterval'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1'

Timeframe for price bars

Response

SMA data culled to 200 points

timestampinteger
dataPointsinteger

Changes

    • warning

      for the query request parameter window, the min was set to 1.00

    • info

      the endpoint scheme security apiKey was added to the API

    • info

      the endpoint scheme security x402 was added to the API

    • info

      added the non-success response with the status

    • info

      endpoint added