This program gives detailed overview of your last trades based on your current poloniex balances
- Clone the repository
git clone https://github.com/araa47/PoloniexProfit.git
- Cd into the repository
cd PoloniexProfit
- You can either follow A OR B
- Install to usr/local python library
sudo pip install -r requirements.txt
- Cd to a directory outside
cd ..
- Create a virtualenviroment , here i have named mine pypolo
virtualenv pypolo
- Activate the virtualenvironment
source pypolo/bin/activate
- Cd into the project
cd PoloniexProfit
- Now locally install the requirements
pip install -r requirements.txt
-
Open sample_apikey.py and enter your poloniex api key and secret
-
Rename the file to apikey.py
In order to run the simple program, you need to give it a single parameter which is the amount of time between updates. In this example I have set my time to 2 seconds.
python stats.py -l 2
-
Currently the program only calculates BTC to other currency trades
-
The program only works on the latest trade history. For example: You bought some ripple at 0.00011 and sold at 0.00021. Next you buy more ripple at 0.15. The program will only calculate your gains from the last trade. However your total gain can be seen by checking your total portfolio value.