whatisgithub

What is polymarket-weather-trading-bot?

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

Analysis updated 2026-05-18

136TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A TypeScript bot that scans Polymarket weather markets across 20 cities, compares crowd prices to forecast models, and places sized bets when it finds a real edge.

Mindmap

mindmap
  root((weather bot))
    What it does
      Scans weather markets
      Compares forecasts to prices
      Places sized bets
    Tech stack
      TypeScript
      Node.js
    Use cases
      Paper trading
      Live trading
      Forecast calibration
    Risk controls
      Kelly sizing
      Stop loss
      Trailing stop

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

Monitor Polymarket temperature markets in 20 cities for pricing that disagrees with ECMWF and HRRR/GFS forecasts.

USE CASE 2

Size trades automatically using the Kelly criterion with a 20% stop-loss and trailing stop.

USE CASE 3

Run in paper trading mode to test the strategy before risking real funds.

What is it built with?

TypeScriptNode.js

How does it compare?

katbrink/polymarket-weather-trading-botamet2901/asterdex-trading-botbonny1220/solana-trading-bot
Stars136136136
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/54/54/5
Audiencedevelopergeneralgeneral

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Live trading requires a funded wallet private key and proxy address, paper mode needs no funds.

The README does not state a license.

So what is it?

This is a TypeScript bot that trades weather markets on Polymarket, an online prediction market platform. Polymarket hosts questions like whether a specific city will reach a certain temperature range on a given day. The bot looks for situations where the crowd's pricing of those outcomes does not match what weather forecast models actually predict, then places bets on the mispriced outcome. The bot pulls temperature data from three sources: ECMWF and HRRR/GFS models for forecasts and METAR readings from airport weather stations for real-time observations. It covers 20 cities across multiple continents, including New York, Chicago, Miami, London, and Tokyo. An important detail the README highlights is that Polymarket resolves these temperature markets using airport weather stations specifically, not city-center measurements, so the bot is careful to use the correct station for each city. Before placing any trade, the bot calculates an expected value: if the math does not show a positive edge, it skips the market. Position sizes are determined by a formula called Kelly criterion, which scales the bet size up or down based on how large the edge appears to be. The bot also applies a stop-loss at 20% of position value and a trailing stop that locks in gains after a 20% gain. It skips markets where the gap between buy and sell prices is wider than $0.03. The bot runs on a loop, scanning all available markets on a regular interval and storing every forecast snapshot and trade result in JSON files. It uses that history to calibrate which forecast sources tend to be accurate for which cities. By default the bot runs in paper trading mode, logging simulated trades without spending real money. Live trading on Polymarket requires setting a private key and proxy wallet address in the configuration file. The README suggests paper trading until the results look consistent before switching to live mode.

Copy-paste prompts

Prompt 1
Explain how this bot decides whether a Polymarket weather market has a positive expected value edge.
Prompt 2
Show me how to switch this bot from paper trading to live trading with a private key and proxy wallet.
Prompt 3
How does the bot pick the correct airport weather station to match Polymarket's resolution rules for each city?
Prompt 4
Help me add a 21st city to this bot's list of monitored weather markets.

Frequently asked questions

What is polymarket-weather-trading-bot?

A TypeScript bot that scans Polymarket weather markets across 20 cities, compares crowd prices to forecast models, and places sized bets when it finds a real edge.

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

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

What license does polymarket-weather-trading-bot use?

The README does not state a license.

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

Setup difficulty is rated moderate, with roughly 30min 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.