PolyBundle is an AI-driven platform that helps users hedge real-world risks using prediction markets.
Instead of treating prediction markets as speculative bets, PolyBundle converts them into structured hedge portfolios. Users describe a concern (inflation, geopolitical conflict, regulation, commodity shocks), and the platform finds relevant prediction markets and bundles them into a hedge strategy.
Users describe a real-world concern such as:
- "I'm worried about oil prices rising due to Middle East tensions"
- "How can I hedge against inflation returning?"
- "What happens if AI regulation hits tech stocks?"
The system converts this input into structured risk signals.
The system scans prediction markets and identifies relevant contracts tied to the risk.
Example markets might include:
- geopolitical conflict events
- commodity price thresholds
- macroeconomic outcomes
- regulatory decisions
Instead of presenting individual markets, PolyBundle constructs bundles of contracts that collectively hedge a scenario.
This behaves similarly to:
- options strategies
- structured derivatives
- insurance portfolios
Users can simulate hedge strategies before executing trades.
The backend integrates with the Polymarket CLOB client, allowing the app to:
- fetch prediction markets
- monitor probabilities
- prepare trades
Frontend - React - Vite - TailwindCSS - Framer Motion
Backend - Node.js - Express
Blockchain / APIs - Polymarket CLOB Client - Ethers.js
polybundle
│
├── server.js
├── test-clob.js
│
├── src/
│ ├── App.jsx
│ ├── HedgeBot.jsx
│ ├── services/
│ │ ├── polymarket.js
│ │ └── trading.js
│ │
│ └── assets/
│
├── public/
├── package.json
└── .env.example
Install Node.js version 18 or newer.
Verify installation:
node -v
npm -v
git clone https://github.com/yourusername/polybundle.git
cd polybundle
Or download the ZIP and extract it.
npm install
Copy the environment example file:
cp .env.example .env
Then edit .env and add values such as:
POLYMARKET_API_KEY=
PRIVATE_KEY=
RPC_URL=
PORT=3001
Start the development servers:
npm run dev
Default URLs:
Frontend:
http://localhost:5173
Backend API:
http://localhost:3001
Run the test script:
node test-clob.js
- Start the app
<!-- -->
npm run dev
- Open the frontend
<!-- -->
http://localhost:5173
- Enter a risk scenario such as:
<!-- -->
Oil prices spike because of Middle East conflict
- The system:
- parses the risk
- finds relevant prediction markets
- builds a hedge bundle
- Macro risk hedging
- Commodity price exposure
- Geopolitical risk protection
- Policy / regulation risk
- Financial education
Prediction markets contain probability signals about future events.
PolyBundle transforms those signals into structured risk management tools, similar to how options and futures evolved into core financial infrastructure.
The goal is to create a real-time risk intelligence platform that allows users to understand and hedge global risks using market probabilities.