The 'My Crypto Portfolio' is a python program designed to help users manage their cryptocurrency investments. With a user-friendly GUI created using tkinter and real-time coin data fetching via the requests library.
◉ Add Coins: Enter the coin's symbol, purchase price, and quantity to add it to your portfolio. ◉ Track Values: Automatically fetch current coin prices from an external API and display real-time value. ◉ Profit/Loss Calculation: View profit/loss per coin and the total portfolio P/L. ◉ Update Details: Modify the price or quantity of existing coins. ◉ Delete Coins: Remove coins from your portfolio.
Python: You will need the Python source code and required libraries (tkinter, requests, sqlite3 and json).
Enter the coin symbol (e.g., BTC, ETH). Enter the initial purchase price. Enter the quantity purchased. Click the "Add Coin" button to save the coin to your portfolio.
Choose an existing coin and enter its symbol, purchase price per coin and quantity. Click the "Update Coin" button to save changes.
Select a coin from the list and enter its Portfolio ID. Click the "Delete Coin" button to remove it from your portfolio.
The application will update and display the current value, profit/loss per coin, and total portfolio P/L with the press of the Refresh button.
The application fetches real-time coin prices using an external API. Ensure you have an active internet connection to retrieve the latest data. If you need to change the API endpoint or add support for other coins, you would need to modify the source code.
No Data Displayed: Ensure you have a stable internet connection. There is an api-request limit of 10,000 per month. Issues Adding/Updating Coins: Verify that all input fields are filled out correctly and the coin symbol is valid.