# claw402 Alpaca Options Bars

> claw402 Alpaca Options Bars is a paid API for AI agents from claw402.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Fetches historical OHLCV bar data for options contracts via Alpaca Markets, accessible with USDC micropayments using the x402 protocol.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/alpaca/options/bars
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-alpaca-options-bars-2d006165
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__Fz_BufZc80G3MntGjTMR

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 claw402-alpaca-options-bars-2d006165
```

Example prompt: Can you pull the 1-hour options bars for AAPL and TSLA from January 1 2025 to January 31 2025, limit 100 bars each?

## When to prefer this

Use this endpoint when you need historical options OHLCV bar data from Alpaca Markets without registering for an API key, preferring a pay-per-call USDC micropayment model via the x402 protocol. Ideal for lightweight, on-demand options data access without subscription commitments.

## Known failure modes

- No data returned for illiquid or invalid options symbols (empty data array)
- Payment failure if wallet has insufficient USDC balance
- Invalid timeframe parameter causes request rejection
- Start/end date range returns no data if outside market hours or market closed
- Symbol not found or not supported by Alpaca options data feed

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

Returns a JSON object with a status code and an array of historical options bar records (OHLCV data) for the requested symbols and timeframe.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string"
      },
      "limit": {
       "type": "string"
      },
      "start": {
       "type": "string"
      },
      "symbols": {
       "type": "string"
      },
      "timeframe": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-alpaca-options-bars-2d006165/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
