# HostDeFi Prediction Markets Feed

> HostDeFi Prediction Markets Feed is a paid API for AI agents from rpc.hostdefi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-01).

Returns a list of live prediction market listings with yes/no prices, volume, and settlement metadata

## Facts

- Endpoint: GET https://rpc.hostdefi.com/api/v1/x402/predict/markets?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-prediction-markets-feed-bc1990c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rOchvt3jhbzOHD55_pHax

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 hostdefi-prediction-markets-feed-bc1990c2
```

Example prompt: Pull the top 50 active prediction markets right now — I want to see the yes/no prices, 24-hour volume, and settlement dates for each one.

## When to prefer this

Use this endpoint when you need a live, paginated feed of prediction markets with yes/no prices and volume data, especially when integrating with a Polymarket-sourced dataset. Prefer it over direct Polymarket API calls when operating within an x402 micropayment-enabled agent workflow, or when you need a unified DeFi-native data source that co-locates with swap and bridging capabilities on the same host.

## Known failure modes

- Invalid 'limit' parameter (outside 1–500 range) may return a validation error
- Network or RPC node downtime may result in failed requests or empty responses
- Payment not attached or insufficient USDC (0.005 required per call) returns a 402 Payment Required
- Upstream Polymarket data unavailability may cause stale or empty market lists

## How this service works

HostDeFi is a Solana DEX with a free token safety scanner. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, 1% flat fee.

## Output

A JSON object with an 'ok' boolean, a count of results, the data source (e.g. 'polymarket'), and an array of market objects each containing: slug, title, yesUsd price, noUsd price, vol24h, endDate, marketId, points, firstTs, and lastTs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 1,
       "description": "Max markets returned (default 100)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "count": 1,
  "source": "polymarket",
  "markets": [
   {
    "slug": "will-it-settle",
    "noUsd": 0.39,
    "title": "Will it settle?",
    "lastTs": 0,
    "points": 120,
    "vol24h": 120000,
    "yesUsd": 0.62,
    "endDate": "2026-12-31",
    "firstTs": 0,
    "marketId": "0x…conditionId"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hostdefi-prediction-markets-feed-bc1990c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from rpc.hostdefi.com](https://www.zero.xyz/host/rpc.hostdefi.com/llms.txt)
