polyrust
Open-source autonomous Polymarket trading bot framework in Rust — event-driven engine, trait-based strategy plugins, embedded SQLite, single-binary deployment.
Open-source autonomous Polymarket trading bot framework in Rust — event-driven engine, trait-based strategy plugins, embedded SQLite, single-binary deployment.
From the Polymarket public data API. Updated daily.
The 32-byte hash Polymarket uses to attribute volume to this builder on-chain.
0xdbae38f154fbdacc4289a62964b4b0efa6c0faa247b0d872617e7c4b0433797d Polyrust is a Bot framework for Polymarket that ships an open-source autonomous trading engine written in Rust, with event-driven architecture, trait-based async-trait strategy plugins, an embedded Turso (SQLite) database for trade and order persistence, and single-binary deployment. The repo lives at github.com/nniel-ape/polyrust under an MIT license and ships two reference strategies: a 15-minute crypto Up/Down arbitrage targeting BTC/ETH/SOL/XRP with Kelly-criterion position sizing and fee-aware margins, and a Dutch Book strategy that buys both YES and NO when combined ask falls below $1.00 (the canonical prediction-market risk-free arb). The framework includes a paper-trading default mode, an Axum + HTMX monitoring dashboard at localhost:3000, Docker/Compose deployment with SOPS-encrypted secrets, deployment recipes for Spot ARM VPS, and a backtesting engine with historical-data caching and parameter grid search. Polymarket builder traction: #79 monthly at $112.7k routed from 59 active users; #156 all-time at $153.1k from 77 cumulative — small but active, consistent with a solo open-source builder.
Polyrust is an open-source autonomous trading bot framework for Polymarket, built in Rust and published by GitHub user nniel-ape under an MIT license. The architecture is explicitly event-driven: an async engine receives market events, dispatches them to trait-based strategy plugins, and persists trades and orders into an embedded Turso (SQLite) database. Each deployment compiles to a single binary, with default operation in paper-trading mode and an opt-in live execution backend that connects to Polymarket's CLOB on Polygon.
Two reference strategies ship in the repo. (1) A 15-minute crypto Up/Down arbitrage strategy exploits high-confidence tail-end mispricing in Polymarket's short-duration BTC/ETH/SOL/XRP markets, with fee-aware profit-margin filters and Kelly-criterion position sizing. (2) A Dutch Book strategy buys both YES and NO tokens whenever the combined ask price falls below $1.00 — the canonical risk-free prediction-market arbitrage signature.
Infrastructure tooling is unusually production-grade for a solo project. Docker and Docker Compose configs ship in-repo, with persistent volume mounts for trade history; the project documents deployment via Spot (ARM VPS) with SOPS-encrypted secrets management. An Axum + HTMX monitoring dashboard runs at http://127.0.0.1:3000 for live bot inspection, and a backtesting engine caches historical data and supports parameter grid search. API connectivity smoke tests and a CI suite are included.
On-chain Polymarket traction is small but active: #79 on the 1-month builder leaderboard with $112.7k routed from 59 monthly active users; #156 all-time at $153.1k cumulative across 77 users. That ratio — most monthly actives are also lifetime actives — is the classic open-source-bot footprint, where the framework is downloaded and run from individual VPSes rather than via a managed product.
Daily snapshots from our scraper. Charts populate as history accumulates.
Lower is better. Inverted Y-axis.
Cumulative routed volume in USD.
builderCode. The hash above is checkable on Polygon against Polymarket's CTF Exchange.
Polyrust is a Bot framework for Polymarket that ships an open-source autonomous trading engine written in Rust, with event-driven architecture, trait-based async-trait strategy plugins, an embedded Turso (SQLite) database for trade and order persistence, and single-binary deployment. The repo lives at github.com/nniel-ape/polyrust under an MIT license and ships two reference strategies: a 15-minute crypto Up/Down arbitrage targeting BTC/ETH/SOL/XRP with Kelly-criterion position sizing and fee-aware margins, and a Dutch Book strategy that buys both YES and NO when combined ask falls below $1.00 (the canonical prediction-market risk-free arb). The framework includes a paper-trading default mode, an Axum + HTMX monitoring dashboard at localhost:3000, Docker/Compose deployment with SOPS-encrypted secrets, deployment recipes for Spot ARM VPS, and a backtesting engine with historical-data caching and parameter grid search. Polymarket builder traction: #79 monthly at $112.7k routed from 59 active users; #156 all-time at $153.1k from 77 cumulative — small but active, consistent with a solo open-source builder.
polyrust's official site is https://github.com/nniel-ape/polyrust. We verified the URL by visiting the homepage and confirming it references Polymarket or prediction markets directly. If you believe this URL is incorrect, email [email protected].
Yes — polyrust carries Polymarket's official ✓ verified flag (returned by their data API as `verified: true`). This indicates Polymarket has reviewed the builder; it's not a guarantee of product quality or financial outcomes.
pricing model: open-source (MIT); free tier available; MIT-licensed. Users self-host and run their own VPS/Docker deployments.. Sourced from the official site at the time of research; verify the current pricing on the builder's website before subscribing.
Event-driven async engine with trait-based strategy plugins; Embedded Turso (SQLite) for trade/order persistence; Single-binary deployment; Paper-trading default, opt-in live execution; Built-in 15-minute crypto Up/Down arbitrage (Kelly-sized, fee-aware); Built-in Dutch Book strategy (YES + NO < $1 arb); Axum + HTMX monitoring dashboard at localhost:3000; Backtesting engine with historical cache + grid search; Docker/Compose with SOPS-encrypted secrets; CI suite + API connectivity smoke tests. Sourced from the official site/homepage at the time of research.
polyrust is ranked #156 all-time, with similar-category peers including Predict Engine, dextrabot, Binloops. The leaderboard reorders daily — see the history chart for polyrust's rank trajectory.