polymarket-multi-source-estimator

Trade prediction markets using LLM probability estimation enriched with 10+ real-time data sources (news, economic data, sports odds, political polling, and more). The skill fetches context from RSS feeds, FRED, GDELT, bookmaker odds, and other APIs, then asks an LLM to estimate the true probability. Trades when the estimate diverges significantly from the market price.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "polymarket-multi-source-estimator" with this command: npx skills add Mibayy/polymarket-multi-source-estimator

Multi-Source LLM Estimator

A prediction market trading bot that enriches an LLM with real-time context from 10+ data sources. It compares the LLM's estimated probability against the current market price and trades when it detects significant mispricing.

How It Works

10+ Data Sources --> Context String --> LLM Prompt --> Probability Estimate
                                                              |
                                                    Compare vs Market Price
                                                              |
                                              Trade if divergence > threshold
  1. Fetches active markets from Polymarket (via Simmer SDK)
  2. For each market, gathers real-time context from relevant data sources
  3. Also checks cross-platform prices on Manifold and Kalshi
  4. Sends the question + context to an LLM for probability estimation
  5. If the LLM's estimate diverges from the market price by more than the threshold (default 15%), it places a trade

Data Sources

#SourceWhat It ProvidesAPI Key Required
1RSS NewsHeadlines from 10 feeds (Reuters, BBC, Bloomberg, etc.)No
2FREDEconomic indicators (Fed rate, CPI, GDP, VIX, oil, gold)Yes (free)
3GDELTGeopolitical event sentiment scoresNo
4Odds APISports bookmaker consensus probabilitiesYes (free tier)
5FiveThirtyEightUS presidential approval polling averagesNo
6Congress.govBill status and legislative trackingYes (free)
7OpenFDADrug approval status and clinical trial dataNo
8Open-MeteoWeather forecasts for major citiesNo
9USGSSignificant earthquake dataNo
10FinnhubEarnings calendar and IPO dataYes (free)
11ManifoldCross-platform prediction market pricesNo
12KalshiCross-platform prediction market pricesNo

Sources are selected automatically based on category detection from the question text. Only relevant sources are queried to minimize latency.

Remixable Template

This skill is designed as a template you can customize:

  • Add your own data source: Implement a _get_X_context(question) function that returns a list[str] of context lines. Add it to _dispatch_sources().
  • Swap the LLM: Set LLM_API_URL and LLM_MODEL env vars to point at any OpenAI-compatible API (OpenRouter, Ollama, vLLM, etc.).
  • Adjust the threshold: Set ESTIMATOR_THRESHOLD higher for fewer but higher-conviction trades, or lower for more frequent trading.
  • Change the prompt: Edit the _build_prompt() function to customize the LLM's reasoning style.

Environment Variables

Required

VariableDescription
SIMMER_API_KEYSimmer SDK API key for trading
LLM_API_KEYAPI key for your LLM provider (default: OpenRouter)

Optional

VariableDefaultDescription
TRADING_VENUEsimTrading venue (sim for paper, polymarket for real)
TRADE_SIZE10.0Trade size in USD per trade
LLM_API_URLOpenRouter endpointOpenAI-compatible chat completions URL
LLM_MODELxiaomi/mimo-v2-flash:freeModel identifier
ESTIMATOR_THRESHOLD0.15Min divergence to trigger a trade (0.0-1.0)
FRED_API_KEYFRED API key (free at api.stlouisfed.org)
ODDS_API_KEYThe Odds API key (free at the-odds-api.com)
CONGRESS_API_KEYCongress.gov API key (free)
FINNHUB_API_KEYFinnhub API key (free tier)
LLM_CACHE_TTL1800LLM response cache TTL in seconds
LLM_MAX_CALLS50Max LLM calls per run

Usage

Dry-run (no trades, just log estimates):

python multi_source_estimator.py

Live trading:

python multi_source_estimator.py --live

Quiet mode (errors only):

python multi_source_estimator.py --live --quiet

Limit markets scanned:

python multi_source_estimator.py --live --max-markets 20

Scheduling

Runs every 5 minutes via cron (*/5 * * * *). Managed automaton (auto-executes on schedule). Capped at 50 LLM calls per run (LLM_MAX_CALLS) to control costs.

Security

  • All trades go through SimmerClient.trade() only. No direct CLOB or wallet access.
  • Dry-run by default. The --live flag must be explicitly passed to execute trades.
  • No wallet private keys are required or read by this script.
  • LLM receives only the market question text and publicly available context (news headlines, economic indicators, odds). No credentials or private data are sent to the LLM.
  • LLM_API_URL defaults to OpenRouter. You control which LLM endpoint is used.
  • All optional API keys (FRED, Odds, Congress, Finnhub) are for free public data APIs. If unset, those data sources are simply skipped.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated