Skip to content

0xthedance/LQTY_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Liquidation bot for Liquity protocol

A liquidation bot for Liquity Protocol created using APE Framework and Silverback library.

Requirements

Install requirements and Ape plugins:

pip install -r requirements.txt
ape plugins install .

Configuration

The Constants.py file contains the bot configuration. But at the very least, the following environmental variables should be set:

#Provider token.It is neccessary a provider that supports websockets to run the bot. If you want to use Alchemy to run this example, you will need a Alchemy API key for Ethereum mainnet.Go to Alchemy, create an account, then create an application in their dashboard, and copy the API Key.
export WEB3_ALCHEMY_PROJECT_ID=<value-of-secret-key>

# APE account configuration (https://docs.apeworx.io/ape/stable/userguides/accounts.html#importing-existing-accounts)
export APE_ACCOUNTS_$ALIAS_PASSPHRASE=<ape-account-password>
export ACCOUNT_ALIAS=<ape-account-alias>

#logging configuration
export LOG_EMAIL
export EMAIL_PASSWORD

Usage

silverback run "main:bot" --network:mainnet:alchemy

Run it in Sepolia

silverback run "main:bot" --network:sepolia:alchemy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages