
Build a Python-based cryptocurrency portfolio app that looks up current prices and displays results on the command line, then via a desktop GUI.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Set up a Python project, create a .py file, and import requests and json to prepare API calls, with guidance on installing pip and required modules.
Explore using the CoinMarketCap api to fetch cryptocurrency data in one call, then filter for coins in python while leveraging json fields like id, name, symbol, rank, price, and volume.
Use CoinMarketCap API version 1 to keep data format and course logic consistent. Version 2 changes endpoints and data structure and will cause errors if followed.
Connect the CoinMarketCap API, fetch data with requests, parse JSON into a usable API variable, and prepare to extract specific crypto info for a Python-based portfolio app.
Pull data from the API, build a Python list of currencies by symbol, loop through results to extract name, price USD, and rank, and format for a readable portfolio.
Transform a simple list into a nested portfolio dictionary inside a list, storing symbol, amount owned, and price paid in USD, so the app can reference portfolio data.
Calculate total paid from amount owned and price paid per coin, then compute current value and profit or loss, and accumulate a running portfolio total.
Calculate the price per coin by subtracting the price paid from the current price, and display profit or loss per coin alongside the total portfolio value.
Learn to build a quick and dirty graphical user interface in Python using Tkinter, Python's de facto standard GUI package included with Python 3, with a simple introduction and setup.
Learn to create a Tkinter main window for a cryptocurrency portfolio app using root and main loop, customize a window title and optional icon, and preview graphical user interface behavior.
Learn to add labels in a Tkinter window by defining a label, placing it in the root window with grid coordinates, and customizing with sticky, background, and foreground colors.
Create a Tkinter header for a crypto portfolio app by building a 10-column grid with labeled fields (name, rank, price, profit/loss, changes), using alternating colors and Verdana bold fonts.
Format the main window data by inserting name and rank from the api into each row, rename headers to name and rank, and loop rows starting at 1.
Learn to populate a crypto portfolio app with price data by wiring name, rank, current price, price paid, and profit or loss per coin, including percent changes and totals.
Apply color coding to the crypto portfolio by implementing a red_green function that returns green for positive amounts and red for negative, used to set foreground colors.
Add a portfolio profit/loss to the user interface with a red/green label and show the total current value by summing per-coin values in the title bar, plus a refresh button.
Add an update button in the Python Tkinter app to refresh crypto prices by calling the look up function, clear previous API data, and update the display.
Add a dynamic pie chart to the crypto portfolio app with map plot lib, showing labels, sizes, and colors from your portfolio, and trigger it via a Tkinter button.
Access the cryptocurrency portfolio Python code from the repository, with the complete project file ready to copy and pull. Contact the instructor via the provided site for any questions.
Promote lifetime access to over 60 Python and web development courses, including cryptocurrency topics, with a $200 discount available for the next three days.
In this course we'll be using Python 3 to build a couple of different Crypto Currency portfolio apps that pull information from the CoinMarketCap .com free API and display them in a graphical user interface app.
This course is great for people who want to expand their Python skillset, as well as people interested in crypto currencies and crypto currency trading.
Your finished app will be able to track current prices of any crypto currency that you specify, giving you price data as well as other related data.
Do You Need To Know Python To Take This Course?
Strictly speaking, no. But I highly recommend that you understand the basics of the Python programming language before taking this course.
What Will We Learn In This Course?
- How To Connect To A Third Party API
- How to loop through JSON data retrieved from an API
- Cool Python List and Python Dictionary wizardry
- How to create basic pie charts with MatPlotLib
- How To Develop a Basic GUI (Graphical User Interface) using TKinter
- And Much More!
This intermediate Python course is a great way to pick up a few new skills, and it should be a lot of fun.
My name is John Elder, and I hope to see you on the inside!