# NEAR Protocol Top of Order Book

> NEAR Protocol 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 NEAR-USD public order book on Coinbase Exchange.

## Facts

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

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 near-protocol-top-of-order-book-b903ab47 -d '<json body>'
```

Example prompt: What are the current best bid and ask prices for NEAR-USD on Coinbase — I want to see the top of the order book right now?

## When to prefer this

Use this endpoint when you need real-time top-of-book NEAR-USD market data from Coinbase Exchange specifically — best for pre-trade price checking, spread monitoring, or any workflow requiring the current best bid/ask without needing the full order book depth. Prefer this over full order book endpoints when only the top level is needed, saving bandwidth and cost.

## Known failure modes

- Invalid product ID returns an error or empty response
- Market is closed or halted — data may be stale or unavailable
- Network timeout from the upstream Coinbase data feed
- Rate limiting if called too frequently without adequate delay
- Incorrect product format (e.g. 'NEAR/USD' instead of 'NEAR-USD') may cause a lookup failure

## How this service works

NEAR Protocol 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 (highest) bid price and best (lowest) ask price at the top of the NEAR-USD order book on Coinbase Exchange, along with any associated size or level metadata, reflecting the real-time public market state.

## Request schema (JSON Schema)

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

## More

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