Get the open, close and afterhours prices of a stock symbol on a certain date
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.
10000 (raw units)
price
3
calls / 30d
1
unique payers
2026-09-04
updated
Provider
agent.massive.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x525f6dDcE9aF7a7179D7696aaBfCd5FCd15a21e6",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "10000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"method": "GET",
"pathParams": {
"date": "2026-08-03",
"stocksTicker": "AAPL"
},
"queryParams": {
"adjusted": true
},
"type": "http"
},
"output": {
"example": {
"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
},
"type": "json"
}
},
"routeTemplate": "/v1/open-close/:stocksTicker/:date",
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"date": {
"description": "The date of the requested open/close in the format YYYY-MM-DD.",
"format": "date",
"type": "string"
},
"stocksTicker": {
"description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc.",
"type": "string"
}
},
"required": [
"date",
"stocksTicker"
],
"type": "object"
},
"queryParams": {
"properties": {
"adjusted": {
"description": "Whether or not the results are adjusted for splits. By default, results are adjusted. Set this to false to get results that are NOT adjusted for splits.",
"type": "boolean"
}
},
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://agent.massive.com/v1/open-close/:stocksTicker/:date" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://agent.massive.com/v1/open-close/:stocksTicker/:date");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://agent.massive.com/v1/open-close/:stocksTicker/:date")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/6796.json, and this resource appears in /discovery/resources and /discovery/search.