# Pyfile Toolkit – Prediction Market Odds

> Pyfile Toolkit – Prediction Market Odds is a paid API for AI agents from pyfile-agent.taile3ff35.ts.net:10000, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches real-time prediction market odds from Polymarket and Kalshi, including questions, outcomes, prices, volume, and liquidity, filtered by keyword.

## Facts

- Endpoint: GET https://pyfile-agent.taile3ff35.ts.net:10000/data/prediction
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pyfile-toolkit-prediction-market-odds-696b10a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_87fS21fktcKjh8C8lu5M7

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 pyfile-toolkit-prediction-market-odds-696b10a1
```

Example prompt: Search Polymarket and Kalshi for prediction markets related to 'Federal Reserve rate cut' and show me the top 5 results with their current odds, yes/no bid prices, volume, and liquidity.

## When to prefer this

Choose this endpoint when you need real-time, aggregated prediction market data from both Polymarket and Kalshi in a single call. Ideal for agents that need to compare odds across platforms, monitor market sentiment on geopolitical or economic events, or surface current crowd-sourced probabilities for a given topic without integrating separately with each exchange.

## Known failure modes

- No markets found for the given keyword — returns empty results list
- Invalid or missing query parameter — may return an error or empty response
- Limit parameter out of range — may default or error
- Upstream Polymarket or Kalshi API unavailable — may return partial results or error
- Rate limiting or payment failure — returns 402 or access denied

## How this service works

Prediction market odds: Polymarket (question, outcomes, prices, volume, liquidity) + Kalshi (ticker, yes/no bids, volume, open interest). ?q=<keyword>&limit=10

## Output

A list of prediction market results (up to the specified limit) from both Polymarket and Kalshi. Polymarket results include the market question, outcome options, current prices, trading volume, and liquidity. Kalshi results include the market ticker, yes/no bid prices, trading volume, and open interest.

## 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": {
      "q": {
       "type": "string"
      },
      "limit": {
       "type": "number"
      }
     }
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pyfile-toolkit-prediction-market-odds-696b10a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pyfile-agent.taile3ff35.ts.net:10000](https://www.zero.xyz/host/pyfile-agent.taile3ff35.ts.net%3A10000/llms.txt)
