Welcome to the Polymarket-Kalshi Arbitrage Bot. This guide will help you download and run the software easily.
To begin, visit the Releases Page to download the latest version of the bot. Choose the file that matches your operating system, and download it to your computer.
Before you can run the bot, you need a few tools. Follow these steps to install them:
Install Rust: This software requires Rust version 1.75 or higher. To install Rust, open your terminal or command prompt and enter the following command:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Build the Bot: Navigate to the botβs directory and build it. Replace e_poly_kalshi_arb with the folder name where the botβs files are located. Use these commands:
cd e_poly_kalshi_arb
cargo build --release
The bot requires credentials to connect to the Kalshi and Polymarket platforms. Create a file named .env in the botβs folder and add the following lines. Replace the placeholders with your actual credentials.
# === KALSHI CREDENTIALS ===
KALSHI_API_KEY_ID=your_kalshi_api_key_id
KALSHI_PRIVATE_KEY_PATH=/path/to/kalshi_private_key.pem
# === POLYMARKET CREDENTIALS ===
POLY_PRIVATE_KEY=0xYOUR_WALLET_PRIVATE_KEY
POLY_FUNDER=0xYOUR_WALLET_ADDRESS
# === BOT CONFIGURATION ===
DRY_RUN=1
RUST_LOG=info
You are now ready to run the bot. You have two options here:
Dry Run (Paper Trading): This mode simulates trading without real money. Enter the following command:
dotenvx run -- cargo run --release
Live Execution: To start trading with real money, set DRY_RUN to 0 and run this command:
DRY_RUN=0 dotenvx run -- cargo run --release
The bot uses several environment variables. Hereβs the list you need to know:
| Variable | Description |
|---|---|
KALSHI_API_KEY_ID |
Your Kalshi API key ID |
KALSHI_PRIVATE_KEY_PATH |
Path to your Kalshi private key file |
POLY_PRIVATE_KEY |
Your Polymarket wallet private key |
POLY_FUNDER |
Your Polymarket wallet address |
DRY_RUN |
Set this to 1 for dry run; set to 0 for live trading |
RUST_LOG |
Set the logging level for debugging (info is common) |
Ensure your folder has the following structure after building:
e_poly_kalshi_arb/
|-- Cargo.toml
|-- src/
| |-- main.rs
|-- .env
If you encounter issues while running the bot:
.env file.This bot is designed for users looking to engage in arbitrage trading. It is ideal for:
For any further questions or support, please reach out via the Issues section of this repository.
Visit the Releases Page to get started with your download!