# Massive x402 API – Grouped Daily Aggregates (US Stocks)

> Massive x402 API – Grouped Daily Aggregates (US Stocks) is a paid API for AI agents from agent.massive.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns grouped daily OHLCV bar data for all US stocks on a given date, purchased per-request via x402 micropayment with no account or API key required.

## Facts

- Endpoint: GET https://agent.massive.com/v2/aggs/grouped/locale/us/market/stocks/%7Bdate%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/massive-x402-api-grouped-daily-aggregates-us-stocks-e769b515
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cn1cVmSJjaz2yc8ajAm9t

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability massive-x402-api-grouped-daily-aggregates-us-stocks-e769b515
```

Example prompt: Pull the grouped daily OHLCV bars for all US stocks on October 14, 2020 — include OTC securities and use split-adjusted prices.

## When to prefer this

Choose this endpoint when you need daily OHLCV bar data for the entire US equities market in a single call and want to avoid subscription sign-up or API key management. It is ideal for one-off queries, agentic workflows that pay per use via x402 micropayments, and scenarios where cost-per-call ($0.01 USDC) is preferable to a recurring subscription. Prefer alternatives if you need intraday bars, streaming data, or data for markets outside the US.

## Known failure modes

- 402 Payment Required – payment not yet settled or x402 handshake not completed
- Invalid date format – date path parameter malformed or not a valid trading day
- No data available – market closed on that date (weekend/holiday)
- Future date requested – data not yet available
- Network timeout during payment settlement

## How this service works

US stock market data, sold per request over x402. Every path here answers 402 with the payment terms in the PAYMENT-REQUIRED header, and answers with the data once the payment settles. No account, no API key, no subscription.

## Output

A JSON object containing an array of daily aggregate bars for every US stock traded on the requested date. Each bar includes ticker symbol (T), open (o), high (h), low (l), close (c), volume (v), volume-weighted average price (vw), number of transactions (n), and Unix millisecond timestamp (t). Also returns whether results are adjusted, the total results count, and a server-assigned request ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "date"
     ],
     "properties": {
      "date": {
       "type": "string",
       "description": "The beginning date for the aggregate window."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "adjusted": {
       "type": "boolean",
       "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."
      },
      "include_otc": {
       "type": "boolean",
       "description": "Include OTC securities in the response. Default is false (don't include OTC securities)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "OK",
  "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
   }
  ],
  "adjusted": true,
  "queryCount": 3,
  "request_id": {
   "type": "string",
   "description": "A request id assigned by the server."
  },
  "resultsCount": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/massive-x402-api-grouped-daily-aggregates-us-stocks-e769b515/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.massive.com](https://www.zero.xyz/host/agent.massive.com/llms.txt)
