The institutional edge for prediction market flow.
In prediction markets, alpha isn't just about knowing the news firstβit's about seeing the money move before the news breaks. By the time a headline hits social media, the orderbook has already repriced.
Trade Hunter is a real-time, locally-hosted intelligence dashboard built to catch coordinated institutional flow, aggressive hedging, and mathematically improbable volume spikes across prediction markets (like Kalshi) the exact second they happen.
While cloud-based prediction trackers are convenient, Trade Hunter is built for traders who prioritize privacy, speed, and deep technical control.
| Feature | Trade Hunter (Local-First) | Standard SaaS Tools |
|---|---|---|
| Data Privacy | 100% Private. Your watchlists and SQLite database stay on your hardware. | Your activity and interests are stored on third-party servers. |
| Execution Latency | Direct. Connects your machine directly to Kalshi WebSockets. | Delayed. Data often passes through a middle-man server first. |
| Intelligence | Dual-AI. Use your own API keys for transparent, un-metered analysis. | Opaque, "black box" logic that you cannot audit or tune. |
| Customization | Open Logic. Modify the Poisson thresholds or AI prompts yourself. | "One size fits all" alerts and fixed configurations. |
| Cost | Free & Open Source. No monthly subscriptions to maintain access. | Recurring monthly fees. |
Trade Hunter doesn't just alert on high volume; it identifies statistically improbable events using high-frequency anomaly detection.
To separate coordinated institutional "sweeps" from organic retail flow, we model trade frequency using a Poisson Distribution. When
-
$\lambda$ (Lambda): The expected arrival rate of "Whale" trades based on the 24-hour baseline. -
$k$ : The number of observed large trades in the current window.
If the resulting probability is
- π Whale Cluster Detection: Real-time Poisson probability modeling to catch the biggest players.
- π§ Dual AI Analysts (Claude + Perplexity): Integrated agents analyze order flow context and label each move as
real,noise, oruncertainβ shown as an AI: pill on every card, separate from the detector tier. - βοΈ Autonomous Tuning System: An Advisor suggests threshold corrections based on false positives, while a Governor ensures logic stays within safe baseline rules.
- π Dynamic Baseline Detector: Flags flow based on volume delta multiples rather than static numbers.
- π Smart Discord Integration: Routes specific topics (Crypto, Elections, etc.) to dedicated channels with AI-filtered signal verification.
- πΎ Zero-Friction Local Runtime: Lightweight SQLite backbone with self-cleaning retention, running on
localhost:8765.
Commercial Edition (Windows exe)
- Download the Trade Hunter executable (
trade-hunter-*.exe) from Gumroad - Double-click β browser opens automatically at
http://127.0.0.1:8765 - Starts in Simulation mode instantly. No Python, no install.
Public / Simulation Edition (from source)
Requires Python 3.11+.
git clone https://github.com/lweiss01/trade-hunter.git
cd trade-hunter
pip install -e .[integrations]
python -m appOpen http://127.0.0.1:8765 in your browser.
Both editions start in Simulation mode by default β no API keys needed to try the dashboard.
Each alert is graded into a visual tier so you know exactly how to react:
| Tier | Meaning | Visual |
|---|---|---|
| watch | Early β a directional bias is present, but below the notable thresholds. | Standard |
| notable | Significant β both the volume and price-move qualifiers are clearly met. | Yellow Edge |
| signal | Strongest score tier β volume |
Red Neon Edge |
| whale-cluster | Statistical anomaly β coordinated whale entry ( |
Purple Neon Edge |
| cross-venue divergence | The same contract priced differently across venues (e.g. Kalshi vs Polymarket), flagged from cross-venue ingest. | Blue Edge |
To switch to live Kalshi data and enable the AI Analysts, create a .env file in the root directory:
# Core Modes
ENABLE_SIMULATION=false
ENABLE_KALSHI=true
# Kalshi Credentials
KALSHI_API_KEY_ID=your-key-id
KALSHI_PRIVATE_KEY_PATH=/path/to/kalshi.key
# Seeds your watchlist on FIRST RUN only. After that, tickers are managed in
# the app's Markets page and stored in data/watchlist.json β so app updates
# never lose your saved markets.
KALSHI_MARKETS=KXBTC15M,KXTOPCHEF-26DEC31
# AI Analyst Integrations
ANTHROPIC_API_KEY=sk-ant-api03... # Primary Analyst
PERPLEXITY_API_KEY=pplx-... # Fallback Analyst
# Notifications
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...You don't need to hunt for exact contract IDs. Whether you add markets in the app's Markets page or seed them via KALSHI_MARKETS, each entry accepts:
- Series Slugs (e.g.,
KXBTC15M) β Auto-resolves to the currently open 15-minute BTC market. - Event Tickers (e.g.,
KXTOPCHEF) β Auto-subscribes to all open sub-markets for that event. - Specific Tickers β For tracking an exact, granular contract.
Manage your watchlist directly from the Dashboard's Markets page β add/remove without ever restarting the server. Your list is saved to data/watchlist.json and preserved across app updates; KALSHI_MARKETS in .env only seeds it on first run.
When an alert fires it is graded into one of the visual tiers described under Alert Tiers above. Each card also shows the AI analyst's own read as an AI: pill (real / noise / uncertain) β a separate judgment from the detector tier.
In live mode, the dashboard exclusively displays events from the last 10 minutes. If the panels look empty, check the status pills at the topβif kalshi seen is updating, data is flowing, but the markets are just genuinely quiet.
- Database: SQLite (
trade_hunter.db). Survives restarts, auto-cleans events older thanRETENTION_DAYS(default 7). - Single-Instance Guardian: The exe automatically terminates any hanging instance on the same port before launching β no zombie processes, no port conflicts.
- Testing: Run
py -m app --smoke-testto safely test the detector pipeline and AI integrations locally without touching live order flow.
Built to separate the signal from the noise.