# BlockRun.AI US Stock Realtime Price – SPY

> BlockRun.AI US Stock Realtime Price – SPY is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the real-time price of the SPY ETF (S&P 500) from Pyth Network for US equity markets, with optional pre/post-market session support.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/stocks/us/price/SPY
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-us-stock-realtime-price-spy-a131e86e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s3PP6eT0KoWFobFaA8iO2

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 blockrun-ai-us-stock-realtime-price-spy-a131e86e
```

Example prompt: What's the current real-time price of SPY right now, including the confidence interval? Use regular trading hours session.

## When to prefer this

Prefer this endpoint when you need a real-time, oracle-backed price for SPY with a confidence score, especially in automated trading, portfolio valuation, or DeFi-adjacent workflows that already use Pyth Network data. It supports pre- and post-market sessions, making it suitable beyond regular trading hours. Choose it over general financial APIs when you need Pyth-sourced data with a feed ID for on-chain or crypto-native integrations.

## Known failure modes

- Invalid or unsupported ticker symbol returns error
- Market closed outside of requested session hours may return stale or no data
- Network latency from Pyth oracle may cause brief delays
- Incorrect session enum value (not 'pre', 'post', or 'on') returns validation error
- Payment failure (insufficient USDC) blocks the request via x402

## How this service works

US Stock realtime price for SPY

## Output

Returns a JSON object containing the SPY ticker symbol, real-time price (e.g. 273.1), a confidence interval, ISO-8601 UTC timestamp, Unix publish time, Pyth Hermes feed ID (0x-prefixed hex), asset type ('equity'), and source identifier ('pyth').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "path": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "example": "AAPL",
       "description": "NYSE/Nasdaq/AMEX ticker (AAPL, TSLA, NVDA, CRCL, SPY, …)."
      }
     }
    },
    "query": {
     "type": "object",
     "properties": {
      "session": {
       "enum": [
        "pre",
        "post",
        "on"
       ],
       "type": "string",
       "description": "Optional US market session. Omit for regular hours."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "symbol",
    "price",
    "confidence",
    "publishTime",
    "source"
   ],
   "properties": {
    "price": {
     "type": "number",
     "example": 273.1
    },
    "feedId": {
     "type": "string",
     "description": "Pyth Hermes feed ID (0x-prefixed hex)"
    },
    "source": {
     "type": "string",
     "const": "pyth"
    },
    "symbol": {
     "type": "string",
     "example": "AAPL"
    },
    "assetType": {
     "enum": [
      "equity",
      "crypto",
      "fx",
      "metal"
     ],
     "type": "string"
    },
    "timestamp": {
     "type": "string",
     "description": "ISO-8601 UTC"
    },
    "confidence": {
     "type": "number",
     "example": 0.15
    },
    "publishTime": {
     "type": "integer",
     "description": "Unix seconds"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-ai-us-stock-realtime-price-spy-a131e86e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
