# HostDeFi Prediction Market Feed

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

Returns a ranked list of live prediction market listings with YES/NO prices, 24h volume, and end dates sourced from Polymarket.

## Facts

- Endpoint: GET https://hostdefi.com/api/v1/x402/predict/markets
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hostdefi-prediction-market-feed-df96172e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sxt-xegWPIOONr4bl3SbG

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-market-feed-df96172e
```

Example prompt: Pull the top 50 most active prediction markets right now — I want to see the YES and NO prices, 24-hour volume, and when each market closes.

## When to prefer this

Choose this endpoint when you need a live, paginated feed of prediction market listings with current YES/NO prices and volume data sourced from Polymarket, especially via an x402 micropayment-compatible API. Prefer this over scraping Polymarket directly when you need a clean JSON API with risk scoring context from HostDeFi's broader DeFi platform.

## Known failure modes

- Invalid limit parameter (outside 1–500 range) returns a validation error
- Payment not included or insufficient USDC results in HTTP 402 Payment Required
- Upstream Polymarket data unavailable causes empty or error response
- Rate limiting if too many requests are made in quick succession

## How this service works

HostDeFi is a non-custodial Solana DEX. Best-route swaps through Jupiter, EVM trading across 7 chains, native bridging, and live token risk grades. No KYC, no accounts, no custody.

## Output

A JSON object with a boolean ok flag, a count of returned markets, the source name (e.g. 'polymarket'), and an array of market objects each containing: slug, title, yesUsd price, noUsd price, vol24h (24-hour dollar volume), endDate, firstTs, lastTs, points score, and marketId (condition ID).

## 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-market-feed-df96172e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hostdefi.com](https://www.zero.xyz/host/hostdefi.com/llms.txt)
