# x402stock.xyz Grouped Daily OHLCV

> x402stock.xyz Grouped Daily OHLCV is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns end-of-day OHLCV bars for every US-listed equity ticker on a single specified date in one API call.

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/grouped-daily
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-45d7d419
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9MJMB10pr93tcpmKLrlcA

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-xyz-45d7d419
```

Example prompt: Pull the end-of-day OHLCV bars for every US-listed stock on 2024-11-15, using adjusted prices.

## When to prefer this

Use this endpoint when you need end-of-day price data for the entire US equity market on a single date in one call, rather than fetching individual tickers one by one. Ideal for backtesting, portfolio valuation snapshots, screening, or bulk data ingestion pipelines. Prefer this over single-ticker endpoints when coverage across all tickers is needed for a given date.

## Known failure modes

- Missing required 'date' query parameter returns an error
- Date formatted incorrectly (not YYYY-MM-DD) returns a validation error
- Date falls on a weekend or market holiday — may return empty results array
- Future date requested — no data available yet
- Payment not included or insufficient USDC — returns 402 Payment Required

## How this service works

End-of-day OHLCV bars for every US-listed ticker on a single date; one call returns the entire market. Pass `?date=YYYY-MM-DD` (required). From x402stock, a pay-per-call market & economic data API for AI agents. No API key or account; pay in USDC via x402.

## Output

A JSON object containing the queried date, an as-of timestamp, a count of results, the data source, whether prices are adjusted, and an array of OHLCV records — each with ticker, open, high, low, close, volume, VWAP, trade count, and timestamp — covering all US-listed equities that traded on that day.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "date": "2024-11-15",
   "adjusted": true
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "date",
      "adjusted"
     ],
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
      },
      "adjusted": {
       "type": "boolean",
       "default": true
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "source",
      "as_of",
      "date",
      "count",
      "results"
     ],
     "properties": {
      "date": {
       "type": "string"
      },
      "as_of": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "source": {
       "type": "string",
       "const": "x402stock"
      },
      "results": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "ticker",
         "open",
         "high",
         "low",
         "close",
         "volume",
         "vwap",
         "trade_count",
         "timestamp"
        ],
        "properties": {
         "low": {
          "type": "number"
         },
         "high": {
          "type": "number"
         },
         "open": {
          "type": "number"
         },
         "vwap": {
          "anyOf": [
           {
            "type": "number"
           },
           {
            "type": "null"
           }
          ]
         },
         "close": {
          "type": "number"
         },
         "ticker": {
          "type": "string"
         },
         "volume": {
          "type": "number"
         },
         "timestamp": {
          "anyOf": [
           {
            "type": "string"
           },
           {
            "type": "null"
           }
          ]
         },
         "trade_count": {
          "anyOf":
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "date": "2025-06-02",
  "as_of": "2025-06-02T00:00:00.000Z",
  "count": 1,
  "source": "x402stock",
  "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-xyz-45d7d419/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402stock.xyz](https://www.zero.xyz/host/x402stock.xyz/llms.txt)
