Market maker keeper for the Polymarket CLOB.
This software is experimental and in active development. Use at your own risk.
The keeper is an automated market maker for CLOB markets. Places and cancels orders to keep open orders near the midpoint price according to one of two strategies.
Run ./install.sh
to set up the virtual environment and install depedencies.
Create a .env
file. See .env.example
.
Modify the entries in config.env
.
Modify the corresponding strategy config in ./config
, if desired.
./run-local.sh
.docker compose up
.The config.env
file defines 3 environment variables:
CONDITION_ID
, the condition id of the market in hex string format.STRATEGY
, the strategy to use, either "Bands" or "AMM" (case insensitive)CONFIG
, the path to the strategy config file.Every sync_interval
(the default is 30s), the strategies do the following:
When the app receives a SIGTERM, all orders are cancelled and the app exits gracefully.