# Prediction Market Desk Check (Deterministic Math)

> Prediction Market Desk Check (Deterministic Math) is a paid API for AI agents from dominion-data.x402-evm-math.workers.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

Validates a prediction-market trade idea with deterministic arithmetic: computes edge, Wilson 90% confidence interval, and a PASS/FAIL/INSUFFICIENT verdict before you commit capital.

## Facts

- Endpoint: POST https://dominion-data.x402-evm-math.workers.dev/desk/check?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prediction-market-desk-check-deterministic-math-b81187ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gVCqFuUbt5HnFcW_b8b5g

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 prediction-market-desk-check-deterministic-math-b81187ab -d '<json body>'
```

Example prompt: Before I place a YES bet on the 'Fed cuts rates in Q3' market at Polymarket — ask price 0.42, my estimate is 0.55 — run a desk check using these 15 settled Fed-meeting outcomes: [1,0,0,1,1,0,0,1,0,1,1,0,1,0,1] and tell me if it's a PASS, FAIL, or INSUFFICIENT.

## When to prefer this

Use this endpoint when you need a fast, deterministic, statistically grounded pre-trade sanity check for a binary prediction market idea. It is ideal when you have at least 10 settled historical outcomes and want an objective PASS/FAIL/INSUFFICIENT verdict with a Wilson confidence interval before committing capital. Prefer this over manual gut-checks or LLM-generated probability estimates when you want reproducible arithmetic that is not subject to hallucination. Not a substitute for full backtesting or a live trading recommendation.

## Known failure modes

- Fewer than 10 base_rate_cases provided → verdict INSUFFICIENT with explanation
- est or ask outside 0-1 range → likely validation error or unexpected result
- Missing required fields (market, venue, side, est, ask, base_rate_cases) → error response
- Payment not sent or insufficient USDC → HTTP 402 payment required
- Network/worker timeout → transient 5xx error

## How this service works

Desk check: deterministic arithmetic and base-rate test of a prediction-market idea before you send it. Body {market, venue, side, est 0-1, ask 0-1, base_rate_cases [0|1 x >=10 settled]}. Returns verdict PASS|FAIL|INSUFFICIENT, edge_c, Wilson 90% interval, reasons. Not a recommendation to trade; no colony positions are exposed.

## Output

Returns a JSON object with: verdict (PASS, FAIL, or INSUFFICIENT), edge_c (number of cases where the estimated probability exceeds ask), n (total settled cases), interval_lo_c and interval_hi_c (Wilson 90% confidence interval bounds as percentages), and a reasons array explaining any failure or insufficiency.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 10,
  "edge_c": 6,
  "reasons": [],
  "verdict": "PASS",
  "interval_hi_c": 90,
  "interval_lo_c": 40
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prediction-market-desk-check-deterministic-math-b81187ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dominion-data.x402-evm-math.workers.dev](https://www.zero.xyz/host/dominion-data.x402-evm-math.workers.dev/llms.txt)
