Metadata-Version: 2.4
Name: manifoldbot
Version: 0.2.1
Summary: A self-contained Python module for creating intelligent trading bots that monitor data sources, analyze content with ChatGPT, and automatically trade on Manifold Markets
Home-page: https://github.com/petercotton/manifoldbot
Author: ManifoldBot Contributors
Author-email: Peter Cotton <peter@example.com>
License: MIT License
        
        Copyright (c) 2025 Peter Cotton
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/petercotton/manifoldbot
Project-URL: Repository, https://github.com/petercotton/manifoldbot
Project-URL: Issues, https://github.com/petercotton/manifoldbot/issues
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Office/Business :: Financial :: Investment
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: feedparser>=6.0.10
Requires-Dist: pydantic>=2.5.0
Requires-Dist: pyyaml>=6.0.1
Requires-Dist: openai>=1.3.0
Requires-Dist: python-dotenv>=1.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: black>=23.0.0; extra == "dev"
Requires-Dist: flake8>=6.0.0; extra == "dev"
Requires-Dist: mypy>=1.7.0; extra == "dev"
Provides-Extra: translate
Requires-Dist: deepl>=1.12.0; extra == "translate"
Requires-Dist: googletrans==4.0.0rc1; extra == "translate"
Provides-Extra: cli
Requires-Dist: rich>=13.7.0; extra == "cli"
Requires-Dist: click>=8.1.0; extra == "cli"
Provides-Extra: all
Requires-Dist: manifoldbot[cli,dev,translate]; extra == "all"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# ManifoldBot

A Python package for creating intelligent trading bots for Manifold Markets.

## Quick Start

### 1. Installation

```bash
pip install manifoldbot
```

### 2. Set API Keys

```bash
export MANIFOLD_API_KEY="your_manifold_api_key"
export OPENAI_API_KEY="your_openai_key"
```

### 3. Run the LLM Trading Bot

Trade all markets with AI:

```bash
python -m manifoldbot.examples.bot.llm_trading_bot --all
```

Or trade recent markets only:

```bash
python -m manifoldbot.examples.bot.llm_trading_bot
```

## What It Does

The LLM trading bot:
- Analyzes market questions using GPT
- Compares AI probability vs current market probability  
- Places bets when there's a significant difference (≥5%)
- Only bets when confidence is high (≥60%)

## More Examples

See `manifoldbot/examples/` for additional examples:
- `manifold/basic_reader.py` - Read market data (no API key needed)
- `manifold/basic_writer.py` - Place bets manually
- `bot/ai_optimist_trading_bot.py` - Simple rule-based bot

## Documentation

- [Full Documentation](docs/README.md)
- [Tutorial](docs/TUTORIAL.md)
- [API Reference](docs/API_REFERENCE.md)

## License

MIT License - see [LICENSE](LICENSE) file for details.
