this bot allows you to compund your interest payment into your margin lending account. Integrated with pushover notification service, and AWS logging service
- docker-compose
- python3
- alembic (pip package)
-
alembic.init (fill out
sqlalchemy.url
, e.g. postgresql://user:pswd@localhost:5432/db) -
.docker.env
-
jobs/.env: note when run with
docker-compose
,POSTGRES_HOST
should bedb
-
jobs/.env: PUSH_OVER_API_KEY should be your PushOver application key
docker-compose --env-file .docker.env up
In your project root, run
alembic upgrade head
comment out
logging:
driver: awslogs
options:
awslogs-region: ${AWSLOGS_REGION}
awslogs-group: ${AWSLOGS_GROUP}
in docker-compose.yml
First login to your db container, and db instance
docker exec -it lending-bot_db_1 bash
psql -U app lending
Add your users' account info into the account
table
insert into account (name, api_key, secret, coins, user_key) values ('acct1', 'key', 'secret', 'USDT,USD', 'push_over_user_key');