Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
A production-grade algorithmic trading bot for Polymarket's 15-minute BTC price prediction markets. Built with a 7-phase architecture combining multiple signal sources, professional risk management, and self-learning capabilities.
| Date | Stars |
|---|---|
| 2026-07-24 | 550 |
| 2026-07-25 | 553 |
| 2026-07-28 | 553 |
| 2026-07-30 | 553 |
| 2026-08-06 | 553 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# 🤖 Polymarket BTC 15-Minute Trading Bot
[](https://www.python.org/downloads/)
[](https://nautilustrader.io/)
[](https://opensource.org/licenses/MIT)
[](https://polymarket.com)
[](https://redis.io/)
[](https://grafana.com/)
A production-grade algorithmic trading bot for **Polymarket's 15-minute BTC price prediction markets**. Built with a 7-phase architecture combining multiple signal sources, professional risk management, and self-learning capabilities.
---
## 📋 **Table of Contents**
- [Features](#features)
- [Architecture](#architecture)
- [Prerequisites](#prerequisites)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Running the Bot](#running-the-bot)
- [Monitoring](#monitoring)
- [Trading Modes](#trading-modes)
- [Project Structure](#project-structure)
- [Testing](#testing)
- [Contributing](#contributing)
- [FAQ](#faq)
- [License](#license)
- [Disclaimer](#disclaimer)
---
## ✨ **Features**
| Feature | Description |
|---------|-------------|
| **7-Phase Architecture** | Modular, testable, production-ready design |
| **Multi-Signal Intelligence** | Spike Detection, Sentiment Analysis, Price Divergence |
| **Risk-First Design** | $1 max per trade, 30% stop loss, 20% take profit |
| **Dual-Mode Operation** | Toggle between simulation and live without restart |
| **Real-Time Monitoring** | Grafana dashboards + Prometheus metrics |
| **Self-Learning** | Automatically optimizes signal weights based on performance |
| **Auto-Recovery** | WebSocket auto-reconnection, rate limiting, data validation |
| **Paper Trading** | Full P&L tracking in simulation mode |
---
## 🏗️ **Architecture**
### **7-Phase Overview**
```mermaid
flowchart LR
subgraph Input[INPUT]
D[External Data<br/>Coinbase, Binance, News, Solana]
end
subgraph Process[PROCESSING]
I[Ingestion<br/>Unify & Validate]
N[Nautilus Core<br/>Trading Framework]
S[Signal Processors<br/>Spike, Sentiment, Divergence]
F[Fusion Engine<br/>Weighted Voting]
end
subgraph Output[OUTPUT]
R[Risk Management<br/>$1 Max, Stop Loss]
E[Execution<br/>Polymarket Orders]
M[Monitoring<br/>Grafana Dashboard]
L[Learning<br/>Weight Optimization]
end
D --> I --> N --> S --> F --> R --> E --> M --> L
L -.-> F
```
## Prerequisites
- Python 3.14+ (Download)
- Redis (Download) - for mode switching
- Polymarket Account with API credentials
- Git
## 🚀 Quick Start
## 1. Clone the Repository
```bash
git clone https://github.com/yourusername/polymarket-btc-15m-bot.git
cd polymarket-btc-15m-bot
```
## 2. Set Up Virtual Environment
```bash
# Windows
python -m venv venv
venv\Scripts\activate
# macOS / Linux
python -m venv venv
source venv/bin/activate
```
## 3. Install Dependencies
```
bash
pip install -r requirements.txt
```
## 4. Configure Environment Variables
```
bash
cp .env.example .env
Edit .env with your credentials:
env
# Polymarket API Credentials
POLYMARKET_PK=your_private_key_here
POLYMARKET_API_KEY=your_api_key_here
POLYMARKET_API_SECRET=your_api_secret_here
POLYMARKET_PASSPHRASE=your_passphrase_here
# Redis Configuration
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_DB=2
# Trading Parameters
MAX_POSITION_SIZE=1.0
STOP_LOSS_PCT=0.30
TAKE_PROFIT_PCT=0.20
SPIKE_THRESHOLD=0.15
DIVERGENCE_THRESHOLD=0.05
```
## 5. Start Redis
```
bash
# Windows (download from redis.io)
redis-server
# macOS
brew install redis
redis-server
# Linux
sudo apt install redis-server
redis-server
```
## 6. Run the Bot
```
bash
# Test mode (trades every minute - for quick testing)
pythExcerpt of 10,303 characters
Read on GitHub3
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:091238a21af2f1ae, topic:trading, name:trading bot, desc:trading bot