Skip to content

TWCCC/ftx-lending-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FTX Lending Bot

Renew margin lending amount.

demo

Usage

Show usage:

python main.py -h

Example:

python main.py -a "My Sub-Account" -c "USDT" -r "1e-6"

Local Setup

please use Python 3.7+

pip install -r requirements.txt

copy .env.sample to .env and add your API key and secret

Automatically renew

Use GitHub Action

  • clone this repo
  • add FTX_API and FTX_API_SECRET to repo > settings > secret.
  • modify the sub-account, coin and lending rate in .github/workflows/cron.yml

Disable Renew Schedules

Manual dispatch the workflow disable.yml on GitHub website.

Re-enable

Because scheduled workflow are automatically disabled after 60 days inactivity, there is another workflow reenable.yml run monthly to automatically re-enable the workflows

This workflow also provides manual dispatch on GitHub website for re-enabling.

Disclaimer

Do not upload / commit your API key and secret to internet! Keep them in private.

About

Renew lending amount on FTX

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%