Grafana dashboard for Binance Trade Bot.
Prerequisites: Docker and docker-compose.
- Clone the file
.env.exampleto.env
cp .env.example .env- Edit
.envfile with the following:
- Line 1 and 2 change your credentials. For example:
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=6783jdhf!- Line 3, port to use. For example:
GRAFANA_HTTP_PORT=42069- Line 5, the relative path of your btb database. For example:
DB_PATH_1=../binance-trade-bot/data/crypto_trading.db- Run
docker-compose up -dand go to http://YOUR_PUBLIC_IP:YOUR_PORT in your browser.
Only if you want to support more than one bot, you can do it by the following:
- Edit
.envfile adding more database paths variables. For example:
DB_PATH_1=../btb-1/data/crypto_trading.db
DB_PATH_2=../btb-2/data/crypto_trading.db
DB_PATH_3=../btb-3/data/crypto_trading.db- Uncomment lines 10 and 11, or add lines on your
docker-compose.ymlto match the variables you just added in.env. Note: The variable names need to be the same here and in.env(see point 1 above). For example:
volumes:
- ${DB_PATH_1}:/app/database-1.db
- ${DB_PATH_2}:/app/database-2.db
- ${DB_PATH_3}:/app/database-3.db- Edit
grafana/datasource.ymluncomment or add datasources. PropertypathinsidejsonDatashould match the path indocker-compose.ymlvolumes (see point 2 above). Note: Don't forget to check that every datasource has its own uniquenameproperty. Your file should look something like this:
apiVersion: 1
datasources:
- name: btb-database_1
type: frser-sqlite-datasource
access: proxy
isDefault: false
editable: true
jsonData:
path: /app/database-1.db # Same path in docker-compose.yml volumes.
- name: btb-database_2
type: frser-sqlite-datasource
access: proxy
isDefault: false
editable: true
jsonData:
path: /app/database-2.db # Same path in docker-compose.yml volumes.
- name: btb-database_3
type: frser-sqlite-datasource
access: proxy
isDefault: false
editable: true
jsonData:
path: /app/database-3.db # Same path in docker-compose.yml volumes.If you're using an Oracle Cloud Instance, you'll need to open the selected port in your Oracle web GUI. Only reference I found is this tutorial video.
Absolutely not required. However, will be accepted as a token of utility.
- BTC:
bc1qmhvjdyw6a50f25xhwy5x0vncwlw3lufr9fm77h - XNO:
nano_3e9hfoqxwjwcmktj75xtp4cr3wihknttjx577masjkncxkfmwdpf4b9jucin - SOL:
82KxREbhD4vtB9idR3zUzCstqPd93wmgJeffoDQYDsPf - ETH & ERC20:
0x705E805855Fe8d9D30c403cB5c704c490e749112 - BNB Network:
bnb157atfnww0galj8ravzzeq34tklxn5tp4xa976x
