PolyMarket-trading-AI-model  by BlackSky-Jose

AI agents for autonomous trading on prediction markets

Created 2 months ago
396 stars

Top 72.9% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This project offers an AI-powered trading agent designed for prediction markets, specifically integrating with Polymarket. It enables autonomous trading using Large Language Models (LLMs), supports Retrieval-Augmented Generation (RAG) for market analysis, and connects to diverse data sources. The agent aims to automate and enhance prediction market strategies for technically savvy users.

How It Works

The core approach utilizes LangChain and LLMs for trading decisions, enhanced by RAG with Chroma.py for local or remote data vectorization. It interfaces with Polymarket's API via dedicated Python modules (Gamma.py, Polymarket.py) for market data retrieval and trade execution. The system integrates external data from news providers and web searches to inform predictions.

Quick Start & Requirements

Requires Python 3.12+ and pip; Docker is optional. Installation involves cloning the repository, creating a virtual environment, and running pip install -e .. Essential environment variables include POLYGON_WALLET_PRIVATE_KEY and OPENAI_API_KEY. Docker deployment is supported via provided scripts. A "View Demo" link is available.

Highlighted Details

  • Autonomous trading agents powered by state-of-the-art LLMs.
  • Full API integration for Polymarket markets and trading execution.
  • Local and remote RAG support for advanced market analysis.
  • Data source integration: news providers, web search, betting services.
  • Application of superforecasting methodologies for prediction capabilities.
  • Modern stack: Python 3.12+, LangChain, FastAPI; Docker-ready.

Maintenance & Community

The project is open-source under the MIT License. Community channels like Discord/Slack are not specified. Contact is available via liam@polymarket.com and www.greenestreet.xyz.

Licensing & Compatibility

Licensed under MIT. Crucially, Polymarket's Terms of Service prohibit US persons and individuals from certain jurisdictions from trading via the API, impacting the agent's usability for users in these regions.

Limitations & Caveats

The primary limitation is Polymarket's Terms of Service, which restrict API trading for US persons and individuals in specific jurisdictions. Autonomous execution requires careful review of these TOS. The project's effectiveness is contingent on the quality of LLM responses and external data feeds.

Health Check
Last Commit

3 days ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
84 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.