polygunsniperbot

🎯 PolygunBot

Automated sniping. No guessing. No lag. Just fills.

License: MIT Python Status Website


PolygunBot is a multi-platform sniper bot built for speed. It monitors listings, detects targets, and fires buy orders faster than any manual workflow. If you’ve ever lost a drop because you were 300ms too slow, this is the fix.

πŸ‘‰ polygunsniperbot.com


What It Does

PolygunBot connects to multiple marketplaces and waits. The moment a matching listing appears, it executes. The cycle from detection to order submission runs under 80ms on a standard VPS.

Core behavior:


Supported Platforms

Platform Status Auth Method
StockX βœ… Live Cookie / Session
GOAT βœ… Live API Token
Grailed βœ… Live Cookie / Session
eBay βœ… Live OAuth 2.0
Whatnot πŸ§ͺ Beta Cookie / Session
Fanatics Collect πŸ”œ Planned TBA

Add a new platform by dropping a connector class into src/connectors/ and registering it in config.yaml. The base connector interface is documented in docs/connectors.md.


Installation

git clone https://github.com/polygunbot/polygunbot.git
cd polygunbot
python -m venv .venv
source .venv/bin/activate       # Windows: .venv\Scripts\activate
pip install -r requirements.txt
cp config.example.yaml config.yaml

Edit config.yaml before running anything. At minimum, set your credentials and at least one target rule.


Configuration

platforms:
  stockx:
    enabled: true
    auth:
      cookie: "YOUR_SESSION_COOKIE"
    polling_interval_ms: 200

targets:
  - platform: stockx
    keyword: "Jordan 4 Bred"
    max_price_usd: 320
    size: "10.5"
    condition: new

notifications:
  discord_webhook: "https://discord.com/api/webhooks/YOUR_WEBHOOK"
  telegram_bot_token: "YOUR_BOT_TOKEN"
  telegram_chat_id: "YOUR_CHAT_ID"

logging:
  level: INFO
  output: logs/polygunbot.log

Full config reference: docs/config.md


Running the Bot

# Start with default config
python main.py

# Specify a config file
python main.py --config my_config.yaml

# Dry run (logs matches, skips order submission)
python main.py --dry-run

# Run a single platform only
python main.py --platform stockx

Use --dry-run to test your filter rules against live data before committing real orders.


Project Structure

polygunbot/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ connectors/       # One file per platform
β”‚   β”œβ”€β”€ engine/           # Detection loop, order dispatcher
β”‚   β”œβ”€β”€ filters/          # Rule evaluation logic
β”‚   └── notifications/    # Discord, Telegram, webhook handlers
β”œβ”€β”€ tests/
β”œβ”€β”€ docs/
β”œβ”€β”€ config.example.yaml
β”œβ”€β”€ main.py
└── requirements.txt

Performance

On a 1 vCPU / 1GB RAM VPS co-located near platform servers:

Metric Value
Detection latency ~45ms avg
Order submission ~30ms avg
Total cycle time ~80ms end-to-end
Memory usage ~60MB idle

Latency drops further if you run PolygunBot on infrastructure physically close to the target platform’s servers. The docs/hosting.md file covers VPS recommendations by region.


Contributing

  1. Fork the repo
  2. Create a branch: git checkout -b feature/your-feature
  3. Commit your changes with a clear message
  4. Open a pull request against main

Run the test suite before submitting: pytest tests/

Check CONTRIBUTING.md for code style guidelines and connector interface specs.


Disclaimer

PolygunBot is a personal automation tool. Review each platform’s terms of service before use. The authors take no responsibility for account suspensions or order errors.



MIT License. See LICENSE for details.