Skip to content

Xeron2000/wedge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wedge

Automated weather prediction market trading bot. Detects edges between GFS ensemble forecasts and Polymarket pricing, sizes positions with fractional Kelly criterion.

Install

uv tool install git+https://github.com/Xeron2000/wedge

Quick Start

# 1. Initialize config
wedge config init

# 2. Set API keys
wedge config set polymarket_private_key "0x..."
wedge config set polymarket_api_key "your-key"
wedge config set polymarket_api_secret "your-secret"

# 3. Run in dry-run mode
wedge run

# 4. Run in live mode
wedge run --live

Configuration

Wedge uses a hierarchical config system:

Priority: CLI args > env vars > config file > defaults

Locations:

  • Config: ~/.config/wedge/config.toml
  • Database: ~/.local/share/wedge/wedge.db

Config Commands

wedge config init              # Create config file
wedge config set <key> <value> # Set a value
wedge config show              # View all settings
wedge config path              # Show file locations

See docs/CONFIG.md for full documentation.

Usage

wedge scan --city NYC
wedge run --dry-run
wedge run --dry-run --bankroll 500 --kelly 0.10
wedge run --dry-run --telegram
wedge run --live --bankroll 1000
wedge stats --days 30

Environment Variables

Config file is recommended, but env vars still work:

# Telegram (optional)
export WEDGE_TELEGRAM_TOKEN="..."
export WEDGE_TELEGRAM_CHAT_ID="..."

# Polymarket (required for --live)
export WEDGE_POLYMARKET_PRIVATE_KEY="..."
export WEDGE_POLYMARKET_API_KEY="..."
export WEDGE_POLYMARKET_API_SECRET="..."

Tests

uv run pytest

About

Weather prediction market trading CLI. GFS ensemble forecasts vs Polymarket pricing, fractional Kelly sizing, Telegram integration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages