# Liquid Agent: Polymarket XRP 5m Price to Beat

> Liquid Agent: Polymarket XRP 5m Price to Beat is a paid API for AI agents from api.liquidagent.ai, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-12).

Returns the official Chainlink TWAP price-to-beat, live XRP price, distance to target, seconds remaining, and Polymarket token/market prices for the current or a past 5-minute XRP Up/Down window.

## Facts

- Endpoint: GET https://api.liquidagent.ai/v1/polymarket/xrp-5m?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/liquid-agent-polymarket-xrp-5m-price-to-beat-248eb56e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__6ZbXLr_ubPzPxcGRhxbK

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 liquid-agent-polymarket-xrp-5m-price-to-beat-248eb56e
```

Example prompt: What's the official Chainlink price to beat for the current XRP 5-minute Up/Down window on Polymarket — and how far is the live XRP price from it right now?

## When to prefer this

Use this endpoint when you need the canonical, Chainlink-matched price-to-beat for Polymarket's XRP 5-minute Up/Down markets — especially when you need the exact TWAP figure that Polymarket uses for settlement, live distance tracking, or historical window lookups. Prefer this over raw Chainlink feeds when you need the data already matched to Polymarket's market structure and token IDs in a single call.

## Known failure modes

- Invalid or future unix timestamp returns error or empty result
- Window not yet started returns no data
- Network/oracle latency may cause stale live price
- Payment of 0.004 USDC via x402 required; missing payment returns 402 error
- Malformed query parameters return 400 bad request

## How this service works

Polymarket XRP 5m Up/Down in one call: the OFFICIAL price to beat (the 60 s Chainlink TWAP before the window, matched to the cent against Polymarket's results), the live Chainlink price and its distance from the price to beat, seconds left, token ids and the market's own prices. ?start=<unix> returns a past window's official settle and outcome. $0.002 USDC. Data, not financial advice.

## Output

A JSON object containing the market slug, asset (XRP), timeframe, seconds remaining, status (live/settled), the official price-to-beat (60-second Chainlink TWAP from before the window), the live Chainlink XRP price, the distance between live price and price-to-beat, Polymarket Up/Down token prices, and for past windows the official settlement outcome.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "market": {
   "slug": "xrp-updown-5m-1790652300",
   "asset": "XRP",
   "timeframe": "5m",
   "secondsLeft": 120
  },
  "status": "live",
  "distance": 55.93,
  "chainlink": {
   "price": 83140.29
  },
  "priceToBeat": 83084.36,
  "marketPrices": {
   "up": 0.925,
   "down": 0.075
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/liquid-agent-polymarket-xrp-5m-price-to-beat-248eb56e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.liquidagent.ai](https://www.zero.xyz/host/api.liquidagent.ai/llms.txt)
