r/PythonLearning • u/Ibrahim-Marsee-6816 • Aug 24 '25
Just made a simple crypto price tracker in Python π
2
u/Ibrahim-Marsee-6816 Aug 24 '25
Hey guys,
Decided to build a small crypto price tracker. It pulls Bitcoin and Ethereum prices from an API and shows them in real time. Nothing fancy, but it actually works π
Bonus: it even handles errors gracefully, so if the API fails or something goes wrong, it wonβt crashβjust tells you there was a problem.
Itβs been a fun way to practice working with APIs and JSON. Next, Iβm thinking of adding more coins or maybe even a small GUI.
Any ideas on cool features I could add? π
2
u/k03k Aug 24 '25
It doenst handle all errors gracefully, what if the api connection times out for instance? Or what if there is no api key?
I think you should wrap a (or even any) network call into a try except :)
1
u/Ibrahim-Marsee-6816 Aug 24 '25
Sure, you're right, I just wanted to make it simple but will add these features
-10
u/kurechhh Aug 24 '25
its cool if you beginner but nobody will use this
5
u/Ibrahim-Marsee-6816 Aug 24 '25
You're right. I am begginer just wanted to make my hands dirty and see how far I will go, and I also thought of adding new things as long as I learn new things
10
7
2
u/esSdoem Aug 24 '25
That is cool. What is dotenv import?
2
Aug 25 '25
load_dotenv() allows you to use api keys, passwords, and other secrets you keep in your .env file
1




2
u/Kevdog824_ Aug 24 '25
Nice project!