# Blockrun US Stock OHLC History – AMD

> Blockrun US Stock OHLC History – AMD is a paid API for AI agents from blockrun-web-vbsbhh7lea-uc.a.run.app, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Returns historical OHLC bar data (open, high, low, close, volume) for AMD stock at configurable resolutions over a specified time window

## Facts

- Endpoint: GET https://blockrun-web-vbsbhh7lea-uc.a.run.app/api/v1/stocks/us/history/AMD
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-us-stock-ohlc-history-amd-0ba4201e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R8yfSCQLymKeGib6B666x

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-us-stock-ohlc-history-amd-0ba4201e
```

Example prompt: Pull daily OHLC bars for AMD from January 1, 2025 to June 1, 2025 — I need the open, high, low, close, and volume for each day.

## When to prefer this

Choose this endpoint when you need structured OHLC candlestick bar data for AMD (or other US-listed equities via the same service) over a custom time window, especially for charting, backtesting, or technical analysis. It supports multiple resolutions from 1-minute to monthly and is priced at $0.001 per call, making it cost-effective for historical data pulls. Prefer this over real-time endpoints when you need multi-day or multi-month historical ranges rather than a single current price.

## Known failure modes

- Invalid or unknown ticker symbol returns an error
- Unix timestamps out of supported historical range may return empty bars array
- Missing required 'from' or 'to' query parameters causes a 400 error
- Invalid resolution enum value causes a 400 error
- Payment not provided or insufficient USDC causes a 402 Payment Required response
- Pyth data source unavailable may cause 503 or empty response

## How this service works

US Stock OHLC bars for AMD @ D

## Output

An array of OHLC bar objects, each containing bar start timestamp (Unix seconds), open, high, low, close prices, and volume for AMD, along with the symbol, resolution, and source (Pyth) metadata for the requested window.

## 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",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "integer",
       "description": "Window end (Unix seconds)."
      },
      "from": {
       "type": "integer",
       "description": "Window start (Unix seconds)."
      },
      "session": {
       "enum": [
        "pre",
        "post",
        "on"
       ],
       "type": "string",
       "description": "Optional US market session."
      },
      "resolution": {
       "enum": [
        "1",
        "5",
        "15",
        "60",
        "240",
        "D",
        "W",
        "M"
       ],
       "type": "string",
       "default": "D",
       "description": "Bar resolution (TradingView convention): 1/5/15/60/240 min, D day, W week, M month."
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "symbol",
    "resolution",
    "bars",
    "source"
   ],
   "properties": {
    "to": {
     "type": "integer"
    },
    "bars": {
     "type": "array",
     "items": {
      "type": "object",
      "required": [
       "t",
       "o",
       "h",
       "l",
       "c",
       "v"
      ],
      "properties": {
       "c": {
        "type": "number",
        "description": "Close"
       },
       "h": {
        "type": "number",
        "description": "High"
       },
       "l": {
        "type": "number",
        "description": "Low"
       },
       "o": {
        "type": "number",
        "description": "Open"
       },
       "t": {
        "type": "integer",
        "description": "Bar start (Unix seconds)"
       },
       "v": {
        "type": "number",
        "description": "Volume"
       }
      }
     }
    },
    "from": {
     "type": "integer"
    },
    "source": {
     "type": "string",
     "const": "pyth"
    },
    "symbol": {
     "type": "string",
     "example": "AAPL"
    },
    "resolution": {
     "type": "string",
     "example": "D"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-us-stock-ohlc-history-amd-0ba4201e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun-web-vbsbhh7lea-uc.a.run.app](https://www.zero.xyz/host/blockrun-web-vbsbhh7lea-uc.a.run.app/llms.txt)
