$0.01
per call · USD Coin on Base
Get the most up-to-date market data for a single traded stock ticker. Note: Snapshot data is cleared at 3:30am EST and gets populated as data is received from the exchanges. This can happen as early as 4am EST. Can't find what you're looking for? POST feedback to /feedback, no charge.
Endpoint
GET https://agent.massive.com/v2/snapshot/locale/us/markets/stocks/tickers/:stocksTicker18
Calls / 30d
6
Unique payers / 30d
Sep 5
Last called
exact
Payment scheme
Call this service
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/snapshot/locale/us/markets/stocks/tickers/:stocksTicker", {
method: "GET",
});
const data = await res.json();curl -X GET \
"https://agent.massive.com/v2/snapshot/locale/us/markets/stocks/tickers/:stocksTicker" \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"request_id": "657e430f1ae768891f018e08e03598d8",
"status": "OK",
"ticker": {
"day": {
"c": 120.4229,
"dv": "28727868.0",
"h": 120.53,
"l": 118.81,
"o": 119.62,
"v": 28727868,
"vw": 119.725
},
"lastQuote": {
"P": 120.47,
"S": 4,
"p": 120.46,
"s": 8,
"t": 1605195918507251700
},
"lastTrade": {
"c": [
14,
41
],
"ds": "236.0",
"i": "4046",
"p": 120.47,
"s": 236,
"t": 1605195918306274000,
"x": 10
},
"min": {
"av": 28724441,
"c": 120.4201,
"dav": "28724441.0",
"dv": "270796.0",
"h": 120.468,
"l": 120.37,
"n": 762,
"o": 120.435,
"t": 1684428720000,
"v": 270796,
"vw": 120.4129
},
"prevDay": {
"c": 119.49,
"h": 119.63,
"l": 116.44,
"o": 117.19,
"v": 110597265,
"vw": 118.4998
},
"ticker": "AAPL",
"todaysChange": 0.98,
"todaysChangePerc": 0.82,
"updated": 1605195918306274000
}
}Payment details
0x525f6ddce9af7a7179d7696aabfcd5fcd15a21e6USD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Market Data and the homepage with a featured placement.
More from Massive & similar services
Massive · Reference News
agent.massive.com
Get the most recent news articles relating to a stock ticker symbol, including a summary of the article and a link to the original source. Can't find what you're looking for? POST feedback to /feedback, no charge.
Massive · Reference Tickers
agent.massive.com
Get a single ticker supported by Massive. This response will have detailed information about the ticker and the company behind it. Can't find what you're looking for? POST feedback to /feedback, no charge.
Massive · Ticker Range
agent.massive.com
Get aggregate bars for a stock over a given date range in custom time window sizes. For example, if timespan = ‘minute’ and multiplier = ‘5’ then 5-minute bars will be returned. Can't find what you're looking for? POST feedback to /feedback, no charge.