# x402stock Grouped Daily OHLCV Bars

> x402stock Grouped Daily OHLCV Bars is a paid API for AI agents from x402stock.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Returns aggregated OHLCV (open, high, low, close, volume, VWAP) bars for all US-listed stocks on a given trading date, paid per request via x402/USDC.

## Facts

- Endpoint: GET https://x402stock.vercel.app/api/v1/grouped-daily?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-grouped-daily-ohlcv-bars-89deea05
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bzq4F7cS-iObNp9Lz5STt

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 x402stock-grouped-daily-ohlcv-bars-89deea05
```

Example prompt: Pull the grouped daily OHLCV bars for every US-listed stock for June 2, 2025, with prices adjusted for splits and dividends.

## When to prefer this

Use this endpoint when you need a full market snapshot of all US stocks for a single trading date in one call, rather than querying individual tickers one at a time. Ideal for building screeners, backtests, or daily market summaries. Prefer this over per-ticker endpoints when breadth (all tickers at once) matters more than depth (detailed history for one ticker).

## Known failure modes

- Non-trading day requested — market was closed, returns empty results or error
- Future date requested — data not yet available
- Malformed date parameter — returns 400 bad request
- Payment not completed via x402 — returns 402 Payment Required
- Rate limit or provider outage — returns 5xx error
- Ticker data unavailable for illiquid or delisted symbols

## How this service works

US stock prices, snapshots, OHLC bars, fundamentals, corporate actions, technical indicators and news for AI agents. No API keys. No accounts. Pay per request in USDC via x402.

## Output

A JSON object containing a date field, as_of timestamp, total result count, data source label, an adjusted boolean flag, and an array of per-ticker objects each with open, high, low, close, VWAP, volume, trade count, ticker symbol, and bar timestamp — covering all US-listed equities for the requested trading date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2025-06-02",
  "as_of": "2025-06-02T00:00:00.000Z",
  "count": 1,
  "source": "massive",
  "results": [
   {
    "low": 200.12,
    "high": 202.13,
    "open": 200.28,
    "vwap": 201.05,
    "close": 201.7,
    "ticker": "AAPL",
    "volume": 35423294,
    "timestamp": "2025-06-02T04:00:00.000Z",
    "trade_count": 450000
   }
  ],
  "adjusted": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-grouped-daily-ohlcv-bars-89deea05/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.vercel.app](https://www.zero.xyz/host/x402stock.vercel.app/llms.txt)
