- Install dependency in requirement.txt
- Create a
.env
file in the same folder and fill your api key, secret and other setting in this file.
Here is an example:
KEY=API_KEY
SECRET=API_SECRET
SUB_ACCOUNT=Lending
LEND_COIN=USD
PRESERVE=0
RATE=0
- Create a cron job to run script, go to termainl and type
crontab -e
.
example:
*/20 * * * * your_python_path/python script_path/auto_update_lending.py