bitpanda trade fixes, documentation, install/docker fixes

This commit is contained in:
2023-05-09 10:30:03 +02:00
parent 8f3495e497
commit c00e852c0a
10 changed files with 151 additions and 61 deletions

View File

@@ -44,6 +44,10 @@ I thought this fits quite well to the cryptotrading world and that's why i chose
# How to use/install
Linux knowledge required!
Needed a running Docker install. Traefik suggested, see
https://gitea.ds9.dedyn.io/olli/debian.ansible.docker
https://gitea.ds9.dedyn.io/olli/debian.ansible.traefik.server
Download:
```
git clone https://gitea.ds9.dedyn.io/olli/dabo.git
@@ -55,13 +59,78 @@ Build container:
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
```
Run:
Set Rights (UID 10000 for non-root-User in running container):
```
chown -R 10000:10000 dabo data home
```
Edit docker-compose.yml or create docker-compose.override.yml to fit yout needs e.g. domain and network settings or basic auth, e.g. for traefik and letsencrypt:
```
echo '
services:
dabo-bot:
networks:
- YOURNETWORK
dabo-web:
labels:
# DOMAIN
- traefik.http.routers.dabo-YOURINSTANCENAME.rule=Host(`YOURDOMAIN`)
- traefik.http.routers.dabo-YOURINSTANCENAME.entrypoints=https
- traefik.http.routers.dabo-YOURINSTANCENAME.tls=true
# Proxy to service-port
- traefik.http.services.dabo-YOURINSTANCENAME.loadbalancer.server.port=80
- traefik.http.routers.dabo-YOURINSTANCENAME.service=dabo-YOURINSTANCENAME
# cert via letsencrypt
- traefik.http.routers.dabo-YOURINSTANCENAME.tls.certresolver=letsencrypt
# activate secHeaders@file & basic auth
- traefik.http.routers.dabo-YOURINSTANCENAME.middlewares=secHeaders@file,basicauth
# Generate crypted password string with: echo $(htpasswd -nB YOURUSER) | sed -e s/\\$/\\$\\$/g
- traefik.http.middlewares.dabo-YOURINSTANCENAME.basicauth.users=YOURUSER:YOUR-GENERATED-CRYPTED-PASSWORD-STRING
# Traefik network
- traefik.docker.network=traefik
networks:
- traefik
networks:
YOURNETWORK:
driver: bridge
driver_opts:
com.docker.network.bridge.name: YOURBRIDGE
traefik:
external: true
' >docker-compose.override.yml
```
Create Secrets file for your API Key(s)
```
# for Bitpanda
echo 'local API_TOKEN=YOUR_VERY_LOOOOOOONNNNGGGG_API_TOKEN_FROM_BITPANDA' >dabo/.bitpanda-secrets
# or for Binance
echo 'local API_SECRET="YOUR_LONG_API_SECRET_FROM_BINANCE"
local API_KEY="YOUR_LONG_API_KEY_FROM_BINANCE" '>dabo/.binance-secrets
```
Edit your Config
Especially change URL, STOCK_EXCHANGE, FEE, CURRENCY,... to fit your needs.
```
vim dabo/dabo-bot.conf
```
Prepare/Create a stretegy
IMPORTANT!!! THE DEFAULT STRATEGY MAY NOT FIT YOUR NEEDS OR WORK FPR YOU PROPERLY. SO YOU CAN LOOSE ALL YOUR MONEY!!! USE ON YOUR OWN RISK!!!
Run/Restart:
```
docker-compose down # if an old instance is running
docker-compose up -d
```
Logs:
Logs/Output:
```
docker-compose logs -f
```