Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

An app which calculates your profits and losses for the cryptocoins you have purchased

License

Notifications You must be signed in to change notification settings

advaithm582/cryptocurrency-portfolio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 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.

Cryptocurrency Portfolio

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 for your operating system

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:

  1. Open Terminal
  2. Ensure you are in the directory of the source code. If not, use the cd command to do so.
  3. Change directory using cd cryptocurrency_portfolio
  4. Type pyinstaller views.py --onefile --noconsole -i=Bitcoin-BTC-icon.ico

Constants in config.json

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.

Application Architecture

Application Architecture

If that image doesn't load, use this link: https://drive.google.com/file/d/18O5dNrGS1GltEI-AiL2i4JNSq6YYngi_/view

Screenshots

Screenshot

If that image doesn't load, use this link: https://drive.google.com/file/d/1EcPAs3c9s0Ulu0zqIchyGlQ5gSGgwxfH/view

About

An app which calculates your profits and losses for the cryptocoins you have purchased

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages