# Layer Prediction Market Cross-Venue Matcher

> Layer Prediction Market Cross-Venue Matcher is a paid API for AI agents from uselayer.sh, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-18).

Given a prediction market on one venue (Kalshi, Polymarket, Polymarket US, Hyperliquid, or Novig), finds the matching market on another venue along with a confidence score and live prices from both sides.

## Facts

- Endpoint: GET https://uselayer.sh/v0/match?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/layer-prediction-market-cross-venue-matcher-c61ff1af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j9F3_U3sAeXr8lT6CTTJY

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 layer-prediction-market-cross-venue-matcher-c61ff1af
```

Example prompt: Can you find the matching Kalshi market for Polymarket's NBA Lakers vs Celtics game market 'aec-nba-lal-bos-2026-11-08', and show me the live bid/ask prices on both venues?

## When to prefer this

Use this endpoint when you need to identify whether a specific prediction market listed on one venue (e.g. Kalshi) has a counterpart on another supported venue (e.g. Polymarket), especially when you want live cross-venue price comparison or are hunting for arbitrage opportunities. Prefer this over manual search when you already have a market ID and need fast, structured cross-venue data with confidence scoring.

## Known failure modes

- Market ID not found on the source venue — returns empty results array
- No matching market found on the target venue — returns empty results
- Invalid venue enum value — returns 400 validation error
- Market has been resolved/closed and prices are unavailable
- Confidence score is low, indicating a fuzzy or uncertain match
- Rate limiting or payment failure via x402 — returns 402 or 429

## How this service works

Find the same prediction market on another venue (Kalshi, Polymarket, Polymarket US, Hyperliquid, Novig): its twin, how confident the match is, and both venues' live prices.

## Output

Returns an array of match results, each containing: the source market (venue + market ID), the matched market (venue + market ID), a confidence score (0-1), a match tier (e.g. 'human_verified'), a 'side' field indicating match direction ('same'), and optionally live bid/ask prices with sizes from both venues as of a timestamp.

## 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",
     "required": [
      "venue",
      "market_id"
     ],
     "properties": {
      "with": {
       "type": "string",
       "description": "For a Kalshi market: which venue to find its twin on"
      },
      "venue": {
       "enum": [
        "kalshi",
        "polymarket",
        "polymarket_us",
        "hyperliquid",
        "novig"
       ],
       "type": "string"
      },
      "prices": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string"
      },
      "market_id": {
       "type": "string",
       "description": "The market's id on that venue (Kalshi ticker, Polymarket conditionId or slug, ...)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "side": "same",
    "tier": "human_verified",
    "prices": {
     "as_of": "2026-11-07T18:00:00Z",
     "kalshi": {
      "yes": {
       "ask": {
        "size": 120,
        "price": 0.42
       },
       "bid": {
        "size": 300,
        "price": 0.41
       }
      }
     },
     "polymarket_us": {
      "yes": {
       "ask": {
        "size": 200,
        "price": 0.44
       },
       "bid": {
        "size": 80,
        "price": 0.43
       }
      }
     }
    },
    "checked_at": "2026-11-07T18:00:00Z",
    "confidence": 1,
    "source_market": {
     "venue": "polymarket_us",
     "market_id": "aec-nba-lal-bos-2026-11-08"
    },
    "matched_market": {
     "venue": "kalshi",
     "market_id": "KXNBAGAME-26NOV08LALBOS-LAL"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/layer-prediction-market-cross-venue-matcher-c61ff1af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from uselayer.sh](https://www.zero.xyz/host/uselayer.sh/llms.txt)
