Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Build a Crypto Currency Portfolio App With Python
Rating: 4.1 out of 5(139 ratings)
4,850 students

Build a Crypto Currency Portfolio App With Python

Let's Build A Cool App With Python 3!
Created byJohn Elder
Last updated 11/2023
English

What you'll learn

  • Build a Cool Crypto Currency Portfolio App
  • Connect To A Web API Using Python
  • Build Basic GUI Apps With TKinter
  • Make Pie Charts With MatPlotLib
  • Build Python Apps That Run In The Terminal
  • Build Python Apps That Have Graphical User Interfaces
  • Check Crypto Currency Prices Programatically With Python
  • Get Historic Crypto Currency Data With Python

Course content

1 section22 lectures1h 48m total length
  • Introduction3:42

    Build a Python-based cryptocurrency portfolio app that looks up current prices and displays results on the command line, then via a desktop GUI.

  • First Things First: How To Get Support Fast!0:09

    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/

  • Pip And Modules4:09

    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.

  • CoinMarketCap.com API Review4:37

    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.

  • UPDATE VIDEO: CoinMarketCap API Change1:54

    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.

  • Getting API Data2:43

    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.

  • Creating a List of Cryptos6:57

    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.

  • Creating a Portfolio Dictionary5:06

    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.

  • Let's Do Some Math!6:57

    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 Coin4:01

    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.

  • Intro To GUI's With TKinter3:36

    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.

  • TKinter Main Window3:08

    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.

  • TKinter Add Labels4:16

    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.

  • TKinter Header6:52

    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 Data5:48

    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.

  • Add Our Price Data7:30

    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.

  • Color Coding The Data6:14

    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.

  • Adding Profit/Loss To App And Title Bar6:46

    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.

  • Creating an Update Button5:08

    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.

  • Adding A Pie Chart With MatPlotLib7:05

    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.

  • Get The App Code1:39

    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.

  • Bonus Lecture10:10

    Promote lifetime access to over 60 Python and web development courses, including cryptocurrency topics, with a $200 discount available for the next three days.

Requirements

  • Beginner Level Python Knowledge Is a Plus
  • An Understanding of Python Lists and Dictionaries Would Be Useful
  • You'll Need A Copy of Python Installed On Your Computer To Follow Along (It's Free)
  • You'll Need A Coding Text Editor Like Sublime or Notepad++ (Both Free)

Description

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!


Who this course is for:

  • Anyone Who Wants To Improve Their Python Skills
  • Anyone Interested in Building Python Apps
  • Anyone Interested in Crypto Currencies or Trading
  • Anyone Interested in TKinter