Pre-entry sanity check for prediction-market prices (Polymarket today, Kalshi-ready structure). Pulls the live order book and answers the three questions most losses ignore:
- Mid vs. print — is the last trade lying about the real price?
- Depth at your size — what will filling your position actually cost?
- Thin-book flags — wide spreads, one-sided books, unfillable sizes.
No wallet. No keys. Read-only public market-data endpoints.
Most beginners lose to structure, not forecasting: they size off a thin last-print, then discover their exit walks the book. This tool makes the boring checks automatic — the same routine from my price sanity checklist.
git clone https://github.com/cyrusthornemchn/sanity-checker.git
cd sanity-checker
python3 sanity_check.py --market <slug-or-id> --size 2000Market : Will the Senate pass the bill by Nov 30?
YES: bid 61.0¢ / ask 63.0¢ (mid 62.0¢, spread 2.0¢)
fill 2000 shares → VWAP 63.4¢ (slippage +0.4¢ over 3 levels), cost $1,268
NO : bid 36.0¢ / ask 38.5¢ (mid 37.2¢, spread 2.5¢)
fill 2000 shares → VWAP 40.1¢ (slippage +1.6¢ over 5 levels), cost $802 ⚠ wide spread (>3¢)
- Slippage over levels — if filling already walks several levels, your exit will be worse. Halve the position.
- Wide-spread flag — mid is your only honest quote; limit orders only.
- "Book thinner than your size" — the market is a lottery ticket at this size. Pass or split across venues (why platforms price differently).
MIT.
Educational tool. Not financial advice. Not affiliated with Polymarket.