whatisgithub

What is polymarket-weather-trading-engine?

tsukamg/polymarket-weather-trading-engine — explained in plain English

Analysis updated 2026-05-18

168TypeScriptAudience · developerComplexity · 4/5Setup · moderate

In one sentence

An automated TypeScript bot that trades Polymarket weather prediction markets by comparing crowd odds against real weather forecast data.

Mindmap

mindmap
  root((WeatherBet))
    What it does
      Weather Market Bot
      Polymarket Trading
      Forecast Comparison
    Strategy
      Expected Value Calc
      Kelly Criterion Sizing
      Stop Loss Rules
    Data
      3 Forecast Sources
      20 Cities
      Airport Stations
    Modes
      Paper Trading
      Live Trading
      History Recalibration

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Simulate a weather prediction market trading strategy in paper-trading mode with no real money.

USE CASE 2

Compare Polymarket's crowd implied probabilities against real weather forecast and airport station data.

USE CASE 3

Automatically size trade positions using the Kelly criterion based on calculated edge.

USE CASE 4

Run live automated trades against Polymarket's order book once a wallet key is configured.

What is it built with?

TypeScriptNode.js

How does it compare?

tsukamg/polymarket-weather-trading-enginetauri-apps/meilisearch-docsearchyesmeck/reactive.macro
Stars168171171
LanguageTypeScriptTypeScriptTypeScript
Last pushed2026-07-042023-10-27
MaintenanceActiveDormant
Setup difficultymoderatemoderateeasy
Complexity4/52/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Live trading requires a funded Polymarket wallet key, paper trading works out of the box.

So what is it?

WeatherBet is an automated trading bot written in TypeScript that bets on Polymarket weather prediction markets, markets where people place wagers on whether a city's temperature will land in a specific range on a given day. The bot's strategy is to find markets where the crowd's implied probability differs meaningfully from what weather forecast models predict, then place bets on the more accurate estimate. To do this, it pulls data from three weather forecast sources covering 20 cities and cross-references those forecasts with real airport weather station readings (using official aviation weather stations, since Polymarket resolves its temperature markets based on airport readings rather than generic city-center coordinates). It then calculates the expected value of each potential trade, sizes positions using Kelly criterion (a mathematical formula that scales bet size based on how large your edge is), and applies stop-loss rules to limit downside. By default the bot runs in paper-trading mode (simulated, no real money), which lets you test the strategy. Setting a live-trading environment variable and providing a Polymarket wallet key enables real trades through Polymarket's order book. Every forecast, trade, and outcome is saved to local JSON files, and the bot uses that history to recalibrate its models over time. It runs on Node.js 20.10 or newer. The README notes this is not financial advice and recommends paper trading until you understand the risk.

Copy-paste prompts

Prompt 1
Help me set up this bot in paper-trading mode so I can test its weather market strategy safely.
Prompt 2
Explain how the bot calculates expected value by comparing weather forecasts to Polymarket's implied odds.
Prompt 3
How does the Kelly criterion position sizing work, and how is it applied to each trade here?
Prompt 4
Walk me through switching this bot from paper trading to live trading, including the wallet key setup.
Prompt 5
Explain why the bot cross-references airport weather station data instead of city-center forecasts.

Frequently asked questions

What is polymarket-weather-trading-engine?

An automated TypeScript bot that trades Polymarket weather prediction markets by comparing crowd odds against real weather forecast data.

What language is polymarket-weather-trading-engine written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js.

How hard is polymarket-weather-trading-engine to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is polymarket-weather-trading-engine for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.