# Uniswap Top of Order Book

> Uniswap 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 bid and ask prices from the Coinbase Exchange public order book for UNI-USD (or another Coinbase USD market).

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/demand-market-uniswap-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/uniswap-top-of-order-book-5d55df1d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eVLy7XRbanpO9JNA9lXLs

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 uniswap-top-of-order-book-5d55df1d -d '<json body>'
```

Example prompt: What's the current best bid and ask price for UNI-USD on Coinbase — can you pull the top of the order book right now?

## When to prefer this

Use this endpoint when you need a lightweight, real-time snapshot of the best bid/ask for UNI-USD (or another Coinbase USD market) without requiring a full order book depth feed. Prefer this over full order book endpoints when only the top-of-book spread or reference price is needed.

## Known failure modes

- Invalid product ID returns an error — only valid Coinbase USD pairs are accepted
- Service unavailable or rate-limited — retry after a short delay
- Stale data if upstream Coinbase Exchange feed is delayed
- Payment failure if x402 USDC payment is not processed correctly

## How this service works

Uniswap 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 best bid price and best ask price (top of order book) for the specified Coinbase USD trading pair, typically UNI-USD. This is public market data and not investment advice.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uniswap-top-of-order-book-5d55df1d/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)
