An open API service indexing awesome lists of open source software.

https://github.com/chainstacklabs/polymarket-alpha-bot

Seek alpha in Polymarket events
https://github.com/chainstacklabs/polymarket-alpha-bot

polymarket prediction trading

Last synced: about 2 months ago
JSON representation

Seek alpha in Polymarket events

Awesome Lists containing this project

README

          

Labs


Chainstack is the leading suite of services connecting developers with Web3 infrastructure


Homepage
Supported protocols
Chainstack blog
Blockchain API reference

Start for free

# Alphapoly - Polymarket alpha detection platform

Find covering portfolios across correlated prediction markets using predefined rules and LLM decisions. The system detects relationships between markets, classifies them to identify hedging pairs, and tracks their prices. The platform offers a smooth UI for entering detected pairs when profit opportunities exist and tracking your positions.

For a good experience, you'll need to add an LLM from OpenRouter and an RPC node (see `.env.example`).

![Dashboard Screenshot](assets/dashboard-screenshot.png)

## How It Works

1. **Groups** - Fetches multi-outcome markets from Polymarket (e.g., "Presidential Election Winner")
2. **Implications** - LLM extracts logical relationships between groups
3. **Portfolios** - Finds position pairs that hedge each other with high coverage probability
4. **Positions** - Tracks your purchased position pairs

## Prerequisites

- **Python 3.12+** with [uv](https://docs.astral.sh/uv/)
- **Node.js 18+** via [fnm](https://github.com/Schniz/fnm), nvm, or brew

## Quick Start

```bash
cp .env.example .env

# With make
make install && make dev

# Without make
cd backend && uv sync
cd frontend && npm install
cd backend && uv run python -m uvicorn server.main:app --port 8000 &
cd frontend && npm run dev
```

Dashboard: http://localhost:3000 · API: http://localhost:8000/docs

## Commands

**With make** (auto-detects fnm/nvm/volta):
```bash
make install # Install deps
make dev # Start both servers
```

**Without make**:
```bash
# Backend
cd backend && uv sync
cd backend && uv run python -m uvicorn server.main:app --reload --port 8000

# Frontend
cd frontend && npm install
cd frontend && npm run dev
```

---

**Disclaimer:** This software is provided as-is for educational and research purposes only. It is not financial advice. Trading prediction markets involves risk—you may lose money. Use at your own discretion.