I've improved my python based crypto portfolio script

in #cryptocurrency7 years ago (edited)

A few days ago, I posted (https://steemit.com/cyrptocurrency/@hmushtaq/my-program-to-show-the-total-worth-of-all-your-cryptos-combined-with-a-better-user-interface) improvements of the python script I wrote for finding the total value of all your cryptos combined. The script can be found at https://github.com/HamidMushtaq/steemtools/tree/master/coinsworth_html.

Since then I have made quite a few improvements, which are described below.

Improved the GUI

I improved the GUI. Firstly, I display a fancier table. Secondly, the coins' names now are basically hyperlinks to those coins' information on the coinmarketcap website. In this way, if you want to have more information about a coin, you can just go to that coin's site by clicking on the name. Lastly, I also show the changes in coins' value in the last hour and last 24 hours. The output with the example input file coins.txt is shown below.

Now you can select a different reference currency

If you look at the example input file coins.txt, you would notice the first line to be currency=eur. Here we are telling that we want to show all the currency values in euros rather than US dollars. Previously, you could only see currency values in US dollars.

There is no need to install coinmarketcap python api

Previously, since in our program, we used the coinmarketcap python api, you had to have it first installed, to be able to use this script. But I've modified the program so that it doesn't need to use that api anymore. Now I just use the REST APIs from coinmarketcap and parse the json output.


I hope you'll find this script useful, and if you have any suggestions to improve this script, kindly let me know.

Sort:  

Excellent information regarding python Learning. Thanks for your Quality post.

nice article @hmushtaq well i haven't got the knowledge about python but it looks interesting. Let me know about the use and benefits of its usage

If you want to learn programming, starting with python would be good because it is one of the easiest programming languages to learn.

Definitely I would.. thanks for your kind response

python is savage

Interesting stuff hmushtaq

Thanks :)

Good news&you followed

You got a 3.03% upvote from @minnowvotes courtesy of @hmushtaq!

Thanks for your post sir. I am beginner learning python programming and its just a week I have started learning🙂

Great. I am sure you'll love Python.