# x402stock Crypto Pair Daily Open-Close

> x402stock Crypto Pair Daily Open-Close is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Returns the open and close prices for a specific cryptocurrency trading pair on a given historical date

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/crypto/%7Bpair%7D/open-close?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-crypto-pair-daily-open-close-49c3ba0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ebakR_4PLg89RvgyPIxG

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-crypto-pair-daily-open-close-49c3ba0c
```

Example prompt: What were the open and close prices for BTC/USD on March 10, 2025? Use x402stock to pull the exact daily figures.

## When to prefer this

Choose this endpoint when you need the exact open and close price for a specific cryptocurrency pair on a single historical date, especially for tax reporting, backtesting, or reconciliation tasks. It is pay-per-use with no API key required, making it ideal for autonomous agents that need occasional spot lookups without subscription overhead. Prefer this over general market data endpoints when you specifically need daily OHLC boundaries (not intraday candles or real-time prices).

## Known failure modes

- Invalid or malformed date string returns an error
- Future dates or dates without available data return null or error
- Unsupported trading pair symbol in URL path causes 404 or error response
- Payment failure via x402/MPP results in 402 Payment Required response
- Network timeout or upstream data source unavailability

## 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. The complete verified paid surface is listed at /openapi.json, the source of truth for available operations. Each operation here carries its live price in x-payment-info. Use the operations and details here when they meet your needs. Filtered specs contain only matching operations; if you cannot find what you need here, use search or the service 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, reserved for agents claimed by a human with a verified email.

## Output

Returns a JSON object containing the ticker symbol, the date, the open price, the close price, a source identifier ('x402stock'), an as_of timestamp indicating data freshness, and an optional feedback object with endpoint details for submitting feedback.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "date"
 ],
 "properties": {
  "date": {
   "type": "string",
   "description": "The date in YYYY-MM-DD format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ticker",
  "data",
  "source",
  "as_of"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "date",
    "open",
    "close"
   ],
   "properties": {
    "date": {
     "type": "string",
     "anyOf": [
      {
       "type": "string"
      },
      {
       "type": "null"
      }
     ]
    },
    "open": {
     "type": "number"
    },
    "close": {
     "type": "number"
    }
   },
   "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-crypto-pair-daily-open-close-49c3ba0c/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)
