Massive · Market Stocks

by Massive

GETBase

$0.01

per call · USD Coin on Base

Get the daily open, high, low, and close (OHLC) for the entire stocks/equities markets. Can't find what you're looking for? POST feedback to /feedback, no charge.

Endpoint

GET https://agent.massive.com/v2/aggs/grouped/locale/us/market/stocks/:date

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/v2/aggs/grouped/locale/us/market/stocks/:date", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agent.massive.com/v2/aggs/grouped/locale/us/market/stocks/:date?adjusted=true" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "adjusted": true,
  "queryCount": 3,
  "request_id": {
    "description": "A request id assigned by the server.",
    "type": "string"
  },
  "results": [
    {
      "T": "KIMpL",
      "c": 25.9102,
      "h": 26.25,
      "l": 25.91,
      "n": 74,
      "o": 26.07,
      "t": 1602705600000,
      "v": 4369,
      "vw": 26.0407
    },
    {
      "T": "TANH",
      "c": 23.4,
      "h": 24.763,
      "l": 22.65,
      "n": 1096,
      "o": 24.5,
      "t": 1602705600000,
      "v": 25933.6,
      "vw": 23.493
    },
    {
      "T": "VSAT",
      "c": 34.24,
      "h": 35.47,
      "l": 34.21,
      "n": 4966,
      "o": 34.9,
      "t": 1602705600000,
      "v": 312583,
      "vw": 34.4736
    }
  ],
  "resultsCount": 3,
  "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