Skip to main content

A comprehensive Python package for creating intelligent trading bots that interact with Manifold Markets

Project description

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

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

License

MIT 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

manifoldbot-0.2.7.tar.gz (45.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

manifoldbot-0.2.7-py3-none-any.whl (53.4 kB view details)

Uploaded Python 3

File details

Details for the file manifoldbot-0.2.7.tar.gz.

File metadata

  • Download URL: manifoldbot-0.2.7.tar.gz
  • Upload date:
  • Size: 45.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for manifoldbot-0.2.7.tar.gz
Algorithm Hash digest
SHA256 fe927a63f2dd03c600128c54e17dd0c7b9557625998cfdacebbd78d9ad114179
MD5 8ab04b5bc4566c208d560e0879ab49a3
BLAKE2b-256 a7aefec33e5521345c20361773232ca111ab0720a40bbe07531979b99b429fa5

See more details on using hashes here.

File details

Details for the file manifoldbot-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: manifoldbot-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 53.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for manifoldbot-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 681323898c324e1efca986043c2af74bf44311a40f5f5ae016fae430d428bc6c
MD5 0be3c26808cea3d232308d3b5a9e45ea
BLAKE2b-256 d272d9cb131dc6a34f1a1a2ec37cf85fdba77cd44e832cba554742fa9e26b36a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page