Trade autonomously on Polymarket using AI Agents.
- Clone this repo
- Add your OpenAI key and wallet to
.env
- Run this repo as:
- command line
cli.py
- cron job
jobs/scheduler.py
- server (coming soon)
- command line
lib/trade.py
contains core business logic which:
- queries polymarket data using the clob sdk
- performs rag using langchain and openai
- applies custom prompts in
ai/llm/prompts.py
- automatically executes trades from your wallet
This tool is meant to be modular and extensible.
Below are instructions to begin developing on the codebase.
We welcome contributions and hope for this to be a community led project.
Please see CONTRIBUTING.md
for contributing guidlines.
This repo is inteded for use with Python 3.9
virtualenv --python=python3.9 .venv
source .venv/bin/activate
Run the following commands from the agents directory to run an ephemeral docker container with a bash shell and mounted volume:
./scripts/bash/build-docker.sh
./scripts/bash/run-docker-dev.sh