dockerizing

This commit is contained in:
olli 2023-04-28 17:24:32 +02:00
parent 51d959891d
commit 7872d8c926
2 changed files with 21 additions and 16 deletions

View File

@ -1,12 +1,10 @@
FROM debian:latest FROM debian:latest
RUN apt-get update \ RUN apt-get update && \
&& apt-get install -y npm node-commander git \ apt-get -y install curl && \
&& git clone https://github.com/binance/binance-cli \ curl https://gitea.ds9.dedyn.io/olli/debian.ansible.docker/raw/branch/main/build-debian-env.sh >build-debian-env.sh && \
&& cd binance-cli \ bash -ex build-debian-env.sh && \
&& npm install @binance/connector \ cd / && \
&& npm install -g \ git clone https://gitea.ds9.dedyn.io/olli/dabo.git && \
&& ln -s /usr/local/lib/node_modules/\@binance/ /usr/lib/nodejs/ chmod 555 /dabo/dabo-bot.sh /dabo/analyze.sh
ENV LANG en_US.utf8 ENV LANG en_US.utf8
COPY ./docker-entrypoint.sh / ENTRYPOINT ["/dabo/bot.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]

View File

@ -4,7 +4,14 @@ This is a private project, which is based on amateur knowledge. Trading cryptocu
It is strongly recommended to deal intensively with the subject and this bot before using it. Also, when using the possibility should be considered that due to an unfavorable market development, technical errors, bugs or other reasons, the entire invested capital can be lost. This software should therefore only be used if it is justifiable to lose the entire invested capital! It is strongly recommended to deal intensively with the subject and this bot before using it. Also, when using the possibility should be considered that due to an unfavorable market development, technical errors, bugs or other reasons, the entire invested capital can be lost. This software should therefore only be used if it is justifiable to lose the entire invested capital!
# Objective # Objective
The bot is intended to help make and execute timely buy and sell decisions automatically in the fast-paced crypto environment. It is to be invested in the case of larger increases in value and investments are to be sold again when the prices fall, so that price gains are taken and losses are minimized. The dabo-bot is intended to help make and execute timely buy and sell decisions automatically in the fast-paced crypto environment. It is to be invested in the case of larger increases in value and investments are to be sold again when the prices fall, so that price gains are taken and losses are minimized.
# Naming
The name Dabo comes from the Star Trek universe.
Dabo was a roulette-style game of chance developed by the Ferengi.
More information here:
https://memory-alpha.fandom.com/wiki/Dabo
I thought this fits quite well to the cryptotrading world and that's why i chose this name ;-)
# Features # Features
## General: ## General:
@ -38,19 +45,19 @@ Linux knowledge required!
Download: Download:
``` ```
git clone https://gitea.ds9.dedyn.io/olli/Cryptocurrencies.git git clone https://gitea.ds9.dedyn.io/olli/dabo.git
cd Cryptocurrencies cd dabo
``` ```
bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data. bot.sh is the bot that trades and collects the quotes and analyze.sh is the tool with which you can try out strategies with the historical data.
The configuration files are called bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated. The configuration files are called bot.conf and analyze.conf. analyze.sh also uses bot.conf but its variables are overwritten by analyze.conf if duplicated.
A Binance account must exist and the API must be enabled. A Binance or Bitpanda account must exist and the API must be enabled.
The access data is stored in the file .binance-secrets in the project directory in the variables API_SECRET and API_KEY. The access data is stored in the file .binance-secrets in the project directory in the variables API_SECRET and API_KEY.
The access rights to this file should be set to the minimum necessary for security reasons. The access rights to this file should be set to the minimum necessary for security reasons.
# Future ideas/featrues # Future ideas/featrues
- Crypto preferences (While/Blacklist for certain currencies) - Crypto preferences (While/Blacklist for certain currencies)
- Overview trades/profits/losses for tax declaration - Overview trades/profits/losses for tax declaration
- Support for additional exchanges (currently only Binance)
- Support for decentralized exchanges like uniswap to gain more "security" - Support for decentralized exchanges like uniswap to gain more "security"
- mutliple trading strategies
- run in a docker container