# Liquid Agent: Polymarket BTC 5m Price to Beat

> Liquid Agent: Polymarket BTC 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 BTC price, distance from target, seconds remaining, and Polymarket market prices for the current (or a past) BTC 5-minute Up/Down window.

## Facts

- Endpoint: GET https://api.liquidagent.ai/v1/polymarket/btc-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-btc-5m-price-to-beat-5a72d173
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MY6D1jUhRI5LhxEYUu8ix

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-btc-5m-price-to-beat-5a72d173
```

Example prompt: What's the current BTC price to beat on Polymarket's 5-minute up/down market right now — show me the Chainlink TWAP, how far the live price is from it, and how many seconds are left in this window?

## When to prefer this

Use this endpoint when you need the exact, officially-matched Chainlink TWAP price-to-beat for Polymarket's BTC 5-minute Up/Down market — not just a raw price feed. It is the single authoritative source for the reference price Polymarket uses to settle results, combined with live price, distance, time remaining, and market token prices in one call. Prefer this over generic price feeds when you need settlement-grade accuracy aligned to Polymarket's own methodology.

## Known failure modes

- Invalid or future unix timestamp in ?start= returns an error or empty result
- Market not yet opened for the current window returns no data
- Chainlink feed latency may cause brief staleness in the live price
- Network or API downtime returns a 5xx error
- Payment of 0.004 USDC not provided or failed results in 402 Payment Required

## How this service works

Polymarket BTC 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, timeframe, seconds left in the window, live status, the official Chainlink TWAP price-to-beat, the current Chainlink BTC price, the distance (in USD) between the live price and the price-to-beat, and Polymarket's current up/down token prices. For historical queries (with ?start= parameter), returns the settled price-to-beat and outcome for that window.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "market": {
   "slug": "btc-updown-5m-1790652300",
   "asset": "BTC",
   "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-btc-5m-price-to-beat-5a72d173/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)
