{"uid":"cap_tFfuyd-84MNgAQZ9iWELG","slug":"coincap-simple-moving-average-sma-dda027c3","name":"CoinCap Simple Moving Average (SMA)","description":"CoinCap gives AI agents, apps, and developers real-time cryptocurrency market data.\n\nTwo ways to access:\n- **API key** — sign up at https://coincap.io and pass `Authorization: Bearer <key>` or `?apiKey=<key>`.\n- **Keyless x402** (agents) — the 10 `agentFriendly` endpoints accept per-call USDC payment on Base via the [x402 protocol](https://x402.gitbook.io/x402). No signup needed. See `/.well-known/x402.json` for the machine-readable payment catalog.","url":"https://rest.coincap.io/v3/agentFriendly/ta/%7Bslug%7D/sma","method":"GET","headers":{},"bodySchema":{"type":"object","required":["slug"],"properties":{"slug":{"type":"string"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dOHzlLLrOUC14qF_4K-gx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the Simple Moving Average (SMA) technical indicator for a cryptocurrency asset by slug","exampleAgentPrompt":"What's the current simple moving average for bitcoin on CoinCap? I want to see if it's trending up or down.","exampleUseCases":[{"title":"Crypto trend detection for trading bot","prompt":"Pull the SMA for ethereum right now — I need to know if the price is above or below its moving average before my bot places a trade."},{"title":"Dashboard indicator for portfolio tracker","prompt":"Fetch the simple moving average for solana so I can display the trend indicator on my crypto portfolio dashboard."},{"title":"Buy signal research for DCA strategy","prompt":"What does the SMA look like for bitcoin right now? I'm trying to figure out if it's a good time to add to my position."}],"resultDescription":"Returns a JSON object containing the Simple Moving Average (SMA) technical indicator values for the specified cryptocurrency asset, calculated from historical price data. Typically includes the SMA value(s) and associated metadata such as the asset slug and time period used.","failureModes":["Invalid or unknown asset slug returns an error or empty result","Network timeout if the real-time data feed is slow","x402 payment failure if USDC balance is insufficient or Base transaction fails","Missing Authorization header and no x402 payment results in 402 Payment Required","Rate limiting if too many requests are made in a short window"],"whenToPreferThis":"Choose this endpoint when you need a Simple Moving Average (SMA) technical indicator specifically for a cryptocurrency asset and want either keyless per-call USDC payment via x402 or API key access. Prefer this over MACD or other siblings when you need a straightforward smoothed price trend rather than momentum divergence. Ideal for agents that need lightweight, real-time technical analysis without a subscription signup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:45:00.259Z","isFirstParty":false}