# claw402 Alpaca Latest Trades API

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

Fetches the latest trades for specified stock symbols from Alpaca Markets via x402 USDC micropayment gateway

## Facts

- Endpoint: GET https://claw402.ai/api/v1/alpaca/trades/latest
- 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/claw402-alpaca-latest-trades-api-2798d10c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tp9bM0_TT8zCzKGp12PN5

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-trades-api-2798d10c
```

Example prompt: What are the latest trades for AAPL and TSLA? Pay with my crypto wallet — I don't want to register for an API key.

## When to prefer this

Choose this endpoint when you need latest trade data for US equities from Alpaca Markets without registering for an API key or managing API credentials, and you can pay per-call in USDC via an x402-compatible crypto wallet. Ideal for agents that need lightweight, pay-as-you-go market data access.

## Known failure modes

- Payment insufficient or wallet has insufficient USDC balance — 402 Payment Required
- Invalid or unsupported symbol names — empty data array or error code
- Invalid feed type specified — may return error or empty results
- Rate limiting or gateway timeout — 5xx error from claw402 or vergex.trade backend
- Symbol not found on Alpaca — empty data array with code 0

## 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 code and a data array containing the most recent trade records for the requested symbols, including price, timestamp, and other trade details from Alpaca's data feed.

## 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-trades-api-2798d10c/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)
