# Kalshi Prediction Market Snapshot

> Kalshi Prediction Market Snapshot is a paid API for AI agents from base-agent-preflight.bytoken2023.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches a machine-readable risk and activity snapshot for a Kalshi prediction market ticker, including risk score and flags.

## Facts

- Endpoint: GET https://base-agent-preflight.bytoken2023.workers.dev/v1/x402/prediction/market-snapshot
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kalshi-prediction-market-snapshot-1a0b12be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A_xMUXNa5TGp8DDv_5iO8

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 kalshi-prediction-market-snapshot-1a0b12be
```

Example prompt: Can you pull a risk and activity snapshot for the Kalshi market ticker INXD-23DEC31-B4000 and tell me if there are any flags or risk concerns?

## When to prefer this

Use this endpoint when an agent needs a structured, machine-readable risk assessment for a specific Kalshi prediction market ticker before trading, monitoring, or routing decisions. Prefer it over raw Kalshi API calls when you want pre-interpreted risk flags and a normalized risk score in a single call. Best suited for autonomous agent preflight checks where a human is not in the loop.

## Known failure modes

- Missing or invalid ticker parameter returns a validation error
- Ticker not found on Kalshi returns empty or error response
- Malformed ticker string (not matching pattern ^[A-Za-z0-9._-]{3,160}$) rejected at schema validation
- Payment failure (x402) results in 402 response before data is returned
- Kalshi upstream unavailable causes timeout or 503

## How this service works

Machine-payable service intelligence for discovering, verifying, and monitoring identity, risk, authorization, execution-preflight, and evidence APIs before autonomous agents spend.

## Output

Returns a JSON object containing the network (eip155:8453), product type ('prediction-market-snapshot'), and an assessment block with a list of flags, a risk_level string (e.g. 'low'), and a numeric risk_score. Useful for agents pre-screening a Kalshi market before taking action.

## 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": [
      "ticker"
     ],
     "properties": {
      "ticker": {
       "type": "string",
       "pattern": "^[A-Za-z0-9._-]{3,160}$",
       "description": "Kalshi market ticker."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "network": {
       "type": "string"
      },
      "product": {
       "type": "string"
      },
      "activity": {
       "type": "object"
      },
      "identity": {
       "type": "object"
      },
      "assessment": {
       "type": "object"
      },
      "provenance": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "product": "prediction-market-snapshot",
  "assessment": {
   "flags": [],
   "risk_level": "low",
   "risk_score": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kalshi-prediction-market-snapshot-1a0b12be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-agent-preflight.bytoken2023.workers.dev](https://www.zero.xyz/host/base-agent-preflight.bytoken2023.workers.dev/llms.txt)
