Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1.1 KiB
Liquify
Automated market-making bot for prediction markets. Create limit orders via the Oracle API to provide liquidity, and potentially make a profit!
The bot works by first computing an exponential moving average and exponential moving variance of the probability. Then it creates limit orders above and below the current market price using these stats.
If there's volatility in the market, it will fill the pair of limit orders above and below, which will earn you profit (buy low, sell high!).
In any case, creating open limit orders increases the liquidity in the markets, which is a service to traders.
Run this bot!
-
Clone the repository
-
Locate your Oracle API Key. You can find it in Your profile => Edit => Api key.
-
Create a
.envfile in the root directory with your api key, replacing thexxx's, and your username.MANIFOLD_API_KEY=xxxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx MANIFOLD_USERNAME=YourUsername -
Install npm packages with
yarn -
Run
yarn start
(Be careful! This bot will be placing limit orders with your mana.)
Feel free to fork and extend this bot with more advanced strategies!