# Optimism Top of Order Book

> Optimism Top of Order Book is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Returns the best (top-level) bid and ask prices from the Coinbase Exchange public order book for the OP-USD trading pair.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/demand-market-optimism-orderbook-top?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/optimism-top-of-order-book-51853e7c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_X8FBAl_QTWtOtQUxX4-d3

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 optimism-top-of-order-book-51853e7c -d '<json body>'
```

Example prompt: What are the current best bid and ask prices for Optimism (OP-USD) on Coinbase right now?

## When to prefer this

Use this endpoint when you need a lightweight, low-cost snapshot of the current best bid/ask for OP-USD without fetching the full order book depth. It is ideal for quick price checks, spread monitoring, or triggering alerts based on top-of-book quotes for the Optimism token specifically.

## Known failure modes

- Invalid product ID returns an error or empty response
- Market temporarily unavailable due to Coinbase Exchange downtime
- Network timeout if the endpoint is under load
- Payment failure if the $0.01 USDC x402 payment is not properly submitted

## How this service works

Optimism Top of order book: Return the best bid and ask levels from the public order book. Coinbase Exchange public USD market data; not investment advice.

## Output

Returns the single best bid price and quantity and the single best ask price and quantity from the live Coinbase Exchange OP-USD order book, representing the tightest available quotes at the time of request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "product": {
   "type": "string",
   "default": "OP-USD",
   "description": "Coinbase USD product ID; defaults to OP-USD."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/optimism-top-of-order-book-51853e7c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
