prediction-market-uncertainty
Real-time uncertainty index from 30,000+ prediction markets. One function, one number (0-100).

import uncertainty from 'prediction-market-uncertainty'
const score = await uncertainty()
What is this?
A single number (0-100) that measures how much prediction markets disagree with each other right now. Derived from orderbook spreads across 30,000+ markets on Kalshi and Polymarket.
- 0-20: Markets are confident and agree (complacent)
- 20-40: Normal uncertainty
- 40-60: Elevated uncertainty
- 60-80: High uncertainty, markets in flux
- 80-100: Extreme uncertainty / crisis
Think of it as a VIX for prediction markets, but derived from actual betting spreads rather than options pricing.
Install
npm install prediction-market-uncertainty
Usage
import { uncertainty, geopolitical, momentum, signals } from 'prediction-market-uncertainty'
const u = await uncertainty()
const g = await geopolitical()
const m = await momentum()
const all = await signals()
CLI
npx prediction-market-uncertainty
npx prediction-market-uncertainty --number
npx prediction-market-uncertainty --json
Use cases
- Gate deployments: don't deploy if uncertainty > 80
- Agent context: inject uncertainty level into system prompts
- Dashboard widgets: show current market sentiment
- Trading bots: adjust position sizing based on uncertainty
License
MIT — SimpleFunctions