explaingit

suenot/premarket-arbitrage-bot

Analysis updated 2026-05-18

0GoAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A Go bot that watches prediction markets for mispriced bets across platforms and can automatically trade to lock in arbitrage profit.

Mindmap

mindmap
  root((Arbitrage Bot))
    What it does
      Scans markets
      Executes trades
    Tech stack
      Go
    Use cases
      Cross-platform scanning
      Dry-run monitoring
    Audience
      Developers

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 multiple prediction market platforms for price differences on the same event.

USE CASE 2

Run in dry-run mode to study arbitrage opportunities before risking any real money.

USE CASE 3

Automate order placement and wallet authentication for prediction market trading.

What is it built with?

Go

How does it compare?

suenot/premarket-arbitrage-botaasheeshlikepanner/vasealexzielenski/controller-runtime
Stars00
LanguageGoGoGo
Last pushed2022-04-20
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity4/54/54/5
Audiencedeveloperdeveloperdeveloper

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

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a funded crypto wallet and API access, real trading involves financial risk.

MIT license: free to use, modify, and distribute, including commercially, as long as the copyright notice is kept.

In plain English

Premarket Arbitrage Bot is an automated tool written in Go that monitors and executes arbitrage trades across prediction markets, platforms where people bet on the outcome of real-world events. Arbitrage here means finding the same question priced differently on two platforms, buying the cheaper side and selling the more expensive one to lock in a profit regardless of the outcome. The bot connects to the Premarket.me API, which aggregates price data from multiple prediction market platforms: Polymarket, Kalshi, Opinion, Probable, Limitless, and Predict.fun. It scans continuously for price discrepancies, filters them by minimum profit percentage, minimum annualized return (APR), and minimum liquidity depth, then shows qualifying opportunities in a real-time color-coded CLI dashboard with profit percentage, APR, and available depth for each. When an opportunity meets your thresholds and execution is enabled, the bot plans an optimal order split using Premarket's liquidity API, checks your USDC balance, and submits the trade to Polymarket's order book. Authentication uses your MetaMask wallet seed phrase to sign in and automatically refresh tokens. By default the bot runs in dry-run mode: it monitors and logs opportunities but does not place any real trades. Execution must be explicitly enabled. Configurable parameters include the polling interval, minimum profit and APR thresholds, minimum liquidity in USD, and maximum trade size in USD. MIT licensed.

Copy-paste prompts

Prompt 1
Help me set up the .env file with my MetaMask seed phrase and wallet address for this bot.
Prompt 2
Explain how the order-splitting logic uses the Premarket liquidity API in this codebase.
Prompt 3
Show me how to adjust the minimum profit, APR, and liquidity thresholds for the arbitrage scanner.
Prompt 4
Walk me through building this Go project and running it safely in dry-run mode first.

Frequently asked questions

What is premarket-arbitrage-bot?

A Go bot that watches prediction markets for mispriced bets across platforms and can automatically trade to lock in arbitrage profit.

What language is premarket-arbitrage-bot written in?

Mainly Go. The stack also includes Go.

What license does premarket-arbitrage-bot use?

MIT license: free to use, modify, and distribute, including commercially, as long as the copyright notice is kept.

How hard is premarket-arbitrage-bot to set up?

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

Who is premarket-arbitrage-bot for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.