# Stellar Bid-Ask Spread Check

> Stellar Bid-Ask Spread Check 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).

Calculates the latest absolute and percentage bid-ask spread for Stellar (XLM-USD) or other Coinbase USD markets using live exchange data.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/demand-market-stellar-spread-check?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-bid-ask-spread-check-142158d5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nyGeXvt5THRxJeMOa-UfM

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-bid-ask-spread-check-142158d5 -d '<json body>'
```

Example prompt: What's the current bid-ask spread for Stellar XLM-USD right now — give me both the absolute dollar spread and the percentage spread?

## When to prefer this

Choose this endpoint when you need a quick, real-time bid-ask spread calculation for a Coinbase USD market pair — especially Stellar (XLM-USD) — and want both absolute and percentage values computed for you without having to manually subtract bid from ask. It is ideal for agents performing pre-trade liquidity checks, spread monitoring, or market condition analysis on Coinbase-listed assets.

## Known failure modes

- Invalid product ID returns an error — ensure the product exists on Coinbase (e.g. XLM-USD, not XLM-EUR)
- Coinbase API downtime may result in stale or unavailable data
- Extremely illiquid pairs may return zero or null bid/ask values
- Network or payment processing failures may prevent the $0.01 USDC charge from completing

## How this service works

Stellar Bid-ask spread check: Calculate the latest absolute and percentage bid-ask spread. Coinbase Exchange public USD market data; not investment advice.

## Output

Returns the latest bid price, ask price, absolute bid-ask spread (in USD), and percentage bid-ask spread for the requested Coinbase USD trading pair (defaulting to XLM-USD). Data is sourced from Coinbase Exchange public market feeds and is for informational purposes only.

## 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-bid-ask-spread-check-142158d5/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)
