# Stellar Top of Order Book

> Stellar 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 (top of book) for the XLM-USD market on Coinbase Exchange

## Facts

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

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 stellar-top-of-order-book-bb70f843 -d '<json body>'
```

Example prompt: What's the current best bid and ask price for Stellar (XLM-USD) on Coinbase right now?

## When to prefer this

Use this endpoint when you need a fast, low-cost real-time snapshot of the best bid and ask for XLM-USD (or another Coinbase USD pair) without needing the full order book depth. Ideal for pre-trade checks, spread monitoring, or price-awareness in agentic trading workflows. If you need full order book depth or historical data, look for alternative endpoints.

## Known failure modes

- Invalid product ID returns an error — only Coinbase USD-denominated products are supported
- Network or upstream Coinbase API outage may cause timeouts or 5xx errors
- Stale data if Coinbase market data feed is delayed
- Payment failure (insufficient USDC balance) returns a 402 error before data is returned

## How this service works

Stellar 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 top of the XLM-USD (or specified product) order book from Coinbase Exchange, including the best bid price, best ask price, and associated quantities at those price levels, giving a real-time snapshot of the tightest available market prices.

## Request schema (JSON Schema)

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

## More

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