Real-time Execution Module Enabled

Algorithmic
Arbitragefor Prediction Markets

The PolyArb_V2 engine conducts sub-second analysis of 5-minute binary markets, identifying and executing spread inefficiencies at high speed.

Market Discovery

Automated fetching of 'Up/Down' 5-minute binary markets via Gamma API with UTC window synchronization.

Order Book Integrity

Deep CLOB order book monitoring for YES and NO contracts with real-time liquidity analysis.

Arbitrage Execution

Atomic simultaneous execution of YES and NO positions when aggregate costs drop below parity thresholds.

Risk Containment

Dynamic USDC exposure caps and imbalance thresholds with configurable slippage controls.

Position Optimization

Periodical position merging logic to redeem fully matched contracts and reclaim USDC liquidity.

Rust Core Engine

High-concurrency Rust implementation for sub-500ms market polling and execution latency.

SYSTEM_WORKFLOW_PROTOCOL

Sequence Logic of the Arbitrage Kernel

01

SCAN_KERNEL

Gamma Market Discovery

STATUS: READY
02

ANALYSIS_UNIT

Probability Spread Detection

STATUS: ACTIVE
03

EXECUTION_GATE

Simultaneous Atomic Trades

STATUS: PENDING
04

LIQUIDITY_HUB

Merge & Redeem Cycle

STATUS: COLD

Institutional Grade Reliability

The PolyArb_V2 system is built with Rust for guaranteed safety and deterministic performance in volatile environments.

Deployment_Protocol

HOW_TO_INSTALL_SYSTEM

Sequence Logic for Initializing the Arbitrage Core

STEP_01

OPTION_A: PRE-COMPILED

Quick Start Protocol

Download the pre-compiled package from the releases page (poly_5min_bot.zip) for rapid activation without compilation.
FETCH_LATEST_BINARY
STEP_02

OPTION_B: SELF-COMPILED

Build from Source

1. Install Rust: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh 2. Clone & Enter: git clone https://github.com/myhostearth/Polymarket-BTC-Arbitrage-Bot.git && cd Polymarket-BTC-Arbitrage-Bot 3. Prep Env: cp .env.example .env 4. Execute: cargo build --release && cargo run --release
$
git clone https://github.com/myhostearth/Polymarket-BTC-Arbitrage-Bot.git
cd Polymarket-BTC-Arbitrage-Bot
cargo build --release && cargo run --release
STEP_03

CONFIGURE_ENVIRONMENT

Identity Handshake

Secure your private key from reveal.magic.link/polymarket. Ensure it is a 64-character hex string without the '0x' prefix.
$
POLYMARKET_PRIVATE_KEY=your_64_char_hex_private_key_here
STEP_04

RUN_IN_BACKGROUND

Daemon Persistence

Execute the core engine as a persistent background process using nohup for uninterrupted market monitoring (Linux/macOS).
$
nohup ./target/release/poly_15min_bot > bot.log 2>&1 &
STEP_05

CONFIGURATION_OPTIONS

Logic Parameters

Fine-tune the bot with advanced parameters: Set profit thresholds, max order size, crypto symbols, and slippage controls in the registry.
$
# Required
POLYMARKET_PRIVATE_KEY=your_key

# Optional
POLYMARKET_PROXY_ADDRESS=0x...
MIN_PROFIT_THRESHOLD=0.001
MAX_ORDER_SIZE_USDC=100.0
SLIPPAGE=0,0.01

PROTOCOL_REQUISITES

  • CompilerRust 1.70 or higher
  • Identity64-char hex Private Key
  • Core Filelicense.key file
  • NetworkRegional Compliance
Compliance_Verified