# Massive x402 API – Stock Open/Close

> Massive x402 API – Stock Open/Close 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 the open, close, pre-market, and after-hours prices for a given US stock ticker on a specific date, paid per request via x402 micropayment.

## Facts

- Endpoint: GET https://agent.massive.com/v1/open-close/%7BstocksTicker%7D/%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-stock-open-close-2f9ccd89
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1IcpRUmah9z_zhlIpuxRe

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-stock-open-close-2f9ccd89
```

Example prompt: What were the open, close, pre-market, and after-hours prices for AAPL on January 9, 2023?

## When to prefer this

Choose this endpoint when you need daily open/close/pre-market/after-hours data for a single US equity ticker on a specific historical date, especially when you want no subscription or API key overhead — just pay $0.01 USDC per call via x402. Prefer it over subscription-based providers for ad-hoc, low-frequency lookups where per-request micropayment is acceptable.

## Known failure modes

- Invalid or unsupported ticker symbol returns an error or empty result
- Date outside market trading days (weekends, holidays) may return no data or an error
- Malformed date format (not YYYY-MM-DD) causes a validation error
- Payment not settled or insufficient USDC balance causes a 402 response with payment terms
- Dates too far in the future or before data availability window return no data

## 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

Returns a JSON object containing the stock symbol, date, open price, close price, high, low, volume, pre-market price, and after-hours price for the requested ticker and date. Also includes a status field ('OK' on success).

## 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",
      "stocksTicker"
     ],
     "properties": {
      "date": {
       "type": "string",
       "format": "date",
       "description": "The date of the requested open/close in the format YYYY-MM-DD."
      },
      "stocksTicker": {
       "type": "string",
       "description": "Specify a case-sensitive ticker symbol. For example, AAPL represents Apple Inc."
      }
     }
    },
    "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."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "low": 322.3,
  "from": "2023-01-09",
  "high": 326.2,
  "open": 324.66,
  "close": 325.12,
  "status": "OK",
  "symbol": "AAPL",
  "volume": 26122646,
  "preMarket": 324.5,
  "afterHours": 322.1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/massive-x402-api-stock-open-close-2f9ccd89/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)
