# OnchainExpat x402 Stock Quote API

> OnchainExpat x402 Stock Quote API is a paid API for AI agents from x402.onchainexpat.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Fetches a real-time stock price quote for a given ticker symbol via pay-per-request x402 micropayment protocol

## Facts

- Endpoint: POST https://x402.onchainexpat.com/api/x402-tools/stocks/quote
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchainexpat-x402-stock-quote-api-8fc12349
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2FSpyQBgRJHqF1drSZ-Cv

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 onchainexpat-x402-stock-quote-api-8fc12349 -d '<json body>'
```

Example prompt: What's the current stock price for NVDA?

## When to prefer this

Choose this endpoint when you need a real-time stock price quote via a pay-per-request micropayment model (x402/USDC) without a subscription, especially useful for AI agents that need on-demand financial data with per-call billing rather than a monthly API key plan.

## Known failure modes

- Invalid or unrecognized ticker symbol returns an error response
- Payment failure or insufficient USDC balance prevents request from being fulfilled
- Market closed or after-hours may return stale or unavailable quote data
- Malformed POST body missing the ticker parameter returns a validation error
- Rate limiting or service downtime returns a 5xx error

## How this service works

Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol

## Output

Returns a JSON object containing the real-time stock quote for the requested ticker, including current price and associated market metadata such as symbol, price, change, and volume indicators.

## Example request

```json
{
 "symbol": "AAPL"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "symbol"
 ],
 "properties": {
  "symbol": {
   "type": "string",
   "description": "Stock ticker symbol, e.g. 'AAPL', 'TSLA', 'GOOGL'"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "price": {
   "type": "number"
  },
  "cached": {
   "type": "boolean"
  },
  "change": {
   "type": "number"
  },
  "symbol": {
   "type": "string"
  },
  "volume": {
   "type": "integer"
  },
  "change_pct": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchainexpat-x402-stock-quote-api-8fc12349/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.onchainexpat.com](https://www.zero.xyz/host/x402.onchainexpat.com/llms.txt)
