Massive · Open Close

by Massive

GETBase

$0.01

per call · USD Coin on Base

Get the open, close and afterhours prices of a stock symbol on a certain date. Can't find what you're looking for? POST feedback to /feedback, no charge.

Endpoint

GET https://agent.massive.com/v1/open-close/:stocksTicker/: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/v1/open-close/:stocksTicker/:date", {
  method: "GET",
});
const data = await res.json();
cURL
curl -X GET \
  "https://agent.massive.com/v1/open-close/:stocksTicker/:date?adjusted=true" \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "afterHours": 322.1,
  "close": 325.12,
  "from": "2023-01-09",
  "high": 326.2,
  "low": 322.3,
  "open": 324.66,
  "preMarket": 324.5,
  "status": "OK",
  "symbol": "AAPL",
  "volume": 26122646
}

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