返回目录
开源项目数字货币类新手

Polymarket-5min-bot

基于 Rust 的 Polymarket 加密货币 5 分钟涨跌预测市场套利机器人,自动捕捉 YES 与 NO 代币组合价格低于 1 美元时的套利机会,并支持链上合并、收尾平仓等操作。

0 次阅读2026/08/12 发布
Polymarket-5min-bot 来源图片

社区作者 · zZz

它解决什么问题

Polymarket-5min-bot 是一个用 Rust 编写的套利机器人,专门针对 Polymarket 上加密货币“Up or Down”5 分钟预测市场。Polymarket 每轮会开启一个 5 分钟窗口(UTC),每个市场包含 YES 和 NO 两个结果代币。理论上,持有等量 YES + NO 在结算时可兑换为 1 USDC,因此当 YES 最优卖价 + NO 最优卖价 < 1 时即存在套利机会。机器人工作流程包括:市场发现

— 本文由 AI 根据公开来源辅助整理,命令、版本与许可证请在使用前到原始页面复核。

安装 / 开始使用

Quick Start Pre-built binary If you don't want to compile from source, use the pre-built executable from Releases :

  • Download the package for your OS (Linux / Windows)
  • Copy .env.example to .env and fill in required fields
  • Run:

Linux / macOS:

可复制命令
./polypulse

Build from source Requires Rust .

  • Windows: polypulse.exe
命令
cp .env.example .env # fill required fields in .env, then run
命令
cargo run

See .env.example for full options, grouped as [1] – [9] : earlier sections are more important. Configuration Required Variable Description POLYMARKET_PRIVATE_KEY

Signer private key. Email/Magic: reveal.magic.link/polymarket ; browser wallet:

可复制命令
export your EOA key

POLYMARKET_PROXY_ADDRESS Funder address from Settings (not your EOA) — polymarket.

com/settings Signature type SIGNATURE_TYPE Choose based on funder wallet type in Settings , not whether you registered with email or a browser wallet: Value When to use Poly1271 ( default ) V2 deposit wallet — email/Magic and browser-wallet accounts Proxy Legacy V1 Magic proxy only (Settings address must match ProxyFactory CREATE2 derive from your EOA) GnosisSafe Gnosis Safe multisig Eoa Direct EOA trading — no POLYMARKET_PROXY_ADDRESS needed Rule of thumb: keep the default Poly1271 .

If Proxy orders fail with please use the deposit wallet flow , your account uses the V2 deposit wallet — switch back to Poly1271 (no need to change private key or proxy address).

Required for Merge (when scheduled Merge or wind-down is enabled) Variable Description POLY_BUILDER_API_KEY Builder API key POLY_BUILDER_SECRET Builder API secret POLY_BUILDER_PASSPHRASE Builder API passphrase Get these from Polymarket → Settings → Builder.

Common options Variable Default Description CRYPTO_SYMBOLS btc,eth,sol,xrp Symbols to monitor, comma-separated ARBITRAGE_EXECUTION_SPREAD 0.01 Execute when yes + no <= 1 - spread MAX_ORDER_SIZE_USDC 100.0 Max order size per trade RISK_MAX_EXPOSURE_USDC 1000.

0 Max exposure per round MERGE_INTERVAL_MINUTES 0 Scheduled Merge interval (minutes); 0 = disabled WIND_DOWN_BEFORE_WINDOW_END_MINUTES 0 Wind-down before window end (minutes); 0 = disabled RUST_LOG info Log level Other settings (CLOB URL, signature type, slippage, order type, position sync, etc.

) have sensible defaults. See .env.example for the full list with bilingual comments. Disclaimer This software is for learning and research only — not investment advice. Crypto and prediction markets carry significant risk, including loss of funds.

Assess your own risk and comply with Polymarket’s terms and applicable laws.

来源教程配图

account
配图 1 · account查看原图
Dashboard
配图 2 · Dashboard查看原图

适用场景

学习研究
开源项目实践