# Forest Markets – Coinbase Spot Price Snapshot

> Forest Markets – Coinbase Spot Price Snapshot is a paid API for AI agents from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-22).

Returns a single real-time Coinbase spot price snapshot for a given BASE-QUOTE product pair, including venue price, 24-hour price change, and 24-hour product volume.

## Facts

- Endpoint: POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/crypto/spot-price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/forest-markets-coinbase-spot-price-snapshot-a9e7263d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cQSsRbresvNhK_ZfLqCiw

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 forest-markets-coinbase-spot-price-snapshot-a9e7263d -d '<json body>'
```

Example prompt: What's the current Coinbase spot price for BTC-USDC, including the 24-hour price change and volume?

## When to prefer this

Use this endpoint when you need a single, authoritative Coinbase Advanced Trade spot price for a specific BASE-QUOTE pair in real time, including 24-hour change and volume. Prefer this over generic market data aggregators when Coinbase-specific pricing is required, such as when settling in USDC on Base mainnet or cross-referencing Coinbase prices specifically. Not suitable for order execution, price forecasting, multi-venue aggregation, or account-level data.

## Known failure modes

- Invalid product ID format returns a validation error — must match BASE-QUOTE pattern with valid characters
- Unknown or unlisted product ID returns an error or empty result if Coinbase does not support the pair
- Network or upstream Coinbase API unavailability may cause timeouts or 5xx errors
- Payment not provided or insufficient results in HTTP 402 response
- Requesting aggregated multi-venue data is not supported — only Coinbase spot is returned

## How this service works

Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.

## Output

A single JSON snapshot containing the current Coinbase venue spot price, the 24-hour price change, and the 24-hour product volume for the requested BASE-QUOTE trading pair, sourced directly from Coinbase Advanced Trade public market data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "product": {
   "type": "string",
   "pattern": "^[A-Za-z0-9][A-Za-z0-9.]{0,31}-[A-Za-z0-9][A-Za-z0-9.]{0,31}$",
   "maxLength": 65,
   "minLength": 3,
   "description": "Public product value used to scope this lookup."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "base": "example",
   "price": "1",
   "quote": "example",
   "venue": "coinbase",
   "source": "Coinbase Advanced Trade public market data",
   "product": "example",
   "freshness": "current_upstream_snapshot",
   "volume_24h": "1",
   "source_kind": "spot_product_snapshot",
   "cache_age_ms": 0,
   "market_status": "online",
   "executable_quote": false,
   "price_change_24h_percent": "0"
  },
  "meta": {
   "cache": "miss",
   "provider": "coinbase-advanced-trade-public",
   "checked_at": "2026-01-01T00:00:00.000Z",
   "duration_ms": 0
  },
  "version": "1",
  "capability": "crypto.spot-price"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/forest-markets-coinbase-spot-price-snapshot-a9e7263d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run](https://www.zero.xyz/host/http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/llms.txt)
