Massive · Indicators EMA

by Massive

GETBase

$0.01

per call · USD Coin on Base

Get the exponential moving average (EMA) for a ticker symbol over a given time range. Can't find what you're looking for? POST feedback to /feedback, no charge.

Endpoint

GET https://agent.massive.com/v1/indicators/ema/:stockTicker

3

Calls / 30d

1

Unique payers / 30d

Aug 31

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agent.massive.com/v1/indicators/ema/:stockTicker", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agent.massive.com/v1/indicators/ema/:stockTicker?adjusted=true&expand_underlying=false&limit=10&order=desc&series_type=close&timespan=day&window=50" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "next_url": "https://api.massive.com/v1/indicators/ema/AAPL?cursor=YWN0aXZlPXRydWUmZGF0ZT0yMDIxLTA0LTI1JmxpbWl0PTEmb3JkZXI9YXNjJnBhZ2VfbWFya2VyPUElN0M5YWRjMjY0ZTgyM2E1ZjBiOGUyNDc5YmZiOGE1YmYwNDVkYzU0YjgwMDcyMWE2YmI1ZjBjMjQwMjU4MjFmNGZiJnNvcnQ9dGlja2Vy",
  "request_id": "a47d1beb8c11b6ae897ab76cdbbf35a3",
  "results": {
    "underlying": {
      "url": "https://api.massive.com/v2/aggs/ticker/AAPL/range/1/day/2003-01-01/2022-07-25"
    },
    "values": [
      {
        "timestamp": 1517562000016,
        "value": 140.139
      }
    ]
  },
  "status": "OK"
}

Payment details

Pay to0x525f6ddce9af7a7179d7696aabfcd5fcd15a21e6
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from Massive & similar services