# claw402 Alpaca Latest Bars (x402)

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

Returns the latest OHLCV bar data for one or more stock/crypto symbols via the Alpaca market data API, paid per-call with USDC using x402.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/alpaca/bars/latest
- Price: $0.002/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-latest-bars-x402-f1d23bd4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_keZN9_GFZKnOZ4Z8lvteu

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-latest-bars-x402-f1d23bd4
```

Example prompt: Get me the latest bar data for AAPL and TSLA from the Alpaca feed — I want the most recent OHLCV snapshot for both symbols.

## When to prefer this

Choose this endpoint when you need the latest single OHLCV bar for one or more stock or crypto symbols via Alpaca market data, and you want to pay per-call with USDC without registering for an API key — ideal for lightweight, wallet-based agent workflows that need current price snapshots.

## Known failure modes

- Invalid or unsupported symbol returns empty data array
- Missing required 'symbols' query parameter causes error
- Payment failure or insufficient USDC balance blocks the request
- Unsupported feed or currency enum value may cause rejection
- Market closed or no recent bar available may return empty results

## How this service works

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

## Output

A JSON object containing the latest OHLCV (open, high, low, close, volume) bar data for the requested symbol(s), returned as an array under a 'data' field with a status code.

## 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": {
      "feed": {
       "type": "string"
      },
      "symbols": {
       "type": "string"
      },
      "currency": {
       "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-latest-bars-x402-f1d23bd4/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)
