Arghh / binance-trade-tracker

🖖 Track your daily and all time profits on binance locally
MIT License
18 stars 4 forks source link
binance binance-profits binance-trader binance-utils tradetracker

Binance Trade Tracker

Trades and profits tracking for all daytrades and bots in one easy-to-use Web Front-end. Just import all your trades from Binance, add your partial trades together and calculate the profit you made daily and overall. More features are planned (See TODO-s). This App is build using Spring Boot, Thymeleaf and Bootstrap. Trade Tracker uses the webcerebrium binance api and Java CryptoCompare Unofficial API Client wrappers. Profits Page

Getting Started

First download and install mariadb. Create a new user and start it up. Trade Tracker won't start without a running db instance.

Installing mariadb on linux and creating a new user:

sudo apt install mariadb-server
sudo service mysql stop
sudo mysqld_safe --skip-grant-tables --skip-networking &
mysql -u root
use mysql;
update user set password=PASSWORD("new_password_here") where User='root' and Host ='localhost';
update user set plugin="mysql_native_password";
Ctrl-C
sudo service mysql restart

On Windows install HeidiSQL for easy access.

Alternatively: Binance Trade Tracker will also work with other SQL DB-s but you need to change the pom.xml and application.properties files accordingly.

Installing

Easiest way to install Trade Tracker is to clone the repo and build from source. If you are not familiar with Java and Maven or don't want to build from source code yourself, just download the release compiled jar and run that. You will still need to create and fill out the app.properties file and place it in the same folder as the jar.

Update: Binace trade tracker now only runs with Java 11.

Application.properties

MANDATORY FIELDS:

server.port=50001 => localhost:50001

For example Windows:

C:/Users/Argh/Downloads/TradeHistory.xlsx

For example Linux:

home/Argh/Downloads/TradeHistory.xlsx

Currently supported values are: EUR and USD.

OPTIONAL FIELDS:

Note: The API trade import is not yet ready.

Deployment

In order to run Binance Trade Tracker from the jar just navigate to the folder where you downloaded it and run:

java -jar binance-profit-tracker-0.0.7.jar --spring.config.location="app.properties"

Todos

Special Thanks

Jeffery for uploading hes project to maven central.

Everyone who has given feedback.

Digital tip jar

ETH: 0xBeA6fC790Ad1171132fC257aA8173dA20847eB92

XLM: GBJUUZKDU3PIPMX6LPS34RVAL7EBBSBP2EWU45LO4Z5PH3WFBJ55HOWA

License

MIT