whatisgithub

What is polymarket-weather-trading-bot?

openpatchlab/polymarket-weather-trading-bot — explained in plain English

Analysis updated 2026-05-18

78TypeScriptAudience · developerComplexity · 4/5Setup · hard

In one sentence

A Polymarket weather trading bot that compares real forecasts against market prices and trades only when it finds a genuine statistical edge.

Mindmap

mindmap
  root((repo))
    What it does
      Trades weather markets
      Compares forecast to price
      Sizes trades with Kelly
    Tech stack
      TypeScript
      Node.js
      Polymarket CLOB
    Use cases
      Trade weather markets
      Paper trade strategies
      Track forecast accuracy
    Audience
      Developers
      Prediction market traders

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

Automatically trade Polymarket weather markets based on real forecast data instead of guesswork.

USE CASE 2

Test trading strategies safely in the built-in paper trading mode before risking real funds.

USE CASE 3

Track a market's forecast accuracy city by city over time to self-calibrate.

What is it built with?

TypeScriptNode.jsPolymarket CLOB

How does it compare?

openpatchlab/polymarket-weather-trading-botadrienckr/notslopalchemz/solana-pumpfun-token-bundler
Stars787878
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyhardeasyhard
Complexity4/52/54/5
Audiencedeveloperwriterdeveloper

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

How do you get it running?

Difficulty · hard Time to first run · 1h+

Live trading requires a funded Polygon wallet private key, paper trading works out of the box with free weather APIs.

So what is it?

WeatherBet is a TypeScript bot that automatically trades weather-related prediction markets on Polymarket, a decentralized platform where people bet on real-world event outcomes. Specifically, it targets markets asking questions like "Will Chicago's temperature peak at 46-47 degrees Fahrenheit on this date?", and tries to find cases where the crowd's pricing is wrong relative to what actual weather forecasts say. The bot pulls temperature data from three sources: ECMWF (a European global weather model), HRRR and GFS (high-resolution US models updated hourly), and METAR observations from airport weather stations. The airport station data matters because Polymarket resolves these markets against official airport METAR readings, not general city-center estimates. The bot maps each city to its correct airport station (for example, New York City resolves to LaGuardia, not JFK). When a market's crowd-implied probability diverges enough from what the weather models say, the bot calculates an expected value, the average profit per dollar bet, and if that value is positive and large enough, it places a trade sized using the Kelly Criterion (a formula that bets proportionally to your edge to grow a bankroll optimally without blowing up). It also applies stop-loss rules, filters out illiquid markets, and tracks its own forecast accuracy city by city to self-calibrate over time. Paper trading (simulated with no real money) is the default, live trading requires a Polygon wallet private key. Requires Node.js 20.10 or newer.

Copy-paste prompts

Prompt 1
Explain how this bot matches each city to the correct airport weather station Polymarket uses for resolution.
Prompt 2
Walk me through the expected value and Kelly sizing logic before this bot places a trade.
Prompt 3
Help me set up the environment file for this bot in paper trading mode.

Frequently asked questions

What is polymarket-weather-trading-bot?

A Polymarket weather trading bot that compares real forecasts against market prices and trades only when it finds a genuine statistical edge.

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

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

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

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

Who is polymarket-weather-trading-bot for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.