# x402stock Open/Close Daily Price Endpoint

> x402stock Open/Close Daily Price Endpoint is a paid API for AI agents from agents.x402stock.xyz, paid per call via MPP, $0.01/call, status unknown (last checked 2026-09-09, last successful call 2026-09-02).

Returns official OHLCV data (open, close, high, low, volume) plus pre-market and after-hours prices for a US-listed stock ticker on a specific date.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/open-close/{ticker}
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-09
- Last successful call: 2026-09-02
- Success rate: 25% of calls made through Zero
- Activations on Zero: 4
- Provider: agents.x402stock.xyz
- Website: https://agents.x402stock.xyz
- Canonical page: https://www.zero.xyz/c/agents-x402stock-xyz-x402stock-open-close-daily-price-endpoint-2924b46f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3vWoUbD_yjxUCzHUUjzaY

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 agents-x402stock-xyz-x402stock-open-close-daily-price-endpoint-2924b46f
```

Example prompt: What were the official open, close, high, low, volume, pre-market, and after-hours prices for AAPL on March 15, 2024?

## When to prefer this

Use this endpoint when you need a single day's complete official price snapshot for a US-listed stock or ETF, including pre-market and after-hours prices, without needing an API key or account. Prefer this over multi-bar historical endpoints when only one specific date is required. Ideal for agents that need to autonomously pay per call in USDC without user-managed credentials.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error
- Date not in YYYY-MM-DD format causes a 400 validation error
- Requesting a date that is not a trading day (weekend or holiday) may return null or an error
- Future dates are not supported
- Payment failure via x402 results in a 402 Payment Required response
- Market data unavailable for very old or obscure tickers

## How this service works

Official open, close, high, low, volume, plus pre-market and after-hours prices for a ticker on a given date. 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 ticker symbol, the date, and a data block with open, high, low, close, volume, pre_market (nullable), and after_hours (nullable) prices for that trading day, plus a source identifier and an as_of timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ticker",
  "date"
 ],
 "properties": {
  "date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "ticker": {
   "type": "string",
   "description": "US-listed ticker symbol (uppercase), e.g. AAPL."
  },
  "adjusted": {
   "type": "boolean",
   "default": true
  }
 }
}
```

## 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/agents-x402stock-xyz-x402stock-open-close-daily-price-endpoint-2924b46f/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)
