⚠️ WARNING: This project is now deprecated.This project was originally made for me to have a rudimentary understanding of Git and Python. Code patterns and algortihms followed here might not be the most efficient nor secure (e.g. the token is stored in a plain text file). Please don't use this project for any purpose other than analyzing the code.
This software uses the CoinMarketCap API to calculate your profits and losses. To use the same you need a CoinMarketCap Pro API key, which can be procured from the CMC Pro API registration page. You can choose any plan that suits you.
Compiling the app requires:
- pip
- python >=3.8
Python packages:
- pyinstaller >= 4.3 (to compile into executable)
- requests >= 2.25.1
- sqlalchemy >= 1.4.17
Steps to compile the app:
- Open Terminal
- Ensure you are in the directory of the source code. If not, use the
cd
command to do so. - Change directory using
cd cryptocurrency_portfolio
- Type
pyinstaller views.py --onefile --noconsole -i=Bitcoin-BTC-icon.ico
Key | Value |
---|---|
COINMARKETCAP_API_KEY | The CoinMarketCap API key, get one here: https://pro.coinmarketcap.com/ |
API_DOMAIN | API Domain, https://pro-api.coinmarketcap.com for paid API, https://api.coinmarketcap.com may not work with this app |
CURRENCY_CODE | The code for your currency e.g INR, USD, GBP etc. Note: This app does not support all currency codes, see line 21 in controllers.py |
DB_URL | The SQLAlchemy DB URI to be used. Leave it as it is |
THEME_FILE | For future use, it is ignored currently. |
If that image doesn't load, use this link: https://drive.google.com/file/d/18O5dNrGS1GltEI-AiL2i4JNSq6YYngi_/view
If that image doesn't load, use this link: https://drive.google.com/file/d/1EcPAs3c9s0Ulu0zqIchyGlQ5gSGgwxfH/view