# ToolOracle Prediction Market Integrity Gate

> ToolOracle Prediction Market Integrity Gate is a paid API for AI agents from tooloracle.io, paid per call via x402, $0.02/call, status down (last checked 2026-09-15).

Pre-trade integrity check for AI agents on Polymarket and Kalshi — returns ALLOW/WARN/BLOCK verdict, 0-100 risk score, sub-scores, and a signed evidence receipt

## Facts

- Endpoint: POST https://tooloracle.io/v2/integrity_gate
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tooloracle-io-de1d7397
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ticAeNhG0KvUgrs5TpR-h

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 tooloracle-io-de1d7397 -d '<json body>'
```

Example prompt: Before my agent places a trade on Polymarket's 'Will the Fed cut rates in July 2026?' market, run the ToolOracle integrity gate on it — give me the ALLOW/WARN/BLOCK verdict, the 0-100 risk level, all four sub-scores, and the signed evidence receipt.

## When to prefer this

Use this endpoint when an AI agent is about to execute or recommend a trade on Polymarket or Kalshi and needs a single authoritative pre-trade gate with a signed audit trail. Prefer this over generic market data APIs when regulatory compliance, CFTC rule pattern-matching, or downstream audit requirements matter. Ideal when the agent must justify its trading decision or when risk sub-scores (liquidity, resolution, event conflict) are needed separately.

## Known failure modes

- Unsupported platform submitted (not Polymarket or Kalshi) — returns error or BLOCK
- Market ID not found or expired — returns error with no verdict
- Payment not included or insufficient USDC — 402 Payment Required
- Malformed request body — 400 Bad Request
- ECDSA signing service temporarily unavailable — receipt may be absent
- Rate limit exceeded — 429 Too Many Requests

## How this service works

Pre-trade integrity gate for AI agents on prediction markets. ONE call returns ALLOW/WARN/BLOCK + risk_level 0-100 + sub-scores (market_integrity, liquidity, resolution, event_conflict) + risk_flags + ECDSA-signed evidence receipt. Supports Polymarket and Kalshi. Pattern-matches CFTC v. Van Dyke and Kalshi April 2026 disciplinary cases. The pre-trade question: is this market clean enough to touch?

## Output

Returns a verdict (ALLOW/WARN/BLOCK), an overall risk_level from 0-100, four sub-scores (market_integrity, liquidity, resolution, event_conflict), a list of risk_flags identifying specific issues, and an ECDSA-signed evidence receipt suitable for audit trails. References pattern-matched regulatory cases including CFTC v. Van Dyke.

## Example request

```json
{
 "input": {
  "body": {
   "outcome": "YES",
   "agent_id": "test-agent-001",
   "platform": "polymarket",
   "market_id": "0x123abc456def789",
   "timestamp": "2025-01-15T10:30:00Z",
   "trade_type": "buy",
   "amount_usdc": 100
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tooloracle-io-de1d7397/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tooloracle.io](https://www.zero.xyz/host/tooloracle.io/llms.txt)
