It's good to see that you are trying to create a utility tool but it doesn't make sense if user himself has to input the bitcoin price. If a user first has to look for the price of a particular date from the past, he can very well search for the inflation rate too, isn't it? After that it's just a simple division.
This is more of a fun project for me and created this program just to learn good stuff. I wish to create more such tools which might be useful for the crypto community.
....
Kindly drop your suggestions.
My Github link to this program : https://github.com/hmrawal/My_Projects.gitLike you said that the tool is for learning purpose and you wish to create something useful for the crypto community, here is my suggestion for you to create something worthwhile:
Ask the user for two inputs - date and country. Then fetch the bitcoin price of the provided country for the provided date (you can look for local exchanges for the currency-specific price API). Then return the result something like this-
Nominal Profit/Loss of the User = [ (Current Price - Buy Price) / Buy Price ] * 100
Real Profit/Loss of the User (Inflated return) = [ (Current Price - Buy Price) / Buy Price ] * 100 * Inflation Adjustment Index
This will give user the stats whether his investment is yielding any inflation-adjusted profits or not which may be useful tool for some users. And most important of all, do make web app for the tool. Not everyone knows how to run Python script so web app is much more handy.
There are many countries which has an spread of about 10% or more in the bitcoin. Sometimes bitcoin is more than 10% more expensive in a country after converting to usd.
Coindesk an Coinmarketcap.com have api which you can use that let you just request the price of bitcoin in any country, based in local exchanges price.
This won't work. Coindesk or Coinmarketcap APIs only calculate prices in USD. Then they convert the price to other currencies using forex API. So, the same problem will sustain. Suppose the price of bitcoin is $25,000. But it is selling at the premium of 10% in Indian Market. CMC API will simply convert $25000 into current rate of INR/USD (suppose INR 70/$) which is Rs. 1,750,000. But in actual the price is Rs. 1,925,000 in Indian Market.
So it is best to use APIs provided by the local exchanges or any other local pricing service.