Standalone Scan
Pipeline Mode
Integrate sniping into yourhz.run() pipeline:
- Fetches latest news from configured RSS sources
- LLM evaluates if the event has definitively resolved
- If confidence >= threshold: generates aggressive quote at near-parity
- Tracks already-triggered markets to avoid double-sniping
Configuration
Kalshi Markets
The MCPsniper_scan tool supports Kalshi markets via the exchange parameter. Market discovery will pull from Kalshi instead of Polymarket:
How It Works
Confidence Tuning
| Threshold | Behavior |
|---|---|
| 0.95+ | Very conservative, few false positives |
| 0.85 (default) | Balanced sensitivity |
| 0.70 | Aggressive, more false positives |
Types
ResolutionSignal
| Field | Type | Description |
|---|---|---|
market_id | str | Market identifier |
market_title | str | Market question |
resolved | bool | Whether event appears resolved |
confidence | float | Detection confidence [0, 1] |
resolution_side | str | ”yes” or “no” |
evidence | list[str] | Triggering headlines |
reasoning | str | LLM reasoning |
timestamp | float | Unix timestamp |
SniperConfig
| Field | Default | Description |
|---|---|---|
provider | "anthropic" | LLM provider (or any litellm provider) |
model | "" | Model name. Accepts litellm strings like "openrouter/..." |
news_sources | [] | RSS feed URLs |
exa_query | "" | Exa.ai semantic search query |
tavily_query | "" | Tavily real-time search query |
confidence_threshold | 0.85 | Min confidence to trigger |
max_position_size | 50.0 | Max USDC per snipe |
price_offset | 0.02 | Offset from parity |
scan_interval_cycles | 5 | Cycles between scans |
cache_ttl | 60.0 | Signal cache TTL |