# x402stock Open/Close OHLCV Endpoint via ZeroClick

> x402stock Open/Close OHLCV Endpoint via ZeroClick is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns daily open, high, low, close, volume, pre-market, and after-hours price data for a given US stock or ETF ticker on a specific date

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/open-close/%7Bticker%7D
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-open-close-ohlcv-endpoint-via-zeroclick-b037e36f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cvtxxZlf0SAV08pDGNbB1

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-open-close-ohlcv-endpoint-via-zeroclick-b037e36f
```

Example prompt: What did AAPL open and close at on January 15, 2025, including its pre-market and after-hours prices? Use the split-adjusted data.

## When to prefer this

Choose this endpoint when you need end-of-day OHLCV data plus pre-market and after-hours prices for a specific US stock or ETF on a specific historical date. It is ideal for backtesting, performance analysis, or point-in-time price lookups. Prefer this over real-time quote endpoints when you need a complete daily price bar with extended-hours data for a single ticker and date combination. Pay-per-use USDC pricing means no subscription commitment.

## Known failure modes

- Invalid or non-existent ticker returns an error
- Non-trading day (weekend or holiday) may return no data or an error
- Future date returns no data
- Malformed date format causes a validation error
- Payment failure via x402/USDC results in 402 response and no data returned
- Ticker delisted before requested date may return empty or error response

## How this service works

Market and economic data for AI agents — US stocks, ETFs and options, forex, crypto and on-chain perps, energy commodities (crude, natural gas, gasoline), US and global macro (Fed funds, CPI/PCE, jobs, GDP, Treasury debt & yields, World Bank indicators), SEC filings, congressional trades, and market sentiment. No API keys, no accounts. Pay per request in USDC via x402 or MPP. This server is a pay-per-use, transparent proxy in front of x402stock's own API: it handles identity, payment, and proxying. Agents can purchase autonomously or with their human's approval. This document is the source of truth for agents: it lists the complete verified paid surface with each operation's live price in its x-payment-info. Endpoints not listed here are not part of the supported catalog. The live catalog at /manifest.json is authoritative for prices and any free included units (prices[].includedUnits) - some meters include free usage per account before any charge.

## Output

A JSON object containing the ticker symbol, source attribution, as-of timestamp, and a data block with date, open, high, low, close, volume, pre-market price (or null if unavailable), and after-hours price (or null if unavailable) for the requested trading day.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "date"
 ],
 "properties": {
  "date": {
   "type": "string"
  },
  "adjusted": {
   "type": "boolean"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ticker",
  "data",
  "source",
  "as_of"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "date",
    "open",
    "high",
    "low",
    "close",
    "volume",
    "pre_market",
    "after_hours"
   ],
   "properties": {
    "low": {
     "type": "number"
    },
    "date": {
     "type": "string"
    },
    "high": {
     "type": "number"
    },
    "open": {
     "type": "number"
    },
    "close": {
     "type": "number"
    },
    "volume": {
     "type": "number"
    },
    "pre_market": {
     "anyOf": [
      {
       "type": "number"
      },
      {
       "type": "null"
      }
     ]
    },
    "after_hours": {
     "anyOf": [
      {
       "type": "number"
      },
      {
       "type": "null"
      }
     ]
    }
   },
   "additionalProperties": false
  },
  "as_of": {
   "type": "string"
  },
  "source": {
   "type": "string",
   "const": "x402stock"
  },
  "ticker": {
   "type": "string"
  },
  "feedback": {
   "type": "object",
   "required": [
    "endpoint",
    "method",
    "free",
    "note"
   ],
   "properties": {
    "free": {
     "type": "boolean"
    },
    "note": {
     "type": "string"
    },
    "method": {
     "type": "string",
     "const": "POST"
    },
    "endpoint": {
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-open-close-ohlcv-endpoint-via-zeroclick-b037e36f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
