A simple python script that check your PNL from Binance Exchange account
- python version 3.8 or upper
Step 1 : Clone the repository with the following command.
$ git clone https://github.com/b1ng-b0ng/binance-pnl-checker.git
$ cd ./binance-pnl-checker
Step 2 : Change .env.sample
to .env
and also edit environments value to your desire data.
$ mv .env.sample .env
Step 3 : then create a new virtualenv and run script.
$ virtualenv -p python3 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python spot_pnl_checker.py
Step 4 (optional) : you can add alias to .zshrc
or .bashrc
to use it as a linux command
# in the bottom of .zshrc or .bashrc
...
alias mypnl="cd ~/PATH/TO/binance-pnl-checker && source venv/bin/activate && python spot_pnl_checker.py && deactivate && cd -"
then :
$ mypnl
The following to-do task list should be followed in order. If you are experienced enough in these tasks, feel free to contribute. Fork the project, create PRs and I'll review them.
- use as a linux command (alias)
- turn into a debian package
- use as
gnome-extension
- add other markets support like future, margin & ...