Earn passive income by filling open limit orders and cancelling expired limit orders. Orders are filled with liquidity from Pact and Algofi.
- Install
npm
- Own an Algorand wallet with at least a couple of ALGO
- Make sure there is no process running on port 3001
- Clone this repository and change directory:
git clone https://github.com/deflex-fi/deflex-order-filling-bot && cd deflex-order-filling-bot
- Set the BACKEND_SIGNER_KEY variable in
.env.local
to the 25-word mnemonic of your Algorand wallet, separated by underscores. - (Optional) Set the other variables in
.env.local
, if you'd like to use a custom Algod/Indexer client. - Install node dependencies:
npm install
- Start next dev server:
npm run dev
- (In a separate terminal, same directory) Run the bot:
npm run fill-orders