Skip to main content

ManifoldBot

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

Quick Start

1. Installation

pip install manifoldbot

2. Set API Keys

export MANIFOLD_API_KEY="your_manifold_api_key"
export OPENAI_API_KEY="your_openai_key"

(or place these in .env)

3. Run the LLM Trading Bot

Trade all markets with AI:

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

Or trade recent markets only:

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%)

Is it quicker to use this package or just vibe from the start?

I can't honestly say but this package does take care of things like careful iterative market-impact adjusted fractional Kelly betting and so forth.

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 that thinks people underestimate AI, generally

Documentation

License

MIT License - see LICENSE file for details.

Metadata

Release files for manifoldbot 0.2.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for manifoldbot 0.2.9
File Size Uploaded
manifoldbot-0.2.9.tar.gz 52.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for manifoldbot 0.2.9
File Interpreter ABI Platform
manifoldbot-0.2.9-py3-none-any.whl Python 3 none any Details

Total release size: 115.3 kB

Release files / manifoldbot-0.2.9.tar.gz

Download URL manifoldbot-0.2.9.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0cac9cc0773f7729f8a102c9e7db4adeb20386a9379646019e061d4ce652dfda
BLAKE2b-256 checksum
How to use checksums
fdd4c1f6015476d70932ff98c16035da19ad86398e9e9b296df9eb68223a4502
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / manifoldbot-0.2.9-py3-none-any.whl

Download URL manifoldbot-0.2.9-py3-none-any.whl
Size 63.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7526a6b1a3699d1ed3f988c8b3e37fb9899124f00878fa8861b4419b9301287
BLAKE2b-256 checksum
How to use checksums
0d0aba808f4e513f51e3c8a146c1ac1e7299c727feedebae3603f697775ff6d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

0.2.9 This release

2 release files

0.2.7

2 release files

0.2.5

2 release files

0.2.1

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page