A self-contained Python module for creating intelligent trading bots that monitor data sources, analyze content with ChatGPT, and automatically trade on Manifold Markets
Project description
ManifoldBot
A self-contained Python module for creating intelligent trading bots that monitor data sources, analyze content with ChatGPT, and automatically trade on Manifold Markets.
Quick Start
1. Install the Package
Option A: Using the installation script (recommended)
./install.sh
Option B: Manual installation
pip install -e .
Option C: Install from PyPI (when published)
pip install manifoldbot
2. Set Up Environment Variables
Create a .env file in the project root with your API keys:
# OpenAI API Configuration
OPENAI_API_KEY=your_openai_api_key_here
# Manifold Markets API Configuration
MANIFOLD_API_KEY=your_manifold_api_key_here
3. Create a Bot Configuration
Create a bot_config.yaml file (see examples in PLAN.md):
name: "My Trading Bot"
description: "Monitors data sources and trades on Manifold Markets"
data_sources:
- type: "web"
name: "Example Source"
url: "https://example.com"
selector: ".content"
poll_interval: 900 # 15 minutes
ai:
model: "gpt-4o-mini"
confidence_threshold: 0.75
manifold:
market_slug: "your-market-slug"
comment_only: true # Start with comments only
4. Run the Bot
manifoldbot start --config bot_config.yaml
Or create a config file first:
manifoldbot init --output my_bot.yaml
# Edit my_bot.yaml with your settings
manifoldbot start --config my_bot.yaml
Features
- 🤖 AI-Powered Analysis: Uses ChatGPT to analyze content and make trading decisions
- 📊 Multiple Data Sources: Web scraping, RSS feeds, and API integrations
- 🎯 Manifold Integration: Full Manifold Markets API support
- ⚙️ Easy Configuration: YAML-based configuration system
- 🔒 Secure: Environment variables for API keys
- 🚀 Deploy Anywhere: Local, Docker, or GitHub Actions
Requirements
- Python 3.8+
- OpenAI API key
- Manifold Markets API key
Documentation
For detailed documentation, examples, and architecture information, see PLAN.md.
Development
This project is based on the oreacle-bot architecture but with cleaner separation of concerns and a more generic, reusable design.
License
See LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file manifoldbot-0.1.0.tar.gz.
File metadata
- Download URL: manifoldbot-0.1.0.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a7a97983f1be02b730bc3b2d0de0defb33c0e28344ccab4f0c8bd5d55394854
|
|
| MD5 |
ad9d89b1b38f4685157b840b2c725ecf
|
|
| BLAKE2b-256 |
09e11219aad126c90bc1b1ca29fee92bc098a367dc6c6790d8b3382d8c5ad8ba
|
File details
Details for the file manifoldbot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: manifoldbot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88541e070c4cac0a2160d2ff5fcf685896d44ad62e0fd4976a01b9799b70577b
|
|
| MD5 |
239bc7241da95e8a25fc632348db8dc3
|
|
| BLAKE2b-256 |
a6f6c6bd1fb0b324e5aa1e247558c63fb25a545112a1d733216fa883d33f306d
|