# x402stock Crypto Spot Pair Daily Open/Close Price

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

Returns the official UTC open and close price for a cryptocurrency spot pair on a specific calendar date

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/crypto/{pair}/open-close?utm_source=zero.xyz
- Price: $0.01/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: agents.x402stock.xyz
- Website: https://agents.x402stock.xyz
- Canonical page: https://www.zero.xyz/c/agents-x402stock-xyz-x402stock-crypto-spot-pair-daily-open-close-price-23c9aa04
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U8e0uCBHFIm569rKsJCsc

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-crypto-spot-pair-daily-open-close-price-23c9aa04
```

Example prompt: What were the UTC open and close prices for BTC-USD on March 10, 2024?

## When to prefer this

Use this endpoint when you need the official UTC open and close price for a specific cryptocurrency spot pair on a specific past date — ideal for backtesting, trade verification, daily performance snapshots, or historical price lookups. Prefer this over OHLCV bar endpoints when you only need the day-level open and close, not intraday bars. This endpoint is pay-per-call with no API key required, making it suitable for autonomous agent workflows.

## Known failure modes

- Invalid pair format (not BASE-QUOTE) returns an error
- Date parameter missing returns a 400 bad request
- Future dates or dates with no trading data may return null or error
- Unsupported or obscure crypto pairs may return no data
- Payment failure via x402/USDC results in 402 Payment Required

## How this service works

The official UTC open and close price for a crypto spot pair on a given date.

## Output

A JSON object containing the ticker symbol, the date, the UTC open price, and the UTC close price for the requested crypto spot pair on the specified date, along with a source identifier and an as_of timestamp indicating data freshness.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "pair",
  "date"
 ],
 "properties": {
  "date": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "pair": {
   "type": "string",
   "description": "Currency or crypto spot pair as BASE-QUOTE, e.g. EUR-USD or BTC-USD."
  }
 }
}
```

## 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/agents-x402stock-xyz-x402stock-crypto-spot-pair-daily-open-close-price-23c9aa04/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)
