---
title: "Latest SMA datapoint"
method: GET
path: "/ta/{slug}/sma/latest"
tags: ["Technical Analysis"]
---

# Latest SMA datapoint

`GET /ta/{slug}/sma/latest`

## Request

- Base URL: `https://rest.coincap.io/v3`
- URL: `https://rest.coincap.io/v3/ta/{slug}/sma/latest`
- Auth: one of:
  - HTTP bearer
  - API key in query parameter `apiKey`
- TypeScript: <https://skmtc.dev/coincap/apis/coincap-api/docs/ta/:slug/sma/latest/get.ts> (a function with typed inputs; its response is checked against the schema)

LEGACY — 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.

## Path parameters

- `slug` string, required

## Query parameters

- `start` integer
- `end` integer
- `window` integer
- `fetchInterval` 'm1' | 'm5' | 'm15' | 'm30' | 'h1' | 'h2' | 'h6' | 'h12' | 'd1'
- `includeOriginal` string

## Response `200`

Latest SMA datapoint

## Changes

- **2026-09-01** `e3d3739c2c03`: 1 warning, 2 info
  - for the `query` request parameter `window`, the min was set to `1.00`
  - the endpoint scheme security `apiKey` was added to the API
  - the endpoint scheme security `bearerAuth` was added to the API

[Operation history](https://skmtc.dev/coincap/apis/coincap-api/changes/ta/:slug/sma/latest/get.md)

---

[API](https://skmtc.dev/coincap/apis/coincap-api.md) - [All operations](https://skmtc.dev/coincap/apis/coincap-api/llms.txt) - [OpenAPI document](https://skmtc.dev/coincap/apis/coincap-api/revisions/e3d3739c2c03?raw)
